/* ==========================================================================
   MUCAMAADD — style.css
   Tailwind (CDN) gère le layout ; ce fichier gère l'identité : palette,
   typographie, animations, hero, composants distinctifs.
   Niveau d'animation : MODERNE (niveau 2) — tout est désactivé si
   prefers-reduced-motion est actif.
   Palette extraite du prospectus : rouge #D1232A, vert #43AE4C / #0B8F41,
   bleu #0071B8 (famille du logo), brun #5A3412 (parapluie du logo).
   ========================================================================== */

/* ---------- 1. Variables ---------- */
@property --mesh-shift {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --color-red: #d1232a;
  --color-red-deep: #b91c23;
  --color-green: #43ae4c;
  --color-green-deep: #0a7a37;
  --color-blue: #0071b8;
  --color-brown: #5a3412;
  --color-ink: #1b2a22;

  --bg: #fbf9f4;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --text: #1b2a22;
  --muted: #4d5c54;
  --line: #e4e0d6;
  --glass: rgb(255 255 255 / 0.72);
  --accent-text: #b91c23; /* rouge lisible sur fond clair (AA) */
  --green-text: #0a7a37; /* vert lisible sur fond clair (AA) */
  --shadow: 0 1px 2px rgb(27 42 34 / 0.06), 0 12px 32px -12px rgb(27 42 34 / 0.18);

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;

  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --header-h: 4.5rem;

  /* teintes dérivées (OKLCH) — repli hex défini avant */
  --red-tint: #fbe7e8;
  --green-tint: #e4f4e6;
  --blue-tint: #e1eff8;
}
@supports (color: color-mix(in oklch, red, white)) {
  :root {
    --red-tint: color-mix(in oklch, var(--color-red) 12%, var(--surface));
    --green-tint: color-mix(in oklch, var(--color-green) 16%, var(--surface));
    --blue-tint: color-mix(in oklch, var(--color-blue) 12%, var(--surface));
  }
}

/* Thème sombre automatique selon l'OS */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1511;
    --surface: #16201a;
    --surface-2: #1d2922;
    --text: #eef3ef;
    --muted: #a9b8af;
    --line: #2a3830;
    --glass: rgb(22 32 26 / 0.7);
    --accent-text: #ff8a8e;
    --green-text: #5fd07a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --red-tint: #3a1a1c;
    --green-tint: #17301f;
    --blue-tint: #14283a;
  }
  @supports (color: color-mix(in oklch, red, white)) {
    :root {
      --red-tint: color-mix(in oklch, var(--color-red) 22%, var(--surface));
      --green-tint: color-mix(in oklch, var(--color-green) 22%, var(--surface));
      --blue-tint: color-mix(in oklch, var(--color-blue) 24%, var(--surface));
    }
  }
}

/* Transitions entre pages (navigateurs compatibles, sinon ignoré) */
@view-transition {
  navigation: auto;
}

/* ---------- 2. Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--text);
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--color-green);
  color: #0b1a10;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3000;
  background: var(--color-ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.75rem;
}

.h-xl {
  font-size: clamp(2.6rem, 7.2vw + 0.5rem, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
}
.h-lg {
  font-size: clamp(2rem, 3.6vw + 0.8rem, 3.6rem);
  font-weight: 600;
}
.h-md {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.8rem);
  font-weight: 600;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 3px;
  border-radius: 3px;
  background: var(--color-red);
}
.lead {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  color: var(--muted);
  max-width: 60ch;
}
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.container-x {
  width: min(100% - 2.5rem, 80rem);
  margin-inline: auto;
}

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-red {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(209 35 42 / 0.7);
}
.btn-red:hover {
  background: var(--color-red-deep);
}
.btn-green {
  background: var(--color-green-deep);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(10 122 55 / 0.7);
}
.btn-green:hover {
  background: #086a30;
}
.btn-ghost {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-white {
  background: #fff;
  color: #8f151b;
}
.btn-block {
  width: 100%;
}
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- 4. Header glassmorphism + progression ---------- */
.preview-bar {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.is-stuck {
  box-shadow: var(--shadow);
}
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-red), var(--color-green));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progress {
    to {
      transform: scaleX(1);
    }
  }
}
.brand {
  text-decoration: none;
}
.brand img {
  border-radius: 50%;
  background: #fff;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover {
  background: var(--surface-2);
}
.main-nav a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 600;
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 1.2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--color-red);
  transform: translateX(-50%);
}

.burger {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Menu mobile : slide-in CSS */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 24rem);
  z-index: 1100;
  background: var(--surface);
  box-shadow: -20px 0 60px -20px rgb(0 0 0 / 0.4);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  will-change: transform;
}
.mobile-menu.is-open {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.mobile-menu a.nav-m {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.nav-m[aria-current="page"] {
  color: var(--accent-text);
}
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgb(10 20 14 / 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0s linear 0.35s;
}
.menu-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ---------- 5. HERO — gradient mesh + typographie cinétique + chevrons ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 12% 18%, rgb(67 174 76 / 0.38), transparent 70%),
    radial-gradient(34% 44% at 88% 12%, rgb(209 35 42 / 0.26), transparent 70%),
    radial-gradient(44% 52% at 72% 92%, rgb(0 113 184 / 0.2), transparent 70%),
    radial-gradient(30% 40% at 30% 95%, rgb(90 52 18 / 0.12), transparent 70%);
  filter: blur(24px);
  animation: mesh 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mesh {
  to {
    transform: translate3d(3%, -2%, 0) rotate(7deg) scale(1.1);
  }
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: word-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 150ms);
  will-change: transform;
}
@keyframes word-in {
  to {
    transform: none;
  }
}
.hero-title .accent {
  color: var(--color-red);
  font-style: italic;
  font-weight: 500;
}
.hero-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 1ms + 700ms);
}
@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Cadre photo signature : encoche en V + bandes rouges (identité du prospectus) */
.chevron-frame {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 400 / 540;
  margin-inline: auto;
  margin-top: 3.2rem;
}
.chevron-frame .photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 13.5%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 1.5rem 1.5rem;
  background: var(--surface-2);
}
.chevron-frame .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  will-change: transform;
}
.chevron-frame .stripes {
  position: absolute;
  left: 0;
  top: -3.2rem;
  width: 100%;
  height: calc(13.5% + 3.2rem);
  overflow: visible;
}
.glass-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgb(255 255 255 / 0.35);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
}
.price-chip {
  position: absolute;
  left: -0.5rem;
  bottom: 2rem;
  padding: 0.9rem 1.2rem;
  max-width: 15rem;
  z-index: 2;
}
.price-chip .big {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-text);
}
.price-chip small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}
.slogan-chip {
  position: absolute;
  right: -0.5rem;
  top: 24%;
  z-index: 2;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.slogan-chip i {
  color: var(--green-text);
}

@supports (animation-timeline: scroll()) {
  .chevron-frame .photo img {
    animation: parallax linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 80vh;
  }
  @keyframes parallax {
    to {
      transform: translate3d(0, 6%, 0) scale(1.08);
    }
  }
}

/* ---------- 6. Bandeau défilant ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: 0.9rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  white-space: nowrap;
}
.marquee-track i {
  color: var(--color-red);
  font-size: 1rem;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 7. Bento grid ---------- */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bento .b {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 2rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}
.bento .b-big {
  grid-column: span 2;
  background: linear-gradient(145deg, var(--color-red), #9c141a);
  color: #fff;
  border: 0;
}
.bento .b-big .num,
.bento .b-big p {
  color: #fff;
}
.bento .b-green {
  background: linear-gradient(145deg, var(--color-green-deep), #075a28);
  color: #fff;
  border: 0;
}
.bento .b-green .num,
.bento .b-green p {
  color: #fff;
}
.bento .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 12cqi, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-text);
  display: block;
}
.bento .b-big .num {
  font-size: clamp(3.4rem, 22cqi, 7rem);
}
.bento p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}
.bento .b-deco {
  position: absolute;
  right: -1.2rem;
  bottom: -1.5rem;
  font-size: 7rem;
  opacity: 0.14;
  pointer-events: none;
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "big big a b"
      "big big c c";
  }
  .bento .b-big {
    grid-area: big;
  }
  .bento .b-a {
    grid-area: a;
  }
  .bento .b-b {
    grid-area: b;
  }
  .bento .b-c {
    grid-area: c;
  }
}

/* ---------- 8. Sélecteur de formules (scroll-snap natif) ---------- */
.persona {
  display: inline-flex;
  padding: 0.3rem;
  gap: 0.25rem;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.persona button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.persona button[aria-checked="true"] {
  background: var(--color-ink);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .persona button[aria-checked="true"] {
    background: var(--color-green-deep);
  }
}
.plans {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84vw, 21rem);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.25rem 0.25rem 1.75rem;
  margin-inline: -0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-green) transparent;
}
.plan {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s;
  will-change: transform;
}
.plan:hover {
  transform: translateY(-6px);
  border-color: var(--color-green);
}
.plan-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.plan-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.plan-name span {
  color: var(--accent-text);
}
.tier-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.4rem;
}
.tier-bars i {
  width: 5px;
  border-radius: 2px;
  background: var(--line);
  height: calc(var(--h) * 1%);
}
.tier-bars i.on {
  background: linear-gradient(var(--color-green), var(--color-green-deep));
}
.plan-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--color-blue);
}
@media (prefers-color-scheme: dark) {
  .plan-tag {
    color: #6cbcf0;
  }
}
.plan-price {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-text);
}
.plan-price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.plan-sub {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.3em;
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.98rem;
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}
.plan-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.plan-list i {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
}
.plan-list .yes i {
  color: var(--green-text);
}
.plan-list .no {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
}
.plan-list .no i {
  color: var(--accent-text);
}
.plan .btn {
  margin-top: auto;
}
.plan.is-unavailable .plan-price {
  font-size: 1.3rem;
  color: var(--muted);
}

/* ---------- 9. Cartes prestations (glassmorphism ciblé) ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.3s ease, border-color 0.3s;
  will-change: transform;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: var(--color-red);
}
.feature .ico {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--green-tint);
  color: var(--green-text);
}
.feature:nth-child(3n + 2) .ico {
  background: var(--red-tint);
  color: var(--accent-text);
}
.feature:nth-child(3n) .ico {
  background: var(--blue-tint);
  color: var(--color-blue);
}
@media (prefers-color-scheme: dark) {
  .feature:nth-child(3n) .ico {
    color: #6cbcf0;
  }
}
.feature h3 {
  font-size: 1.35rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.feature .meta {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-text);
}

.panel-split {
  background: linear-gradient(135deg, #14231b, #0c1511);
  color: #eef3ef;
  border-radius: calc(var(--radius) * 1.6);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.panel-split h2,
.panel-split h3 {
  color: #fff;
}
.panel-split .lead {
  color: #b9c8bf;
}
.panel-split::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(209 35 42 / 0.55), transparent);
  filter: blur(30px);
}
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.check-list i {
  margin-top: 0.35rem;
  color: var(--color-green);
}

/* Étapes */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.2rem;
}
.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.3rem;
  top: 1.2rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--color-red);
  color: #fff;
}
.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.step p {
  color: var(--muted);
}
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- 10. Tableau comparatif ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cmp {
  width: 100%;
  min-width: 62rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
.cmp th,
.cmp td {
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cmp thead th {
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  position: sticky;
  top: 0;
}
.cmp tbody th {
  text-align: left;
  font-weight: 600;
  position: sticky;
  left: 0;
  background: var(--surface-2);
  min-width: 12rem;
  z-index: 1;
}
.cmp thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
}
.cmp .group th {
  background: var(--red-tint);
  color: var(--accent-text);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cmp .yes {
  color: var(--green-text);
  font-weight: 700;
}
.cmp .no {
  color: var(--muted);
}
.cmp .total td {
  background: var(--green-tint);
  font-weight: 700;
}
.cmp .total th {
  background: var(--green-tint);
}

/* ---------- 11. FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.3rem;
  transition: border-color 0.2s;
}
.faq details + details {
  margin-top: 0.8rem;
}
.faq details[open] {
  border-color: var(--color-green);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--accent-text);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 1.2rem;
  color: var(--muted);
}

/* ---------- 12. CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: calc(var(--radius) * 1.6);
  color: #fff;
  background: linear-gradient(120deg, var(--color-red-deep), #7c1015 60%, #3d0a0d);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140%;
  height: 2.2rem;
  left: -20%;
  background: rgb(255 255 255 / 0.1);
  transform: rotate(-14deg);
}
.cta-band::before {
  top: 18%;
}
.cta-band::after {
  top: 30%;
  height: 0.7rem;
  background: rgb(67 174 76 / 0.55);
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: #ffe3e4;
}

/* ---------- 13. Formulaire (floating labels) ---------- */
.field {
  position: relative;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem 0.6rem;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field label {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.2s ease, color 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgb(0 113 184 / 0.18);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.7rem) scale(0.78);
  color: var(--color-blue);
}
@media (prefers-color-scheme: dark) {
  .field input:focus + label,
  .field textarea:focus + label,
  .field input:not(:placeholder-shown) + label,
  .field textarea:not(:placeholder-shown) + label {
    color: #6cbcf0;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-weight: 500;
  display: none;
}
.form-status.ok {
  display: block;
  background: var(--green-tint);
  color: var(--green-text);
  border: 1px solid var(--color-green);
}
.form-status.err {
  display: block;
  background: var(--red-tint);
  color: var(--accent-text);
  border: 1px solid var(--color-red);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-card .ico {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-tint);
  color: var(--accent-text);
  font-size: 1.2rem;
}
.contact-card a {
  text-decoration: none;
  font-weight: 600;
}
.contact-card a:hover {
  text-decoration: underline;
}
.map-frame {
  border: 0;
  width: 100%;
  min-height: 22rem;
  border-radius: var(--radius);
  filter: saturate(0.9);
}

/* ---------- 14. Pages légales ---------- */
.prose-legal {
  max-width: 48rem;
}
.prose-legal h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 0.7rem;
}
.prose-legal p,
.prose-legal li {
  color: var(--muted);
}
.prose-legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.prose-legal a {
  color: var(--accent-text);
}
.todo {
  background: #fff3b0;
  color: #5b4a00;
  padding: 0 0.3em;
  border-radius: 4px;
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: #0d1712;
  color: #cbd8d0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-red) 0 33%, #fff 33% 36%, var(--color-green) 36% 100%);
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa397;
  margin-bottom: 1rem;
  font-weight: 600;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-bottom {
  border-top: 1px solid #22322a;
  color: #9db0a4;
  font-size: 0.9rem;
}
.flag {
  display: inline-block;
  width: 1.6rem;
  height: 1.1rem;
  border-radius: 3px;
  vertical-align: -0.15rem;
  margin-right: 0.4rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2);
}

/* ---------- 16. Boutons flottants + bulle WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2147483647;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 2rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px rgb(18 140 70 / 0.8);
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.wa-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}
.to-top {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2147482000;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--color-ink);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (prefers-color-scheme: dark) {
  .to-top {
    background: var(--color-green-deep);
  }
}
.wa-popup {
  position: fixed;
  right: 1.25rem;
  bottom: 6rem;
  z-index: 2147483000; /* inférieur au bouton flottant */
  width: min(92vw, 21rem);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -16px rgb(0 0 0 / 0.45);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s;
}
.wa-popup.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.wa-popup header {
  background: #075e54;
  color: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wa-popup header img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
}
.wa-popup header button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
}
.wa-popup .bubble {
  margin: 1rem;
  padding: 0.8rem 1rem;
  background: var(--green-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  font-size: 0.96rem;
}
.wa-popup .choices {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
.wa-popup .choices a {
  text-decoration: none;
  border: 1.5px solid #128c7e;
  color: var(--green-text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.2s, color 0.2s;
}
.wa-popup .choices a:hover {
  background: #128c7e;
  color: #fff;
}

/* ---------- 17. Révélation au scroll (JS + animation-timeline) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: transform, opacity;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@supports (animation-timeline: view()) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: reveal-view linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes reveal-view {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
/* Stagger natif quand sibling-index() existe ; sinon --i posé dans le HTML */
@supports (width: calc(sibling-index() * 1px)) {
  .stagger > .reveal {
    transition-delay: calc(sibling-index() * 70ms);
  }
}

/* ---------- 18. Page 404 ---------- */
.nf-umbrella {
  width: min(70vw, 20rem);
  height: auto;
  animation: sway 5s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes sway {
  from {
    transform: rotate(-4deg);
  }
  to {
    transform: rotate(4deg);
  }
}

/* ---------- 19. Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-title .word,
  .hero-fade {
    transform: none !important;
    opacity: 1 !important;
  }
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    row-gap: 0.5rem;
  }
  .marquee-track [aria-hidden="true"] {
    display: none;
  }
  .progress {
    transform: scaleX(0) !important;
  }
  @view-transition {
    navigation: none;
  }
}
