/* ==========================================================================
   DAIAMON CONNECT V12 — Design system « Liquid Glass premium »
   Palette officielle : #1E4F5D #24454C #7AA1A6 #CB9476 #A86C54 #F4EDE0 #F5EFE7 #FFFFFF
   Pétrole dominant · cuivre = interactions et détails · crème/sable = lumière
   WCAG 2.2 AA · 320 → 1920 px · prefers-reduced-motion / -transparency / -contrast
   ========================================================================== */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/manrope-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Palette officielle */
  --petrol: #1E4F5D; --petrol-deep: #24454C; --teal: #7AA1A6;
  --copper: #CB9476; --copper-deep: #A86C54;
  --sand: #F4EDE0; --cream: #F5EFE7; --white: #FFFFFF;

  /* Rôles — thème clair */
  --bg: var(--cream);
  --bg-alt: var(--sand);
  --surface: var(--white);
  --surface-2: color-mix(in srgb, var(--white) 55%, var(--sand));
  --ink: #17343B;                       /* dérivé du pétrole profond, contraste ≥ 11:1 sur crème */
  --ink-2: #3B5A62;                     /* texte secondaire ≥ 6:1 */
  --ink-3: #46626A;                     /* légendes ≥ 5.6:1 */
  --brand: var(--petrol);
  --brand-ink: var(--petrol);
  --accent: var(--copper);              /* décor, bordures, surfaces */
  --accent-ink: #8A523C;                /* cuivre profond assombri : texte accentué ≥ 4.6:1 sur crème */
  --line: color-mix(in srgb, var(--petrol-deep) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--petrol-deep) 26%, transparent);
  --glass-bg: color-mix(in srgb, var(--cream) 86%, transparent);
  --glass-brd: color-mix(in srgb, var(--white) 62%, transparent);
  --glass-hi: color-mix(in srgb, var(--white) 70%, transparent);
  --glass-shadow: 0 10px 34px rgba(23, 52, 59, .13), 0 2px 6px rgba(23, 52, 59, .06);
  --shadow-sm: 0 4px 14px rgba(23, 52, 59, .07);
  --shadow-md: 0 16px 40px rgba(23, 52, 59, .12);
  --shadow-lg: 0 34px 80px rgba(16, 36, 41, .24);
  --focus: #0B6E8A;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(18px, 4.4vw, 52px);
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-xl: 36px; --r-pill: 999px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --nav-h: 64px;
  --dock-h: 0px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: color-mix(in srgb, var(--petrol-deep) 62%, #000);
  --bg-alt: color-mix(in srgb, var(--petrol-deep) 78%, #000);
  --surface: color-mix(in srgb, var(--petrol-deep) 92%, #000);
  --surface-2: color-mix(in srgb, var(--petrol-deep) 84%, #000);
  --ink: var(--cream); --ink-2: #D2D8D3; --ink-3: #B6C3C2;
  --brand: var(--teal); --brand-ink: #A9C6C9;
  --accent-ink: #E3B79D;
  --line: color-mix(in srgb, var(--cream) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--cream) 28%, transparent);
  --glass-bg: color-mix(in srgb, var(--petrol-deep) 70%, transparent);
  --glass-brd: color-mix(in srgb, var(--cream) 22%, transparent);
  --glass-hi: color-mix(in srgb, var(--cream) 22%, transparent);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, .38);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .3); --shadow-md: 0 16px 40px rgba(0, 0, 0, .38);
  --focus: #8ED1E4;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: color-mix(in srgb, var(--petrol-deep) 62%, #000); --bg-alt: color-mix(in srgb, var(--petrol-deep) 78%, #000);
    --surface: color-mix(in srgb, var(--petrol-deep) 92%, #000); --surface-2: color-mix(in srgb, var(--petrol-deep) 84%, #000);
    --ink: var(--cream); --ink-2: #D2D8D3; --ink-3: #B6C3C2; --brand: var(--teal); --brand-ink: #A9C6C9; --accent-ink: #E3B79D;
    --line: color-mix(in srgb, var(--cream) 14%, transparent); --line-strong: color-mix(in srgb, var(--cream) 28%, transparent);
    --glass-bg: color-mix(in srgb, var(--petrol-deep) 70%, transparent); --glass-brd: color-mix(in srgb, var(--cream) 22%, transparent);
    --glass-hi: color-mix(in srgb, var(--cream) 22%, transparent); --glass-shadow: 0 12px 40px rgba(0, 0, 0, .38);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .3); --shadow-md: 0 16px 40px rgba(0, 0, 0, .38); --focus: #8ED1E4; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 36px); }

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; font-weight: 450;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; padding-bottom: var(--dock-h); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--petrol); color: var(--cream); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
.h1 { font-size: clamp(2.3rem, 4.9vw, 4.1rem); line-height: 1.04; letter-spacing: -.028em; font-weight: 800; text-wrap: balance; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); line-height: 1.1; letter-spacing: -.022em; font-weight: 800; text-wrap: balance; }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; letter-spacing: -.012em; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--copper); border-radius: 2px; }
.small { font-size: .875rem; line-height: 1.5; } .muted { color: var(--ink-3); } .tnum { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; } .prose h2 { margin-top: 2em; margin-bottom: .5em; font-size: 1.4rem; letter-spacing: -.01em; } .prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-top: .6em; } .prose li + li { margin-top: .3em; } .prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.mark { color: var(--accent-ink); }

/* ---------- Mise en page ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(60px, 9vw, 124px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(160deg, var(--petrol-deep), color-mix(in srgb, var(--petrol-deep) 70%, #000)); color: var(--cream); --ink: var(--cream); --ink-2: #D2D8D3; --ink-3: #B6C3C2; --accent-ink: #E3B79D; --line: rgba(245, 239, 231, .16); --line-strong: rgba(245, 239, 231, .3); --brand-ink: #A9C6C9; --surface: color-mix(in srgb, var(--petrol-deep) 88%, #000); --surface-2: color-mix(in srgb, var(--petrol-deep) 76%, #000); }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(30px, 4.5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr .95fr; } .split--rev > :first-child { order: 2; } }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Verre ---------- */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-brd); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--surface); } }

/* ---------- Boutons ---------- */
.btn { --bg-b: var(--petrol); --fg-b: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill); background: var(--bg-b); color: var(--fg-b); font-weight: 700; font-size: .98rem; line-height: 1; white-space: nowrap;
  transition: transform 140ms var(--ease); box-shadow: 0 6px 18px rgba(30, 79, 93, .26); }
.btn svg { width: 17px; height: 17px; transition: transform 200ms var(--ease); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { box-shadow: 0 10px 26px rgba(30, 79, 93, .34); } .btn:hover svg { transform: translateX(3px); } .btn--primary:hover { --bg-b: var(--petrol-deep); } }
.btn--copper { --bg-b: var(--copper); --fg-b: #1A2F35; box-shadow: 0 6px 18px rgba(168, 108, 84, .32); }
@media (hover: hover) and (pointer: fine) { .btn--copper:hover { --bg-b: #D6A488; } }
.btn--ghost { --bg-b: transparent; --fg-b: var(--ink); border-color: var(--line-strong); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); box-shadow: none; } }
.btn--light { --bg-b: var(--cream); --fg-b: var(--petrol-deep); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.link { color: var(--brand-ink); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link:hover svg { transform: translateX(3px); } }

/* ---------- Badges de statut ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 800; letter-spacing: .02em; line-height: 1.2; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--ok { background: #DDEBDD; color: #1E5A31; } .badge--info { background: #DCEBEE; color: #174652; }
.badge--wip { background: #F6E5C8; color: #6B4A12; } .badge--soon { background: #E7E4F0; color: #43396F; }
.badge--quote { background: #F3DED2; color: #7A3E26; } .badge--tbc { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.badge--tbc::before { background: transparent; border: 1.5px solid currentColor; }
.section--dark .badge--ok, .hero .badge--ok { background: #1F4A33; color: #CDEBD6; } .section--dark .badge--info, .hero .badge--info { background: #1A4756; color: #CBE6EC; }
.section--dark .badge--wip, .hero .badge--wip { background: #54421C; color: #F6E3BC; } .section--dark .badge--soon, .hero .badge--soon { background: #3A3463; color: #DEDAF2; }
.section--dark .badge--quote, .hero .badge--quote { background: #5A3322; color: #F5D9C9; } .section--dark .badge--tbc, .hero .badge--tbc { color: #D8DFDC; }
:root[data-theme='dark'] .badge--ok { background: #1F4A33; color: #CDEBD6; } :root[data-theme='dark'] .badge--info { background: #1A4756; color: #CBE6EC; }
:root[data-theme='dark'] .badge--wip { background: #54421C; color: #F6E3BC; } :root[data-theme='dark'] .badge--soon { background: #3A3463; color: #DEDAF2; }
:root[data-theme='dark'] .badge--quote { background: #5A3322; color: #F5D9C9; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; position: relative;
  transition: transform 260ms var(--ease); }
@media (hover: hover) and (pointer: fine) { a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--copper) 60%, var(--line)); } }
.card--feature { background: linear-gradient(165deg, var(--petrol), var(--petrol-deep)); color: var(--cream); border-color: transparent; --ink-2: #D9E1DE; --ink-3: #C4D2D1; --accent-ink: #E3B79D; --line: rgba(245, 239, 231, .2); }
.card--feature .h3, .card--feature .price { color: var(--white); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--copper) 22%, var(--surface)); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--copper) 40%, transparent); }
.icon svg { width: 22px; height: 22px; }
.card .more { margin-top: auto; padding-top: 6px; }
.ticks li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.ticks li + li { margin-top: 9px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--copper) 28%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A523C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.crosses li::before { background-color: color-mix(in srgb, var(--ink) 10%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F6B72' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m7 7 10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.num { font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--accent-ink); }

/* ---------- Prix ---------- */
.price { font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-size: .9rem; letter-spacing: 0; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.card--feature .price small { color: #C4D2D1; }
.tier-tag { position: absolute; top: 18px; right: 18px; }
.note { font-size: .86rem; color: var(--ink-3); line-height: 1.5; border-left: 3px solid var(--copper); padding: 4px 0 4px 14px; max-width: 78ch; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .94rem; }
caption { text-align: left; padding: 18px 22px 6px; font-weight: 800; font-size: 1.05rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 22px; border-top: 1px solid var(--line); line-height: 1.45; }
thead th { border-top: 0; font-weight: 800; background: color-mix(in srgb, var(--petrol) 8%, var(--surface)); color: var(--ink); }
tbody th { font-weight: 700; color: var(--ink-2); width: 22%; }
td ul li + li { margin-top: 4px; }

/* ---------- Navigation flottante ---------- */
.nav { position: fixed; z-index: 100; top: max(12px, env(safe-area-inset-top)); left: 0; right: 0; display: flex; justify-content: center; padding-inline: 12px; pointer-events: none; }
.nav__bar { pointer-events: auto; width: min(100%, 1160px); min-height: var(--nav-h); border-radius: var(--r-pill); display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding-right: 8px; flex: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--white); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(23, 52, 59, .14); flex: none; overflow: hidden; }
.brand__mark img { width: 30px; height: 30px; }
.brand__type { display: grid; line-height: 1; } .brand__type strong { font-weight: 800; letter-spacing: .06em; font-size: .98rem; }
.brand__type small { font-size: .6rem; letter-spacing: .34em; font-weight: 700; color: var(--accent-ink); margin-top: 3px; }
.nav__links { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 650; font-size: .94rem; color: var(--ink-2); transition: none; }
.nav__link svg { width: 13px; height: 13px; opacity: .7; transition: transform 200ms var(--ease); }
.nav__link[aria-current='page'] { color: var(--ink); background: color-mix(in srgb, var(--copper) 24%, transparent); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--ink); background: color-mix(in srgb, var(--petrol) 9%, transparent); } }
.menu { position: absolute; top: calc(100% + 14px); left: 50%; min-width: 300px; padding: 10px; border-radius: var(--r-lg); transform: translate(-50%, 8px) scale(.97); transform-origin: top center; opacity: 0; visibility: hidden; pointer-events: none; transition: transform 240ms var(--ease), opacity 160ms ease; display: grid; gap: 2px; }
.menu::before { content: ''; position: absolute; inset: -16px 0 auto 0; height: 16px; }
.nav__item:hover .menu, .nav__item:focus-within .menu, .nav__item.open .menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.nav__item:hover .nav__link svg, .nav__item.open .nav__link svg { transform: rotate(180deg); }
.menu a { display: grid; gap: 1px; padding: 11px 14px; border-radius: 14px; }
.menu a strong { font-size: .95rem; font-weight: 700; } .menu a span { font-size: .82rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: color-mix(in srgb, var(--copper) 18%, transparent); } }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--ink); transition: transform 120ms var(--ease); }
.icon-btn:active { transform: scale(.92); } .icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: color-mix(in srgb, var(--petrol) 10%, transparent); } }
.nav__cta { display: none; }
.sheet { position: fixed; inset: 0; z-index: 99; padding: calc(var(--nav-h) + 40px) 18px 110px; overflow-y: auto; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 220ms ease, transform 260ms var(--ease); }
.sheet.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet nav { display: grid; gap: 6px; max-width: 560px; margin-inline: auto; }
.sheet a.big { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-weight: 700; min-height: 56px; }
.sheet a.big span { font-size: .84rem; color: var(--ink-3); font-weight: 500; }
.sheet .sub-title { margin: 14px 8px 2px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
@media (min-width: 960px) { .nav__links { display: flex; } .nav__cta { display: inline-flex; } .menu-toggle, .sheet { display: none; } }

/* ---------- Dock mobile (verre, pastille à ressort) ---------- */
.dock { position: fixed; z-index: 98; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 440px); border-radius: var(--r-pill); display: flex; padding: 6px; }
.dock__pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--petrol); box-shadow: 0 4px 14px rgba(30, 79, 93, .4); pointer-events: none;  }
.dock a { position: relative; z-index: 1; flex: 1; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: var(--r-pill); font-size: .68rem; font-weight: 700; color: var(--ink-2); transition: none; }
.dock a svg { width: 21px; height: 21px; transition: transform 120ms var(--ease); }
.dock a:active svg { transform: scale(.86); }
.dock a[aria-current='page'] { color: var(--cream); }
:root[data-theme='dark'] .dock__pill { background: var(--copper); } :root[data-theme='dark'] .dock a[aria-current='page'] { color: #14292E; }
@media (max-width: 959.98px) { :root { --dock-h: 88px; } }
@media (min-width: 960px) { .dock { display: none; } }
@media (max-width: 380px) { .dock a span { display: none; } .dock a { min-height: 48px; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--cream); padding: calc(var(--nav-h) + 76px) 0 clamp(64px, 9vw, 110px); overflow: hidden;
  background: radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--teal) 34%, transparent), transparent 70%), radial-gradient(700px 480px at 6% 92%, color-mix(in srgb, var(--copper) 24%, transparent), transparent 68%), linear-gradient(155deg, var(--petrol) 0%, var(--petrol-deep) 62%, color-mix(in srgb, var(--petrol-deep) 62%, #000) 100%);
  --ink: var(--cream); --ink-2: #DCE3E0; --ink-3: #C2D0CF; --accent-ink: #E8BFA4; --line: rgba(245, 239, 231, .18); --line-strong: rgba(245, 239, 231, .34); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(245, 239, 231, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 239, 231, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 80%); }
.hero .lead { color: #E3E9E6; }
.hero--sub { padding-bottom: clamp(48px, 7vw, 84px); }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); } }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__copy .eyebrow { color: #E8BFA4; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: #C9D6D4; margin-bottom: 8px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; } .crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; } .crumbs ol { display: flex; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; font-size: .88rem; color: #D5DFDC; }
.trust span { display: inline-flex; align-items: center; gap: 8px; } .trust svg { width: 16px; height: 16px; color: var(--copper); }

/* Scène produit du hero (maquettes conceptuelles) */
.stage { position: relative; min-height: 420px; perspective: 1400px; }
.mock { background: var(--glass-bg); border: 1px solid var(--glass-brd); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hi); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); color: var(--ink); }
.hero .mock, .section--dark .mock { --ink: var(--cream); --ink-2: #D6DEDB; --ink-3: #B9C8C7; --line: rgba(245, 239, 231, .16); background: rgba(245, 239, 231, .09); border-color: rgba(245, 239, 231, .22); }
.mock--dash { position: absolute; inset: 0 30% 16% 0; padding: 16px; display: grid; grid-template-rows: auto 1fr; gap: 12px; transform: rotateY(-7deg) rotateX(3deg); transform-origin: 70% 50%; }
.mock__bar { display: flex; align-items: center; gap: 6px; } .mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 239, 231, .38); } .mock__bar b { margin-left: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.mock__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.tile { border-radius: 14px; padding: 12px 14px; background: rgba(245, 239, 231, .08); border: 1px solid rgba(245, 239, 231, .12); display: grid; gap: 4px; align-content: start; }
.tile small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; } .tile strong { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile--wide { grid-column: 1 / -1; } .bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 6px; } .bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--copper), color-mix(in srgb, var(--copper) 40%, transparent)); transform-origin: bottom; }
.todo { display: grid; gap: 8px; margin-top: 4px; font-size: .78rem; } .todo li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); } .todo li::before { content: ''; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--copper); flex: none; }
.phone { position: absolute; right: 0; bottom: 0; width: min(37%, 230px); aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #0F2227, #1B3A42); border: 1px solid rgba(245, 239, 231, .3); box-shadow: var(--shadow-lg); transform: rotate(3deg); }
.phone__screen { width: 100%; height: 100%; border-radius: 26px; background: linear-gradient(170deg, var(--cream), var(--sand)); color: #17343B; padding: 14px 12px; display: grid; align-content: start; gap: 10px; overflow: hidden; --ink-3: #4F6B72; }
.phone__notch { width: 58px; height: 6px; border-radius: 4px; background: rgba(23, 52, 59, .16); margin: 0 auto 2px; }
.loy-card { border-radius: 16px; padding: 12px; background: linear-gradient(150deg, var(--petrol), var(--petrol-deep)); color: var(--cream); display: grid; gap: 8px; }
.loy-card small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-weight: 700; } .loy-card strong { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 8px; background: rgba(245, 239, 231, .22); overflow: hidden; } .meter i { display: block; height: 100%; width: 100%; transform: scaleX(var(--ratio, 0)); transform-origin: left; border-radius: inherit; background: var(--copper); transition: transform 240ms var(--ease); }
.qr { width: 64px; aspect-ratio: 1; border-radius: 10px; background: #fff; padding: 6px; margin-inline: auto; } .qr svg { width: 100%; height: 100%; }
.phone__note { text-align: center; font-size: .66rem; color: var(--ink-3); font-weight: 700; }
.stage__tag { position: absolute; left: 0; bottom: -4px; font-size: .74rem; color: #C9D6D4; max-width: 46%; }
@media (max-width: 620px) { .stage { min-height: 380px; } .mock--dash { inset: 0 0 20% 0; transform: none; } .phone { width: 44%; } .stage__tag { position: static; max-width: none; margin-top: 8px; } }


/* ---------- Orientation par besoin ---------- */
.need { padding: 24px; border-radius: var(--r-lg); gap: 14px; min-height: 200px; }
.need .h3 { font-size: 1.18rem; } .need .arrow { margin-top: auto; display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--petrol); color: var(--cream); transition: transform 220ms var(--ease); }
.need .arrow svg { width: 18px; height: 18px; } @media (hover: hover) and (pointer: fine) { a.need:hover .arrow { transform: translateX(6px); background: var(--copper-deep); } }

/* ---------- Méthode ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; color: var(--copper); }
.steps strong { font-size: 1.08rem; letter-spacing: -.01em; } .steps p { font-size: .94rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: none; }
.faq details[open] { border-color: color-mix(in srgb, var(--copper) 60%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; min-height: 56px; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 260ms var(--ease); color: var(--accent-ink); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Démos interactives ---------- */
.demo { display: grid; gap: 22px; }
.tabs { display: inline-flex; padding: 5px; border-radius: var(--r-pill); gap: 2px; position: relative; max-width: 100%; overflow-x: auto; }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; min-height: 42px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: none; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--cream); } .tabs .tabs__pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--petrol);  }
:root[data-theme='dark'] .tabs .tabs__pill { background: var(--copper); } :root[data-theme='dark'] .tabs button[aria-selected='true'] { color: #14292E; }
.panel[hidden] { display: none; } .panel { display: grid; gap: 14px; animation: panelIn 220ms var(--ease); } @keyframes panelIn { from { opacity: .9; transform: translateY(4px); } }
.demo__stage { border-radius: var(--r-xl); padding: clamp(18px, 3vw, 34px); background: linear-gradient(150deg, var(--petrol), var(--petrol-deep)); color: var(--cream); display: grid; gap: 18px; box-shadow: var(--shadow-md); --ink: var(--cream); --ink-2: #D6DEDB; --ink-3: #B9C8C7; --line: rgba(245, 239, 231, .18); }
.kanban { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.col { background: rgba(245, 239, 231, .07); border: 1px solid rgba(245, 239, 231, .14); border-radius: 16px; padding: 12px; display: grid; gap: 8px; align-content: start; } .col h4 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.deal { background: rgba(245, 239, 231, .12); border-radius: 12px; padding: 10px 12px; font-size: .86rem; display: grid; gap: 2px; } .deal small { color: var(--ink-3); }
.loy-demo { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; } @media (min-width: 860px) { .loy-demo { grid-template-columns: 300px 1fr; } }
.phone--static { position: relative; right: auto; bottom: auto; transform: none; width: min(100%, 270px); margin-inline: auto; animation: none; } .phone--static .phone__screen { min-height: 100%; }
.sim-actions { display: grid; gap: 12px; align-content: start; } .sim-log { background: rgba(245, 239, 231, .08); border: 1px solid rgba(245, 239, 231, .14); border-radius: 16px; padding: 14px 16px; min-height: 120px; display: grid; gap: 8px; align-content: start; font-size: .92rem; } .sim-log li { animation: panelIn 220ms var(--ease); }
.toast-in { background: #fff; color: #17343B; border-radius: 14px; padding: 9px 11px; font-size: .74rem; font-weight: 600; display: grid; gap: 1px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); animation: panelIn 220ms var(--ease); } .toast-in small { color: #4F6B72; font-weight: 500; }
.journey { display: grid; gap: 10px; counter-reset: j; } .journey li { counter-increment: j; display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; } .journey li::before { content: counter(j); width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--copper); color: #1A2F35; font-weight: 800; font-size: .86rem; }

/* ---------- Formulaires & parcours de devis ---------- */
.form { display: grid; gap: 18px; } .field { display: grid; gap: 7px; } .field > label, .field > legend, .legend { font-weight: 700; font-size: .94rem; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: none; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 28%, transparent); }
.field[data-invalid='true'] .input, .field[data-invalid='true'] .select, .field[data-invalid='true'] .textarea { border-color: #B3261E; } .err { color: #B3261E; font-size: .86rem; font-weight: 600; min-height: 1.2em; } :root[data-theme='dark'] .err { color: #FFB4AB; }
.hint { font-size: .84rem; color: var(--ink-3); }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { position: relative; } .choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span { display: grid; gap: 3px; padding: 16px 18px; min-height: 64px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); transition: transform 120ms var(--ease); font-weight: 700; align-content: center; }
.choice span small { font-weight: 500; color: var(--ink-3); font-size: .84rem; }
.choice input:checked + span { border-color: var(--petrol); background: color-mix(in srgb, var(--copper) 18%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--petrol) 22%, transparent); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; } .choice:active span { transform: scale(.985); }
.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3.4vw, 40px); box-shadow: var(--shadow-md); display: grid; gap: 24px; }
.progress { display: grid; gap: 10px; } .progress__top { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 700; color: var(--ink-2); } .progress__bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; } .progress__bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--petrol), var(--copper)); border-radius: inherit; transition: transform 240ms var(--ease); }
.wizard.wizard-ready .step { display: none; } .wizard.wizard-ready .step.is-on { display: grid; gap: 18px; animation: panelIn 220ms var(--ease); }
.wizard .step { border: 0; padding: 0; margin: 0; min-width: 0; gap: 18px; display: grid; } .wizard .step-title { padding: 0; margin-bottom: 18px; display: block; width: 100%; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .wizard-ready .step-fallback { display: none; }
.recap { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; } .recap div { display: grid; gap: 4px; grid-template-columns: minmax(110px, 30%) 1fr; padding: 12px 16px; border-top: 1px solid var(--line); } .recap div:first-child { border-top: 0; } .recap dt { color: var(--ink-3); font-weight: 600; font-size: .88rem; } .recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); } .consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--petrol); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.state { display: grid; gap: 12px; justify-items: start; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.state--ok { border-color: #4B8A62; background: color-mix(in srgb, #4B8A62 12%, var(--surface)); } .state--err { border-color: #B3261E; background: color-mix(in srgb, #B3261E 8%, var(--surface)); }
.state .ref { font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, transparent), var(--line)); background-size: 200% 100%; animation: none; min-height: 16px; }
.toasts { position: fixed; z-index: 150; left: 50%; bottom: calc(var(--dock-h) + 18px); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; padding: 13px 18px; border-radius: var(--r-md); font-weight: 650; font-size: .92rem; animation: panelIn 220ms var(--ease); }

/* ---------- CTA final & pied de page ---------- */
.cta { border-radius: var(--r-xl); padding: clamp(32px, 6vw, 80px); color: var(--cream); text-align: center; display: grid; gap: 22px; justify-items: center; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(640px 320px at 82% 0%, color-mix(in srgb, var(--teal) 30%, transparent), transparent 70%), linear-gradient(150deg, var(--petrol), var(--petrol-deep)); box-shadow: var(--shadow-lg); --ink-2: #DCE3E0; --accent-ink: #E8BFA4; }
.cta .lead { color: #E3E9E6; margin-inline: auto; }
.footer { background: color-mix(in srgb, var(--petrol-deep) 76%, #000); color: #E4EAE7; padding: clamp(48px, 7vw, 84px) 0 calc(28px + var(--dock-h)); margin-top: 0; --ink-3: #B9C8C7; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); } .footer__grid > :first-child { grid-column: 1 / -1; max-width: 420px; } @media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); } .footer__grid > :first-child { grid-column: auto; } }
.footer h4, .footer .footer__title { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #E8BFA4; margin-bottom: 14px; font-weight: 800; }
.footer li + li { margin-top: 9px; } .footer a { color: #DCE5E2; text-decoration: none; font-size: .94rem; } @media (hover: hover) and (pointer: fine) { .footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }
.footer .brand__type small { color: #E8BFA4; } .footer p { color: #C6D3D0; font-size: .94rem; margin-top: 16px; max-width: 40ch; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(245, 239, 231, .16); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .84rem; color: #B9C8C7; }
.nfc-line { font-size: .86rem; color: var(--ink-3); } .nfc-line a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Révélations ---------- */
[data-reveal].in { animation: revealV13 600ms var(--ease); }
@keyframes revealV13 { from { transform: translateY(8px); } to { transform: translateY(0); } }
/* Aucun fondu d'entrée de page : le contenu au-dessus de la ligne de flottaison est peint immédiatement (FCP/LCP). */

/* ---------- Préférences utilisateur ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal].in { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .mock, .sheet { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); } .hero .mock { background: color-mix(in srgb, var(--petrol-deep) 92%, #000); }
}
@media (prefers-contrast: more) {
  :root { --line: color-mix(in srgb, var(--ink) 45%, transparent); --line-strong: var(--ink); --ink-3: var(--ink-2); } .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--ink); }
}
@media print { .nav, .dock, .sheet, .toasts { display: none !important; } .hero { color: #000; background: none; padding-top: 24px; } body { padding: 0; } }
@media (max-width: 420px) { .btn { padding: 0 18px; } .row .btn { flex: 1 1 100%; } th, td { padding: 12px 14px; } }

/* Coches lisibles sur surfaces sombres */
.card--feature .ticks li::before, .section--dark .ticks li::before { background-color: color-mix(in srgb, var(--copper) 34%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EFE7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.card--feature .ticks li, .section--dark .ticks li { color: #E1E8E5; }
:root[data-theme='dark'] .ticks li::before { background-color: color-mix(in srgb, var(--copper) 34%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EFE7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }

/* Boutons longs : jamais de débordement horizontal sur petit écran */
.btn { max-width: 100%; } @media (max-width: 420px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; height: auto; min-height: 48px; } }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Bouton NOVA dans l'en-tête : toujours visible, compact sur petit écran */
.nav__nova { min-width: 0; padding-inline: 14px; letter-spacing: .02em; }
@media (max-width: 380px) { .nav__nova { padding-inline: 10px; } .nav__actions { gap: 6px; } }
@media (max-width: 359px) { .brand { gap: 8px; padding-right: 2px; } .brand__type small { display: none; } .brand__type strong { font-size: .9rem; letter-spacing: .04em; } .nav__actions { gap: 4px; } .nav__nova { padding-inline: 9px; } }
@media (max-width: 359px) { .nav__actions .icon-btn { width: 40px; height: 40px; } }

/* V13 — Lot 1 : hiérarchie et surfaces. Aucun changement de comportement JS. */
:root {
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 36px;
}
.h1 { font-size: clamp(2.15rem, 5.2vw, 4.5rem); line-height: 1.08; letter-spacing: -.038em; }
.h2 { font-size: clamp(1.7rem, 3.5vw, 3rem); line-height: 1.14; letter-spacing: -.032em; }
.h3 { line-height: 1.3; letter-spacing: -.018em; }
.lead { line-height: 1.65; max-width: 58ch; }
.eyebrow { letter-spacing: .11em; }
.section { padding-block: clamp(48px, 7vw, 108px); }
.head { gap: 12px; margin-bottom: clamp(24px, 4vw, 48px); }
.grid { gap: clamp(14px, 2vw, 26px); }
.grid > *, .split > *, .hero__grid > * { min-width: 0; }
.card { padding: clamp(20px, 2.8vw, 34px); gap: 14px; }
.card:not(.card--feature) { box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-hi); }
.glass { -webkit-backdrop-filter: blur(16px) saturate(145%); backdrop-filter: blur(16px) saturate(145%); }
.hero__copy { gap: clamp(16px, 2vw, 24px); }
.hero { padding-top: calc(var(--nav-h) + clamp(42px, 6vw, 84px)); }
.btn { min-height: 48px; }
.tabs button { min-height: 44px; }
.nav__bar { width: min(100%, 1240px); }
.nav__link[aria-current='page'], .dock a[aria-current='page'] { font-weight: 800; }
.nav__link[aria-current='page'] { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 599px) {
  .hero__grid { gap: 28px; }
  .hero__copy .row { width: 100%; }
  .hero__copy .row .btn { flex: 1 1 100%; }
  .card { border-radius: 22px; }
  .head--center { text-align: start; justify-items: start; }
  .head--center .lead { margin-inline: 0; }
}
@media (max-width: 359px) {
  .nav__bar { padding-inline: 8px; gap: 4px; }
  .nav__actions .icon-btn { width: 44px; height: 44px; flex: none; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__mark img { width: 26px; height: 26px; }
  .brand__type strong { font-size: .82rem; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
}

/* V13 — Lot 3 : Liquid Ivory / Liquid Eclipse.
   Décor borné au hero d'accueil ; les autres pages gardent leur fond historique. */
.hero:not(.hero--sub) {
  background: linear-gradient(125deg, #17343B 0%, #24454C 65%, #1E4F5D 100%);
}
.hero:not(.hero--sub)::after {
  inset: 0; opacity: .14; mask-image: none; -webkit-mask-image: none;
  background: url('/assets/liquid-grain.svg') repeat;
  background-size: 96px 96px; pointer-events: none;
}
.hero:not(.hero--sub) .stage { isolation: isolate; }
.hero:not(.hero--sub) .stage::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 4% 2% 12%; border-radius: 48% 52% 38% 62%;
  background: radial-gradient(ellipse at 70% 22%, #7AA1A633, transparent 60%),
    radial-gradient(ellipse at 20% 85%, #CB947633, transparent 65%);
  border: 1px solid #F5EFE726;
  box-shadow: inset 0 1px 0 #FFFFFF26;
  animation: liquidArrival 650ms var(--ease) both;
}
@keyframes liquidArrival {
  from { transform: translateY(8px) scale(.98); opacity: .55; }
  to { transform: none; opacity: 1; }
}
/* Ivory : le hero reste une surface sombre de marque pour préserver ses contrastes.
   Les surfaces claires environnantes portent la signature ivoire. */
:root { --liquid-page: radial-gradient(ellipse at 90% 0%, #7AA1A612, transparent 45%), radial-gradient(ellipse at 0% 100%, #CB947612, transparent 45%); }
:root[data-theme='dark'] { --liquid-page: radial-gradient(ellipse at 90% 0%, #7AA1A60D, transparent 45%), radial-gradient(ellipse at 0% 100%, #CB94760D, transparent 45%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --liquid-page: radial-gradient(ellipse at 90% 0%, #7AA1A60D, transparent 45%), radial-gradient(ellipse at 0% 100%, #CB94760D, transparent 45%); }
}
/* Décor sur la première section commerciale seulement, sans modifier les cartes. */
.hero:not(.hero--sub) + #besoins { background-image: var(--liquid-page); }
@media (max-width: 620px) {
  .hero:not(.hero--sub) .stage::before { inset: 8% 4% 16%; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero:not(.hero--sub) .stage::before { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active), print {
  .hero:not(.hero--sub)::after, .hero:not(.hero--sub) .stage::before { display: none; }
  .hero:not(.hero--sub) + #besoins { background-image: none; }
}
@media print { .hero:not(.hero--sub) { background: none; } }

/* V13 lot 5 — partenaires, sans logo non fourni */
.partner-carousel { min-width: 0; color: var(--ink); }
.partner-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.partner-controls button { min-width: 44px; min-height: 44px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.partner-controls button[aria-current='true'] { border: 2px solid currentColor; text-decoration: underline; }
.partner-dots { display: flex; gap: 8px; }
.partner-slides { display: grid; gap: 14px; touch-action: pan-y pinch-zoom; }
.partner-slide { min-width: 0; overflow-wrap: anywhere; background: var(--surface); color: var(--ink); }
.partner-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-ink); }
.partner-status { min-height: 1.5em; color: var(--ink-2); }
@media (min-width: 768px) { .partner-carousel:not([data-enhanced]) .partner-slides { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* V13.1 : barre mobile, fond quasi opaque en thème sombre pour garantir le contraste des libellés (4,5:1) */
:root[data-theme='dark'] .dock { background: rgba(20, 41, 46, .96); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .dock { background: rgba(20, 41, 46, .96); } }
