/* ---------- Polices hébergées sur le site (aucun appel à Google) ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/outfit-latin.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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.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;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body, h1, h2, h3, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Design tokens ---------- */
:root {
  /* Gris (zinc) */
  --gray-950: #0c0c0d;
  --gray-900: #18181b;
  --gray-800: #27272a;
  --gray-700: #3f3f46;
  --gray-600: #52525b;
  --gray-500: #71717a;
  --gray-300: #d4d4d8;
  --gray-200: #e4e4e7;
  --gray-150: #ececef;
  --gray-100: #f4f4f5;
  --gray-50:  #fafafa;

  /* Orange */
  --orange-800: #9a3412;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --orange-50:  #fff7ed;

  --bg: #ffffff;
  --bg-alt: var(--gray-50);
  --text: var(--gray-900);
  --text-soft: var(--gray-700);
  --text-muted: var(--gray-500);
  --border: var(--gray-150);
  --border-strong: var(--gray-200);
  --accent: var(--orange-500);
  --accent-hover: var(--orange-600);

  --font-heading: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container-w: 1140px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04), 0 2px 8px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 2px 4px rgba(24, 24, 27, 0.04), 0 12px 32px rgba(24, 24, 27, 0.08);
  --ring: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.text-accent { color: var(--accent); }

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Badge pilule au-dessus des titres */
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
  min-height: 40px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 150ms ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
}
.btn--ghost:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn--soft {
  background: var(--gray-100);
  border-color: var(--gray-150);
  color: var(--text);
}
.btn--soft:hover { background: var(--gray-150); }

/* Chevron à droite du libellé */
.btn__arrow {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.btn__arrow svg { width: 14px; height: 14px; }

/* Boutons orange : au survol, le libellé roule vers le haut pendant que sa copie
   arrive par le bas (comme la navigation) et la flèche sort à droite puis revient. */
.btn__roll {
  display: block;
  height: 1.2em;
  overflow: hidden;
}
.btn__roll > span {
  display: block;
  transition: transform 300ms cubic-bezier(0.65, 0, 0.25, 1);
}
.btn--primary:hover .btn__roll > span,
.btn--primary:focus-visible .btn__roll > span { transform: translateY(-100%); }
.btn--primary:hover .btn__arrow svg,
.btn--primary:focus-visible .btn__arrow svg { animation: btn-arrow 450ms cubic-bezier(0.65, 0, 0.25, 1); }

@keyframes btn-arrow {
  0% { transform: translateX(0); }
  45% { transform: translateX(170%); }
  46% { transform: translateX(-170%); }
  100% { transform: translateX(0); }
}

.btn--lg { padding: 12px 22px; font-size: 1rem; min-height: 48px; border-radius: 12px; }

/* Boutons pleins : compacts et fins, quelle que soit la taille demandée */
.btn--primary,
.btn--primary.btn--lg {
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.btn--primary.btn--arrow { padding-right: 10px; }

/* Bouton d'appel principal (sous la vidéo) : dégradé ambre vers orange, reflet vitré
   et chevron dans une case translucide */
.btn--primary.btn--cta {
  gap: 10px;
  min-height: 38px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 11px;
  background: linear-gradient(100deg, #fbbf24 0%, #fb923c 38%, var(--accent) 65%, var(--accent-hover) 100%);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(194, 65, 12, 0.25),
    0 0 0 1px rgba(234, 88, 12, 0.35),
    0 12px 28px -12px rgba(234, 88, 12, 0.65);
  transition: box-shadow 250ms ease, transform 250ms ease, filter 250ms ease;
}
.btn--primary.btn--cta:hover {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 8px rgba(194, 65, 12, 0.25),
    0 0 0 1px rgba(234, 88, 12, 0.4),
    0 16px 32px -12px rgba(234, 88, 12, 0.75);
}
.btn--cta .btn__arrow {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px -2px rgba(154, 52, 18, 0.35);
}
.btn--cta .btn__arrow svg { width: 13px; height: 13px; }

/* Même aspect que le bouton d'appel principal, à la taille des boutons compacts
   (« Nous contacter », « Suivant », « Envoyer ma demande ») */
.btn--primary.btn--glossy {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(100deg, #fbbf24 0%, #fb923c 38%, var(--accent) 65%, var(--accent-hover) 100%);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(194, 65, 12, 0.25),
    0 0 0 1px rgba(234, 88, 12, 0.35),
    0 10px 22px -12px rgba(234, 88, 12, 0.65);
  transition: box-shadow 250ms ease, transform 250ms ease, filter 250ms ease;
}
.btn--primary.btn--glossy.btn--arrow { padding-right: 5px; }
.btn--primary.btn--glossy:hover {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 8px rgba(194, 65, 12, 0.25),
    0 0 0 1px rgba(234, 88, 12, 0.4),
    0 14px 26px -12px rgba(234, 88, 12, 0.75);
}
.btn--glossy .btn__arrow {
  width: 22px;
  height: 22px;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px -2px rgba(154, 52, 18, 0.35);
}
.btn--glossy .btn__arrow svg { width: 12px; height: 12px; }

/* Micro-animation : un reflet traverse les boutons orange toutes les 4 s */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-120%) skewX(-12deg);
  animation: btn-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.btn--primary:nth-of-type(2n)::after { animation-delay: 1.3s; }
@keyframes btn-shine {
  0%, 62% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(330%) skewX(-12deg); }
}

/* Micro-animation : les icônes des piliers et des avantages flottent légèrement */
@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-3deg); }
}
.contact__perk-icon { animation: icon-float 3.2s ease-in-out infinite; }
.contact__perk:nth-child(2) .contact__perk-icon { animation-delay: 0.5s; }
.contact__perk:nth-child(3) .contact__perk-icon { animation-delay: 1s; }
.pillars-icon > svg { animation: icon-float 3.2s ease-in-out infinite; }
.pillars-tab:nth-child(2) .pillars-icon > svg { animation-delay: 0.6s; }
.pillars-tab:nth-child(3) .pillars-icon > svg { animation-delay: 1.2s; }
.plans__features svg { animation: icon-float 3.2s ease-in-out infinite; }
.plans__features li:nth-child(2) svg { animation-delay: 0.4s; }
.plans__features li:nth-child(3) svg { animation-delay: 0.8s; }
.plans__features li:nth-child(4) svg { animation-delay: 1.2s; }

/* Micro-animation : confettis orange à l'arrivée sur la page de remerciement */
.thanks-confetti {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.thanks-confetti i {
  position: absolute;
  top: -16px;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall var(--fall, 2.8s) cubic-bezier(0.3, 0.6, 0.6, 1) var(--delay, 0s) forwards;
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift, 0px), 105vh) rotate(var(--spin, 540deg)); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: margin-bottom 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  transition: height 300ms ease;
}
/* Au défilement, l'en-tête s'affine. La marge compense les 8px perdus :
   la page ne bouge pas d'un pixel quand il change de taille. */
.header.is-scrolled {
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 24px -12px rgba(24, 24, 27, 0.16);
}
.header.is-scrolled .header__inner { height: 56px; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fb923c, var(--accent));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.logo__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.logo__dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Survol : la pastille grise apparaît pendant que le libellé roule vers le haut
   et que sa copie arrive par le bas (inverse à la sortie de la souris). */
.nav__link {
  position: relative;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 7px 9px;
  border-radius: 8px;
  transition: color 200ms ease;
}
.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gray-100);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 200ms ease, transform 250ms cubic-bezier(0.6, 0, 0.2, 1);
}
.nav__roll {
  position: relative;
  display: block;
  height: 1.4em;
  line-height: 1.4em;
  overflow: hidden;
}
.nav__roll > span {
  display: block;
  transition: transform 250ms cubic-bezier(0.65, 0, 0.25, 1);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--text); }
.nav__link:hover::before,
.nav__link:focus-visible::before { opacity: 1; transform: scale(1); }
.nav__link:hover .nav__roll > span,
.nav__link:focus-visible .nav__roll > span { transform: translateY(-100%); }
.nav__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Section en cours : le lien est souligné en orange */
.nav__link::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
/* Sur les sections Offre et Contact, le bouton « Nous contacter » s'efface */
.header__actions .btn { transition: opacity 300ms ease, transform 300ms ease, visibility 0s; }
.header.is-on-contact .header__actions .btn {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s 300ms;
}
.offer__title .text-accent { font-variant-numeric: tabular-nums; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 200ms ease, opacity 200ms ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 120px 96px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1000px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.14) 0%, rgba(249, 115, 22, 0) 65%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section--alt + .section--alt { border-top: 0; }
.section__head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section__lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 520px;
  margin-inline: auto;
}

.grid { display: grid; gap: 20px; margin-top: 56px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.card__text { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Abonnement : sélecteur d'engagement + carte ---------- */
.plans__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}
.plans__switch {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--gray-100);
}
.plans__option {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.plans__option { position: relative; z-index: 1; }
.plans__option:hover { color: var(--text); }
.plans__option:focus-visible { outline: none; box-shadow: var(--ring); }
.plans__option[aria-checked="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.06), 0 2px 6px rgba(24, 24, 27, 0.05);
}
/* Pastille blanche qui glisse d'une option à l'autre (placée en JS) */
.plans__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.06), 0 2px 6px rgba(24, 24, 27, 0.05);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.plans__switch.has-thumb .plans__option[aria-checked="true"] { background: transparent; box-shadow: none; }
/* Le billet : l'ombre est portée par l'enveloppe pour suivre les encoches */
.plans__ticket {
  position: relative;
  width: min(100%, 420px);
  filter: drop-shadow(0 1px 2px rgba(24, 24, 27, 0.06)) drop-shadow(0 12px 28px rgba(24, 24, 27, 0.09));
}
.plans__card {
  --plans-pad: 32px;
  position: relative;
  padding: var(--plans-pad);
  border-radius: 24px;
  background: var(--bg);
  /* Deux encoches rondes découpées au niveau des pointillés */
  -webkit-mask: radial-gradient(circle at 0 var(--tear-y, 45%), transparent 14px, #000 14.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--tear-y, 45%), transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 var(--tear-y, 45%), transparent 14px, #000 14.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--tear-y, 45%), transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
}
/* Morceaux du billet pendant la déchirure (copies posées par-dessus) */
.plans__card--piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  transform-origin: 0 100%;
}
.plans__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}
.plans__price {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plans__amount { display: inline-block; font-variant-numeric: tabular-nums; }
.plans__top { position: relative; }
/* Tampon de remise, posé en biais en haut à droite, au premier plan */
.plans__stamp {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 0;
  overflow: hidden;
  padding: 4px 10px;
  border: 2.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transform: rotate(-12deg);
  pointer-events: none;
}
/* Reflet qui traverse le tampon, comme sur les boutons */
.plans__stamp::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(-130%) skewX(-12deg);
  animation: btn-shine 4s ease-in-out 0.8s infinite;
}
.plans__stamp:empty { display: none; }
.plans__period {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.plans__note {
  min-height: 3em;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.plans__was {
  margin-left: 10px;
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}
.plans__was[hidden] { display: none; }
.plans__saving {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 600;
}
.plans__saving.is-empty { visibility: hidden; }
/* Ligne de découpe du billet : pointillés et deux encoches rondes sur les bords */
.plans__tear {
  margin: 24px calc(var(--plans-pad) * -1 + 22px) 22px;
  border-top: 2px dashed var(--border-strong);
}
.plans__features {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.plans__features li {
  display: flex;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.93rem;
}
.plans__features svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
}
.plans__setup {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-alt);
  font-size: 0.92rem;
  color: var(--text-soft);
}
.plans__setup b { font-family: var(--font-heading); font-size: 1.05rem; color: var(--text); }
.plans__fees {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}
@media (max-width: 640px) {
  .plans__switch { display: flex; width: 100%; }
  .plans__option { flex: 1 1 0; padding: 9px 6px; font-size: 0.85rem; }
  .plans__card { --plans-pad: 20px; padding-block: 26px; }
}

/* ---------- Offre temporaire : bandeau du haut + section avant le contact ---------- */
/* Le bandeau reste collé en haut ; le menu se cale juste dessous (hauteur mesurée en JS) */
.offer-bar {
  position: sticky;
  top: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 9px 24px;
  background: var(--orange-50);
  border-bottom: 1px solid var(--orange-100);
  color: var(--orange-800);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
  transition: background-color 200ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.offer-bar:hover { background: var(--orange-100); }
.offer-bar ~ .header {
  top: var(--offer-bar-h, 0px);
  transition: top 400ms cubic-bezier(0.22, 1, 0.36, 1), margin-bottom 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}
/* Sur la section de l'offre et le formulaire, le bandeau s'efface et le menu remonte */
.offer-bar.is-tucked {
  transform: translateY(-100%);
  visibility: hidden;
  transition: background-color 200ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 400ms;
}
.offer-bar.is-tucked ~ .header { top: 0; }
.offer-bar.is-ended .offer-pulse { animation: none; background: var(--gray-500); }
.offer-bar__text b { font-weight: 700; }
.offer-bar__sep { margin-inline: 8px; }
.offer-bar__time {
  font-family: var(--font-heading);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.offer-bar__cta { font-weight: 600; color: var(--accent-hover); }
.offer-bar .offer-pulse { margin: 0 0 0 -4px; }
.offer-bar .offer-pulse:first-child { margin: 0 -4px 0 0; }
.offer-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  animation: offer-pulse 1.6s ease-in-out infinite;
}
@keyframes offer-pulse { 50% { opacity: 0.25; } }

/* La section touche le contact (même fond) : un seul espace entre les deux */
.offer.section { padding-bottom: 0; border-bottom: 0; }
.offer__card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.offer__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.offer__text {
  max-width: 440px;
  color: var(--text-muted);
}
.offer__terms {
  max-width: 440px;
  margin: 8px 0 28px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
}
.offer__label {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.offer__timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.offer__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
}
.offer__num {
  display: flex;
  height: 1.15em;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--text);
}
/* Rouleaux : chaque chiffre est une bande verticale qui défile */
.offer__digit { display: block; height: 1.15em; overflow: hidden; }
.offer__reel {
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.offer__reel > span { display: block; height: 1.15em; text-align: center; }
.offer__unit-label { font-size: 0.78rem; color: var(--text-muted); }
.offer__places-head {
  display: flex;
  justify-content: space-between;
  margin: 28px 0 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.offer__places-head b { color: var(--text); font-weight: 600; }
.offer__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-100);
  overflow: hidden;
}
/* La barre se remplit quand la carte apparaît */
.offer__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-400), var(--accent));
  transition: width 1100ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}
.offer__card.is-visible .offer__bar-fill { width: var(--offer-taken, 0%); }
.offer__bar { position: relative; }
/* Traînée en pixels : le canvas remplace le remplissage quand l'animation est permise */
.offer__bar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.offer__bar.has-canvas .offer__bar-fill { visibility: hidden; }
.offer__left {
  margin-top: 8px;
  color: var(--accent-hover);
  font-size: 0.9rem;
}
.offer__left b { font-weight: 600; }
/* Offre terminée : encore visible quelques jours, en gris */
.offer.is-ended .offer__num { color: var(--gray-300); }
.offer.is-ended .offer__label,
.offer.is-ended .offer__left { color: var(--text-soft); font-weight: 500; }

@media (max-width: 900px) {
  .offer__card { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 24px; }
}
@media (max-width: 640px) {
  .offer-bar { padding: 8px 16px; font-size: 0.8rem; gap: 2px 12px; }
  .offer__card { padding: 26px 18px; border-radius: 20px; }
  .offer__timer { gap: 6px; }
  .offer__unit { padding: 10px 0 8px; border-radius: 12px; }
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: stretch;
  gap: 64px;
}
/* Seule la carte du formulaire s'étire à la hauteur de la colonne de gauche */
.contact__intro { align-self: start; }
.contact__intro .section__title { max-width: 440px; }
.contact__intro .section__lead {
  max-width: 420px;
  margin-inline: 0;
}

.contact__perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}
.contact__perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.contact__perk-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-50);
  box-shadow: inset 0 0 0 1px var(--orange-100);
  color: var(--accent-hover);
}
.contact__perk-icon svg { width: 12px; height: 12px; }

/* Cartes email et téléphone : alternatives au formulaire */
.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin-top: 46px;
}
.contact__mail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.contact__mail:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.contact__mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact__mail-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--text-soft);
}
.contact__mail-icon svg { width: 20px; height: 20px; }
.contact__mail-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.contact__mail-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.contact__mail-address {
  font-weight: 600;
  color: var(--text);
}
.contact__mail-arrow {
  color: var(--text-muted);
  transition: transform 200ms ease, color 200ms ease;
}
.contact__mail-arrow svg { display: block; width: 16px; height: 16px; }
.contact__mail:hover .contact__mail-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* Carte du formulaire */
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 88px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  text-align: left;
  box-shadow:
    0 1px 2px rgba(24, 24, 27, 0.04),
    0 12px 24px -12px rgba(24, 24, 27, 0.08),
    0 32px 64px -32px rgba(24, 24, 27, 0.14),
    0 40px 80px -48px rgba(249, 115, 22, 0.35);
}
/* Barre orange en haut : un rail clair (::before) et un remplissage selon l'étape (::after) */
.contact-form::before,
.contact-form::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 28px;
  border-top: 3px solid var(--orange-100);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  pointer-events: none;
}
.contact-form::after {
  border-top-color: var(--accent);
  clip-path: inset(0 calc((1 - var(--form-progress, 1)) * 100%) 0 0);
  transition: clip-path 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Indicateur d'étapes */
.form-steps { margin-bottom: 22px; }
.form-steps__list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-steps__item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.form-steps__item:last-child { flex: none; }
.form-steps__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  transition: color 300ms ease;
}
.form-steps__btn:disabled { opacity: 1; }
.form-steps__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-steps__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.form-steps__num > span { transition: opacity 200ms ease; }
.form-steps__num svg {
  position: absolute;
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 200ms ease, transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.form-steps__item.is-current .form-steps__btn { color: var(--text); }
.form-steps__item.is-current .form-steps__num {
  border-color: var(--accent-hover);
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px var(--orange-100);
}
.form-steps__item.is-done .form-steps__btn {
  color: var(--text-soft);
  cursor: pointer;
}
.form-steps__item.is-done .form-steps__num {
  border-color: var(--orange-100);
  background: var(--orange-50);
  color: var(--accent-hover);
}
.form-steps__item.is-done .form-steps__num > span { opacity: 0; }
.form-steps__item.is-done .form-steps__num svg { opacity: 1; transform: none; }
.form-steps__item.is-done .form-steps__btn:hover .form-steps__num { border-color: var(--orange-400); }
.form-steps__line {
  position: relative;
  flex: 1;
  min-width: 16px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--gray-150);
}
.form-steps__line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--orange-400), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.form-steps__item.is-done .form-steps__line::before { transform: scaleX(1); }

/* Étapes : sans JS elles s'empilent, en mode étapes une seule est affichée */
.form-panels { position: relative; }
.form-panels.is-resizing {
  overflow: hidden;
  transition: height 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.form-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-step[hidden] { display: none; }
.contact-form:not(.is-stepped) .form-step + .form-step { margin-top: 32px; }
/* float : la légende devient un enfant ordinaire, l'écart du flex s'applique */
.form-step__title {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.form-step.is-entering { animation: form-step-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.form-step.is-entering-back { animation: form-step-in-back 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes form-step-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes form-step-in-back {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

/* Champs */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > label,
.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.required-mark {
  color: var(--accent-hover);
}
.field__optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}
/* Pastille verte qui apparaît à côté du libellé quand le champ est valide */
.field > label::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0fdf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: inset 0 0 0 1px #bbf7d0;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 200ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.field.is-valid > label::after { opacity: 1; transform: none; }

.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-500);
  opacity: 1;
}
.field input:hover,
.field textarea:hover { border-color: var(--gray-300); }
.field textarea {
  min-height: 96px;
  max-height: 320px;
  resize: none;
  overflow-y: hidden;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.field input.is-invalid { border-color: #dc2626; }
.field input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.field-error {
  display: none;
  margin: 0;
  font-size: 0.85rem;
  color: #dc2626;
}
.field-error.is-visible {
  display: block;
  animation: field-error-in 200ms ease both;
}
.field.is-shaking { animation: field-shake 400ms ease; }

@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes field-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* Pastilles à cocher (fonctionnalités souhaitées) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.chip__box {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
  user-select: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 150ms ease;
}
.chip__check {
  width: 0;
  height: 14px;
  opacity: 0;
  transition: width 250ms cubic-bezier(0.2, 0.8, 0.2, 1), margin 250ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
}
.chip:hover .chip__box {
  border-color: var(--gray-300);
  background: var(--gray-50);
}
.chip:active .chip__box { transform: scale(0.97); }
.chip input:checked + .chip__box {
  border-color: var(--orange-400);
  background: var(--orange-50);
  color: #c2410c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.chip input:checked + .chip__box .chip__check {
  width: 14px;
  margin-right: 6px;
  opacity: 1;
}
.chip input:focus-visible + .chip__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.address-field {
  position: relative;
}
.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.address-suggestions.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.address-suggestions li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background-color 150ms ease;
  animation: suggestion-in 160ms ease;
}

@keyframes suggestion-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.address-suggestions li:hover,
.address-suggestions li.is-active {
  background: var(--orange-50);
  color: var(--accent-hover);
}

.phone-group {
  display: flex;
  gap: 10px;
}
.phone-group input {
  flex: 0 0 auto;
  min-width: 0;
  width: 15ch;
  text-align: left;
  /* Chiffres à largeur fixe : le numéro garde la même largeur quels que soient les
     chiffres saisis, sinon la bulle ne peut pas être ajustée au pixel près */
  font-variant-numeric: tabular-nums;
}
/* Le curseur démarre toujours à gauche, comme on écrit : le décalage qui centre
   visuellement les points (--phone-indent) est calculé en JS dans updatePhoneWidth,
   pour que le curseur tombe pile au début des points affichés. */
.phone-group input:placeholder-shown { text-indent: var(--phone-indent, 0); }

/* Sélecteur d'indicatif personnalisé */
.custom-select {
  position: relative;
  flex: 0 0 auto;
}
.custom-select__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  width: fit-content;
  white-space: nowrap;
  padding: 0 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.custom-select__toggle:hover { border-color: var(--gray-300); }
.custom-select__toggle:focus-visible,
.custom-select.is-open .custom-select__toggle {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.custom-select__caret {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 200ms ease;
}
.custom-select.is-open .custom-select__caret { transform: rotate(180deg); }

.custom-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
}
.custom-select__list[hidden] { display: none; }
.custom-select__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background-color 150ms ease;
}
.custom-select__flag {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}
.custom-select__flag svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}
.custom-select__list li:hover,
.custom-select__list li[aria-selected="true"] {
  background: var(--orange-50);
  color: var(--accent-hover);
}

/* Boutons de navigation entre les étapes : calés en bas de la carte, pour que
   le bas du formulaire s'aligne sur le bas de la colonne de gauche */
.form-panels { margin-bottom: 20px; }
.form-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.form-nav__back { margin-right: auto; }
.form-nav .btn--ghost {
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px 6px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.form-nav__back-icon {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}
.form-nav__back:hover .form-nav__back-icon { transform: translateX(-2px); }
.form-nav [hidden] { display: none; }
.form-send-error { margin: -6px 0 16px; }
.form-send-error a { font-weight: 500; text-decoration: underline; }
.form-nav__submit.is-loading { cursor: progress; opacity: 0.85; }
.form-nav__submit.is-loading .btn__arrow svg { animation: none; }

/* ---------- Footer ---------- */
.footer {
  padding-block: 64px 28px;
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.footer .logo { color: var(--text); }
.footer__tagline {
  max-width: 260px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
@media (min-width: 901px) {
  .footer__top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) max-content minmax(0, 0.8fr) max-content; }
  .footer__col--legal .footer__link { white-space: nowrap; }
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Survol : le mot se souligne de gauche à droite */
.footer__link {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 200ms ease;
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.65, 0, 0.25, 1);
}
.footer__link:hover { color: var(--text); }
/* Réseaux : icône devant le nom, le soulignement ne prend que le texte */
.footer__social { display: inline-flex; align-items: center; gap: 8px; }
.footer__social svg { width: 16px; height: 16px; flex: 0 0 auto; transition: color 200ms ease, transform 200ms ease; }
.footer__social::after { left: 24px; }
.footer__social:hover svg { color: var(--accent); transform: translateY(-1px); }
.footer__link:hover::after,
.footer__link:focus-visible::after { transform: scaleX(1); }
.footer__link:focus-visible,
.footer__top-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms ease;
}
.footer__top-link svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}
.footer__top-link:hover { color: var(--text); }
.footer__top-link:hover svg { transform: translateY(-2px); }

/* ---------- Page de remerciement ---------- */
.header__inner--simple { display: flex; justify-content: space-between; }
.header__inner--center { display: flex; justify-content: center; }
.footer__bottom--center { justify-content: center; text-align: center; }

.thanks-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.thanks {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding-block: 96px;
  text-align: center;
}
.thanks__inner {
  position: relative;
  max-width: 680px;
}
.thanks__badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 8px var(--orange-100), 0 16px 32px -12px rgba(249, 115, 22, 0.6);
  animation: thanks-pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.thanks__badge svg { width: 32px; height: 32px; }
/* La coche se trace une fois le rond apparu */
.thanks__check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: thanks-draw 450ms cubic-bezier(0.65, 0, 0.25, 1) 400ms forwards;
}
.thanks__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  animation: thanks-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 250ms both;
}
.thanks__offer {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid var(--orange-100);
  border-radius: 12px;
  background: var(--orange-50);
  color: var(--orange-800);
  font-size: 0.95rem;
  font-weight: 500;
  animation: thanks-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 320ms both;
}
.thanks__offer[hidden] { display: none; }
.thanks__lead {
  max-width: 540px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  animation: thanks-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 350ms both;
}

.thanks__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  animation: thanks-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms both;
}
.thanks__social {
  margin-top: 36px;
  animation: thanks-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms both;
}
.thanks__social-title {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.thanks__social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.thanks__social-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.thanks__social-list a:hover { border-color: var(--orange-400); color: var(--accent-hover); transform: translateY(-1px); }
.thanks__social-list svg { width: 18px; height: 18px; }
.thanks__contact {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
  animation: thanks-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 780ms both;
}
.thanks__contact a {
  font-weight: 500;
  color: var(--text);
}
.thanks__contact a:hover { color: var(--accent-hover); }
.thanks__contact span { margin-inline: 6px; }
.footer--compact { padding-block: 0 28px; }
.footer--compact .footer__bottom { margin-top: 0; }

/* ---------- Pages légales : texte brut, sans habillage ---------- */
.legal {
  max-width: 720px;
  margin-inline: auto;
  padding: 40px 24px 80px;
  color: var(--text-soft);
  font-size: 0.97rem;
}
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal__back { margin-bottom: 40px; font-size: 0.9rem; }
.legal h1 { color: var(--text); font-size: 1.9rem; font-weight: 600; line-height: 1.2; }
.legal__updated { margin-top: 6px; color: var(--text-muted); font-size: 0.88rem; }
.legal h1 + .legal__updated + p { margin-top: 28px; }
.legal__section { margin-top: 36px; }
.legal h2 { margin: 0 0 10px; color: var(--text); font-size: 1.12rem; font-weight: 600; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal__more { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.9rem; }

@keyframes thanks-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: none; }
}
@keyframes thanks-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes thanks-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .thanks { padding-block: 64px; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Listes en cascade : la liste reste en place, ses éléments arrivent l'un après l'autre */
.reveal--stagger,
.reveal--stagger.is-visible { opacity: 1; transform: none; }
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms ease, transform 450ms ease;
  transition-delay: calc(var(--stagger-index, 0) * 60ms);
}
.reveal--stagger.is-visible > * { opacity: 1; transform: none; }

/* Arrivée sur une section depuis un lien du menu */
.section-arrive > .container { animation: section-arrive 650ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes section-arrive {
  from { opacity: 0.35; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
main > section:focus { outline: none; }


/* ---------- Mode focus du formulaire ---------- */
.form-focus-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(24, 24, 27, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s 400ms;
}
.is-form-focus .form-focus-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease;
}
.is-form-focus .contact-form {
  z-index: 80;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 40px 80px -24px rgba(24, 24, 27, 0.45);
}
.form-focus-quit {
  display: none;
  margin-right: auto;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--gray-500);
  transition: color 200ms ease;
  font-size: 0.85rem;
  font-weight: 500;
}
.form-focus-quit svg { width: 13px; height: 13px; }
.form-focus-quit:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.is-form-focus .form-focus-quit { display: inline-flex; }
/* Avec « Retour » affiché, c'est lui qui pousse les boutons à droite */
.form-focus-quit:has(+ .form-nav__back:not([hidden])) { margin-right: 6px; }

/* Mobile : le formulaire occupe tout l'écran, comme une application */
.is-form-fullscreen body { overflow: hidden; }
.is-form-fullscreen .form-focus-backdrop { display: none; }
.is-form-fullscreen .contact-form {
  position: fixed;
  inset: 0;
  z-index: 90;
  margin: 0;
  padding: calc(32px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: none;
  transform: none;
  animation: form-fullscreen-in 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.is-form-fullscreen .contact-form::before,
.is-form-fullscreen .contact-form::after { top: env(safe-area-inset-top, 0px); }
@keyframes form-fullscreen-in { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }

  /* Une seule colonne : l'intro se défait pour que l'email et le téléphone
     passent sous le formulaire */
  .contact__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 620px;
  }
  .contact__intro { display: contents; }
  .contact-form { order: 1; margin-top: 40px; }
  .contact__channels { order: 2; max-width: none; margin-top: 24px; }

  .footer__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .header__inner { display: flex; justify-content: space-between; }
  .nav, .header__actions { display: none; }
  .burger { display: flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .nav.is-open .nav__link { padding: 12px 14px; }
  .nav.is-open .nav__roll { flex: 1; }

  .hero { padding-block: 88px 72px; }
  .section { padding-block: 72px; }
  .grid--3 { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; border-radius: 20px; }
}

@media (max-width: 640px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  /* Indicateur d'étapes compact : seul le libellé de l'étape en cours reste affiché */
  .form-steps__item:not(.is-current) .form-steps__label { display: none; }
}
