/* Précommande iPhone Duo — Welcom
   Charte reprise de wel-com.fr : Poppins, bleu Welcom #4637FF, fonds blancs / gris clair. */

/* Poppins hébergée sur le site (licence OFL, voir assets/fonts/OFL.txt) : aucun appel à Google Fonts. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --brand: #4637ff;
  --brand-hover: #3424f0;
  --brand-soft: #a9a2ff;       /* variante lisible sur fond sombre */
  --brand-tint: #eeecff;
    --text: #232323;
  --muted: #6b6b76;
  --line: #e4e4ea;
  --paper: #f2f2f4;
  --card: #ffffff;
  --ok: #12805c;
  --error: #c62828;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 14px 40px rgba(20, 20, 60, 0.07);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Bandeau mode test ---------- */
.mode-banner {
  background: #fff4cc;
  color: #5c4500;
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f1dd8f;
}
.mode-banner.off { background: #ffe3e3; color: #7a1414; border-color: #f5b5b5; }
.mode-banner code { background: rgba(0, 0, 0, 0.07); padding: 1px 6px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; flex: none; line-height: 0; }
.logo img { height: 28px; width: auto; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.header-nav a:hover { color: var(--brand); }
@media (max-width: 760px) {
  .header-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-outline { color: var(--text); border-color: rgba(35, 35, 35, 0.3); background: transparent; }
.btn-outline:hover { border-color: var(--text); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }

/* ---------- Hero ---------- */
.hero {
  background: #fff;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  font-size: 13px;
  font-weight: 500;
  color: #2a1fb8;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero-tagline {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--brand) 0%, #8b3dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 18px;
  max-width: 40em;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
}
.lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.hero-media {
  position: relative;
  width: min(1000px, 100% - 32px);
  margin: clamp(16px, 3vw, 32px) auto 0;
  aspect-ratio: 1932 / 1280;
}
.hero-media video,
.hero-media img { width: 100%; height: 100%; object-fit: contain; }

.hero-facts {
  list-style: none;
  margin: clamp(8px, 2vw, 20px) auto 0;
  padding: 20px 12px;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-radius: var(--radius);
  background: var(--paper);
}
.hero-facts li { display: flex; flex-direction: column; align-items: center; }
.hero-facts strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.hero-facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .hero-facts { gap: 8px; padding: 16px 8px; }
  .hero-facts strong { font-size: 1.05rem; }
  .hero-facts span { font-size: 12px; line-height: 1.35; text-align: center; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Compte à rebours ---------- */
.countdown { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pulse--hot { background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); animation-name: pulse-hot; }
@keyframes pulse-hot {
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
.countdown-units { display: flex; align-items: flex-start; gap: 10px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-value {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 88px;
  height: 96px;
  padding: 0 12px;
  border-radius: 20px;
  overflow: hidden;
  /* deux moitiés légèrement différentes, comme une horloge à palettes */
  background: linear-gradient(180deg, #2b2b35 0%, #1c1c24 50%, #15151b 50%, #202029 100%);
  color: #fff;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 30px rgba(20, 20, 40, 0.18);
}
.cd-value::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cd-value > span { display: block; animation: cd-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes cd-in {
  from { transform: translateY(-45%); opacity: 0; filter: blur(2px); }
  to { transform: none; opacity: 1; filter: none; }
}
.cd-unit--sec .cd-value {
  background: linear-gradient(180deg, #6152ff 0%, #4637ff 50%, #3b2cf2 50%, #4b3dff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 30px rgba(70, 55, 255, 0.35);
}
.cd-name { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cd-sep { font-size: 34px; font-weight: 600; line-height: 96px; color: #c9c9d2; }
.countdown.is-done .countdown-units { display: none; }
.countdown.is-done .pulse--hot { background: #16a34a; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .cd-value > span, .pulse--hot { animation: none; }
}
@media (max-width: 480px) {
  .countdown-units { gap: 5px; }
  .cd-value { min-width: 64px; height: 72px; padding: 0 8px; border-radius: 16px; font-size: 34px; }
  .cd-sep { font-size: 24px; line-height: 72px; }
  .cd-name { font-size: 10px; letter-spacing: 0.08em; }
}

/* Variante compacte sur fond sombre (bandeau de réservation) */
.countdown--compact { margin: 0 0 30px; align-items: flex-start; }
.countdown--compact .cd-value { min-width: 66px; height: 74px; border-radius: 16px; font-size: 36px; }
.countdown--compact .cd-sep { font-size: 26px; line-height: 74px; }
.countdown--dark .countdown-label,
.countdown--dark .cd-name { color: rgba(255, 255, 255, 0.62); }
.countdown--dark .cd-sep { color: rgba(255, 255, 255, 0.28); }
.countdown--dark .cd-unit:not(.cd-unit--sec) .cd-value {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.09) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ---------- Titres de section ---------- */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.kicker.light { color: var(--brand-soft); }
.section-title {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
}
.section-title.light { color: #fff; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
section { padding: clamp(56px, 8vw, 104px) 0; }

/* ---------- Galerie (positions) ---------- */
.gallery { background: var(--paper); }
.viewer {
  margin-top: 36px;
  padding: clamp(16px, 3vw, 40px) clamp(12px, 3vw, 40px) clamp(20px, 3vw, 32px);
  border-radius: 28px;
  background: #fff;
}
.viewer-stage { --fade: 1s; position: relative; aspect-ratio: 4 / 3; width: min(100%, 700px); margin-inline: auto; }
/* Deux photos superposées pour le fondu enchaîné : la nouvelle apparaît par-dessus l'ancienne, qui reste
   opaque en dessous jusqu'à la fin du fondu (sinon le fond blanc transparaît et l'appareil pâlit).
   Sur les photos Apple, l'appareil occupe la moitié droite : on recadre pour le centrer. */
.viewer-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  opacity: 0;
  transition: opacity 0s linear var(--fade);
}
.viewer-stage img.is-active { z-index: 1; opacity: 1; transition: opacity var(--fade) ease; }
.viewer-caption.fade { animation: caption-fade 0.8s ease; }
@keyframes caption-fade { from { opacity: 0; } }
/* Bouton lecture / pause, avec un anneau qui se remplit jusqu'à la photo suivante. */
.viewer-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(232, 232, 237, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s;
}
.viewer-play:hover { background: rgba(210, 210, 215, 0.9); }
.viewer-play:focus-visible { border-radius: 50%; }
.viewer-play > svg { grid-area: 1 / 1; fill: currentColor; }
.viewer-ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.viewer-ring circle { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.viewer-play.is-counting .viewer-ring circle { animation: viewer-ring var(--viewer-delay, 4s) linear forwards; }
@keyframes viewer-ring { to { stroke-dashoffset: 0; } }
.viewer-play .icon-play,
.viewer-play[data-state="paused"] .icon-pause { display: none; }
.viewer-play[data-state="paused"] .icon-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .viewer-stage { --fade: 0.2s; }
  .viewer-caption.fade { animation: none; }
}
.swap { animation: fade-in 0.35s ease; }
.viewer-caption { max-width: 38em; min-height: 3.2em; margin: 8px auto 0; text-align: center; color: var(--muted); }
.viewer-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.viewer-tabs button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.viewer-tabs button:hover { border-color: var(--text); }
.viewer-tabs button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #fff; }
@media (max-width: 640px) {
  .viewer-stage { aspect-ratio: 5 / 4; }
  .viewer-caption { min-height: 4.8em; } /* 3 lignes : la rangée d'onglets ne saute pas d'une légende à l'autre */
  .viewer-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .viewer-tabs::-webkit-scrollbar { display: none; }
  .viewer-tabs button { flex: none; }
}

/* ---------- Points forts ---------- */
.highlights { background: #fff; }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.tile {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
}
.tile img { width: 100%; height: auto; aspect-ratio: 2520 / 1224; object-fit: cover; mix-blend-mode: multiply; }
.tile-text { padding: 0 clamp(20px, 3vw, 32px) clamp(22px, 3vw, 32px); }
.tile h3 { font-size: 1.25rem; font-weight: 600; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; }
.tile-wide .tile-text { padding: clamp(24px, 4vw, 48px); order: -1; }
.tile-wide h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; display: flex; }
  .tile-wide .tile-text { order: 0; padding: 0 20px 22px; }
}

/* ---------- Fiche technique : bandeau discret + panneau ---------- */
.fiche-strip { padding: 0 0 clamp(48px, 7vw, 88px); background: #fff; }
.fiche-strip-inner {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fiche-strip-title {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.fiche-strip-keys { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.fiche-strip-keys span { white-space: nowrap; }
.fiche-strip-keys span + span::before { content: "·"; margin: 0 10px; color: #c4c4cc; }
.fiche-open {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 8px 12px;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}
.fiche-open svg { transition: transform 0.2s; }
.fiche-open:hover svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .fiche-strip-inner { flex-wrap: wrap; }
  .fiche-strip-keys { flex-basis: 100%; order: 2; gap: 4px 16px; font-size: 13px; }
  .fiche-strip-keys span + span::before { display: none; }
  .fiche-open { order: 1; }
}

.fiche-panel {
  inset: 0 0 0 auto;
  margin: 0 0 0 auto;
  width: min(560px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--text);
  box-shadow: -24px 0 60px rgba(10, 10, 30, 0.18);
}
.fiche-panel[open] { display: flex; flex-direction: column; animation: panel-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fiche-panel.is-closing { animation: panel-out 0.25s ease-in forwards; }
.fiche-panel::backdrop { background: rgba(12, 12, 24, 0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fiche-panel[open]::backdrop { animation: fade 0.3s ease; }
@keyframes panel-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes panel-out { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
html:has(.fiche-panel[open]) { overflow: hidden; }

.fiche-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.fiche-panel-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fiche-panel-head h2 { margin-top: 2px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.fiche-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s;
}
.fiche-close:hover { background: #e6e6ea; }
.fiche-panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 32px; }
.fiche-panel-body:focus { outline: none; } /* reçoit le focus à l’ouverture ; la croix reste accessible au clavier */

.fiche-visual { margin: 8px -8px 0; }
.fiche-visual img { width: 100%; height: auto; aspect-ratio: 1262 / 688; object-fit: contain; }
.fiche-colors { list-style: none; margin: 6px 0 0; padding: 0; display: flex; justify-content: center; gap: 22px; font-size: 13px; color: var(--muted); }
.fiche-colors li { display: inline-flex; align-items: center; gap: 8px; }
.fiche-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }

.fiche-keys {
  margin: 24px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.fiche-keys > div { padding: 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fiche-keys dt { font-size: 11.5px; color: var(--muted); }
.fiche-keys dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }

.fiche-group { padding: 22px 0 6px; }
.fiche-group + .fiche-group { border-top: 1px solid var(--line); }
.fiche-group h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.fiche-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fiche-group dl { margin: 0; }
.fiche-group dl > div { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 9px 0 9px 30px; }
.fiche-group dl > div + div { border-top: 1px dashed #ececf1; }
.fiche-group dt { font-size: 13px; color: var(--muted); }
.fiche-group dd { margin: 0; font-size: 14px; line-height: 1.5; }
.fiche-source { margin-top: 20px; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .fiche-panel {
    inset: auto 0 0 0;
    margin: auto 0 0 0;
    width: 100vw;
    height: 92dvh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 50px rgba(10, 10, 30, 0.2);
  }
  @keyframes panel-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes panel-out { to { transform: translateY(100%); } }
  .fiche-panel-head { padding: 18px 20px 14px; }
  .fiche-panel-body { padding: 4px 20px 28px; }
  .fiche-keys > div { padding: 12px 10px; }
  .fiche-keys dd { font-size: 1.05rem; }
  .fiche-group dl > div { grid-template-columns: 1fr; gap: 2px; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fiche-panel[open], .fiche-panel.is-closing, .fiche-panel[open]::backdrop { animation: none; }
}

/* ---------- Bandeau réservation ---------- */
.cta-band { background: #0b0b10; color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cta-copy h2 { margin-top: 8px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
.cta-copy p { margin: 14px 0 28px; color: rgba(255, 255, 255, 0.72); }
.cta-grid img { width: 100%; height: auto; border-radius: 24px; }
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-grid img { order: -1; }
}

/* ---------- Étapes ---------- */
.how { background: var(--paper); }
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.steps li { background: var(--card); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
}
.steps h3 { margin-top: 18px; font-size: 1.1rem; font-weight: 600; }
.steps p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Réservation ---------- */
.reserve { background: var(--card); }
.section-head { max-width: 640px; }
.notice {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: #231a99;
  font-size: 15px;
}
.notice.warn { background: #fff4e5; color: #7a4300; }
.notice.error { background: #fdecec; color: #8f1d1d; }

.config-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.config-visual {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: 28px;
  padding: clamp(16px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
}
/* Carrousel de photos du configurateur (glisser au doigt, flèches, points, clavier) */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 16px;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.carousel-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 16 / 10; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(20, 20, 40, 0.14);
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.carousel-nav:hover { transform: translateY(-50%) scale(1.06); }
.carousel-nav.prev { left: 6px; }
.carousel-nav.next { right: 6px; }
.carousel-nav[aria-disabled="true"] { opacity: 0.3; cursor: default; box-shadow: none; }
.carousel-nav[aria-disabled="true"]:hover { transform: translateY(-50%); }
@media (hover: none) { .carousel-nav { display: none; } } /* sur mobile : glisser au doigt + points */
.carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; min-height: 24px; }
.carousel-dot { display: grid; place-items: center; width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfcfd6;
  transition: width 0.25s, background-color 0.25s;
}
.carousel-dot[aria-current="true"]::before { width: 22px; background: var(--brand); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .swap { animation: none; } }
.config-caption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

.option-group { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.option-group legend,
.option-group .legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 1.05rem;
}
.legend-value { font-weight: 400; color: var(--muted); }
.step {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { position: relative; }
.swatch input,
.capacity input { position: absolute; opacity: 0; pointer-events: none; }
.swatch label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.swatch-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.12), inset 0 4px 8px rgba(255, 255, 255, 0.45);
}
.swatch input:checked + label { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.swatch input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 3px; }

.capacities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.capacity label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.capacity label strong { font-size: 1.1rem; font-weight: 600; }
.capacity label span { font-size: 14px; color: var(--muted); }
.capacity input:checked + label { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #fbfaff; }
.capacity input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 3px; }
.fine { margin-top: 10px; font-size: 13px; color: var(--muted); }
.fine.ok { color: var(--ok); font-weight: 500; }
.fine.warn { color: #9a5a00; }

.add-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 48px;
  height: 52px;
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--paper); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-size: 17px; }
.add-btn { flex: 1 1 220px; }

@media (max-width: 900px) {
  .config-grid { grid-template-columns: 1fr; }
  .config-visual { position: static; }
}

/* ---------- Formulaire & récapitulatif ---------- */
.checkout-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field > span { font-size: 14px; font-weight: 500; }
.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 16px; /* évite le zoom automatique sur iPhone */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b76' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(70, 55, 255, 0.15); }
.field small { font-size: 12.5px; color: var(--muted); }
.field-error { font-style: normal; font-size: 13px; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.field.invalid input,
.field.invalid select { border-color: var(--error); }
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
}

/* ---------- Recherche de boutique ---------- */
.store-field { position: relative; }
.store-search { position: relative; display: flex; align-items: center; }
.store-search-icon { position: absolute; top: 16px; left: 14px; color: var(--muted); pointer-events: none; }
.field .store-search input { padding-left: 42px; padding-right: 142px; }
.locate-btn {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--brand-tint);
  color: #2a1fb8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.locate-btn:hover { background: #e2deff; }
.locate-btn.is-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .store-search { flex-wrap: wrap; }
  .field .store-search input { padding-right: 14px; }
  .locate-btn { position: static; margin-top: 8px; }
}

.store-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  max-height: 340px;
  overflow-y: auto;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 20, 60, 0.12);
}
.store-results-head { padding: 8px 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.store-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.store-option:hover,
.store-option.is-active { background: var(--brand-tint); }
.store-option-name { font-weight: 600; font-size: 14.5px; }
.store-option-address { grid-column: 1; font-size: 13px; color: var(--muted); }
.store-option-distance { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.store-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e3f6ee;
  color: var(--ok);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}
.store-empty { padding: 12px; font-size: 14px; color: var(--muted); }
.store-hint { font-size: 12.5px; color: var(--muted); }
.store-hint.warn { color: #9a5a00; }

.store-selected {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--brand);
  border-radius: 14px;
  background: #fbfaff;
}
.store-check { flex: none; margin-top: 1px; color: var(--brand); }
.store-selected-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.store-selected-info strong { font-size: 15px; }
.store-selected-info span { font-size: 13.5px; color: var(--muted); }
.store-selected-meta { color: var(--text) !important; font-weight: 500; white-space: pre-line; }
.store-change {
  flex: none;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.field.invalid .store-search input { border-color: var(--error); }
@media (max-width: 480px) {
  .store-selected { flex-wrap: wrap; }
  .store-change { flex-basis: 100%; padding: 0 0 0 34px; text-align: left; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 14px;
  cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.consent + .field-error { display: block; margin-top: 8px; }
.consent + .field-error:empty { display: none; }

.summary-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fcfcfe; }
.cart { list-style: none; margin: 0; padding: 0; }
.cart li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart li:first-child { padding-top: 0; }
.cart-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); grid-row: span 2; }
.cart-name { font-weight: 600; font-size: 15px; }
.cart-meta { grid-column: 2; font-size: 13px; color: var(--muted); }
.cart-actions { grid-row: 1 / span 2; grid-column: 3; display: flex; align-items: center; gap: 6px; }
.cart-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.cart-actions button:hover:not(:disabled) { border-color: var(--text); }
.cart-actions button:disabled { opacity: 0.3; cursor: not-allowed; }
.cart-actions .remove { border: 0; background: none; color: var(--muted); font-size: 13px; width: auto; padding: 0 4px; text-decoration: underline; }
.cart-empty { font-size: 14px; color: var(--muted); padding-bottom: 12px; }
@media (max-width: 480px) {
  .cart li { grid-template-columns: auto 1fr; }
  .cart-dot { grid-row: 1; }
  .cart-actions { grid-row: 3; grid-column: 2; margin-top: 6px; }
}

.totals { margin: 18px 0 20px; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; }
.totals .total-now { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.totals .total-now dt { color: var(--text); font-weight: 600; }
.totals .total-now dd { font-weight: 700; color: var(--brand); }
.form-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecec;
  color: #8f1d1d;
  font-size: 14px;
}
.secure { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.pay-methods { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-methods li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4a4a55;
  background: #fff;
}
.checkout-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

/* ---------- Pourquoi un acompte ---------- */
.why { background: var(--paper); }
.why-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-grid article { background: var(--card); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.why-grid h3 { font-size: 1.15rem; font-weight: 600; }
.why-grid p { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq .section-title { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--text); color: rgba(255, 255, 255, 0.7); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer .logo img { height: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .fine { flex-basis: 100%; color: rgba(255, 255, 255, 0.5); margin: 0; }

/* ---------- Page merci ---------- */
.thanks { min-height: calc(100vh - var(--header-h)); background: var(--paper); padding: clamp(40px, 7vw, 88px) 0; }
.thanks-card { max-width: 640px; margin-inline: auto; text-align: center; }
.thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f6ee;
  color: var(--ok);
}
.thanks-icon.pending { background: #fff4e5; color: #9a5a00; }
.thanks-icon.error { background: #fdecec; color: var(--error); }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
.thanks .lead-dark { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.ref {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1.5px dashed var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.ref-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.thanks-card > .notice { margin: 0 0 20px; }
.verif-kicker { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.bon-download { margin-top: 22px; }
.bon-download .btn { gap: 10px; }
.recap { margin-top: 28px; text-align: left; }
.recap .totals { margin-bottom: 0; }
.next-steps { margin: 28px 0 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 12px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.next-steps .step-num { flex: none; width: 30px; height: 30px; font-size: 14px; }
.thanks .actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.skeleton { color: var(--muted); }

/* ---------- Pages de texte (conditions) ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
.legal h2 { font-size: 1.2rem; font-weight: 600; margin: 32px 0 10px; }
.legal p, .legal li { color: #3d3d46; font-size: 15.5px; }
.legal p + p { margin-top: 10px; }
.legal .draft {
  margin: 20px 0 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff4cc;
  color: #5c4500;
  font-size: 14px;
}
