/* DiagTraM, nouveau site 2027 : diagnostic en ligne (refait de zéro le 13/11/2026)
   Une question à la fois, beaucoup d'air, mêmes mouvements que le reste du site
   (couleur qui glisse sur les boutons, cartes qui se soulèvent, chiffres qui comptent). */

/* ===== Promesses sous le titre ===== */
.dg-promesses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;max-width:1040px;margin:0 auto}
.dg-pro{display:flex;gap:16px;align-items:flex-start;padding:26px 24px;background:#fff;border-radius:5px;box-shadow:var(--shadow);transition:transform .5s var(--ease),box-shadow .5s var(--ease)}
.dg-pro:hover{transform:translateY(-6px);box-shadow:var(--shadow-h)}
.dg-pro .ic{flex:none;display:grid;place-items:center;width:50px;height:50px;border-radius:5px;background:#EEF2FB;color:var(--brand);transition:background .5s var(--ease),color .5s var(--ease)}
.dg-pro:hover .ic{background:var(--brand);color:#fff}
.dg-pro .ic svg{width:24px;height:24px}
.dg-pro b{display:block;font-family:var(--f-head);font-weight:600;font-size:17px;color:var(--ink);margin-bottom:4px}
.dg-pro p{font-size:14.5px;line-height:1.55}

/* ===== Scène : une carte, une étape ===== */
.dg-zone{padding-block:90px 110px}
.dg-scene{max-width:900px;margin:0 auto;background:#fff;border-radius:8px;box-shadow:0 30px 70px -40px rgba(15,35,90,.45),var(--shadow);overflow:hidden;scroll-margin-top:110px}
.dg-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 40px;border-bottom:1px solid var(--line)}
.dg-top[hidden]{display:none}
.dg-etape{font-size:14px;color:var(--text)}
.dg-etape b{font-family:var(--f-head);font-weight:600;color:var(--ink)}
.dg-retour{display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:500;color:var(--brand);padding:8px 2px;transition:gap .3s var(--ease)}
.dg-retour:hover{gap:12px}
.dg-retour svg{width:16px;height:16px}
.dg-retour[hidden]{visibility:hidden}
/* progression : un segment par thème, qui se remplit */
.dg-prog{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:0 40px;margin-top:-1px}
.dg-prog[hidden]{display:none}
.dg-prog i{position:relative;height:4px;background:#E9EDF5;overflow:hidden}
.dg-prog i::after{content:"";position:absolute;inset:0;background:var(--brand);transform:scaleX(var(--p,0));transform-origin:left;transition:transform .6s var(--ease)}

.dg-body{padding:54px 64px 60px;min-height:460px;display:flex;flex-direction:column}
.dg-step{display:flex;flex-direction:column;flex:1}
.dg-step.in{animation:dgIn .55s var(--ease) both}
.dg-step.back.in{animation-name:dgInBack}
.dg-step.out{animation:dgOut .22s ease both}
@keyframes dgIn{from{opacity:0;transform:translateX(34px)}to{opacity:1;transform:none}}
@keyframes dgInBack{from{opacity:0;transform:translateX(-34px)}to{opacity:1;transform:none}}
@keyframes dgOut{to{opacity:0;transform:translateY(-10px)}}

/* titres de l'étape */
.dg-kicker{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;font-family:var(--f-head);font-weight:600;font-size:14px;color:var(--brand);background:#EEF2FB;padding:8px 14px 8px 10px;border-radius:5px;margin-bottom:22px}
.dg-kicker svg{width:18px;height:18px}
.dg-h{font-family:var(--f-head);font-weight:600;font-size:clamp(22px,2.4vw,30px);line-height:1.3;color:var(--ink);margin-bottom:12px}
.dg-sub{font-size:16px;line-height:1.65;color:var(--text);max-width:60ch}
.dg-why{display:flex;gap:10px;align-items:flex-start;margin-top:18px;font-size:14.5px;line-height:1.55;color:var(--text);max-width:62ch}
.dg-why svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--accent)}

/* ===== Accueil de la scène ===== */
.dg-hello{align-items:center;text-align:center;justify-content:center}
.dg-hello .dg-h{font-size:clamp(24px,2.8vw,34px);max-width:22ch}
.dg-hello .dg-sub{margin-inline:auto}
.dg-axes{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:30px 0 36px}
.dg-axes span{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--ink);padding:9px 14px;border:1px solid var(--line);border-radius:5px;opacity:0;transform:translateY(10px);animation:dgPop .5s var(--ease) forwards;animation-delay:calc(var(--k) * 80ms + 200ms)}
.dg-axes svg{width:17px;height:17px;color:var(--brand)}
@keyframes dgPop{to{opacity:1;transform:none}}
.dg-reprise{margin-top:18px;font-size:14px}
.dg-reprise button{color:var(--brand);font-weight:500;text-decoration:underline;text-underline-offset:3px}

/* ===== Profils : grandes cartes ===== */
.dg-profils{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:34px}
.dg-carte{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:26px 22px;border:1px solid var(--line);border-radius:5px;background:#fff;text-align:left;font-family:var(--f-head);font-weight:600;font-size:16px;line-height:1.35;color:var(--ink);transition:color .5s var(--ease),border-color .5s var(--ease),transform .5s var(--ease),box-shadow .5s var(--ease);opacity:0;animation:dgPop .5s var(--ease) forwards;animation-delay:calc(var(--k) * 60ms + 120ms)}
.dg-carte::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--navy);transform:scaleY(0);transform-origin:bottom;transition:transform .55s var(--ease)}
.dg-carte:hover,.dg-carte:focus-visible,.dg-carte.choisi{color:#fff;border-color:var(--navy);transform:translateY(-6px);box-shadow:var(--shadow-h)}
.dg-carte:hover::before,.dg-carte:focus-visible::before,.dg-carte.choisi::before{transform:scaleY(1)}
.dg-carte .ic{display:grid;place-items:center;width:52px;height:52px;border-radius:5px;background:#EEF2FB;color:var(--brand);transition:background .5s var(--ease),color .5s var(--ease)}
.dg-carte:hover .ic,.dg-carte.choisi .ic,.dg-carte:focus-visible .ic{background:rgba(255,255,255,.12);color:#fff}
.dg-carte .ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dg-carte .fl{position:absolute;right:20px;bottom:22px;width:18px;height:18px;opacity:0;transform:translateX(-8px);transition:opacity .4s,transform .4s var(--ease)}
.dg-carte:hover .fl,.dg-carte.choisi .fl{opacity:1;transform:none}

/* ===== Question : grandes touches de réponse, avec une jauge ===== */
.dg-q .dg-h{font-size:clamp(21px,2.3vw,28px);max-width:30ch}
.dg-reps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:38px}
.dg-rep{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:22px;min-height:132px;padding:20px 18px;border:1px solid var(--line);border-radius:5px;background:#fff;text-align:left;font-family:var(--f-head);font-weight:600;font-size:15.5px;line-height:1.3;color:var(--ink);transition:color .5s var(--ease),border-color .5s var(--ease),transform .4s var(--ease),box-shadow .5s var(--ease)}
.dg-rep::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--brand);transform:scaleY(0);transform-origin:bottom;transition:transform .5s var(--ease)}
.dg-rep:hover,.dg-rep:focus-visible{border-color:var(--brand);transform:translateY(-4px);box-shadow:var(--shadow)}
.dg-rep:hover::before,.dg-rep:focus-visible::before{transform:scaleY(.06)}
.dg-rep.choisi{color:#fff;border-color:var(--brand)}
.dg-rep.choisi::before{transform:scaleY(1)}
.dg-rep:active{transform:scale(.97)}
.dg-touche{position:absolute;top:14px;right:14px;font-family:var(--f-body);font-size:12px;font-weight:500;color:var(--text);border:1px solid var(--line);border-radius:4px;padding:1px 6px;transition:color .4s,border-color .4s}
.dg-rep.choisi .dg-touche{color:rgba(255,255,255,.8);border-color:rgba(255,255,255,.35)}
.dg-jauge{display:flex;align-items:flex-end;gap:4px;height:26px}
.dg-jauge i{width:8px;border-radius:2px;background:#E1E7F2;transition:background .4s var(--ease)}
.dg-jauge i:nth-child(1){height:10px}.dg-jauge i:nth-child(2){height:17px}.dg-jauge i:nth-child(3){height:26px}
.dg-jauge i.on{background:var(--brand)}
.dg-rep.choisi .dg-jauge i{background:rgba(255,255,255,.3)}
.dg-rep.choisi .dg-jauge i.on{background:#fff}
.dg-astuce{margin-top:22px;font-size:13.5px;color:var(--text)}
.dg-astuce kbd{font-family:var(--f-body);font-size:12px;border:1px solid var(--line);border-radius:4px;padding:1px 6px;color:var(--ink)}

/* ===== Résultat ===== */
.dg-res-haut{display:grid;grid-template-columns:auto minmax(0,1fr);gap:44px;align-items:center}
.dg-anneau{position:relative;width:190px;height:190px}
.dg-anneau svg{width:100%;height:100%;transform:rotate(-90deg)}
.dg-anneau circle{fill:none;stroke-width:12}
.dg-anneau .fond{stroke:#E9EDF5}
.dg-anneau .val{stroke:url(#dgGrad);transition:stroke-dashoffset 1.8s cubic-bezier(.25,.8,.25,1)}
.dg-anneau .chiffre{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.dg-anneau .chiffre b{font-family:var(--f-head);font-weight:700;font-size:48px;line-height:1;color:var(--ink)}
.dg-anneau .chiffre b small{font-size:22px;font-weight:600;margin-left:2px}
.dg-anneau .chiffre span{font-size:13px;color:var(--text);margin-top:6px}
.dg-niveau{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-head);font-weight:600;font-size:14px;color:#fff;background:var(--navy);padding:8px 14px;border-radius:5px;margin-bottom:16px}
.dg-niveau svg{width:16px;height:16px}
.dg-res-axes{display:grid;gap:16px;margin-top:44px}
.dg-ax{display:grid;grid-template-columns:34px minmax(0,1fr) 52px;gap:14px;align-items:center}
.dg-ax .ic{display:grid;place-items:center;width:34px;height:34px;border-radius:5px;background:#EEF2FB;color:var(--brand)}
.dg-ax .ic svg{width:18px;height:18px}
.dg-ax .t{font-size:15px;color:var(--ink);margin-bottom:7px}
.dg-ax .barre{height:8px;background:#E9EDF5;border-radius:2px;overflow:hidden}
.dg-ax .barre i{display:block;height:100%;width:0;border-radius:2px;background:linear-gradient(90deg,var(--accent),var(--brand));transition:width 1.4s var(--ease);transition-delay:calc(var(--k) * 120ms + 300ms)}
.dg-ax .v{font-family:var(--f-head);font-weight:600;font-size:16px;color:var(--ink);text-align:right}
.dg-lecture{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:36px}
.dg-lec{display:flex;gap:14px;padding:20px;border-radius:5px;background:var(--alt)}
.dg-lec .ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:5px;background:#fff;color:var(--brand)}
.dg-lec .ic svg{width:20px;height:20px}
.dg-lec small{display:block;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--text);margin-bottom:4px}
.dg-lec b{font-family:var(--f-head);font-weight:600;font-size:15.5px;line-height:1.35;color:var(--ink)}

/* ===== Formulaire « recevoir mon analyse » ===== */
.dg-recevoir{margin-top:48px;padding-top:44px;border-top:1px solid var(--line)}
.dg-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin-top:28px}
.dg-f{display:grid;gap:7px;align-content:start}
.dg-f.plein{grid-column:1/-1}
.dg-f label,.dg-f .lab{font-size:14px;font-weight:500;color:var(--ink)}
.dg-f label i,.dg-f .lab i{font-style:normal;color:var(--brand)}
.dg-f input[type=text],.dg-f input[type=email],.dg-f input[type=tel],.dg-f textarea{width:100%;font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1px solid #D7DDE8;border-radius:5px;padding:13px 14px;transition:border-color .3s,box-shadow .3s}
.dg-f textarea{min-height:96px;resize:vertical}
.dg-f input:focus,.dg-f textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px rgba(9,50,157,.12)}
.dg-f .err{display:none;font-size:13px;color:#B42318}
.dg-f.bad input[type=text],.dg-f.bad input[type=email]{border-color:#B42318}
.dg-f.bad .err{display:block}
.dg-choix{display:flex;flex-wrap:wrap;gap:10px}
.dg-choix label{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border:1px solid var(--line);border-radius:5px;font-size:14.5px;font-weight:400;color:var(--ink);cursor:pointer;transition:color .45s var(--ease),border-color .45s}
.dg-choix label::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--brand);transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease)}
.dg-choix label svg{width:16px;height:16px}
.dg-choix input{position:absolute;opacity:0;pointer-events:none}
.dg-choix label:hover{border-color:var(--brand)}
.dg-choix label:has(input:checked){color:#fff;border-color:var(--brand)}
.dg-choix label:has(input:checked)::before{transform:scaleX(1);transform-origin:left}
.dg-choix label:has(input:focus-visible){box-shadow:0 0 0 3px rgba(9,50,157,.2)}
.dg-accord{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.55;color:var(--text);cursor:pointer}
.dg-accord input{flex:none;width:20px;height:20px;margin-top:1px;accent-color:var(--brand)}
.dg-accord a{color:var(--brand);font-weight:500;text-decoration:none;transition:color .3s}
.dg-accord a:hover{color:var(--navy)}
.dg-accord i{font-style:normal;color:var(--brand);white-space:nowrap}
.dg-f.bad .dg-accord{color:#B42318}
.dg-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.dg-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:30px}
.dg-actions.centre{justify-content:center}
.dg-note{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--text)}
.dg-note svg{width:14px;height:14px;color:var(--brand)}
.dg-scene .btn[disabled]{opacity:.6;pointer-events:none}
.dg-scene .btn svg{width:18px;height:18px}
.dg-msg{margin-top:14px;font-size:14px;color:#B42318}

/* ===== Merci ===== */
.dg-merci{align-items:center;text-align:center;justify-content:center}
.dg-merci .ok{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#EEF2FB;color:var(--brand);margin-bottom:26px}
.dg-merci .ok svg{width:40px;height:40px;stroke-dasharray:30;stroke-dashoffset:30;animation:dgTrait .7s .25s var(--ease) forwards}
@keyframes dgTrait{to{stroke-dashoffset:0}}
.dg-merci .dg-sub{margin:0 auto}
.dg-suite{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:34px;text-align:left;width:100%}
.dg-suite div{padding:18px;border-radius:5px;background:var(--alt);font-size:14.5px;line-height:1.5}
.dg-suite b{display:block;font-family:var(--f-head);font-weight:600;font-size:22px;color:var(--brand);margin-bottom:6px}

/* ===== Tablette et téléphone ===== */
@media (max-width:900px){
  .dg-promesses{grid-template-columns:minmax(0,1fr);gap:14px;max-width:560px}
  .dg-profils{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dg-reps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dg-res-haut{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:26px}
  .dg-suite{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .dg-zone{padding-block:40px 60px}
  .dg-scene{border-radius:6px}
  .dg-top{padding:14px 18px}
  .dg-prog{padding:0 18px}
  .dg-body{padding:28px 20px 32px;min-height:0}
  .dg-pro{padding:18px}
  .dg-pro b{font-size:15.5px}
  .dg-pro p{font-size:14px}
  .dg-h{font-size:20px}
  .dg-q .dg-h{font-size:18.5px}
  .dg-hello .dg-h{font-size:21px}
  .dg-sub{font-size:15px}
  .dg-why{font-size:13.5px}
  .dg-kicker{font-size:12.5px;margin-bottom:16px}
  .dg-axes{gap:8px;margin:22px 0 26px}
  .dg-axes span{font-size:12.5px;padding:7px 10px}
  .dg-profils{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:24px}
  .dg-carte{flex-direction:row;align-items:center;gap:14px;padding:12px 14px;font-size:14.5px}
  .dg-carte .ic{width:40px;height:40px}
  .dg-carte .ic svg{width:20px;height:20px}
  .dg-carte .fl{top:50%;bottom:auto;margin-top:-9px}
  .dg-reps{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:26px}
  .dg-rep{flex-direction:row-reverse;align-items:center;justify-content:flex-end;gap:16px;min-height:0;padding:15px 16px;font-size:15px}
  .dg-touche,.dg-astuce{display:none}
  .dg-anneau{width:156px;height:156px}
  .dg-anneau .chiffre b{font-size:38px}
  .dg-lecture,.dg-form{grid-template-columns:minmax(0,1fr)}
  .dg-ax{grid-template-columns:30px minmax(0,1fr) 44px;gap:10px}
  .dg-ax .t{font-size:13.5px}
  .dg-actions .btn{width:100%}
}
@media (prefers-reduced-motion: reduce){
  .dg-step.in,.dg-step.out,.dg-axes span,.dg-carte{animation:none!important;opacity:1;transform:none}
  .dg-anneau .val,.dg-ax .barre i{transition:none}
  .dg-merci .ok svg{stroke-dashoffset:0}
}

/* Les trois indications (5 minutes, confidentiel, résultat immédiat) : une seule ligne, pas des cartes,
   pour ne pas ressembler à des choix à cliquer (demande de Jimmy, 13/11) */
.dg-promesses{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:0;max-width:900px;margin:0 auto;padding:6px;border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.dg-pro{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 18px;background:none;box-shadow:none;border-radius:0;transform:none!important}
.dg-pro + .dg-pro{border-left:1px solid var(--line)}
.dg-pro:hover{box-shadow:none}
.dg-pro .ic{width:38px;height:38px;border-radius:50%}
.dg-pro .ic svg{width:19px;height:19px}
.dg-pro b{font-size:15.5px;margin:0;white-space:nowrap}
.dg-pro p{font-size:13.5px;line-height:1.4}
.dg-pro > div{min-width:0}
@media (max-width:900px){
  .dg-promesses{max-width:none}
  .dg-pro p{display:none}
}
@media (max-width:600px){
  .dg-promesses{padding:4px;border-radius:12px}
  .dg-pro{flex-direction:column;gap:6px;padding:10px 4px;text-align:center}
  .dg-pro .ic{width:32px;height:32px}
  .dg-pro .ic svg{width:16px;height:16px}
  .dg-pro b{font-size:12.5px}
}

/* les six thèmes de l'accueil du diagnostic sont aussi des indications : fond doux, sans cadre de bouton */
.dg-axes span{border:0;background:var(--alt);color:var(--text)}

/* Le questionnaire se voit dès l'arrivée : les indications passent juste au-dessus de lui,
   et les espaces sont resserrés (demande de Jimmy, 13/11) */
.dg-zone{padding-block:44px 90px}
.dg-zone .dg-promesses{margin-bottom:18px}
.dg-zone .dg-pro[data-reveal]{opacity:1;transform:none}
.dg-hello .dg-axes{margin:22px 0 26px}
.dg-body{min-height:0;padding-top:42px;padding-bottom:44px}
@media (max-width:600px){
  .dg-zone{padding-block:20px 50px}
  .dg-zone .dg-promesses{margin-bottom:12px}
  .dg-pro{padding:10px 6px}
  .dg-pro b{white-space:normal;line-height:1.25;font-size:12px}
  .dg-body{padding:24px 18px 28px}
  .dg-hello .dg-sub{font-size:14.5px}
  /* les six thèmes : deux colonnes compactes, de simples étiquettes */
  .dg-axes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:18px 0 22px;width:100%}
  .dg-axes span{justify-content:flex-start;text-align:left;font-size:12px;line-height:1.3;padding:8px 9px;gap:7px}
  .dg-axes svg{flex:none;width:15px;height:15px}
}
/* les indications sont SOUS la carte du questionnaire */
.dg-zone .dg-promesses{margin:20px auto 0}
@media (max-width:600px){.dg-zone .dg-promesses{margin-top:14px}}
/* « Résultat immédiat » passe sur deux lignes plutôt que de toucher les bords */
@media (max-width:600px){.dg-pro b{max-width:92px;margin-inline:auto}}
/* page Diagnostic : en-tête plus court, pour voir le bouton « Commencer » sans faire défiler */
.p-diagnostic .phero-in{padding-block:84px 64px}
@media (max-width:700px){.p-diagnostic .phero-in{padding-block:46px 40px}}

/* Ordinateur : les questions prennent toute la largeur de la carte (2 lignes au lieu de 3), retour de Jimmy */
.dg-q .dg-h{max-width:none;text-wrap:pretty}
.dg-hello .dg-h{max-width:30ch}
.dg-sub,.dg-why{max-width:72ch}
