/* ============================================================
   CODEX — la page produit (/fr/galeon-codex, /galeon-codex)
   ------------------------------------------------------------
   Chargée APRÈS css/v10.css, et seulement par ces deux pages : barre, pied de page et prise de
   contact restent ceux du gabarit V10, le corps prend la DA de Codex.

   La DA vient de deux sources, qui se répondent :
   - le fichier Figma CODEX (JkyfD4eBu6Fx9S0UCag79J, page Mobile) : papier #fdfbf7, encre #342812,
     brun #685d49, gris chaud #938c7f, or en dégradé #ac772e → #caa86f, titres en Trajan Pro 3,
     texte en Plus Jakarta Sans, gravure (Asclépios, montagnes) en fond ;
   - le chapitre Codex de la home V10 (preview/home-vision-3d-v10, css/home-v10.css) : fond crème
     #f7f1e7, or #b98a45 / #8a6127, pastille « En construction », liste d'attente en pilule, et les
     cartes de débat de soignants.

   Tout est préfixé cx- : aucune classe de v10.css n'est redéfinie hors de body.cx.
   La dernière section est sombre (.cx-fin), règle du gabarit V10 : le pied s'enchaîne dessus.
   ============================================================ */

/* Trajan Pro 3 : licence Adobe Fonts (~/Galeon/ressources/polices/LICENCES.md), déjà servie par le
   site pour le logotype. Mêmes fichiers que galeon.webflow.2026-08.css. */
@font-face{font-family:"Trajan Pro 3";src:url("/fonts/Trajan-Pro-3-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Trajan Pro 3";src:url("/fonts/Trajan-Pro-3-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

.cx{
  --cx-paper:#fdfbf7; --cx-paper-2:#f7f1e7; --cx-card:#fffdf8;
  --cx-ink:#342812; --cx-ink-2:#685d49; --cx-mute:#938c7f;
  --cx-gold:#b98a45; --cx-gold-d:#8a6127; --cx-gold-l:#caa86f;
  --cx-or:linear-gradient(100deg,#ac772e 0%,#caa86f 100%);
  --cx-brun:linear-gradient(180deg,#685d49 0%,#342812 100%);
  --cx-line:rgba(138,97,39,.16);
  --cx-serif:"Trajan Pro 3","Trajan Pro",Georgia,"Times New Roman",serif;
}

/* ─── BARRE : sur le papier, la barre au repos devient la pilule de verre ───────────────────
   Au repos, v10.css la pose transparente, texte clair : invisible sur la crème. La home résout le
   même problème au chapitre Codex en gardant la pilule sombre ; on fait pareil, teintée brun. */
@media (min-width:861px){
  .cx .nav:not(.is-solid) .nav__in{max-width:1180px;height:60px;margin:12px auto 0;padding:0 8px 0 24px;gap:32px;
    background:rgba(42,33,22,.78);border-color:rgba(255,255,255,.12);
    backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);box-shadow:0 14px 40px rgba(60,40,10,.22)}
}
.cx .nav.is-solid .nav__in{background:rgba(42,33,22,.72)}

/* ─── BASE ───────────────────────────────────────── */
.cx main{background:var(--cx-paper);color:var(--cx-ink)}
.cx-sec{position:relative;padding:clamp(72px,9vw,124px) 0;background:var(--cx-paper)}
.cx-sec--creme{background:var(--cx-paper-2)}
.cx-tete{max-width:800px;margin:0 0 clamp(36px,5vw,56px)}
.cx-tete--centre{margin-left:auto;margin-right:auto;text-align:center}
.wrap:has(> .v-faq) > .cx-tete{margin-left:auto;margin-right:auto;text-align:center}   /* les FAQ au centre, comme partout (16/10/2026) */
.cx-sur{display:block;margin:0 0 18px;font-size:clamp(14px,1.2vw,17px);line-height:1.3;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--cx-gold-d)}
.cx-titre{margin:0;font-family:var(--cx-serif);font-weight:700;font-size:clamp(28px,3.4vw,46px);line-height:1.12;letter-spacing:.01em;color:var(--cx-ink)}
/* :not(.cx-sur) : le surtitre est un <p> aussi, et cette règle (plus spécifique) écrasait sa marge du bas */
.cx-tete p:not(.cx-sur){margin:18px 0 0;font-size:clamp(15px,1.2vw,17.5px);line-height:1.65;color:var(--cx-ink-2)}
.cx-or{background:var(--cx-or);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ─── HERO ───────────────────────────────────────── */
.cx-hero{position:relative;overflow:hidden;padding:calc(var(--nav-h) + clamp(48px,7vw,96px)) 0 clamp(64px,8vw,112px);
  background:radial-gradient(ellipse 60% 70% at 78% 40%,rgba(202,168,111,.32),rgba(202,168,111,0) 70%),linear-gradient(180deg,var(--cx-paper-2) 0%,var(--cx-paper) 100%)}
/* la gravure de Codex (Asclépios, le caducée, les montagnes), en fond comme dans l'app */
/* La gravure est un SVG (scripts/codex-mer.py) : l'image, et à la place de sa mer, une mer gravée
   qui bouge. viewBox et preserveAspectRatio reproduisent le « center bottom / cover » d'un fond. */
.cx-gravure{position:absolute;left:0;right:0;bottom:0;width:100%;height:min(78%,720px);pointer-events:none;mix-blend-mode:multiply;opacity:.9;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 40%,#000 90%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 40%,#000 90%,transparent 100%)}
/* chaque rangée glisse d'une largeur d'image (le tracé en couvre deux : la boucle ne se voit pas),
   et ondule doucement sur place ; les reflets s'allument et s'éteignent */
.cx-vague{animation:cx-courant var(--d) linear var(--dd) infinite;will-change:transform}
.cx-houle{animation:cx-houle var(--h) ease-in-out infinite alternate}
.cx-reflet{stroke:#caa86f;stroke-width:1.6;stroke-opacity:0;animation:cx-reflet var(--r) ease-in-out var(--rd) infinite}
@keyframes cx-courant{to{transform:translateX(-1268px)}}
@keyframes cx-houle{from{transform:translateY(calc(var(--a) * -1))}to{transform:translateY(var(--a))}}
@keyframes cx-reflet{0%,62%,100%{stroke-opacity:0}78%{stroke-opacity:.55}}
.cx-hero__grille{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(32px,5vw,72px);align-items:center}
.cx-chantier{display:inline-flex;align-items:center;gap:8px;margin:0 0 20px;padding:6px 12px;border-radius:999px;background:rgba(185,138,69,.16);color:var(--cx-gold-d);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.cx-chantier::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;animation:cx-cligne 1.6s ease-in-out infinite}
@keyframes cx-cligne{50%{opacity:.35}}
.cx-quoi{margin:0 0 14px;font-size:14px;font-weight:600;color:var(--cx-ink-2)}
.cx-hero h1{margin:0;font-family:var(--cx-serif);font-weight:700;font-size:clamp(36px,4.8vw,66px);line-height:1.06;letter-spacing:.005em;color:var(--cx-ink);max-width:13ch}
.cx-hero .cx-chapo{margin:24px 0 0;max-width:52ch;font-size:clamp(15.5px,1.25vw,18px);line-height:1.65;color:var(--cx-ink-2)}

/* ─── LISTE D'ATTENTE (la pilule de la home) ─────────── */
.cx-attente{margin-top:30px;max-width:520px}
.cx-attente form{display:flex;gap:6px;padding:5px;border-radius:999px;background:#fff;border:1px solid rgba(138,97,39,.22);box-shadow:0 18px 44px rgba(110,80,30,.1)}
.cx-attente label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cx-attente input[type=email]{flex:1;min-width:0;height:48px;border:0;background:transparent;padding:0 18px;font:inherit;font-size:15px;color:var(--cx-ink);outline:none}
.cx-attente input[type=email]::placeholder{color:rgba(52,40,18,.4)}
.cx-attente form:focus-within{border-color:var(--cx-gold);box-shadow:0 0 0 4px rgba(185,138,69,.16),0 18px 44px rgba(110,80,30,.1)}
.cx-bouton{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 22px;border:0;border-radius:999px;background:var(--cx-brun);color:#fdfbf7;font:inherit;font-size:14.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:gap .2s,filter .2s}
.cx-bouton:hover{gap:14px;filter:brightness(1.15)}
.cx-bouton svg{width:16px;height:16px;flex:none}
.cx-attente .cx-note{margin:12px 0 0 6px;font-size:12.5px;line-height:1.5;color:var(--cx-mute)}
.cx-attente .cx-note a{color:var(--cx-ink-2);text-decoration:underline;text-underline-offset:3px}
.cx-attente .cx-note b{color:var(--cx-ink-2);font-weight:600}
.cx .cx-attente .w-form-done{margin-top:0;padding:16px 20px;border-radius:18px;background:#fff;border:1px solid rgba(138,97,39,.24);color:var(--cx-ink)}
.cx .cx-attente .w-form-done b{color:var(--cx-gold-d)}
@media (max-width:560px){
  .cx-attente form{flex-direction:column;gap:8px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  .cx-attente form:focus-within{box-shadow:none}
  .cx-attente input[type=email]{flex:none;height:52px;font-size:16px;border-radius:999px;background:#fff;border:1px solid rgba(138,97,39,.24)}
  .cx-attente input[type=email]:focus{border-color:var(--cx-gold);box-shadow:0 0 0 3px rgba(185,138,69,.16)}
  .cx-bouton{height:52px;font-size:15px}
}

/* ─── LE TÉLÉPHONE ───────────────────────────────── */
.cx-tel{position:relative;margin:0;width:100%;max-width:300px;padding:9px;border-radius:46px;background:linear-gradient(160deg,#4a3c26,#1d160b);box-shadow:0 40px 90px rgba(80,55,20,.28),0 6px 18px rgba(60,40,10,.18),inset 0 0 0 1px rgba(255,255,255,.08)}
.cx-tel img{display:block;width:100%;height:auto;border-radius:37px;background:var(--cx-paper)}

/* la scène du hero : le téléphone, et autour les échanges entre soignants (ceux de la home) */
.cx-scene{position:relative;display:flex;justify-content:center;padding:28px 0}
.cx-scene .cx-tel{max-width:310px;z-index:1}
.cx-bulle{position:absolute;z-index:2;width:236px;padding:12px 14px;border-radius:16px;background:#fffdf8;border:1px solid rgba(138,97,39,.14);box-shadow:0 20px 50px rgba(110,80,30,.16);font-size:12.5px;line-height:1.45;color:var(--cx-ink);animation:cx-flotte 7s ease-in-out infinite}
/* placées sur les bords du téléphone, jamais sur le salut ni sur la recherche (haut de l'écran) */
.cx-bulle:nth-of-type(1){top:7%;left:-2%;animation-delay:-1s}
.cx-bulle:nth-of-type(2){top:50%;right:-5%;animation-delay:-3s}
.cx-bulle:nth-of-type(3){bottom:16%;left:-6%;animation-delay:-5s}
.cx-bulle:nth-of-type(4){bottom:-1%;right:4%;animation-delay:-2s}
@keyframes cx-flotte{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.cx-qui{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:11.5px;color:var(--cx-mute)}
.cx-qui i{width:22px;height:22px;flex:none;border-radius:50%;background:linear-gradient(135deg,#e2b36b,#b98a45)}
.cx-qui b{color:var(--cx-ink);font-weight:600}
.cx-etiq{display:inline-block;margin-top:8px;padding:3px 9px;border-radius:999px;background:#f4e8d4;color:var(--cx-gold-d);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.cx-legende{position:absolute;left:0;right:0;bottom:-6px;margin:0;text-align:center;font-size:11.5px;color:var(--cx-mute)}

/* ─── CARTES (le constat) ─────────────────────────── */
.cx-cartes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cx-carte{padding:28px 26px 30px;border-radius:24px;background:var(--cx-card);border:1px solid var(--cx-line);box-shadow:0 18px 50px rgba(110,80,30,.06)}
.cx-carte h3{margin:20px 0 8px;font-size:18px;line-height:1.3;letter-spacing:-.01em;color:var(--cx-ink)}
.cx-carte p{margin:0;font-size:14.5px;line-height:1.6;color:var(--cx-ink-2)}
/* le médaillon des icônes de l'app : un rond crème cerclé d'or */
.cx-medaillon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#f4e8cf);border:1px solid rgba(202,168,111,.55);color:var(--cx-gold-d)}
.cx-medaillon svg{width:22px;height:22px}

/* ─── LES TROIS GESTES ─────────────────────────────── */
.cx-gestes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,44px);align-items:start}
.cx-geste{display:flex;flex-direction:column;align-items:center;text-align:center}
.cx-geste:nth-child(2){margin-top:clamp(0px,4vw,56px)}
.cx-geste .cx-tel{max-width:268px}
.cx-geste__num{margin:28px 0 6px;font-family:var(--cx-serif);font-weight:700;font-size:15px;letter-spacing:.12em}
.cx-geste h3{margin:0;font-family:var(--cx-serif);font-weight:700;font-size:clamp(20px,1.8vw,24px);letter-spacing:.02em;color:var(--cx-ink)}
.cx-geste p{margin:10px 0 0;max-width:34ch;font-size:14.5px;line-height:1.6;color:var(--cx-ink-2)}

/* ─── LA COMMUNAUTÉ ─────────────────────────────── */
.cx-duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:center}
.cx-debats{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cx-debats .cx-bulle{position:static;width:auto;animation:none;padding:20px 22px 22px;font-size:15px;line-height:1.5}
.cx-debats .cx-qui{font-size:12.5px;margin-bottom:10px}
.cx-debats .cx-qui i{width:28px;height:28px}
.cx-debats .cx-etiq{margin-top:12px}
.cx-debats .cx-bulle:nth-child(even){transform:translateY(22px)}
.cx-atouts{margin:28px 0 0;padding:0;list-style:none;display:grid;gap:14px}
.cx-atouts li{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:18px;background:var(--cx-card);border:1px solid var(--cx-line);font-size:14.5px;line-height:1.55;color:var(--cx-ink-2)}
.cx-atouts li::before{content:"";flex:none;width:9px;height:9px;margin-top:7px;border-radius:50%;background:var(--cx-or)}
.cx-atouts b{display:block;color:var(--cx-ink);font-weight:600}
.cx-precision{margin:34px 0 0;font-size:12.5px;color:var(--cx-mute)}

/* ─── LA FIN, SOMBRE (le pied s'enchaîne dessus) ─────────── */
/* La section arrive du papier par un fondu (--cx-fondu de haut), sans cassure nette : le crème
   de la section précédente descend dans le brun, le brun descend dans le --fond du pied de page.
   Le padding du haut inclut la hauteur du fondu, pour que le titre se pose sur le brun. */
.cx-fin{--cx-fondu:clamp(140px,16vw,240px);position:relative;overflow:hidden;padding:calc(var(--cx-fondu) + clamp(56px,6vw,96px)) 0 clamp(110px,12vw,168px);color:#f6efe2;
  background:
    radial-gradient(ellipse 70% 60% at 50% calc(var(--cx-fondu) + 40px),rgba(172,119,46,.34),rgba(172,119,46,0) 65%),
    linear-gradient(180deg,var(--cx-paper) 0,#e9dcc4 calc(var(--cx-fondu) * .22),#8a6a3f calc(var(--cx-fondu) * .55),#3a2a14 calc(var(--cx-fondu) * .82),#241a0b var(--cx-fondu),#150f07 62%,var(--fond) 100%)}
.cx-fin::before{content:"";position:absolute;inset:0;pointer-events:none;background:url("/images/CodexBG.webp") center 30%/cover no-repeat;opacity:.07;filter:invert(1);
  -webkit-mask-image:linear-gradient(180deg,transparent 0,transparent var(--cx-fondu),#000 calc(var(--cx-fondu) + 160px));mask-image:linear-gradient(180deg,transparent 0,transparent var(--cx-fondu),#000 calc(var(--cx-fondu) + 160px))}
.cx-fin .wrap{position:relative}
.cx-fin .cx-sur{color:var(--cx-gold-l)}
.cx-fin .cx-titre{color:#fbf6ec}
.cx-fin .cx-tete p:not(.cx-sur){color:rgba(246,239,226,.72)}
/* la fin respire (retour de Simon, 13/10) : plus d'interligne au titre, plus d'écart entre ses blocs */
.cx-fin .cx-tete{max-width:980px;margin-bottom:clamp(44px,5.5vw,68px)}
.cx-fin .cx-sur{margin-bottom:clamp(22px,2.4vw,30px)}
.cx-fin .cx-titre{line-height:1.26;text-wrap:balance}
.cx-fin .cx-tete p:not(.cx-sur){max-width:58ch;margin:clamp(24px,2.6vw,34px) auto 0;line-height:1.75}
.cx-fin .cx-attente .cx-note{margin-top:18px;line-height:1.6}
.cx-fin .cx-attente{margin:0 auto}
.cx-fin .cx-attente form{background:rgba(255,255,255,.96)}
.cx-fin .cx-attente .cx-note{text-align:center;margin-left:0;color:rgba(246,239,226,.55)}
.cx-fin .cx-attente .cx-note a{color:rgba(246,239,226,.8)}
.cx-fin .cx-bouton{background:var(--cx-or);color:#221808}
.cx-liens{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 40px;margin:clamp(48px,6vw,72px) 0 0;padding:0;list-style:none;font-size:14px}
.cx-liens a{color:var(--cx-gold-l);font-weight:600;text-decoration:underline;text-decoration-color:rgba(202,168,111,.4);text-underline-offset:4px}
.cx-liens a:hover{color:#f0d9ab}
.cx-fin .cx-attente .w-form-fail{text-align:center}
@media (max-width:560px){.cx-fin .cx-attente form{background:none}}

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width:980px){
  .cx-hero__grille,.cx-duo{grid-template-columns:1fr}
  .cx-hero h1{max-width:16ch}
  .cx-scene{margin-top:12px}
  .cx-cartes{grid-template-columns:1fr}
}
@media (max-width:760px){
  .cx-gestes{grid-template-columns:1fr;gap:56px}
  .cx-geste:nth-child(2){margin-top:0}
  .cx-bulle{width:196px;font-size:11.5px;padding:10px 12px}
  .cx-bulle:nth-of-type(n+3){display:none}
  .cx-bulle:nth-of-type(1){left:0}
  .cx-bulle:nth-of-type(2){right:0}
  .cx-debats{grid-template-columns:1fr}
  .cx-debats .cx-bulle:nth-child(even){transform:none}
}
@media (prefers-reduced-motion:reduce){
  .cx-bulle,.cx-chantier::before,.cx-vague,.cx-houle,.cx-reflet{animation:none}
  .cx-bouton{transition:none}
}

/* une fois l'inscription partie, galeon-forms.js masque le formulaire et montre .w-form-done : la
   mention sous le champ n'a plus d'objet */
.cx-attente form[style*="none"] ~ .cx-note{display:none}

/* La FAQ réutilise le composant du gabarit V10, pensé pour un fond sombre ou « light » bleuté : sur le papier
   de Codex, ses réponses sortaient en bleu pâle, illisibles. On lui donne l'encre et les filets de la page. */
.cx-sec .v-faq{border-top-color:var(--cx-line)}
.cx-sec .v-faq details{border-bottom-color:var(--cx-line)}
.cx-sec .v-faq summary{color:var(--cx-ink)}
.cx-sec .v-faq details > div{color:var(--cx-ink-2)}
.cx-sec .v-faq details > div a{color:var(--cx-gold-d);text-decoration:underline;text-underline-offset:3px}
