/* Ours Énergie — feuille de style unique des pages d'acquisition.
   Reprise à l'identique du canevas Claude Design. Mobile d'abord, puis tablette (700 px)
   et grand écran (1024 px). Contrastes mesurés : navy sur blanc 15:1, blanc sur bleu 5,7:1,
   navy sur jaune 12:1, gris #46507A sur blanc 7,9:1. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0B1A5C;
  --bleu: #1F5BE6;
  --bleu-fonce: #1749BD;
  --jaune: #FFD233;
  --gris: #46507A;
  --ciel: #E8F0FF;
  --pale: #F3F7FF;
  --bord: #D4E0FB;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
img { max-width: 100%; }
/* Les poses de l'ours ne se déforment jamais : hauteur fixée par la classe, largeur déduite. */
.quiz-ours, .ours-section, .faq-ours, .cta-img { width: auto; object-fit: contain; }
a { color: var(--bleu); }
a:hover { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* ---- Éléments communs ---- */
.hl {
  background: var(--jaune);
  padding: 0 6px;
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.nowrap { white-space: nowrap; }
.h2 { font-size: clamp(28px, 7vw, 44px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 16px;
  background: var(--bleu); color: #FFFFFF;
  font: inherit; font-size: 18px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--bleu-fonce); color: #FFFFFF; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--jaune { background: var(--jaune); color: var(--navy); font-weight: 900; }
.btn--jaune:hover:not(:disabled) { background: #F2C200; color: var(--navy); }
.btn--plein { width: 100%; min-height: 58px; }
.btn--petit { min-height: 48px; padding: 0 22px; border-radius: 14px; font-size: 16px; white-space: nowrap; }
.coche {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wrap { max-width: 1180px; margin: 0 auto; }

/* ---- Bandeau ---- */
.bandeau {
  background: var(--navy); color: #FFFFFF; padding: 11px 16px;
  text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35;
}
.bandeau strong { color: var(--jaune); font-weight: 800; }

/* ---- En-tête + hero ---- */
.hero { background: var(--ciel); padding: 16px 16px 36px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marque { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.marque img { width: 52px; height: 52px; border-radius: 50%; display: block; box-shadow: 0 4px 12px rgba(11,26,92,.18); }
.marque-nom, .marque-sous { display: block; }
.marque-nom { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.marque-sous { font-size: 14px; font-weight: 500; color: var(--gris); margin-top: 2px; }
.head-cta { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 16px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; min-width: 0; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  background: #FFFFFF; border-radius: 999px; padding: 9px 16px 9px 12px;
  font-size: 15px; font-weight: 600; box-shadow: 0 2px 8px rgba(11,26,92,.08);
}
.pill-point { width: 12px; height: 12px; border-radius: 50%; background: #2DB45A; box-shadow: 0 0 0 4px #CDEFD8; }
.h1 { font-size: clamp(32px, 8.6vw, 54px); line-height: 1.1; font-weight: 900; letter-spacing: -0.025em; }
.h1 sup { font-size: .45em; vertical-align: super; line-height: 0; }
.accroche { font-size: 18px; line-height: 1.35; font-weight: 700; }
.perks { display: none; }
.perk {
  display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF;
  border-radius: 14px; padding: 10px 14px; font-size: 15px; font-weight: 700;
}

/* ---- Questionnaire ---- */
.quiz { width: 100%; max-width: 520px; margin: 0 auto; min-width: 0; scroll-margin-top: 16px; }
.quiz-haut {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 12px 0 4px; position: relative; z-index: 0;
}
.quiz-args { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-bottom: 8px; }
.quiz-arg { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.25; }
/* L'ours dépasse derrière la carte : le bas de son ventre est caché (environ 22 % de sa hauteur). */
.quiz-ours {
  height: 220px; width: auto; max-width: 52%; object-fit: contain; object-position: bottom;
  display: block; flex-shrink: 0; align-self: flex-end; margin-bottom: -48px;
}
.carte {
  position: relative; z-index: 1; background: #FFFFFF; border-radius: 28px;
  overflow: hidden; box-shadow: 0 18px 40px rgba(11,26,92,.16);
}
.carte-tete { background: var(--navy); color: #FFFFFF; padding: 18px 24px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.carte-label { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: #9EC2FF; }
.carte-pct { font-size: 38px; font-weight: 900; color: var(--jaune); line-height: 1.05; }
.carte-pct small { font-size: 16px; font-weight: 700; color: #FFFFFF; margin-left: 8px; }
.carte-etape { font-size: 15px; font-weight: 700; padding-top: 2px; white-space: nowrap; }
.barre { height: 7px; background: #1E2C6E; }
.barre-remplie { height: 100%; width: 4%; background: var(--jaune); border-radius: 0 4px 4px 0; transition: width .3s ease; }
.carte-corps { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.retour {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 4px; margin: -8px 0 -8px -4px; min-height: 44px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--gris); cursor: pointer;
}
.question { font-size: 26px; line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; }
.question:focus { outline: none; }
.sous-question { font-size: 16px; color: var(--gris); font-weight: 500; margin-top: 4px; }
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choix--1 { grid-template-columns: minmax(0, 1fr); }
.tuile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 14px 16px; border-radius: 18px;
  background: var(--pale); border: 2px solid var(--bord);
  font: inherit; font-size: 17px; font-weight: 700; color: var(--navy); text-align: center; cursor: pointer;
  transition: transform .12s, border-color .12s;
}
.tuile--haute { min-height: 168px; }
.tuile--large { grid-column: 1 / -1; flex-direction: row; gap: 14px; min-height: 72px; }
.tuile:hover { border-color: var(--bleu); transform: translateY(-1px); }
.tuile[aria-pressed="true"] { background: #FFF6CC; border-color: #E6B800; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 15px; font-weight: 700; }
.champ input {
  width: 100%; height: 52px; padding: 0 14px; border: 2px solid var(--bord); border-radius: 14px;
  font: inherit; font-size: 16px; color: var(--navy); background: #FFFFFF;
}
.champ input:focus { border-color: var(--bleu); outline: none; }
.champ input[aria-invalid="true"] { border-color: #C62828; }
.champ--cp input { height: 56px; padding: 0 16px; font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.aide { font-size: 13px; color: var(--gris); line-height: 1.4; }
.erreur-champ { font-size: 13px; color: #B71C1C; font-weight: 600; }
.case {
  display: flex; gap: 12px; align-items: flex-start; background: var(--pale);
  border-radius: 14px; padding: 12px 14px;
}
.case input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--bleu); }
.case label { font-size: 14px; line-height: 1.45; font-weight: 500; }
.case--rappel label { font-weight: 600; }
.mention { font-size: 12px; line-height: 1.5; color: var(--gris); }
.alerte { background: #FDECEA; color: #8E1B12; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.piege { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fin { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; padding-top: 6px; }
.fin-rond { width: 64px; height: 64px; border-radius: 50%; background: var(--jaune); display: flex; align-items: center; justify-content: center; }
.fin h2 { font-size: 28px; font-weight: 900; line-height: 1.2; }
.fin p { font-size: 17px; line-height: 1.45; color: var(--gris); font-weight: 500; }
.fin-liste { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; background: var(--pale); border-radius: 16px; padding: 16px 18px; font-size: 15px; font-weight: 600; }
.fin-liste span { font-weight: 500; }
.rassure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; text-align: center; }

/* ---- Sections ---- */
.sec { padding: 56px 16px; }
.sec--pale { background: var(--pale); }
.titre-ours { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ours-section { height: 180px; width: auto; display: block; flex-shrink: 0; }
.pile { display: flex; flex-direction: column; gap: 24px; }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--jaune);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; flex-shrink: 0;
}
.step h3, .benef h3 { font-size: 19px; font-weight: 800; }
.step p, .benef p { font-size: 16px; line-height: 1.45; color: var(--gris); margin-top: 4px; }
.pile > .btn { align-self: flex-start; }
.benefits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.benef { background: #FFFFFF; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.benef svg { margin-bottom: 4px; }

/* ---- FAQ ---- */
.faq-grid { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0 auto; }
.faq-gauche { display: flex; flex-direction: column; gap: 20px; }
/* align-self : sans lui, la colonne flex étire l'image en largeur et la déforme. */
.faq-ours { display: none; height: 300px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; }
.faq-liste { display: flex; flex-direction: column; gap: 10px; }
details { background: var(--pale); border-radius: 18px; padding: 0 20px; }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; min-height: 60px; font-size: 17px; font-weight: 800;
}
summary::-webkit-details-marker { display: none; }
summary svg { flex-shrink: 0; transition: transform .2s; }
details[open] summary svg { transform: rotate(180deg); }
details p { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: var(--gris); }

/* ---- Appel final ---- */
.cta-sec { padding: 0 16px 56px; }
.cta-card {
  background: var(--navy); border-radius: 32px; color: #FFFFFF; padding: 32px 24px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px;
}
.cta-texte { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-texte .h2 { font-size: clamp(28px, 7vw, 40px); }
.cta-texte .h2 span { color: var(--jaune); }
.cta-texte p { font-size: 17px; line-height: 1.45; color: #D6E2FF; }
.cta-texte .btn { align-self: flex-start; }
.cta-img { flex: 0 0 auto; height: 230px; width: auto; max-width: 100%; object-fit: contain; display: block; }

/* ---- Pied de page ---- */
.pied { background: var(--pale); padding: 36px 16px 44px; }
.pied .wrap { display: flex; flex-direction: column; gap: 18px; }
.pied-marque { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; }
.pied-marque img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.pied p { font-size: 13px; line-height: 1.55; color: var(--gris); }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; font-weight: 600; }
.pied nav a, .pied nav button { min-height: 32px; display: inline-flex; align-items: center; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--bleu); text-decoration: underline; cursor: pointer; }

/* ---- Bandeau cookies ---- */
.cookies {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 560px; margin: 0 auto; background: #FFFFFF; color: var(--navy);
  border-radius: 20px; padding: 18px; box-shadow: 0 12px 40px rgba(11,26,92,.28);
  display: flex; flex-direction: column; gap: 12px;
}
.cookies[hidden] { display: none; }
.cookies p { font-size: 14px; line-height: 1.45; }
.cookies-boutons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookies-boutons .btn { flex: 1 1 140px; min-height: 48px; font-size: 16px; }
.btn--contour { background: #FFFFFF; color: var(--navy); border: 2px solid var(--navy); }
.btn--contour:hover:not(:disabled) { background: var(--pale); color: var(--navy); }

/* ---- Pages légales ---- */
.legal { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }
.legal h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 900; line-height: 1.15; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: #2A3366; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal .muted { color: var(--gris); font-size: 14px; }
.legal-head { background: var(--ciel); padding: 16px; }

/* ---- Tablette ---- */
@media (min-width: 700px) {
  .hero { padding: 20px 24px 48px; }
  .head-cta { display: inline-flex; }
  .hero-grid { margin-top: 28px; gap: 16px; }
  .hero-text { align-items: center; text-align: center; max-width: 680px; margin: 0 auto; }
  .pill { align-self: center; }
  .perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .sec { padding: 72px 24px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .step { flex-direction: column; background: var(--pale); border-radius: 22px; padding: 24px; }
  .ours-section { height: 220px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-sec { padding: 0 24px 72px; }
  .cta-card { padding: 40px 40px 32px; }
  .cookies { left: 24px; right: auto; bottom: 24px; margin: 0; }
}

/* ---- Grand écran ---- */
@media (min-width: 1024px) {
  .hero { padding: 24px 32px 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; margin-top: 36px; }
  .hero-text { align-items: flex-start; text-align: left; max-width: none; margin: 0; gap: 20px; }
  .pill { align-self: flex-start; }
  .h1 { font-size: 60px; }
  .perks { justify-content: flex-start; }
  .quiz { max-width: none; }
  .sec { padding: 96px 32px; }
  .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; max-width: 1180px; align-items: start; }
  .faq-ours { display: block; }
  .cta-sec { padding: 0 32px 96px; }
  .cta-card { padding: 48px 64px; }
  .cta-img { height: 300px; }
}
