/* =====================================================================
   JOYEUX ARTIFICES : FEUILLE DE STYLE
   Guide de style : « confettis sur marbre blanc » (inspiration Partiful)
   Fond blanc, texte et boutons noirs, dégradés réservés aux surfaces.
   ===================================================================== */

/* ---------- Polices (hébergées avec le site) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons de design ---------- */
:root {
  /* Couleurs */
  --ink: #000000;
  --canvas: #ffffff;
  --graphite: #333333;
  --slate: #666666;
  --ash: #999999;          /* décoratif uniquement (contraste insuffisant pour du texte) */
  --fog: #b3b3b3;
  --silver: #cccccc;
  --hairline: #e8e8e8;
  --sand: #d9c58b;         /* réservé au lien actif de la navigation */
  --midnight: #001666;
  --pink: #f8c4ff;
  --mauve: #f0b6e0;
  --periwinkle: #96c4ff;
  --spearmint: #85dadc;

  /* États (réservés au calendrier : libre / option / réservé) */
  --ok: #31c431;
  --maybe: #ffae00;
  --no: #d4181f;

  /* Dégradés : surfaces uniquement, jamais sur un bouton ou un texte */
  --grad-pink: linear-gradient(90deg, #f8c4ff 0%, #f0b6e0 100%);
  --grad-pink-v: linear-gradient(180deg, #f8c4ff 0%, #f0b6e0 100%);
  --grad-periwinkle: linear-gradient(180deg, rgba(150, 196, 255, 0.14) 0%, #ffffff 100%);
  --grad-pink-wash: linear-gradient(180deg, rgba(248, 196, 255, 0.28) 0%, #ffffff 100%);
  --grad-spearmint: linear-gradient(130deg, #85dadc 0%, #c0e2e2 100%);

  /* Typographie */
  --font-display: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rayons */
  --r-card: 12px;
  --r-image: 12px;
  --r-button: 8px;
  --r-input: 8px;
  --r-modal: 16px;
  --r-navpill: 4px;
  --r-pill: 960px;

  /* Ombres */
  --shadow-sm: 0 0 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 0 20px rgba(0, 0, 0, 0.1);
  --shadow-elevated:
    0 0.8px 2.4px -0.6px rgba(0, 0, 0, 0.05),
    0 2.4px 7.2px -1.25px rgba(0, 0, 0, 0.05),
    0 6.4px 19.1px -1.875px rgba(0, 0, 0, 0.05),
    0 20px 60px -2.5px rgba(0, 0, 0, 0.05);

  /* Mise en page */
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 80px);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-feature-settings: "cv03", "cv04", "cv09", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; }

button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.hero :focus-visible { outline-color: #fff; }

::selection { background: var(--pink); color: var(--ink); }

/* ---------- Utilitaires ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-button);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--slate); }
.secondary { color: var(--graphite); }

/* Marqueur des contenus manquants : à remplacer avant la mise en ligne */
.a-completer {
  display: inline;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff3a8;
  color: #000;
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: -0.01em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Typographie ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-title {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-title.display {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
}

.numeral {
  font-family: var(--font-text);
  font-weight: 825;
  font-size: clamp(80px, 11vw, 112px);
  line-height: 0.8;
  letter-spacing: -0.05em;
}
.numeral small {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-left: 0.08em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-button);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { opacity: 1; background: rgba(0, 0, 0, 0.05); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.9); }
.btn--ghost-light:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn--nav { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn--nav.btn--ghost-light { border-radius: var(--r-navpill); font-weight: 550; }

.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--silver); color: var(--graphite); border-color: var(--silver);
  cursor: not-allowed; opacity: 1; transform: none;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pastilles ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pill--strong { background: rgba(0, 0, 0, 0.12); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--white { background: #fff; box-shadow: var(--shadow-sm); }
.pill--glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pill svg { width: 14px; height: 14px; flex: none; }

/* ---------- Bandeau d'annonce ---------- */
.announce {
  background: var(--grad-pink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  text-align: center;
  padding: 8px var(--gutter);
}
.announce a { font-weight: 700; white-space: nowrap; }
.announce__deco { display: inline-block; margin-inline: 6px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand img { height: 36px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 8px 11px;
  border-radius: var(--r-navpill);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.02em;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.1); }
.nav__links a[aria-current="page"] {
  color: var(--sand);
  box-shadow: inset 0 -2px 0 var(--sand);
}
.nav__menu-only { display: none; }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-navpill);
  background: transparent;
  color: #fff;
}
.nav__burger svg { width: 24px; height: 24px; }
.nav__burger .icon-close { display: none; }
.nav__burger[aria-expanded="true"] .icon-open { display: none; }
.nav__burger[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .nav__burger { display: inline-flex; }
  .nav__contact { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__menu-only { display: block; }
  .nav__links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav__links:not(.is-open) { display: none; }
  .nav__links a {
    padding: 14px 4px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }
  .nav__links a[aria-current="page"] { box-shadow: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 19px; }
  .btn--nav { padding: 8px 12px; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(580px, calc(100svh - var(--header-h) - 36px), 820px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 70% at 75% 115%, #0a2a8f 0%, rgba(0, 22, 102, 0.55) 35%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(90% 60% at 10% 0%, #0b0620 0%, rgba(0, 0, 0, 0) 60%),
    #02020a;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(248, 196, 255, 0.34) 0%, rgba(240, 182, 224, 0.14) 38%, rgba(240, 182, 224, 0) 68%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 45%);
}

.hero__content {
  position: relative;
  padding-block: clamp(64px, 10vh, 112px) clamp(56px, 8vh, 88px);
}

.hero__title {
  max-width: 11.5em;
  margin: 22px 0 22px;
  font-size: clamp(46px, 7.4vw, 96px);
  text-wrap: balance;
}

.hero__lead {
  max-width: 34em;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

.hero .actions { margin-top: 34px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.hero__hint {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 550;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hero__hint .tactile { display: none; }
@media (hover: none) {
  .hero__hint .souris { display: none; }
  .hero__hint .tactile { display: inline; }
}
.hero__hint.is-hidden { opacity: 0; }

@media (max-width: 700px) {
  .hero { align-items: flex-end; min-height: 0; }
  .hero__content { padding-top: clamp(190px, 52vw, 260px); padding-bottom: 40px; }
  .hero__wash {
    background:
      linear-gradient(90deg, rgba(248, 196, 255, 0.3) 0%, rgba(240, 182, 224, 0.12) 60%, rgba(240, 182, 224, 0.05) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 75%);
  }
  .hero .actions .btn { width: 100%; }
  .hero__hint { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--wash { background: var(--grad-periwinkle); }
.section--pink { background: var(--grad-pink-wash); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 46em;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head--row {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 40px;
}
.section-head .pill { justify-self: start; }
@media (max-width: 760px) {
  .section-head--row { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split__text { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Cartes ---------- */
.card {
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 20px 20px 22px;
}
.card__title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.card__text {
  margin-top: 6px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.45;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.card__icon svg { width: 20px; height: 20px; }

.grid {
  display: grid;
  gap: 16px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid--3, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

/* ---------- Formules : liste compacte ---------- */
.formula-list {
  width: 100%;
  margin: 6px 0 8px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.formula-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}
.formula-list a:hover .formula-list__name { text-decoration: underline; }
.formula-list__name { font-weight: 700; letter-spacing: -0.03em; }
.formula-list__meta { color: var(--slate); font-size: 14px; }
.formula-list__price { font-weight: 700; letter-spacing: -0.03em; text-align: right; min-width: 7.5em; }

/* ---------- Tuiles « carton d'invitation » ---------- */
.tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-image);
  box-shadow: var(--shadow-sm);
  background: var(--midnight);
  text-decoration: none;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.tile:hover,
.tile:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}
.tile__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px;
}
.tile__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.tile__meta { font-size: 14px; font-weight: 550; opacity: 0.9; }
.tile--dashed { box-shadow: none; background: #fff; }
.tile--dashed::after,
.fcard__art--dashed::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1.5px dashed var(--ink);
  border-radius: 8px;
  pointer-events: none;
}

.tile-stack {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: clamp(380px, 42vw, 500px);
  margin-inline: auto;
}
.tile-stack .tile {
  position: absolute;
  top: 50%;
  width: 40%;
}
/* Chaque carton recouvre le bord droit du précédent : les légendes (en bas à gauche) restent visibles */
.tile-stack .tile:nth-child(1) { left: 0; transform: translateY(-44%) rotate(-10deg); z-index: 1; }
.tile-stack .tile:nth-child(2) { left: 27%; transform: translateY(-56%) rotate(0deg); z-index: 2; }
.tile-stack .tile:nth-child(3) { right: 0; transform: translateY(-42%) rotate(12deg); z-index: 3; }
.tile-stack .tile:hover,
.tile-stack .tile:focus-visible {
  transform: translateY(-56%) rotate(0deg) scale(1.03);
  z-index: 6;
}
@media (max-width: 900px) {
  .tile-stack { height: clamp(320px, 80vw, 460px); max-width: 480px; }
}
@media (max-width: 600px) {
  .tile-stack {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    gap: 14px;
    height: auto;
    max-width: none;
    width: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 18px var(--gutter) 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tile-stack::-webkit-scrollbar { display: none; }
  .tile-stack .tile,
  .tile-stack .tile:nth-child(n) {
    position: relative;
    top: auto; left: auto; right: auto;
    width: auto;
    scroll-snap-align: center;
    transform: rotate(var(--tilt-m, 0deg));
  }
  .tile-stack .tile:nth-child(1) { --tilt-m: -3deg; }
  .tile-stack .tile:nth-child(2) { --tilt-m: 2deg; }
  .tile-stack .tile:nth-child(3) { --tilt-m: -2deg; }
  .tile-stack .tile:hover, .tile-stack .tile:focus-visible { transform: rotate(0deg); }
}

.tile-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 280px);
  gap: 20px;
  padding: 16px var(--gutter) 28px;
  margin-inline: calc(-1 * var(--gutter));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.tile-row .tile { scroll-snap-align: start; }

/* ---------- Carte d'aperçu (exemple d'estimation) ---------- */
.preview-card {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 28px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-elevated);
}
.preview-card__title {
  margin: 14px 0 6px;
  font-size: 40px;
}
.preview-card__meta {
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.4;
}
.recap {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 15px;
}
.recap th, .recap td {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  font-weight: 400;
  vertical-align: baseline;
}
.recap td { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
.recap .recap__total th, .recap .recap__total td {
  border-bottom: 0;
  padding-top: 14px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.recap .recap__sub th, .recap .recap__sub td { color: var(--slate); border-bottom: 0; padding-top: 0; }

.preview-card__glow {
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background:
    radial-gradient(45% 45% at 78% 82%, rgba(248, 196, 255, 0.6), rgba(248, 196, 255, 0) 70%),
    radial-gradient(45% 45% at 20% 18%, rgba(150, 196, 255, 0.38), rgba(150, 196, 255, 0) 70%);
  filter: blur(6px);
}
.preview-wrap { position: relative; isolation: isolate; }

.rule-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
}
.rule-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--graphite);
}
.rule-list svg { width: 20px; height: 20px; margin-top: 1px; }

/* ---------- Occasions ---------- */
.occasion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
}
.emoji-bubble {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 30px;
  line-height: 1;
}
.occasion .card__text { margin-top: 0; flex: 1; }
.occasion__reco { display: flex; flex-wrap: wrap; gap: 6px; }
.occasion .link-arrow { margin-top: 6px; font-size: 15px; }

/* ---------- Étapes ---------- */
.steps {
  counter-reset: etape;
  list-style: none;
  padding: 0;
}
.step { counter-increment: etape; }
@media (max-width: 540px) {
  .step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .step::before { grid-row: 1 / span 2; margin-bottom: 0; }
  .step .card__text { margin-top: 2px; }
}
.step::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

/* ---------- Carte de la zone ---------- */
.zone-map {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.zone-map text {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.02em;
  fill: var(--graphite);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.zone-map .zone-map__base { font-size: 20px; font-weight: 700; fill: #000; }
.zone-map .zone-map__ocean { font-size: 14px; font-style: italic; font-weight: 500; fill: #4f6f9e; stroke: none; letter-spacing: 0.08em; }
.zone-map .zone-map__radius { font-size: 14px; font-weight: 700; fill: #000; stroke-width: 5px; }
@media (max-width: 600px) {
  .zone-map { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
  .zone-map text { font-size: 21px; }
  .zone-map .zone-map__base { font-size: 26px; }
  .zone-map .zone-map__radius { font-size: 19px; }
  .zone-map .zone-map__ocean { font-size: 17px; }
  .zone-map .mineure { display: none; }
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

/* ---------- Médias (photos, vidéos) ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 16px;
  border-radius: var(--r-image);
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(248, 196, 255, 0.28), rgba(248, 196, 255, 0) 70%),
    linear-gradient(180deg, #0a0d2a 0%, #001666 100%);
  color: #fff;
  text-align: center;
  font-size: 14px;
}
.media-placeholder .a-completer { font-size: 13px; }

/* ---------- Avis ---------- */
.quote { display: grid; gap: 14px; padding: 24px; }
.quote__text { font-size: 17px; line-height: 1.5; color: var(--graphite); }
.quote__who { font-size: 14px; color: var(--slate); }
.quote__who strong { color: var(--ink); }

/* ---------- Bande d'appel à l'action ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 104px);
  background: var(--grad-pink-v);
  text-align: center;
}
.cta-band .container { display: grid; gap: 20px; justify-items: center; }
.cta-band p { max-width: 36em; color: var(--graphite); }
.cta-band .actions { justify-content: center; margin-top: 8px; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--hairline);
  background: #fff;
  color: var(--graphite);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand { display: grid; gap: 12px; align-content: start; justify-items: start; }
.footer-brand .brand { color: var(--ink); font-size: 22px; }
.footer-brand address { font-style: normal; display: grid; gap: 4px; }
.footer-brand a { text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }
.footer-col h2 {
  margin-bottom: 14px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--slate);
  font-size: 13px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =====================================================================
   PAGES INTÉRIEURES, CALENDRIER, DEVIS EN LIGNE, FORMULAIRES
   ===================================================================== */

/* ---------- Bouton de la barre : texte long / court ---------- */
.cta-court { display: none; }
@media (max-width: 600px) {
  .cta-long { display: none; }
  .cta-court { display: inline; }
}

/* ---------- Utilitaires ---------- */
.sans-cadre { min-width: 0; margin: 0; padding: 0; border: 0; }
.fine { font-size: 13px; line-height: 1.5; color: var(--slate); }
.small-title {
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; align-content: start; }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 80% 120%, #0a2a8f 0%, rgba(0, 22, 102, 0.5) 35%, rgba(0, 0, 0, 0) 70%),
    #02020a;
}
.page-hero__content {
  position: relative;
  padding-block: clamp(72px, 9vw, 112px) clamp(48px, 6vw, 72px);
}
.page-hero__title {
  max-width: 13em;
  margin: 16px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  text-wrap: balance;
}
.page-hero__lead { max-width: 38em; color: rgba(255, 255, 255, 0.9); text-wrap: pretty; }
.page-hero--compact .page-hero__content { padding-block: clamp(44px, 5vw, 64px) clamp(36px, 4vw, 48px); }
.page-hero--compact .page-hero__title { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 12px; }
@media (max-width: 700px) {
  .page-hero__content { padding-top: clamp(150px, 42vw, 190px); padding-bottom: 36px; }
  .page-hero--compact .page-hero__content { padding-top: 130px; padding-bottom: 28px; }
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 550;
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: 0.7; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Texte long (pages légales, sécurité) ---------- */
.prose { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 44px 0 12px; font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -0.04em; }
.prose h3 { margin: 26px 0 8px; font-size: 18px; letter-spacing: -0.03em; }
.prose p, .prose ul, .prose ol, .prose address { margin: 0 0 14px; color: var(--graphite); line-height: 1.65; }
.prose address { font-style: normal; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }

/* ---------- Messages ---------- */
.notice {
  padding: 12px 14px;
  border-radius: var(--r-input);
  background: rgba(0, 0, 0, 0.04);
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.5;
}
.notice[hidden] { display: none; }
.notice--ok { background: rgba(49, 196, 49, 0.13); }
.notice--attention { background: rgba(255, 174, 0, 0.18); }
.notice--erreur { background: rgba(212, 24, 31, 0.1); color: #7c0c11; }
.notice strong { color: var(--ink); }

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: #000;
  border-radius: 50%;
  vertical-align: -2px;
  animation: tourne 0.8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.field__label small { color: var(--slate); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.field__hint { color: var(--slate); font-size: 13px; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--silver);
  border-radius: var(--r-input);
  background: #fff;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.field__input:hover { border-color: var(--ash); }
.field__input:focus { outline: 2px solid #000; outline-offset: 1px; border-color: #000; }
textarea.field__input { min-height: 130px; resize: vertical; line-height: 1.5; }
select.field__input {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.form-card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-modal);
  background: #fff;
  box-shadow: var(--shadow-elevated);
}
.succes { display: grid; gap: 12px; justify-items: start; }
.succes:focus { outline: none; }
.succes[hidden] { display: none; }
.succes__titre { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }

/* ---------- Pastilles de dates et de statuts ---------- */
.date-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border: 0;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.date-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.date-pill:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.date-pill.is-selected { background: var(--ink); color: #fff; }

.pill--ok { background: rgba(49, 196, 49, 0.2); }
.pill--libre { background: var(--ok); color: #000; }
.pill--option { background: var(--maybe); color: #000; }
.pill--reservee { background: #fde6e6; color: #97111a; }
.pill--indisponible, .pill--trop-proche, .pill--passee { background: rgba(0, 0, 0, 0.07); color: var(--graphite); }
.statut-date { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Bande « prochaines dates » (accueil) ---------- */
.dispo-band { padding-block: 20px; border-bottom: 1px solid var(--hairline); background: #fff; }
.dispo-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dispo-band__titre { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.dispo-band .link-arrow { margin-left: auto; font-size: 15px; }
.dot-ok { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(49, 196, 49, 0.22); flex: none; }

/* ---------- Calendrier ---------- */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__range { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; text-align: center; }
.cal__nav {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0 0 3px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background-color 0.15s ease;
}
.cal__nav:hover:not(:disabled) { background: rgba(0, 0, 0, 0.05); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__months { display: grid; gap: 28px; }
.cal__months--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cal__title { margin-bottom: 6px; font-size: 15px; letter-spacing: -0.03em; }
.cal__grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal__grid th { padding: 4px 0; color: var(--slate); font-size: 12px; font-weight: 700; text-align: center; }
.cal__grid td { padding: 0; text-align: center; }
.cal__day {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 100%;
  max-width: 46px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cal__day--libre { background: var(--ok); color: #000; font-weight: 800; }
.cal__day--libre:hover { transform: scale(1.08); box-shadow: 0 2px 10px rgba(49, 196, 49, 0.45); }
.cal__day--option { background: var(--maybe); color: #000; font-weight: 700; }
.cal__day--reservee { background: #fde6e6; color: #97111a; text-decoration: line-through; }
/* Jours non disponibles : discrets mais lisibles (contraste 4,7:1) ; jours passés, inactifs, plus pâles */
.cal__day--indisponible, .cal__day--trop-proche { color: #737373; font-weight: 500; }
.cal__day--passee { color: #a3a3a3; font-weight: 500; }
.cal__day[aria-disabled="true"] { cursor: default; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal__day.is-selected { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15); text-decoration: none; }
.cal__day.is-ferie::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 550;
}
.cal__legend li { display: inline-flex; align-items: center; gap: 8px; }
.cal__swatch { position: relative; display: inline-block; width: 16px; height: 16px; border-radius: 50%; }
.cal__swatch.cal__day--indisponible { box-shadow: inset 0 0 0 1.5px #c9c9c9; }
.cal__swatch--ferie { box-shadow: inset 0 0 0 1.5px #c9c9c9; }
.cal__swatch--ferie::after { content: ""; position: absolute; left: 6px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--graphite); }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .cal-layout { grid-template-columns: minmax(0, 1fr); } }
.cal-card { padding: clamp(16px, 3vw, 28px); border-radius: var(--r-modal); background: #fff; box-shadow: var(--shadow-elevated); }
.cal-detail { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; justify-items: start; padding: 24px; }
.cal-detail__date { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.cal-detail__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-detail__texte { color: var(--graphite); font-size: 15px; line-height: 1.5; }
@media (max-width: 1000px) { .cal-detail { position: static; } }

/* ---------- Devis en ligne ---------- */
.devis { padding-block: clamp(28px, 4vw, 44px) var(--section); }
.devis__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .devis__layout { grid-template-columns: minmax(0, 1fr); } }

.devis-steps {
  display: flex;
  gap: 6px;
  margin: 0 calc(-1 * var(--gutter)) 16px;
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.devis-steps::-webkit-scrollbar { display: none; }
.devis-steps button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.devis-steps .num {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.devis-steps .is-done .num { background: var(--ok); }
.devis-steps .is-current button { background: var(--ink); color: #fff; }
.devis-steps .is-current .num { background: #fff; color: #000; }
.devis-steps button:disabled { opacity: 0.45; cursor: default; }

.devis-card { padding: clamp(20px, 3.2vw, 36px); border-radius: var(--r-modal); background: #fff; box-shadow: var(--shadow-elevated); }
.devis__compteur { margin-bottom: 6px; color: var(--slate); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.devis-etape__titre { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.04em; }
.devis-etape__titre:focus { outline: none; }
.devis-etape__intro { margin: 8px 0 22px; color: var(--slate); }
.devis-etape > .notice { margin-top: 16px; }
.devis-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.devis-nav [data-suivant] { margin-left: auto; }
[data-simulateur]:not(.is-ready) .devis-etape:not([data-etape="1"]) { display: none; }

/* Étape 1 : événements (boutons ronds façon RSVP) */
.rsvp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.rsvp {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 18px 10px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--r-card);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.rsvp:hover { background: rgba(0, 0, 0, 0.03); }
.rsvp__bulle {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 30px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rsvp__nom { color: var(--graphite); font-size: 14px; font-weight: 600; line-height: 1.3; }
.rsvp:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.rsvp:has(input:checked) .rsvp__bulle { transform: scale(1.06); box-shadow: 0 0 0 3px var(--ink); }
.rsvp:has(input:checked) .rsvp__nom { color: var(--ink); font-weight: 700; }
.rsvp:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Étape 2 : raccourcis de dates */
.devis-prochaines { margin-bottom: 20px; }
.devis-prochaines .date-pill { cursor: pointer; }

/* Étape 3 : adresse avec autocomplétion */
.combo { position: relative; }
.combo__liste {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.combo__option { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.combo__option:hover, .combo__option[aria-selected="true"] { background: rgba(0, 0, 0, 0.06); }
.combo__label { font-weight: 600; }
.combo__contexte { color: var(--slate); font-size: 13px; }
.combo__vide { padding: 10px 12px; color: var(--slate); font-size: 14px; }

/* Étape 4 : formules */
.formule-choix { display: grid; gap: 10px; }
.fchoix {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-card);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fchoix:hover { border-color: var(--fog); }
.fchoix:has(input:checked) { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.fchoix:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.fchoix.is-off { opacity: 0.55; cursor: not-allowed; }
.fchoix__art { position: relative; overflow: hidden; width: 54px; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--midnight); }
.fchoix__nom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.03em; }
.fchoix__txt { display: block; margin-top: 2px; color: var(--slate); font-size: 14px; }
.fchoix__txt--alerte { color: #7a4f00; }
.fchoix__prix { font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
@media (max-width: 480px) {
  .fchoix { grid-template-columns: 44px minmax(0, 1fr); }
  .fchoix__art { width: 44px; }
  .fchoix__prix { grid-column: 2; }
}

/* Étape 5 : options */
.options-choix { display: grid; gap: 10px; }
.ochoix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-card);
  transition: border-color 0.15s ease;
}
.ochoix.is-on { border-color: var(--ink); }
.ochoix__label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ochoix__label input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #000; }
.ochoix__nom { display: block; font-weight: 700; letter-spacing: -0.03em; }
.ochoix__desc { display: block; margin-top: 2px; color: var(--slate); font-size: 14px; }
.ochoix__prix { font-weight: 700; white-space: nowrap; }
.stepper {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
}
.stepper button {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  font-weight: 700;
}
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper output { min-width: 30px; font-weight: 700; text-align: center; }
@media (max-width: 480px) { .ochoix { grid-template-columns: 1fr; } .ochoix__prix { margin-left: 32px; } }

/* Étape 6 : récapitulatif et envoi */
.resume-choix { display: grid; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.resume-choix > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.resume-choix dt { color: var(--slate); }
.resume-choix dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lien-modifier {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.resume-vide { margin-top: 10px; font-size: 14px; }
.devis-print { display: grid; gap: 4px; margin-bottom: 26px; }
.devis-print .resume-choix { font-size: 15px; }
.devis-print .recap { margin-top: 12px; }
.devis-print .fine { margin-top: 12px; }
.devis-print__entete { display: none; }
.devis-form { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.devis-form[hidden] { display: none; }
.devis-form h3 { font-size: 20px; letter-spacing: -0.04em; }

/* Résumé en direct */
.devis__aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.devis-resume { padding: 22px; border-radius: var(--r-modal); }
.devis-resume__titre { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; }
.devis-resume .recap { margin-top: 14px; font-size: 14px; }
.devis-resume .recap__total th, .devis-resume .recap__total td { font-size: 17px; }
@media (max-width: 1000px) { .devis__aside { position: static; } }

/* Barre du total, en bas de l'écran sur mobile */
.devis-barre { display: none; }
@media (max-width: 1000px) {
  .devis-barre {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-lg);
  }
  .devis-barre[hidden] { display: none; }
  .devis-barre__label { font-size: 13px; opacity: 0.8; }
  .devis-barre strong { margin-right: auto; font-size: 17px; letter-spacing: -0.03em; }
  .page-devis .site-footer { padding-bottom: 96px; }
}

/* ---------- Page Formules ---------- */
.formula-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .formula-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .formula-grid { grid-template-columns: 1fr; } }
.fcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.fcard:target { box-shadow: 0 0 0 3px var(--ink), var(--shadow-lg); }
.fcard__art { position: relative; aspect-ratio: 480 / 260; background: var(--midnight); }
.fcard__art--dashed { background: #fff; }
.fcard__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fcard__art .pill { position: absolute; left: 14px; top: 14px; }
.fcard__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 24px; font-size: 15px; }
.fcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fcard__nom { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.fcard__prix { font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.fcard__accroche { color: var(--graphite); font-weight: 600; }
.fcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fcard__meta li { padding: 5px 10px; border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.05); font-size: 12px; font-weight: 700; }
.fcard__desc { color: var(--slate); line-height: 1.5; }
.fcard__note { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; color: var(--graphite); }
.fcard__note svg { width: 18px; height: 18px; margin-top: 2px; }
.fcard .btn { align-self: flex-start; margin-top: auto; }

.option-card { display: flex; flex-direction: column; gap: 6px; }
.option-card__prix { margin-top: auto; padding-top: 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.option-card__prix span { color: var(--slate); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Questions fréquentes ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { padding: 0 20px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 0 18px; color: var(--graphite); line-height: 1.6; }

/* ---------- Déroulé chronologique ---------- */
.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline > li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.timeline > li:last-child { border-bottom: 0; }
.timeline__quand { align-self: start; justify-self: start; }
.timeline h3 { font-size: 18px; letter-spacing: -0.04em; }
.timeline p { margin-top: 4px; color: var(--slate); line-height: 1.55; }
@media (max-width: 640px) { .timeline > li { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; padding: 4px; border-radius: 24px; background: rgba(0, 0, 0, 0.05); }
.tabs[hidden] { display: none; }
.tab { padding: 8px 16px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: 14px; font-weight: 550; }
.tab[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; }
.media-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-image);
  background: var(--midnight);
  color: #fff;
  cursor: zoom-in;
  text-decoration: none;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.media-tile:hover img { transform: scale(1.04); }
.media-tile__sans-apercu { position: absolute; inset: 0; background: linear-gradient(180deg, #0a0d2a, #001666); }
.media-tile__play {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 18px;
  transform: translate(-50%, -50%);
}
.media-tile__legende {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.lightbox {
  width: min(96vw, 1100px);
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-modal);
  background: #000;
  color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }
.lightbox__media img, .lightbox__media video { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: #000; }
.lightbox__barre { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.lightbox__legende { flex: 1; font-size: 14px; }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__btn[hidden] { display: none; }

/* ---------- Contact, À propos ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.coord-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.coord-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; }
.coord-list .card__icon { margin: 0; }
.coord-list strong { display: block; color: var(--slate); font-size: 13px; font-weight: 600; }
.portrait { aspect-ratio: 4 / 5; }
.cred-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cred-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--graphite); }
.cred-list svg { width: 20px; height: 20px; margin-top: 2px; }

/* ---------- Conditions communes aux formules (accueil, page Formules) ---------- */
.formules-points { max-width: 60em; margin-bottom: clamp(24px, 3vw, 36px); }
.rule-list--ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; font-size: 15px; }
@media (max-width: 700px) { .rule-list--ligne { grid-template-columns: minmax(0, 1fr); } }

/* « TTC » en petit à côté de chaque prix */
.ttc { font-size: max(0.6em, 10px); font-weight: 600; letter-spacing: 0.03em; opacity: 0.7; white-space: nowrap; }

/* Devis en ligne, étape 5 : les couleurs */
.fchoix--couleur { grid-template-columns: 44px minmax(0, 1fr) auto; }
.pastille { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.pastille--rose { background: #ff9ad5; }
.pastille--bleu { background: #6fb1ff; }
.pastille--classique { background: conic-gradient(#ffd98a, #ff5c5c, #f8c4ff, #96c4ff, #85dadc, #31c431, #ffd98a); }
.pastille--sur-mesure { background: #fff; box-shadow: none; border: 2px dashed var(--fog); }
.fchoix-suite { margin: -2px 0 6px 58px; }
@media (max-width: 480px) {
  .fchoix--couleur { grid-template-columns: 44px minmax(0, 1fr); }
  .fchoix-suite { margin-left: 0; }
}

/* ---------- Impression (dont le devis) ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .announce, .site-header, .site-footer, .skip-link, .hero__sky, .hero__wash, .cta-band { display: none !important; }
  .page-hero { color: #000; background: none; }
  .page-hero__lead { color: #333; }
  .breadcrumb { display: none; }
  /* Page devis : seul le récapitulatif s'imprime */
  .page-devis .page-hero,
  .page-devis .devis-steps,
  .page-devis .devis__aside,
  .page-devis .devis-barre,
  .page-devis .devis-form,
  .page-devis .devis-nav,
  .page-devis .devis__compteur,
  .page-devis .devis-etape__titre,
  .page-devis .devis-etape__intro,
  .page-devis .succes,
  .page-devis [data-devis-erreur],
  .page-devis .lien-modifier { display: none !important; }
  .page-devis .devis { padding: 0; }
  .page-devis .devis-card { padding: 0; box-shadow: none; }
  .devis-print { font-size: 12pt; }
  .devis-print__entete {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
    font-size: 10pt;
    line-height: 1.5;
  }
  .devis-print__entete p:last-child { text-align: right; }
}
