/* Cabinet Samson & Weil. Bleu royal : la marque. Bleu vif : le temps. Vert empire : l'action. */
:root {
  --royal: #175199;
  --royal-d: #113f79;
  --vif: #12a5df;
  --vif-clair: #5ccbf5;
  --vif-pale: #bfe9fa;
  --vert: #00561b;
  --vert-d: #003f14;
  --encre: #0f2f5f;
  --texte: #3a4f69;
  --ligne: #d5e0ec;
  --pale: #eef4fa;
  --blanc: #fff;
  --alerte: #b3261e;
  --alerte-clair: #ffb4a8;
  --nuit: #181d29;
  --serif: "Baskervville", "Baskerville", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 1.125rem/1.65 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; color: var(--royal); letter-spacing: -.012em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.6rem); }
h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.008em; }
p { margin: 0; }
a { color: var(--vert); text-underline-offset: .16em; }
a:hover { color: var(--vert-d); }
ul, ol { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--vif); outline-offset: 2px; border-radius: 3px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.skip { position: absolute; left: 12px; top: -60px; background: var(--encre); color: #fff; padding: 10px 16px; z-index: 50; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- En-tête ---------- */
.top { background: var(--blanc); position: relative; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 84px; }
@media (min-width: 1280px) { .top-in { gap: 28px; min-height: 92px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-af { width: 50px; height: auto; }
.brand-nom { width: 140px; height: auto; }
.nav { display: none; flex: 1; align-items: center; justify-content: center; gap: 30px; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:hover { color: var(--royal); text-decoration: underline; }
.nav a[aria-current] { color: var(--royal); font-weight: 600; }
.top-tel { display: none; color: var(--vert); font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-tel:hover { text-decoration: underline; }
.menu { margin-left: 0; }
@media (max-width: 380px) { .brand-nom { width: 118px; } .brand-af { width: 42px; } }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 14px; border: 1px solid var(--ligne); border-radius: 10px; color: var(--royal); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: 1px solid var(--ligne); padding: 8px 20px 16px; box-shadow: 0 18px 30px -18px rgba(15, 47, 95, .35); }
.menu-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ligne); color: var(--encre); text-decoration: none; font-weight: 500; }
.menu-panel a:last-child { border-bottom: 0; }
@media (min-width: 420px) { .brand-nom { width: 190px; } }
.brand .on-dark { display: none; }
@media (min-width: 1280px) {
  .brand-nom { width: 215px; }
  .nav { display: flex; gap: 24px; }
  .menu { display: none; }
}
body.page-dark .top { position: absolute; left: 0; right: 0; top: 0; background: none; }
body.page-dark .brand .on-light { display: none; }
body.page-dark .brand .on-dark { display: block; }
body.page-dark .nav a, body.page-dark .top-call b { color: #fff; }
body.page-dark .top-call small { color: #c9d7ea; }
body.page-dark .menu summary { color: #fff; border-color: rgba(255, 255, 255, .45); }
body.page-dark .menu-panel a { color: var(--encre); }

/* ---------- Barre d'actions mobile ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--blanc); border-top: 1px solid var(--ligne); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 6px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .96rem; text-align: center; line-height: 1.1; color: var(--royal); }
.tabbar a.tab-main { background: var(--vert); color: #fff; }
body.has-tabbar { padding-bottom: 76px; }
@media (min-width: 980px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* ---------- Boutons ---------- */
.btn-primary, .btn-secondary, .btn-invert {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 26px; border-radius: 12px;
  font: 600 1.0313rem/1.15 var(--sans); text-decoration: none; cursor: pointer; text-align: center; border: 1.5px solid transparent;
}
.btn-primary { background: var(--vert); color: #fff; }
.btn-primary:hover { background: var(--vert-d); color: #fff; }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-secondary { background: #fff; color: var(--royal); border-color: var(--royal); }
.btn-secondary:hover { background: var(--pale); color: var(--royal-d); }
.btn-invert { background: #fff; color: var(--royal); }
.btn-invert:hover { background: var(--pale); color: var(--royal-d); }
.btn-back, .btn-link { background: none; border: 0; padding: 10px 4px; color: var(--royal); font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: .16em; }
.btn-link { display: block; margin: 14px auto 0; font-weight: 500; }

/* ---------- Le panneau cintré ---------- */
.sign { background: var(--royal); color: #fff; border-radius: 235px 235px 0 0; padding: 48px 22px 18px; }
.sign-in { display: block; }
.sign-title { font: 400 1.75rem/1.15 var(--serif); color: #fff; letter-spacing: -.01em; padding-bottom: 10px; border-bottom: 1px solid #5b86c0; }
.sign-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 50px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid #3a6db0; color: #fff; font: 500 1rem/1.25 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.sign-row:last-child { border-bottom: 0; }
.sign-row:hover, .sign-row:active { color: #fff; }
.sign-row:hover .sign-name { text-decoration: underline; text-underline-offset: .18em; }
.sign-row:focus-visible { outline: 3px solid var(--vif-pale); outline-offset: 2px; }
.sign-delay { color: var(--vif-pale); font-weight: 500; white-space: nowrap; font-size: 1.03rem; }
.sign-foot { font-size: .875rem; line-height: 1.35; padding-top: 10px; color: #d5e6f7; }
@media (min-width: 720px) { .sign { padding: 52px 40px 22px; } }

.flow .sign { padding-top: 92px; border-radius: 175px 175px 0 0; }
.flow .sign-title { text-align: center; }
@media (min-width: 720px) { .flow .sign { border-radius: 300px 300px 0 0; padding-top: 110px; } }
.ring { position: relative; width: 148px; height: 148px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #3a6db0; stroke-width: 5; }
.ring-arc { fill: none; stroke: var(--vif-clair); stroke-width: 5; stroke-linecap: round; }
.ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 500 2.75rem/1 var(--sans); letter-spacing: -.025em; color: #fff; }
.ring-num small { font: 500 .84rem/1 var(--sans); letter-spacing: 0; margin-top: 4px; }
.ring-note { margin: 14px auto 24px; max-width: 360px; text-align: center; font-size: .92rem; line-height: 1.4; color: #d5e6f7; }

/* ---------- Accueil ---------- */
.hero-grid { display: grid; gap: 32px; padding-top: 8px; }
.hero-text > p { margin-top: 22px; max-width: 32em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--texte); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; }
.hero-actions .plain { font-weight: 600; }
.hero-credit { margin-top: clamp(26px, 3.6vw, 50px) !important; font-size: .97rem !important; color: var(--texte); }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 470px; gap: 60px; align-items: end; padding-top: 18px; }
  .hero-text { padding-bottom: 88px; }
  .hero-text h1 { white-space: nowrap; font-size: clamp(3.4rem, 4.6vw, 4.2rem); }
}

.steps { background: var(--pale); }
.steps-in { display: grid; gap: 30px 56px; padding-top: 56px; padding-bottom: 56px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--texte); max-width: 30em; }
@media (min-width: 860px) { .steps-in { grid-template-columns: repeat(3, 1fr); padding-top: 72px; padding-bottom: 76px; } }

.duo { position: relative; color: #fff; background: var(--nuit); }
.duo-photo { height: 58vw; max-height: 480px; background: url("img/associes.jpg") center top/cover no-repeat; }
.duo-text { padding: 30px 0 50px; }
.duo h2, .duo h3 { color: #fff; }
.duo h2 { max-width: 13em; }
.duo-people { display: grid; gap: 24px; margin-top: 28px; max-width: 560px; }
.duo-people p { margin-top: 8px; color: #d9e1ec; font-size: 1rem; line-height: 1.55; }
.duo-link { display: inline-block; margin-top: 28px; color: #fff; font-weight: 600; }
.duo-link:hover { color: var(--vif-pale); }
@media (min-width: 1320px) {
  .duo { background: #1a1f2b url("img/associes-large.jpg") right top/cover no-repeat; min-height: clamp(560px, 41vw, 720px); display: flex; align-items: center; }
  .duo-photo { display: none; }
  .duo-text { padding: 44px 0; width: 100%; }
  .duo-text-in { max-width: 430px; }
  .duo h2 { font-size: 2.7rem; }
  .duo-people { margin-top: 22px; gap: 18px; }
}

.section { padding: 64px 0; }
@media (min-width: 720px) { .section { padding: 88px 0; } }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--texte); }

.domain-list { list-style: none; display: grid; column-gap: 72px; border-top: 1px solid var(--royal); }
.domain-list li { border-bottom: 1px solid var(--ligne); }
.domain-list a { display: block; padding: 18px 0; text-decoration: none; color: var(--encre); }
.domain-list strong { display: block; font: 400 1.4rem/1.15 var(--serif); color: var(--royal); }
.domain-list a:hover strong { text-decoration: underline; text-underline-offset: .12em; }
.domain-list span { display: block; margin-top: 3px; color: var(--texte); font-size: 1rem; }
@media (min-width: 860px) { .domain-list { grid-template-columns: 1fr 1fr; } }

.rennes { background: var(--pale); }
.rennes-in { display: grid; gap: 32px 72px; align-items: end; padding-top: 56px; }
.rennes-photo { width: min(100%, 300px); aspect-ratio: 4 / 5; border-radius: 150px 150px 0 0; background: url("img/parlement.jpg") center top/cover no-repeat; }
.rennes-cols { display: grid; gap: 28px 56px; padding-bottom: 56px; }
.rennes-cols h3 { margin-bottom: 8px; }
.rennes-cols p { color: var(--texte); }
.rennes-cols p + p { margin-top: 8px; }
@media (min-width: 860px) {
  .rennes-in { grid-template-columns: 300px 1fr; }
  .rennes-cols { grid-template-columns: 1fr 1fr; padding-bottom: 72px; }
}

.band { background: var(--royal); color: #fff; }
.band .wrap { padding-top: 46px; padding-bottom: 46px; display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; max-width: 15em; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.band a.band-tel { color: #fff; font: 600 1.3rem/1.1 var(--sans); text-decoration: none; white-space: nowrap; }
.band a.band-tel:hover { text-decoration: underline; }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--pale); padding: 38px 0 44px; }
.crumbs { font-size: .94rem; color: var(--texte); margin-bottom: 12px; }
.crumbs a { color: var(--texte); }
.page-head h1 { max-width: 17em; }
.page-head .lead { margin-top: 14px; font-size: 1.16rem; max-width: 38em; color: var(--texte); }
.page-body { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 980px) {
  .page-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; padding-top: 60px; padding-bottom: 96px; align-items: start; }
  .aside { position: sticky; top: 24px; }
}
.prose { max-width: 42em; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.15em; margin-top: 10px; }
.prose li { margin-top: 7px; }
.prose li::marker { color: var(--vif); }
.prose table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.prose th { font-weight: 600; color: var(--royal); border-bottom-color: var(--royal); }
.prose td.num { white-space: nowrap; font-weight: 500; }

.aside-sign { background: var(--royal); color: #fff; border-radius: 170px 170px 0 0; padding: 62px 26px 26px; }
.aside-sign h2 { font-size: 1.7rem; color: #fff; text-align: center; }
.aside-sign p { margin-top: 10px; font-size: .98rem; color: #d5e6f7; text-align: center; }
.aside-sign .btn-invert { display: flex; margin-top: 18px; }
.aside-sign a.aside-tel { display: block; text-align: center; margin-top: 12px; color: #fff; font: 600 1.15rem/1.2 var(--sans); text-decoration: none; padding: 6px; }
.aside-sign a.aside-tel:hover { text-decoration: underline; }

/* ---------- Le cabinet ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
.team figure { margin: 0; }
.team img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; background: #2a3448; }
.team figcaption { margin-top: 14px; }
.team strong { display: block; font: 400 1.5rem/1.15 var(--serif); color: var(--royal); }
.team span { display: block; margin-top: 3px; font-size: .97rem; color: var(--texte); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.bios { display: grid; gap: 32px 72px; margin-top: 56px; }
.bios p { margin-top: 10px; color: var(--texte); max-width: 36em; }
.bios h2 { font-size: 1.7rem; }
.bios p + p { margin-top: 10px; }
@media (min-width: 860px) { .bios { grid-template-columns: 1fr 1fr; } }

.todo { background: #fff0b8; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: var(--encre); }

/* ---------- Application : parcours ---------- */
.flow-page { background: var(--pale); min-height: 70vh; }
.flow { max-width: 640px; margin: 0 auto; padding: 22px 20px 64px; }
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.progress p { font-size: .94rem; color: var(--texte); white-space: nowrap; }
.bars { display: flex; gap: 5px; flex: 1; }
.bar { flex: 1; height: 5px; border-radius: 3px; background: var(--ligne); }
.bar.on { background: var(--royal); }
.flow-card { background: var(--blanc); border-radius: 18px; padding: 24px 20px; }
@media (min-width: 720px) { .flow-card { padding: 36px; } }
.flow-card h1 { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); }
.flow-doc { color: var(--texte); font-weight: 500; margin-bottom: 6px; }
.flow-lead { margin-top: 8px; color: var(--texte); }
.flow-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.flow-actions .btn-primary { flex: 0 1 auto; min-width: 170px; }
.flow-actions .btn-primary:only-child { margin-left: auto; }

.field { display: block; margin-top: 18px; }
.field > span { display: block; font-weight: 600; margin-bottom: 5px; }
.field small { display: block; margin-top: 5px; color: var(--texte); font-size: .92rem; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 13px; font: 400 1.0625rem/1.3 var(--sans); color: var(--encre); background: #fff; border: 1.5px solid #8ea2bc; border-radius: 10px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--vif); outline-offset: 1px; border-color: var(--royal); }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-error { color: var(--alerte); font-weight: 500; margin-top: 12px; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-note { margin-top: 18px; font-size: .92rem; line-height: 1.45; color: var(--texte); }

.due { margin-top: 20px; padding: 40px 22px 24px; border-radius: 170px 170px 0 0; background: var(--royal); color: #fff; text-align: center; }
.due .ring { width: 128px; height: 128px; }
.due .ring-num { font-size: 2.4rem; }
.due-title { margin-top: 14px; font: 600 1.25rem/1.25 var(--sans); }
.due-sub { margin-top: 4px; color: #d5e6f7; }
.due-note { margin-top: 10px; font-size: .94rem; line-height: 1.45; color: #d5e6f7; }
.due.soon .ring-arc, .due.late .ring-arc { stroke: var(--alerte-clair); }
.due.soon .due-sub, .due.late .due-sub { color: var(--alerte-clair); font-weight: 500; }
.due a { color: #fff; }

.drop { margin-top: 18px; padding: 18px; border: 1.5px dashed #8ea2bc; border-radius: 12px; background: var(--pale); text-align: center; }
.drop.over { border-color: var(--royal); background: #deebf8; }
.drop small { display: block; margin-top: 10px; color: var(--texte); font-size: .92rem; }
.drop-actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .drop-actions { grid-template-columns: 1fr 1fr; } }
@media (hover: hover) and (pointer: fine) {
  .file-cam { display: none; }
  .drop-actions { grid-template-columns: 1fr; justify-items: center; }
}
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; width: 100%; height: 100%; }
.file-btn:focus-within { outline: 3px solid var(--vif); outline-offset: 2px; }
.file-list { list-style: none; margin-top: 12px; }
.file-list:empty { display: none; }
.file-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-size { color: var(--texte); font-size: .92rem; white-space: nowrap; }
.file-del { background: none; border: 0; color: var(--alerte); font: 500 .95rem/1 var(--sans); cursor: pointer; padding: 8px 0 8px 6px; text-decoration: underline; }

.done h1::before, .done > h2:first-child::before {
  content: ""; display: block; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.6'/%3E%3C/svg%3E") center/26px no-repeat;
}
.done .ref { margin-top: 10px; font-size: 1.08rem; }
.done h2 { font-size: 1.6rem; margin-top: 24px; }
.done ul { margin-top: 8px; padding-left: 1.15em; }
.done li { margin-top: 7px; }
.done ul + p { margin-top: 16px; }
.done .btn-secondary { margin-top: 20px; }
.preview-flag { background: #fff0b8; padding: 8px 12px; border-radius: 8px; font-weight: 600; margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-top: 60px; padding-bottom: 96px; } }
.contact-tel { display: block; font: 600 clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem)/1.1 var(--sans); letter-spacing: -.015em; text-decoration: none; color: var(--royal); white-space: nowrap; margin-top: 6px; }
.contact-tel:hover { text-decoration: underline; color: var(--royal); }
.contact-info h2 { font-size: 1.75rem; margin-top: 32px; }
.contact-info h2:first-child { margin-top: 0; }
.contact-info p { margin-top: 6px; }
.choice { border: 0; padding: 0; margin: 0; }
.choice legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.choice-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-opts label { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 12px; border: 1.5px solid #8ea2bc; border-radius: 10px; cursor: pointer; font-weight: 500; }
.choice-opts label:has(input:checked) { border-color: var(--royal); background: var(--pale); }
.choice-opts input { accent-color: var(--royal); width: 18px; height: 18px; margin: 0; }

/* ---------- Pied de page ---------- */
.foot { background: var(--encre); color: #d5e0ec; font-size: .97rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 30px; }
.foot-logo { width: 190px; height: auto; }
.foot h2 { font: 600 1rem/1.3 var(--sans); letter-spacing: 0; color: #fff; margin-bottom: 8px; }
.foot ul { list-style: none; }
.foot li { margin-top: 5px; }
.foot-legal { border-top: 1px solid #36507a; padding-top: 16px; padding-bottom: 22px; font-size: .9rem; line-height: 1.5; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1.3fr 1fr 1fr; gap: 48px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* ==========================================================
   Page d'accueil : ouverture et grands aplats
   ========================================================== */
.hero { position: relative; color: #fff; background: #0b1426; overflow: hidden; }
.hero-in { padding: 170px 20px 26px; }
.hero-h1 { color: #fff; font-size: clamp(2.3rem, 9.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.02em; }
.hero-h1 span { display: block; }
.hero-mobile { width: calc(100% + 40px); max-width: none; margin: 18px -20px 0; height: auto; }
.hero-side p { margin-top: 20px; font-size: 1.08rem; line-height: 1.5; color: #dbe5f2; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.hero-link { color: #fff; font-weight: 600; }
.hero-link:hover { color: var(--vif-pale); }
.hero-bar { background: #0f2f5f; }
.hb-title { padding: 18px 20px 6px; font: 400 1.5rem/1.2 var(--serif); }
.hb-list { display: grid; padding: 0 20px 14px; }
.hb-item { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; }
.hb-delay { font-weight: 600; color: var(--vif-pale); white-space: nowrap; }
.hb-name { font-weight: 500; }
.hb-item:hover { color: #fff; }
.hb-item:hover .hb-name { text-decoration: underline; text-underline-offset: .18em; }
@media (min-width: 1000px) {
  .hero { min-height: max(100vh, 56vw, 680px); background: #0b1426 url("img/hero.jpg") right bottom/cover no-repeat; display: flex; flex-direction: column; }
  .hero-in { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: clamp(150px, 11vw, 190px) clamp(40px, 4vw, 72px) 28px; }
  .hero-h1 { font-size: clamp(3.3rem, 4.7vw, 5.4rem); line-height: 1.04; }
  .hero-mobile { display: none; }
  .hero-h1 .l1, .hero-h1 .l2 { white-space: nowrap; }
  .hero-side { max-width: min(38vw, 520px); margin-top: clamp(24px, 2.4vw, 36px); }
  .hero-side p { margin-top: 0; font-size: clamp(1.1rem, 1.3vw, 1.3rem); }
  .hero-bar { position: relative; background: rgba(9, 18, 36, .86); border-top: 1px solid rgba(255, 255, 255, .16); }
  .hb-title { display: none; }
  .hb-list { grid-template-columns: repeat(6, 1fr); max-width: 1600px; margin: 0 auto; padding: 0 clamp(40px, 4vw, 72px); }
  .hb-item { flex-direction: column; gap: 4px; justify-content: center; padding: 18px 14px 18px 0; border-top: 0; transition: transform .18s ease; }
  .hb-item:hover { transform: translateY(-3px); }
  .hb-delay { font-size: clamp(1.25rem, 1.75vw, 1.75rem); font-weight: 500; letter-spacing: -.015em; color: #fff; }
  .hb-name { font-size: .94rem; line-height: 1.25; color: #c9d7ea; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .hero-h1 span, .hero-side, .hero-bar { animation: monte .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-h1 .l2 { animation-delay: .1s; }
  .hero-h1 .l3 { animation-delay: .2s; }
  .hero-side { animation-delay: .38s; }
  .hero-bar { animation-delay: .55s; }
}
@keyframes monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.wait { opacity: 0; transform: translateY(28px); }

.marquee { background: var(--royal); color: #fff; overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: defile 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .mq { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); white-space: nowrap; color: #dfeafa; }
.marquee .mq b { font: 500 clamp(1.5rem, 1.3rem + .8vw, 2.1rem)/1 var(--sans); letter-spacing: -.02em; color: #fff; margin-right: 6px; }
.marquee .mq-src { font-size: .9rem; color: #bcd2ee; }
.marquee img { width: 30px; height: auto; margin: 0 32px; opacity: .85; flex: none; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 20px; } .marquee-track > :nth-child(n+19) { display: none; } }

.pas { padding: clamp(64px, 9vw, 130px) 0; background: #fff; }
.pas-head { display: flex; flex-wrap: wrap; gap: 12px 56px; align-items: baseline; justify-content: space-between; margin-bottom: clamp(30px, 4vw, 56px); }
.pas-head h2 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.8rem); }
.pas-head p { max-width: 30em; color: var(--texte); }
.pas-list { list-style: none; border-top: 1px solid var(--royal); }
.pas-list li { display: grid; gap: 12px; padding: clamp(22px, 2.8vw, 38px) 0; border-bottom: 1px solid var(--ligne); }
@media (min-width: 900px) {
  .pas-list li { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
  .pas-list .pas-t { grid-column: 1 / -1; }
  .pas-list li p { grid-column: 7 / -1; margin-top: -.2em; padding-left: 22px; border-left: 2px solid var(--vif); }
}
.pas-t { display: block; font: 400 clamp(2.9rem, 9.2vw, 9rem)/1 var(--serif); color: var(--royal); letter-spacing: -.025em; }
.pas-list p { color: var(--texte); max-width: 46em; font-size: 1.1rem; }
.pas-warn { margin-top: 20px; font-size: .94rem; color: var(--texte); }

.sim { background: var(--vert); color: #fff; padding: clamp(56px, 8vw, 110px) 0; }
.pts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px clamp(40px, 7vw, 110px); align-items: center; }
.pts-ctrl { min-width: 0; }
.pts-visu { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.pts-visu svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.pts-seg { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 14; transition: stroke .35s ease; }
.pts-seg.on { stroke: #fff; }
.pts-seg.lost { stroke: var(--alerte-clair); }
.pts-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pts-num b { font: 500 clamp(5rem, 15vw, 9.5rem)/1 var(--sans); letter-spacing: -.045em; }
.pts-num small { font-size: 1.05rem; font-weight: 500; margin-top: 2px; }
.pts-title { color: #fff; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.04; letter-spacing: -.02em; }
.pts-field { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .28); font-weight: 500; }
.pts-field select { flex: 1 1 260px; width: 100%; min-width: 0; min-height: 52px; padding: 12px; border: 0; border-radius: 10px; background: #fff; color: var(--encre); font: 500 1rem/1.2 var(--sans); max-width: 100%; }
.pts-step { display: flex; align-items: center; gap: 6px; }
.pts-step button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); background: none; color: #fff; font: 500 1.5rem/1 var(--sans); cursor: pointer; }
.pts-step button:hover { background: #fff; color: var(--vert); }
.pts-step output { min-width: 52px; text-align: center; font-size: 1.5rem; font-weight: 600; }
.pts-res { margin-top: 22px; font: 400 clamp(1.4rem, 1.2rem + .6vw, 1.8rem)/1.2 var(--serif); }
.pts-adv { margin-top: 8px; color: #dcefe2; max-width: 34em; min-height: 3.2em; }
.pts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.pts .btn-invert { color: var(--vert); }
.pts-more { color: #fff; font-weight: 600; }
.pts-more:hover { color: #dcefe2; }
.pts-note { margin-top: 16px; font-size: .88rem; color: #c8e3d0; }
.pts :focus-visible { outline-color: #fff; }
@media (min-width: 1000px) { .pts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.dom { background: var(--royal); color: #fff; padding: clamp(60px, 8vw, 110px) 0; }
.dom h2 { color: #fff; max-width: 18em; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem); margin-bottom: clamp(26px, 3vw, 44px); }
.dom-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, .4); }
.dom-list li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.dom-list a { display: grid; gap: 4px 40px; padding: clamp(14px, 1.7vw, 24px) 0; color: #fff; text-decoration: none; align-items: baseline; transition: padding-left .25s ease; }
.dom-list strong { font: 400 clamp(1.6rem, 1.3rem + 1.3vw, 2.5rem)/1.1 var(--serif); letter-spacing: -.02em; }
.dom-list span { color: #d5e6f7; }
.dom-list a:hover { padding-left: 16px; color: #fff; }
.dom-list a:hover strong { color: var(--vif-pale); }
@media (min-width: 1000px) { .dom-list a { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); } }

.assoc { background: #10172a; color: #fff; padding: clamp(60px, 8vw, 110px) 0; }
.assoc h2 { color: #fff; max-width: 18em; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem); margin-bottom: clamp(28px, 4vw, 52px); }
.assoc h3 { color: #fff; font-size: 1.7rem; }
.assoc-head p { margin-top: -18px; margin-bottom: 36px; color: #cfd9e8; font-size: 1.15rem; }
.assoc-grid { display: grid; gap: 40px 36px; }
.assoc-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; margin-bottom: 18px; }
.assoc-grid p { margin-top: 8px; color: #cfd9e8; font-size: 1rem; }
.assoc-press ul { list-style: none; margin: 12px 0 18px; border-top: 1px solid rgba(255, 255, 255, .25); }
.assoc-press li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font: 400 1.22rem/1.25 var(--serif); }
.assoc-press a { display: block; margin-top: 8px; color: #fff; font-weight: 600; }
.assoc-press a:hover { color: var(--vif-pale); }
@media (min-width: 800px) { .assoc-grid { grid-template-columns: 1fr 1fr; } .assoc-press { grid-column: 1 / -1; } }
@media (min-width: 1160px) { .assoc-grid { grid-template-columns: 1fr 1fr 1.05fr; } .assoc-press { grid-column: auto; } }

.rennes-b { color: #fff; background: #0d2a58 url("img/rennes.jpg") center 42%/cover no-repeat; position: relative; padding: clamp(70px, 11vw, 170px) 0 clamp(44px, 5vw, 70px); }
.rennes-b::before { content: ""; position: absolute; inset: 0; background: rgba(9, 30, 66, .5); }
.rennes-b .wrap { position: relative; }
.rennes-b h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1.05; letter-spacing: -.025em; max-width: 11em; }
.rennes-b-grid { display: grid; gap: 26px 56px; margin-top: clamp(44px, 8vw, 110px); padding: 24px; background: rgba(9, 24, 54, .78); border-radius: 14px; }
.rennes-b h3 { color: #fff; margin-bottom: 8px; }
.rennes-b p { color: #dbe6f4; }
.rennes-b p + p { margin-top: 8px; }
.rennes-b a { color: #fff; font-weight: 600; }
.trib { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; color: #dbe6f4; }
@media (min-width: 900px) { .rennes-b-grid { grid-template-columns: repeat(3, 1fr); padding: 30px; } }

.faqs { padding: clamp(60px, 7vw, 100px) 0; }
.faqs-in { display: grid; gap: 24px 72px; }
.faqs h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem); }
.faqs-in p a { font-weight: 600; }
.faqs-in > div > p { margin-top: 10px; }
@media (min-width: 1000px) { .faqs-in { grid-template-columns: 1fr 2fr; } }
.faq-item { border-top: 1px solid var(--ligne); }
.faq-item:last-child { border-bottom: 1px solid var(--ligne); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 1.08rem; color: var(--encre); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 400 1.7rem/1 var(--sans); color: var(--royal); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 20px; max-width: 44em; color: var(--texte); }
.faq-page { max-width: 880px; }

.final { background: var(--vert); color: #fff; padding: clamp(64px, 9vw, 130px) 0; }
.final h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.06; letter-spacing: -.025em; max-width: 13em; }
.final-cta { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; margin-top: clamp(26px, 3vw, 44px); }
.final .btn-invert { color: var(--vert); }
.final-tel { color: #fff; font-weight: 600; font-size: 1.4rem; text-decoration: none; }
.final-tel:hover { color: #fff; text-decoration: underline; }

/* ---------- Pages intérieures, en plus grand ---------- */
.page-head { background: var(--royal); padding: clamp(40px, 5vw, 76px) 0 clamp(44px, 6vw, 84px); }
.page-head h1 { color: #fff; font-size: clamp(2.3rem, 1.7rem + 2.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em; max-width: 14em; }
.page-head .lead { color: #dfeafa; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.45; }
.page-head a { color: #fff; }
.page-head .crumbs, .page-head .crumbs a { color: #d5e6f7; }
.guides-s h2 { margin-bottom: 24px; }
.guides { list-style: none; display: grid; column-gap: 72px; border-top: 1px solid var(--royal); }
.guides li { border-bottom: 1px solid var(--ligne); }
.guides a { display: block; padding: 20px 0; text-decoration: none; color: var(--encre); }
.guides strong { display: block; font: 400 1.45rem/1.15 var(--serif); color: var(--royal); }
.guides a:hover strong { text-decoration: underline; text-underline-offset: .12em; }
.guides span { display: block; margin-top: 5px; color: var(--texte); }
@media (min-width: 860px) { .guides { grid-template-columns: 1fr 1fr; } }
.press-list { list-style: none; border-top: 1px solid var(--royal); max-width: 1000px; }
.press-list li { padding: 18px 0; border-bottom: 1px solid var(--ligne); font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.6rem)/1.2 var(--serif); color: var(--royal); }
.sim-page .pts-more { display: none; }
.pas-page { padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(30px, 4vw, 50px); }


/* ==========================================================
   Coordonnées mises en avant
   ========================================================== */
.ico { width: 1em; height: 1em; flex: none; }
.topbar { background: var(--royal); color: #fff; font-size: .93rem; position: relative; z-index: 2; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 7px; padding-bottom: 7px; }
.tb-spec { font-weight: 500; }
.tb-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .ico { width: 15px; height: 15px; color: var(--vif-pale); }
@media (max-width: 719px) { .topbar-in { justify-content: center; text-align: center; } .tb-links { justify-content: center; } .tb-spec { font-size: .86rem; } }

.top-call { display: flex; align-items: center; gap: 12px; margin-left: auto; color: var(--royal); text-decoration: none; flex: none; }
.top-call .ico { width: 20px; height: 20px; padding: 11px; box-sizing: content-box; background: var(--vert); color: #fff; border-radius: 50%; }
.top-call span { display: none; }
.top-call small { display: block; font-size: .8rem; font-weight: 500; color: var(--texte); line-height: 1.1; }
.top-call b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; color: var(--royal); }
.top-call:hover b { text-decoration: underline; }
@media (min-width: 640px) { .top-call span { display: block; } }

.hero-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 22px; }
.hc-tel { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 600 clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem)/1.1 var(--sans); letter-spacing: -.015em; white-space: nowrap; }
.hc-tel .ico { width: .78em; height: .78em; color: var(--vif-clair); }
.hc-mail { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 1.12rem; }
.hc-mail .ico { width: 1.15em; height: 1.15em; color: var(--vif-clair); }
.hc-tel:hover, .hc-mail:hover { color: var(--vif-pale); }

.tabbar a { gap: 8px; }
.tabbar a.tab-tel { font-size: 1.06rem; border: 1.5px solid var(--royal); }
.tabbar .ico { width: 17px; height: 17px; }

.band-actions { gap: 10px 26px; }
.band a.band-tel { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 1.3rem + .7vw, 1.9rem); }
.band a.band-tel .ico { width: .75em; height: .75em; }
.band-mail { color: #fff; font-weight: 500; font-size: 1.1rem; }
.band-mail:hover { color: var(--vif-pale); }

.final-tel { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.6rem, 1.4rem + .8vw, 2.1rem) !important; }
.final-tel .ico, .final-mail .ico { width: .8em; height: .8em; }
.final-mail { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 1.15rem; }
.final-mail:hover { color: #dcefe2; }

.aside-sign a.aside-tel { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 1.5rem; }
.aside-sign a.aside-tel .ico { width: .8em; height: .8em; }
.aside-sign a.aside-mail { display: block; text-align: center; color: #fff; font-weight: 500; margin-top: 4px; }

.contact-mail { display: inline-block; margin-top: 6px; font: 600 clamp(1.3rem, 1.15rem + .6vw, 1.7rem)/1.2 var(--sans); color: var(--royal); }
.contact-mail:hover { color: var(--royal-d); }

.foot-tel { font-size: 1.6rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.foot-tel:hover { text-decoration: underline; }
.foot-mail { font-size: 1.08rem; font-weight: 500; }

.guides-cat { margin: 34px 0 10px; font: 600 1rem/1.3 var(--sans); color: var(--texte); letter-spacing: 0; }
.guides-cat:first-of-type { margin-top: 8px; }

/* ---------- Certificat de spécialisation ---------- */
.cert { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.cert .seal { width: 54px; height: 54px; flex: none; color: var(--vif-clair); }
.cert p { margin: 0 !important; font-size: 1rem !important; line-height: 1.35; color: #fff; }
.cert b { display: block; font-weight: 600; font-size: 1.08rem; }
.cert span { display: block; color: #c9d7ea; font-size: .94rem; }
.cert-block { display: grid; gap: 18px 48px; align-items: center; margin-top: 56px; padding: 28px; background: var(--royal); color: #fff; border-radius: 16px; }
.cert-block .cert { margin-top: 0; }
.cert-block .cert .seal { width: 64px; height: 64px; color: var(--vif-pale); }
.cert-block > p { color: #dfeafa; max-width: 46em; }
@media (min-width: 900px) { .cert-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding: 34px 40px; } }

/* ---------- Compteur d'excès de vitesse ---------- */
.vit-s { background: var(--nuit); color: #fff; padding: clamp(56px, 8vw, 110px) 0; }
.vit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px clamp(40px, 6vw, 96px); align-items: center; --etat: var(--vif-clair); }
.vit[data-state="ok"] { --etat: #7fd99a; }
.vit[data-state="grave"] { --etat: #ffb15c; }
.vit[data-state="delit"] { --etat: var(--alerte-clair); }
.vit-ctrl { min-width: 0; }
.vit-visu { position: relative; width: min(100%, 540px); margin: 0 auto; }
.vit-visu svg { display: block; width: 100%; height: auto; overflow: visible; }
.vit-track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 10; stroke-linecap: round; }
.vit-over { fill: none; stroke: var(--alerte); stroke-width: 10; stroke-linecap: round; opacity: .9; transition: d .4s ease; }
.tk { stroke: rgba(255, 255, 255, .35); stroke-width: 1.4; }
.tk-b { stroke: #fff; stroke-width: 2.4; }
.tl { fill: #c9d3e3; font: 500 12px var(--sans); text-anchor: middle; dominant-baseline: middle; }
.vit-n { transform-origin: 160px 160px; transition: transform .8s cubic-bezier(.34, 1.4, .5, 1); }
.vit-n-mes line { stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-dasharray: 4 4; }
.vit-n-ret path { fill: var(--etat); transition: fill .3s; }
.vit-hub { fill: var(--nuit); stroke: var(--etat); stroke-width: 4; transition: stroke .3s; }
.vit-read { position: absolute; left: 0; right: 0; top: 64%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vit-read b { font: 500 clamp(3.6rem, 11vw, 6.2rem)/.95 var(--sans); letter-spacing: -.045em; color: var(--etat); transition: color .3s; font-variant-numeric: tabular-nums; }
.vit-read small { font-size: 1rem; font-weight: 600; }
.vit-read span { font-size: .9rem; color: #aab6c8; margin-top: 2px; }
.vit-title { color: #fff; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.04; letter-spacing: -.02em; }
.vit-field { border: 0; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); min-width: 0; }
.vit-field legend, .vit-field > label { display: block; float: left; width: 100%; font-weight: 600; margin-bottom: 10px; padding: 0; }
.vit-lims, .vit-seg, .vit-speed { clear: both; }
.vit-lims { display: flex; flex-wrap: wrap; gap: 8px; }
.vit-lims label, .vit-seg label { position: relative; cursor: pointer; }
.vit-lims input, .vit-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vit-lims span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--alerte); background: #fff; color: var(--nuit); font: 700 1.05rem/1 var(--sans); transition: transform .2s; }
.vit-lims input:checked + span { transform: scale(1.12); box-shadow: 0 0 0 3px var(--nuit), 0 0 0 5px var(--vif-clair); }
.vit-lims input:focus-visible + span, .vit-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.vit-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vit-seg span { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: 52px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .35); font-size: .95rem; font-weight: 500; line-height: 1.2; }
.vit-seg input:checked + span { background: #fff; color: var(--nuit); border-color: #fff; font-weight: 600; }
.vit-speed { display: flex; align-items: center; gap: 10px; }
.vit-speed button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: none; color: #fff; font: 500 1.4rem/1 var(--sans); cursor: pointer; }
.vit-speed button:hover { background: #fff; color: var(--nuit); }
.vit-speed output { flex: none; min-width: 5.4em; text-align: right; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vit-s input[type=range], .alc-s input[type=range] { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--vif-clair) var(--p, 50%), rgba(255, 255, 255, .2) var(--p, 50%)); cursor: pointer; }
.vit-s input[type=range]::-webkit-slider-thumb, .alc-s input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.vit-s input[type=range]::-moz-range-thumb, .alc-s input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; }
.vit-res { margin-top: 22px; padding: 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--etat); transition: border-color .3s; }
.vit-verdict { font: 400 clamp(1.35rem, 1.15rem + .6vw, 1.75rem)/1.2 var(--serif); }
.vit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 14px 0 0; }
.vit-grid dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #aab6c8; font-weight: 600; }
.vit-grid dd { margin: 2px 0 0; font-weight: 600; }
.vit-wide { grid-column: 1 / -1; }
.vit-adv { margin-top: 12px; color: #d5dceb; }
.vit .btn-invert { color: var(--nuit); }
.vit :focus-visible { outline-color: #fff; }
@media (min-width: 1000px) { .vit { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.tools-more { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.tools-more p { flex: 1 0 100%; margin: 0 0 4px; color: #aab6c8; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.tools-more a { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; transition: background .2s; }
.tools-more a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tools-more b { font: 400 1.5rem/1.1 var(--serif); }
.tools-more span { color: #c9d3e3; }

/* ---------- Échelle d'alcoolémie ---------- */
.alc-s { background: var(--encre); color: #fff; padding: clamp(56px, 8vw, 110px) 0; }
.alc { --etat: #7fd99a; max-width: 980px; margin: 0 auto; }
.alc[data-state="warn"] { --etat: #ffb15c; }
.alc[data-state="delit"] { --etat: var(--alerte-clair); }
.alc-title { color: #fff; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.04; letter-spacing: -.02em; }
.alc-head p { margin-top: 10px; color: #c9d7ea; }
.alc-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 30px; }
.alc-read b { font: 500 clamp(4rem, 13vw, 7.5rem)/.9 var(--sans); letter-spacing: -.045em; color: var(--etat); transition: color .3s; font-variant-numeric: tabular-nums; }
.alc-read span { font-size: 1.2rem; font-weight: 600; }
.alc-read small { flex: 1 0 100%; color: #aebfd6; font-size: 1rem; }
.alc-scale { position: relative; margin-top: 26px; }
.alc-bar { position: relative; height: 18px; border-radius: 9px; overflow: visible; background: rgba(255, 255, 255, .1); margin-bottom: 14px; }
.alc-bar i { position: absolute; top: 0; bottom: 0; }
.alc-bar .z0 { background: #2f7d4a; border-radius: 9px 0 0 9px; }
.alc-bar .z1 { background: #2f7d4a; transition: background .3s; }
.alc.is-prob .alc-bar .z1 { background: #c98a2c; }
.alc-bar .z2 { background: #c98a2c; }
.alc-bar .z3 { background: linear-gradient(90deg, #b3261e, #7c1610); border-radius: 0 9px 9px 0; }
.alc-cursor { position: absolute; top: -8px; width: 6px; height: 34px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 3px var(--encre); transition: left .15s; }
.alc-ticks { position: relative; height: 22px; margin-top: 8px; font-size: .85rem; color: #aebfd6; }
.alc-ticks span { position: absolute; transform: translateX(-50%); }
.alc-prob { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 500; cursor: pointer; }
.alc-prob input { width: 24px; height: 24px; accent-color: var(--vif-clair); flex: none; }
.alc-res { margin-top: 24px; padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, .07); border-left: 4px solid var(--etat); transition: border-color .3s; }
.alc-kind { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--etat); }
.alc-verdict { margin-top: 6px; font: 400 clamp(1.35rem, 1.15rem + .6vw, 1.75rem)/1.2 var(--serif); }
.alc-list { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: #e2e9f4; }
.alc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.alc .btn-invert { color: var(--encre); }
.alc-link { color: #fff; font-weight: 600; }
.alc-link:hover { color: var(--vif-pale); }
.alc-note { margin-top: 16px; font-size: .88rem; color: #aebfd6; }
.alc :focus-visible { outline-color: #fff; }

/* ---------- Page des simulateurs ---------- */
.tools { list-style: none; display: grid; gap: 16px; padding: 0; }
@media (min-width: 860px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tools a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 28px; border-radius: 16px; background: var(--nuit); color: #fff; text-decoration: none; transition: transform .2s; }
.tools li:nth-child(2) a { background: var(--encre); }
.tools li:nth-child(3) a { background: var(--vert); }
.tools a:hover { transform: translateY(-3px); color: #fff; }
.tools i { font: 500 2.6rem/1 var(--sans); font-style: normal; letter-spacing: -.03em; color: var(--vif-clair); }
.tools li:nth-child(3) i { color: #9fe3b4; }
.tools strong { font: 400 1.7rem/1.1 var(--serif); }
.tools span { color: #d1dbe9; }

/* ---------- Clin d'œil : radar ---------- */
.radar-flash { position: fixed; inset: 0; z-index: 90; background: #fff; pointer-events: none; animation: flash .6s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .92; } 100% { opacity: 0; } }
.radar-toast { position: fixed; z-index: 91; left: 16px; right: 16px; bottom: 92px; max-width: 440px; margin: 0 auto; display: grid; grid-template-columns: 48px minmax(0, 1fr) 32px; gap: 14px; padding: 18px; border-radius: 16px; background: var(--nuit); color: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transform: translateY(30px); opacity: 0; transition: transform .4s cubic-bezier(.34, 1.4, .5, 1), opacity .3s; }
.radar-toast.on { transform: none; opacity: 1; }
.radar-toast svg { width: 48px; height: 48px; fill: none; stroke: var(--vif-clair); stroke-width: 2.4; }
.radar-toast b { font: 400 1.5rem/1.1 var(--serif); }
.radar-toast p { margin: 4px 0 0; font-size: .95rem; color: #d5dceb; }
.radar-toast a { display: inline-block; margin-top: 8px; color: var(--vif-clair); font-weight: 600; }
.radar-toast button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
@media (min-width: 980px) { .radar-toast { left: auto; right: 24px; bottom: 24px; margin: 0; } }
.vit-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-weight: 600; }
.vit-lab output { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .vit-lims { gap: 5px; }
  .vit-lims span { width: 42px; height: 42px; border-width: 4px; font-size: .92rem; }
}
.alc-scale { padding-top: 6px; }
.alc-scale input[type=range] { position: absolute; left: 0; right: 0; top: 1px; height: 28px; margin: 0; background: transparent !important; }
.alc-scale input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.alc-scale input[type=range]::-moz-range-track { background: transparent; }
.alc-scale input[type=range]::-webkit-slider-thumb { width: 30px; height: 30px; border: 4px solid var(--encre); box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .4); }
.alc-cursor { display: none; }
.alc-ticks span:first-child { transform: none; }
.alc-ticks span:last-child { transform: translateX(-100%); }
/* Logo officiel « Spécialiste » du CNB : couleurs d'origine, sur pastille blanche */
.seal-cnb { flex: none; width: 76px; height: 76px; padding: 5px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.cert-block .seal-cnb { width: 92px; height: 92px; }

/* ---------- Avancement de l'envoi ---------- */
.send-progress { margin-top: 18px; }
.send-progress p { margin-top: 8px; font-size: .95rem; color: var(--texte); }
.sp-bar { display: block; height: 6px; border-radius: 6px; background: var(--pale); overflow: hidden; }
.sp-bar i { display: block; width: 35%; height: 100%; border-radius: 6px; background: var(--royal); animation: sp 1.4s ease-in-out infinite; }
@keyframes sp { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .sp-bar i { animation: none; width: 100%; opacity: .5; } }
