/* Pré-évaluation HAS · identité Velyria (encre #101D3A, crème #F4F1EA, orange #D96A32) */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2"); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

:root {
  color-scheme: light;
  --encre: #101D3A; --txt: #16213E; --creme: #F4F1EA; --blanc: #FFFFFF;
  --dim: #535C73; --dim-b: rgba(244,241,234,.78);
  --line: rgba(22,33,62,.14); --line-b: rgba(244,241,234,.16);
  --orange: #D96A32; --orange-f: #B04E1A; --btn: #B85016; --btn-h: #9E4413;
  --risque: #A61B1B; --vig: #8A5A00;
  --c1: #A61B1B; --c2: #D9822B; --c3: #7F9CC4; --c4: #16213E;
  --disp: "Space Grotesk", system-ui, sans-serif; --sans: "Inter", system-ui, sans-serif;
  --r: 14px; --max: 1120px; --lecture: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--txt); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--orange-f); text-underline-offset: 3px; }
a:hover { color: var(--btn-h); }
h1, h2, h3, h4 { font-family: var(--disp); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; color: var(--encre); }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.lecture { max-width: var(--lecture); }
.muet { color: var(--dim); }
.petit { font-size: .92rem; }
.sur { font-family: var(--disp); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-f); margin-bottom: 12px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--encre); }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 36px; width: auto; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: var(--dim-b); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 10px 0; transition: color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; }
.menu a.btn { color: #fff; padding: 10px 18px; }
.burger { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { display: none; position: fixed; inset: 72px 0 0 0; background: var(--encre); flex-direction: column; align-items: stretch; gap: 0; padding: 12px clamp(20px, 4vw, 40px) 40px; }
  .menu a { font-size: 1.15rem; padding: 16px 0; border-bottom: 1px solid var(--line-b); }
  .menu a.btn { margin-top: 20px; text-align: center; justify-content: center; border-bottom: 0; }
  body.menu-ouvert .menu { display: flex; }
  body.menu-ouvert { overflow: hidden; }
  body.menu-ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
  body.menu-ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 0; background: var(--btn); color: #fff; font-family: var(--disp); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--btn-h); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(176,78,26,.6); }
.btn:active { transform: none; }
.btn.sec { background: transparent; color: var(--encre); border: 1px solid var(--line); }
.btn.sec:hover { border-color: var(--encre); box-shadow: none; }
.btn[disabled], .btn.off { background: #D8D3C8; color: #4A5064; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .fl { transition: transform .2s; }
.btn:hover .fl { transform: translateX(3px); }
.lien { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: var(--encre); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien:hover { color: var(--orange-f); }

/* Accueil */
.hero { background: var(--encre); color: var(--creme); padding: clamp(48px, 9vw, 110px) 0 clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .sur { color: #F0A57C; }
.hero p.intro { font-size: 1.12rem; color: var(--dim-b); max-width: 58ch; margin-bottom: 28px; }
.hero p.tarif { max-width: 58ch; margin: 0 0 22px; padding: 12px 0 12px 16px; border-left: 3px solid var(--orange); color: var(--dim-b); font-size: .98rem; }
.hero p.tarif b { color: #fff; font-weight: 600; }
.hero p.tarif b.px { font-family: var(--disp); font-size: 1.25rem; }
.hero p.tarif small { font-size: .8rem; }
.hero p.tarif span { display: inline-block; margin-top: 4px; font-size: .92rem; }
.hero p.deja { margin: 16px 0 0; color: var(--dim-b); font-size: .95rem; }
.hero p.deja a { color: #F0A57C; }
@media (max-width: 600px) { .hero { padding-top: 32px; } .hero p.intro { font-size: 1rem; margin-bottom: 18px; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero .actions a.sec { color: var(--creme); border-color: var(--line-b); }
.hero .actions a.sec:hover { border-color: var(--creme); }
.faits { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.faits li { border-top: 1px solid var(--line-b); padding-top: 14px; color: var(--dim-b); font-size: .95rem; }
.faits b { display: block; font-family: var(--disp); color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: 2px; }
section.sec-pad { padding: clamp(56px, 8vw, 96px) 0; }
section.blanc { background: var(--blanc); }
.grille3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.carte { background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
section.blanc .carte { background: var(--creme); border-color: transparent; }
.carte .n { font-family: var(--disp); font-weight: 700; color: var(--orange-f); font-size: .85rem; letter-spacing: .12em; display: block; margin-bottom: 10px; }
.carte h3 { margin-bottom: 8px; }
.carte p:last-child { margin-bottom: 0; }
.deux { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .deux { grid-template-columns: 1fr 1fr; gap: 56px; } }
.liste { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.liste li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.liste li b { font-family: var(--disp); color: var(--encre); min-width: 110px; }
.cote-grille { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cote-grille li { display: flex; gap: 14px; align-items: center; background: var(--blanc); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.cote-grille b { font-family: var(--disp); font-size: 1.3rem; width: 28px; text-align: center; color: var(--encre); }
.avert { border-left: 3px solid var(--orange); background: rgba(217,106,50,.08); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--txt); }
.hero .avert { color: var(--dim-b); background: rgba(217,106,50,.12); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-family: var(--disp); font-weight: 600; font-size: 1.05rem; padding: 14px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-f); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--dim); }

/* Questionnaire */
.quiz { padding: clamp(28px, 5vw, 56px) 0 64px; }
.quiz .wrap { max-width: 760px; }
.etape { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--dim); margin-bottom: 10px; }
.progress { height: 6px; background: rgba(22,33,62,.1); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }
.qcrit { font-size: .88rem; color: var(--dim); margin: 0 0 10px; }
.qcrit b { color: var(--encre); font-weight: 600; }
.tag-imp { display: inline-block; font-family: var(--disp); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-f); border: 1px solid rgba(176,78,26,.45); border-radius: 99px; padding: 1px 9px; vertical-align: 2px; }
#qTexte { font-size: clamp(1.3rem, 3.2vw, 1.75rem); font-weight: 600; margin-bottom: 10px; outline: none; }
.regard { font-size: .95rem; color: var(--dim); margin-bottom: 22px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 16px; align-items: flex-start; width: 100%; min-height: 64px; padding: 14px 18px; background: var(--blanc); border: 1.5px solid var(--line); border-radius: 12px; text-align: left; cursor: pointer; font: inherit; color: var(--txt); transition: border-color .15s, background .15s, transform .15s; }
.opt:hover { border-color: var(--encre); }
.opt:active { transform: scale(.995); }
.opt .v { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; background: var(--creme); color: var(--encre); }
.opt b { display: block; font-family: var(--disp); font-weight: 600; color: var(--encre); }
.opt span.a { display: block; font-size: .92rem; color: var(--dim); }
.opt[aria-pressed="true"] { border-color: var(--encre); background: var(--encre); color: var(--creme); }
.opt[aria-pressed="true"] b { color: #fff; }
.opt[aria-pressed="true"] span.a { color: var(--dim-b); }
.opt[aria-pressed="true"] .v { background: var(--orange); color: #fff; }
.qnav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.qnav .nsp[aria-pressed="true"] { color: var(--orange-f); font-weight: 600; }
.sauve { font-size: .85rem; color: var(--dim); margin-top: 18px; }
.anim-q { animation: entree .22s ease both; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Résultat */
.res { padding: clamp(32px, 6vw, 64px) 0 72px; }
.res .wrap { max-width: 860px; }
.res section { margin-top: 44px; }
.gros { font-family: var(--disp); font-weight: 700; font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; color: var(--encre); letter-spacing: -.03em; margin: 8px 0 8px; }
.gros small { font-size: .4em; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.imp-liste { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.imp-liste li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; }
.imp-liste .code { font-family: var(--disp); font-weight: 700; color: var(--encre); }
.imp-liste .etat { font-size: .85rem; font-weight: 600; }
.etat.e1 { color: var(--risque); } .etat.e2 { color: var(--vig); } .etat.e3 { color: #36507A; }
.chap { background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 12px; }
.chap .tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chap .tete h3 { margin: 0; }
.chap .moy { font-family: var(--disp); font-weight: 700; font-size: 1.25rem; color: var(--encre); white-space: nowrap; }
.chap .moy small { font-weight: 500; color: var(--dim); font-size: .8rem; }
.barre { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(22,33,62,.08); margin: 12px 0 8px; gap: 2px; }
.barre span { display: block; min-width: 4px; }
.r1 { background: var(--c1); } .r2 { background: var(--c2); } .r3 { background: var(--c3); } .r4 { background: var(--c4); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--dim); align-items: center; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.prio { counter-reset: p; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.prio li { counter-increment: p; background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 18px 70px; position: relative; }
.prio li::before { content: counter(p); position: absolute; left: 22px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--disp); font-weight: 700; display: grid; place-items: center; }
.prio h3 { margin-bottom: 6px; }
.prio p { margin-bottom: 6px; }
.offre { background: var(--encre); color: var(--creme); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.offre h2 { color: #fff; }
.offre ul { padding-left: 20px; margin: 0 0 18px; color: var(--dim-b); }
.offre ul li { margin-bottom: 6px; }
.offre .prix { font-family: var(--disp); font-size: 2rem; font-weight: 700; color: #fff; margin: 8px 0 2px; }
.offre .prix small { font-size: .9rem; font-weight: 400; color: var(--dim-b); }
.offre a { color: #F0A57C; }
.offre label { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--dim-b); margin: 16px 0; cursor: pointer; }
.offre input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--orange); }
.champ { margin: 16px 0; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; color: #fff; }
.champ input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-b); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 17px; }
.offre .btn.sec { color: var(--creme); border-color: var(--line-b); }
.actions-bas { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 28px; }

.capture-mail { margin: 32px 0; padding: clamp(18px, 3vw, 26px); background: var(--blanc); border: 1px solid var(--line); border-radius: var(--r); }
.capture-mail h2 { font-size: 1.15rem; margin-bottom: 8px; }
.capture-mail .champ-mail { margin: 14px 0; max-width: 380px; }
.capture-mail .champ-mail label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--encre); }
.capture-mail .champ-mail input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--blanc); color: var(--txt); font: inherit; font-size: 16px; }
.capture-mail .case-mail { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0; cursor: pointer; font-size: .92rem; color: var(--dim); max-width: 480px; }
.capture-mail .case-mail input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--orange); }
.capture-mail .btn[disabled] { background: #D8D3C8; color: #4A5064; cursor: not-allowed; }

/* Pages de texte */
.texte { padding: clamp(40px, 6vw, 72px) 0 72px; }
.texte .wrap { max-width: 780px; }
.texte h2 { font-size: 1.3rem; margin-top: 36px; }

/* Pied de page */
.pied { background: var(--encre); color: var(--dim-b); padding: 40px 0 36px; font-size: .9rem; }
.pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: flex-start; }
.pied img { height: 32px; width: auto; margin-bottom: 10px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.pied a { color: var(--dim-b); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pied a:hover { color: #fff; }
.pied p { margin: 0 0 4px; max-width: 46ch; }

/* Apparition */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .entete, .pied, .noprint, .offre, .actions-bas { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .chap, .prio li, .imp-liste li { break-inside: avoid; }
  .rv { opacity: 1; transform: none; }
}
[tabindex="-1"]:focus { outline: none; }
main { min-height: calc(100vh - 72px - 220px); }
.offre .prix small { display: block; margin-top: 4px; font-size: .85rem; }
