/* ============================================================
   CleanTaCaisse — Obsidian Velvet / Cyber-Chic Edition
   Dark neon luxury · Based on Stitch AI design
   ============================================================ */

/* ===== PAGE REVEAL (wait for fonts) ===== */
/* Note: do NOT use transform on body — it creates a containing block that
   traps fixed-positioned overlays (e.g. the Cal.com booking modal). */
body {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ready {
  opacity: 1;
}


/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Surface tiers (dark to light) */
  --surface-lowest: #000000;
  --surface-dim: #0e0e10;
  --surface: #0e0e10;
  --surface-low: #131315;
  --surface-container: #19191c;
  --surface-high: #1f1f22;
  --surface-highest: #262528;
  --surface-bright: #2c2c2f;

  /* Primary — The Neon */
  --primary: #ff7cf5;
  --primary-dim: #ff51fa;
  --primary-container: #ff5af9;
  --on-primary: #580058;
  --on-primary-container: #440044;
  --on-primary-fixed: #000000;

  /* Secondary — The Electric */
  --secondary: #bf81ff;
  --secondary-dim: #9c42f4;
  --secondary-container: #7701d0;
  --on-secondary-container: #f0dcff;

  /* Tertiary */
  --tertiary: #79acff;
  --tertiary-dim: #609efd;

  /* Error */
  --error: #ff6e84;
  --error-dim: #d73357;

  /* Text */
  --on-surface: #f9f5f8;
  --on-surface-variant: #adaaad;
  --on-background: #f9f5f8;
  --outline: #767577;
  --outline-variant: #48474a;

  /* Fonts */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-label: 'Manrope', sans-serif;

  /* Radii */
  --radius: 0.125rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.5rem;
  --radius-full: 0.75rem;
  --radius-card: 12px;
  --radius-section: 16px;

  /* Sizing */
  --max-width: 1280px;

  /* Neon glow */
  --neon-shadow: 0 0 30px rgba(255, 124, 245, 0.15);
  --neon-shadow-strong: 0 0 40px rgba(255, 124, 245, 0.25);
  --neon-glow-hover: 0 0 10px rgba(255, 124, 245, 0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--on-background);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

/* ===== NEON UTILITIES ===== */
.neon-text {
  background: linear-gradient(45deg, var(--primary), var(--primary-container));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neon-bg {
  background: linear-gradient(45deg, var(--primary), var(--primary-container));
}

/* ===== CYBER-GLOW BACKGROUND ===== */
.cyber-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.cyber-glow::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 800px;
  height: 800px;
  background: rgba(156, 66, 244, 0.10);
  border-radius: 50%;
  filter: blur(150px);
}

.cyber-glow::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 81, 250, 0.05);
  border-radius: 50%;
  filter: blur(120px);
}

/* ===== HEADER / TOP APP BAR ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(14, 14, 16, 0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--neon-shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  background: linear-gradient(to right, var(--primary), var(--primary-container));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 2px;
}

.header-nav {
  display: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
}

.header-nav a.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions .btn-sm {
  display: none;
}

@media (min-width: 768px) {
  .header-actions .btn-sm { display: inline-flex; }
}

/* Gradient fade, not a hard border line (No-Line Rule) */
.header-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--surface-highest), transparent);
  opacity: 0.5;
}

/* Mobile nav */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-surface);
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: #000000;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

.mobile-nav a {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff !important;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}

.mobile-nav a:hover { color: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--primary-container));
  color: var(--on-primary-fixed);
  padding: 16px 32px;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 20px rgba(255, 124, 245, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 124, 245, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active { transform: scale(0.95); }

.btn-secondary {
  background: rgba(31, 31, 34, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(72, 71, 74, 0.2);
  color: var(--on-surface);
  padding: 16px 32px;
  border-radius: var(--radius-xl);
}

.btn-secondary:hover {
  background: var(--surface-high);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

.btn-block { width: 100%; justify-content: center; }

/* ===== SECTION HEADERS ===== */
.section-label {
  font-family: var(--font-label);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--on-surface);
  line-height: 1.05;
}

.section-title-lg { font-size: clamp(2rem, 5vw, 3.75rem); }
.section-title-md { font-size: clamp(1.75rem, 4vw, 3rem); }
.section-title-sm { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.section-desc {
  font-family: var(--font-body);
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

/* ===== HERO (Accueil) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-lowest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-lowest), rgba(14, 14, 16, 0.5), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 160px 0 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-content { padding: 120px 0 60px; }
}

.hero-content h1 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--on-surface-variant);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ===== HERO INFO CARDS ===== */
.hero-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 880px;
  margin: 8px 0 40px;
}

.hero-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-info-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.hero-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
}

.hero-info-icon .material-symbols-outlined {
  font-size: 24px;
}

.hero-info-icon-primary {
  background: rgba(255, 124, 245, 0.12);
  border: 1px solid rgba(255, 124, 245, 0.30);
  color: var(--primary);
}

.hero-info-card:hover .hero-info-icon-primary {
  box-shadow: 0 0 16px rgba(255, 124, 245, 0.35);
  border-color: rgba(255, 124, 245, 0.55);
}

.hero-info-icon-secondary {
  background: rgba(191, 129, 255, 0.12);
  border: 1px solid rgba(191, 129, 255, 0.30);
  color: var(--secondary);
}

.hero-info-card:hover .hero-info-icon-secondary {
  box-shadow: 0 0 16px rgba(191, 129, 255, 0.35);
  border-color: rgba(191, 129, 255, 0.55);
}

.hero-info-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-info-text h3 {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--on-surface);
  margin: 0 0 4px;
}

.hero-info-text p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-surface-variant);
  margin: 0;
  max-width: none;
}

.hero-info-card--primary .hero-info-text strong {
  color: var(--primary);
  font-weight: 600;
}

.hero-info-card--secondary .hero-info-text strong {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 4px 0 32px;
  }
  .hero-info-card {
    padding: 14px 16px;
    gap: 14px;
  }
  .hero-info-icon {
    width: 40px;
    height: 40px;
  }
  .hero-info-icon .material-symbols-outlined {
    font-size: 22px;
  }
  .hero-info-text h3 {
    font-size: 14px;
  }
  .hero-info-text p {
    font-size: 12.5px;
  }
}

/* ===== HERO SIMPLE (Formules / Contact) ===== */
.hero-simple {
  padding: 160px 0 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-simple h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-simple p {
  font-size: 18px;
  color: var(--outline);
  max-width: 640px;
  line-height: 1.5;
}

/* ===== BEFORE / AFTER ===== */
.before-after {
  padding: 96px 0;
  background: var(--surface);
  overflow: hidden;
}

.ba-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(72, 71, 74, 0.2);
  box-shadow: 0 0 40px rgba(255, 124, 245, 0.1);
}

.ba-label {
  position: absolute;
  top: 24px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ba-label-before {
  left: 24px;
  background: rgba(38, 37, 40, 0.8);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(72, 71, 74, 0.3);
}

.ba-label-after {
  right: 24px;
  background: rgba(38, 37, 40, 0.8);
  backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid rgba(255, 124, 245, 0.3);
  box-shadow: 0 0 15px rgba(255, 124, 245, 0.2);
}

.ba-before-layer,
.ba-after-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ba-after-layer { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(255, 124, 245, 0.5);
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-highest);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 124, 245, 0.6);
}

.ba-handle-knob svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

/* ===== SERVICES (Zigzag) ===== */
/* Background shift from before-after (surface) → services (surface-low) */
.services {
  padding: 96px 0;
  background: var(--surface-low);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.service-block {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .service-block { flex-direction: row; }
  .service-block.reverse { flex-direction: row-reverse; }
}

.service-img {
  width: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-high);
  aspect-ratio: 4/3;
  border: 1px solid rgba(72, 71, 74, 0.1);
  box-shadow: 0 0 40px rgba(255, 124, 245, 0.05);
  transition: box-shadow 0.5s;
}

.service-block:hover .service-img {
  box-shadow: 0 0 40px rgba(255, 124, 245, 0.15);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.7s, opacity 0.5s;
}

.service-block:hover .service-img img {
  transform: scale(1.05);
  opacity: 0.85;
}

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-lowest) 0%, transparent 60%);
  opacity: 0.8;
}

.service-img .service-icon {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  font-size: 36px;
  opacity: 0.5;
}

.service-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-text > p.service-note {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 24px;
}

@media (min-width: 768px) {
  .service-block,
  .service-block.reverse { align-items: stretch; }
}

.service-text h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.service-text > p {
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  line-height: 1.6;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-list-item .check {
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.service-list-item.check-secondary .check { color: var(--secondary); }
.service-list-item.check-tertiary .check { color: var(--tertiary-dim); }

.service-list-item h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 16px;
}

/* ===== OPTIONS SPECIFIQUES ===== */
/* Section separation via background shift, not border (No-Line Rule) */
.options-section {
  padding: 64px 0;
  margin-top: 48px;
  background: var(--surface-low);
  border-radius: var(--radius-card);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .options-grid { grid-template-columns: 1fr; }
}

.option-card {
  background: var(--surface-highest);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid rgba(72, 71, 74, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: border-color 0.3s;
}

.option-card:hover { border-color: rgba(255, 124, 245, 0.5); }

.option-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.option-card:hover .option-icon { box-shadow: var(--neon-shadow); }

.option-icon span { color: var(--primary); font-size: 24px; }

.option-card h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
}

.option-card .price {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 20px;
  color: var(--on-surface-variant);
}

.option-card .note {
  font-size: 12px;
  color: var(--outline);
}

/* ===== CATEGORY SELECTOR ===== */
.category-section {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.category-step-label {
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--outline);
  scroll-margin-top: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(72, 71, 74, 0.2);
  background: var(--surface-low);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.category-btn:hover {
  border-color: rgba(255, 124, 245, 0.4);
}

.category-btn.active {
  border-color: var(--primary);
  background: rgba(255, 124, 245, 0.05);
  box-shadow: 0 0 20px rgba(255, 124, 245, 0.1);
}

.category-btn img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: bottom;
  margin-top: auto;
  margin-bottom: 12px;
  transition: filter 0.3s;
}

.category-btn.active img {
  filter: drop-shadow(0 0 15px rgba(255, 124, 245, 0.3));
}

.category-btn .cat-name {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--on-surface);
  font-size: 15px;
  min-height: 2.8em;
  display: flex;
  align-items: flex-end;
  text-align: center;
  justify-content: center;
}

.category-btn .cat-examples {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--outline);
  margin-top: 4px;
}


/* Utilitaire sur devis banner */
.category-devis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--surface-container);
  font-size: 14px;
  color: var(--on-surface-variant);
}

.category-devis strong {
  color: var(--on-surface);
}

/* Flash Siège button */
.flash-btn {
  background: rgba(121, 172, 255, 0.15);
  color: var(--tertiary);
  border: 1px solid rgba(121, 172, 255, 0.3);
}

.flash-btn:hover {
  background: rgba(121, 172, 255, 0.25);
}

/* ===== FORMULA COMPARISON CARDS (Formules page) ===== */
.formulas-section {
  padding: 0 0 96px;
}

.formulas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .formulas-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

/* Left column: Flash + Essentiel stacked */
.formulas-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Confort & Premium stretch to match left column height */
@media (min-width: 1024px) {
  .formulas-grid > .formula-card {
    display: flex;
    flex-direction: column;
  }
}

.formula-card {
  background: var(--surface-low);
  border-radius: var(--radius-card);
  border: 1px solid rgba(72, 71, 74, 0.2);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.5s;
}

.formula-card:hover {
  border-color: rgba(72, 71, 74, 0.4);
  background: var(--surface-container);
}

/* Confort — secondary accent */
.formula-card.tier-confort {
  background: var(--surface-container);
  border-color: rgba(119, 1, 208, 0.2);
  box-shadow: 0 0 30px rgba(119, 1, 208, 0.05);
}

.formula-card.tier-confort::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-container), var(--secondary));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.formula-card.tier-confort:hover { border-color: rgba(119, 1, 208, 0.4); }

/* Premium — primary accent, elevated */
.formula-card.tier-premium {
  background: var(--surface-high);
  border-color: rgba(255, 124, 245, 0.3);
  box-shadow: 0 0 40px rgba(255, 124, 245, 0.1);
  z-index: 10;
}

/* Premium no longer scaled — stretches to match left column */

.formula-card.tier-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--primary-container));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.formula-card.tier-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 124, 245, 0.05), transparent);
  border-radius: var(--radius-card);
  pointer-events: none;
}

.formula-card.tier-premium:hover {
  box-shadow: 0 0 60px rgba(255, 124, 245, 0.2);
  border-color: rgba(255, 124, 245, 0.5);
}

.formula-tier-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tier-essentiel .formula-tier-label { color: var(--outline); }
.tier-confort .formula-tier-label { color: var(--secondary); }
.tier-premium .formula-tier-label { color: var(--primary); }

/* Flash Siège card — tertiary accent */
.formula-card.tier-flash {
  background: var(--surface-container);
  border-color: rgba(121, 172, 255, 0.15);
}

.formula-card.tier-flash:hover {
  border-color: rgba(121, 172, 255, 0.35);
}

.formula-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.formula-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 28px;
  color: var(--on-surface);
}

.tier-premium .formula-name { font-weight: 900; font-size: 32px; }

.formula-price {
  font-family: var(--font-headline);
  font-weight: 700;
  transition: opacity 0.15s;
}

.tier-essentiel .formula-price { font-size: 24px; color: var(--primary); }
.tier-confort .formula-price { font-size: 24px; color: var(--secondary); }
.tier-premium .formula-price { font-size: 28px; color: var(--primary); }

.formula-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 124, 245, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 124, 245, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.formula-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.formula-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.formula-list li .icon {
  font-size: 20px;
  margin-top: 1px;
  flex-shrink: 0;
}

.tier-essentiel .formula-list .icon { color: var(--outline); }
.tier-confort .formula-list .icon { color: var(--secondary-dim); }
.tier-premium .formula-list .icon { color: var(--primary-dim); }

.formula-list li.included {
  color: var(--on-surface);
  font-weight: 500;
}

.formula-list li.included .icon { color: var(--secondary); }
.tier-premium .formula-list li.included .icon { color: var(--primary); }

.formula-list li.bonus {
  color: var(--primary);
  font-weight: 500;
}

.tier-confort .formula-list li.bonus { color: var(--secondary); }
.tier-confort .formula-list li.bonus .icon { color: var(--secondary); }

.formula-btn {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: block;
}

.tier-essentiel .formula-btn {
  background: var(--surface-highest);
  color: var(--on-surface);
  border: 1px solid rgba(72, 71, 74, 0.2);
}

.tier-essentiel .formula-btn:hover {
  background: var(--surface-bright);
  border-color: rgba(72, 71, 74, 0.5);
}

.tier-confort .formula-btn {
  background: rgba(119, 1, 208, 0.2);
  color: var(--on-secondary-container);
  border: 1px solid rgba(119, 1, 208, 0.3);
}

.tier-confort .formula-btn:hover { background: rgba(119, 1, 208, 0.4); }

.tier-premium .formula-btn {
  background: linear-gradient(45deg, var(--primary), var(--primary-container));
  color: var(--on-primary-fixed);
}

.tier-premium .formula-btn:hover {
  box-shadow: 0 0 20px rgba(255, 124, 245, 0.4);
}

/* ===== PREREQUISITES (Bon à savoir) ===== */
.prerequisites {
  margin-top: 80px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.prerequisites-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prerequisites-header .material-symbols-outlined {
  color: var(--secondary);
  font-size: 24px;
}

.prerequisites-header h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin: 0;
}

.prerequisites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.prerequisite-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.prerequisite-item > .material-symbols-outlined {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(191, 129, 255, 0.10);
  border: 1px solid rgba(191, 129, 255, 0.25);
  color: var(--secondary);
  font-size: 22px;
}

.prerequisite-item h4 {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin: 0 0 4px;
}

.prerequisite-item p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-surface-variant);
  margin: 0;
}

.prerequisite-item p strong {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .prerequisites {
    margin-top: 56px;
    padding: 24px 20px;
  }
  .prerequisites-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .prerequisites-header h3 {
    font-size: 16px;
  }
}

/* ===== OPTIONS A LA CARTE ===== */
/* Background shift: formulas (surface) → options (surface-container-lowest) */
.options-carte {
  padding: 96px 0;
  background: var(--surface-lowest);
  overflow: hidden;
}

/* Background shift: options (lowest) → difference (surface-container) */

.options-carte-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .options-carte-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .options-carte-grid { grid-template-columns: repeat(4, 1fr); }
}

.option-carte-card {
  background: rgba(14, 14, 16, 0.6);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid rgba(72, 71, 74, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
}

.option-carte-card:hover { border-color: rgba(119, 1, 208, 0.3); }
.option-carte-card.accent-primary:hover { border-color: rgba(255, 124, 245, 0.3); }
.option-carte-card.accent-error:hover { border-color: rgba(215, 51, 87, 0.3); }

.option-carte-card h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
  transition: color 0.3s;
}

.option-carte-card:hover h3 { color: var(--secondary); }
.option-carte-card.accent-primary:hover h3 { color: var(--primary); }
.option-carte-card.accent-error:hover h3 { color: var(--error-dim); }

.option-carte-card .sub {
  font-size: 12px;
  color: var(--outline);
  margin-top: 4px;
}

.option-carte-card .sub.primary { color: var(--primary); }

.option-carte-price {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 20px;
  color: var(--on-surface-variant);
  white-space: nowrap;
}

/* ===== LA DIFFERENCE SECTION ===== */
.difference {
  padding: 96px 0;
  background: var(--surface-container);
}

.difference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .difference-grid { grid-template-columns: 1fr 1fr; }
}

.difference-img {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.difference-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.7s;
}

.difference-img:hover img { filter: grayscale(0%); }

.difference-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--surface-lowest), transparent);
  pointer-events: none;
}

.difference-img::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 124, 245, 0.2), rgba(156, 66, 244, 0.2));
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.7s;
  z-index: -1;
}

.difference-img:hover::before { opacity: 1; }

.difference-text h2 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 32px;
}

.difference-text p {
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.difference-text p.muted {
  color: var(--outline);
  font-size: 16px;
  margin-bottom: 40px;
}

.difference-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.difference-stat span:first-child {
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 700;
  display: block;
}

.difference-stat span:last-child {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--outline);
  margin-top: 4px;
  display: block;
}

.difference-stat.primary span:first-child { color: var(--primary); }
.difference-stat.secondary span:first-child { color: var(--secondary); }

.difference-stats-divider {
  width: 1px;
  height: 48px;
  background: rgba(72, 71, 74, 0.3);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 96px;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 7fr 5fr; gap: 96px; }
}

.contact-form {
  background: rgba(25, 25, 28, 0.6);
  backdrop-filter: blur(20px);
  padding: 32px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(72, 71, 74, 0.2);
  box-shadow: 0 0 40px rgba(255, 124, 245, 0.05);
  position: relative;
}

@media (min-width: 768px) {
  .contact-form { padding: 48px; }
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.contact-form h2 {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
}

/* Focus: border glows with primary neon (Input Fields rule) */
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 1px 8px rgba(255, 124, 245, 0.3);
}

.form-field textarea { resize: none; min-height: 100px; }

.form-field label {
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  transition: all 0.3s;
  pointer-events: none;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -16px;
  font-size: 11px;
  color: var(--primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-info-block h3 {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 18px;
  color: var(--on-surface);
  display: block;
  line-height: 1.5;
}

.contact-info-block .contact-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.contact-info-block a {
  font-family: var(--font-headline);
  font-weight: 700;
}

.contact-info-block .sub {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.contact-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-high);
  border: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface);
  transition: all 0.3s;
  cursor: pointer;
}

.contact-social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 124, 245, 0.2);
}

.contact-social-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-map {
  flex: 1;
  min-height: 300px;
  background: var(--surface-highest);
  border-radius: var(--radius-card);
  border: 1px solid rgba(72, 71, 74, 0.3);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map .pin {
  font-size: 40px;
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(255, 124, 245, 0.8));
}

/* ===== FOOTER ===== */
/* ===== PRO / B2B SECTION ===== */
.pro-section {
  padding: 96px 0;
  background: var(--surface-lowest);
  position: relative;
  overflow: hidden;
}

.pro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(156, 66, 244, 0.04) 0%, transparent 50%),
    linear-gradient(315deg, rgba(255, 124, 245, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.pro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.pro-card {
  background: var(--surface-high);
  border-radius: var(--radius-card);
  border: 1px solid rgba(72, 71, 74, 0.15);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pro-card:hover {
  border-color: rgba(255, 124, 245, 0.3);
  box-shadow: 0 0 30px rgba(255, 124, 245, 0.08);
}

.pro-card-icon {
  font-size: 32px;
  color: var(--primary);
}

.pro-card h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
  color: var(--on-surface);
}

.pro-card p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  padding: 64px 0 0;
  background: var(--surface-lowest);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Brand column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-logo {
  height: 72px;
  width: 72px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  color: var(--primary);
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-high);
  border: 1px solid rgba(72, 71, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  transition: all 0.3s;
}

.footer-social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 124, 245, 0.2);
}

/* Footer columns */
.footer-col h4 {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--primary); }

.footer-col p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* Footer bottom */
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(to right, transparent, rgba(72, 71, 74, 0.15), transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero-content h1 { font-size: 2.5rem; }
  .services-list { gap: 48px; }
  .formulas-grid { max-width: 420px; margin: 0 auto; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
