/* Test « Quelle IA » : style C « Diagnostic » (maquette Claude Design du 30/09/2026). */
:root{
  --vert:#2D4A3A;--ivoire:#FAF6EE;--terra:#C8765A;--noir:#1A1A1A;
  --muted:rgba(26,26,26,.68);--line:rgba(45,74,58,.2);--tint:rgba(45,74,58,.06);--alerte:rgba(200,118,90,.1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--ivoire);color:var(--noir);font-family:'Inter',Aptos,Calibri,sans-serif;font-size:16px;line-height:1.5;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
button{font:inherit;color:inherit}
a{color:var(--vert)}
.serif{font-family:'Cormorant Garamond',Garamond,serif}

/* Bandeau */
.qh{background:var(--vert);color:var(--ivoire);padding:16px 20px 18px}
.qh-in{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.qh-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;min-height:26px}
.qh-brand{font-family:'Cormorant Garamond',Garamond,serif;font-size:22px;font-weight:600;color:var(--ivoire);text-decoration:none}
.qh-back{background:none;border:0;color:var(--ivoire);font-size:14px;cursor:pointer;padding:6px 0;min-height:32px}
.qh-step{font-size:13px;opacity:.8}
.qh-bar{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.qh-bar i{height:4px;border-radius:2px;background:rgba(250,246,238,.25)}
.qh-bar i.done{background:var(--ivoire)}
.qh-bar i.now{background:var(--terra)}
.qh-hero{display:flex;flex-direction:column;gap:6px;padding-top:4px}
.qh-hero h2{font-family:'Cormorant Garamond',Garamond,serif;font-weight:500;font-size:32px;line-height:1.1}
.qh-hero p{font-size:14.5px;opacity:.9}

/* Corps */
main{flex:1;display:flex;flex-direction:column;width:100%;max-width:720px;margin:0 auto;padding:22px 20px 24px}
.q-title{font-size:23px;font-weight:600;line-height:1.25;color:var(--vert);outline:none}
.q-hint{font-size:14px;color:var(--muted);margin-top:6px}
.q-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}
.count{font-size:13px;font-weight:600;color:var(--vert);background:rgba(45,74,58,.1);padding:4px 10px;border-radius:20px;white-space:nowrap}
.body{margin-top:16px;display:flex;flex-direction:column;gap:8px}
.sub{font-size:15.5px;font-weight:600;line-height:1.35;margin-top:14px}
.sub:first-child{margin-top:0}
.foot{margin-top:auto;padding-top:18px}
.foot-note{font-size:13px;color:var(--muted);text-align:center}
.btn{display:block;width:100%;text-align:center;background:var(--terra);color:var(--ivoire);font-weight:600;font-size:17px;text-decoration:none;padding:16px 20px;border-radius:12px;border:0;cursor:pointer}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn:focus-visible,.card:focus-visible,.pill:focus-visible,.tile:focus-visible,.seg button:focus-visible{outline:2px solid var(--vert);outline-offset:2px}

/* Cartes de choix */
.card{display:flex;gap:12px;align-items:center;width:100%;min-height:52px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--ivoire);text-align:left;cursor:pointer}
.card[aria-pressed=true],.card[aria-checked=true]{border:1.5px solid var(--vert);background:var(--tint)}
.card:disabled{opacity:.5;cursor:not-allowed}
.card .t{display:flex;flex-direction:column;gap:2px;flex:1}
.card .l{font-size:15px;font-weight:600;line-height:1.3}
.card .h{font-size:12.5px;line-height:1.4;color:var(--muted)}
.mk{flex:none;width:24px;height:24px;border-radius:50%;border:1.5px solid rgba(45,74,58,.4);display:flex;align-items:center;justify-content:center}
.card[aria-pressed=true] .mk,.pill[aria-pressed=true] .mk{background:var(--vert);border-color:var(--vert)}
.card[aria-pressed=true] .mk::after{content:"";width:6px;height:11px;border:solid var(--ivoire);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.card.radio .mk{order:-1}
.card.radio[aria-checked=true] .mk{border:6px solid var(--vert)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* Tuiles métier */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{display:flex;flex-direction:column;gap:10px;min-height:118px;padding:14px;border-radius:12px;border:1px solid var(--line);background:var(--ivoire);text-align:left;cursor:pointer}
.tile[aria-checked=true]{border:1.5px solid var(--vert);background:var(--tint)}
.tile .l{font-size:15px;font-weight:600;line-height:1.25}
.tile .h{font-size:12.5px;line-height:1.35;color:var(--muted)}
.tile-other{width:100%;min-height:48px;padding:14px;border-radius:12px;border:1px dashed rgba(45,74,58,.35);background:none;font-size:15px;font-weight:500;cursor:pointer;margin-top:10px}
.tile-other[aria-checked=true]{border-style:solid;border-color:var(--vert);background:var(--tint)}

/* Pastilles */
.pills{display:flex;flex-wrap:wrap;gap:7px}
.pill{min-height:44px;padding:11px 14px;border-radius:22px;border:1px solid rgba(45,74,58,.3);background:none;font-size:14.5px;font-weight:500;line-height:1.3;text-align:left;cursor:pointer}
.pill[aria-pressed=true],.pill[aria-checked=true]{background:var(--vert);border:1.5px solid var(--vert);color:var(--ivoire);font-weight:600}
.pill:disabled{color:rgba(26,26,26,.35);border-style:dashed;cursor:not-allowed}
.pill .long{display:none}
.opt-text{width:100%;height:48px;padding:0 14px;border-radius:10px;border:1px solid rgba(45,74,58,.35);background:var(--ivoire);font:inherit;font-size:16px}

/* Temps */
.trow{border-radius:12px;border:1px solid var(--line);padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.trow .l{font-size:15px;font-weight:600;line-height:1.3}
.seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.seg button{display:flex;flex-direction:column;gap:6px;min-height:44px;background:none;border:0;cursor:pointer;padding:0}
.seg button i{display:block;height:8px;border-radius:4px;background:rgba(45,74,58,.15)}
.seg button.fill i{background:var(--vert)}
.seg button span{font-size:12.5px;text-align:center;color:var(--muted)}
.seg button[aria-checked=true] span{font-weight:700;color:var(--vert)}
.total{border-radius:12px;background:rgba(45,74,58,.08);padding:12px 14px;display:flex;align-items:baseline;gap:10px}
.total b{font-family:'Cormorant Garamond',Garamond,serif;font-weight:600;font-size:36px;line-height:1;color:var(--vert)}
.total span{font-size:14px;color:var(--muted)}

/* Formulaire */
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:14px;font-weight:600}
.field label em{font-style:normal;font-weight:400;color:var(--muted)}
.field input{height:48px;padding:0 14px;border-radius:10px;border:1px solid rgba(45,74,58,.35);background:var(--ivoire);font:inherit;font-size:16px}
.field input[aria-invalid=true]{border-color:var(--terra)}
.err{font-size:13px;color:#8a3f28}
.optin{display:flex;gap:12px;align-items:flex-start;cursor:pointer;font-size:13.5px;line-height:1.5}
.optin input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--vert)}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* Attente */
.wait{flex:1;display:flex;flex-direction:column;justify-content:center;gap:24px;background:var(--vert);color:var(--ivoire);padding:40px 28px}
.wait h1{font-family:'Cormorant Garamond',Garamond,serif;font-weight:500;font-size:38px;line-height:1.1}
.wait ul{list-style:none;display:flex;flex-direction:column;gap:14px}
.wait li{display:flex;gap:12px;align-items:center;opacity:.5;transition:opacity .3s}
.wait li.ok{opacity:1}
.wait li i{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid rgba(250,246,238,.5)}
.wait li.ok i{background:var(--ivoire);border-color:var(--ivoire)}

/* Résultat */
.res{display:flex;flex-direction:column;gap:12px}
.tools{background:var(--vert);color:var(--ivoire);border-radius:16px;padding:22px 20px;display:flex;flex-direction:column;gap:16px}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;opacity:.8}
.tool{display:flex;gap:14px;align-items:flex-start}
.tool .n{flex:none;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;margin-top:10px}
.tool.first .n{background:var(--terra)}
.tool.second .n{border:1.5px solid rgba(250,246,238,.7);margin-top:4px}
.tool .nm{font-family:'Cormorant Garamond',Garamond,serif;line-height:1}
.tool.first .nm{font-size:52px}
.tool.second .nm{font-size:34px}
.tool p{font-size:14.5px;line-height:1.5;opacity:.9;margin-top:6px}
.sep{height:1px;background:rgba(250,246,238,.18)}
.hours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.box{border-radius:12px;border:1px solid var(--line);padding:14px;display:flex;flex-direction:column;gap:4px}
.box .k{font-size:12.5px;color:var(--muted)}
.box .v{font-family:'Cormorant Garamond',Garamond,serif;font-weight:600;font-size:40px;line-height:1;color:var(--terra)}
.small{font-size:12.5px;line-height:1.5;color:var(--muted)}
.gauge{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px}
.gauge i{height:10px;border-radius:2px;background:rgba(45,74,58,.13)}
.gauge i.on{background:var(--vert)}
.glab{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.glab b{color:var(--vert)}
.boxh{display:flex;justify-content:space-between;align-items:baseline;font-size:15px;font-weight:600;color:var(--vert)}
.boxh span{font-size:13px;font-weight:400;color:var(--muted)}
.alert{border-radius:12px;background:var(--alerte);padding:14px;font-size:14px;line-height:1.5}
.act{display:flex;gap:12px;font-size:14.5px;line-height:1.5}
.act .n{flex:none;width:24px;height:24px;border-radius:50%;background:var(--vert);color:var(--ivoire);font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}
.cta{border-radius:16px;border:1.5px solid var(--terra);padding:18px;display:flex;flex-direction:column;gap:10px}
.cta b{font-size:17px;color:var(--vert)}
.cta p{font-size:14.5px;color:var(--muted)}
.restart{background:none;border:0;color:var(--vert);text-decoration:underline;font-size:14px;cursor:pointer;padding:8px;align-self:center}

@media (max-width:999px){.res .col{display:contents}}
@media (min-width:760px){
  .qh{padding:22px 24px 24px}
  .qh-brand{font-size:26px}
  main{padding-top:44px}
  .q-title{font-size:30px}
  .q-hint{font-size:16px}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .tile{min-height:150px;padding:20px}
  .tile .l{font-size:17px}
  .tile .h{font-size:14px}
  .pill .short{display:none}
  .pill .long{display:inline}
  .foot{display:flex;justify-content:flex-end}
  .foot .btn{width:auto;padding:16px 36px}
}
@media (min-width:1000px){
  main.wide{max-width:1080px}
  .res.wide{display:grid;grid-template-columns:440px minmax(0,1fr);gap:28px;align-items:start}
  .res .col{display:flex;flex-direction:column;gap:14px}
  .tool.first .nm{font-size:60px}
}
/* Téléphone : chaque question tient sur un écran (règle du 30/09) */
@media (max-width:759px){
  .qh{padding:12px 20px 14px}
  .qh-in{gap:10px}
  main{padding:16px 16px 18px}
  .q-title{font-size:20px}
  .q-hint{font-size:13.5px;margin-top:4px}
  .body{margin-top:12px;gap:6px}
  .sub{margin-top:10px;font-size:15px}
  .foot{padding-top:12px}
  .btn{padding:14px 18px}
  .tiles{gap:8px}
  .tile{min-height:0;padding:12px;gap:6px}
  .tile svg{width:24px;height:24px}
  .tile .h{font-size:12px}
  .tile-other{margin-top:8px;min-height:44px;padding:11px}
  .card{min-height:48px;padding:9px 12px}
  .card .h{font-size:12px;line-height:1.35}
  .pills{gap:4px}
  .pill{padding:9px 11px;font-size:14px}
  .trow{padding:10px 12px;gap:8px}
  .total{padding:10px 12px}
  .total b{font-size:30px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
