/* ==========================================================================
   ORION — Bento Editorial (Phase 1 fondations + Phase 2 hero)
   Charge APRÈS styles.css pour override progressif.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #08090C;
  --bg-elevated: #101116;
  --bg-card: #16171D;
  --bg-soft: #0E0F14;

  /* Texte */
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --text-dim: #71717A;

  /* Bordures */
  --line: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(99, 102, 241, 0.45);

  /* Accents produit */
  --brand: #6366F1;          /* CRM / CTA primaire */
  --brand-2: #4F46E5;
  --accent-cyan: #22D3EE;    /* ERP */
  --accent-violet: #A78BFA;  /* Suite */
  --accent-success: #10B981;

  /* Cards & overlays */
  --card: rgba(22, 23, 29, 0.78);
  --card-strong: rgba(16, 17, 22, 0.94);
  --overlay-soft: rgba(255, 255, 255, 0.03);
  --overlay-medium: rgba(255, 255, 255, 0.06);
  --overlay-hover: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.04);

  /* Header */
  --header-bg: rgba(8, 9, 12, 0.55);
  --header-border: rgba(255, 255, 255, 0.06);

  /* Geometry */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  /* Largeur de contenu adaptative — voir le bloc « Largeurs d'écran » plus bas */
  --content-max: 100vw;

  /* Shadows */
  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 30px 60px rgba(0,0,0,0.5);
  --shadow-soft:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 24px rgba(0,0,0,0.32);

  /* Backgrounds gradients (utilises par body::before) */
  --bg-gradient-1: rgba(99, 102, 241, 0.18);
  --bg-gradient-2: rgba(34, 211, 238, 0.12);
  --bg-gradient-3: rgba(167, 139, 250, 0.10);

  /* Désactive le canvas animé */
  --canvas-opacity: 0;

  /* Typo */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

:root[data-theme="light"] {
  --bg: #FAFAF9;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-soft: #F4F4F5;

  --text: #0A0A0B;
  --muted: #52525B;
  --text-dim: #71717A;

  --line: rgba(10, 10, 11, 0.08);
  --hairline: rgba(10, 10, 11, 0.05);
  --hairline-strong: rgba(10, 10, 11, 0.14);
  --border-hover: rgba(99, 102, 241, 0.55);

  --card: rgba(255, 255, 255, 0.9);
  --card-strong: #FFFFFF;
  --overlay-soft: rgba(10, 10, 11, 0.03);
  --overlay-medium: rgba(10, 10, 11, 0.06);
  --overlay-hover: rgba(10, 10, 11, 0.08);
  --input-bg: #FFFFFF;

  --header-bg: rgba(255, 255, 255, 0.72);
  --header-border: rgba(10, 10, 11, 0.06);

  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 30px 60px rgba(10, 10, 11, 0.08);
  --shadow-soft:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 8px 20px rgba(10, 10, 11, 0.06);

  --bg-gradient-1: rgba(99, 102, 241, 0.10);
  --bg-gradient-2: rgba(34, 211, 238, 0.07);
  --bg-gradient-3: rgba(167, 139, 250, 0.06);
}

/* ---------- 1 bis. Largeurs d'écran ----------
   Le contenu occupe une part décroissante de la largeur du viewport :
   - jusqu'au Full HD (1920px)  : 100 %
   - WQHD (2560px)              :  85 %
   - 4K (3840px) et au-delà     :  75 %
   Les valeurs intermédiaires sont interpolées linéairement, sans palier visible.
   La gouttière minimale (--content-gutter) évite que le contenu touche les bords. */
@media (min-width: 1920px) {
  :root {
    /* 1920px → 100 %  |  2560px → 85 % */
    --content-max: calc(40vw + 1152px);
  }
}

@media (min-width: 2560px) {
  :root {
    /* 2560px → 85 %  |  3840px → 75 % */
    --content-max: calc(55vw + 768px);
  }
}

@media (min-width: 3840px) {
  :root {
    --content-max: 75vw;
  }
}

/* ---------- 2. Base & fonts ---------- */
html, body {
  font-family: var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 600;
}

.stats strong,
.bento-metric,
.price-value {
  font-family: var(--font-mono);
  font-feature-settings: "tnum", "lnum";
  letter-spacing: -0.02em;
}

/* ---------- 3. Background : orbes + grain ---------- */
#bg-canvas { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%, var(--bg-gradient-1), transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 28%, var(--bg-gradient-2), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 95%, var(--bg-gradient-3), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

:root[data-theme="light"] body::after { opacity: 0.04; }

/* ---------- 4. Header ---------- */
.site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--header-border);
  padding-top: 14px;
  padding-bottom: 14px;
}

.main-nav { gap: 26px; }

.main-nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 180ms ease;
}

.main-nav a:hover { color: var(--text); }
.main-nav a.is-current:not(.nav-cta) { color: var(--text); }

.nav-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.theme-toggle {
  border-color: var(--hairline-strong);
  background: var(--overlay-soft);
}

/* ---------- 5. Hero refondu (Bento) ---------- */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  min-height: auto;
  padding:
    clamp(130px, 22vh, 220px)
    var(--content-pad)
    clamp(60px, 10vh, 140px);
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.hero::before, .hero::after { display: none !important; }

.hero-content {
  max-width: var(--content-max);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.5vh, 36px);
}

.hero-top { max-width: none; }

/* Le kicker historique est masqué — remplacé par le badge ci-dessous */
.hero .kicker { display: none; }

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.bento-badge .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-success);
}

.bento-badge .dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent-success);
  opacity: 0.5;
  animation: bento-pulse 2.4s ease-out infinite;
}

@keyframes bento-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--text);
  max-width: 18ch;
  margin: 0;
}

.hero h1 .accent-line {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted) !important;
  max-width: 58ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-actions .btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.hero-actions .btn-ghost {
  background: var(--overlay-soft) !important;
  border-color: var(--hairline-strong) !important;
  color: var(--text) !important;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 500;
}

.hero-actions .btn-ghost:hover {
  background: var(--overlay-medium) !important;
  border-color: var(--border-hover) !important;
  transform: translateY(-1px);
}

.hero-actions .btn-install {
  background: transparent !important;
  border-color: var(--hairline-strong) !important;
  color: var(--muted) !important;
}

.hero-actions .btn-install:hover {
  color: var(--text) !important;
}

/* Anciens blocs du hero — temporairement masqués (migreront en bento phase 3) */
.hero .hero-pillars,
.hero .hero-launch,
.hero .hero-business-grid,
.hero .stats {
  display: none;
}

/* ---------- 6. Sections suivantes (héritent simplement de la nouvelle palette) ---------- */
.section-head h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-head .kicker {
  color: var(--brand);
}

.feature-card,
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-card p { color: var(--muted); }
.feature-card ul { color: var(--text); }

/* Boutons standards */
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  border-radius: 999px;
}

.btn-primary:hover {
  background: var(--text);
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-ghost {
  border-radius: 999px;
  border-color: var(--hairline-strong);
  background: var(--overlay-soft);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--overlay-medium);
  transform: translateY(-1px);
}

/* Switches (pricing / produits) */
.product-switch,
.pricing-switch,
.billing-switch {
  background: var(--bg-card);
  border-color: var(--line);
  border-radius: 999px;
  padding: 5px;
}

.switch-btn,
.pricing-switch-btn,
.billing-switch-btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
}

.switch-btn.is-active,
.pricing-switch-btn.is-active,
.billing-switch-btn.is-active {
  background: var(--brand);
  color: #FFFFFF;
}

/* Forms */
input, select, textarea {
  background: var(--input-bg);
  border-color: var(--line);
  border-radius: 12px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- 7. Bento Grid (phase 3) ---------- */
.bento-section {
  margin-top: clamp(40px, 6vh, 80px);
}

.bento-section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(28px, 4vh, 48px);
  max-width: 720px;
}

.bento-section-head .kicker {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.bento-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.bento-section-head .lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

/* Span utilities */
.bento-tile--span-4  { grid-column: span 4; }
.bento-tile--span-6  { grid-column: span 6; }
.bento-tile--span-8  { grid-column: span 8; }
.bento-tile--span-12 { grid-column: span 12; }

/* Tile base */
.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-column: span 4;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.bento-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tile-accent, transparent),
    transparent
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.bento-tile:hover {
  border-color: var(--tile-accent, var(--border-hover));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 32px rgba(0,0,0,0.4),
    0 0 0 1px var(--tile-accent-glow, transparent);
}

.bento-tile:hover::before {
  opacity: 1;
}

.bento-tile h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.bento-tile p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0;
}

.bento-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bento-tile-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bento-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--overlay-soft);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}

.bento-tile-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-tile-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: gap 180ms ease, color 180ms ease;
}

.bento-tile-link::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 180ms ease;
}

.bento-tile-link:hover {
  color: var(--tile-accent, var(--text));
  gap: 10px;
}

.bento-tile-link:hover::after {
  transform: translateX(2px);
}

/* Produit accents */
.bento-tile--crm {
  --tile-accent: var(--brand);
  --tile-accent-glow: rgba(99, 102, 241, 0.18);
}
.bento-tile--crm .bento-tile-badge {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.32);
  color: #C7D2FE;
}
.bento-tile--crm .bento-tile-icon {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #C7D2FE;
}

.bento-tile--erp {
  --tile-accent: var(--accent-cyan);
  --tile-accent-glow: rgba(34, 211, 238, 0.18);
}
.bento-tile--erp .bento-tile-badge {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.32);
  color: #A5F3FC;
}
.bento-tile--erp .bento-tile-icon {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.3);
  color: #A5F3FC;
}

.bento-tile--suite {
  --tile-accent: var(--accent-violet);
  --tile-accent-glow: rgba(167, 139, 250, 0.18);
}
.bento-tile--suite .bento-tile-badge {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.34);
  color: #DDD6FE;
}
.bento-tile--suite .bento-tile-icon {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.32);
  color: #DDD6FE;
}

/* Tile featured (offre lancement) */
.bento-tile--featured {
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 80% 100% at 100% 100%, rgba(167, 139, 250, 0.18), transparent 60%),
    var(--bg-card);
  border-color: rgba(167, 139, 250, 0.28);
  --tile-accent: var(--accent-violet);
  --tile-accent-glow: rgba(167, 139, 250, 0.24);
}

.bento-tile--featured h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 22ch;
}

.bento-tile--featured .bento-tile-badge {
  width: fit-content;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.bento-tile--featured p {
  max-width: 50ch;
}

.bento-tile--featured .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Tile metric (KPI mono giant) */
.bento-tile--metric {
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  background:
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(99, 102, 241, 0.14), transparent 70%),
    var(--bg-card);
}

.bento-metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.bento-metric {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.bento-metric-sub {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 26ch;
}

/* Tiles neutres (pillars trust) */
.bento-tile--trust .bento-tile-icon {
  width: 44px;
  height: 44px;
}

.bento-tile--trust .bento-tile-icon svg {
  width: 22px;
  height: 22px;
}

/* Responsive bento */
@media (max-width: 980px) {
  .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .bento-tile--span-4  { grid-column: span 3; }
  .bento-tile--span-6  { grid-column: span 6; }
  .bento-tile--span-8,
  .bento-tile--span-12 { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bento-tile,
  .bento-tile--span-4,
  .bento-tile--span-6,
  .bento-tile--span-8,
  .bento-tile--span-12 {
    grid-column: 1 / -1;
  }
  .bento-tile--featured h3 {
    font-size: 1.5rem;
  }
  .bento-metric {
    font-size: 3.2rem;
  }
}

/* ---------- 8. Header polish ---------- */
.site-header {
  padding: 10px var(--content-pad);
}

.logo {
  height: 36px;
}

.logo img {
  filter: brightness(1) contrast(1);
  transition: opacity 200ms ease;
}

.logo:hover img {
  opacity: 0.85;
}

.theme-toggle {
  width: 36px;
  height: 36px;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* Position nav-cta avant theme-toggle visuellement (dans la nav) */
.nav-cta {
  margin-left: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 6px 18px rgba(99, 102, 241, 0.18);
}

:root[data-theme="light"] .nav-cta {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 6px 18px rgba(10, 10, 11, 0.12);
}

.menu-toggle {
  border-color: var(--hairline-strong);
  background: var(--overlay-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  margin-top: clamp(60px, 10vh, 120px);
  padding: 0;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, var(--bg-soft));
  color: var(--muted);
  text-align: left;
}

.footer-inner {
  width: min(var(--content-max), calc(100% - 2 * var(--content-gutter)));
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-wordmark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--accent-cyan));
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  max-width: 32ch;
  margin: 0;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #6EE7B7;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin: 0 0 14px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 180ms ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.footer-legal a:hover {
  color: var(--muted);
}

/* Lien discret vers le back-office */
.footer-legal a.footer-admin-link {
  opacity: 0.7;
}

.footer-legal a.footer-admin-link:hover {
  opacity: 1;
  color: var(--text);
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. Page Tarifs (pricing) ---------- */

/* Hero compact (h1 sur 2 lignes) */
.pricing-hero {
  padding:
    clamp(120px, 18vh, 170px)
    var(--content-pad)
    clamp(36px, 6vh, 64px) !important;
}

.pricing-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  max-width: 16ch;
}

/* Section plans */
.pricing-section {
  margin-top: 0;
}

/* Controls : layout colonne centré (billing au-dessus du scope) */
.bento-pricing-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto clamp(32px, 5vh, 56px);
}

/* Segmented control pill */
.bento-switch {
  display: inline-flex;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.bento-switch .pricing-switch-btn,
.bento-switch .billing-switch-btn {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.bento-switch .pricing-switch-btn:hover,
.bento-switch .billing-switch-btn:hover {
  color: var(--text);
}

.bento-switch .pricing-switch-btn.is-active,
.bento-switch .billing-switch-btn.is-active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 12px rgba(0,0,0,0.25);
}

/* Scope : couleur produit sur l'onglet actif */
.bento-switch--scope .pricing-switch-btn[data-scope="crm"].is-active {
  background: rgba(99, 102, 241, 0.16);
  color: #C7D2FE;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 14px rgba(99, 102, 241, 0.2);
}
.bento-switch--scope .pricing-switch-btn[data-scope="erp"].is-active {
  background: rgba(34, 211, 238, 0.14);
  color: #A5F3FC;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 14px rgba(34, 211, 238, 0.18);
}
.bento-switch--scope .pricing-switch-btn[data-scope="bundle"].is-active {
  background: rgba(167, 139, 250, 0.16);
  color: #DDD6FE;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 14px rgba(167, 139, 250, 0.2);
}

/* Pricing grid */
.pricing-grid {
  margin-top: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

/* Card pricing refondue */
.pricing-grid .feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.pricing-grid .feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pricing-grid .feature-card .kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.34);
  color: #DDD6FE;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
}

.pricing-grid .feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.pricing-grid .feature-card .price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 6px 0 2px;
  min-width: 0;
}

.pricing-grid .feature-card .price-value {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.pricing-grid .feature-card .price-label {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.9rem;
  white-space: nowrap;
}

.pricing-grid .feature-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Bullets avec check icon */
.pricing-grid .feature-card ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
}

.pricing-grid .feature-card ul li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.pricing-grid .feature-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

/* CTA button */
.pricing-grid .feature-card .hero-actions {
  margin-top: auto;
  padding-top: 14px;
}

.pricing-grid .feature-card .choose-plan-btn {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  font-family: var(--font-body);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.pricing-grid .feature-card .choose-plan-btn:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
}

.pricing-grid .feature-card .choose-plan-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Popular plan : gradient violet, lift, highlight */
.pricing-grid .feature-card.feature-card-popular {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(167, 139, 250, 0.24), transparent 70%),
    var(--bg-card);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(167, 139, 250, 0.22),
    0 30px 70px rgba(0, 0, 0, 0.45);
}

.pricing-grid .feature-card.feature-card-popular::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-violet), transparent);
  border-radius: 2px;
}

.pricing-grid .feature-card.feature-card-popular .choose-plan-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-violet) 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 8px 24px rgba(99, 102, 241, 0.35);
}

.pricing-grid .feature-card.feature-card-popular .choose-plan-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 14px 36px rgba(99, 102, 241, 0.5);
}

/* Responsive pricing */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .bento-switch {
    justify-content: center;
  }
}

/* ---------- 11. Page Contact ---------- */

.contact-section {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

/* Form container */
.bento-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0;
}

/* Inputs */
.bento-form input[type="text"],
.bento-form input[type="email"],
.bento-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-family: var(--font-body);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.bento-form input::placeholder,
.bento-form textarea::placeholder {
  color: var(--text-dim);
}

.bento-form input:focus,
.bento-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-soft);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.bento-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

/* Product radio segmented */
.bento-form .product-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bento-form .product-option {
  display: block;
  cursor: pointer;
}

.bento-form .product-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bento-form .product-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.bento-form .product-option:hover span {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.bento-form .product-option--crm input:checked + span {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.55);
  color: #E0E7FF;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 8px 20px rgba(99, 102, 241, 0.18);
}
.bento-form .product-option--erp input:checked + span {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.55);
  color: #CFFAFE;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 8px 20px rgba(34, 211, 238, 0.18);
}
.bento-form .product-option--suite input:checked + span {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.55);
  color: #EDE9FE;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3), 0 8px 20px rgba(167, 139, 250, 0.2);
}

/* Captcha */
.bento-form .captcha-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-form .captcha-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 6px 6px 6px 4px;
  margin-top: 0;
}

.bento-form .captcha-question {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--bg-soft);
  border-radius: 8px;
}

.bento-form .captcha-box input[type="text"] {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
}

.bento-form .captcha-box input[type="text"]:focus {
  background: var(--bg-soft);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.22);
}

.bento-form .captcha-refresh {
  border: 1px solid var(--hairline-strong) !important;
  background: transparent !important;
  color: var(--muted) !important;
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  min-width: auto;
}

.bento-form .captcha-refresh:hover {
  background: var(--overlay-medium) !important;
  color: var(--text) !important;
  border-color: var(--border-hover) !important;
  transform: none;
}

/* Submit */
.bento-form .form-submit {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-violet) 100%);
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 8px 24px rgba(99, 102, 241, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.bento-form .form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 14px 36px rgba(99, 102, 241, 0.5);
}

.bento-form .form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Contact info aside */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: border-color 200ms ease, transform 200ms ease;
}

.contact-info-tile:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.contact-info-tile .bento-tile-icon {
  margin-bottom: 4px;
}

.contact-info-tile h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.015em;
}

.contact-info-tile p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}

.contact-info-tile p a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: border-color 180ms ease, color 180ms ease;
}

.contact-info-tile p a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.contact-info-dim {
  color: var(--text-dim) !important;
  font-size: 0.84rem !important;
  margin-top: -2px !important;
}

.contact-info-tile--accent {
  background:
    radial-gradient(ellipse 100% 100% at 100% 100%, rgba(167, 139, 250, 0.18), transparent 70%),
    var(--bg-card);
  border-color: rgba(167, 139, 250, 0.32);
}

.contact-info-tile--accent .bento-tile-badge {
  width: fit-content;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.34);
  color: #DDD6FE;
}

.contact-info-tile--accent .bento-tile-link {
  margin-top: 4px;
}

/* Lead modal restylé */
.lead-modal-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--hairline-strong) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  padding: 22px 26px !important;
  box-shadow: var(--shadow) !important;
}

.lead-modal-card.is-success {
  border-color: rgba(16, 185, 129, 0.55) !important;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(16, 185, 129, 0.2) !important;
}

.lead-modal-card.is-error {
  border-color: rgba(252, 110, 129, 0.55) !important;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(252, 110, 129, 0.2) !important;
}

.lead-modal-card.is-info {
  border-color: rgba(99, 102, 241, 0.55) !important;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(99, 102, 241, 0.22) !important;
}

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

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .bento-form .product-options {
    grid-template-columns: 1fr;
  }
  .bento-form .captcha-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bento-form .form-submit {
    align-self: stretch;
    text-align: center;
  }
}

/* ---------- 12. Page Fonctionnalites ---------- */

.features-section {
  margin-top: 0;
}

.features-grid-bento {
  min-height: 200px;
}

/* Loading / empty states */
.features-loading-tile,
.features-empty-tile {
  text-align: center;
  padding: clamp(40px, 8vh, 80px) 24px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 1px dashed var(--hairline-strong) !important;
  box-shadow: none !important;
}

.features-loading-tile p,
.features-empty-tile p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.features-loading-tile:hover,
.features-empty-tile:hover {
  transform: none;
  border-color: var(--hairline-strong) !important;
}

/* Feature tiles (dynamiques) */
.feature-bento-tile h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0;
}

.feature-bento-tile.bento-tile--span-6 h3 {
  font-size: 1.3rem;
}

.feature-bento-tile p {
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Ligne titre + bouton photo cote a cote */
.feature-bento-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feature-bento-title-row h3 {
  flex: 1;
  min-width: 0;
}

/* Bouton photo (inline a droite du titre) */
.feature-media-trigger {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.feature-media-trigger svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.feature-media-trigger:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
  transform: scale(1.05);
}

.feature-media-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.feature-media-count {
  font-variant-numeric: tabular-nums;
}

/* Zone toggle "Afficher toutes les fonctionnalites" */
.features-toggle-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.features-toggle-all {
  font-size: 0.92rem;
  padding: 11px 22px;
}

.features-toggle-all[hidden] {
  display: none !important;
}

/* L'onglet ERP actif change la couleur des tiles primary dynamiquement
   geree par la classe ajoutee en JS (bento-tile--crm ou bento-tile--erp) */

/* ---------- 13. Page Produits ---------- */

.products-section {
  margin-top: 0;
}

.products-panels {
  margin-top: 0;
}

.product-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.product-panel[hidden] {
  display: none !important;
}

.product-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  min-height: 520px;
}

.product-panel-head {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
}

.product-panel--crm .product-panel-head {
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(99, 102, 241, 0.16), transparent 70%),
    var(--bg-card);
}

.product-panel--erp .product-panel-head {
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(34, 211, 238, 0.14), transparent 70%),
    var(--bg-card);
}

.product-panel-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.05;
}

.product-panel-tagline {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
}

.product-panel-highlights {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-panel-highlights li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.45;
}

.product-panel-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.product-panel-head .hero-actions {
  margin-top: auto;
  padding-top: 12px;
}

.product-panel-badge {
  width: fit-content;
}

.product-panel-badge--crm {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.38);
  color: #C7D2FE;
}

.product-panel-badge--erp {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.38);
  color: #A5F3FC;
}

/* Features pane (droite) */
.product-panel-features {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-panel-features .features-block-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin: 0;
  padding: 0;
}

/* Features list refondue (stack moderne) */
.bento-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.bento-features-list .feature-item-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 130px 1fr auto auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-body);
  transition: background 180ms ease, padding 180ms ease;
}

.bento-features-list .feature-item-btn:hover {
  background: var(--overlay-soft);
  padding-left: 18px;
}

.bento-features-list .feature-item-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.bento-features-list .feature-item-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-features-list .feature-item-title {
  font-weight: 500;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.bento-features-list .feature-item-media-badge {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.product-panel--erp .bento-features-list .feature-item-media-badge {
  background: var(--accent-cyan);
}

.bento-features-list .feature-item-chevron {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.bento-features-list .feature-item-btn:hover .feature-item-chevron {
  color: var(--brand);
  transform: translateX(3px);
}

.product-panel--erp .bento-features-list .feature-item-btn:hover .feature-item-chevron {
  color: var(--accent-cyan);
}

.product-panel-features .features-loading,
.product-panel-features .features-empty {
  margin: 0;
  color: var(--muted);
  padding: 14px;
  font-size: 0.94rem;
  list-style: none;
}

.product-panel-features .features-actions {
  margin-top: 8px;
}

.product-panel-features .features-toggle {
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 9px 18px;
}

/* Feature detail modal restylé */
.feature-detail-modal {
  z-index: 1100;
}

.feature-detail-backdrop {
  background: rgba(5, 6, 12, 0.78);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}

.feature-detail-card {
  width: min(2000px, 94vw);
  max-width: none;
  height: min(92vh, 1900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 18px);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: clamp(20px, 2.4vw, 44px);
}

.feature-detail-card > .feature-detail-category,
.feature-detail-card > .feature-detail-title,
.feature-detail-card > .feature-detail-description {
  flex: 0 0 auto;
}

.feature-detail-card > .feature-carousel {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.feature-detail-close {
  border: 1px solid var(--hairline-strong);
  background: var(--overlay-soft);
  color: var(--text);
  border-radius: 999px;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
  top: 14px;
  right: 14px;
}

.feature-detail-close:hover {
  background: var(--overlay-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.feature-detail-category {
  font-family: var(--font-mono);
  color: var(--brand) !important;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.feature-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text) !important;
  line-height: 1.15;
  padding-right: 56px;
}

.feature-detail-description {
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(0.98rem, 1.1vw, 1.15rem);
  max-width: 90ch;
}

.feature-carousel {
  background: var(--bg-soft);
  border-color: var(--line);
  border-radius: 14px;
  margin: 0;
  overflow: hidden;
}

.feature-carousel-viewport {
  flex: 1 1 0;
  min-height: 0;
  aspect-ratio: auto;
  height: auto;
}

.feature-carousel-viewport figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.feature-carousel-viewport img,
.feature-carousel-viewport video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-carousel-prev,
.feature-carousel-next {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--hairline-strong);
  color: var(--text);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 180ms ease, transform 180ms ease;
}

.feature-carousel-prev:hover,
.feature-carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.feature-carousel-indicators .dot.is-active {
  background: var(--brand);
}

/* Responsive products */
@media (max-width: 980px) {
  .product-panel-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .product-panel-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .bento-features-list .feature-item-btn {
    grid-template-columns: 1fr auto auto;
    gap: 4px 12px;
  }
  .bento-features-list .feature-item-category {
    grid-column: 1 / -1;
    font-size: 0.64rem;
  }
}

/* ---------- 14. Responsive hero ---------- */
@media (max-width: 820px) {
  .hero {
    padding: 110px 18px 56px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
    letter-spacing: -0.035em;
  }
  .main-nav { gap: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- 14b. Section FAQ ---------- */

.faq-section {
  margin-top: clamp(40px, 6vh, 80px);
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.35;
  transition: color 180ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-chevron {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  background: var(--muted);
  border-radius: 1px;
  transition: transform 220ms ease, background 220ms ease;
}

.faq-chevron::before {
  width: 12px;
  height: 2px;
}

.faq-chevron::after {
  width: 2px;
  height: 12px;
}

.faq-item[open] .faq-chevron::after {
  transform: scaleY(0);
}

.faq-item[open] .faq-chevron::before {
  background: var(--brand);
}

.faq-answer {
  padding: 0 22px 22px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.faq-answer a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 102, 241, 0.4);
  padding-bottom: 1px;
}

.faq-answer a:hover {
  border-bottom-color: var(--brand);
}

@media (max-width: 820px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-item summary {
    font-size: 0.96rem;
    padding: 16px 18px;
  }
  .faq-answer {
    padding: 0 18px 18px;
  }
}

/* ============================================================
   15. Light mode — Ajustements de contraste
   Les pastels claires marchent en dark mais perdent du
   contraste sur fond clair. Ici on utilise des teintes
   plus saturees pour preserver la lisibilite.
   ============================================================ */

/* --- Bento tiles produits (index.html, features dynamiques, etc.) --- */
:root[data-theme="light"] .bento-tile--crm .bento-tile-badge {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.45);
  color: #4338CA;
}
:root[data-theme="light"] .bento-tile--crm .bento-tile-icon {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.40);
  color: #4338CA;
}

:root[data-theme="light"] .bento-tile--erp .bento-tile-badge {
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(8, 145, 178, 0.45);
  color: #0E7490;
}
:root[data-theme="light"] .bento-tile--erp .bento-tile-icon {
  background: rgba(8, 145, 178, 0.10);
  border-color: rgba(8, 145, 178, 0.40);
  color: #0E7490;
}

:root[data-theme="light"] .bento-tile--suite .bento-tile-badge {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.45);
  color: #6D28D9;
}
:root[data-theme="light"] .bento-tile--suite .bento-tile-icon {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.40);
  color: #6D28D9;
}

/* Tile featured (offre lancement) - light mode */
:root[data-theme="light"] .bento-tile--featured {
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 100% at 100% 100%, rgba(167, 139, 250, 0.10), transparent 60%),
    var(--bg-card);
  border-color: rgba(124, 58, 237, 0.30);
}

:root[data-theme="light"] .bento-tile--featured .bento-tile-badge {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.30);
  color: #6D28D9;
}

/* Bento metric (KPI gradient text) - light mode */
:root[data-theme="light"] .bento-tile--metric {
  background:
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 70%),
    var(--bg-card);
}

:root[data-theme="light"] .bento-metric {
  background: linear-gradient(135deg, #4338CA 0%, #0E7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- Pricing : switch scope actif + badge populaire --- */
:root[data-theme="light"] .bento-switch--scope .pricing-switch-btn[data-scope="crm"].is-active {
  background: rgba(99, 102, 241, 0.12);
  color: #4338CA;
}
:root[data-theme="light"] .bento-switch--scope .pricing-switch-btn[data-scope="erp"].is-active {
  background: rgba(8, 145, 178, 0.12);
  color: #0E7490;
}
:root[data-theme="light"] .bento-switch--scope .pricing-switch-btn[data-scope="bundle"].is-active {
  background: rgba(124, 58, 237, 0.12);
  color: #6D28D9;
}

/* Badge kicker en haut des pricing cards ("POUR DEBUTER", "POPULAIRE", "PACK ULTIME") */
:root[data-theme="light"] .pricing-grid .feature-card .kicker {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.40);
  color: #6D28D9;
}

/* Pricing card popular - gradient + border en mode clair */
:root[data-theme="light"] .pricing-grid .feature-card.feature-card-popular {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(124, 58, 237, 0.10), transparent 70%),
    var(--bg-card);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 0 0 1px rgba(124, 58, 237, 0.18),
    0 30px 70px rgba(10, 10, 11, 0.10);
}

/* --- Products : panels CRM/ERP badges + background gradients --- */
:root[data-theme="light"] .product-panel-badge--crm {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.45);
  color: #4338CA;
}

:root[data-theme="light"] .product-panel-badge--erp {
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(8, 145, 178, 0.45);
  color: #0E7490;
}

:root[data-theme="light"] .product-panel--crm .product-panel-head {
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(99, 102, 241, 0.10), transparent 70%),
    var(--bg-card);
}

:root[data-theme="light"] .product-panel--erp .product-panel-head {
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(8, 145, 178, 0.10), transparent 70%),
    var(--bg-card);
}

/* Hover chevron accent dans features list ERP en light */
:root[data-theme="light"] .product-panel--erp .bento-features-list .feature-item-btn:hover .feature-item-chevron {
  color: #0E7490;
}

:root[data-theme="light"] .product-panel--erp .bento-features-list .feature-item-media-badge {
  background: #0891B2;
}

/* --- Contact form : product options checked --- */
:root[data-theme="light"] .bento-form .product-option--crm input:checked + span {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.55);
  color: #4338CA;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.28),
    0 8px 20px rgba(99, 102, 241, 0.14);
}
:root[data-theme="light"] .bento-form .product-option--erp input:checked + span {
  background: rgba(8, 145, 178, 0.10);
  border-color: rgba(8, 145, 178, 0.55);
  color: #0E7490;
  box-shadow:
    0 0 0 1px rgba(8, 145, 178, 0.28),
    0 8px 20px rgba(8, 145, 178, 0.14);
}
:root[data-theme="light"] .bento-form .product-option--suite input:checked + span {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.55);
  color: #6D28D9;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.28),
    0 8px 20px rgba(124, 58, 237, 0.16);
}

/* Contact info tile accent (devis) */
:root[data-theme="light"] .contact-info-tile--accent {
  background:
    radial-gradient(ellipse 100% 100% at 100% 100%, rgba(124, 58, 237, 0.10), transparent 70%),
    var(--bg-card);
  border-color: rgba(124, 58, 237, 0.28);
}

:root[data-theme="light"] .contact-info-tile--accent .bento-tile-badge {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.38);
  color: #6D28D9;
}

/* --- Footer status badge --- */
:root[data-theme="light"] .footer-status {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.40);
  color: #047857;
}

/* --- Hero accent line gradient text (light) --- */
:root[data-theme="light"] .hero h1 .accent-line {
  background: linear-gradient(135deg, #4338CA 0%, #0E7490 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- Bento badge (badge hero) en light --- */
:root[data-theme="light"] .bento-badge {
  background: var(--bg-elevated);
  border-color: rgba(10, 10, 11, 0.14);
  color: var(--text);
}

/* --- Bento tile link hover color (utilise --tile-accent) --- */
/* Les --tile-accent restent en couleurs principales (var(--brand)).
   En light mode, on les remplace pour les versions sombres */
:root[data-theme="light"] .bento-tile--crm   { --tile-accent: #4338CA; }
:root[data-theme="light"] .bento-tile--erp   { --tile-accent: #0E7490; }
:root[data-theme="light"] .bento-tile--suite { --tile-accent: #6D28D9; }

/* Hover border accent en light mode */
:root[data-theme="light"] .bento-tile--crm:hover   { border-color: #4338CA; }
:root[data-theme="light"] .bento-tile--erp:hover   { border-color: #0E7490; }
:root[data-theme="light"] .bento-tile--suite:hover { border-color: #6D28D9; }

/* --- Background body radial gradients - light mode plus discrets --- */
:root[data-theme="light"] body::before {
  filter: blur(60px);
}

/* --- Pricing : disabled choose-plan-btn --- */
:root[data-theme="light"] .pricing-grid .feature-card .choose-plan-btn {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: rgba(10, 10, 11, 0.14);
}

:root[data-theme="light"] .pricing-grid .feature-card .choose-plan-btn:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* --- Highlights bullets (product-panel-highlights, plan-summary, pricing) -
   inchanges car vert reste bien visible sur clair --- */

/* ---------- 21. Carrousel d'images du hero ---------- */

/* Le hero devient le cadre de rognage des visuels */
.hero {
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1100ms ease;
}

/* Fondu enchaine + leger zoom lent (effet Ken Burns) sur l'image affichee */
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1100ms ease, transform 9000ms linear;
}

/* Voile de lisibilite en deux couches :
   1. un halo elliptique concentre derriere la colonne de texte, qui s'efface vite
   2. une teinte generale legere + fondu du bas vers la couleur de page
   L'image reste donc nettement visible sur toute la partie droite du hero. */
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 92% at 15% 50%,
      rgba(8, 9, 12, 0.92) 0%,
      rgba(8, 9, 12, 0.58) 55%,
      rgba(8, 9, 12, 0) 82%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.46) 0%, rgba(8, 9, 12, 0.2) 40%, var(--bg) 100%);
}

:root[data-theme="light"] .hero-carousel::after {
  background:
    radial-gradient(ellipse 42% 92% at 15% 50%,
      rgba(250, 250, 249, 0.94) 0%,
      rgba(250, 250, 249, 0.6) 55%,
      rgba(250, 250, 249, 0) 82%),
    linear-gradient(180deg, rgba(250, 250, 249, 0.38) 0%, rgba(250, 250, 249, 0.14) 40%, var(--bg) 100%);
}

/* Le contenu passe au-dessus des visuels */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Pastilles de navigation + bouton pause */
.hero-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-carousel-nav .dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--hairline-strong);
  cursor: pointer;
  transition: background 200ms ease, width 240ms ease;
}

.hero-carousel-nav .dot:hover {
  background: var(--muted);
}

.hero-carousel-nav .dot.is-active {
  width: 44px;
  background: var(--brand);
}

.hero-carousel-nav .dot:focus-visible,
.hero-carousel-pause:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.hero-carousel-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--overlay-soft);
  color: var(--muted);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.hero-carousel-pause:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.hero-carousel-pause svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.hero-carousel-pause .icon-play {
  display: none;
}

.hero-carousel-pause[aria-pressed="true"] .icon-pause {
  display: none;
}

.hero-carousel-pause[aria-pressed="true"] .icon-play {
  display: block;
}

/* Mobile : le texte occupe toute la largeur, le voile doit etre uniforme */
@media (max-width: 820px) {
  .hero-carousel::after {
    background: linear-gradient(180deg, rgba(8, 9, 12, 0.8) 0%, rgba(8, 9, 12, 0.7) 55%, var(--bg) 100%);
  }

  :root[data-theme="light"] .hero-carousel::after {
    background: linear-gradient(180deg, rgba(250, 250, 249, 0.86) 0%, rgba(250, 250, 249, 0.76) 55%, var(--bg) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active {
    transform: none;
    transition: opacity 200ms ease;
  }
}

/* ---------------------------------------------------------------------------
   Rendu serveur : features.php et pricing.php ecrivent la totalite du catalogue
   dans le HTML, pour que les robots — dont ceux des moteurs generatifs, qui
   n'executent pas de JavaScript — puissent le lire. Les elements hors de la vue
   par defaut sont masques a l'affichage, mais restent presents dans le document.
   Le JavaScript reconstruit la grille des le premier changement d'onglet, et
   cette classe disparait alors d'elle-meme.
   --------------------------------------------------------------------------- */
.is-ssr-hidden {
  display: none;
}
/* ---------------------------------------------------------------------------
   Pages legales : mentions legales, CGV, politique de confidentialite.
   Mise en page longue, lisible, sans carrousel ni bento.
   --------------------------------------------------------------------------- */
.legal-hero {
  padding: 150px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.62;
}
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 100px;
  font-size: 1rem;
  line-height: 1.75;
}
.legal-content h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 52px 0 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(127, 127, 127, 0.18);
}
.legal-content h3 {
  font-size: 1.05rem;
  margin: 30px 0 10px;
}
.legal-content p,
.legal-content li {
  opacity: 0.86;
}
.legal-content ul,
.legal-content ol {
  margin: 12px 0 18px;
  padding-left: 22px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content dl {
  margin: 16px 0;
}
.legal-content dt {
  font-weight: 600;
  margin-top: 14px;
}
.legal-content dd {
  margin: 2px 0 0;
  opacity: 0.86;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.92rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.18);
  vertical-align: top;
}
.legal-table th {
  font-weight: 600;
  opacity: 0.72;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-table-wrap {
  overflow-x: auto;
}

/* Emplacement a completer : volontairement voyant, pour qu'aucune donnee
   manquante ne parte en ligne sans etre vue. */
.legal-todo {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px dashed rgba(245, 158, 11, 0.65);
  color: #F59E0B;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
}
.legal-notice {
  margin: 28px 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.94rem;
}

@media (max-width: 820px) {
  .legal-hero {
    padding: 110px 18px 30px;
  }
  .legal-content {
    padding: 0 18px 70px;
  }
}