/* =========================================================
   Coffrets Riviera — feuille de style
   Reprend fidèlement la maquette « Rivr » (dossier Maquette/) :
   palette bleu marine / gris, Helvetica, cartes très arrondies,
   hero plein cadre avec carte vitrée et coin encoché.
   ========================================================= */

:root {
  --background: hsl(0 0% 94%);
  --foreground: hsl(218 48% 24%);
  --card: hsl(0 0% 100%);
  --primary: hsl(218 48% 24%);
  --primary-foreground: #fff;
  --secondary: hsl(212 26% 93%);
  --muted: hsl(212 26% 93%);
  --muted-foreground: hsl(215 16% 42%);
  --accent: hsl(212 32% 91%);
  --border: hsl(214 24% 88%);
  --ring: hsl(218 48% 40%);
  --hero-title: hsl(220 9% 40%);
  --fg-2: hsl(218 48% 24% / 0.02);
  --fg-5: hsl(218 48% 24% / 0.05);
  --fg-10: hsl(218 48% 24% / 0.1);
  --success: hsl(152 45% 32%);
  --danger: hsl(0 65% 45%);
  --r-card: 2rem;
  --r-big: 3rem;
  --max: 1536px;
  --font: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { letter-spacing: -0.02em; font-weight: 600; }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Conteneurs ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0.75rem; }
.section { width: 100%; max-width: var(--max); margin: 0 auto; padding: 1.5rem 0.75rem; }
@media (min-width: 768px) {
  .wrap { padding: 1.25rem; }
  .section { padding: 3rem 1.25rem; }
}
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.1; max-width: 42rem; }
.section-head p { color: var(--muted-foreground); max-width: 36rem; }
.eyebrow { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
@media (min-width: 640px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (min-width: 768px) { .section-head { margin-bottom: 3rem; } }

/* ---------- Boutons « pilule » (PillButton de la maquette) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.625rem;
  border-radius: 999px; padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  font-size: 0.875rem; font-weight: 500; border: 0; cursor: pointer;
  transition: background-color .2s, transform .2s;
  white-space: nowrap;
}
.pill .pill-ic { display: flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border-radius: 999px; }
.pill-solid { background: var(--primary); color: var(--primary-foreground); }
.pill-solid:hover { background: hsl(218 48% 24% / 0.9); }
.pill-solid .pill-ic { background: rgb(255 255 255 / 0.2); }
.pill-outline { background: rgb(255 255 255 / 0.6); border: 1px solid var(--border); backdrop-filter: blur(4px); }
.pill-outline:hover { background: var(--card); }
.pill-outline .pill-ic { background: var(--fg-10); }
.pill-white { background: #fff; color: var(--foreground); }
.pill-white:hover { background: rgb(255 255 255 / 0.9); }
.pill-white .pill-ic { background: var(--fg-10); }
.pill-ghost { background: rgb(255 255 255 / 0.1); color: #fff; border: 1px solid rgb(255 255 255 / 0.2); padding: 0.625rem 1.25rem; backdrop-filter: blur(12px); }
.pill-ghost:hover { background: rgb(255 255 255 / 0.2); }
.pill:disabled { opacity: .45; cursor: not-allowed; }
.pill-block { width: 100%; justify-content: space-between; }

.btn-text { display: inline-flex; align-items: center; gap: .375rem; border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; background: transparent; cursor: pointer; }
.btn-text:hover { background: var(--secondary); }

/* ---------- Navigation ---------- */
.nav { position: relative; z-index: 20; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; }
@media (min-width: 768px) { .nav { padding: 1.25rem 2rem; } }
.brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 1.5rem; height: 1.5rem; }
.nav-links { display: none; gap: 2rem; font-size: .875rem; color: hsl(218 48% 24% / 0.8); }
.nav-links a { display: inline-flex; align-items: center; gap: .25rem; transition: color .2s; }
.nav-links a:hover { color: var(--foreground); }
.nav-links a svg { transition: transform .2s; }
.nav-links a:hover svg { transform: translateX(2px); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
.nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--border); background: rgb(255 255 255 / .6); backdrop-filter: blur(4px); cursor: pointer; }
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: hsl(0 0% 94% / .97); backdrop-filter: blur(8px); display: none; flex-direction: column; padding: 1.25rem; }
.mobile-menu.open { display: flex; }
.mobile-menu ul { margin-top: 2rem; display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu ul a { display: block; padding: 1rem 0; font-size: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu .mm-head { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Hero (hero.tsx de la maquette) ---------- */
.hero { display: flex; width: 100%; justify-content: center; padding: .75rem; min-height: 100dvh; }
@media (min-width: 768px) { .hero { padding: 1.25rem; } }
.hero-card { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: var(--max); min-height: 640px; overflow: hidden; border-radius: 1.5rem; }
@media (min-width: 768px) { .hero-card { border-radius: var(--r-big); } }
.hero.compact { min-height: 0; }
.hero.compact .hero-card { min-height: 380px; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-media { filter: blur(3px) saturate(1.05); transform: scale(1.04); }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(ellipse 60% 55% at 50% 48%, hsl(0 0% 96% / .9), hsl(0 0% 96% / .72) 55%, hsl(0 0% 94% / .35) 100%),
  linear-gradient(to bottom, hsl(0 0% 94% / .6), transparent 30%); }
.hero-inner { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1; }
.hero-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1.5rem 14rem; text-align: center; pointer-events: none; }
.hero-center a, .hero-center button { pointer-events: auto; }
@media (min-width: 768px) { .hero-center { padding-bottom: 0; } }
.hero.compact .hero-center { position: relative; inset: auto; padding: 2.5rem 1.5rem 4rem; }
.hero-badge { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .6); padding: .5rem 1rem; backdrop-filter: blur(12px); font-size: .875rem; font-weight: 500; }
.hero h1 { color: var(--hero-title); font-size: clamp(2.25rem, 7vw, 5rem); line-height: 1.05; max-width: 64rem; margin-bottom: 1rem; text-wrap: balance; }
.hero h1 strong { color: var(--foreground); font-weight: 600; }
.hero.compact h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero-lead { max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.6; color: hsl(218 48% 24% / .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }

/* Carte vitrée en bas à gauche (BottomLeftCard) */
.hero-stat { position: absolute; bottom: 7rem; right: 1rem; display: flex; flex-direction: column; gap: .5rem; min-width: 150px; border-radius: 1.5rem; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .35); padding: 1rem; backdrop-filter: blur(24px); }
.hero-stat .v { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.hero-stat .l { font-size: .625rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.hero-stat a { display: flex; width: fit-content; align-items: center; gap: .5rem; border-radius: 999px; background: #fff; padding: .375rem 1.25rem .375rem .375rem; font-size: .875rem; font-weight: 500; }
.hero-stat a span { display: flex; border-radius: 999px; background: var(--fg-10); padding: .25rem; }
@media (min-width: 768px) { .hero-stat { bottom: 1.5rem; left: 1.5rem; right: auto; } .hero-stat .v { font-size: 1.875rem; } .hero-stat .l { font-size: .75rem; } }
@media (min-width: 1024px) { .hero-stat { bottom: 2.5rem; left: 2.5rem; min-width: 190px; border-radius: 2rem; padding: 1.25rem; gap: .75rem; } }

/* Coin encoché en bas à droite (BottomRightCorner) */
.hero-corner { position: absolute; bottom: 0; right: 0; display: flex; align-items: center; gap: .75rem; max-width: min(520px, 85%); border-top-left-radius: 1.5rem; background: var(--background); padding: 1.25rem .75rem .75rem 2rem; }
.hero-corner .notch { position: absolute; pointer-events: none; width: 1.5rem; height: 1.5rem; color: var(--background); }
.hero-corner .notch.top { top: -1.5rem; right: 0; }
.hero-corner .notch.left { bottom: 0; left: -1.5rem; }
.hero-corner .round { display: flex; width: 2.5rem; height: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--border); background: var(--fg-5); }
.hero-corner .t { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.hero-corner .s { display: flex; align-items: center; gap: .25rem; color: var(--muted-foreground); font-size: .75rem; transition: color .2s; }
.hero-corner a:hover .s { color: var(--foreground); }
@media (min-width: 640px) {
  .hero-corner { border-top-left-radius: 2rem; padding: 1.5rem 1rem 1rem 2.5rem; gap: 1rem; }
  .hero-corner .notch { width: 2rem; height: 2rem; } .hero-corner .notch.top { top: -2rem; } .hero-corner .notch.left { left: -2rem; }
}
@media (min-width: 768px) {
  .hero-corner { border-top-left-radius: 3.5rem; padding: 2rem 1.5rem 1.5rem 3.5rem; gap: 1.5rem; }
  .hero-corner .notch { width: 3.5rem; height: 3.5rem; } .hero-corner .notch.top { top: -3.5rem; } .hero-corner .notch.left { left: -3.5rem; }
  .hero-corner .round { width: 3.5rem; height: 3.5rem; }
  .hero-corner .t { font-size: 1.25rem; } .hero-corner .s { font-size: .9375rem; }
}

/* ---------- Bandeau d'annonce ---------- */
.announce { display: flex; justify-content: center; gap: .5rem; align-items: center; padding: .5rem 1rem; background: var(--primary); color: #fff; font-size: .8125rem; text-align: center; }
.announce strong { font-weight: 600; }

/* ---------- Chiffres clés (metrics.tsx) ---------- */
.metrics { border-radius: 1.5rem; border: 1px solid var(--fg-5); background: var(--fg-2); padding: 2rem 1rem; }
@media (min-width: 768px) { .metrics { border-radius: var(--r-big); padding: 4rem; } }
.metrics .eyebrow { padding: 0 1.5rem; margin-bottom: 1rem; }
.metrics dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.metrics dl > div { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; }
.metrics dl > div:nth-child(2), .metrics dl > div:nth-child(4) { border-left: 1px solid var(--fg-10); }
.metrics dl > div:nth-child(3), .metrics dl > div:nth-child(4) { border-top: 1px solid var(--fg-10); }
.metrics dt { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metrics dd { margin: 0; font-size: .875rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .metrics dl { grid-template-columns: repeat(4, 1fr); }
  .metrics dl > div:nth-child(3) { border-top: 0; border-left: 1px solid var(--fg-10); }
  .metrics dl > div:nth-child(4) { border-top: 0; }
}

/* ---------- Cartes (CARD_BASE de la maquette) ---------- */
.card { position: relative; overflow: hidden; border-radius: 1.5rem; background: var(--card); padding: 1.75rem; transition: box-shadow .3s; }
.card:hover { box-shadow: 0 8px 30px rgb(0 0 0 / .04); }
@media (min-width: 768px) { .card { border-radius: var(--r-card); } }
.chip-ic { display: flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 1rem; background: var(--secondary); }
.chip-ic svg { width: 1.5rem; height: 1.5rem; }
.tag { display: inline-flex; align-items: center; gap: .375rem; border-radius: 999px; background: var(--secondary); padding: .25rem .75rem; font-size: .75rem; font-weight: 500; }
.tag-dark { background: var(--primary); color: #fff; }

/* ---------- Grille bento des coffrets (features.tsx) ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .bento .b-big { grid-row: span 2; }
  .bento .b-wide { grid-column: span 2; }
}
.coffret { display: flex; flex-direction: column; padding: 0; }
.coffret .ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.coffret .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.coffret:hover .ph img { transform: scale(1.04); }
.coffret .ph .tag { position: absolute; top: 1rem; left: 1rem; background: rgb(255 255 255 / .85); backdrop-filter: blur(8px); }
.coffret .ph .tag-dark { background: var(--primary); }
.coffret .body { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; flex: 1; }
.coffret h3 { font-size: 1.5rem; line-height: 1.2; }
.coffret .sub { color: var(--muted-foreground); font-size: .875rem; }
.coffret ul { display: flex; flex-direction: column; gap: .375rem; font-size: .875rem; color: hsl(218 48% 24% / .85); }
.coffret li { display: flex; gap: .5rem; align-items: flex-start; }
.coffret li svg { margin-top: .2rem; opacity: .5; }
.coffret .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.price { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: .75rem; font-weight: 500; color: var(--muted-foreground); letter-spacing: 0; display: block; }
@media (min-width: 768px) {
  .bento .b-big .ph { aspect-ratio: 4 / 4.2; }
  .bento .b-big h3 { font-size: 2rem; }
  .bento .b-wide { flex-direction: row; }
  .bento .b-wide .ph { aspect-ratio: auto; width: 42%; flex-shrink: 0; }
}

/* ---------- Univers / histoire ---------- */
.story { display: grid; gap: .75rem; }
@media (min-width: 768px) { .story { grid-template-columns: 1.1fr 1fr; gap: 1.25rem; } }
.story .card p { color: hsl(218 48% 24% / .85); line-height: 1.7; }
.story .card p + p { margin-top: 1rem; }
.story h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; margin: 1.5rem 0 1rem; }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (min-width: 768px) { .story-photos { gap: 1.25rem; } }
.story-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.5rem; aspect-ratio: 3/4; }
@media (min-width: 768px) { .story-photos img { border-radius: var(--r-card); } }

/* ---------- Configurateur Signature ---------- */
.config { display: grid; gap: .75rem; align-items: start; }
@media (min-width: 1024px) { .config { grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; } }
.cfg-step + .cfg-step { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.cfg-step header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cfg-step h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.cfg-step h3 .n { display: inline-flex; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--secondary); align-items: center; justify-content: center; font-size: .8125rem; }
.cfg-step.done h3 .n { background: var(--primary); color: #fff; }
.cfg-step header span { font-size: .8125rem; color: var(--muted-foreground); }
.options { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 640px) { .options { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .options { grid-template-columns: 1fr 1fr 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; justify-content: space-between; gap: .75rem; align-items: center; height: 100%; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 1rem; cursor: pointer; font-size: .875rem; line-height: 1.35; transition: border-color .15s, background .15s; }
.opt label:hover { border-color: hsl(218 48% 24% / .35); }
.opt input:checked + label { border-color: var(--primary); background: hsl(212 32% 96%); box-shadow: inset 0 0 0 1px var(--primary); }
.opt input:focus-visible + label { outline: 2px solid var(--ring); outline-offset: 2px; }
.opt input:disabled + label { opacity: .5; cursor: not-allowed; }
.opt .p { font-size: .75rem; color: var(--muted-foreground); white-space: nowrap; }
.opt .alc { font-size: .625rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.summary { position: sticky; top: 1.25rem; }
.summary h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.summary ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; font-size: .875rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; }
.summary li .k { color: var(--muted-foreground); font-size: .75rem; display: block; }
.summary li.empty .v { color: var(--muted-foreground); font-style: italic; }
.summary .total { display: flex; justify-content: space-between; align-items: flex-end; margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.summary .note { font-size: .75rem; color: var(--muted-foreground); margin-top: .75rem; }

/* ---------- Entreprises & CSE ---------- */
.b2b { display: grid; gap: .75rem; }
@media (min-width: 1024px) { .b2b { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.b2b-visual { position: relative; min-height: 340px; padding: 0; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.b2b-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2b-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsl(218 48% 14% / .92), hsl(218 48% 14% / .55) 55%, hsl(218 48% 14% / .1)); }
.b2b-visual .in { position: relative; z-index: 1; padding: 2rem; }
.b2b-visual h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; margin-bottom: 1rem; }
.b2b-visual ul { display: flex; flex-direction: column; gap: .5rem; font-size: .9375rem; color: rgb(255 255 255 / .9); }
.b2b-visual li { display: flex; gap: .5rem; align-items: flex-start; }
.b2b-visual li svg { margin-top: .25rem; }
.field { display: flex; flex-direction: column; gap: .375rem; }
.field label, .field .lbl { font-size: .8125rem; font-weight: 500; }
.field .hint { font-size: .75rem; color: var(--muted-foreground); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--border); border-radius: .875rem; background: #fff; padding: .75rem 1rem; font-size: 1rem; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(218 48% 24% / .12); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { font-size: .75rem; color: var(--danger); min-height: 0; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty button { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.qty button:hover { background: var(--secondary); }
.qty input { width: 5.5rem; text-align: center; }
.quote { margin-top: 1.5rem; border-radius: 1.25rem; background: var(--fg-2); border: 1px solid var(--fg-5); padding: 1.25rem; }
.quote dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; font-size: .9375rem; }
.quote dt { color: var(--muted-foreground); }
.quote dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.quote .big { font-size: 1.5rem; font-weight: 600; color: var(--foreground); }
.quote hr { grid-column: 1 / -1; width: 100%; border: 0; border-top: 1px solid var(--border); margin: .25rem 0; }
.tiers { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }
.tiers span { font-size: .75rem; padding: .25rem .625rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground); }
.tiers span.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.check { display: flex; gap: .625rem; align-items: flex-start; font-size: .8125rem; line-height: 1.45; color: hsl(218 48% 24% / .85); }
.check input { margin-top: .15rem; width: 1rem; height: 1rem; accent-color: var(--primary); flex-shrink: 0; }
.success { display: none; border-radius: 1.25rem; padding: 1.25rem; background: hsl(152 45% 32% / .08); border: 1px solid hsl(152 45% 32% / .25); color: var(--success); font-size: .9375rem; }
.success.show { display: block; }

/* ---------- Étapes « comment ça marche » ---------- */
.steps { display: grid; gap: .75rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.steps .card h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.steps .card p { font-size: .9375rem; color: var(--muted-foreground); line-height: 1.6; }
.steps .num { position: absolute; top: 1.5rem; right: 1.75rem; font-size: 3.5rem; font-weight: 600; letter-spacing: -0.04em; color: var(--fg-10); line-height: 1; }

/* ---------- FAQ (details) ---------- */
.faq { display: flex; flex-direction: column; gap: .75rem; max-width: 56rem; }
.faq details { border-radius: 1.5rem; background: var(--card); padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { display: flex; width: 2rem; height: 2rem; border-radius: 999px; background: var(--secondary); align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .a { padding: 0 1.5rem 1.5rem; color: hsl(218 48% 24% / .85); line-height: 1.7; }

/* ---------- CTA final (cta.tsx) ---------- */
.cta { position: relative; display: flex; align-items: center; justify-content: center; min-height: 560px; overflow: hidden; border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 768px) { .cta { min-height: 680px; border-radius: var(--r-big); } }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsl(218 48% 24% / .75), hsl(218 48% 24% / .45) 50%, hsl(218 48% 24% / .6)); }
.cta .in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2rem; max-width: 42rem; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; }
.cta p { color: rgb(255 255 255 / .85); font-size: 1rem; line-height: 1.6; max-width: 36rem; }
.cta .acts { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Pied de page (footer.tsx) ---------- */
.footer { border-top: 1px solid var(--border); background: var(--background); }
.footer .in { max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .footer .in { padding: 5rem 2.5rem; } }
.footer .top { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 768px) { .footer .top { flex-direction: row; justify-content: space-between; } }
.footer .tagline { margin-top: 1rem; max-width: 20rem; font-size: .875rem; color: var(--muted-foreground); }
.footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 640px) { .footer nav { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .footer nav { gap: 4rem; } }
.footer h4 { font-size: .875rem; font-weight: 600; }
.footer nav ul { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.footer nav a { font-size: .875rem; color: var(--muted-foreground); transition: color .2s; }
.footer nav a:hover { color: var(--foreground); }
.footer .legal { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; font-size: .875rem; color: var(--muted-foreground); }
.evin { font-size: .8125rem; font-weight: 500; color: var(--foreground); border: 1px solid var(--border); border-radius: 1rem; padding: .875rem 1rem; text-align: center; }

/* ---------- Contrôle d'âge ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: hsl(218 48% 14% / .55); backdrop-filter: blur(10px); }
.modal.open { display: flex; }
.modal .box { width: 100%; max-width: 28rem; background: var(--card); border-radius: 2rem; padding: 2rem; text-align: center; }
.modal h2 { font-size: 1.5rem; margin: 1rem 0 .5rem; }
.modal p { color: var(--muted-foreground); font-size: .9375rem; }
.modal .acts { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.modal .acts .pill { justify-content: space-between; }
.modal small { display: block; margin-top: 1rem; font-size: .75rem; color: var(--muted-foreground); }

/* ---------- Tunnel de précommande ---------- */
.tunnel { display: grid; gap: .75rem; align-items: start; }
@media (min-width: 1024px) { .tunnel { grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; } }
.stepper { display: flex; gap: .25rem; margin-bottom: 1.75rem; overflow-x: auto; }
.stepper li { flex: 1; min-width: 5.5rem; display: flex; flex-direction: column; gap: .5rem; font-size: .75rem; color: var(--muted-foreground); }
.stepper li::before { content: ""; height: 4px; border-radius: 999px; background: var(--border); }
.stepper li.on { color: var(--foreground); font-weight: 500; }
.stepper li.on::before, .stepper li.done::before { background: var(--primary); }
.pane { display: none; }
.pane.on { display: block; }
.pane h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.pane > p.lead { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.pane-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.choice { display: grid; gap: .5rem; }
.choice .opt label { padding: 1rem 1.125rem; align-items: center; }
.choice .opt label img { width: 4rem; height: 4rem; object-fit: cover; border-radius: .75rem; flex-shrink: 0; }
.choice .opt .txt { flex: 1; display: flex; flex-direction: column; gap: .125rem; }
.choice .opt .txt b { font-size: 1rem; font-weight: 600; }
.choice .opt .txt span { color: var(--muted-foreground); font-size: .8125rem; }
.choice .opt .pr { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.confirm { text-align: center; padding: 2rem 0; }
.confirm .ok { display: inline-flex; width: 4rem; height: 4rem; border-radius: 999px; background: hsl(152 45% 32% / .12); color: var(--success); align-items: center; justify-content: center; }
.confirm h2 { margin-top: 1.25rem; }
.confirm .ref { display: inline-block; margin: 1rem 0; padding: .5rem 1rem; border-radius: 999px; background: var(--secondary); font-weight: 600; letter-spacing: .04em; }
.urgency { display: flex; gap: .625rem; align-items: center; font-size: .8125rem; padding: .75rem 1rem; border-radius: 1rem; background: var(--secondary); margin-bottom: 1.25rem; }

/* ---------- Pages de texte (mentions légales) ---------- */
.prose { max-width: 820px; font-size: 1.0625rem; line-height: 1.75; color: hsl(218 48% 24% / .9); }
.prose h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); color: var(--foreground); margin: 2.5rem 0 1rem; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose li { margin: .35rem 0; }
.prose .todo { background: hsl(45 100% 85%); padding: 0 .25rem; border-radius: .25rem; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.appear { animation: appear .8s ease-out both; }
.appear.d1 { animation-delay: .1s; } .appear.d2 { animation-delay: .25s; } .appear.d3 { animation-delay: .4s; }
@keyframes appear { from { opacity: 0; transform: translateY(1rem); filter: blur(.5rem); } 50% { filter: blur(0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .appear { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---------- Impression (devis PDF) ---------- */
@media print {
  body.print-devis > *:not(#devis-print) { display: none !important; }
  #devis-print { display: block !important; padding: 2rem; font-size: 12pt; }
}
#devis-print { display: none; }
#devis-print table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
#devis-print td, #devis-print th { border-bottom: 1px solid #ccc; padding: .5rem; text-align: left; }
#devis-print td:last-child, #devis-print th:last-child { text-align: right; }
