/* Concept: les accolades du logo comme structure. Page blanche et aérée, bleu du logo comme seule couleur forte, grande bande bleue pour PHP avec le cycle de vie réel des versions. */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F1F6F9;
  --surface: #FFFFFF;
  --fg: #0A1C27;
  --muted: #4D6170;
  --line: #D6E2EA;
  --brand: #00689D;
  --brand-ink: #FFFFFF;
  --brand-soft: #E2EFF6;
  --brand-deep: #03496F;
  --band-bg: #00689D;
  --band-fg: #FFFFFF;
  --band-muted: #CBE4F2;
  --band-line: rgba(255,255,255,0.28);
  --bar-eol: rgba(255,255,255,0.28);
  --bar-sec: #9FD2EE;
  --bar-act: #FFFFFF;
  --today: #FFD25E;
  --logo-blue: #00689D;
  --st-ok: #1B7F50;
  --st-ok-soft: #E2F3EA;
  --st-warn: #B26A00;
  --st-warn-soft: #FFF2DC;
  --st-bad: #B42318;
  --st-bad-soft: #FDECEA;
  --track: #E6EDF2;
  --err: #B42318;
  --err-soft: #FDECEA;
  --paper: #FFFFFF;
  --paper-fg: #0A1C27;
  --paper-muted: #5B6E7C;
  --paper-line: #DFE7ED;
  --paper-brand: #00689D;
  --paper-soft: #EAF3F8;
  --ok: #1B7F50;
  --ok-soft: #E2F3EA;
  --pdf: #C8372D;
  --shadow: 0 18px 40px -18px rgba(10, 40, 60, 0.35), 0 2px 6px rgba(10, 40, 60, 0.08);
  --font-display: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07141C; --bg-alt: #0C1E29; --surface: #0F2330; --fg: #E4EEF4; --muted: #9AB2C2; --line: #1E3747;
    --brand: #4FB0E3; --brand-ink: #03202F; --brand-soft: #0F2D3E; --brand-deep: #8ACDF0;
    --band-bg: #04354F; --band-fg: #E9F4FA; --band-muted: #A9CDE1; --band-line: rgba(255,255,255,0.2);
    --bar-eol: rgba(255,255,255,0.2); --bar-sec: #5FA9D3; --bar-act: #E9F4FA; --today: #FFD25E; --err: #FF8A80; --err-soft: #3A1714; --st-ok: #4CC38A; --st-ok-soft: #10301F; --st-warn: #F0B04A; --st-warn-soft: #33260E; --st-bad: #FF8A80; --st-bad-soft: #3A1714; --track: #1A3040; --shadow: 0 18px 40px -16px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07141C; --bg-alt: #0C1E29; --surface: #0F2330; --fg: #E4EEF4; --muted: #9AB2C2; --line: #1E3747;
  --brand: #4FB0E3; --brand-ink: #03202F; --brand-soft: #0F2D3E; --brand-deep: #8ACDF0;
  --band-bg: #04354F; --band-fg: #E9F4FA; --band-muted: #A9CDE1; --band-line: rgba(255,255,255,0.2);
  --bar-eol: rgba(255,255,255,0.2); --bar-sec: #5FA9D3; --bar-act: #E9F4FA; --today: #FFD25E; --err: #FF8A80; --err-soft: #3A1714; --st-ok: #4CC38A; --st-ok-soft: #10301F; --st-warn: #F0B04A; --st-warn-soft: #33260E; --st-bad: #FF8A80; --st-bad-soft: #3A1714; --track: #1A3040; --shadow: 0 18px 40px -16px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--brand); letter-spacing: 0.02em; }
.label::before { content: "{"; margin-right: 0.25em; } .label::after { content: "}"; margin-left: 0.25em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.full { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo { height: 42px; width: auto; display: block; flex: none; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); }
nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
nav a.link { text-decoration: none; font-weight: 500; padding: 7px 12px; border-radius: 999px; }
nav a.link:hover { background: var(--bg-alt); }
nav a.link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-family: var(--font-body); font-size: 1rem; cursor: pointer; }
.btn-main { background: var(--brand); color: var(--brand-ink); }
.btn-main:hover { background: var(--brand-deep); color: var(--bg); }
.btn-line { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-line:hover { background: var(--brand-soft); }
.btn-sm { padding: 8px 18px; font-size: 0.95rem; }
.arrow::after { content: "→"; font-family: var(--font-mono); }

section { padding-block: clamp(56px, 9vw, 104px); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.braced { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(10px, 2vw, 28px); align-items: stretch; }
.brace { font-family: var(--font-display); font-weight: 500; color: var(--brand); font-size: clamp(5rem, 15vw, 12rem); line-height: 0.8; display: flex; align-items: center; user-select: none; }
.braced .inner { display: flex; flex-direction: column; gap: 22px; justify-content: center; min-width: 0; padding-block: 8px; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.fact { padding: 20px 20px 0 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact strong { font-family: var(--font-display); font-size: 1.1rem; }
.fact span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) { .brace { display: none; } .braced { grid-template-columns: minmax(0, 1fr); } }

/* Service rows */
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 42em; }
.sec-head p { color: var(--muted); }
.rows { margin-top: 40px; border-top: 2px solid var(--fg); }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto; gap: 16px 40px; padding-block: 28px; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: 1.45rem; }
.row p { color: var(--muted); }
.row a { font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.row a:hover { text-decoration: underline; }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Process */
.alt { background: var(--bg-alt); }
.process { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.process li { display: flex; flex-direction: column; gap: 10px; position: relative; padding-top: 52px; min-width: 0; }
.process li::before { content: attr(data-n); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-family: var(--font-mono); font-weight: 600; display: grid; place-items: center; font-size: 0.95rem; }
.process li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 50px; right: -16px; height: 2px; background: var(--line); }
.process p { color: var(--muted); }
@media (max-width: 760px) { .process { grid-template-columns: minmax(0, 1fr); } .process li:not(:last-child)::after { display: none; } }

/* CTA strip */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 36px; border-block: 2px solid var(--brand); }
.cta-strip h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22em; }
.cta-strip h2 em { font-style: normal; color: var(--brand); }

/* Plans table */
.table-scroll { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table.plans { width: 100%; min-width: 620px; border-collapse: collapse; }
.plans th, .plans td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plans thead th { vertical-align: bottom; padding-top: 26px; }
.plans thead th:first-child { width: 34%; }
.plans .pname { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; display: block; }
.plans .pfor { color: var(--muted); font-weight: 400; font-size: 0.9rem; display: block; margin-top: 2px; }
.plans .col-pro { background: var(--brand-soft); }
.plans thead .col-pro { border-top: 4px solid var(--brand); }
.plans .pill { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; background: var(--brand); color: var(--brand-ink); padding: 2px 9px; border-radius: 999px; margin-bottom: 8px; }
.plans tbody th { font-weight: 500; }
.plans .yes { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); position: relative; vertical-align: middle; }
.plans .yes::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px; border-right: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(45deg); }
.plans .no { color: var(--muted); }
.plans .price { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.plans .price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plans tr:last-child td, .plans tr:last-child th { border-bottom: 0; padding-bottom: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Server */
.server { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 6px; }
.ticks li::before { content: "{"; font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 1.2rem; line-height: 1.4; }
.conf { background: var(--fg); color: var(--bg); border-radius: 16px; overflow: hidden; min-width: 0; }
.conf-head { padding: 12px 20px; font-family: var(--font-mono); font-size: 0.8rem; opacity: 0.7; border-bottom: 1px solid rgba(127,127,127,0.35); }
.conf pre { margin: 0; padding: 20px; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.85; overflow-x: auto; }
.conf .k { color: var(--brand-soft); }
:root[data-theme="dark"] .conf .k { color: #0B4E73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .conf .k { color: #0B4E73; } }
.conf .c { opacity: 0.55; }
.conf-foot { padding: 0 20px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.conf-foot strong { font-family: var(--font-display); font-size: 1.5rem; }
.conf-foot .btn-main { background: var(--brand-soft); color: var(--brand-deep); }
@media (max-width: 860px) { .server { grid-template-columns: minmax(0, 1fr); } }

/* PHP band */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .label { color: var(--band-fg); opacity: 0.85; }
.band .sec-head p, .band .muted { color: var(--band-muted); }
.php-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.php-grid > div { border-top: 1px solid var(--band-line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.php-grid p { color: var(--band-muted); }
@media (max-width: 860px) { .php-grid { grid-template-columns: minmax(0, 1fr); } }

.life { margin-top: 48px; background: rgba(0,0,0,0.12); border-radius: 16px; padding: clamp(18px, 3vw, 28px); }
.life h3 { margin-bottom: 4px; }
.life .sub { color: var(--band-muted); font-size: 0.95rem; }
.chart-scroll { overflow-x: auto; margin-top: 20px; }
.chart { min-width: 560px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 180px; row-gap: 10px; column-gap: 14px; align-items: center; font-variant-numeric: tabular-nums; }
.chart .v { font-family: var(--font-mono); font-weight: 600; }
.track { position: relative; height: 18px; }
.track .seg { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.seg.act { background: var(--bar-act); }
.seg.sec { background: var(--bar-sec); }
.seg.eol { background: var(--bar-eol); }
.chart .st { font-size: 0.86rem; color: var(--band-muted); }
.chart .st.warn { color: var(--today); font-weight: 600; }
.axis { position: relative; height: 22px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--band-muted); }
.axis span { position: absolute; transform: translateX(-50%); top: 0; }
.today-line { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--today); pointer-events: none; }
.chart { position: relative; }
.tracks-col { position: absolute; top: 32px; bottom: 0; left: calc(72px + 14px); right: calc(180px + 14px); pointer-events: none; }
.today-tag { position: absolute; top: -26px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.72rem; color: var(--today); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 0.88rem; color: var(--band-muted); }
.legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.band .btn-main { background: var(--band-fg); color: var(--band-bg); }
.band .btn-main:hover { background: var(--band-muted); color: var(--band-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { font-family: var(--font-mono); font-size: 0.82rem; padding: 5px 12px; border: 1px solid var(--band-line); border-radius: 999px; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 40px; }
.faq div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.faq h3 { font-size: 1.1rem; }
.faq p { color: var(--muted); }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.info { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.info > div { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.info dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.info dd { margin: 0; }
.copyline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copyline code { font-family: var(--font-mono); font-size: 0.95rem; user-select: all; word-break: break-all; }
.form { display: grid; gap: 18px; background: var(--bg-alt); border-radius: 20px; padding: clamp(20px, 4vw, 36px); min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pills { position: relative; }
.pills input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.pills label { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 0.93rem; }
.pills input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pills input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.notice { display: none; padding: 14px 16px; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--brand); }
.notice.show { display: block; }
.notice.is-error { background: var(--err-soft); border-color: var(--err); }
.field-err { color: var(--err); font-size: 0.88rem; font-weight: 500; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#f-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-done { display: grid; gap: 10px; align-content: start; }
.form-done h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form-done p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--bg-alt); margin-top: 0; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 48px 24px; color: var(--muted); font-size: 0.95rem; }
.foot h4 { margin: 0 0 10px; color: var(--fg); font-family: var(--font-display); font-size: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot .logo { height: 38px; margin-bottom: 14px; }
.legal { border-top: 1px solid var(--line); padding-block: 18px 28px; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) { .btn, nav a.link, .pills label { transition: background .15s, color .15s; } }

/* Hero with report carousel */
.hero-rap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.hero-rap h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (max-width: 900px) { .hero-rap { grid-template-columns: minmax(0, 1fr); } }

.carousel { min-width: 0; max-width: 470px; width: 100%; justify-self: center; display: flex; flex-direction: column; gap: 12px; }
.car-top { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); min-width: 0; }
.pdf-chip { background: var(--pdf); color: #fff; font-weight: 600; font-size: 0.7rem; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.04em; flex: none; }
.car-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.car-count { flex: none; font-variant-numeric: tabular-nums; }
.car-viewport { position: relative; overflow: hidden; padding-block: 10px 30px; perspective: 1300px; }
.car-track { display: grid; transform-style: preserve-3d; touch-action: pan-y; }
.slide { grid-area: 1 / 1; width: 80%; justify-self: center; min-width: 0; container-type: inline-size; cursor: pointer;
  transition: transform 0.7s cubic-bezier(.22,.8,.2,1), opacity 0.7s ease, filter 0.7s ease;
  transform: translateX(0) scale(0.7); opacity: 0; z-index: 0; pointer-events: none; }
.slide.is-active { transform: translateX(0) translateZ(0) rotateY(0) scale(1); opacity: 1; z-index: 3; cursor: default; pointer-events: auto; }
.slide.is-prev { transform: translateX(-27%) translateZ(-140px) rotateY(38deg) scale(0.84); opacity: 0.7; z-index: 2; filter: saturate(0.6); pointer-events: auto; }
.slide.is-next { transform: translateX(27%) translateZ(-140px) rotateY(-38deg) scale(0.84); opacity: 0.7; z-index: 2; filter: saturate(0.6); pointer-events: auto; }
.slide.is-prev:hover, .slide.is-next:hover { opacity: 0.9; }
.slide.is-active .sheet { animation: lift 0.7s cubic-bezier(.22,.8,.2,1); }
@keyframes lift { from { box-shadow: 0 4px 10px -6px rgba(10,40,60,0.3); } to { box-shadow: var(--shadow); } }
.sheet { aspect-ratio: 8.5 / 11; max-width: 100%; background: var(--paper); color: var(--paper-fg); border-radius: 4px; border: 1px solid var(--paper-line); box-shadow: var(--shadow); padding: 6.5cqw 6.5cqw 5cqw; font-family: var(--font-body); font-size: 3cqw; line-height: 1.45; display: flex; flex-direction: column; gap: 0.9em; overflow: hidden; position: relative; }
.sh-head { display: flex; align-items: center; gap: 0.9em; padding-bottom: 0.8em; border-bottom: 0.35em solid var(--paper-brand); }
.sh-logo { height: 2.6em; width: auto; }
.sh-head b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.45em; line-height: 1.1; }
.sh-head span { font-size: 0.9em; color: var(--paper-muted); }
.sh-client { color: var(--paper-muted); font-size: 0.95em; }
.sh-status { display: flex; align-items: center; justify-content: space-between; background: var(--paper-soft); border-radius: 0.5em; padding: 0.7em 0.9em; font-weight: 600; }
.ok-pill { font-style: normal; font-weight: 700; font-size: 0.85em; background: var(--ok-soft); color: var(--ok); padding: 0.15em 0.7em; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; }
.kpis div { border: 1px solid var(--paper-line); border-radius: 0.5em; padding: 0.7em 0.8em; display: flex; flex-direction: column; }
.kpis b { font-family: var(--font-display); font-weight: 900; font-size: 1.7em; color: var(--paper-brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 0.85em; color: var(--paper-muted); }
.sh-h { font-family: var(--font-display); font-weight: 700; font-size: 1.05em; margin-top: 0.2em; }
.sh-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35em; }
.sh-list li { padding-left: 1.3em; position: relative; }
.sh-list li::before { content: ""; position: absolute; left: 0.1em; top: 0.45em; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--paper-brand); }
.sh-note { font-size: 0.88em; color: var(--paper-muted); }
.sh-foot { margin-top: auto; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75em; color: var(--paper-muted); border-top: 1px solid var(--paper-line); padding-top: 0.6em; }
.sh-foot span:first-child { text-transform: uppercase; letter-spacing: 0.1em; color: var(--pdf); font-weight: 600; }
.sh-table { width: 100%; border-collapse: collapse; font-size: 0.92em; font-variant-numeric: tabular-nums; }
.sh-table th { text-align: left; font-size: 0.85em; color: var(--paper-muted); font-weight: 600; border-bottom: 1px solid var(--paper-line); padding: 0.35em 0.3em; }
.sh-table td { padding: 0.45em 0.3em; border-bottom: 1px solid var(--paper-line); }
.sh-table td:first-child { font-weight: 600; }
.sh-table td:nth-child(2) { color: var(--paper-muted); }
.tick { display: inline-block; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--ok); position: relative; vertical-align: middle; }
.tick::after { content: ""; position: absolute; left: 0.37em; top: 0.2em; width: 0.28em; height: 0.52em; border-right: 0.13em solid #fff; border-bottom: 0.13em solid #fff; transform: rotate(45deg); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3em; font-size: 0.75em; font-variant-numeric: tabular-nums; }
.cal span { text-align: center; padding: 0.25em 0; border-radius: 0.3em; }
.cal .dow { color: var(--paper-muted); font-weight: 600; }
.cal .d { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.cal .d.t { background: var(--paper-brand); color: #fff; }
.cal-leg { display: flex; gap: 1.2em; font-size: 0.8em; color: var(--paper-muted); }
.cal-leg i { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 0.2em; margin-right: 0.4em; vertical-align: -0.05em; }
.c-ok { background: var(--ok-soft); border: 1px solid var(--ok); } .c-test { background: var(--paper-brand); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.8em; height: 8.5em; align-items: end; border-bottom: 1px solid var(--paper-line); padding-top: 1.3em; }
.bars .b { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.2em; position: relative; }
.bars .b i { display: block; width: 70%; background: var(--paper-brand); border-radius: 0.25em 0.25em 0 0; }
.bars .b.hi i { background: var(--paper-muted); opacity: 0.55; }
.bars .b b { font-size: 0.78em; font-variant-numeric: tabular-nums; }
.bars-x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.8em; font-size: 0.72em; color: var(--paper-muted); text-align: center; margin-top: -0.6em; }
.cwv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; }
.cwv div { border: 1px solid var(--paper-line); border-radius: 0.5em; padding: 0.6em; display: flex; flex-direction: column; gap: 0.2em; align-items: flex-start; }
.cwv span { font-family: var(--font-mono); font-size: 0.8em; color: var(--paper-muted); }
.cwv b { font-family: var(--font-display); font-size: 1.3em; font-weight: 900; }
.meters { display: grid; gap: 0.75em; }
.meters > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 3.2em; gap: 0.7em; align-items: center; }
.meters span { font-size: 0.9em; }
.meters b { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 0.7em; background: var(--paper-soft); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--paper-brand); border-radius: 999px; }
.sh-dl { margin: 0; display: grid; border-top: 1px solid var(--paper-line); }
.sh-dl div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 0.6em; padding: 0.45em 0; border-bottom: 1px solid var(--paper-line); font-size: 0.92em; }
.sh-dl dt { color: var(--paper-muted); }
.sh-dl dd { margin: 0; font-weight: 600; }

.car-ctrl { display: flex; align-items: center; gap: 10px; }
.car-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 1rem; cursor: pointer; display: grid; place-items: center; flex: none; }
.car-btn:hover { border-color: var(--brand); color: var(--brand); }
.car-play { font-size: 0.7rem; margin-left: auto; }
.car-dots { display: flex; gap: 6px; }
.car-dots button { width: 26px; height: 6px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.car-dots button[aria-current="true"] { width: 40px; }
.car-cap { font-weight: 600; font-family: var(--font-display); }
.car-dots button { position: relative; overflow: hidden; transition: width 0.3s ease; }
.car-dots button[aria-current="true"] { background: var(--brand-soft); }
.car-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left center; }
.carousel.playing .car-dots button[aria-current="true"]::after { animation: fill 5s linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slide, .car-dots button { transition: none; } .slide.is-active .sheet, .carousel.playing .car-dots button[aria-current="true"]::after { animation: none; } }

/* Home sections (layout from version 1) */
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.tile { border-top: 3px solid var(--brand); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile p { color: var(--muted); }
.tile a.more { font-weight: 600; margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 36px; counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: "Étape " counter(s); font-family: var(--font-mono); font-size: 0.8rem; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; }
.steps p { color: var(--muted); }
.cta-band { background: var(--logo-blue); color: #FFFFFF; border-radius: 14px; padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); min-width: 0; }
.cta-band .btn { background: #FFFFFF; color: var(--logo-blue); }
.cta-band .btn:hover { opacity: 0.9; }

/* Mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1199px) {
  .bar { flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .logo { height: 36px; }
  .menu-btn { display: flex; }
  #main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.25); padding-block: 8px 20px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  #main-nav.open { display: flex; }
  #main-nav a.link { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  #main-nav a.link:hover { background: none; }
  #main-nav a.link[aria-current="page"] { background: none; color: var(--brand); font-weight: 600; }
  #main-nav .btn { margin-top: 16px; padding-block: 13px; }
}
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }

/* Client area (login, forgot password, reset) */
[hidden] { display: none !important; }
.label-row label { font-weight: 600; font-size: 0.95rem; }
.auth-section { padding-block: clamp(40px, 7vw, 88px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: minmax(0, 1fr); } }
.auth-card { display: grid; gap: 24px; min-width: 0; max-width: 480px; }
.auth-single { margin-inline: auto; width: 100%; }
.auth-form .btn { width: 100%; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.link-sm { font-size: 0.9rem; font-weight: 500; color: var(--brand); text-decoration: none; }
.link-sm:hover { text-decoration: underline; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 92px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 0.88rem; font-weight: 600; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.pw-toggle:hover { background: var(--brand-soft); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.auth-foot { color: var(--muted); font-size: 0.95rem; }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-done { display: grid; gap: 12px; background: var(--brand-soft); border: 1px solid var(--brand); border-radius: 14px; padding: clamp(20px, 4vw, 28px); }
.auth-done h2 { font-size: 1.5rem; }
.auth-done p { color: var(--fg); }
.auth-done .btn { width: auto; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.strength i { height: 4px; border-radius: 2px; background: var(--line); }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--err); }
.strength[data-score="2"] i:nth-child(-n+2) { background: #D98E04; }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--brand); }
.strength[data-score="4"] i { background: var(--ok); }
.reqs { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; font-size: 0.88rem; color: var(--muted); }
.reqs li { padding-left: 20px; position: relative; }
.reqs li::before { content: "○"; position: absolute; left: 2px; }
.reqs li.met { color: var(--ok); }
.reqs li.met::before { content: "✓"; }
.auth-aside { background: var(--bg-alt); border-radius: 20px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; min-width: 0; }
.auth-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.auth-list li { display: grid; gap: 2px; padding-left: 16px; position: relative; }
.auth-list li::before { content: "{"; position: absolute; left: 0; top: -1px; font-family: var(--font-display); font-weight: 700; color: var(--brand); }
.auth-list span { color: var(--muted); font-size: 0.95rem; }
.nav-account { display: inline-flex; align-items: center; gap: 6px; }
.nav-account svg { width: 16px; height: 16px; flex: none; }

/* Free analysis page */
section.an-run-wrap { padding-block: 0; }
.an-hero { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.an-hero > * { max-width: 760px; }
.an-lead { font-size: 1.15rem; color: var(--muted); }
.scan-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.url-box { flex: 1 1 320px; display: flex; align-items: center; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); padding-left: 14px; min-width: 0; cursor: text; }
.url-box:focus-within { border-color: var(--brand); }
.url-box span { font-family: var(--font-mono); color: var(--muted); font-size: 0.95rem; }
.url-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1.05rem; padding: 14px 12px 14px 4px; outline: none; }
.scan-form .btn { padding-inline: 28px; }
.an-hint { font-size: 0.9rem; color: var(--muted); }
.an-err { color: var(--st-bad); font-weight: 500; }

.an-panel { background: var(--bg-alt); border-radius: 20px; padding: clamp(22px, 4vw, 40px); margin-bottom: 40px; }
.an-progress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 760px) { .an-progress { grid-template-columns: minmax(0, 1fr); } }
.radar { position: relative; width: min(240px, 100%); aspect-ratio: 1; margin-inline: auto; }
.radar svg { width: 100%; height: 100%; display: block; }
.radar .sweep { transform-origin: 50% 50%; animation: an-spin 1.6s linear infinite; }
@keyframes an-spin { to { transform: rotate(360deg); } }
.radar-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.radar-label b { font-family: var(--font-display); font-weight: 900; font-size: 2.3rem; font-variant-numeric: tabular-nums; line-height: 1; }
.radar-label span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.an-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--muted); }
.an-steps .ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.an-steps li.run { color: var(--fg); font-weight: 600; }
.an-steps li.run .ic { border-color: var(--brand); border-top-color: transparent; animation: an-spin 0.8s linear infinite; }
.an-steps li.done { color: var(--fg); }
.an-steps li.done .ic { border-color: var(--st-ok); background: var(--st-ok); }
.an-steps li.done .ic::after { content: ""; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(45deg); }
.an-steps li.fail .ic { border-color: var(--muted); }
.an-steps li.fail .ic::after { content: "–"; color: var(--muted); font-weight: 700; line-height: 1; }

.an-report { display: grid; gap: 28px; padding-bottom: 64px; }
.rep-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.rep-site { font-family: var(--font-mono); font-size: 0.95rem; color: var(--muted); }
.overview { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .overview { grid-template-columns: minmax(0, 1fr); } }
.an-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.an-global { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; background: var(--bg-alt); border: 0; }
.an-global .verdict { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.an-global p { color: var(--muted); font-size: 0.95rem; max-width: 26em; }
.an-global .verdict.t-ok { color: var(--st-ok); } .an-global .verdict.t-warn { color: var(--st-warn); } .an-global .verdict.t-bad { color: var(--st-bad); }
.dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .dials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dial { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; }
.dial h3 { margin-top: 4px; font-size: 1.05rem; }
.dial .sub { font-size: 0.85rem; color: var(--muted); }
.gauge { width: 100%; max-width: 210px; position: relative; }
.gauge.big { max-width: 250px; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .track { stroke: var(--track); }
.gauge .val { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge .num { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; font-size: 1.9rem; }
.gauge.big .num { font-size: 3.3rem; }
.gauge .num small { font-size: 1.05rem; color: var(--muted); font-weight: 700; }
.gauge .t-ok { stroke: var(--st-ok); color: var(--st-ok); } .gauge .t-warn { stroke: var(--st-warn); color: var(--st-warn); } .gauge .t-bad { stroke: var(--st-bad); color: var(--st-bad); }
.gauge .t-na { color: var(--muted); }

.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .findings { grid-template-columns: minmax(0, 1fr); } }
.fgroup { display: grid; gap: 10px; align-content: start; }
.fgroup h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fgroup h3 span { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.fgroup h3 .t-ok { color: var(--st-ok); } .fgroup h3 .t-warn { color: var(--st-warn); } .fgroup h3 .t-bad { color: var(--st-bad); } .fgroup h3 .t-na { color: var(--muted); }
.fitem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.fitem .fix { display: block; color: var(--muted); font-size: 0.88rem; }
.an-pill { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; margin-top: 2px; }
.an-pill.ok { background: var(--st-ok-soft); color: var(--st-ok); } .an-pill.warn { background: var(--st-warn-soft); color: var(--st-warn); } .an-pill.bad { background: var(--st-bad-soft); color: var(--st-bad); }

.lead-box { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--logo-blue); color: #fff; border-radius: 18px; padding: clamp(22px, 4vw, 40px); }
@media (max-width: 860px) { .lead-box { grid-template-columns: minmax(0, 1fr); } }
.lead-box h2 { color: #fff; }
.lead-box p { color: #D7EAF5; }
.lead-box ul { margin: 12px 0 0; padding-left: 20px; color: #E8F3FA; display: grid; gap: 4px; }
.lead-form { display: grid; gap: 12px; background: #fff; color: #0A1C27; border-radius: 14px; padding: 20px; }
.lead-form label.l { font-weight: 600; font-size: 0.95rem; }
.lead-form input[type="email"] { font: inherit; padding: 12px 14px; border: 1px solid #D6E2EA; border-radius: 8px; width: 100%; background: #fff; color: #0A1C27; }
.consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 0.85rem; color: #4D6170; align-items: start; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #00689D; }
.lead-form .btn { background: #00689D; color: #fff; }
.lead-form .btn:hover { background: #03496F; }
.lead-form .msg { font-size: 0.92rem; padding: 10px 12px; border-radius: 8px; background: #E2EFF6; color: #03496F; }
.lead-form .msg.err { background: #FDECEA; color: #B42318; }
.an-next { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); padding-block: 26px; }
.an-next h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.an-disclaimer { font-size: 0.85rem; color: var(--muted); max-width: 70em; }
section.an-cta { padding-block: 16px 64px; }
@media (prefers-reduced-motion: reduce) { .radar .sweep, .an-steps li.run .ic { animation: none; } .gauge .val { transition: none; } }
