/* Quiz propriétaires : un écran par question, cellulaire d'abord. La couleur de marque vient de config.js (--marque). */
:root{
  --marque:#1f5f8b; --marque-texte:#fff;
  --fond:#f4f6f8; --carte:#fff; --texte:#16202b; --doux:#5d6977; --ligne:#dfe4ea;
  --ok:#1d7a4f; --erreur:#b3261e;
  --rayon:16px;
  --police:"Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--fond);color:var(--texte);font-family:var(--police);font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
[hidden]{display:none!important}

.app{min-height:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}

/* Barre du haut */
.barre{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:10px}
.retour{width:40px;height:40px;border:0;border-radius:50%;background:transparent;cursor:pointer;display:grid;place-items:center}
.retour:hover{background:var(--ligne)}
.barre .retour[hidden]{display:grid!important;visibility:hidden}  /* garde sa place : la marque reste centrée */
.retour svg{width:22px;height:22px;fill:none;stroke:var(--texte);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.marque{justify-self:center;font-weight:800;font-size:1rem;letter-spacing:-.01em;text-align:center}
/* Groupe GDL : nom écrit en or au lieu du logo (Olivier, 2026-11-10) */
.marque{color:var(--marque);text-transform:uppercase;letter-spacing:.06em}
.marque img{height:34px;width:auto;display:block}
.etape-num{justify-self:end;font-size:.78rem;color:var(--doux);font-variant-numeric:tabular-nums}
.progres{height:6px;background:var(--ligne);border-radius:3px;overflow:hidden}
.progres span{display:block;height:100%;width:0;background:var(--marque);border-radius:3px;transition:width .45s cubic-bezier(.2,.8,.2,1)}

/* Scène */
.scene{flex:1;position:relative;padding:22px 0 18px;overflow-x:clip}  /* le glissement d'entrée ne crée jamais de défilement horizontal */
.ecran{display:flex;flex-direction:column;gap:18px}
.ecran.entre{animation:entre .38s cubic-bezier(.2,.8,.2,1) both}
.ecran.entre-retour{animation:entreRetour .38s cubic-bezier(.2,.8,.2,1) both}
.ecran.sort{animation:sort .2s ease-in both}
@keyframes entre{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes entreRetour{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
@keyframes sort{to{opacity:0;transform:translateY(-6px)}}

.surtitre{font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--marque)}
h1{font-size:1.6rem;line-height:1.18;letter-spacing:-.02em;margin:0;text-wrap:balance}
.sous{margin:0;color:var(--doux);font-size:.98rem}

/* Cartes de choix (liste) */
.choix{display:flex;flex-direction:column;gap:10px}
.option{display:flex;align-items:center;gap:14px;width:100%;min-height:62px;padding:14px 16px;background:var(--carte);border:2px solid var(--ligne);border-radius:var(--rayon);
  text-align:left;cursor:pointer;font-weight:600;font-size:1.02rem;transition:border-color .15s,transform .12s,box-shadow .15s;-webkit-tap-highlight-color:transparent}
.option:hover{border-color:color-mix(in srgb,var(--marque) 45%,var(--ligne))}
.option:active{transform:scale(.98)}
.option:focus-visible{outline:3px solid color-mix(in srgb,var(--marque) 40%,transparent);outline-offset:2px}
.option .ico{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--marque) 10%,#fff)}
.option .ico svg{width:24px;height:24px;fill:none;stroke:var(--marque);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.option .txt{flex:1;display:flex;flex-direction:column;gap:2px}
.option .txt small{font-weight:500;color:var(--doux);font-size:.85rem}
.option .coche{flex:none;width:24px;height:24px;border-radius:50%;border:2px solid var(--ligne);display:grid;place-items:center;transition:all .15s}
.option.multi .coche{border-radius:7px}
.option .coche svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:3;opacity:0}
.option.choisi{border-color:var(--marque);background:color-mix(in srgb,var(--marque) 6%,#fff);box-shadow:0 6px 18px -10px var(--marque)}
.option.choisi .coche{background:var(--marque);border-color:var(--marque)}
.option.choisi .coche svg{opacity:1}
.option.pop{animation:pop .28s ease}
@keyframes pop{40%{transform:scale(1.025)}}

/* Tuiles avec photo (question 1) */
.tuiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tuile{position:relative;display:flex;flex-direction:column;background:var(--carte);border:2px solid var(--ligne);border-radius:var(--rayon);overflow:hidden;cursor:pointer;padding:0;text-align:left;
  transition:border-color .15s,transform .12s,box-shadow .15s;-webkit-tap-highlight-color:transparent}
.tuile:active{transform:scale(.97)}
.tuile:focus-visible{outline:3px solid color-mix(in srgb,var(--marque) 40%,transparent);outline-offset:2px}
.tuile .visuel{aspect-ratio:1/0.82;max-width:100%;background:color-mix(in srgb,var(--marque) 9%,#fff);display:grid;place-items:center}
.tuile .visuel{position:relative;overflow:hidden}
.tuile .visuel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}  /* la photo ne pousse jamais le nom hors de la tuile */
.tuile .visuel svg{width:46%;height:46%;fill:none;stroke:var(--marque);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tuile .nom{background:var(--carte);padding:11px 12px 12px;font-weight:700;font-size:.98rem;display:flex;justify-content:space-between;align-items:center;gap:8px}
.tuile .nom::after{content:"";width:18px;height:18px;flex:none;border-radius:50%;border:2px solid var(--ligne)}
.tuile.choisi{border-color:var(--marque);box-shadow:0 8px 22px -12px var(--marque)}
.tuile.choisi .nom::after{background:var(--marque);border-color:var(--marque);box-shadow:inset 0 0 0 3px #fff}

/* Champs */
.form-coord{gap:12px}
.form-coord .champ{gap:4px}
.form-coord .msg-erreur{min-height:0}
.champ{display:flex;flex-direction:column;gap:6px}
.champ label{font-weight:600;font-size:.9rem}
.champ input{width:100%;height:58px;padding:0 16px;font-size:1.15rem;background:var(--carte);border:2px solid var(--ligne);border-radius:var(--rayon);outline:none;transition:border-color .15s}
.champ input:focus{border-color:var(--marque)}
.champ.erreur input{border-color:var(--erreur);animation:secoue .3s}
.msg-erreur{color:var(--erreur);font-size:.88rem;min-height:1.2em}
@keyframes secoue{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.aide{font-size:.86rem;color:var(--doux);display:flex;gap:8px;align-items:flex-start}
.aide svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--ok);stroke-width:2;margin-top:1px}

.consent{display:flex;gap:12px;align-items:flex-start;font-size:.86rem;color:var(--doux);cursor:pointer;line-height:1.4}
.consent input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--marque)}
.consent a{color:var(--texte)}

/* Bouton principal */
.btn{width:100%;min-height:58px;border:0;border-radius:var(--rayon);background:var(--marque);color:var(--marque-texte);font-weight:700;font-size:1.08rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .12s,filter .15s,opacity .15s}
.btn:hover{filter:brightness(1.07)}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn:focus-visible{outline:3px solid color-mix(in srgb,var(--marque) 40%,transparent);outline-offset:2px}
.btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.btn .roue{width:20px;height:20px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:tourne .7s linear infinite}
@keyframes tourne{to{transform:rotate(360deg)}}

/* Petit mot entre deux questions */
.bulle{display:flex;gap:10px;align-items:center;background:color-mix(in srgb,var(--ok) 10%,#fff);color:var(--ok);border-radius:12px;padding:10px 12px;font-size:.9rem;font-weight:600;animation:entre .4s both}
.bulle svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4}

/* Écran d'analyse */
.analyse{display:flex;flex-direction:column;gap:14px;padding-top:8px}
.ligne-analyse{display:flex;gap:12px;align-items:center;font-weight:600;opacity:.35;transition:opacity .3s}
.ligne-analyse.fait{opacity:1}
.ligne-analyse .pt{flex:none;width:28px;height:28px;border-radius:50%;border:2px solid var(--ligne);display:grid;place-items:center;transition:all .25s}
.ligne-analyse.fait .pt{background:var(--ok);border-color:var(--ok)}
.ligne-analyse .pt svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:3;opacity:0}
.ligne-analyse.fait .pt svg{opacity:1}
.ligne-analyse.encours .pt{border-color:var(--marque);border-right-color:transparent;animation:tourne .8s linear infinite}

/* Écran final */
.final{text-align:center;align-items:center}
.final .rond{width:76px;height:76px;border-radius:50%;background:var(--ok);display:grid;place-items:center;animation:pop .5s ease both}
.final .rond svg{width:38px;height:38px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.etapes{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:10px;text-align:left;width:100%}
.etapes li{display:flex;gap:12px;align-items:flex-start;background:var(--carte);border:1px solid var(--ligne);border-radius:14px;padding:12px 14px}
.etapes b{flex:none;width:26px;height:26px;border-radius:50%;background:var(--marque);color:var(--marque-texte);display:grid;place-items:center;font-size:.85rem}
.equipe{margin:4px 0 0;width:100%;display:flex;flex-direction:column;gap:6px}
.equipe img{width:100%;max-height:300px;object-fit:cover;object-position:center 30%;border-radius:14px}
.equipe figcaption{font-size:.85rem;color:var(--doux)}
.galerie{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
.galerie img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}

/* Pied */
.pied{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;padding:12px 0 calc(14px + env(safe-area-inset-bottom,0px));font-size:.8rem;color:var(--doux)}
.pied span{display:inline-flex;align-items:center;gap:5px}
.pied svg{width:15px;height:15px;fill:none;stroke:var(--ok);stroke-width:2.2}
.pied .etoiles{color:#e3a008;letter-spacing:1px}
.pied a{color:var(--doux)}

@media (min-width:600px){h1{font-size:1.9rem}.scene{padding-top:36px}}

/* ===== Style « formulaire instantané Meta » (config.style = "formulaire", Olivier 2026-11-10) =====
   Fond gris Facebook, une carte blanche, police système, choix en liste avec bouton radio à gauche. */
.style-formulaire{--fond:#f0f2f5;--ligne:#ced0d4;--texte:#1c1e21;--doux:#65676b;--rayon:8px;
  --police:"Segoe UI Historic","Segoe UI",Helvetica,Arial,system-ui,-apple-system,sans-serif}
.style-formulaire .barre{padding-bottom:8px}
.style-formulaire .marque{font-size:.92rem}
.style-formulaire .progres{height:4px}
.style-formulaire .scene{padding:14px 0 18px}
.style-formulaire .ecran{background:#fff;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.12);padding:20px 16px 22px;gap:14px}
.style-formulaire .ecran.form-coord{background:none;box-shadow:none;padding:0}
.style-formulaire h1{font-size:1.22rem;line-height:1.3;letter-spacing:0;font-weight:700}
.style-formulaire .sous{font-size:.94rem}
.style-formulaire .surtitre{font-size:.75rem;letter-spacing:.04em}
/* Choix : liste de boutons radio, comme Meta */
.style-formulaire .choix{gap:8px}
.style-formulaire .option{min-height:50px;padding:12px 14px;border:1px solid var(--ligne);border-radius:8px;font-weight:500;font-size:.98rem;gap:12px;box-shadow:none}
.style-formulaire .option .ico{display:none}
.style-formulaire .option .coche{order:-1;width:20px;height:20px;border:2px solid #8a8d91}
.style-formulaire .option .coche svg{display:none}
.style-formulaire .option.multi .coche{border-radius:4px}
.style-formulaire .option.choisi{border-color:var(--marque);background:color-mix(in srgb,var(--marque) 7%,#fff);box-shadow:none}
.style-formulaire .option.choisi .coche{background:#fff;border-color:var(--marque);box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 10px var(--marque)}
.style-formulaire .option.multi.choisi .coche{background:var(--marque);box-shadow:none}
.style-formulaire .option.multi.choisi .coche svg{display:block;opacity:1}
.style-formulaire .option:hover{background:#f7f8fa}
.style-formulaire .option:active{transform:none}
/* Champs et bouton */
.style-formulaire .champ label{font-size:.85rem;color:var(--doux);font-weight:600}
.style-formulaire .champ input{height:48px;font-size:1rem;border-width:1px;border-radius:6px}
.style-formulaire .btn{min-height:48px;border-radius:6px;font-size:1rem}
.style-formulaire .bulle{border-radius:8px}
/* Écran d'intro : couverture, avatar, nom de la page, points */
.fi-intro{display:flex;flex-direction:column;gap:12px;margin:-20px -16px 0}
.fi-couverture{height:132px;border-radius:12px 12px 0 0;overflow:hidden;
  background:linear-gradient(135deg,#111 0%,#2a2416 55%,var(--marque) 130%)}
.fi-couverture img{width:100%;height:100%;object-fit:cover;display:block}
.fi-avatar{width:76px;height:76px;margin:-50px auto 0;border-radius:50%;border:4px solid #fff;overflow:hidden;display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,#f3dc8a,var(--marque) 70%);color:#111;font-weight:800;font-size:1.15rem;letter-spacing:.04em}
.fi-avatar img{width:100%;height:100%;object-fit:cover}
.fi-page{text-align:center;font-weight:700;font-size:.95rem;margin-top:-4px}
.fi-intro h1,.fi-intro .sous{text-align:center;padding:0 16px}
.fi-points{margin:2px 16px 4px;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:.95rem;color:var(--texte)}
.fi-intro .btn{width:auto;margin:6px 16px 0}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
