/* Vialib : thème vitrine. Jetons repris de apps/web/app/globals.css (identité vert, blanc et doré).
   Couleurs à rôle unique : doré = marque et boutons principaux ; émeraude = liberté ; violet = IA (Copilote) ;
   rouge = risque ; bleu = information. Ambre rayé = données fictives uniquement. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --bg: #F4F7F5; --surface: #FFFFFF; --line: #E1E8E4; --text: #0D1F18; --text-soft: #5B6B64;
  --brand: #0B3D2E; --ink: #0B3D2E; --night: #06110D;
  --gold: #C9A24A; --gold-2: #E8D08E; --gold-text: #85651A; --gold-ink: #1B1505; --gold-soft: rgba(201,162,74,.14);
  --gold-grad: linear-gradient(135deg, #E8D08E, #C9A24A 55%, #A88232);
  --night-grad: radial-gradient(520px 240px at 10% -30px, rgba(16,185,129,.26), transparent 70%), radial-gradient(520px 280px at 105% 115%, rgba(212,175,90,.22), transparent 70%), linear-gradient(160deg, #0B3D2E, #05140F 70%);
  --road-off: #E1E8E4;
  --emerald: #10B981; --emerald-text: #047857; --emerald-soft: #D1FAE5;
  --ai: #8B5CF6; --ai-text: #6D28D9; --ai-soft: rgba(139,92,246,.10);
  --amber: #F59E0B; --amber-text: #B45309; --amber-soft: #FEF3C7;
  --risk: #EF4444; --risk-text: #B91C1C; --risk-soft: #FEE2E2;
  --info: #3B82F6; --info-text: #1D4ED8; --info-soft: #DBEAFE;
  --s-other: #93A69F;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-chip: 6px; --r-ctl: 12px; --r-panel: 20px;
  --shadow: 0 1px 0 rgba(13,31,24,.04), 0 14px 34px -18px rgba(13,31,24,.22);
  --tap: 2.75rem;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06110D; --surface: #0B1A15; --line: #183029; --text: #E6EFEA; --text-soft: #93A69F; --road-off: #183029;
    --gold: #D4AF5A; --gold-2: #F0DB9E; --gold-text: #E3C77A; --gold-soft: rgba(212,175,90,.14);
    --emerald-text: #34D399; --ai-text: #C4B5FD; --amber-text: #FBBF24; --risk-text: #F87171; --info-text: #60A5FA;
    --emerald-soft: rgba(16,185,129,.12); --ai-soft: rgba(139,92,246,.14); --amber-soft: rgba(245,158,11,.12); --risk-soft: rgba(239,68,68,.12); --info-soft: rgba(59,130,246,.14);
    --s-other: #5B6B64;
    --shadow: 0 1px 0 rgba(0,0,0,.25), 0 14px 34px -18px rgba(0,0,0,.7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font-sans); font-feature-settings: "cv11" 1; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.num, .amt { font-variant-numeric: tabular-nums; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.vl-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand); color: #fff; padding: .7rem 1rem; border-radius: var(--r-ctl); font-weight: 600; }
.vl-skip:focus { top: 1rem; color: #fff; }
.vl-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.vl-icon-sm { width: 1.1rem; height: 1.1rem; vertical-align: -.2em; }
.vl-soft { color: var(--text-soft); }
.vl-small { font-size: .875rem; }
.vl-strong { font-weight: 700; }
.vl-center { text-align: center; }
.vl-center .vl-actions, .vl-center .vl-searchform { justify-content: center; margin-inline: auto; }
.vl-em { color: var(--emerald); }
.vl-amber-text { color: var(--amber-text); }
.vl-ai-text { color: var(--ai-text); }
.vl-gold-text { color: var(--gold-text); }
.vl-risk-text { color: var(--risk-text); font-weight: 600; }

/* ---------- Mise en page ---------- */
.vl-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.vl-narrow { max-width: 48rem; }
.vl-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.vl-section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.vl-band { background: var(--surface); border-block: 1px solid var(--line); }
.vl-anchor { scroll-margin-top: 5rem; }
section[id] { scroll-margin-top: 4.5rem; }
.vl-split { display: grid; gap: 2.5rem; }
.vl-two, .vl-three { display: grid; gap: 1.25rem; margin-block: 1.5rem; }
.vl-section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.vl-h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.vl-h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
.vl-h3 { font-size: 1.25rem; font-weight: 700; }
.vl-h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35em; }
.vl-display { font-size: clamp(2.35rem, 6.2vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; }
.vl-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-soft); line-height: 1.6; max-width: 44rem; }
.vl-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .6rem; }
.vl-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 768px) {
  .vl-split { grid-template-columns: 1fr 1.25fr; gap: 4rem; }
  .vl-split-wide { grid-template-columns: 1fr 1.5fr; }
  .vl-two { grid-template-columns: 1fr 1fr; }
  .vl-two-form { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
  .vl-three { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Boutons ---------- */
.vl-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.vl-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; padding: .6rem 1.4rem; border-radius: var(--r-ctl); border: 1px solid transparent; font: 600 1rem/1.2 var(--font-sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, filter .15s; }
.vl-btn-sm { min-height: var(--tap); padding: .45rem 1rem; font-size: .9rem; }
.vl-btn-block { display: flex; width: 100%; }
/* Bouton principal : doré (marque). */
.vl-btn-primary { background: var(--gold-grad); color: var(--gold-ink); border-color: rgba(133,101,26,.35); box-shadow: 0 10px 22px -12px rgba(168,130,50,.75), inset 0 1px 0 rgba(255,255,255,.45); }
.vl-btn-primary:hover { color: var(--gold-ink); filter: brightness(1.05); box-shadow: 0 12px 26px -12px rgba(168,130,50,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.vl-btn-ink { background: var(--brand); color: #fff; }
.vl-btn-ink:hover { background: #0F4D3A; color: #fff; }
.vl-btn-ghost { border-color: var(--line); background: transparent; color: var(--text); }
.vl-btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text-soft); }
@media (prefers-color-scheme: dark) {
  .vl-btn-ink { background: #0F4D3A; color: #fff; border-color: #183029; }
  .vl-btn-ink:hover { background: #135C45; color: #fff; }
}
.vl-link-arrow { display: inline-flex; align-items: center; gap: .35rem; min-height: var(--tap); font-weight: 600; }

/* ---------- En-tête ---------- */
.vl-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.vl-header-in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4rem; }
.vl-brand, .custom-logo-link { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; flex-shrink: 0; }
.custom-logo { max-height: 2.25rem; width: auto; }
.vl-logo { display: block; width: auto; height: 2rem; }
.vl-logo-fg { fill: var(--text); }
.vl-nav { display: none; }
.vl-menu { list-style: none; display: flex; gap: 1.5rem; }
.vl-menu a, .vl-nav-login { font-size: .9rem; font-weight: 500; color: var(--text-soft); text-decoration: none; }
.vl-menu a:hover, .vl-nav-login:hover, .vl-menu .current-menu-item > a { color: var(--text); }
.vl-menu .sub-menu { display: none; }
.vl-header-cta { display: flex; align-items: center; gap: .4rem; }
.vl-burger { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); cursor: pointer; }
.vl-burger:hover { background: var(--surface); }
.vl-burger .vl-i-close, .vl-burger[aria-expanded="true"] .vl-i-open { display: none; }
.vl-burger[aria-expanded="true"] .vl-i-close { display: block; }
.vl-show-sm { display: inline; } .vl-hide-sm { display: none; }
@media (min-width: 560px) { .vl-show-sm { display: none; } .vl-hide-sm { display: inline; } }
/* Menu mobile ouvert */
.vl-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.5rem; box-shadow: var(--shadow); }
.vl-nav.is-open .vl-menu { flex-direction: column; gap: 0; }
.vl-nav.is-open .vl-menu a, .vl-nav.is-open .vl-nav-login { display: flex; align-items: center; min-height: 3rem; padding: .5rem 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
.vl-nav.is-open .vl-nav-login { color: var(--gold-text); font-weight: 600; border-bottom: 0; }
.vl-nav.is-open .sub-menu { display: block; list-style: none; padding-left: 1rem; }
@media (min-width: 1024px) {
  .vl-nav, .vl-nav.is-open { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .vl-nav.is-open .vl-menu { flex-direction: row; gap: 1.5rem; }
  .vl-nav.is-open .vl-menu a, .vl-nav.is-open .vl-nav-login { display: inline; min-height: 0; padding: 0; border: 0; font-size: .9rem; font-weight: 500; color: var(--text-soft); }
  .vl-burger { display: none; }
  .vl-menu .menu-item-has-children { position: relative; }
  .vl-menu .menu-item-has-children:hover > .sub-menu, .vl-menu .menu-item-has-children:focus-within > .sub-menu { display: block; position: absolute; top: 100%; left: -1rem; min-width: 14rem; list-style: none; padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: var(--shadow); }
  .vl-menu .sub-menu a { display: block; padding: .4rem 0; }
}

/* ---------- Hero ---------- */
/* Bandeau principal « de nuit » : vert profond, halo émeraude (liberté) et doré (marque), comme .night dans l'application. */
.vl-hero { position: relative; overflow: hidden; margin: .5rem; border-radius: 22px; border: 1px solid rgba(212,175,90,.28); color: #E6EFEA; background: var(--night-grad); box-shadow: 0 28px 56px -30px rgba(5,20,15,.8); padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2.75rem, 6vw, 4.5rem); }
.vl-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.06), transparent 30%); }
.vl-hero > .vl-wrap { position: relative; z-index: 1; }
.vl-hero .vl-display { color: #fff; }
.vl-hero-eyebrow { color: #E3C77A; }
.vl-hero-grid { display: grid; gap: 3rem; align-items: center; }
.vl-hero-grid > * { min-width: 0; }
.vl-hero-sub { margin-top: 1.5rem; font-size: clamp(1.1rem, 2.2vw, 1.25rem); color: #C9D6CF; max-width: 36rem; }
.vl-hero-note { margin-top: 1rem; font-size: .875rem; color: #93A69F; max-width: 36rem; }
.vl-hero .vl-btn-ghost { color: #F4F7F5; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.vl-hero .vl-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.vl-hero :focus-visible { outline-color: #E3C77A; }
@media (min-width: 640px) { .vl-hero { margin: .75rem; border-radius: 26px; } }
@media (min-width: 1024px) { .vl-hero-grid { grid-template-columns: 1fr 1.08fr; } }

/* ---------- Étiquettes ---------- */
.vl-kind { display: inline-flex; align-items: center; font: 600 .72rem/1.3 var(--font-sans); padding: .15rem .5rem; border-radius: var(--r-chip); letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.vl-kind-fact { background: var(--line); color: var(--text); }
.vl-kind-estimate, .vl-kind-hyp { background: var(--info-soft); color: var(--info-text); }
.vl-kind-sim { background: var(--info-soft); color: var(--info-text); border: 1px dashed currentColor; }
.vl-kind-missing { background: var(--risk-soft); color: var(--risk-text); }
.vl-kind-demo, .vl-demo-flag { background: repeating-linear-gradient(135deg, #FEF3C7 0 10px, #FDE68A 10px 20px); color: #78350F; }
@media (prefers-color-scheme: dark) { .vl-kind-demo, .vl-demo-flag { background: repeating-linear-gradient(135deg, #3A2A08 0 10px, #4A360C 10px 20px); color: #FDE68A; } }
.vl-demo-flag { margin: 0; padding: .4rem .9rem; font-size: .78rem; font-weight: 600; text-align: center; }
.vl-badge-soon, .vl-status { display: inline-block; font: 600 .72rem/1.3 var(--font-sans); padding: .15rem .55rem; border-radius: 999px; background: var(--info-soft); color: var(--info-text); vertical-align: middle; letter-spacing: 0; white-space: nowrap; }
.vl-status-ready { background: var(--line); color: var(--text); }
.vl-status-demo { background: var(--amber-soft); color: var(--amber-text); }

/* ---------- Aperçu du tableau de bord ---------- */
.vl-preview { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.55); overflow: hidden; }
.vl-preview-bar { display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; min-height: 2.9rem; border-bottom: 1px solid var(--line); }
.vl-dots { display: flex; gap: .4rem; } .vl-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
.vl-tabs { display: flex; gap: .25rem; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.vl-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 420px) { .vl-dots { display: none; } }
.vl-tabs button { border: 0; background: transparent; color: var(--text-soft); font: 600 .85rem var(--font-sans); min-height: var(--tap); padding: .35rem .8rem; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.vl-tabs button:hover { background: var(--bg); }
.vl-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .vl-tabs button[aria-selected="true"] { background: #183029; color: var(--text); box-shadow: inset 0 0 0 1px rgba(212,175,90,.35); } }
.vl-preview-body { padding: clamp(1.1rem, 3vw, 1.6rem); min-height: 21rem; }
.vl-big { font: 800 3rem/1 var(--font-display); letter-spacing: -.03em; margin: .4rem 0 .6rem; }
.vl-big .vl-kind { font-family: var(--font-sans); margin-left: .4rem; }
.vl-mid { font: 700 1.25rem/1.2 var(--font-display); }
.vl-stats3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; margin: 1.25rem 0 0; font-size: .9rem; }
.vl-stats3 dt { font-size: .75rem; color: var(--text-soft); }
.vl-stats3 dd { margin: 0; font-weight: 600; }
.vl-bars { list-style: none; margin-top: 1.25rem; display: grid; gap: .8rem; font-size: .9rem; }
.vl-bar-label { display: flex; justify-content: space-between; gap: .5rem; }
.vl-bar { display: block; margin-top: .35rem; height: .4rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.vl-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--s-other); }
.vl-bar > span.over { background: var(--risk); }
.vl-actions-list { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; font-size: .9rem; }
.vl-actions-list li { display: grid; gap: .15rem; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: .75rem; }
.vl-actions-list span { font-size: .8rem; color: var(--text-soft); }
.vl-ai-card { border-color: color-mix(in srgb, var(--ai) 45%, transparent) !important; background: var(--ai-soft); }

/* ---------- La Route ---------- */
.vl-road { display: grid; grid-template-columns: repeat(30, minmax(0,1fr)); gap: 5px; margin-top: 1.25rem; }
.vl-day { display: block; aspect-ratio: 1 / 2.6; border-radius: 6px; background: var(--road-off); transition: background-color .3s ease; }
.vl-day.on { background: linear-gradient(to top, #059669, #34D399); }
.vl-day.partial { background: linear-gradient(to top, var(--emerald) var(--p), var(--road-off) var(--p)); }
.vl-road-scale { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .75rem; color: var(--text-soft); }
@media (max-width: 640px) { .vl-road { gap: 2px; } .vl-day { border-radius: 3px; } }

/* ---------- Fonctionnalités ---------- */
.vl-features { list-style: none; display: grid; gap: 2.25rem 4rem; }
.vl-feature { display: flex; gap: 1.1rem; }
.vl-feature-icon { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); }
.vl-feature.is-ai .vl-feature-icon { background: var(--ai-soft); color: var(--ai-text); }
.vl-feature p { margin: 0; }
@media (min-width: 900px) { .vl-features { grid-template-columns: 1fr 1fr; } }

/* ---------- Calculateur ---------- */
.vl-calc { display: grid; gap: 1.5rem; }
.vl-calc-form { display: grid; gap: 1.6rem; background: var(--bg); }
.vl-calc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.vl-calc-row label { font-weight: 600; }
.vl-num-input { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.vl-num-input input { width: 8.5rem; text-align: right; }
.vl-calc input[type="range"] { width: 100%; height: var(--tap); margin-top: .25rem; accent-color: var(--emerald); }
.vl-hint { margin: .35rem 0 0; font-size: .85rem; color: var(--text-soft); }
.vl-calc-out { background: var(--night-grad); color: #E6EFEA; border: 1px solid rgba(212,175,90,.28); border-radius: var(--r-panel); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; min-width: 0; --road-off: rgba(255,255,255,.08); }
.vl-calc-form { min-width: 0; }
.vl-calc-label { color: #93A69F; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.vl-calc-pct { font: 800 clamp(3.5rem, 9vw, 4.5rem)/1 var(--font-display); letter-spacing: -.03em; margin: .4rem 0 .5rem; color: #fff; }
.vl-calc-sentence { font-size: 1.1rem; color: #C9D6CF; min-height: 3.4em; }
.vl-calc-out .vl-road-scale { color: #93A69F; }
.vl-calc-out .vl-em { color: #34D399; }
.vl-calc-proj { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.vl-calc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; margin: 1rem 0 0; }
.vl-calc-dl dt { font-size: .85rem; color: #93A69F; }
.vl-calc-dl dd { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 600; color: #fff; }
.vl-calc-hyp { margin-top: auto; padding-top: 1.5rem; font-size: .8rem; color: #93A69F; }
.vl-calc-hyp p { margin: .4rem 0 0; }
.vl-calc-out .vl-kind-sim, .vl-calc-out .vl-kind-hyp, .vl-calc-out .vl-kind-estimate { background: rgba(59,130,246,.18); color: #93C5FD; }
@media (min-width: 1024px) { .vl-calc { grid-template-columns: 1fr 1.15fr; } }
@media (max-width: 420px) { .vl-calc-row { flex-wrap: wrap; } .vl-calc-dl { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: .6rem .8rem; min-height: 2.75rem; width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--gold); }
.vl-form { display: grid; gap: 1.1rem; }
.vl-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.vl-check { display: flex; gap: .6rem; align-items: flex-start; }
.vl-check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--brand); flex-shrink: 0; }
.vl-check label { font-weight: 400; font-size: .9rem; }
.vl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vl-alert { padding: .8rem 1rem; border-radius: var(--r-ctl); margin: 0; font-weight: 500; }
.vl-alert-ok { background: var(--info-soft); color: var(--info-text); }
.vl-alert-err { background: var(--risk-soft); color: var(--risk-text); }
.vl-searchform { display: flex; gap: .5rem; max-width: 32rem; }
.vl-searchform .vl-btn { min-height: var(--tap); padding-inline: 1rem; }
.vl-search-again { margin-bottom: 1.5rem; }

/* ---------- Tableaux / comparatif ---------- */
.vl-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.vl-table { width: 100%; min-width: 56rem; border-collapse: collapse; font-size: .9rem; text-align: left; }
.vl-table th, .vl-table td { padding: .85rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.vl-table tbody tr:last-child > * { border-bottom: 0; }
.vl-table thead th { font-family: var(--font-display); font-weight: 700; }
.vl-table tbody th { font-weight: 500; width: 22%; }
.vl-cmp .is-us { background: var(--bg); }
.vl-cmp thead .is-us { box-shadow: inset 0 3px 0 var(--gold); }
.vl-cmp td.lvl-yes { font-weight: 600; }
.vl-cmp td.lvl-no, .vl-cmp td.lvl-unk { color: var(--text-soft); }
.vl-cmp td.lvl-soon { color: var(--info-text); font-weight: 600; }
.vl-cmp-note { margin-top: 1rem; }

/* ---------- IA ---------- */
.vl-dark-band { background: radial-gradient(600px 300px at 100% 0, rgba(139,92,246,.16), transparent 70%), var(--night-grad); color: #C9D6CF; }
.vl-dark-band .vl-h2 { color: #fff; }
.vl-dark-band .vl-lead { color: #93A69F; }
.vl-dark-band .vl-ai-text { color: #C4B5FD; }
.vl-dark-band a { color: #fff; }
.vl-dark-band a:hover { color: #E3C77A; }
.vl-dark-band :focus-visible { outline-color: #E3C77A; }
.vl-ai-grid { display: grid; gap: 3rem; align-items: center; }
.vl-ai-grid > * { min-width: 0; }
@media (min-width: 1024px) { .vl-ai-grid { grid-template-columns: 1fr 1fr; } }
.vl-checks { list-style: none; display: grid; gap: 1rem; margin: 2rem 0; }
.vl-checks li { display: flex; gap: .75rem; }
.vl-checks .vl-icon { color: #C4B5FD; }
.vl-checks strong { color: #fff; }
.vl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.vl-chips li { border: 1px solid var(--line); border-radius: var(--r-chip); padding: .3rem .7rem; }
.vl-dark-band .vl-chips li { border-color: rgba(255,255,255,.14); }
.vl-chat { margin: 0; background: rgba(6,17,13,.55); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-panel); overflow: hidden; display: grid; gap: 1rem; padding-bottom: 1.25rem; font-size: .95rem; }
.vl-chat > :not(.vl-demo-flag) { margin-inline: 1.25rem; }
.vl-bubble { margin: 0; max-width: 92%; padding: .8rem 1rem; border-radius: 1rem; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.28); border-bottom-left-radius: .3rem; }
.vl-bubble-me { justify-self: end; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); color: #F4F7F5; border-radius: 1rem 1rem .3rem 1rem; }

/* ---------- Sécurité ---------- */
.vl-sec-grid { list-style: none; display: grid; gap: 1.75rem 2.5rem; }
.vl-sec-grid li .vl-icon { width: 2.5rem; height: 2.5rem; padding: .55rem; margin-bottom: .75rem; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); }
.vl-sec-grid p { margin: 0; }
@media (min-width: 640px) { .vl-sec-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Tarifs ---------- */
.vl-price-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.vl-price-head .vl-section-head { margin-bottom: 0; }
.vl-toggle { display: inline-flex; padding: .25rem; border-radius: var(--r-ctl); background: var(--bg); border: 1px solid var(--line); }
.vl-toggle button { border: 0; background: transparent; color: var(--text-soft); font: 600 .9rem var(--font-sans); padding: .55rem 1rem; border-radius: 10px; cursor: pointer; min-height: var(--tap); }
.vl-toggle button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(13,31,24,.15), inset 0 0 0 1px var(--line); }
.vl-save { font-size: .75rem; color: var(--gold-text); margin-left: .25rem; }
.vl-plans { display: grid; gap: 1.5rem; max-width: 60rem; }
@media (min-width: 768px) { .vl-plans { grid-template-columns: 1fr 1fr; } }
.vl-plan { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.5rem, 3vw, 2rem); }
.vl-plan-pro { position: relative; background: var(--night-grad); color: #E6EFEA; border: 1px solid rgba(212,175,90,.55); box-shadow: 0 28px 56px -30px rgba(5,20,15,.8); }
.vl-plan-pro .vl-soft { color: #93A69F; }
.vl-plan-pro .vl-h3 { color: #E3C77A; }
.vl-plan-pro .vl-price { color: #fff; }
.vl-plan-pro .vl-check-icon { color: #E3C77A; }
.vl-plan-pro :focus-visible { outline-color: #E3C77A; }
.vl-price { font: 800 3rem/1 var(--font-display); letter-spacing: -.03em; margin: 1.25rem 0 .35rem; }
.vl-plan-list { list-style: none; display: grid; gap: .7rem; margin: 1.75rem 0 2rem; font-size: .95rem; }
.vl-plan-list li { display: flex; gap: .65rem; }
.vl-check-icon { width: 1.25rem; height: 1.25rem; color: var(--gold-text); margin-top: .15rem; }
.vl-plan .vl-btn { margin-top: auto; }
.vl-price-foot { margin-top: 1.5rem; max-width: 52rem; }

/* ---------- FAQ ---------- */
.vl-faq { border-block: 1px solid var(--line); margin-top: 1.5rem; }
.vl-faq details { border-bottom: 1px solid var(--line); }
.vl-faq details:last-child { border-bottom: 0; }
.vl-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--tap); padding: 1.1rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.vl-faq summary::-webkit-details-marker { display: none; }
.vl-plus { position: relative; width: 1rem; height: 1rem; flex-shrink: 0; }
.vl-plus::before, .vl-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: var(--text-soft); transition: transform .2s; }
.vl-plus::after { transform: rotate(90deg); }
.vl-faq details[open] .vl-plus::after { transform: rotate(0); }
.vl-faq details p { color: var(--text-soft); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Pages ---------- */
.vl-page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.vl-page-head .vl-lead { margin-bottom: 0; }
.vl-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: var(--text-soft); margin-bottom: 1.25rem; }
.vl-crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.vl-crumbs a { color: var(--text-soft); display: inline-flex; align-items: center; min-height: var(--tap); }
.vl-crumbs ol { align-items: center; }
.vl-blocks { display: grid; gap: 1.5rem; margin-block: 1.5rem 2.5rem; }
.vl-block p { margin: 0 0 .5em; color: var(--text-soft); }
.vl-list { list-style: none; display: grid; gap: .6rem; }
.vl-list li { position: relative; padding-left: 1.25rem; }
.vl-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: .45rem; height: .45rem; border-radius: 2px; background: var(--s-other); }
.vl-steps { padding-left: 1.25rem; display: grid; gap: .9rem; margin-bottom: 2.5rem; }
.vl-notice { border-radius: var(--r-panel); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.vl-notice-info { background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 35%, transparent); }
.vl-notice p:last-child { margin-bottom: 0; }
.vl-ways { list-style: none; display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.vl-ways li { display: flex; gap: 1rem; padding: 1.25rem; }
.vl-ways .vl-icon { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); }
.vl-ways p { margin: 0; }
.vl-link-card { display: grid; gap: .3rem; text-decoration: none; }
.vl-link-card:hover { border-color: var(--gold); color: inherit; }
.vl-guide-list { padding-left: 1.25rem; display: grid; gap: .5rem; margin-bottom: 2rem; }
.vl-draft { border: 2px dashed var(--amber); background: var(--amber-soft); border-radius: var(--r-ctl); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.vl-draft p { margin: 0 0 .4rem; }
.vl-ph { background: var(--amber-soft); color: var(--amber-text); padding: 0 .25rem; border-radius: 4px; font-weight: 600; }
.vl-empty { padding-block: 2rem; }
.vl-cta { background: radial-gradient(600px 260px at 50% 0, var(--gold-soft), transparent 70%), var(--surface); border-top: 1px solid var(--line); }

/* ---------- Contenu éditorial ---------- */
.vl-prose, .vl-prose-wrap { max-width: 46rem; }
.vl-prose { font-size: 1.0625rem; line-height: 1.75; }
.vl-prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.vl-prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.vl-prose ul, .vl-prose ol { padding-left: 1.4rem; margin-bottom: 1.2em; }
.vl-prose li { margin-bottom: .35em; }
.vl-prose a { color: var(--brand); text-decoration-color: var(--gold); }
@media (prefers-color-scheme: dark) { .vl-prose a { color: var(--gold-text); } }
.vl-prose blockquote { margin: 1.5em 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--line); color: var(--text-soft); }
.vl-prose img, .vl-prose figure { border-radius: var(--r-ctl); margin-block: 1.5em; }
.vl-prose figcaption, .wp-caption-text { font-size: .85rem; color: var(--text-soft); text-align: center; margin-top: .5rem; }
.vl-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1.5em; display: block; overflow-x: auto; }
.vl-prose th, .vl-prose td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; text-align: left; }
.vl-prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 1rem; font-size: .9rem; }
.vl-prose code { font-size: .9em; }
.vl-lead-prose p { font-size: 1.125rem; color: var(--text-soft); }
.vl-lead-prose strong { color: var(--text); }
.alignwide { max-width: 64rem; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.sticky, .gallery-caption, .bypostauthor { outline: 0; }

/* ---------- Blog ---------- */
.vl-meta { font-size: .875rem; color: var(--text-soft); margin-top: .75rem; }
.vl-meta a { color: inherit; }
.vl-hero-img img { width: 100%; border-radius: var(--r-panel); margin-block: 1.5rem; }
.vl-cards { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .vl-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vl-cards { grid-template-columns: repeat(3, 1fr); } }
.vl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; }
.vl-card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vl-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.vl-card-body .vl-meta { margin-top: auto; }
.vl-card h3 a { text-decoration: none; }
.vl-card h3 a:hover { text-decoration: underline; }
.vl-sources { margin-top: 3rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); font-size: .95rem; }
.vl-sources h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.vl-sources ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.vl-sources li { margin-bottom: .4rem; overflow-wrap: anywhere; }
.vl-sources .vl-soft { display: block; font-size: .8rem; }
.vl-tags { margin-top: 2rem; }
.vl-tags a { text-decoration: none; }
.vl-author-box { display: flex; gap: 1rem; align-items: center; margin-block: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.vl-author-box img { border-radius: 50%; }
.vl-author-box p { margin: 0; }
.vl-related { margin-block: 3rem; }
.post-navigation .nav-links, .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-navigation a { text-decoration: none; font-weight: 600; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-ctl); text-decoration: none; }
.pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .nav-links { justify-content: center; gap: .4rem; }
.vl-comments { margin-block: 3rem; }
.vl-comment-list { list-style: none; }
.vl-comment-list .children { list-style: none; padding-left: 1.5rem; }
.vl-comment-list .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; }

/* ---------- Pied de page ---------- */
.vl-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 3rem; font-size: .9rem; }
.vl-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.vl-footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .vl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .vl-footer-grid > :first-child { grid-column: auto; } }
.vl-footer ul { list-style: none; display: grid; gap: 0; }
.vl-footer a { color: var(--text-soft); text-decoration: none; }
.vl-footer li > a { display: inline-flex; align-items: center; min-height: var(--tap); }
.vl-footer a:hover { color: var(--text); text-decoration: underline; }
.vl-footer-title { font-weight: 600; margin-bottom: .75rem; }
.vl-footer-tag { margin-top: .75rem; max-width: 18rem; }
.vl-footer .vl-menu, .vl-footer-menu { display: grid; gap: 0; }
.vl-social { display: flex !important; flex-wrap: wrap; gap: 0 1rem !important; }
.vl-footer-legal { padding-block: 2rem 2.5rem; font-size: .8rem; color: var(--text-soft); }
.vl-footer-legal p { margin-bottom: .5rem; max-width: 52rem; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Impression ---------- */
@media print {
  .vl-header, .vl-footer, .vl-cta, .vl-skip, .vl-actions { display: none !important; }
  body { background: #fff; color: #000; }
}
