/* ===== Jetons de design ===== */
:root {
  --navy-950: #0a1822;
  --navy-900: #12232f;
  --navy-800: #25485f;
  --blue-600: #0b6a9a;
  --blue-500: #3b8cb8;
  --blue-100: #e6f0f6;
  --gold: #e09b2d;
  --gold-soft: #f8edd8;
  --paper: #ffffff;
  --surface: #ffffff;       /* fond des cartes, champs et barres (change en mode nuit) */
  --navy-solid: #12232f;    /* fond bleu nuit des blocs sombres (change légèrement en mode nuit) */
  --mist: #e5e4e0;
  --line: #e2e8f4;
  --ink: #0b1327;
  --muted: #5a6784;
  --ok: #0f9d6e;   --ok-bg: #e1f7ee;
  --warn: #9a6408; --warn-bg: #fdf1dc;
  --bad: #b4322f;  --bad-bg: #fbe8e7;
  --info: #0b6a9a; --info-bg: #e6f0f6;
  --neutral: #4a5870; --neutral-bg: #eaeef4;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(16, 30, 84, .05), 0 12px 32px rgba(40, 60, 160, .09);
  --mint: #19d3a2;
  --grad: linear-gradient(135deg, #0b6a9a 0%, #12506f 100%);
  --header-h: 68px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--navy-900); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 200; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

/* ===== Boutons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .95rem/1 var(--sans); padding: 14px 22px; min-height: 46px; border-radius: var(--r-md); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .18s, border-color .18s, transform .18s, color .18s; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(59,91,253,.28); }
.btn-primary:hover { background: linear-gradient(135deg, #2f4ae6 0%, #5b3df0 100%); box-shadow: 0 8px 22px rgba(59,91,253,.36); }
.btn-navy { background: var(--navy-solid); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { padding: 9px 14px; min-height: 36px; font-size: .85rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-600); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Formulaires ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lbl { font-weight: 700; font-size: .875rem; color: var(--navy-900); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .err { font-size: .8rem; color: var(--bad); min-height: 0; }
.input, select.input, textarea.input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
select.input { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%23566580' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
select.input:disabled { cursor: default; background-image: none; }
select.input::-ms-expand { display: none; }
textarea.input { min-height: 110px; resize: vertical; }
.input:hover { border-color: #b9c5d8; }
.input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(46, 107, 255, .15); }
.input:user-invalid { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }   /* pot de miel anti-bot */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--blue-600) var(--fill, 0%), #d5dcea var(--fill, 0%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-600); box-shadow: 0 2px 8px rgba(11,33,64,.25); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-600); cursor: grab; }

/* ===== Badges & alertes ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--neutral-bg); color: var(--neutral); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--mist); font-size: .92rem; }
.alert.warn { background: var(--warn-bg); border-color: #f0d9a8; color: #5c3c04; }
.alert.bad { background: var(--bad-bg); border-color: #f0c4c2; color: #7d1f1d; }
.alert.ok { background: var(--ok-bg); border-color: #b9e3d2; color: #0d5a3d; }
.alert.info { background: var(--info-bg); border-color: #c3d5fb; color: #163e92; }
.alert svg { flex: none; margin-top: 2px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card.raised { box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .4em; }

/* ===== En-tête du site ===== */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100; background: rgba(226,220,209,.94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { --lg-a: #0B1736; --lg-b: #2563EB; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #0B1736; font: 800 1.02rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.logo svg { height: 34px; width: auto; aspect-ratio: 442 / 376; flex: none; overflow: visible; }
.logo .lg-a { fill: var(--lg-a); } .logo .lg-b { fill: var(--lg-b); } .logo .lg-arc { stroke: var(--lg-b); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 12px; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-100); }
.header-actions { display: flex; align-items: center; gap: 10px; }
/* Sélecteur de langue : globe + code + flèche, liste déroulante des noms natifs */
.langmenu { position: relative; }
.lm-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--navy-900); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.lm-btn:hover { border-color: var(--blue-600); }
.lm-btn svg:last-child { transition: transform .15s; } .lm-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.lm-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 130; min-width: 210px; max-height: min(60vh, 420px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.lm-list[hidden] { display: none; }
.lm-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.lm-list li:hover, .lm-list li:focus { background: var(--blue-100); outline: none; }
.lm-list li.on { font-weight: 700; color: var(--blue-600); }
.burger { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-900); }
.nav a, .logo span, .header-actions .btn { white-space: nowrap; }
.nav-extra { display: none; }
@media (max-width: 1290px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s; max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1rem; }
  .header-actions .btn { display: none; }
  .nav-extra { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-extra .btn { width: 100%; }
}
main#app { padding-top: var(--header-h); min-height: 70vh; }
body.app-mode main#app { padding-top: 0; }
body.app-mode .site-header, body.app-mode .site-footer { display: none; }

/* ===== Hero ===== */
.hero { background: var(--navy-solid); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 20%, rgba(95,110,255,.34), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(183,154,91,.14), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lead { color: #c5d2e8; }
.hero .cta { margin-top: 32px; }
.hero .trust { margin-top: 36px; display: flex; gap: 22px; flex-wrap: wrap; color: #9fb3d3; font-size: .875rem; }
.hero .trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero .trust svg { color: var(--gold); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 56px; gap: 36px; } }

.quote { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.quote .figure { font: 500 clamp(2.8rem, 6vw, 3.9rem)/1 var(--serif); color: var(--navy-900); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.quote .figure small { font: 600 1rem var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.quote .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.quote .kv dt { font-size: .75rem; color: var(--muted); }
.quote .kv dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.amount-line output { font: 700 1.05rem var(--sans); font-variant-numeric: tabular-nums; }
.disclaimer { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-top: 14px; }

/* ===== Sections ===== */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tint { background: var(--mist); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.page-hero { background: var(--mist); padding-block: 56px 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; }

.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule-list li { display: grid; grid-template-columns: 44px 1fr 1.4fr; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rule-list .ico { color: var(--blue-600); }
.rule-list h3 { font: 700 1.05rem var(--sans); margin: 0; color: var(--navy-900); }
.rule-list p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .rule-list li { grid-template-columns: 36px 1fr; } .rule-list p { grid-column: 2; } }

.product-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .18s, box-shadow .18s, transform .18s; }
.product-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .pico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; }
.product-card h3 { margin: 6px 0 0; }
.product-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.product-card .range { font-size: .85rem; font-weight: 700; color: var(--navy-900); }

.steps { counter-reset: s; display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); }
.steps li { list-style: none; position: relative; padding: 0 20px 0 0; }
.steps li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-solid); color: #fff; font: 500 1.15rem var(--serif); margin-bottom: 16px; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: 12px; border-top: 1px dashed #aab7cd; }
.steps li:last-child::after { display: none; }
.steps h3 { font: 700 1.02rem var(--sans); }
.steps p { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps li::after { display: none; } }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--blue-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

.cta-band { background: var(--navy-solid); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

/* ===== Auth ===== */
.auth { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; padding: 40px 20px; background: var(--mist); }
.auth .card { width: min(100%, 480px); padding: 36px; box-shadow: var(--shadow); border: 0; }
.auth.wide .card { width: min(100%, 640px); }
.auth h1 { font-size: 2rem; }

/* ===== Connexion : maquette en deux colonnes (visuel à gauche, carte à droite) =====
   Le visuel se met à l'échelle avec sa propre taille (unités cqw/cqh) : aucun texte n'est dans les images. */
.auth.auth-split {
  --a-blue: #2563eb; --a-blue-d: #1346b3; --a-navy: #0b1736; --a-ink2: #2b3752; --a-line: #d6e0f0; --a-soft: #edf3fc; --a-field: #fff; --a-ph: #8794ad;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); place-items: stretch; padding: 0; min-height: 100dvh;
  background: radial-gradient(900px 520px at 100% 0%, #ffffff 0%, rgba(255,255,255,0) 70%), linear-gradient(150deg, #f6f9fe 0%, #e7effb 55%, #d9e6f8 100%);
}
body:has(.auth-split) main#app { padding-top: 0; min-height: 0; }
body:has(.auth-split) .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; }
body:has(.auth-split) .site-header .wrap { width: 100%; max-width: none; margin: 0; padding-inline: clamp(20px, 4.4vw, 64px); }
body:has(.auth-split) .espace-hdr .header-actions .btn-primary { display: none; }

/* --- Visuel --- */
.auth-visual { --sh: min(62cqh, 128cqw); --lift: 0px; position: relative; overflow: hidden; container-type: size; isolation: isolate; color: var(--a-navy);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent); }
.av-copy { position: absolute; z-index: 3; left: clamp(22px, 9.8cqw, 76px); top: clamp(76px, 11cqh, 130px); max-width: min(50cqw, 22em); }
.av-title { margin: 0; font: 800 clamp(1.25rem, min(6cqw, 5.2cqh), 4rem)/1.07 var(--sans); letter-spacing: -.025em; color: var(--a-navy); text-wrap: balance; }
.av-accent { position: relative; display: inline-block; max-width: 100%; color: var(--a-blue); }
.av-accent::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: -.12em; height: .2em; border-bottom: .07em solid currentColor; border-radius: 0 0 100% 100% / 0 0 100% 100%; }
.av-sub { margin: 1.05em 0 0; max-width: 30ch; font: 500 clamp(.82rem, min(2.3cqw, 2.1cqh), 1.2rem)/1.45 var(--sans); color: var(--a-ink2); text-wrap: pretty; }
.av-stage { position: absolute; z-index: 1; left: 0; bottom: var(--lift); height: var(--sh); aspect-ratio: 652 / 858; pointer-events: none; }
.av-stage img { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.av-photo { inset: 0; width: 100%; height: 100%; z-index: 2; }
.av-band { left: 0; top: 0; height: calc(100% * 1500 / 858); width: auto; z-index: 1; }
.av-chart { position: absolute; z-index: 0; display: block; left: 55cqw; bottom: calc(var(--lift) + var(--sh) * .88); height: calc(var(--sh) * .5); width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 0 10px rgba(70, 140, 255, .3)); }
.av-cats { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 clamp(14px, 4cqw, 40px) clamp(12px, 3.4cqh, 30px) clamp(14px, 4cqw, 40px); list-style: none; display: flex; color: #fff; }
.av-cats li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; padding-inline: 6px; text-align: center; font: 700 clamp(.64rem, min(1.8cqw, 2.1cqh), .98rem)/1.15 var(--sans); overflow-wrap: anywhere; }
.av-cats li + li { border-left: 1.5px solid rgba(130, 178, 255, .6); }
.av-cats svg { width: clamp(20px, min(4.8cqw, 5.2cqh), 38px); height: auto; stroke-width: 1.5; }

/* --- Carte --- */
.auth-split .auth-form { position: relative; z-index: 5; display: grid; place-items: center; padding: calc(var(--header-h) + 4px) clamp(16px, 3vw, 52px) 28px 0; }
.auth-split .login-card { width: min(100%, 560px); position: relative; left: -22px; padding: clamp(22px, 3.4vh, 40px) clamp(22px, 3vw, 44px); border: 1px solid rgba(255, 255, 255, .85); border-radius: 30px;
  background: var(--surface); box-shadow: 0 34px 80px -24px rgba(24, 56, 140, .35), 0 2px 10px rgba(24, 56, 140, .06); }
.login-card .lc-logo { display: flex; justify-content: center; margin-bottom: clamp(8px, 1.6vh, 16px); }
.login-card .lc-logo .logo { font-size: 1.2rem; } .login-card .lc-logo .logo svg { height: 46px; }
.auth-split .login-card h1 { margin: 0 0 .3em; text-align: center; font: 800 clamp(1.9rem, 4vh, 2.5rem)/1.1 var(--sans); letter-spacing: -.02em; color: var(--a-navy); }
.lc-lead { margin: 0 auto clamp(14px, 2.4vh, 26px); max-width: 36ch; text-align: center; font-size: 1rem; line-height: 1.45; color: var(--a-ink2); text-wrap: balance; }
.login-card .login-form { --gap: clamp(12px, 2vh, 20px); }
.login-card .field { gap: 8px; }
.login-card .field > label { color: var(--a-navy); font-weight: 800; font-size: .98rem; }
.lbl-ico { display: inline-flex; align-items: center; gap: 10px; } .lbl-ico svg { flex: none; }
.login-card .input { min-height: clamp(50px, 6.6vh, 60px); padding: 0 20px; border: 1.5px solid var(--a-line); border-radius: 18px; background: var(--a-field); font-size: 1rem; }
.login-card .input::placeholder { color: var(--a-ph); opacity: 1; }
.login-card .input:hover { border-color: #b4c4e0; }
.login-card .input:focus { border-color: var(--a-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); outline: none; }
.login-card .pw-wrap .input { padding-right: 56px; }
.login-card .btn { border-radius: 18px; font-size: 1.02rem; }
.login-card .btn-login { min-height: clamp(52px, 7vh, 62px); gap: 12px; color: #fff; border: 0; background: linear-gradient(180deg, #2f74ee 0%, #1450c8 100%); box-shadow: 0 12px 24px -8px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.login-card .btn-login:hover { background: linear-gradient(180deg, #3a7df3 0%, #1858d6 100%); }
.login-card .btn-login:disabled { opacity: .7; cursor: progress; }
.divider-link, .divider-txt { display: flex; align-items: center; gap: 16px; text-align: center; font-size: .98rem; }
.divider-txt { margin: 0; }
.divider-link::before, .divider-link::after, .divider-txt::before, .divider-txt::after { content: ""; flex: 1; height: 1px; background: var(--a-line); }
.divider-link a { font-weight: 600; color: var(--a-blue); text-decoration: none; } .divider-link a:hover { text-decoration: underline; }
.divider-txt { color: var(--a-ink2); }
.first-time { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 14px; margin-top: clamp(14px, 2.4vh, 24px); padding: clamp(12px, 2vh, 18px) 20px; border-radius: 16px; background: var(--a-soft); }
.first-time .ft-ico { display: grid; place-items: center; color: var(--a-blue); }
.first-time strong { display: block; margin-bottom: 2px; font-size: 1rem; color: var(--a-navy); }
.first-time p { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--a-ink2); }
.auth-split .login-card .login-new { margin-top: clamp(14px, 2.4vh, 24px); padding: 0; border: 0; text-align: center; }
.login-card .login-new .divider-txt { margin-bottom: clamp(10px, 1.8vh, 16px); }
.login-card .btn-outline { min-height: clamp(48px, 6.4vh, 58px); gap: 10px; color: var(--a-blue); background: var(--a-field); border: 2px solid var(--a-blue); }
.login-card .btn-outline:hover { background: var(--a-soft); }

/* Écrans bas : on compacte la carte pour éviter le défilement */
@media (min-width: 1024px) and (max-height: 820px) { .login-card .lc-logo { display: none; } .first-time { grid-template-columns: 44px 1fr; } }

/* --- Tablette : formulaire en premier, visuel réduit en dessous --- */
@media (max-width: 1023px) {
  .auth.auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-split .auth-form { order: -1; padding: calc(var(--header-h) + 8px) 20px 28px; }
  .auth-split .login-card { left: 0; width: min(100%, 520px); }
  .login-card .lc-logo { display: none; }
  .auth-visual { --lift: 8cqh; width: min(100%, 600px); margin: 0 auto 28px; aspect-ratio: 5 / 4; border-radius: 26px; -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(150deg, #f6f9fe, #e1ebfa); }
  .av-cats { padding-right: clamp(14px, 4cqw, 40px); }
  .av-copy { top: clamp(18px, 6cqh, 44px); max-width: min(60cqw, 26em); }
}
/* --- Mobile : même principe, visuel compact --- */
@media (max-width: 620px) {
  .auth-split .auth-form { padding: calc(var(--header-h) + 4px) 14px 20px; }
  .auth-split .login-card { padding: 22px 18px; border-radius: 24px; }
  .auth-visual { --lift: 9cqh; width: calc(100% - 28px); aspect-ratio: 1 / 1.02; border-radius: 22px; margin-bottom: 20px; }
  body:has(.auth-split) .espace-hdr .back-site { display: none; }
  .av-copy { left: 18px; top: 20px; max-width: calc(100% - 36px); }
  .av-chart { display: none; }
}
/* --- Mode nuit --- */
html[data-theme="dark"] .auth.auth-split { --a-navy: #eaf0ff; --a-ink2: #b9c5e3; --a-line: #2c3c63; --a-soft: #15233f; --a-field: #0f1a31; --a-ph: #7584a6;
  background: radial-gradient(900px 520px at 100% 0%, #16254a 0%, rgba(22, 37, 74, 0) 70%), linear-gradient(150deg, #0d1730 0%, #0a1226 60%, #081020 100%); }
html[data-theme="dark"] .auth-split .login-card { border-color: rgba(120, 150, 220, .2); box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .auth-visual { background: transparent; }
html[data-theme="dark"] .av-accent, html[data-theme="dark"] .divider-link a, html[data-theme="dark"] .login-card .btn-outline { color: #7fb0ff; }
html[data-theme="dark"] .login-card .btn-outline { border-color: #4d83f0; }
@media (max-width: 1023px) { html[data-theme="dark"] .auth-visual { background: linear-gradient(150deg, #122044, #0b1530); } }
.pw-meter { height: 4px; border-radius: 4px; background: #e2e8f2; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }

/* ===== Pied de page ===== */
.site-footer { background: var(--navy-950); color: #9fb3d3; padding-block: 56px 28px; font-size: .9rem; }
.site-footer h4 { font: 700 .9rem var(--sans); color: #fff; margin-bottom: 14px; }
.site-footer a { color: #c5d2e8; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { display: inline-flex; padding: 0; color: #fff; --lg-a: #fff; --lg-b: #60A5FA; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer .legal-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .8rem; line-height: 1.6; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ===== Toasts, modales, cookies ===== */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(92vw, 380px); }
.toast { background: var(--navy-solid); color: #fff; padding: 14px 16px; border-radius: var(--r-md); box-shadow: var(--shadow); font-size: .92rem; animation: pop .2s ease-out; }
.toast.ok { background: var(--ok); } .toast.bad { background: var(--bad); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
dialog { background: var(--surface); color: var(--ink); border: 0; border-radius: var(--r-lg); padding: 0; width: min(92vw, 520px); box-shadow: 0 30px 80px rgba(6,19,42,.4); }
dialog::backdrop { background: rgba(6, 19, 42, .55); }
dialog .dlg { padding: 26px; }
dialog .dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
/* Bannière de consentement : carte flottante (bas-gauche sur ordinateur, feuille pleine largeur sur mobile) */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 250; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 22px 22px 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 97%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(6,19,42,.06), 0 12px 32px rgba(6,19,42,.14), 0 32px 80px rgba(6,19,42,.16); overflow: hidden; animation: cookie-in .45s cubic-bezier(.2,.8,.2,1) .35s both; }
.cookie::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--navy-900), var(--gold)); }
.cookie-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cookie-head h3 { margin: 0; font: 500 1.2rem/1.2 var(--serif); letter-spacing: -.01em; color: var(--navy-900); }
.cookie-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); color: var(--navy-900); }
.cookie-text { margin: 0 0 16px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.cookie-text a { color: var(--navy-900); font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions .btn { padding: 12px 14px; min-height: 46px; font-size: .9rem; white-space: nowrap; }
.cookie-custom { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 6px; padding: 12px; min-height: 44px; background: none; border: 0; border-radius: var(--r-md); font: 700 .85rem var(--sans); color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.cookie-custom:hover { color: var(--navy-900); background: var(--mist); }
.cookie-custom:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (max-width: 560px) { .cookie { left: 0; right: 0; bottom: 0; width: auto; border-radius: 20px 20px 0 0; padding: 20px 18px calc(12px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-transparency: reduce) { .cookie { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Fenêtre « Personnaliser » : interrupteurs */
.consent-list { display: grid; gap: 10px; margin-top: 16px; }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); cursor: pointer; transition: border-color .15s, background .15s; }
.consent-row:hover:not(.locked) { border-color: var(--navy-900); background: var(--surface); }
.consent-row.locked { cursor: default; }
.consent-txt { display: grid; gap: 3px; min-width: 0; } .consent-txt strong { font-size: .95rem; color: var(--navy-900); } .consent-txt small { font-size: .8rem; line-height: 1.45; color: var(--muted); }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: #c5cde0; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(6,19,42,.3); transition: transform .2s cubic-bezier(.3,.7,.3,1); }
.switch-input:checked + .switch-track { background: var(--navy-900); } .switch-input:checked + .switch-track::after { transform: translateX(18px); }
.switch-input:disabled + .switch-track { opacity: .55; }
.switch-input:focus-visible + .switch-track { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #d5dcea; border-top-color: var(--blue-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 80px 0; }
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.err-page .code { font: 500 clamp(4rem, 12vw, 8rem)/1 var(--serif); color: var(--blue-600); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.divider-space { height: 20px; }
.amount-input { width: 150px; text-align: right; font-weight: 700; padding: 8px 12px; min-height: 40px; }
.quote .field > label { font-size: .82rem; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-md); color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--blue-600); }
.alert .mono { margin-top: 6px; opacity: .85; overflow-wrap: anywhere; }

/* ===== Hero avec image grand format ===== */
.hero-media { position: absolute; inset: 0; display: none; }
.hero.has-image .hero-media { display: block; }
.hero.has-image::before { display: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 50% 35%); }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,19,42,.93) 0%, rgba(6,19,42,.8) 40%, rgba(6,19,42,.4) 100%), linear-gradient(180deg, rgba(6,19,42,.45) 0%, transparent 28%, rgba(6,19,42,.35) 100%); }
.hero.has-image .wrap { min-height: min(84vh, 780px); padding-block: 88px 104px; }
@media (max-width: 960px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(6,19,42,.88) 0%, rgba(6,19,42,.78) 55%, rgba(6,19,42,.9) 100%); }
  .hero.has-image .wrap { min-height: 0; padding-block: 48px 56px; }
}

/* ===== Héros clair avec photo (maquette) ===== */
.hero-lite { position: relative; overflow: hidden; background: linear-gradient(180deg, #e9f1fb, #f6f9fd); }
.hero-photo { position: absolute; inset: 0; display: block; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-copy { position: relative; padding-block: 64px 150px; min-height: clamp(520px, 41vw, 680px); }
.hero-copy > * { max-width: 620px; }
.hero-copy > h1 { max-width: none; white-space: nowrap; }
.hero-eyebrow { margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-600); }
.hero-lite h1 { font-family: var(--sans); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; font-size: clamp(2.3rem, 3.9vw, 3.5rem); color: var(--navy-900); margin-bottom: .45em; }
.hero-lite h1 span { color: var(--blue-600); }
.hero-lite .lead { color: var(--navy-800); font-size: clamp(1rem, 1.25vw, 1.12rem); max-width: 54ch; }
.hero-lite .cta { margin-top: 28px; }
.hero-lite .btn { border-radius: 999px; padding-inline: 28px; }
.hero-lite .btn-primary { background: var(--blue-600); }
.hero-lite .btn-primary:hover { background: #0b3fa0; }
.hero-lite .btn-ghost { background: rgba(255,255,255,.75); border-color: var(--blue-600); color: var(--blue-600); }
.hero-lite .btn-ghost:hover { background: #fff; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 5vw, 76px); fill: #fff; }

.stats-band { background: var(--surface); padding-block: 14px 48px; }
.stats-band ul { list-style: none; margin-inline: auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-band li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 14px; }
.stats-band li + li { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 500; line-height: 1.1; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .92rem; line-height: 1.35; color: var(--navy-800); font-weight: 500; }
.sim-home { align-items: center; gap: 48px; }

@media (max-width: 1099px) {
  /* Mobile : la photo passe en arrière-plan des textes, ancrée en bas et fondue vers le haut pour garder le texte lisible */
  .hero-lite { display: block; }
  .hero-copy { min-height: 0; padding-block: 40px 230px; }
  .hero-copy > * { max-width: none; }
  .hero-copy > h1 { white-space: normal; }
  .hero-photo { inset: auto 0 0 0; height: clamp(420px, 125vw, 700px); z-index: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 30%, #000 55%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 30%, #000 55%); }
  .hero-photo img { object-position: 55% 40%; }
  .hero-copy { z-index: 1; }
  .sim-home { gap: 28px; }
}
@media (max-width: 620px) {
  .stats-band ul { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats-band li:nth-child(odd) { border-left: 0; }
  .hero-lite .cta .btn { flex: 1 1 100%; }
}

/* ===== Témoignages : carrousel ===== */
.tsec { background: var(--mist); }
.tsummary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 1.05rem; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 18px; height: 18px; fill: #e3a72f; }
.star.off { fill: #d5dcea; }
.tcar { position: relative; }
.tcar-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; }
.tcar-track::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tcard blockquote { margin: 0; flex: 1; }
.tcard blockquote p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.tcard footer { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.vbadge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tcontrols { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; }
.tbtn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy-900); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s; }
.tbtn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.tcontrols .tbtn:first-child svg { transform: rotate(180deg); }
.ico-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.ico-play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.tnote { text-align: center; margin: 18px 0 0; }
@media (max-width: 960px) { .tcard { flex-basis: calc((100% - 20px) / 2); } .tcar-track { gap: 20px; } }
@media (max-width: 620px) { .tcard { flex-basis: 88%; } }
.tcard > .row.between { min-height: 28px; }

/* ===== Newsletter (pied de page) ===== */
.news-band { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.news-band h4 { font: 500 1.35rem var(--serif); margin-bottom: 8px; }
.news-form .news-row { display: flex; gap: 10px; }
.news-form .news-row .input { flex: 1; min-width: 0; }
.news-form .check { margin-top: 12px; color: #9fb3d3; }
.news-form .check a { display: inline; padding: 0; text-decoration: underline; }
@media (max-width: 800px) { .news-band { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 480px) { .news-form .news-row { flex-direction: column; } }
.nl-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; }
.nl-ico.ok { background: var(--ok); } .nl-ico.bad { background: var(--warn); }

/* ===== Connexion par code ===== */
.otp-input { font: 700 1.9rem/1 var(--sans); letter-spacing: .45em; text-align: center; padding-left: calc(.45em + 14px); max-width: 320px; margin-inline: auto; }
.otp h3 { margin-bottom: 0; }
.login-new { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.login-new p { margin-bottom: 10px; }
.auth .tabs { margin-bottom: 18px; }
.auth .tabs button { flex: 1; }
/* En-tête de l'espace client : minimal, toujours visible (pas de menu burger) */
.espace-hdr .header-actions { display: flex; gap: 8px; }
@media (max-width: 1290px) { .espace-hdr .header-actions .btn { display: inline-flex; } }
@media (max-width: 620px) { .espace-hdr .back-site { display: none; }  }
.espace-footer { padding-block: 28px 20px; }
.espace-footer .row { gap: 6px 22px; margin-bottom: 14px; }
.espace-footer .row a { display: inline; padding: 0; }

/* ===== À propos de nous (accueil) : texte + image ===== */
.about-grid { align-items: center; gap: 56px; }
.about-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 8 / 9; background: var(--mist); }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text > * { max-width: 46ch; }
.about-text .lead { margin-bottom: .6em; }
.about-us.no-image .about-grid { grid-template-columns: 1fr; }
.about-us.no-image .about-text > * { max-width: 70ch; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-media { order: -1; aspect-ratio: 16 / 10; }
}

/* Section « comité d'administration » */
.gov-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gov-grid { grid-template-columns: 1.05fr 1fr; } }
.gov-photo { margin: 0; position: relative; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.gov-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(10, 26, 61, .08); pointer-events: none; }
.gov-photo img { display: block; width: 100%; height: auto; border-radius: inherit; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .gov-photo { transform: translateY(0); } .gov-photo::before { content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; border-radius: inherit; background: var(--blue-100); } }
.gov-copy h2 { margin: 0 0 14px; }
.gov-copy > p:not(.hero-eyebrow) { color: var(--muted); margin: 0 0 12px; max-width: 56ch; }
.gov-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.gov-points li { display: flex; gap: 14px; align-items: flex-start; }
.gov-points .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); }
.gov-points strong { display: block; color: var(--ink); }
.gov-points span:not(.ico) { color: var(--muted); font-size: .95rem; }

/* Section « financement professionnel » (réutilise .gov-*) */
@media (min-width: 900px) {
  .gov-grid.rev { grid-template-columns: 1fr 1.05fr; }
  .gov-grid.rev .gov-photo { order: 2; }
  .gov-grid.rev .gov-photo::before { inset: 18px 18px -18px -18px; }
}
.biz-uses-title { margin: 20px 0 8px !important; font-weight: 700; color: var(--ink) !important; }
.biz-tags { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.biz-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--blue-100); color: var(--navy-800); font-size: .88rem; font-weight: 600; }
.biz .cta { margin-top: 24px; }
.biz-legal { margin-top: 16px !important; max-width: 60ch; }

/* Alerte pays détecté ≠ pays déclaré ; point « en direct » */
.geo-alert { align-items: flex-start; border-left: 4px solid var(--warn); }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; margin: 0 0 8px; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ===== Page d'accueil : héros sombre, bandeau de chiffres, cartes, simulateur, étapes (sections .hm-*) ===== */
.hm h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; color: var(--navy-900); }
.hm-eyebrow { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.hm .section-head .lead { font-size: 1rem; }

/* Héros : photo plein cadre assombrie, texte à gauche en blanc */
.hero-lite.hm-hero { background: #0c1c33; }
.hm-hero .hero-photo { position: absolute; inset: 0; height: auto; z-index: 0; -webkit-mask-image: none; mask-image: none; }
.hm-hero .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,42,.78) 0%, rgba(8,22,42,.7) 45%, rgba(8,22,42,.86) 100%); }
.hm-hero .hero-photo img { object-position: 60% 50%; }
.hm-hero .hero-copy { z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 72px 56px; min-height: clamp(560px, 78vh, 760px); }
.hm-hero .hero-copy > * { max-width: 640px; }
.hm-hero .hero-copy > h1 { white-space: normal; max-width: 720px; }
.hm-hero h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; }
.hm-hero h1 span { color: var(--gold); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.hm-hero .lead { color: #d3dbe8; }
.hm-pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 20px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); color: #e8eef7; font-size: .76rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hm-pill svg { color: var(--gold); }
.hm-hero .btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 22px rgba(11,106,154,.45); }
.hm-hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.hm-hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.hm-hero .cta .btn { flex: 0 0 auto; }

/* Bandeau de chiffres juste sous le héros */
.stats-band.hm-band { background: var(--blue-600); padding-block: 28px; }
.hm-band ul { grid-template-columns: repeat(4, 1fr); row-gap: 0; }
.hm-band li + li { border-left: 0; }
.hm-band li { padding: 4px 8px; gap: 4px; }
.hm-band .stat-num { color: #fff; font-size: clamp(1.45rem, 5vw, 2.4rem); }
.hm-band .stat-label { color: #cfe0fb; font-size: clamp(.68rem, 2.3vw, .92rem); font-weight: 500; }
@media (max-width: 640px) { .hm-band ul { grid-template-columns: repeat(4, 1fr); row-gap: 0; } .hm-band li:nth-child(odd) { border-left: 0; } }

/* Nos solutions : cartes à deux colonnes */
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm .product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; gap: 10px; }
.hm .product-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--navy-900); }
.hm .product-card .pico { width: 42px; height: 42px; border-radius: 10px; }
.hm .product-card .range, .hm .product-card .small { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: var(--navy-800); }
.hm .product-card .range::before, .hm .product-card .small::before { content: "✓"; display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--blue-600); border-radius: 50%; color: var(--blue-600); font-size: .6rem; font-weight: 800; flex: none; }
.plink { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: .86rem; color: var(--blue-600); }
@media (max-width: 900px) { .hm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .hm .product-card { padding: 18px 14px; } .hm .product-card p { font-size: .8rem; } }
@media (max-width: 420px) { .hm .product-card h3 { font-size: 1.05rem; } }

/* Simulateur : carte de réglage + bloc résultat sombre */
.hm-sim .card.raised { border-radius: 18px; }
.hm-sim .figure { color: var(--gold); font-family: var(--serif); font-weight: 500; }
.hm-sim .figure small { color: #b9c6dc; }
.hm-sim .card.raised .figure { color: var(--navy-900); }

/* Comment ça marche : image + étapes en cartes, puis trois atouts */
.hm-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.hm-steps-img { display: block; border-radius: 18px; overflow: hidden; min-height: 240px; box-shadow: var(--shadow); }
.hm-steps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hm-steps-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.hm-n { font-family: var(--serif); font-size: 1.5rem; color: #a9c0e6; line-height: 1; }
.hm-steps-list h3 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin: 0 0 4px; }
.hm-steps-list p { margin: 0; color: var(--muted); font-size: .88rem; }
.hm-ben { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.hm-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); margin-bottom: 10px; }
.hm-ben h3 { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; margin: 0 0 6px; }
.hm-ben p { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .hm-steps-grid { grid-template-columns: 1fr; } .hm-steps-img { min-height: 200px; max-height: 260px; } .hm-ben { gap: 12px; } .hm-ben p { font-size: .76rem; } }

/* Appel final : carte sombre centrée */
.hm-cta .cta-band { flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(135deg, #0d1f35 0%, #12304f 100%); padding-block: clamp(36px, 6vw, 64px); }
.hm-cta .cta-band h2 { color: #fff; font-family: var(--serif); font-weight: 500; }
.hm-cta .btn-light { background: var(--gold); color: #1d1608; border-radius: 999px; padding-inline: 28px; font-weight: 700; }
.hm .plink { align-self: flex-start; }
@media (max-width: 420px) { .hm .plink { font-size: .78rem; } }
.hm-band .stat-num { white-space: nowrap; font-size: clamp(1.2rem, 4.6vw, 2.4rem); }
.hm-sim .qresult { background: var(--navy-solid); color: #fff; border-radius: 14px; padding: 20px 22px; }
.hm-sim .qresult .small, .hm-sim .qresult .muted, .hm-sim .qresult dt { color: #b9c6dc; }
.hm-sim .qresult dd, .hm-sim .qresult dl { color: #fff; }
.hm-sim .card.raised .qresult .figure { color: var(--gold); font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.1; margin: 6px 0 12px; }
.hm-sim .qresult .figure small { font-family: var(--sans); font-size: .85rem; margin-left: 6px; }
.hm-sim .qresult dl { border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; margin: 0; }

/* Affichage mobile : une carte par ligne, chiffres en 2 × 2, atouts empilés */
@media (max-width: 640px) {
  .hm-grid { grid-template-columns: 1fr; gap: 16px; }
  .hm .product-card { padding: 26px 24px; gap: 12px; border-radius: 20px; }
  .hm .product-card h3 { font-size: 1.5rem; }
  .hm .product-card p { font-size: .95rem; }
  .hm .product-card .range, .hm .product-card .small { font-size: .9rem; }
  .hm .plink { font-size: .95rem; margin-top: 8px; }
  .stats-band.hm-band { padding-block: 36px 40px; }
  .hm-band ul { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .hm-band .stat-num { font-size: 2.3rem; }
  .hm-band .stat-label { font-size: .95rem; }
  .hm-ben { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .hm-ben p { font-size: .95rem; }
  .hm-ben h3 { font-size: 1.2rem; }
  .hm-ico { width: 56px; height: 56px; }
  .hm-steps-list li { padding: 20px 22px; }
  .hm-steps-list h3 { font-size: 1.2rem; }
  .hm-steps-list p { font-size: .95rem; }
  .hm-n { font-size: 1.9rem; }
  .hm-hero .hero-copy { padding-block: 64px 48px; }
}
.hm-hero h1 { font-size: clamp(2.5rem, 7.4vw, 3.8rem); }

/* ===== Palette d'accueil : fond beige, sections grises en alternance, simulateur à deux curseurs, « Nos chiffres » ===== */
.hm { background: #e0d9ce; }
.hm .section { background: transparent; }
.hm .section.tint, .hm .tsec, .hm .hm-sim { background: #e5e4e0; }
.hm .product-card, .hm .hm-steps-list li, .hm-fig-grid li, .hm .tcard { background: #fff; }
.hm-sim-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hm-sim-copy .lead { margin-bottom: 18px; }
.hs { display: grid; gap: 16px; }
.hs-card { background: #fff; border-radius: 18px; padding: 24px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.hs-head { display: flex; gap: 12px; align-items: center; }
.hs-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; display: block; }
.hs-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); flex: none; }
.hs-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: .92rem; font-weight: 500; }
.hs-val { font-family: var(--serif); font-size: 1.5rem; color: var(--blue-600); font-weight: 500; }
.hs-mm { display: flex; justify-content: space-between; margin-top: 6px; }
.hs-rate { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.hs-rate strong { color: var(--navy-900); }
.hs-result { background: #12232f; color: #fff; border-radius: 18px; padding: 24px; }
.hs-lab { margin: 0 0 6px; color: #b9c6d4; font-size: .9rem; }
.hs-pay { font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 3.2rem); color: var(--gold); line-height: 1.1; }
.hs-pay small { font-family: var(--sans); font-size: .95rem; color: #b9c6d4; }
.hs-rows { margin: 18px 0 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; }
.hs-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.hs-rows dt { color: #b9c6d4; } .hs-rows dd { margin: 0; font-weight: 700; }
.hs-cta { width: 100%; justify-content: center; background: var(--blue-600); color: #fff; border-radius: 999px; padding-block: 14px; box-shadow: 0 8px 22px rgba(11,106,154,.45); }
.hs-disc { margin: 14px 0 0; font-size: .72rem; color: #8fa0b3; }
@media (max-width: 900px) { .hm-sim-grid { grid-template-columns: 1fr; gap: 24px; } }
.hm-fig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-fig-grid li { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 16px; border: 1px solid var(--line); }
.hm-fig-grid strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--navy-900); line-height: 1.1; margin-top: 8px; white-space: nowrap; }
.hm-fig-grid li > span:last-child { color: var(--muted); font-size: .9rem; }
.hm-ico.sq { border-radius: 12px; width: 46px; height: 46px; margin: 0; background: var(--blue-100); }
.hm-fig-grid li:nth-child(2) .hm-ico, .hm-fig-grid li:nth-child(4) .hm-ico { color: var(--gold); }
@media (max-width: 900px) { .hm-fig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hm-fig-grid { gap: 12px; } .hm-fig-grid li { padding: 20px 16px; } }
html[data-theme="dark"] .av-photo { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
