:root {
  --p: #0f766e; --p-clair: #14b8a6; --p-fonce: #115e59; --p-pale: #f0fdfa; --p-bord: #99f6e4;
  --fond: #f8fafc; --carte: #ffffff; --texte: #0f172a; --doux: #64748b; --bord: #e2e8f0;
  --or: #f59e0b; --rouge: #dc2626; --vert: #15803d; --r: 14px;
  --ombre: 0 2px 14px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--fond); color: var(--texte); line-height: 1.6; }
a { color: var(--p-fonce); }
button { font: inherit; }
.cache { display: none !important; }
.enveloppe { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.enveloppe.ecran { max-width: 760px; }

/* ── En-tête, bandeau et barre de partage D'ORIGINE (copie fidèle du fichier Gemini, demande de Quentin du 14/10) ── */
.entete-origine { background: linear-gradient(135deg, var(--p-fonce), var(--p)); color: #fff; padding: 28px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.header-inner { max-width: 980px; margin: 0 auto; }
.brand-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.5px; }
.brand-sub { font-size: 0.95rem; opacity: 0.92; margin-top: 4px; }
.alert-banner { background: #fffbeb; border-left: 5px solid #f59e0b; padding: 15px 20px; border-radius: 8px; font-size: 0.93rem; color: #92400e; margin: 26px 0 20px; }
.share-bar { background: linear-gradient(135deg, #eff6ff, #e0e7ff); border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.share-bar-text { font-size: 0.9rem; color: #1e3a8a; font-weight: 600; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-share { border: none; padding: 8px 13px; border-radius: 8px; font-size: 0.82rem; font-weight: 700; cursor: pointer; color: #fff; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: transform 0.15s, opacity 0.15s; }
.btn-share:hover { transform: translateY(-1px); opacity: 0.92; }
.sh-wa { background: #25D366; }
.sh-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sh-fb { background: #1877F2; }
.sh-tw { background: #0f172a; }
.sh-in { background: #0A66C2; }
.sh-mail { background: #64748b; }
.sh-copy { background: var(--p); }

/* Aperçu personnalisé (fin du questionnaire) */
.apercu { background: linear-gradient(135deg, #f0fdfa, #ecfeff); border: 1px solid var(--p-bord); border-left: 5px solid var(--p); border-radius: 12px; padding: 14px 16px; margin: 14px 0 6px; }
.apercu-titre { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--p-fonce); margin-bottom: 4px; }
.apercu p { font-size: 1.02rem; line-height: 1.55; color: #134e4a; }

/* En-tête */
.entete { background: linear-gradient(135deg, var(--p-fonce), var(--p)); color: #fff; }
.entete .enveloppe { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.marque { font-weight: 800; font-size: 1.15rem; letter-spacing: -.3px; color: #fff; text-decoration: none; }
.marque span { opacity: .8; font-weight: 600; }
.entete-lien { color: #ccfbf1; font-size: .88rem; text-decoration: none; }

/* Accueil */
.hero { padding: 8px 0 10px; }
.hero h1 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); line-height: 1.18; letter-spacing: -.6px; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--p); }
.hero .chapeau { font-size: 1.05rem; color: #334155; margin-bottom: 18px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; list-style: none; }
.puces li { background: var(--p-pale); border: 1px solid var(--p-bord); color: var(--p-fonce); border-radius: 99px; padding: 5px 12px; font-size: .86rem; font-weight: 600; }
.puces li.prix { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 15px 26px; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: transform .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn-p { background: var(--p); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, .28); }
.btn-p:hover { background: var(--p-fonce); }
.btn-s { background: #fff; color: var(--texte); border: 1px solid var(--bord); font-weight: 600; font-size: .95rem; padding: 12px 18px; }
.btn-s:hover { background: #f1f5f9; }
.btn-large { width: 100%; }
.mention { font-size: .84rem; color: var(--doux); margin-top: 10px; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); padding: 22px; box-shadow: var(--ombre); margin: 18px 0; }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.etape { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 14px; font-size: .9rem; }
.etape b { display: block; color: var(--p); font-size: 1.4rem; line-height: 1; margin-bottom: 6px; }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }
h2.titre-section { font-size: 1.25rem; margin: 30px 0 10px; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 8px; color: #334155; font-size: .94rem; }
.references { font-size: .8rem; color: var(--doux); margin: 26px 0 10px; }

/* Partage */
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.partage-titre { font-size: .9rem; font-weight: 600; color: #1e3a8a; width: 100%; }
.b-part { border: 0; border-radius: 8px; padding: 8px 12px; font-size: .82rem; font-weight: 700; color: #fff; cursor: pointer; }
.b-wa { background: #25d366; } .b-fb { background: #1877f2; } .b-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.b-mail { background: #64748b; } .b-lien { background: var(--p); }
.boite-partage { background: linear-gradient(135deg, #eff6ff, #e0e7ff); border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; margin: 18px 0; }

/* Profil */
.ecran { padding: 22px 16px 120px; }   /* 21/10 : marges latérales (le texte touchait le bord du téléphone) */
.etiquette { display: inline-block; background: #ccfbf1; color: var(--p-fonce); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; }
.choix-qui { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.choix-qui button { background: #fff; border: 2px solid var(--bord); border-radius: 12px; padding: 16px 10px; cursor: pointer; font-weight: 700; }
.choix-qui button span { display: block; font-size: 1.7rem; }
.choix-qui button[aria-pressed="true"] { border-color: var(--p); background: var(--p-pale); color: var(--p-fonce); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .champs { grid-template-columns: 1fr; } }
.champ label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.champ input, .champ select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 1rem; background: #fff; color: var(--texte); }
.champ input:focus, .champ select:focus { outline: 3px solid rgba(15, 118, 110, .18); border-color: var(--p); }

/* Question */
.question { min-height: 52vh; }
.q-num { color: var(--doux); font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.q-texte { font-size: clamp(1.12rem, 3.8vw, 1.35rem); font-weight: 650; line-height: 1.4; margin-bottom: 20px; }
.options { display: grid; gap: 9px; }
.options button { text-align: left; background: #fff; border: 2px solid var(--bord); border-radius: 12px; padding: 14px 16px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: border-color .12s, background .12s; }
.options button:hover { border-color: var(--p-clair); }
.options button .touche { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; color: var(--doux); align-items: center; justify-content: center; font-size: .8rem; flex: none; }
.options button:focus-visible, .offre:focus-visible, .btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.options button[aria-pressed="true"] { border-color: var(--p); background: var(--p); color: #fff; }
.options button[aria-pressed="true"] .touche { background: rgba(255, 255, 255, .25); color: #fff; }
.nav-q { display: flex; justify-content: space-between; margin-top: 18px; }
.lien-btn { background: none; border: 0; color: var(--doux); cursor: pointer; font-weight: 600; padding: 8px 0; }
.lien-btn:disabled { opacity: .35; cursor: default; }

/* Barre de progression fixe en bas */
.progression { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 2px solid var(--p); box-shadow: 0 -6px 24px rgba(15, 23, 42, .1); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
.progression .enveloppe { padding: 0; }
.prog-meta { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.prog-pct { background: var(--p); color: #fff; padding: 1px 9px; border-radius: 99px; font-size: .78rem; }
.prog-fond { height: 10px; background: var(--bord); border-radius: 99px; overflow: hidden; }
.prog-rempli { height: 100%; width: 0; background: linear-gradient(90deg, var(--p), var(--p-clair)); transition: width .3s; }

/* Analyse */
.analyse { text-align: center; padding: 70px 0; }
.rond { width: 54px; height: 54px; border: 5px solid var(--p-bord); border-top-color: var(--p); border-radius: 50%; margin: 0 auto 18px; animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Écran « bilan prêt » */
.pret h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.2; margin-bottom: 8px; }
.flou { position: relative; margin: 16px 0; }
.flou .grille-chiffres { filter: blur(7px); user-select: none; pointer-events: none; opacity: .7; }
.flou-cadenas { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--p-fonce); font-size: 1rem; }
.inclus { list-style: none; margin: 12px 0 6px; }
.inclus li { padding: 4px 0 4px 26px; position: relative; font-size: .95rem; }
.inclus li::before { content: "✓"; position: absolute; left: 0; color: var(--p); font-weight: 900; }
.offres { display: grid; gap: 12px; margin: 18px 0 8px; }
.offre { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 2px solid var(--bord); border-radius: 14px; padding: 16px; cursor: pointer; width: 100%; }
.offre[aria-checked="true"] { border-color: var(--p); background: var(--p-pale); }
.offre .rond-choix { width: 22px; height: 22px; border: 2px solid #94a3b8; border-radius: 50%; flex: none; }
.offre[aria-checked="true"] .rond-choix { border: 7px solid var(--p); }
.offre .o-titre { font-weight: 800; }
.offre .o-desc { font-size: .86rem; color: var(--doux); }
.offre .o-prix { margin-left: auto; font-weight: 900; font-size: 1.2rem; white-space: nowrap; }
.offre .ruban { position: absolute; top: -11px; right: 14px; background: var(--or); color: #0f172a; font-size: .7rem; font-weight: 900; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: #334155; margin: 14px 0; text-align: left; }
.consentement input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--p); }
.erreur { color: var(--rouge); font-weight: 600; font-size: .9rem; margin-top: 8px; }
.garanties { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: .8rem; color: var(--doux); margin-top: 12px; }

/* Résultats */
.res-entete { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.res-date { font-size: .84rem; color: var(--doux); }
.conclusion { border-left: 6px solid var(--p); background: var(--p-pale); border-radius: 12px; padding: 18px; margin: 16px 0; }
.conclusion.fort { border-color: var(--p-fonce); }
.conclusion.moyen { border-color: var(--or); background: #fffbeb; }
.conclusion.faible { border-color: #3b82f6; background: #eff6ff; }
.conclusion h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; }
.conclusion p + p { margin-top: 8px; }
.grille-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
@media (max-width: 640px) { .grille-chiffres { grid-template-columns: 1fr 1fr; } }
.chiffre { border: 1px solid var(--bord); border-radius: 12px; padding: 12px 8px; text-align: center; background: #fff; }
.chiffre .v { font-size: 1.6rem; font-weight: 900; color: var(--p-fonce); }
.chiffre .t { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--doux); line-height: 1.25; margin-top: 2px; }
.chiffre .n { font-size: .78rem; margin-top: 4px; }
.chiffre .n.alerte { color: var(--rouge); font-weight: 700; } .chiffre .n.ok { color: var(--vert); }
.bandeau { border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin: 10px 0; }
.bandeau.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.bandeau.attention { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.bandeau.vigilance { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.bandeau ul { padding-left: 18px; margin-top: 4px; }
.barre { margin-bottom: 12px; }
.barre-tete { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.barre-fond { height: 10px; background: var(--bord); border-radius: 99px; overflow: hidden; }
.barre-fond div { height: 100%; border-radius: 99px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--bord); border-radius: 12px; padding: 16px; background: #fff; }
.plan h4 { color: var(--p-fonce); margin-bottom: 8px; }
.plan ul { padding-left: 18px; font-size: .92rem; }
.plan li { margin-bottom: 6px; }
.avis-medical { font-size: .86rem; color: #475569; background: #f8fafc; border: 1px solid var(--bord); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.upsell { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border-radius: 16px; padding: 22px; margin: 18px 0; }
.upsell .etiquette { background: var(--or); color: #0f172a; }
.upsell h3 { font-size: 1.2rem; margin-bottom: 6px; }
.upsell p { color: #cbd5e1; font-size: .92rem; margin-bottom: 14px; }
.upsell .btn { background: #10b981; color: #fff; }
.outils { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pied { text-align: center; font-size: .78rem; color: var(--doux); padding: 26px 16px 40px; }
.pied a { color: var(--doux); }

@media print {
  .entete, .progression, .upsell, .outils, .boite-partage, .pied, .no-print { display: none !important; }
  body { background: #fff; }
  .carte { box-shadow: none; break-inside: avoid; }
}

/* ══ Moteur des tests (QI, personnalité, orientation…) — ajouté le 21/10/2026 ══ */
.lien-marque { color: #fff; text-decoration: none; display: inline-block; }
.fil { font-size: .82rem; color: var(--doux); margin: 18px 0 4px; }
.fil a { color: var(--doux); }
.contenu { font-size: .98rem; color: #1e293b; }
.contenu p { margin: 0 0 10px; }
.contenu ul { padding-left: 20px; margin: 0 0 10px; }
.contenu li { margin-bottom: 6px; }
.autres-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.autres-tests.grandes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 20px 0; }
.carte-test { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); transition: border-color .12s, transform .12s; }
.carte-test:hover { border-color: var(--p-clair); transform: translateY(-1px); }
.ct-icone { font-size: 1.7rem; line-height: 1; }
.ct-accroche { font-size: .82rem; color: var(--doux); }
#q-figure { margin-bottom: 16px; }
.suite { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 6px; }
.suite span { min-width: 54px; padding: 12px 10px; text-align: center; font-size: 1.35rem; font-weight: 800; background: #fff; border: 2px solid var(--bord); border-radius: 12px; }
.suite .manque { color: var(--p); border-style: dashed; border-color: var(--p); }
.matrice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 300px; margin: 0 auto; }
.matrice .case { background: #fff; border: 2px solid var(--bord); border-radius: 10px; aspect-ratio: 1; display: flex; }
.matrice .case.vide { border-style: dashed; border-color: var(--p); background: var(--p-pale); }
.matrice svg, .options-figures svg { width: 100%; height: 100%; }
.options-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; margin: 0 auto; }
.options-figures button { min-width: 0; }
.options-figures button { flex-direction: column; padding: 8px; gap: 4px; aspect-ratio: 1; justify-content: center; }
.options-figures button svg { max-width: 92px; max-height: 92px; }
.options-figures button[aria-pressed="true"] { background: var(--p-pale); color: var(--p-fonce); }
.options-figures button[aria-pressed="true"] .touche { background: var(--p); color: #fff; }
.options-nombres { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.options-nombres button { justify-content: center; font-size: 1.2rem; }
.prog-chrono { font-variant-numeric: tabular-nums; color: var(--p-fonce); }
.prog-chrono.urgent { color: var(--rouge); }
.plans-une { grid-template-columns: 1fr 1fr; margin-top: 4px; }
.plan p { font-size: .92rem; margin-bottom: 8px; }
.grille-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-top: 8px; }
.grille-detail span { text-align: center; border-radius: 8px; padding: 4px 0; font-size: .78rem; font-weight: 700; border: 1px solid var(--bord); }
.grille-detail span b { display: block; font-size: 1rem; }
.grille-detail .ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.grille-detail .ko { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
#r-detail h3 { margin: 18px 0 4px; font-size: 1rem; }
.champ-licence { width: 100%; height: 46px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 12px; font-size: 1rem; }
@media (max-width: 640px) { .plans-une { grid-template-columns: 1fr; } }

/* ══ Résultat gratuit enrichi (28/10/2026) ══ */
#apercu-texte p { font-size: 1.02rem; line-height: 1.55; color: #134e4a; margin-bottom: 6px; }
.apercu-visuel { margin: 10px 0 6px; }
.apercu-suite { font-size: .86rem !important; color: var(--doux) !important; margin-top: 8px; }
.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.zones span { text-align: center; font-size: .74rem; font-weight: 700; padding: 8px 2px; border-radius: 8px; background: #e2e8f0; color: #475569; }
.zones span.actif { background: var(--p); color: #fff; box-shadow: 0 4px 12px rgba(15, 118, 110, .3); transform: scale(1.06); }
.tendances { list-style: none; display: grid; gap: 6px; }
.tendances li { display: grid; grid-template-columns: 1fr auto 9.5em; align-items: center; gap: 10px; font-size: .9rem; }
.tendances em { font-style: normal; font-size: .8rem; color: var(--doux); }
.niveau { display: inline-flex; gap: 3px; }
.niveau i { width: 18px; height: 10px; border-radius: 3px; background: #e2e8f0; }
.niveau.bas i:nth-child(1), .niveau.moyen i:nth-child(-n+2), .niveau.haut i { background: var(--p); }
.code-riasec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.code-riasec div { background: #fff; border: 1px solid var(--p-bord); border-radius: 12px; padding: 10px; text-align: center; }
.code-riasec b { display: block; font-size: 1.7rem; color: var(--p); line-height: 1.1; }
.code-riasec strong { display: block; font-size: .88rem; }
.code-riasec span { display: block; font-size: .76rem; color: var(--doux); }
.code-riasec em { display: block; font-style: normal; font-size: .7rem; color: var(--p-fonce); margin-top: 4px; }
@media (max-width: 480px) { .tendances li { grid-template-columns: 1fr auto; } .tendances em { display: none; } .zones span { font-size: .66rem; } }

/* ══ Bloc « Pour aller plus loin » (affiliation, 28/10/2026) ══ */
.affiliation { background: #fff; border: 1px solid var(--bord); border-radius: var(--r); padding: 18px; margin: 18px 0; box-shadow: var(--ombre); }
.affiliation h3 { font-size: 1.05rem; margin-bottom: 10px; }
.aff-liens { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.aff-lien { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--bord); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--texte); background: var(--fond); }
.aff-lien:hover { border-color: var(--p-clair); }
.aff-lien span span { font-size: .84rem; color: var(--doux); }
.aff-icone { font-size: 1.5rem; line-height: 1; }
.aff-mention { font-size: .75rem; color: var(--doux); margin-top: 10px; }
