/* PRISME — design system & pages (multi-pages) */
:root {
  /* Point de rupture : formulaires désactivés en dessous (téléphone) */
  --form-min-width: 768px;
  --bg: #fdfcfa;
  --bg-alt: #f0ebe3;
  --bg-elevated: #faf7f1;
  --bg-wash-top: #fffefb;
  --bg-wash-mid: #f6f1e9;
  --bg-wash-deep: #ebe4d8;
  --bg-dark: #0a0a0f;
  --line: rgba(10, 10, 15, 0.08);
  --text: #0a0a0a;
  --text-on-dark: #ffffff;
  --muted: #5c5c5c;
  --muted-on-dark: rgba(255, 255, 255, 0.68);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 14px 44px rgba(10, 10, 15, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 10, 15, 0.12);
  --header-h: 76px;
  /* iPhone / encoches : hauteur barre = --header-h + marge sûre */
  --header-safe-t: env(safe-area-inset-top, 0px);
  --header-total: calc(var(--header-h) + var(--header-safe-t));
  /* Empilement : jamais sous le contenu de page */
  --z-menu-backdrop: 10020;
  --z-header: 10050;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient: linear-gradient(118deg, #ff3d6d 0%, #7b5cff 52%, #00e5ff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 61, 109, 0.1), rgba(123, 92, 255, 0.1), rgba(0, 229, 255, 0.08));
  --ring: 0 0 0 3px rgba(123, 92, 255, 0.25);
  /* Atmosphère — fonds premium (blobs / grain) */
  --surface-light: #f7f5f1;
  --surface-alt: #f1ede6;
  --blob-blur: 88px;
  --blob-blur-hero: 100px;
  --grain-opacity: 0.12;
  --prisme-wash-opacity: 0.78;
}

@view-transition {
  navigation: auto;
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Empêche le « décalage » horizontal quand des enfants dépassent (100vw, halos, etc.) */
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--surface-light);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background-color: var(--surface-light);
  background-image: radial-gradient(120% 72% at 50% -18%, rgba(255, 254, 250, 0.98), transparent 54%),
    radial-gradient(90% 58% at 0% 42%, rgba(123, 92, 255, 0.055), transparent 56%),
    radial-gradient(88% 52% at 100% 58%, rgba(255, 61, 109, 0.045), transparent 54%),
    radial-gradient(70% 45% at 40% 100%, rgba(0, 229, 255, 0.04), transparent 50%),
    linear-gradient(180deg, var(--bg-wash-top) 0%, var(--bg) 26%, var(--surface-light) 58%, #ebe4d8 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Grain + signature « prisme » (global, très discret) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: radial-gradient(rgba(35, 32, 28, 0.09) 0.55px, transparent 0.65px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--prisme-wash-opacity);
  background: linear-gradient(
    118deg,
    rgba(255, 61, 109, 0.055) 0%,
    transparent 34%,
    rgba(201, 169, 97, 0.04) 44%,
    transparent 52%,
    rgba(123, 92, 255, 0.06) 64%,
    transparent 76%,
    rgba(0, 229, 255, 0.05) 100%
  );
}

main {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.036em;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.28;
}

.accent-serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 10px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container {
    width: min(1140px, 100% - clamp(1rem, 4.5vw, 1.35rem));
  }

  .section {
    padding: clamp(2.45rem, 6.5vw, 3.75rem) 0;
  }

  .hero-home {
    padding: clamp(1.5rem, 5.5vw, 2.75rem) 0;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8.2vw, 3.3rem);
  }
}

.section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section:not(.section--dark) {
  background: radial-gradient(95% 50% at 50% 0%, rgba(255, 255, 255, 0.78), transparent 58%),
    radial-gradient(72% 44% at 0% 85%, rgba(0, 229, 255, 0.045), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 26%),
    linear-gradient(188deg, #fefdfb 0%, var(--surface-light) 52%, #ebe6de 100%);
}

.section--tight {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section--alt:not(.section--dark) {
  background: radial-gradient(100% 56% at 10% 0%, rgba(255, 255, 255, 0.58), transparent 52%),
    radial-gradient(78% 52% at 96% 100%, rgba(123, 92, 255, 0.06), transparent 48%),
    radial-gradient(62% 42% at 6% 100%, rgba(201, 169, 97, 0.07), transparent 46%),
    linear-gradient(170deg, #f0e9e0 0%, var(--surface-alt) 42%, #e4dcd0 100%);
}

.section.section--solution:not(.section--dark) {
  background: radial-gradient(72% 48% at 16% 8%, rgba(255, 61, 109, 0.08), transparent 52%),
    radial-gradient(68% 46% at 90% 90%, rgba(123, 92, 255, 0.08), transparent 52%),
    radial-gradient(50% 36% at 50% 100%, rgba(0, 229, 255, 0.05), transparent 48%),
    linear-gradient(198deg, #faf7f1 0%, #ebe3d8 100%);
}

.section.section--styles-teaser:not(.section--dark) {
  background: radial-gradient(78% 46% at 50% 0%, rgba(255, 255, 255, 0.7), transparent 56%),
    radial-gradient(58% 40% at 100% 28%, rgba(0, 229, 255, 0.06), transparent 48%),
    radial-gradient(52% 38% at 0% 70%, rgba(123, 92, 255, 0.055), transparent 46%),
    linear-gradient(190deg, #fdfcfa 0%, #ede6dc 100%);
}

/* Surfaces réutilisables (rythme / pages intérieures) */
.bg-light {
  background: radial-gradient(92% 48% at 50% 0%, rgba(255, 255, 255, 0.75), transparent 56%),
    linear-gradient(185deg, #fefdfb 0%, var(--surface-light) 58%, #e8e2d8 100%) !important;
}

.bg-alt {
  background: radial-gradient(96% 52% at 12% 0%, rgba(255, 255, 255, 0.5), transparent 50%),
    linear-gradient(172deg, #f2ebe3 0%, var(--surface-alt) 100%) !important;
}

.bg-soft {
  background: radial-gradient(85% 44% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 52%),
    linear-gradient(182deg, #fdfcfa 0%, #f3ede4 70%, #ebe4da 100%) !important;
}

.bg-gradient {
  background: radial-gradient(75% 48% at 82% 12%, rgba(123, 92, 255, 0.09), transparent 46%),
    radial-gradient(60% 42% at 8% 88%, rgba(255, 61, 109, 0.07), transparent 48%),
    radial-gradient(55% 36% at 50% 100%, rgba(0, 229, 255, 0.055), transparent 46%),
    linear-gradient(198deg, #faf7f2 0%, #e8e0d5 100%) !important;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-on-dark);
}

.section-head {
  max-width: 52rem;
}

.section-head h2 {
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.07;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0.75rem 0 0;
}

.section--dark .section-head p {
  color: var(--muted-on-dark);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.section--dark .kicker {
  color: rgba(255, 255, 255, 0.55);
}

/* Kicker pastille (heros & sections) */
.kicker--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem 0.4rem;
  margin-bottom: 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 22px rgba(10, 10, 15, 0.05);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
}

.kicker--pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gradient);
  background-size: 160% 160%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  /* Au-dessus de tout le contenu (y compris halos / canvas) : le burger reste cliquable */
  display: flex;
  align-items: center;
  padding-top: var(--header-safe-t);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(253, 252, 250, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(10, 10, 15, 0.72);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--text);
}

.header-cta {
  display: none;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(118deg, #ff3d6d, #7b5cff);
  background-size: 200% 200%;
  box-shadow: 0 10px 28px rgba(123, 92, 255, 0.22);
  transition: transform 0.25s var(--ease), background-position 0.55s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  background-position: 100% 50%;
}

.burger {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(10, 10, 15, 0.06);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  touch-action: manipulation;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu-backdrop);
  /* Sous le header : la barre (logo, burger) reste au-dessus du rideau + du tiroir */
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-panel.is-open {
  pointer-events: auto;
}

.mobile-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.4);
  opacity: 0;
  transition: opacity 0.35s;
}

.mobile-panel.is-open .mobile-panel-backdrop {
  opacity: 1;
}

.mobile-panel-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 90vw);
  max-width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  box-shadow: -20px 0 56px rgba(10, 10, 15, 0.16);
  padding: calc(var(--header-total) + 0.5rem) 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px)) 1.5rem;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
}

.mobile-panel.is-open .mobile-panel-drawer {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav a {
  font-weight: 650;
  font-size: 1.05rem;
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .header-cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

/* Tablette + desktop : vraie barre de liens. En dessous : hamburger (écran < 800px) */
@media (min-width: 800px) {
  .nav-desktop,
  .header-cta {
    display: flex;
  }

  .burger {
    display: none;
  }
}

/* Milieu d’écran (tablette paysage, petit laptop) : ne pas manger le CTA */
@media (min-width: 800px) and (max-width: 1100px) {
  .header-inner {
    position: relative;
  }

  .nav-desktop {
    position: static;
    transform: none;
    max-width: min(52vw, 420px);
    margin-inline: auto;
    gap: clamp(0.4rem, 1.1vw, 0.9rem);
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.2rem;
  }

  .nav-link {
    font-size: 0.84rem;
  }

  .header-cta {
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* Mobile (hamburger) : marges + barre légèrement teintée pour le bouton ne se confond pas au hero */
@media (max-width: 799.98px) {
  .header-inner {
    width: min(1200px, 100% - clamp(1rem, 4.5vw, 1.35rem));
  }

  .logo {
    min-width: 0;
  }

  .site-header {
    background: rgba(253, 252, 250, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line);
  }
}

/* Main offset for fixed header */
main {
  padding-top: var(--header-total);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-position 0.55s ease, border-color 0.25s, background 0.25s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(118deg, #ff3d6d, #7b5cff, #00e5ff);
  background-size: 200% 200%;
  box-shadow: 0 14px 34px rgba(123, 92, 255, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
}

.btn-secondary {
  color: var(--text);
  background: var(--bg);
  border-color: var(--line);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 92, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.section--dark .btn-ghost {
  color: #fff;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-teaser {
  color: rgba(10, 10, 15, 0.9);
  font-weight: 700;
  border: 1.5px solid transparent;
  background-image: linear-gradient(#fff, #faf9fc), linear-gradient(118deg, #ff3d6d, #7b5cff, #00e5ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 200% 200%;
  box-shadow: 0 2px 14px rgba(123, 92, 255, 0.12);
}

.btn-teaser:hover {
  color: #fff;
  background-image: linear-gradient(118deg, #ff3d6d, #7b5cff, #00e5ff);
  background-clip: border-box;
  background-size: 200% 200%;
  box-shadow: 0 8px 26px rgba(123, 92, 255, 0.32);
  transform: translateY(-2px);
}

.btn-teaser:focus-visible {
  box-shadow: var(--ring), 0 4px 20px rgba(123, 92, 255, 0.2);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Page hero (inner pages) — overflow visible : évite coupure nette des halos sur les bords */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3.25rem);
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: radial-gradient(100% 70% at 50% -25%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(185deg, var(--bg-wash-top) 0%, var(--surface-light) 55%, #e8e1d6 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: -28%;
  height: min(620px, 78vh);
  background:
    radial-gradient(
      ellipse min(80vw, 920px) 58% at 28% 38%,
      rgba(255, 61, 109, 0.16),
      rgba(255, 61, 109, 0.04) 45%,
      transparent 72%
    ),
    radial-gradient(
      ellipse min(72vw, 800px) 52% at 72% 32%,
      rgba(123, 92, 255, 0.14),
      rgba(123, 92, 255, 0.04) 48%,
      transparent 70%
    ),
    radial-gradient(
      ellipse min(64vw, 720px) 50% at 52% 72%,
      rgba(0, 229, 255, 0.1),
      transparent 68%
    );
  filter: blur(var(--blob-blur));
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 96vw);
  height: min(420px, 52vh);
  bottom: -22%;
  background: radial-gradient(
      circle at 42% 42%,
      rgba(123, 92, 255, 0.22),
      rgba(123, 92, 255, 0.06) 52%,
      transparent 74%
    ),
    radial-gradient(circle at 78% 58%, rgba(255, 61, 109, 0.08), transparent 62%);
  filter: blur(88px);
  opacity: 0.44;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: min(32ch, 100%);
}

.page-hero p.lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1rem 0 0;
}

/* Templates : pas de gros halos mauve/cyan « barres » en bord d’écran (blobs + lavis global) */
.page-hero--no-blob::before,
.page-hero--no-blob::after {
  display: none;
}

body[data-page="templates"]::after {
  opacity: 0;
}

/* Heros pages internes (contact, tarifs, templates) */
.page-hero--inner {
  padding: clamp(2.85rem, 7vw, 4.5rem) 0 clamp(2.35rem, 5vw, 3.5rem);
}

.page-hero--inner .display-title {
  margin: 0;
  max-width: min(22rem, 100%);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.05rem, 4.8vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.page-hero--inner .display-title__line {
  display: block;
}

.page-hero--inner .display-title__accent {
  display: block;
  margin-top: 0.12em;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.94em;
  letter-spacing: -0.02em;
  line-height: 1.08;
  background: var(--gradient);
  background-size: 160% 160%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero--inner .display-title__accent--inline {
  display: inline;
  margin-top: 0;
  font-size: 1em;
  white-space: normal;
}

.page-hero--inner .display-title__inline {
  font-weight: 800;
}

.section-head--templates-next h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

.page-hero--inner .lead {
  margin-top: 1.15rem;
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

/* Page « Comment ça marche » : hero titre plus travaillé */
.page-hero--process {
  padding: clamp(3rem, 8vw, 5.25rem) 0 clamp(2.75rem, 5.5vw, 4rem);
}

.page-hero--process .page-hero__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3.5vw, 2.25rem);
  align-items: start;
}

.page-hero__rail {
  width: 5px;
  min-height: clamp(5.5rem, 12vw, 8.5rem);
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--gradient);
  background-size: 180% 180%;
  box-shadow:
    0 0 24px rgba(123, 92, 255, 0.22),
    0 0 14px rgba(255, 61, 109, 0.12);
}

.page-hero__copy {
  min-width: 0;
}

.page-hero--process h1.page-hero__title {
  margin: 0;
  max-width: min(22ch, 100%);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.35rem, 5.8vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  color: var(--text);
}

.page-hero__title-line {
  display: block;
}

.page-hero__title-line--accent {
  margin-top: 0.06em;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92em;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: var(--gradient);
  background-size: 160% 160%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero--process .lead--process {
  position: relative;
  margin-top: 1.35rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.68;
  padding-left: 1.2rem;
}

.page-hero--process .lead--process::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 61, 109, 0.75), rgba(123, 92, 255, 0.75), rgba(0, 229, 255, 0.7));
  opacity: 0.5;
}

@media (max-width: 540px) {
  .page-hero--process .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__rail {
    display: none;
  }

  .page-hero--process .lead--process {
    padding-left: 0;
  }

  .page-hero--process .lead--process::before {
    display: none;
  }
}

/* Home hero */
.hero-home {
  min-height: calc(100dvh - var(--header-total));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  /* Halos du prisme : ne pas clipper (le body limite déjà le scroll horizontal) */
  overflow: visible;
  isolation: isolate;
  background: radial-gradient(110% 65% at 50% -15%, rgba(255, 255, 255, 0.92), transparent 58%),
    radial-gradient(90% 50% at 0% 50%, rgba(255, 61, 109, 0.06), transparent 50%),
    linear-gradient(195deg, #fffefb 0%, #faf6ef 38%, var(--surface-light) 72%, #e6dfd4 100%);
}

.hero-home::before {
  content: "";
  position: absolute;
  /* Largeur liée au viewport : évite un “cadre” ~560px sur grands écrans */
  width: min(1200px, 96vw);
  height: min(520px, 56vh);
  right: max(-12rem, -18vw);
  top: 4%;
  background: radial-gradient(
    circle at 45% 45%,
    rgba(123, 92, 255, 0.38),
    rgba(123, 92, 255, 0.12) 42%,
    transparent 72%
  );
  filter: blur(var(--blob-blur-hero));
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-home::after {
  content: "";
  position: absolute;
  width: min(1100px, 94vw);
  height: min(480px, 52vh);
  left: max(-12rem, -18vw);
  bottom: -4%;
  background: radial-gradient(
    circle at 55% 40%,
    rgba(0, 229, 255, 0.32),
    rgba(0, 229, 255, 0.08) 48%,
    transparent 72%
  ),
    radial-gradient(
      circle at 30% 70%,
      rgba(255, 61, 109, 0.18),
      rgba(255, 61, 109, 0.05) 52%,
      transparent 68%
    );
  filter: blur(100px);
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
}

.hero-home .blob {
  position: absolute;
  /* 150vw forçait un scroll / décalage horizontal sur mobile (100vw + barre) */
  width: min(920px, 100%);
  height: min(680px, 120vh);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(255, 61, 109, 0.48), transparent 45%),
    radial-gradient(circle at 72% 38%, rgba(123, 92, 255, 0.45), transparent 50%),
    radial-gradient(circle at 50% 72%, rgba(0, 229, 255, 0.4), transparent 52%);
  filter: blur(100px);
  opacity: 0.52;
  pointer-events: none;
  z-index: 0;
}

.hero-home .container {
  position: relative;
  z-index: 1;
}

/* Hero : grille texte + prisme 3D (desktop) */
.hero-home .container.hero-home__grid {
  position: relative;
  z-index: 1;
}

.hero-home__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-prism-host {
  position: relative;
  pointer-events: none;
  z-index: 1;
  min-height: min(52vh, 400px);
  overflow: visible;
}

/* Léger voile derrière le prisme : contraste + profondeur */
.hero-prism-host::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: 2%;
  bottom: -18%;
  z-index: 0;
  background: radial-gradient(
    ellipse min(140%, 92vw) 88% at 44% 48%,
    rgba(72, 58, 118, 0.09),
    rgba(255, 250, 245, 0.02) 55%,
    transparent 78%
  );
  filter: blur(22px);
  opacity: 0.95;
  pointer-events: none;
}

/* Zone du prisme : wrap large pour halos / lumière ; canvas large en X = marges WebGL gauche + droite */
.hero-prism-wrap {
  --prism-canvas-w: min(56vw, 780px);
  --prism-canvas-h: min(46vw, 640px);
  position: absolute;
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(66vw, 860px);
  height: min(60vw, 820px);
  max-width: 100%;
  max-height: min(88vh, 820px);
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Halo atmosphérique : pleine largeur viewport (évite bords verticaux du wrap ~66vw) */
.hero-prism-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: -26%;
  bottom: -34%;
  z-index: 0;
  background:
    radial-gradient(
      ellipse min(72vw, 900px) 52% at 32% 58%,
      rgba(255, 90, 150, 0.24),
      rgba(255, 90, 150, 0.06) 52%,
      transparent 70%
    ),
    radial-gradient(
      ellipse min(68vw, 820px) 48% at 72% 36%,
      rgba(70, 200, 255, 0.22),
      rgba(70, 200, 255, 0.06) 50%,
      transparent 68%
    ),
    radial-gradient(
      ellipse min(56vw, 640px) 44% at 52% 72%,
      rgba(150, 115, 255, 0.16),
      transparent 62%
    ),
    radial-gradient(
      ellipse min(48vw, 520px) 34% at 48% 28%,
      rgba(255, 255, 255, 0.12),
      transparent 65%
    );
  filter: blur(48px);
  opacity: 0.95;
  pointer-events: none;
}

/* Ombres sur le cadre, pas sur le canvas : évite le “cadre” dur du filtre sur le buffer WebGL */
.hero-prism-canvas-frame {
  position: relative;
  z-index: 2;
  width: var(--prism-canvas-w, min(56vw, 780px));
  height: var(--prism-canvas-h, min(46vw, 640px));
  flex-shrink: 0;
  filter: drop-shadow(0 20px 48px rgba(90, 52, 190, 0.2))
    drop-shadow(0 0 32px rgba(120, 200, 255, 0.12))
    drop-shadow(0 28px 56px rgba(123, 92, 255, 0.12));
}

#hero-prism-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

@keyframes hero-prism-glow-breathe {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.78;
  }
}

.hero-prism-glow {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.58;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-prism-glow--pink {
    animation: hero-prism-glow-breathe 5.2s ease-in-out infinite;
  }

  .hero-prism-glow--cyan {
    animation: hero-prism-glow-breathe 6.4s ease-in-out infinite 0.85s;
  }
}

.hero-prism-glow--pink {
  width: min(280px, 72%);
  height: min(280px, 72%);
  left: -4%;
  bottom: -8%;
  background: radial-gradient(
    circle,
    rgba(255, 83, 166, 0.3) 0%,
    rgba(255, 83, 166, 0.1) 40%,
    transparent 72%
  );
}

.hero-prism-glow--cyan {
  width: min(280px, 72%);
  height: min(260px, 70%);
  right: -4%;
  top: 8%;
  background: radial-gradient(
    circle,
    rgba(57, 208, 255, 0.26) 0%,
    rgba(57, 208, 255, 0.1) 42%,
    transparent 72%
  );
}

@media (min-width: 960px) {
  .hero-home .container.hero-home__grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.25rem, 3.5vw, 3rem);
    align-items: center;
  }

  .hero-prism-host {
    align-self: center;
    min-height: min(60vh, 640px);
    max-height: 820px;
  }

}

@media (max-width: 1100px) and (min-width: 961px) {
  .hero-prism-wrap {
    --prism-canvas-w: min(58vw, 540px);
    --prism-canvas-h: min(48vw, 520px);
    left: -3%;
    width: min(66vw, 620px);
    height: min(64vw, 620px);
    max-height: min(84vh, 660px);
    opacity: 0.9;
  }
}

@media (max-width: 900px) {
  .hero-home {
    overflow: visible;
  }

  .hero-prism-host {
    min-height: 0;
    margin: 0 auto 2rem;
    max-width: 100%;
  }

  .hero-prism-wrap {
    --prism-canvas-w: min(98vw, 480px);
    --prism-canvas-h: min(88vw, 480px);
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 0;
    width: min(100vw, 540px);
    height: min(102vw, 560px);
    max-height: none;
  }
}

@media (max-width: 640px) {
  .hero-prism-wrap {
    --prism-canvas-w: min(100vw, 400px);
    --prism-canvas-h: min(100vw, 420px);
    width: min(100vw, 460px);
    height: min(108vw, 500px);
    opacity: 0.92;
  }

  .hero-prism-glow {
    filter: blur(50px);
  }
}

/* Fallback : pas de voile ni halo wrap */
.hero-prism-host.hero-prism-host--fallback::before {
  display: none;
}

/* Fallback si WebGL indisponible (décor statique, même emplacement) */
.hero-prism-host.hero-prism-host--fallback {
  min-height: min(48vh, 360px);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(255, 255, 255, 0.95), transparent 62%),
    conic-gradient(
      from 210deg at 50% 50%,
      rgba(255, 61, 109, 0.35),
      rgba(123, 92, 255, 0.4),
      rgba(0, 229, 255, 0.38),
      rgba(251, 191, 36, 0.32),
      rgba(255, 61, 109, 0.35)
    );
  opacity: 0.85;
  filter: blur(0.35px) drop-shadow(0 12px 36px rgba(123, 92, 255, 0.15));
  clip-path: polygon(50% 8%, 88% 78%, 12% 78%);
  max-height: 420px;
  margin-inline: auto;
  aspect-ratio: 1;
  max-width: min(100%, 340px);
}

@media (min-width: 960px) {
  .hero-prism-host.hero-prism-host--fallback {
    min-height: min(48vh, 380px);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.65rem, 7vw, 4.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.038em;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-title .hand {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-avatars {
  display: flex;
}

.hero-avatars span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  margin-left: -10px;
  box-shadow: 0 2px 10px rgba(10, 10, 15, 0.1);
}

.hero-avatars span:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #fecdd3, #fb7185);
}

.hero-avatars span:nth-child(2) {
  background: linear-gradient(135deg, #ddd6fe, #a78bfa);
}

.hero-avatars span:nth-child(3) {
  background: linear-gradient(135deg, #99f6e4, #2dd4bf);
}

.hero-avatars span:nth-child(4) {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-3 {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-metiers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .grid-metiers {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Métiers — « Par où commencer ? » */
.section--metiers {
  position: relative;
}

.section--metiers::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(55% 42% at 50% 0%, rgba(123, 92, 255, 0.07), transparent 62%),
    radial-gradient(40% 30% at 10% 90%, rgba(255, 61, 109, 0.04), transparent 55%);
}

.section--metiers::after {
  content: "";
  position: absolute;
  width: min(440px, 75vw);
  height: min(320px, 38vh);
  left: -10%;
  bottom: 5%;
  background: radial-gradient(circle at 55% 45%, rgba(0, 229, 255, 0.22), transparent 68%);
  filter: blur(76px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.section--metiers .container {
  position: relative;
  z-index: 1;
}

.section-head--metiers h2 {
  letter-spacing: -0.03em;
}

.grid-metiers[data-metier-cards] {
  gap: 1.15rem;
}

.metier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 15.5rem;
  padding: 1.35rem 1.25rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, #ffffff 0%, #f9f8fc 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.88) inset, var(--shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}

.metier-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.92;
}

.metier-card--coiffeur::before {
  background: linear-gradient(90deg, #ff3d6d, #7b5cff);
}

.metier-card--barbier::before {
  background: linear-gradient(90deg, #0d9488, #334155);
}

.metier-card--restaurant::before {
  background: linear-gradient(90deg, #ea580c, #fbbf24);
}

.metier-card--manucure::before {
  background: linear-gradient(90deg, #db2777, #a855f7);
}

.metier-card--esthetique::before {
  background: linear-gradient(90deg, #059669, #14b8a6);
}

.metier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.88) inset, var(--shadow-lg);
  border-color: rgba(123, 92, 255, 0.2);
}

.metier-card:focus-visible {
  outline: 2px solid rgba(123, 92, 255, 0.55);
  outline-offset: 3px;
}

.metier-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.96);
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(10, 10, 15, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.metier-card--coiffeur .metier-card__icon {
  background: linear-gradient(145deg, #ff3d6d 0%, #b84bff 100%);
}

.metier-card--barbier .metier-card__icon {
  background: linear-gradient(145deg, #0f766e 0%, #1e293b 100%);
}

.metier-card--restaurant .metier-card__icon {
  background: linear-gradient(145deg, #ea580c 0%, #f59e0b 100%);
}

.metier-card--manucure .metier-card__icon {
  background: linear-gradient(145deg, #db2777 0%, #9333ea 100%);
}

.metier-card--esthetique .metier-card__icon {
  background: linear-gradient(145deg, #047857 0%, #2dd4bf 100%);
}

.metier-card:hover .metier-card__icon {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 10px 26px rgba(123, 92, 255, 0.22);
}

.metier-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}

.metier-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.metier-card__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.metier-card__cta {
  margin-top: auto;
  padding-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #5b4ad4;
  letter-spacing: -0.01em;
}

.metier-card__cta-arrow {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.metier-card:hover .metier-card__cta-arrow {
  transform: translateX(5px);
}

.metier-card:hover .metier-card__cta {
  color: #4330b8;
}

.js [data-metier-cards] .metier-card {
  opacity: 0;
}

.js.prefers-reduced-motion [data-metier-cards] .metier-card {
  opacity: 1;
}

/* Cards */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 92, 255, 0.18);
}

.card--link {
  display: block;
  height: 100%;
}

.card__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card__arrow {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(10, 10, 15, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Trust marquee — badges business (landing SaaS, boucle seamless)            */
/* -------------------------------------------------------------------------- */
.trust-marquee {
  --marquee-duration: 72s;
  --marquee-gap: 0.7rem;
  position: relative;
  padding-block: clamp(2.2rem, 4.6vw, 3.15rem);
  overflow: hidden;
  isolation: isolate;
}

.trust-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(68% 78% at 16% 8%, rgba(123, 92, 255, 0.13), transparent 58%),
    radial-gradient(70% 85% at 84% 10%, rgba(0, 229, 255, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.42) 100%);
}

.trust-marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.trust-marquee__intro {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(1.35rem, 3vw, 1.95rem);
}

.trust-marquee__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(10, 10, 15, 0.48);
}

.trust-marquee__intro::after {
  content: "";
  display: block;
  width: min(10rem, 42%);
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 255, 0.35), rgba(0, 229, 255, 0.28), transparent);
  opacity: 0.85;
}

.trust-marquee__lead {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  letter-spacing: -0.01em;
  color: rgba(10, 10, 15, 0.76);
  line-height: 1.35;
}

.trust-marquee__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1180px, 100%);
  margin-inline: auto;
  overflow: hidden;
  padding-block: 0.45rem;
  padding-inline: clamp(0.25rem, 2vw, 1.25rem);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Fonds latéraux (complète le mask : lisible sur tous navigateurs) */
.trust-marquee__viewport::before,
.trust-marquee__viewport::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: clamp(2.75rem, 11vw, 6.5rem);
  z-index: 3;
  pointer-events: none;
}

.trust-marquee__viewport::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--surface-light) 0%,
    color-mix(in srgb, var(--surface-light) 55%, transparent) 55%,
    transparent 100%
  );
}

.trust-marquee__viewport::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--surface-light) 0%,
    color-mix(in srgb, var(--surface-light) 55%, transparent) 55%,
    transparent 100%
  );
}

.trust-marquee__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: trust-marquee-ltr var(--marquee-duration) linear infinite;
}

.trust-marquee:hover .trust-marquee__track,
.trust-marquee:focus-within .trust-marquee__track {
  animation-play-state: paused;
}

@keyframes trust-marquee-ltr {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.trust-marquee__rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--marquee-gap);
  margin: 0;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
  list-style: none;
}

.trust-marquee__rail > li {
  flex-shrink: 0;
}

.trust-marquee__badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.56rem 1.12rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(10, 10, 15, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.22) 100%),
    linear-gradient(120deg, rgba(123, 92, 255, 0.07) 0%, transparent 42%, rgba(0, 229, 255, 0.06) 100%);
  border: 1px solid color-mix(in srgb, white 72%, rgba(10, 10, 15, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(10, 10, 15, 0.04),
    inset 0 18px 26px -16px rgba(255, 255, 255, 0.55),
    0 12px 34px rgba(10, 10, 15, 0.07),
    0 2px 10px rgba(10, 10, 15, 0.04);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.trust-marquee__badge::before {
  content: "";
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(135deg, #7b5cff 0%, #ff3d6d 48%, #00e5ff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), 0 0 14px rgba(123, 92, 255, 0.35);
}

.trust-marquee__rail > li:hover .trust-marquee__badge {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, rgba(123, 92, 255, 0.35) 55%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(10, 10, 15, 0.035),
    inset 0 18px 28px -16px rgba(255, 255, 255, 0.62),
    0 18px 42px rgba(10, 10, 15, 0.1),
    0 6px 18px rgba(123, 92, 255, 0.14);
}

@supports not (backdrop-filter: blur(1px)) {
  .trust-marquee__badge {
    background: rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 640px) {
  .trust-marquee {
    --marquee-gap: 0.55rem;
    padding-block: 1.9rem 2.25rem;
  }

  .trust-marquee__intro {
    margin-bottom: 1.2rem;
  }

  .trust-marquee__lead {
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    line-height: 1.42;
  }

  .trust-marquee__badge {
    font-size: 0.77rem;
    padding: 0.5rem 0.9rem;
  }

  .trust-marquee__badge::before {
    width: 5px;
    height: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .trust-marquee__viewport::before,
  .trust-marquee__viewport::after {
    display: none;
  }

  .trust-marquee__track {
    animation: none;
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.55rem;
    transform: none;
  }

  .trust-marquee__rail:last-of-type {
    display: none;
  }

  .trust-marquee__rail {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 0;
  }
}

/* Pain / solution — section « difficultés » */
.section--pain {
  position: relative;
}

.section--pain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(70% 45% at 50% 0%, rgba(123, 92, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.section-head--pain {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.section-head--pain h2 {
  letter-spacing: -0.03em;
}

.pain-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pain-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .pain-item:nth-child(1) {
    grid-column: span 2;
  }

  .pain-item:nth-child(2) {
    grid-column: span 2;
  }

  .pain-item:nth-child(3) {
    grid-column: span 2;
  }

  .pain-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .pain-item:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.pain-item {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff 0%, #f8f8f6 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  overflow: hidden;
}

.pain-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  opacity: 0.85;
}

.pain-item--1::before {
  background: linear-gradient(180deg, #ff3d6d, #c9a961);
}

.pain-item--2::before {
  background: linear-gradient(180deg, #c9a961, #7b5cff);
}

.pain-item--3::before {
  background: linear-gradient(180deg, #7b5cff, #00e5ff);
}

.pain-item--4::before {
  background: linear-gradient(180deg, #00e5ff, #7b5cff);
}

.pain-item--5::before {
  background: linear-gradient(180deg, #ff3d6d, #7b5cff);
}

.pain-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(123, 92, 255, 0.18);
}

.pain-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: rgba(10, 10, 15, 0.55);
  background: var(--gradient-soft);
  border: 1px solid rgba(10, 10, 15, 0.06);
}

.pain-item:hover .pain-item__icon {
  color: rgba(10, 10, 15, 0.72);
  border-color: rgba(123, 92, 255, 0.15);
}

.pain-item h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 0.55rem;
  letter-spacing: -0.026em;
}

.pain-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 36ch;
}

.js [data-pain-grid] .pain-item {
  opacity: 0;
}

.js.prefers-reduced-motion [data-pain-grid] .pain-item {
  opacity: 1;
}

/* Solution — « vous choisissez, nous réalisons » */
.section--solution {
  position: relative;
}

.section--solution::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(65% 40% at 15% 20%, rgba(255, 61, 109, 0.06), transparent 55%),
    radial-gradient(50% 35% at 85% 80%, rgba(123, 92, 255, 0.07), transparent 60%);
  pointer-events: none;
}

.section--solution::after {
  content: "";
  position: absolute;
  width: min(520px, 90vw);
  height: min(380px, 42vh);
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.18), transparent 68%),
    radial-gradient(circle at 30% 60%, rgba(123, 92, 255, 0.2), transparent 65%);
  filter: blur(var(--blob-blur));
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.split--solution {
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.section--solution .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .split--solution {
    align-items: center;
  }
}

.solution-intro {
  max-width: 44rem;
}

.solution-intro h2 {
  text-wrap: balance;
  font-size: clamp(1.95rem, 3.9vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 1.06;
  margin: 0 0 0.35rem;
}

.solution-intro__lead {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  line-height: 1.6;
}

.solution-intro__actions {
  margin-top: 1.25rem;
}

.solution-aside {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff 0%, #faf9fc 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.85) inset, var(--shadow);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.4s var(--ease);
}

.solution-aside:hover {
  border-color: rgba(123, 92, 255, 0.16);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.85) inset, var(--shadow-lg);
}

.solution-aside__label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 15, 0.45);
}

.solution-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.solution-checklist__item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  position: relative;
  padding-bottom: 0.2rem;
  transition: transform 0.35s var(--ease);
}

.solution-checklist__item:not(:last-child) {
  padding-bottom: 1.1rem;
}

.solution-checklist__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.45rem;
  bottom: 0.15rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.35), rgba(255, 61, 109, 0.12));
  pointer-events: none;
}

.solution-checklist__marker {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #ff3d6d 0%, #c44bff 50%, #7b5cff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(123, 92, 255, 0.28);
  transition: transform 0.35s var(--ease);
}

.solution-checklist__marker svg {
  display: block;
}

.solution-checklist__text {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  padding-top: 0.2rem;
  color: rgba(10, 10, 15, 0.88);
}

.solution-checklist__item:hover {
  transform: translateX(3px);
}

.solution-checklist__item:hover .solution-checklist__marker {
  transform: scale(1.05);
}

.js [data-solution-steps] .solution-checklist__item {
  opacity: 0;
}

.js.prefers-reduced-motion [data-solution-steps] .solution-checklist__item {
  opacity: 1;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

/* Bloc + puce absolue : le flex sur <li> avec #text + <strong> séparait chaque nœud en
   items flex côte à côte → mots en « colonne » ultra étroite dans la carte tarif 3. */
.checklist li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.75rem;
  font-weight: 550;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.12em;
  color: #0f766e;
  font-weight: 900;
}

/* Template teaser / template page cards */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
  margin: 1.5rem 0 0;
}

.pill {
  border-radius: 14px;
  padding: 0.72rem 0.95rem;
  min-width: min(280px, 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(10, 10, 15, 0.72);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.pill__title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
}

.pill__sub {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(10, 10, 15, 0.62);
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 92, 255, 0.28);
}

.pill.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(118deg, #ff3d6d, #7b5cff);
  box-shadow: 0 12px 30px rgba(123, 92, 255, 0.22);
}

.pill.is-active .pill__sub {
  color: rgba(255, 255, 255, 0.88);
}

.pill:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.pill-help {
  margin: 0.85rem 0 0;
  max-width: 58ch;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

.formule-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(85% 45% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 52%),
    radial-gradient(70% 50% at 100% 40%, rgba(123, 92, 255, 0.06), transparent 48%),
    linear-gradient(182deg, #fcf9f4 0%, #f3ece3 100%);
}

.formule-section.section--alt {
  background: radial-gradient(80% 48% at 100% 0%, rgba(123, 92, 255, 0.07), transparent 46%),
    radial-gradient(65% 40% at 0% 100%, rgba(255, 61, 109, 0.05), transparent 48%),
    radial-gradient(55% 42% at 20% 30%, rgba(0, 229, 255, 0.045), transparent 50%),
    linear-gradient(175deg, #ebe4d9 0%, #e3dace 100%);
}

.formule-section::after {
  content: "";
  position: absolute;
  width: min(560px, 92vw);
  height: min(360px, 42vh);
  right: -14%;
  top: 15%;
  background: radial-gradient(circle at 45% 45%, rgba(123, 92, 255, 0.2), transparent 68%);
  filter: blur(78px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.formule-section.section--alt::after {
  right: auto;
  left: -12%;
  top: 20%;
  background: radial-gradient(circle at 55% 40%, rgba(255, 61, 109, 0.18), transparent 65%),
    radial-gradient(circle at 30% 60%, rgba(0, 229, 255, 0.14), transparent 58%);
  opacity: 0.38;
}

.formule-section .container {
  position: relative;
  z-index: 1;
}

.formule-section:first-of-type {
  border-top: none;
}

.formule-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.formule-head h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.8vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.formule-head .accent-serif {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  color: rgba(10, 10, 15, 0.78);
}

.price-tag strong {
  font-size: 1.35rem;
}

.template-grid {
  display: grid;
  gap: 1.1rem;
}

.template-coming {
  border: 1px solid rgba(123, 92, 255, 0.2);
  border-radius: 18px;
  padding: 0.9rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(250, 245, 238, 0.9));
  box-shadow: 0 14px 35px rgba(28, 16, 58, 0.08);
  overflow: hidden;
}

.template-coming__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  margin-bottom: 0.8rem;
  background: #1b1a1f;
}

.template-coming__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  animation: templateComingZoom 9s ease-in-out infinite alternate;
}

.template-coming__glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.34) 45%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(7, 8, 15, 0.04), rgba(7, 8, 15, 0.45));
  animation: templateComingSweep 2.8s linear infinite;
}

.template-coming__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(120deg, #ff3d6d, #7b5cff);
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  box-shadow: 0 8px 22px rgba(123, 92, 255, 0.35);
}

.template-coming__title {
  margin: 0 0 0.3rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  color: #3a3158;
}

.template-coming__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}


@keyframes templateComingSweep {
  0% {
    transform: translateX(-55%);
  }
  100% {
    transform: translateX(55%);
  }
}

@keyframes templateComingZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.07);
  }
}

@media (min-width: 720px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Offre avancée 150€ — bannière (remplace galerie de modèles) */
.formule-adv-banner {
  position: relative;
  margin-top: 0.25rem;
  padding: clamp(1.35rem, 3.5vw, 1.9rem) clamp(1.25rem, 3.5vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.1rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.86) 0%, rgba(250, 245, 238, 0.75) 48%, rgba(241, 234, 224, 0.7) 100%),
    radial-gradient(100% 90% at 0% 0%, rgba(123, 92, 255, 0.1), transparent 50%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 61, 109, 0.08), transparent 50%);
  border: 1px solid rgba(10, 10, 15, 0.1);
  box-shadow: 0 18px 50px rgba(10, 10, 15, 0.07);
  overflow: hidden;
  isolation: isolate;
}

.formule-adv-banner__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 61, 109, 0.14), rgba(123, 92, 255, 0.12) 50%, rgba(0, 229, 255, 0.1) 100%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.formule-adv-banner__header,
.formule-adv-banner__grid,
.formule-adv-banner__note,
.formule-adv-banner__actions {
  position: relative;
  z-index: 1;
}

.formule-adv-banner__kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b5cff;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.formule-adv-banner__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--text);
  text-wrap: balance;
  max-width: 36ch;
}

.formule-adv-banner__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.formule-adv-banner__lead strong {
  color: var(--text);
  font-weight: 600;
}

.formule-adv-banner__grid {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 1.1rem;
}

@media (min-width: 640px) {
  .formule-adv-banner__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .formule-adv-banner__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
}

.formule-adv-banner__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  padding: 0.9rem 1rem 1.05rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(10, 10, 15, 0.08);
  box-shadow: 0 8px 28px rgba(10, 10, 15, 0.04);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.formule-adv-banner__item:hover {
  border-color: rgba(123, 92, 255, 0.2);
  box-shadow: 0 12px 32px rgba(10, 10, 15, 0.07);
  transform: translateY(-2px);
}

.formule-adv-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 11px;
  color: #5b2fd6;
  background: linear-gradient(140deg, rgba(123, 92, 255, 0.2), rgba(0, 229, 255, 0.12));
}

.formule-adv-banner__item-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.formule-adv-banner__item-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.formule-adv-banner__note {
  margin: 1.1rem 0 0;
  max-width: 64ch;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(92, 92, 92, 0.9);
  font-style: italic;
  font-family: "Instrument Serif", "Georgia", serif;
}

.formule-adv-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin-top: 1.1rem;
}

/* Page Templates — promesse “site unique” (parcourt visuel) */
.section--unique-promise {
  background: linear-gradient(185deg, #fbf9f5 0%, #f0eae2 100%);
  position: relative;
  overflow: hidden;
}

.section--unique-promise::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: min(480px, 80vw);
  height: min(360px, 50vh);
  background: radial-gradient(ellipse at center, rgba(123, 92, 255, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--unique-promise .container {
  position: relative;
  z-index: 1;
}

.unique-promise {
  position: relative;
  border-radius: 22px;
  padding: clamp(1.35rem, 4vw, 1.9rem) clamp(1.1rem, 3.5vw, 1.75rem);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 250, 255, 0.9) 45%, rgba(255, 253, 250, 0.92) 100%);
  border: 1px solid rgba(10, 10, 15, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 20px 48px -18px rgba(40, 20, 60, 0.1);
  isolation: isolate;
  overflow: hidden;
}

.unique-promise::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, #ff3d6d, #7b5cff, #00e5ff);
  opacity: 0.65;
  border-radius: 22px 22px 0 0;
}

.unique-promise__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 61, 109, 0.1), rgba(123, 92, 255, 0.08) 50%, rgba(0, 229, 255, 0.09));
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.unique-promise__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.35rem, 3.5vw, 2.25rem);
  align-items: center;
}

@media (min-width: 900px) {
  .unique-promise__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem 2.5rem;
  }
}

.unique-promise__flow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem 0.35rem;
  padding: 0.4rem 0.25rem 0.2rem;
}

@media (min-width: 500px) {
  .unique-promise__flow {
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 32rem;
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .unique-promise__flow {
    max-width: none;
    margin-inline: 0;
  }
}

.unique-promise__track {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(123, 92, 255, 0.2), rgba(255, 61, 109, 0.22), rgba(0, 229, 255, 0.25));
  z-index: 0;
  pointer-events: none;
  display: none;
}

@media (min-width: 500px) {
  .unique-promise__track {
    display: block;
  }
}

.unique-promise__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  min-width: 0;
  width: calc(33.333% - 0.5rem);
  max-width: 8.2rem;
}

@media (min-width: 500px) {
  .unique-promise__step {
    width: auto;
    max-width: 6.5rem;
  }
}

@media (min-width: 900px) {
  .unique-promise__step {
    max-width: 7.25rem;
  }
}

.unique-promise__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.3rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, rgba(250, 246, 255, 0.9));
  box-shadow:
    0 0 0 1px rgba(123, 92, 255, 0.1) inset,
    0 6px 18px rgba(90, 50, 160, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.unique-promise__step:hover .unique-promise__icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 0 1px rgba(123, 92, 255, 0.18) inset, 0 10px 26px rgba(90, 50, 160, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .unique-promise__step:hover .unique-promise__icon {
    transform: none;
  }
}

.unique-promise__icon svg {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.unique-promise__num {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1.15rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff3d6d, #7b5cff);
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(100, 40, 120, 0.25);
  z-index: 2;
}

.unique-promise__step--finale .unique-promise__num {
  background: linear-gradient(135deg, #00a89a, #7b5cff, #c93d5c);
}

.unique-promise__label {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a2a32;
  margin-top: 0.25rem;
  line-height: 1.2;
  text-wrap: balance;
}

.unique-promise__hint {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--muted, #5c5c6e);
  margin-top: 0.1rem;
}

.unique-promise__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding-top: 1.35rem;
  flex: 0 0 auto;
  min-width: 0.4rem;
  opacity: 0.85;
}

@media (max-width: 499px) {
  .unique-promise__arrow {
    display: none;
  }

  .unique-promise__flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem 0.25rem;
  }

  .unique-promise__step {
    width: 100%;
    max-width: none;
  }
}

.unique-promise__kicker {
  margin: 0 0 0.4rem;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b5cff;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.unique-promise__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.7rem;
  color: var(--text);
  text-wrap: balance;
}

.unique-promise__lead {
  margin: 0 0 0.9rem;
  max-width: 50ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #5c5c6e);
}

.unique-promise__lead strong {
  color: var(--text);
  font-weight: 600;
}

.unique-promise__tagline {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text, #0a0a0f);
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.08), rgba(0, 229, 255, 0.06));
  border: 1px solid rgba(123, 92, 255, 0.12);
}

.unique-promise__tagline strong {
  font-weight: 700;
}

.unique-promise__dot {
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3d6d, #7b5cff, #00e5ff);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.12);
}

/* Styles teaser (accueil) */
.section--styles-teaser {
  position: relative;
}

.section--styles-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 38% at 50% 0%, rgba(123, 92, 255, 0.07), transparent 58%),
    radial-gradient(35% 28% at 92% 70%, rgba(0, 229, 255, 0.06), transparent 55%);
}

.section--styles-teaser::after {
  content: "";
  position: absolute;
  width: min(600px, 95vw);
  height: min(340px, 40vh);
  right: -8%;
  bottom: -5%;
  background: radial-gradient(circle at 45% 45%, rgba(255, 61, 109, 0.2), transparent 68%),
    radial-gradient(circle at 70% 55%, rgba(123, 92, 255, 0.18), transparent 62%);
  filter: blur(var(--blob-blur));
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.section--styles-teaser .container {
  position: relative;
  z-index: 1;
}

.section-head--styles h2 {
  letter-spacing: -0.03em;
}

.template-grid--teaser {
  gap: 1.25rem;
}

.js [data-style-teaser-cards] .template-card {
  opacity: 0;
}

.js.prefers-reduced-motion [data-style-teaser-cards] .template-card {
  opacity: 1;
}

.section--styles-teaser .template-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f9f8fc 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.92) inset, var(--shadow);
}

.section--styles-teaser .template-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 3;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.95;
}

.section--styles-teaser .template-card:nth-child(1)::before {
  background: linear-gradient(90deg, #5b21b6, #fb7185);
}

.section--styles-teaser .template-card:nth-child(2)::before {
  background: linear-gradient(90deg, #0ea5e9, #a78bfa);
}

.section--styles-teaser .template-card:nth-child(3)::before {
  background: linear-gradient(90deg, #64748b, #0f172a);
}

.section--styles-teaser .template-card:nth-child(4)::before {
  background: linear-gradient(90deg, #ea580c, #fbbf24);
}

.template-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 36px rgba(10, 10, 15, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(10, 10, 15, 0.12), 0 0 0 1px rgba(123, 92, 255, 0.12);
  border-color: rgba(123, 92, 255, 0.22);
}

/* Lien profond templates.html?…&style=minimaliste */
.template-card.is-url-highlight {
  outline: 2px solid rgba(123, 92, 255, 0.65);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

/* Aperçu carte template (screenshot + fallback dégradé par style)
   Captures : 1280×800 (16/10) — le même ratio qu’ici évite barres vides + cadre moins haut qu’en 4/3. */
.template-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
  border-radius: 16px 16px 0 0;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 15, 0.06), 0 8px 28px rgba(10, 10, 15, 0.08);
}

/* Bloc aperçu = plein largeur, bords hauts alignés sur la carte, bord bas carré pour se coller à la zone texte */
.section--styles-teaser .template-card .template-card__preview {
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.template-card[data-style="luxe"] .template-card__preview {
  background-image: linear-gradient(135deg, #0a0a0a, #c9a961);
}

.template-card[data-style="moderne"] .template-card__preview {
  background-image: linear-gradient(135deg, #ff3d6d, #7b5cff);
}

.template-card[data-style="minimaliste"] .template-card__preview {
  background-image: linear-gradient(135deg, #f8f6f2, #e8e4dc, #8b7355);
}

.template-card[data-style="familial"] .template-card__preview {
  background-image: linear-gradient(135deg, #ff6b35, #f7b801);
}

/* Avec <img> : fini le gros dégradé derrière, fond discret par style si l’écart de ratio minime. */
.template-card[data-style="luxe"] .template-card__preview:has(img) {
  background-color: #0a0a0a;
  background-image: none;
}
.template-card[data-style="moderne"] .template-card__preview:has(img) {
  background-color: #f4f1f7;
  background-image: none;
}
.template-card[data-style="minimaliste"] .template-card__preview:has(img) {
  background-color: #f5f2ed;
  background-image: none;
}
.template-card[data-style="familial"] .template-card__preview:has(img) {
  background-color: #fff2e6;
  background-image: none;
}

.template-card__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
  background: linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, 0.22) 50%, transparent 64%);
  mix-blend-mode: soft-light;
}

.template-card:hover .template-card__preview::before {
  opacity: 1;
}

.template-card__preview::after {
  content: "";
  position: absolute;
  inset: 10% 9% 12%;
  border-radius: 12px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 70%, transparent 100%) 10% 20% / 78% 5px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0%, transparent 55%) 10% 30% / 55% 4px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%) 10% 38% / 40% 3px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 28%) 10% 50% / 78% 42% no-repeat,
    rgba(10, 10, 15, 0.32);
  transition: transform 0.6s var(--ease), border-color 0.35s var(--ease);
  transform-origin: 50% 40%;
}

.template-card:hover .template-card__preview::after {
  transform: scale(1.035);
  border-color: rgba(255, 255, 255, 0.18);
}

.template-card[data-style="minimaliste"] .template-card__preview::after {
  border-color: rgba(10, 10, 15, 0.08);
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.07) 0%, transparent 72%) 10% 22% / 72% 4px no-repeat,
    linear-gradient(90deg, rgba(10, 10, 15, 0.05) 0%, transparent 55%) 10% 32% / 48% 3px no-repeat,
    linear-gradient(180deg, rgba(10, 10, 15, 0.04) 0%, transparent 30%) 10% 48% / 78% 40% no-repeat,
    rgba(248, 246, 242, 0.55);
}

.template-card__preview img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  border-radius: inherit;
}

.template-card__preview-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 10, 15, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  white-space: nowrap;
}

.template-card[data-style="minimaliste"] .template-card__preview-label {
  color: rgba(30, 26, 22, 0.85);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(10, 10, 15, 0.08);
}

.template-card__preview:has(img) .template-card__preview-label {
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.template-card__preview:has(img) .template-card__chrome {
  display: none;
}

.template-card__preview:has(img)::after {
  opacity: 0;
}

.template-card__chrome {
  position: absolute;
  top: 10%;
  left: 9%;
  right: 9%;
  height: 10%;
  min-height: 2rem;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.14);
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.template-card__chrome::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6259;
  flex-shrink: 0;
  box-shadow: 10px 0 #febc2e, 20px 0 #28c840;
  margin-right: 0.65rem;
}

.template-card__chrome::after {
  content: "";
  flex: 1;
  min-width: 0;
  height: 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
}

.template-card[data-style="minimaliste"] .template-card__chrome {
  background: rgba(15, 23, 42, 0.1);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.template-card[data-style="minimaliste"] .template-card__chrome::after {
  background: rgba(15, 23, 42, 0.14);
}

.template-card__body,
.template-card__info {
  padding: 1.2rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.template-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.template-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: rgba(10, 10, 15, 0.72);
}

.badge--price {
  border-color: rgba(123, 92, 255, 0.22);
  background: rgba(123, 92, 255, 0.06);
}

.template-card__actions {
  margin-top: auto;
  padding-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

/* -------------------------------------------------------------------------
   Page Templates — direction artistique par style (cartes formules uniquement).
   Aperçu : règles « mockup » partagées plus haut ; ici surtout la zone texte + clip.
   ------------------------------------------------------------------------- */

.formule-section .template-card[data-style] .template-card__preview {
  border-radius: 24px 24px 0 0;
}

.formule-section .template-card[data-style] {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style] {
    transition-duration: 0.2s;
  }
}

.formule-section .template-card[data-style] .template-card__actions {
  gap: 0.78rem;
  padding-top: 1.05rem;
}

/* Luxe — carte de référence (ultra premium). Aperçu / mockup inchangés (z-index au-dessus des calques décoratifs). */
.formule-section .template-card[data-style="luxe"] {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    radial-gradient(ellipse 140% 80% at 50% 100%, rgba(201, 169, 97, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(172deg, #0a0908 0%, #11100d 38%, #161411 72%, #0c0b09 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.055) inset,
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 28px 56px -10px rgba(0, 0, 0, 0.55),
    0 64px 100px -24px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease;
}

/* Lumière + grain uniquement sous la zone texte (clip), sans teinter le mockup. */
.formule-section .template-card[data-style="luxe"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  clip-path: inset(59% 0 0 0);
  background:
    radial-gradient(ellipse 88% 95% at 50% 100%, rgba(201, 169, 97, 0.2), transparent 58%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  opacity: 0.95;
}

.formule-section .template-card[data-style="luxe"] .template-card__preview,
.formule-section .template-card[data-style="luxe"] .template-card__info {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="luxe"]:hover {
  transform: translateY(-5px) scale(1.006);
  border-color: rgba(201, 169, 97, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 4px 12px rgba(0, 0, 0, 0.28),
    0 36px 72px -12px rgba(0, 0, 0, 0.58),
    0 80px 120px -28px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(201, 169, 97, 0.08),
    0 0 80px rgba(201, 169, 97, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="luxe"]:hover {
    transform: translateY(-3px);
  }
}

.formule-section .template-card[data-style="luxe"] .template-card__info {
  position: relative;
  isolation: isolate;
  padding: 1.85rem 1.75rem 1.95rem;
  gap: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  background:
    radial-gradient(ellipse 130% 85% at 50% 110%, rgba(201, 169, 97, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 28%),
    linear-gradient(165deg, rgba(18, 16, 13, 0.65) 0%, transparent 50%);
}

.formule-section .template-card[data-style="luxe"] .template-card__info > * {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="luxe"] .template-card__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.45), transparent);
  pointer-events: none;
  z-index: 2;
}

.formule-section .template-card[data-style="luxe"] .template-card__info::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 0;
  opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.formule-section .template-card[data-style="luxe"] .template-card__actions {
  gap: 0.72rem;
  padding-top: 1.35rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.formule-section .template-card[data-style="luxe"] .template-card__title {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  line-height: 1.04;
  letter-spacing: 0.025em;
  margin: 0;
  color: #f7f1e8;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.formule-section .template-card[data-style="luxe"] .template-card__desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 38ch;
  color: rgba(232, 224, 212, 0.58);
}

.formule-section .template-card[data-style="luxe"] .meta-row {
  gap: 0.55rem 0.85rem;
  margin-top: 0.15rem;
}

.formule-section .template-card[data-style="luxe"] .badge {
  border-radius: 100px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.38rem 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(245, 238, 226, 0.72);
  box-shadow: none;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.formule-section .template-card[data-style="luxe"]:hover .badge {
  border-color: rgba(201, 169, 97, 0.28);
  color: rgba(252, 246, 236, 0.82);
}

.formule-section .template-card[data-style="luxe"] .badge--price {
  border-color: rgba(201, 169, 97, 0.32);
  background: rgba(201, 169, 97, 0.06);
  color: rgba(255, 248, 236, 0.88);
}

.formule-section .template-card[data-style="luxe"] .btn-secondary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(248, 242, 234, 0.72);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.formule-section .template-card[data-style="luxe"] .btn-secondary:hover {
  border-color: rgba(201, 169, 97, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 252, 247, 0.92);
  transform: translateY(-1px);
}

.formule-section .template-card[data-style="luxe"] .btn-primary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #12100e;
  background: linear-gradient(180deg, #f4ede4 0%, #e8dfd3 45%, #ddd2c4 100%);
  background-size: 100% 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 28px rgba(0, 0, 0, 0.38);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, filter 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.formule-section .template-card[data-style="luxe"] .btn-primary:hover {
  background: linear-gradient(180deg, #faf6f0 0%, #efe6dc 50%, #e2d6c8 100%);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 14px 36px rgba(0, 0, 0, 0.42);
  filter: brightness(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="luxe"] .btn-primary:hover,
  .formule-section .template-card[data-style="luxe"] .btn-secondary:hover {
    transform: none;
  }
}

/* Moderne — même système que Luxe (hiérarchie, air, calques) ; DA SaaS colorée. Mockup intact (clip + z-index). */
.formule-section .template-card[data-style="moderne"] {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(10, 10, 15, 0.055);
  background:
    radial-gradient(ellipse 120% 70% at 100% 0%, rgba(123, 92, 255, 0.08), transparent 52%),
    radial-gradient(ellipse 100% 65% at 0% 100%, rgba(14, 165, 233, 0.07), transparent 50%),
    linear-gradient(175deg, #fafbff 0%, #f0f2fb 45%, #e8ecfa 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 6px rgba(123, 92, 255, 0.06),
    0 28px 56px -12px rgba(10, 10, 15, 0.1),
    0 56px 100px -22px rgba(123, 92, 255, 0.12);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease;
}

/* Halos + grille technique uniquement sous la zone texte (clip), sans teinter le mockup. */
.formule-section .template-card[data-style="moderne"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  clip-path: inset(59% 0 0 0);
  background:
    radial-gradient(ellipse 95% 100% at 80% 100%, rgba(255, 61, 109, 0.1), transparent 52%),
    radial-gradient(ellipse 90% 95% at 15% 100%, rgba(123, 92, 255, 0.12), transparent 50%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35)),
    repeating-linear-gradient(90deg, rgba(123, 92, 255, 0.035) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(10, 10, 15, 0.018) 0 1px, transparent 1px 6px);
  opacity: 0.92;
}

.formule-section .template-card[data-style="moderne"] .template-card__preview,
.formule-section .template-card[data-style="moderne"] .template-card__info {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="moderne"]:hover {
  transform: translateY(-5px) scale(1.006);
  border-color: rgba(123, 92, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 4px 12px rgba(123, 92, 255, 0.1),
    0 36px 72px -12px rgba(10, 10, 15, 0.12),
    0 72px 120px -26px rgba(123, 92, 255, 0.16),
    0 0 0 1px rgba(123, 92, 255, 0.1),
    0 0 72px rgba(123, 92, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="moderne"]:hover {
    transform: translateY(-3px);
  }
}

.formule-section .template-card[data-style="moderne"] .template-card__info {
  position: relative;
  isolation: isolate;
  padding: 1.85rem 1.75rem 1.95rem;
  gap: 1.05rem;
  border-top: 1px solid rgba(10, 10, 15, 0.045);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 248, 255, 0.78) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.formule-section .template-card[data-style="moderne"] .template-card__info > * {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="moderne"] .template-card__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff3d6d, #7b5cff, #00e5ff);
  opacity: 0.88;
  pointer-events: none;
  z-index: 2;
}

.formule-section .template-card[data-style="moderne"] .template-card__info::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(0deg, rgba(123, 92, 255, 0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .formule-section .template-card[data-style="moderne"] .template-card__info {
    background: linear-gradient(180deg, #ffffff 0%, #f2f4fd 100%);
  }
}

.formule-section .template-card[data-style="moderne"] .template-card__actions {
  gap: 0.72rem;
  padding-top: 1.35rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(10, 10, 15, 0.045);
}

.formule-section .template-card[data-style="moderne"] .template-card__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
  background: linear-gradient(102deg, #e11d48 0%, #7b5cff 44%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 8px rgba(123, 92, 255, 0.12));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .formule-section .template-card[data-style="moderne"] .template-card__title {
    color: #5b21b6;
    background: none;
    filter: none;
  }
}

.formule-section .template-card[data-style="moderne"] .template-card__desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 38ch;
  color: rgba(10, 10, 15, 0.5);
}

.formule-section .template-card[data-style="moderne"] .meta-row {
  gap: 0.55rem 0.85rem;
  margin-top: 0.15rem;
}

.formule-section .template-card[data-style="moderne"] .badge {
  border-radius: 100px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.38rem 0.88rem;
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(12, 74, 110, 0.82);
  box-shadow: none;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.formule-section .template-card[data-style="moderne"]:hover .badge {
  border-color: rgba(14, 165, 233, 0.38);
  background: rgba(255, 255, 255, 0.72);
}

.formule-section .template-card[data-style="moderne"] .badge--price {
  border-color: rgba(123, 92, 255, 0.3);
  background: rgba(123, 92, 255, 0.06);
  color: rgba(15, 23, 42, 0.82);
}

.formule-section .template-card[data-style="moderne"] .btn-secondary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(30, 58, 95, 0.82);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(10, 10, 15, 0.1);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease, box-shadow 0.35s ease;
}

.formule-section .template-card[data-style="moderne"] .btn-secondary:hover {
  border-color: rgba(123, 92, 255, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(123, 92, 255, 0.1);
}

.formule-section .template-card[data-style="moderne"] .btn-primary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  border: none;
  border-radius: 14px;
  background: linear-gradient(118deg, #ff3d6d 0%, #7b5cff 48%, #00e5ff 100%);
  background-size: 200% 200%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 28px rgba(123, 92, 255, 0.38);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, filter 0.35s ease, background-position 0.55s ease;
}

.formule-section .template-card[data-style="moderne"] .btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 14px 36px rgba(255, 61, 109, 0.28);
  filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="moderne"] .btn-primary:hover,
  .formule-section .template-card[data-style="moderne"] .btn-secondary:hover {
    transform: none;
  }
}

/* Minimaliste — même système que Luxe / Moderne ; DA ultra épurée. Mockup intact (clip + z-index). */
.formule-section .template-card[data-style="minimaliste"] {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(10, 10, 15, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 42%, #f6f6f5 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 5px rgba(10, 10, 15, 0.03),
    0 28px 56px -14px rgba(10, 10, 15, 0.06),
    0 52px 90px -24px rgba(10, 10, 15, 0.04);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease;
}

/* Micro-structure (lignes) uniquement sous la zone texte, sans toucher au mockup. */
.formule-section .template-card[data-style="minimaliste"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  clip-path: inset(59% 0 0 0);
  opacity: 0.55;
  background: repeating-linear-gradient(0deg, rgba(10, 10, 15, 0.022) 0 1px, transparent 1px 5px);
}

.formule-section .template-card[data-style="minimaliste"] .template-card__preview,
.formule-section .template-card[data-style="minimaliste"] .template-card__info {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="minimaliste"]:hover {
  transform: translateY(-5px) scale(1.006);
  border-color: rgba(10, 10, 15, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 4px 10px rgba(10, 10, 15, 0.04),
    0 36px 72px -12px rgba(10, 10, 15, 0.08),
    0 0 0 1px rgba(10, 10, 15, 0.035);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="minimaliste"]:hover {
    transform: translateY(-3px);
  }
}

.formule-section .template-card[data-style="minimaliste"] .template-card__info {
  position: relative;
  isolation: isolate;
  padding: 1.85rem 1.75rem 1.95rem 1.95rem;
  gap: 1.05rem;
  border-top: 1px solid rgba(10, 10, 15, 0.045);
  background: linear-gradient(180deg, #ffffff 0%, rgba(250, 250, 249, 0.92) 100%);
}

.formule-section .template-card[data-style="minimaliste"] .template-card__info > * {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="minimaliste"] .template-card__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 10, 15, 0.1), transparent);
  pointer-events: none;
  z-index: 2;
}

.formule-section .template-card[data-style="minimaliste"] .template-card__info::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2rem;
  bottom: 2rem;
  width: 1px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.22) 0%, rgba(10, 10, 15, 0.06) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.formule-section .template-card[data-style="minimaliste"] .template-card__actions {
  gap: 0.72rem;
  padding-top: 1.35rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(10, 10, 15, 0.045);
}

.formule-section .template-card[data-style="minimaliste"] .template-card__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.42rem);
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
  color: #0a0a09;
}

.formule-section .template-card[data-style="minimaliste"] .template-card__desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 38ch;
  color: rgba(55, 54, 52, 0.58);
}

.formule-section .template-card[data-style="minimaliste"] .meta-row {
  gap: 0.55rem 0.85rem;
  margin-top: 0.15rem;
}

.formule-section .template-card[data-style="minimaliste"] .badge {
  border-radius: 100px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.38rem 0.88rem;
  border: 1px solid rgba(10, 10, 15, 0.1);
  background: rgba(250, 250, 249, 0.9);
  color: rgba(45, 44, 42, 0.68);
  box-shadow: none;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.formule-section .template-card[data-style="minimaliste"]:hover .badge {
  border-color: rgba(10, 10, 15, 0.14);
  background: #fff;
}

.formule-section .template-card[data-style="minimaliste"] .badge--price {
  border-color: rgba(10, 10, 15, 0.12);
  background: #fff;
  color: rgba(28, 27, 26, 0.72);
}

.formule-section .template-card[data-style="minimaliste"] .btn-secondary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(35, 34, 33, 0.82);
  background: #fff;
  border: 1px solid rgba(10, 10, 15, 0.12);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.formule-section .template-card[data-style="minimaliste"] .btn-secondary:hover {
  border-color: rgba(10, 10, 15, 0.2);
  background: #fafafa;
  transform: translateY(-1px);
}

.formule-section .template-card[data-style="minimaliste"] .btn-primary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fafaf9;
  border: 1px solid rgba(10, 10, 15, 0.32);
  border-radius: 14px;
  background-color: #161615;
  background-image: linear-gradient(180deg, #2c2b2a 0%, #151514 48%, #0e0e0d 100%);
  background-size: 100% 100%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 10px 28px rgba(10, 10, 15, 0.16);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.35s ease, filter 0.35s ease, background-image 0.35s ease;
}

.formule-section .template-card[data-style="minimaliste"] .btn-primary:hover {
  background-image: linear-gradient(180deg, #222221 0%, #0c0c0b 100%);
  border-color: rgba(10, 10, 15, 0.48);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 14px 36px rgba(10, 10, 15, 0.2);
  filter: brightness(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="minimaliste"] .btn-primary:hover,
  .formule-section .template-card[data-style="minimaliste"] .btn-secondary:hover {
    transform: none;
  }
}

/* Familial — même système que Luxe / Moderne / Minimaliste ; DA chaleureuse. Mockup intact (clip + z-index). */
.formule-section .template-card[data-style="familial"] {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background:
    radial-gradient(ellipse 115% 75% at 10% 0%, rgba(255, 247, 237, 0.65), transparent 48%),
    radial-gradient(ellipse 100% 70% at 100% 20%, rgba(254, 215, 170, 0.35), transparent 46%),
    linear-gradient(178deg, #fffefb 0%, #fff6eb 48%, #ffedd5 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 2px 6px rgba(234, 88, 12, 0.05),
    0 28px 56px -12px rgba(217, 119, 6, 0.1),
    0 56px 100px -22px rgba(251, 146, 60, 0.1);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease;
}

/* Lueurs chaudes + grain très léger uniquement sous la zone texte (clip). */
.formule-section .template-card[data-style="familial"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  clip-path: inset(59% 0 0 0);
  background:
    radial-gradient(ellipse 95% 100% at 12% 100%, rgba(255, 237, 213, 0.65), transparent 52%),
    radial-gradient(ellipse 85% 95% at 92% 90%, rgba(254, 215, 170, 0.5), transparent 50%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25)),
    repeating-linear-gradient(90deg, rgba(251, 146, 60, 0.04) 0 1px, transparent 1px 7px);
  opacity: 0.9;
}

.formule-section .template-card[data-style="familial"] .template-card__preview,
.formule-section .template-card[data-style="familial"] .template-card__info {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="familial"]:hover {
  transform: translateY(-5px) scale(1.006);
  border-color: rgba(251, 146, 60, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 12px rgba(251, 146, 60, 0.08),
    0 36px 72px -12px rgba(234, 88, 12, 0.11),
    0 72px 120px -26px rgba(251, 146, 60, 0.12),
    0 0 0 1px rgba(251, 191, 36, 0.12),
    0 0 72px rgba(254, 215, 170, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="familial"]:hover {
    transform: translateY(-3px);
  }
}

.formule-section .template-card[data-style="familial"] .template-card__info {
  position: relative;
  isolation: isolate;
  padding: 1.85rem 1.75rem 1.95rem;
  gap: 1.05rem;
  border-top: 1px solid rgba(253, 186, 116, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 251, 245, 0.35) 100%);
}

.formule-section .template-card[data-style="familial"] .template-card__info > * {
  position: relative;
  z-index: 1;
}

.formule-section .template-card[data-style="familial"] .template-card__info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #fb923c, #fbbf24, #fcd34d);
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}

.formule-section .template-card[data-style="familial"] .template-card__info::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.formule-section .template-card[data-style="familial"] .template-card__actions {
  gap: 0.72rem;
  padding-top: 1.35rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(253, 186, 116, 0.22);
}

.formule-section .template-card[data-style="familial"] .template-card__title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.42rem);
  letter-spacing: -0.014em;
  line-height: 1.15;
  margin: 0;
  color: #1f1611;
}

.formule-section .template-card[data-style="familial"] .template-card__desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 38ch;
  color: rgba(90, 58, 42, 0.68);
}

.formule-section .template-card[data-style="familial"] .meta-row {
  gap: 0.55rem 0.85rem;
  margin-top: 0.15rem;
}

.formule-section .template-card[data-style="familial"] .badge {
  border-radius: 100px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.38rem 0.88rem;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(124, 45, 18, 0.78);
  box-shadow: none;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.formule-section .template-card[data-style="familial"]:hover .badge {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.formule-section .template-card[data-style="familial"] .badge--price {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(255, 247, 237, 0.95);
  color: rgba(124, 45, 18, 0.88);
}

.formule-section .template-card[data-style="familial"] .btn-secondary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(124, 45, 18, 0.82);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease, box-shadow 0.35s ease;
}

.formule-section .template-card[data-style="familial"] .btn-secondary:hover {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(91, 33, 12, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(251, 146, 60, 0.1);
}

.formule-section .template-card[data-style="familial"] .btn-primary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  border: none;
  border-radius: 14px;
  background: linear-gradient(118deg, #ea580c 0%, #fb923c 45%, #fbbf24 100%);
  background-size: 200% 200%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(249, 115, 22, 0.28);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, filter 0.35s ease, background-position 0.55s ease;
}

.formule-section .template-card[data-style="familial"] .btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 36px rgba(234, 88, 12, 0.26);
  filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .formule-section .template-card[data-style="familial"] .btn-primary:hover,
  .formule-section .template-card[data-style="familial"] .btn-secondary:hover {
    transform: none;
  }
}

/* Steps (process page) */
.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #fff 0%, #fdfcfa 55%, #faf7f4 100%);
  padding: 1.5rem 1.5rem 1.65rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    var(--shadow);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.35s ease;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.95;
  pointer-events: none;
}

.step--1::before {
  background: linear-gradient(90deg, #ff3d6d, #ff7eb2);
}

.step--2::before {
  background: linear-gradient(90deg, #7b5cff, #9d8cff);
}

.step--3::before {
  background: linear-gradient(90deg, #00b4d8, #00e5ff);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .step:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 92, 255, 0.14);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 20px 50px rgba(10, 10, 15, 0.1),
      0 0 0 1px rgba(123, 92, 255, 0.06);
  }
}

.step__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.step__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 10, 15, 0.88);
  background: var(--gradient-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.step--1 .step__icon {
  background: linear-gradient(145deg, rgba(255, 61, 109, 0.14), rgba(255, 130, 170, 0.08));
  color: #c41e4e;
}

.step--2 .step__icon {
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.16), rgba(123, 92, 255, 0.06));
  color: #5b47c4;
}

.step--3 .step__icon {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.14), rgba(0, 180, 216, 0.06));
  color: #0096b5;
}

.step__icon svg {
  width: 24px;
  height: 24px;
}

.step__meta {
  min-width: 0;
}

.step__num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 10, 15, 0.42);
  margin: 0 0 0.2rem;
}

.step h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step__text {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.section--how-steps .section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section--how-steps .steps {
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .section--how-steps .steps {
    gap: 1.35rem;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step {
    transition: none;
  }

  .step:hover {
    transform: none;
  }
}

.reassurance {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .reassurance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section--process-gains {
  position: relative;
}

.section--process-gains::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 55% 40% at 8% 20%, rgba(255, 61, 109, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 42% at 92% 75%, rgba(0, 229, 255, 0.055), transparent 52%),
    radial-gradient(ellipse 40% 36% at 50% 100%, rgba(123, 92, 255, 0.04), transparent 50%);
}

.section--process-gains .container {
  position: relative;
  z-index: 1;
}

.section-head--gains {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.reassurance--rich {
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .reassurance--rich {
    gap: 1.35rem;
  }
}

.gain-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, #fff 0%, #fdfcfa 48%, #faf7f3 100%);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 12px 36px rgba(10, 10, 15, 0.06);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.35s ease;
}

.gain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.92;
  pointer-events: none;
}

.gain-card--rose::before {
  background: linear-gradient(90deg, #ff3d6d, #ff8fab);
}

.gain-card--violet::before {
  background: linear-gradient(90deg, #7b5cff, #b4a3ff);
}

.gain-card--cyan::before {
  background: linear-gradient(90deg, #00b4d8, #4ce7ff);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gain-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 92, 255, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.92) inset,
      0 18px 48px rgba(10, 10, 15, 0.09),
      0 0 0 1px rgba(123, 92, 255, 0.05);
  }
}

.gain-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: rgba(10, 10, 15, 0.88);
  background: var(--gradient-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.gain-card__icon svg {
  width: 24px;
  height: 24px;
}

.gain-card--rose .gain-card__icon {
  background: linear-gradient(145deg, rgba(255, 61, 109, 0.14), rgba(255, 140, 180, 0.07));
  color: #c41e4e;
}

.gain-card--violet .gain-card__icon {
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.16), rgba(123, 92, 255, 0.06));
  color: #5b47c4;
}

.gain-card--cyan .gain-card__icon {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.14), rgba(0, 180, 216, 0.06));
  color: #0096b5;
}

.gain-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.gain-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

@media (prefers-reduced-motion: reduce) {
  .gain-card {
    transition: none;
  }

  .gain-card:hover {
    transform: none;
  }
}

/* Pricing page */
.pricing-grid {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

/* Colonnes de grilles 1fr : laisse les cartes se rétrécir correctement avec le texte long. */
.pricing-grid > .price-card {
  min-width: 0;
}

.price-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card--featured {
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transform: translateY(-6px);
}

.price-card--featured:hover {
  transform: translateY(-8px);
}

.price-card__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: rgba(10, 10, 15, 0.55);
  border: 1px solid var(--line);
}

.price-card--featured .price-card__badge.popular {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.price-card h3 {
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.price-card .amount {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}

.price-card .amount span {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--muted);
}

/* Tarifs — grille & cartes enrichies */
.section--pricing .section-head--pricing {
  margin-bottom: clamp(2rem, 4.5vw, 2.85rem);
  max-width: 48rem;
}

.section-head--pricing__lede {
  margin-top: 0.85rem;
  font-size: 1.06rem;
  line-height: 1.58;
  color: var(--muted);
}

.pricing-grid--enhanced {
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .pricing-grid--enhanced {
    align-items: stretch;
  }
}

.pricing-grid--enhanced .price-card {
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(168deg, #fff 0%, #fdfcfa 52%, #faf7f3 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    var(--shadow);
  border-color: rgba(10, 10, 15, 0.07);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.35s ease;
}

.pricing-grid--enhanced .price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
  z-index: 1;
}

.pricing-grid--enhanced .price-card--tier-vitrine::before {
  background: linear-gradient(90deg, #ff3d6d, #ff9ec4);
}

.pricing-grid--enhanced .price-card--tier-complet.price-card--featured::before {
  height: 4px;
  background: var(--gradient);
  background-size: 200% 200%;
}

.pricing-grid--enhanced .price-card--tier-resa::before {
  background: linear-gradient(90deg, #00b4d8, #5cefff);
}

.pricing-grid--enhanced .price-card:hover {
  border-color: rgba(123, 92, 255, 0.12);
}

.pricing-grid--enhanced .price-card--featured {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 24px 56px rgba(123, 92, 255, 0.16),
    0 0 0 1px rgba(123, 92, 255, 0.08);
}

.pricing-grid--enhanced .price-card--featured:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 64px rgba(123, 92, 255, 0.2),
    0 0 0 1px rgba(123, 92, 255, 0.1);
}

.price-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.price-card__title-row h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.price-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 10, 15, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.price-card--tier-vitrine .price-card__icon {
  background: linear-gradient(145deg, rgba(255, 61, 109, 0.14), rgba(255, 160, 200, 0.07));
  color: #c41e4e;
}

.price-card--tier-complet .price-card__icon {
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.18), rgba(123, 92, 255, 0.07));
  color: #5b47c4;
}

.price-card--tier-resa .price-card__icon {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.14), rgba(0, 180, 216, 0.07));
  color: #0096b5;
}

.price-card__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.price-card__features {
  margin: 0.5rem 0 0;
  flex: 1 1 auto;
}

.price-card__foot {
  margin-top: auto;
  padding-top: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-grid--enhanced .price-card {
    transition: none;
  }

  .pricing-grid--enhanced .price-card:not(.price-card--featured):hover {
    transform: none;
  }

  .pricing-grid--enhanced .price-card--featured:hover {
    transform: translateY(-6px);
  }
}

.compare {
  margin-top: 2.75rem;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 10, 15, 0.1);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.88) inset, 0 20px 50px rgba(10, 10, 15, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, #faf7f1 45%, #f2ebe3 100%);
}

.compare::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff3d6d, #c9a961, #7b5cff, #00e5ff);
  opacity: 0.88;
  pointer-events: none;
  z-index: 1;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.compare-row:not(.compare-row--head):nth-child(even) {
  background: rgba(123, 92, 255, 0.035);
}

@media (min-width: 820px) {
  .compare-row {
    grid-template-columns: 1.22fr 1fr 1fr 1fr;
  }

  .compare-cell:not(:last-child) {
    border-right: 1px solid rgba(10, 10, 15, 0.07);
  }

  .compare-row--head .compare-cell:first-child {
    text-align: left;
  }

  .compare-row--head .compare-cell:not(:first-child) {
    text-align: center;
  }

  .compare-row:nth-child(2) .compare-cell--ok,
  .compare-row:nth-child(3) .compare-cell--ok {
    text-align: center;
  }
}

.compare-cell {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(10, 10, 15, 0.08);
  font-size: 0.93rem;
  line-height: 1.45;
}

.compare-row:last-child .compare-cell {
  border-bottom: none;
}

.compare-row--head .compare-cell {
  padding: 1.1rem 1.15rem 1.05rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(10, 10, 15, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, #e8e0d6 100%);
  border-bottom: 1px solid rgba(10, 10, 15, 0.1);
}

.compare-row:nth-child(4) .compare-cell {
  padding-top: 1.15rem;
  padding-bottom: 1.2rem;
}

@media (min-width: 820px) {
  .compare-row:nth-child(3) .compare-cell--ok {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: #4c3db3;
    background: linear-gradient(135deg, rgba(123, 92, 255, 0.14), rgba(255, 61, 109, 0.08));
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    margin: 0.4rem auto;
    width: fit-content;
    max-width: calc(100% - 1.5rem);
    border: 1px solid rgba(123, 92, 255, 0.12);
    line-height: 1.2;
    display: block;
    text-align: center;
  }
}

.compare-cell--muted {
  color: rgba(10, 10, 15, 0.48);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-cell--ok {
  font-weight: 700;
  color: rgba(10, 10, 15, 0.88);
}

@media (min-width: 820px) {
  .compare-row:not(.compare-row--head):hover {
    background: rgba(123, 92, 255, 0.055);
  }

  .compare-row:nth-child(3):hover {
    background: rgba(255, 255, 255, 0.35);
  }

  .compare-row--head:hover {
    background: inherit;
  }

  .compare-row:not(.compare-row--head) .compare-cell:first-child {
    background: rgba(255, 255, 255, 0.4);
  }
}

.legal-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* FAQ — accordéon de base */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  text-align: left;
  font: inherit;
  font-weight: 750;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-chevron {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.3s ease;
}

.faq-item.is-open .faq-panel {
  opacity: 1;
}

.faq-panel-inner {
  padding-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* FAQ — variante premium (page Comment ça marche) */
.faq-section--process {
  position: relative;
}

.faq-section--process::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  background:
    radial-gradient(ellipse 48% 38% at 12% 18%, rgba(255, 61, 109, 0.07), transparent 58%),
    radial-gradient(ellipse 52% 40% at 88% 72%, rgba(123, 92, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 44% 36% at 50% 100%, rgba(0, 229, 255, 0.05), transparent 52%);
}

.faq-section__inner {
  position: relative;
  z-index: 1;
  max-width: min(52rem, 100%);
  margin-inline: auto;
}

.faq-section__head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head.faq-section__head .faq-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.32rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 15, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.section-head.faq-section__head .faq-section__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  background-size: 160% 160%;
}

.faq-section__head h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  margin: 0;
}

.section-head.faq-section__head .faq-section__lede {
  margin: 0.85rem 0 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
}

.faq-list--premium {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-list--premium .faq-item {
  border-bottom: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, #fff 0%, #fdfcfa 45%, #faf7f3 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 40px rgba(10, 10, 15, 0.06);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.35s ease;
}

.faq-list--premium .faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.88;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.faq-list--premium .faq-item--accent-rose::before {
  background: linear-gradient(90deg, #ff3d6d, #ff9ec4);
}

.faq-list--premium .faq-item--accent-violet::before {
  background: linear-gradient(90deg, #7b5cff, #c4b5ff);
}

.faq-list--premium .faq-item--accent-cyan::before {
  background: linear-gradient(90deg, #00b4d8, #5cefff);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .faq-list--premium .faq-item:hover:not(.is-open) {
    transform: translateY(-3px);
    border-color: rgba(123, 92, 255, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 18px 48px rgba(10, 10, 15, 0.08);
  }
}

.faq-list--premium .faq-item.is-open {
  border-color: rgba(123, 92, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 56px rgba(123, 92, 255, 0.12),
    0 0 0 1px rgba(123, 92, 255, 0.06);
}

.faq-list--premium .faq-item.is-open::before {
  opacity: 1;
}

.faq-list--premium .faq-trigger {
  padding: 1.2rem 1.25rem 1.15rem;
  align-items: flex-start;
  gap: 1rem 1.15rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.faq-list--premium .faq-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(123, 92, 255, 0.35);
}

.faq-trigger__num {
  flex-shrink: 0;
  width: 2.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.45;
  padding-top: 0.2em;
  background: var(--gradient);
  background-size: 160% 160%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq-trigger__label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.faq-list--premium .faq-chevron {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 15, 0.1);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(247, 244, 255, 0.65));
  color: rgba(10, 10, 15, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.faq-list--premium .faq-item.is-open .faq-chevron {
  color: rgba(91, 71, 196, 0.95);
  border-color: rgba(123, 92, 255, 0.25);
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.12), rgba(255, 61, 109, 0.06));
}

.faq-list--premium .faq-panel-inner {
  position: relative;
  margin: 0 1.25rem 0;
  padding: 0 0 1.35rem 3.5rem;
  border-top: 1px dashed rgba(10, 10, 15, 0.1);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-list--premium .faq-panel-inner::before {
  content: "";
  position: absolute;
  left: 2.5rem;
  top: 0.85rem;
  bottom: 1.1rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 61, 109, 0.45), rgba(123, 92, 255, 0.5), rgba(0, 229, 255, 0.45));
  opacity: 0.55;
}

@media (max-width: 520px) {
  .faq-list--premium .faq-panel-inner {
    padding-left: 1.15rem;
  }

  .faq-list--premium .faq-panel-inner::before {
    left: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-list--premium .faq-item {
    transition: none;
  }

  .faq-list--premium .faq-item:hover:not(.is-open) {
    transform: none;
  }
}

/* ==========================================
   BANDEAU WHATSAPP APRES FAQ
   ========================================== */

.whatsapp-banner {
  margin: 60px auto;
  max-width: 1100px;
  padding: 0 24px;
}

.whatsapp-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(37, 211, 102, 0.25);
}

.whatsapp-banner__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.whatsapp-banner__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  animation: whatsapp-pulse 3s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}

.whatsapp-banner__left h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.whatsapp-banner__left p {
  font-size: 14px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.whatsapp-banner__features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.whatsapp-banner__features span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.whatsapp-banner__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #fff;
  color: #128c7e;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.whatsapp-banner__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.whatsapp-banner__arrow {
  transition: transform 0.3s ease;
}

.whatsapp-banner__cta:hover .whatsapp-banner__arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .whatsapp-banner__content {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .whatsapp-banner__left {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-banner__features {
    justify-content: center;
  }
}

/* Testimonials */
.testi-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .testi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testi {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.testi .stars {
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.testi q {
  display: block;
  margin: 0.85rem 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(10, 10, 15, 0.86);
}

.testi footer {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

/* CTA band */
.cta-band {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--gradient);
  background-size: 220% 220%;
  color: #fff;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-band {
    animation: prisme-shift 16s ease-in-out infinite;
  }
}

@keyframes prisme-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cta-band h2 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: min(22ch, 96vw);
  margin-inline: auto;
  text-wrap: balance;
  text-shadow: 0 1px 22px rgba(10, 10, 15, 0.12);
}

.cta-band p {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-on-gradient {
  background: #fff;
  color: #0a0a0f;
  box-shadow: 0 18px 44px rgba(10, 10, 15, 0.18);
}

.btn-on-gradient:hover {
  transform: translateY(-2px);
}

/* Contact */
.surface-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.22rem, 2.5vw, 1.55rem);
  letter-spacing: -0.034em;
  line-height: 1.22;
  margin: 0 0 0.85rem;
  color: var(--text);
}

/* Téléphone : le formulaire est masqué ; tablette+ : formulaire actif (voir max-width) */
.form-phone-gate {
  display: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(123, 92, 255, 0.08) 0%, #fff 50%);
  padding: clamp(1.35rem, 4.5vw, 2rem);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 28rem;
  margin-inline: auto;
}

.form-phone-gate__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7b5cff;
}

.form-phone-gate__title {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 3.2vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.form-phone-gate__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-phone-gate a {
  color: #5d3dff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  [data-form-desktop] {
    display: none !important;
  }

  .form-phone-gate {
    display: block;
  }
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 980px) {
  .contact-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.form-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  color: rgba(10, 10, 15, 0.72);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.success-box {
  display: none;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  padding: 1rem;
  color: rgba(6, 78, 59, 0.95);
  font-weight: 650;
}

.success-box.is-visible {
  display: block;
}

.direct-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 1.35rem;
}

.direct-box h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  letter-spacing: -0.028em;
  line-height: 1.25;
}

.direct-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.direct-list a {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2.25rem;
  color: rgba(255, 255, 255, 0.72);
  background: radial-gradient(90% 55% at 50% 0%, rgba(123, 92, 255, 0.14), transparent 52%),
    linear-gradient(168deg, #08080c 0%, var(--bg-dark) 38%, #12121c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 109, 0.45), rgba(201, 169, 97, 0.35), rgba(123, 92, 255, 0.5), rgba(0, 229, 255, 0.4), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.logo--footer {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.footer-links a:hover {
  color: #fff;
}

.footer-mini {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}

.legal-anchor {
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  scroll-margin-top: calc(var(--header-total) + 1rem);
}

/* Progression de lecture (alimentée par app.js) */
.prisme-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 10040;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--gradient);
  pointer-events: none;
  opacity: 0.95;
}

/* JS reveal baseline */
.js [data-reveal] {
  opacity: 0;
}

.js.prefers-reduced-motion [data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cta-band {
    animation: none !important;
  }

  .prisme-scroll-progress {
    display: none !important;
  }

  .template-card:hover .template-card__preview::before {
    opacity: 0 !important;
  }

  .template-card:hover .template-card__preview::after {
    transform: none !important;
  }

  body::before {
    opacity: 0.12;
  }

  body::after {
    opacity: 0.55;
  }

  .hero-home::before,
  .hero-home::after,
  .hero-home .blob,
  .page-hero::before,
  .page-hero::after,
  .section--solution::after,
  .section--styles-teaser::after,
  .section--metiers::after,
  .formule-section::after {
    opacity: 0.28 !important;
  }
}

/* --- Chargement initial (évite l’impression de lag au premier paint) --- */
html.is-site-loading {
  overflow: hidden;
  height: 100%;
}

html.is-site-loading body {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 0%, #14141c 0%, #0a0a0f 50%, #06060a 100%);
  color: var(--text-on-dark);
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.site-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 20%, rgba(123, 92, 255, 0.18), transparent 62%),
    radial-gradient(50% 40% at 20% 80%, rgba(255, 61, 109, 0.1), transparent 55%),
    radial-gradient(45% 40% at 80% 75%, rgba(0, 229, 255, 0.1), transparent 50%);
  pointer-events: none;
}

.site-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
  padding: 2rem;
}

.site-loader__mark {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
  animation: siteLoaderPulse 1.4s var(--ease) infinite;
}

.site-loader__logo {
  display: block;
  width: 48px;
  height: 48px;
}

/* === Templates cards WOW (templates.html only) === */
body[data-page="templates"] .template-grid {
  gap: 32px;
}

body[data-page="templates"] .template-grid .template-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease,
    border-color 0.4s ease;
  will-change: transform;
  opacity: 0;
  transform: translateY(40px);
}

body[data-page="templates"] .template-grid .template-card__preview {
  overflow: hidden;
}

body[data-page="templates"] .template-grid .template-card__preview img {
  transition: transform 4s linear;
  will-change: transform;
}

/* Pas de pseudo « Aperçu live » sur la carte : l’iframe live a déjà .card-preview__live */
body[data-page="templates"] .template-grid .template-card::after {
  content: none;
  display: none;
}

body[data-page="templates"] .template-grid .template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(10, 10, 15, 0.1);
  border-color: var(--line);
}

body[data-page="templates"] .template-grid .template-card:hover::after {
  content: none;
  display: none;
}

/* Pas de cadre interne décoratif sur l’aperçu (évite le « rectangle » au survol) */
body[data-page="templates"] .template-grid .template-card__preview::before,
body[data-page="templates"] .template-grid .template-card__preview::after {
  display: none !important;
  content: none !important;
}

body[data-page="templates"] .template-grid .template-card:hover .template-card__preview img {
  transform: translateY(-60px);
  transition: transform 5s linear;
}

body[data-page="templates"] .template-grid .template-card:not(:hover) .template-card__preview img {
  transform: translateY(0);
  transition: transform 0.8s ease-out;
}

body[data-page="templates"] .template-grid .template-card.is-visible {
  animation: templateCardFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body[data-page="templates"] .template-grid .template-card.is-visible:nth-child(1) { animation-delay: 0ms; }
body[data-page="templates"] .template-grid .template-card.is-visible:nth-child(2) { animation-delay: 100ms; }
body[data-page="templates"] .template-grid .template-card.is-visible:nth-child(3) { animation-delay: 200ms; }
body[data-page="templates"] .template-grid .template-card.is-visible:nth-child(4) { animation-delay: 300ms; }

@keyframes templateCardFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none) {
  body[data-page="templates"] .template-grid .template-card.is-tapped {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(10, 10, 15, 0.1);
    border-color: var(--line);
  }

  body[data-page="templates"] .template-grid .template-card.is-tapped::after {
    content: none;
    display: none;
  }

  body[data-page="templates"] .template-grid .template-card.is-tapped .template-card__preview img {
    transform: translateY(-60px);
    transition: transform 5s linear;
  }
}

/* === CARD PREVIEW IFRAMES (templates live) === */
body[data-page="templates"] .card-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
  margin-bottom: 16px;
}

body[data-page="templates"] .card-preview__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 250%;
  height: 250%;
  border: none;
  transform: scale(0.4) translateY(0);
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}

@keyframes cardPreviewIframePan {
  0% {
    transform: scale(0.4) translateY(0);
  }
  100% {
    transform: scale(0.4) translateY(-58%);
  }
}

body[data-page="templates"] .card-preview.is-loaded .card-preview__iframe {
  animation: cardPreviewIframePan 12s ease-in-out infinite alternate;
}

html.prefers-reduced-motion body[data-page="templates"] .card-preview.is-loaded .card-preview__iframe {
  animation: none;
  transform: scale(0.4) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="templates"] .card-preview.is-loaded .card-preview__iframe {
    animation: none !important;
    transform: scale(0.4) translateY(0) !important;
  }
}

body[data-page="templates"] .card-preview__loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a24, #0e0e16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.5s ease;
}

body[data-page="templates"] .card-preview.is-loaded .card-preview__loader {
  opacity: 0;
  pointer-events: none;
}

body[data-page="templates"] .card-preview__loader-bar {
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

body[data-page="templates"] .card-preview__loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #ff3d6d, #7b5cff);
  border-radius: 2px;
  animation: cardPreviewLoaderSlide 1.5s ease-in-out infinite;
}

@keyframes cardPreviewLoaderSlide {
  0% { left: -30%; }
  100% { left: 100%; }
}

body[data-page="templates"] .card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  background: transparent;
}

/* Supprime tous les overlays "écran" sur les cartes live iframe */
body[data-page="templates"] .template-card__preview:has(.card-preview)::before,
body[data-page="templates"] .template-card__preview:has(.card-preview)::after,
body[data-page="templates"] .template-card:has(.card-preview) .template-card__chrome,
body[data-page="templates"] .template-card:has(.card-preview) .template-card__preview-label {
  display: none !important;
  content: none !important;
}

/* Bonus: indicateur live */
body[data-page="templates"] .card-preview__live {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #eafff3;
  background: rgba(10, 20, 12, 0.72);
  border: 1px solid rgba(95, 255, 164, 0.45);
  border-radius: 999px;
  padding: 4px 8px;
}

body[data-page="templates"] .card-preview__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dff9e;
  box-shadow: 0 0 0 0 rgba(61, 255, 158, 0.7);
  animation: cardPreviewLivePulse 1.8s ease-out infinite;
}

@keyframes cardPreviewLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 158, 0.7); }
  100% { box-shadow: 0 0 0 10px rgba(61, 255, 158, 0); }
}

@media (max-width: 768px) {
  body[data-page="templates"] .card-preview {
    aspect-ratio: 3 / 4;
  }
}


.site-loader__name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-loader__bar {
  width: min(200px, 60vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-loader__bar-fill {
  display: block;
  height: 100%;
  width: 32%;
  border-radius: inherit;
  background: var(--gradient);
  transform-origin: left center;
  animation: siteLoaderBar 1.1s ease-in-out infinite;
}

.site-loader__hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

@keyframes siteLoaderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes siteLoaderBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(320%);
  }
}

html.prefers-reduced-motion .site-loader__mark {
  animation: none;
}

html.prefers-reduced-motion .site-loader__bar-fill {
  animation: none;
  width: 44%;
  transform: none;
}
