/* ==========================================================================
   RESTO CAISSE — FEUILLE DE STYLE OFFICIELLE
   Charte graphique :
   - Rouge : #FF1A1A (boutons principaux, accents)
   - Noir : #0B0B0C (surfaces sombres, texte sur boutons rouges, typographie principale)
   - Blanc : #FFFFFF (fonds principaux, contrastes)
   - Gris clair / neutre : #9AA0A6 (bordures, séparateurs légers)
   - Gris texte secondaire : #4A4D52 (contraste WCAG AAA > 7:1 sur fond blanc)
   - Ambre : #FFB020 (ponctuel si nécessaire)
   Police : Inter, sans-serif
   ========================================================================== */

:root {
  --color-red: #FF1A1A;
  --color-red-hover: #E01414;
  --color-black: #0B0B0C;
  --color-black-surface: #121214;
  --color-black-card: #18181B;
  --color-white: #FFFFFF;
  --color-gray-light: #9AA0A6;
  --color-gray-border: #E2E4E8;
  --color-gray-text: #4A4D52;
  --color-gray-bg: #F8F9FA;
  --color-amber: #FFB020;
  --color-error: #D91414;
  --color-success: #0F8A5F;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max-width: 1200px;
  --header-height: 64px;
  --header-height-mobile: 56px;
  --transition-speed: 0.2s;
  --border-radius-sm: 6px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-speed) ease;
}

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

/* Accessibility Focus */
:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: inherit;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  margin-bottom: 0.75rem;
}

.eyebrow--dark {
  color: var(--color-gray-light);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-gray-text);
  max-width: 680px;
  line-height: 1.6;
}

.section-desc--dark {
  color: var(--color-gray-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
  white-space: normal;
  text-decoration: none;
  gap: 0.5rem;
  cursor: pointer;
}

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

.btn:active {
  transform: translateY(0);
}

/* Primary Button: Red background, White text */
.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  border: 1px solid var(--color-red);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--color-red-hover);
  border-color: var(--color-red-hover);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(255, 26, 26, 0.32);
}

/* Secondary Button: Clean outline */
.btn-secondary {
  background-color: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.btn-secondary--light {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary--light:hover, .btn-secondary--light:focus-visible {
  background-color: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   1. EN-TÊTE (HEADER) — EFFET VERRE & ADAPTATIF AU THÈME DE FOND
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              backdrop-filter 0.35s ease, 
              -webkit-backdrop-filter 0.35s ease, 
              border-color 0.35s ease, 
              box-shadow 0.35s ease, 
              color 0.35s ease, 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
  .site-header {
    height: var(--header-height-mobile);
  }
}

.site-header.is-scrolled {
  height: 58px;
}

@media (max-width: 1024px) {
  .site-header.is-scrolled {
    height: 52px;
  }
}

/* ==========================================================================
   THÈME CLAIR (FOND BLANC) : ÉCRITURE NOIRE & VERRE BLANC
   « fach arrier plan beda nave bare ctaba noir et nave bar kamla beda o fiha chwia dyal effect dyal zage »
   ========================================================================== */
.site-header.theme-light {
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  color: var(--color-black);
}

.site-header.theme-light.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   THÈME SOMBRE (FOND NOIR) : ÉCRITURE BLANCHE & VERRE SOMBRE
   « ila arrier noire ecreture tweli blan li f nav bare »
   ========================================================================== */
.site-header.theme-dark {
  background-color: rgba(11, 11, 12, 0.65);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: var(--color-white);
}

.site-header.theme-dark.is-scrolled {
  background-color: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border-bottom: none;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

@media (max-width: 1024px) {
  .brand-logo {
    height: 26px;
  }
}

/* Logos selon le thème */
.brand-logo--light {
  display: block;
}
.brand-logo--dark {
  display: none;
}

.site-header.theme-dark .brand-logo--light {
  display: none;
}
.site-header.theme-dark .brand-logo--dark {
  display: block;
}

/* Navigation principale épurée (texte pur, sans capsule ni ligne) */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.92rem;
  padding: 0.4rem 0;
  border: none;
  background: transparent;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

/* Liens en Thème Clair (écriture noire, sans effet de fond ni ligne) */
.site-header.theme-light .nav-link {
  color: #4A4D52;
  font-weight: 500;
  background: transparent;
  border: none;
}

.site-header.theme-light .nav-link:hover,
.site-header.theme-light .nav-link:focus-visible,
.site-header.theme-light .nav-link.is-active {
  color: #0B0B0C;
  font-weight: 600;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Liens en Thème Sombre (écriture blanche, sans effet de fond ni ligne) */
.site-header.theme-dark .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  background: transparent;
  border: none;
}

.site-header.theme-dark .nav-link:hover,
.site-header.theme-dark .nav-link:focus-visible,
.site-header.theme-dark .nav-link.is-active {
  color: #FFFFFF;
  font-weight: 600;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Actions à droite */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 0.85rem;
}

/* Bouton d'action dans l'en-tête avec reflet verre */
.header-actions .btn {
  min-height: 36px;
  padding: 0.45rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(255, 26, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 26, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Décalage pour le scroll sticky */
section[id], [id="demonstration"], [id="fonctionnement"], [id="stock"] {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

/* Alignement net pour #solution : masque intégralement le bandeau de logos lors du clic */
#solution {
  scroll-margin-top: 50px;
}

@media (max-width: 1024px) {
  section[id], [id="demonstration"], [id="fonctionnement"], [id="stock"] {
    scroll-margin-top: calc(var(--header-height-mobile) + 1rem);
  }

  #solution {
    scroll-margin-top: 45px;
  }
}

/* Bouton hamburger mobile */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.menu-toggle-icon {
  width: 22px;
  height: 2px;
  position: relative;
  transition: all var(--transition-speed) ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  transition: all var(--transition-speed) ease;
}

.menu-toggle-icon::before {
  top: -7px;
}

.menu-toggle-icon::after {
  bottom: -7px;
}

/* Hamburger Thème Clair (traits noirs) */
.site-header.theme-light .menu-toggle {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.site-header.theme-light .menu-toggle:hover,
.site-header.theme-light .menu-toggle:focus-visible {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.25);
}

.site-header.theme-light .menu-toggle-icon,
.site-header.theme-light .menu-toggle-icon::before,
.site-header.theme-light .menu-toggle-icon::after {
  background-color: #0B0B0C;
}

/* Hamburger Thème Sombre (traits blancs) */
.site-header.theme-dark .menu-toggle {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.theme-dark .menu-toggle:hover,
.site-header.theme-dark .menu-toggle:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header.theme-dark .menu-toggle-icon,
.site-header.theme-dark .menu-toggle-icon::before,
.site-header.theme-dark .menu-toggle-icon::after {
  background-color: var(--color-white);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
  }

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

  .main-nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.28s ease, 
                visibility 0.28s, 
                top 0.3s ease,
                background-color 0.3s ease;
  }

  /* Menu tiroir mobile en thème sombre */
  .site-header.theme-dark .main-nav {
    background: rgba(11, 11, 12, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  .site-header.theme-dark .main-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
  }

  .site-header.theme-dark .main-nav .nav-link:hover,
  .site-header.theme-dark .main-nav .nav-link.is-active {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
  }

  /* Menu tiroir mobile en thème clair */
  .site-header.theme-light .main-nav {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(0, 0, 0, 0.05);
  }

  .site-header.theme-light .main-nav .nav-link {
    color: #4A4D52;
  }

  .site-header.theme-light .main-nav .nav-link:hover,
  .site-header.theme-light .main-nav .nav-link.is-active {
    background: transparent;
    border: none;
    color: #0B0B0C;
    font-weight: 600;
  }

  .site-header.is-scrolled .main-nav {
    top: 52px;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1.05rem;
    border: none;
    background: transparent;
  }

  .main-nav .mobile-cta {
    display: flex;
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 26, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

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

/* ==========================================================================
   2. PREMIER ÉCRAN (HERO) — CENTRÉ ET AÉRÉ
   ========================================================================== */
.hero-section--centered {
  padding: 5rem 0 4.5rem;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section--centered {
    padding: 3.5rem 0 3rem;
  }
}

.hero-centered-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

/* Animations d’apparition progressive */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--anim-delay, 0s);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-gray-bg);
  border: 1px solid var(--color-gray-border);
  padding: 0.4rem 1.15rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-badge-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.eyebrow--hero {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-black);
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-title--centered {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--color-black);
  margin-bottom: 1.5rem;
  max-width: 900px;
}

@media (max-width: 992px) {
  .hero-title--centered {
    font-size: 2.85rem;
  }
}

@media (max-width: 600px) {
  .hero-title--centered {
    font-size: 2.15rem;
    line-height: 1.2;
  }
  .hero-br {
    display: inline;
  }
}

.hero-description--centered {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--color-gray-text);
  max-width: 660px;
  margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
  .hero-description--centered {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
}

.hero-actions--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-actions--centered {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions--centered .btn {
    width: 100%;
  }
}

/* ==========================================================================
   2. BIS. BANDEAU DE DÉFILEMENT (LOGOS EN VERRE 3D BLANC SANS ARRIÈRE-PLAN)
   ========================================================================== */
.trust-marquee-section {
  width: 100%;
  background-color: var(--color-black); /* #0B0B0C pour contraste optimal du verre blanc */
  border: none;
  padding: 1.25rem 0 0.5rem;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .trust-marquee-section {
    padding: 1rem 0 0.5rem;
  }
}

.marquee-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  pointer-events: none; /* Défilement infini non-stop (ne s'arrête ni au survol ni au clic) */
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: scrollMarquee 34s linear infinite;
  will-change: transform;
  pointer-events: none; /* Ne s'arrête jamais */
}

@media (max-width: 768px) {
  .marquee-track {
    gap: 2.25rem;
    animation-duration: 26s;
  }
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* ==========================================================================
   LOGOS SANS ARRIÈRE-PLAN EN VERRE 3D BLANC (FROSTED 3D GLASS SHADER)
   ========================================================================== */
.glass-logo-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none; /* Ne capte aucun clic, défilement fluide permanent */
}

/* Shader 3D Glass pour logos vectoriels monochromes blancs :
   - Reflet biseauté spéculaire au sommet (top light refraction)
   - Lueur diffuse de verre dépoli givré (frosted optical glow)
   - Lueur interne translucide
   - Ombre d'occlusion 3D pour décoller le logo du fond */
.brand-svg-glass {
  height: 42px;
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
  filter: 
    drop-shadow(0 -1.5px 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.35))
    drop-shadow(0 3px 6px rgba(255, 255, 255, 0.18))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85));
  opacity: 0.92;
  pointer-events: none;
}

@media (max-width: 768px) {
  .brand-svg-glass {
    height: 34px;
    max-width: 95px;
    filter: 
      drop-shadow(0 -1px 1px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.3))
      drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85));
  }
}

/* ==========================================================================
   3. PRÉSENTATION DE LA SOLUTION — GRILLE DE CARTES RÉGULIÈRE
   ========================================================================== */
.solution-section {
  padding: 2.75rem 0 6rem;
  background-color: var(--color-black);
  color: var(--color-white);
  border-bottom: none;
}

@media (max-width: 768px) {
  .solution-section {
    padding: 2rem 0 3.5rem;
  }
}

.section-header--dark {
  margin-bottom: 3rem;
}

.section-title--white {
  color: var(--color-white);
}

.section-desc--dark {
  color: var(--color-gray-light);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow--red {
  color: var(--color-red);
}

/* Grille régulière : 4 colonnes ordinateur, 2 tablette, 1 mobile */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem; /* 28px - dans l'intervalle 24-32px */
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem; /* 24px */
  }
}

@media (max-width: 640px) {
  .solution-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem; /* 24px */
  }
}

/* Carte Solution : visuel en haut, titre puis description en dessous */
.solution-card {
  display: flex;
  flex-direction: column;
  background-color: #121215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 26, 26, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 26, 26, 0.15);
  }
}

@media (max-width: 768px) {
  .solution-card,
  .solution-card:hover {
    transform: none !important;
  }
}

/* Visuel en haut avec frame logicielle */
.solution-card-media {
  background-color: #16161B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.solution-card-topbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.55rem 0.85rem;
  background-color: #18181E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
}

.solution-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.solution-dot--red { background-color: #FF5F56; }
.solution-dot--yellow { background-color: #FFBD2E; }
.solution-dot--green { background-color: #27C93F; }

.solution-topbar-url {
  margin-left: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.solution-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background-color: #000;
}

.solution-img-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.solution-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.solution-card:hover .solution-card-img {
  transform: scale(1.03);
}

/* Bloc de contenu régulier */
.solution-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  margin-bottom: 0.35rem;
}

.solution-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.solution-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-gray-light);
  margin: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Pousse le bouton au bas de chaque carte */
}

.solution-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.solution-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.solution-card-btn:hover {
  color: var(--color-red);
  gap: 0.6rem;
}

/* ==========================================================================
   4. FONCTIONNEMENT — PARCOURS VERTICAL AVEC LIGNE ANIMÉE
   ========================================================================== */
.steps-section {
  padding: 5.5rem 0;
  background-color: var(--color-gray-bg);
  border-top: 1px solid var(--color-gray-border);
  border-bottom: 1px solid var(--color-gray-border);
}

@media (max-width: 768px) {
  .steps-section {
    padding: 3.5rem 0;
  }
}

/* ==========================================================================
   4. FONCTIONNEMENT — COMPARATIF (PARCOURS FLUIDE VS ERREURS SANS SYSTÈME)
   ========================================================================== */
.fonctionnement-comparison-wrapper {
  margin: 3.5rem 0 2.5rem;
  width: 100%;
}

.fonctionnement-comparison-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem 3.5rem;
  align-items: stretch;
  width: 100%;
}

/* En-têtes (Row 1 sur desktop) */
.fonctionnement-col-header {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fonctionnement-col-header--left {
  padding-left: 3.75rem;
}

.col-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.col-pill--success {
  background-color: #ECFDF3;
  color: #027A48;
  border: 1px solid #A6F4C5;
}

.col-pill--warning {
  background-color: #FEF3F2;
  color: #B42318;
  border: 1px solid #FECDCA;
}

.fonctionnement-col-sub {
  font-size: 0.95rem;
  color: var(--color-gray-text);
  margin: 0;
  line-height: 1.5;
}

/* Positionnement explicite sur Desktop (alignement mathématique 1:1 garanti) */
@media (min-width: 1025px) {
  .fonctionnement-col-header--left  { grid-column: 1; grid-row: 1; }
  .fonctionnement-col-header--right { grid-column: 2; grid-row: 1; }
  .timeline-step[data-step="1"]     { grid-column: 1; grid-row: 2; }
  .error-card[data-step="1"]        { grid-column: 2; grid-row: 2; }
  .timeline-step[data-step="2"]     { grid-column: 1; grid-row: 3; }
  .error-card[data-step="2"]        { grid-column: 2; grid-row: 3; }
  .timeline-step[data-step="3"]     { grid-column: 1; grid-row: 4; }
  .error-card[data-step="3"]        { grid-column: 2; grid-row: 4; }
  .timeline-step[data-step="4"]     { grid-column: 1; grid-row: 5; }
  .error-card[data-step="4"]        { grid-column: 2; grid-row: 5; }
}

/* Rail vertical en arrière-plan reliant les repères 1 à 4 */
.timeline-track {
  position: absolute;
  left: 22.5px;
  top: 175px;
  bottom: 75px;
  width: 3px;
  background-color: var(--color-gray-border);
  border-radius: 3px;
  overflow: hidden;
  z-index: 1;
}

/* Ligne rouge de progression animée au scroll */
.timeline-progress {
  width: 100%;
  height: 0%;
  background-color: var(--color-red);
  border-radius: 3px;
  transition: height 0.12s linear;
  will-change: height;
}

/* Étape gauche du parcours */
.timeline-step {
  position: relative;
  display: flex;
  align-items: stretch;
  padding-left: 3.75rem;
  height: 100%;
  box-sizing: border-box;
}

/* Repère circulaire numéroté centré verticalement */
.timeline-marker {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-step.is-passed .timeline-marker {
  background-color: var(--color-black);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(255, 26, 26, 0.22);
  transform: translateY(-50%) scale(1.08);
}

/* Contenu de chaque étape (même mesure et étirement que les cartes d'erreur) */
.timeline-body {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--border-radius);
  padding: 1.35rem 1.6rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.timeline-step.is-passed .timeline-body {
  border-color: #B5B9BE;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.step-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  margin-bottom: 0.3rem;
}

.step-tag--error {
  color: #D92D20;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.timeline-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-gray-text);
  margin: 0;
}

/* Carte d'erreur droite (Même hauteur, même boîte) */
.error-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.6rem;
  background-color: var(--color-white);
  border: 1px solid #FEE4E2;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.error-card:hover {
  transform: translateY(-2px);
  border-color: #FECDCA;
  box-shadow: 0 6px 18px rgba(217, 45, 32, 0.08);
}

.error-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.error-icon-box--red {
  background-color: #FEF3F2;
  color: #D92D20;
}

.error-icon-box--orange {
  background-color: #FFF6ED;
  color: #C4320A;
}

.error-icon-box--amber {
  background-color: #FFFAEB;
  color: #B54708;
}

.error-content {
  flex: 1;
  min-width: 0;
}

.error-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.error-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #101828;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.error-cost-badge {
  display: inline-block;
  background-color: #FEF3F2;
  color: #B42318;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #FECDCA;
  white-space: nowrap;
}

.error-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-gray-text);
  margin: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE TABLETTE & MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .fonctionnement-comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fonctionnement-col-header--left {
    order: 1;
    padding-left: 3.75rem;
  }
  .timeline-step[data-step="1"] { order: 2; }
  .timeline-step[data-step="2"] { order: 3; }
  .timeline-step[data-step="3"] { order: 4; }
  .timeline-step[data-step="4"] { order: 5; }

  .fonctionnement-col-header--right {
    order: 6;
    padding-left: 0;
    margin-top: 2rem;
  }
  .error-card[data-step="1"] { order: 7; }
  .error-card[data-step="2"] { order: 8; }
  .error-card[data-step="3"] { order: 9; }
  .error-card[data-step="4"] { order: 10; }
}

@media (max-width: 600px) {
  .fonctionnement-col-header--left {
    padding-left: 3rem;
  }

  .timeline-step {
    padding-left: 3rem;
  }

  .timeline-track {
    left: 17.5px;
  }

  .timeline-marker {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .timeline-body {
    padding: 1.15rem;
  }

  .timeline-title {
    font-size: 1.05rem;
  }

  .timeline-desc {
    font-size: 0.9rem;
  }

  .error-card {
    padding: 1.15rem;
    gap: 0.85rem;
  }

  .error-icon-box {
    width: 38px;
    height: 38px;
  }

  .error-title {
    font-size: 1.02rem;
  }

  .error-desc {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   5. STOCK & RENTABILITÉ — PRÉSENTATION COMMERCIALE CLAIRE
   ========================================================================== */
.stock-section {
  padding: 5.5rem 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-border);
}

@media (max-width: 768px) {
  .stock-section {
    padding: 3.5rem 0;
  }
}

/* Grille responsive :
   Desktop : Colonne gauche (Texte + Bouton), Colonne droite (Comparaison), Bas (Rentabilité)
   Mobile  : 1. Texte, 2. Comparaison, 3. Bouton, 4. Rentabilité */
.stock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas:
    "text   visual"
    "cta    visual"
    "profit profit";
  gap: 1.5rem 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .stock-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "visual"
      "cta"
      "profit";
    gap: 1.75rem;
  }
}

/* --- Colonne Texte --- */
.stock-col-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
}

.stock-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-gray-text);
  margin: 1.25rem 0 2rem;
}

.stock-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stock-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.5;
}

.stock-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #FEF3F2;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --- Bouton d'action --- */
.stock-col-cta {
  grid-area: cta;
  margin-top: 0.5rem;
}

.btn-stock-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.75rem;
}

@media (max-width: 900px) {
  .stock-col-cta {
    margin-top: 0;
  }
  .btn-stock-action {
    width: 100%;
  }
}

/* --- Carte visuelle à droite (Comparaison 1:1) --- */
.stock-col-visual {
  grid-area: visual;
  width: 100%;
}

.stock-comparison-card {
  background-color: var(--color-white);
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.05);
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 600px) {
  .stock-comparison-card {
    padding: 1.35rem 1.15rem;
    border-radius: 14px;
  }
}

.stock-comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.stock-comparison-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
  line-height: 1.3;
}

.stock-comparison-badge {
  display: inline-block;
  background-color: #F2F4F7;
  color: #475467;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Conteneur des deux barres */
.stock-bars-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stock-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stock-bar-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #344054;
}

/* Rail de barre (échelle 0 à 20 kg) */
.stock-bar-track {
  position: relative;
  width: 100%;
  height: 44px;
  background-color: #F2F4F7;
  border-radius: 8px;
  overflow: hidden;
}

/* Remplissage de la barre avec valeur au bout */
.stock-bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  box-sizing: border-box;
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}

.stock-bar-fill--expected {
  background-color: #26272B;
}

.stock-bar-fill--counted {
  background-color: #FF1A1A;
}

.stock-bar-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Échelle commune de 0 à 20 kg */
.stock-scale-axis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0.25rem 0;
  color: #98A2B3;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Message d'écart sous les barres */
.stock-alert-box {
  background-color: #FEF3F2;
  border: 1px solid #FECDCA;
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
}

.stock-alert-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

.stock-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #D92D20;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stock-alert-desc {
  font-size: 0.9rem;
  color: #475467;
  line-height: 1.5;
  margin: 0;
}

/* Accordéon discret : Comprendre le calcul */
.stock-calc-details {
  border-top: 1px solid #EAECF0;
  padding-top: 1rem;
}

.stock-calc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475467;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.stock-calc-summary::-webkit-details-marker {
  display: none;
}

.stock-calc-summary:hover {
  color: var(--color-black);
}

.stock-calc-chevron {
  transition: transform 0.25s ease;
  color: #98A2B3;
  flex-shrink: 0;
}

.stock-calc-details[open] .stock-calc-chevron {
  transform: rotate(180deg);
  color: var(--color-black);
}

.stock-calc-body {
  padding-top: 0.85rem;
  animation: fadeIn 0.25s ease;
}

.stock-calc-text {
  font-size: 0.875rem;
  color: #344054;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.stock-calc-sub {
  font-size: 0.82rem;
  color: #667085;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* --- Phrase Rentabilité en bas --- */
.stock-profit-banner {
  grid-area: profit;
  background-color: #F9FAFB;
  border: 1px solid #EAECF0;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .stock-profit-banner {
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
  }
}

.stock-profit-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 600px) {
  .stock-profit-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.stock-profit-tag {
  display: inline-block;
  background-color: #FFFFFF;
  color: #344054;
  border: 1px solid #D0D5DD;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.stock-profit-desc {
  font-size: 0.96rem;
  color: #1D2939;
  line-height: 1.5;
  margin: 0;
}

/* prefers-reduced-motion : affichage direct sans transition */
@media (prefers-reduced-motion: reduce) {
  .stock-bar-fill {
    transition: none !important;
  }
  .stock-calc-chevron {
    transition: none !important;
  }
}

/* ==========================================================================
   6. ACCOMPAGNEMENT
   ========================================================================== */
.support-section {
  padding: 5.5rem 0;
  background-color: var(--color-gray-bg);
  border-top: 1px solid var(--color-gray-border);
  border-bottom: 1px solid var(--color-gray-border);
}

@media (max-width: 768px) {
  .support-section {
    padding: 3.5rem 0;
  }
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 850px) {
  .support-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.support-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--border-radius);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.support-card-num {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-red);
  margin-bottom: 1rem;
}

.support-card-title {
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--color-black);
}

.support-disclaimer {
  max-width: 800px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray-text);
  padding-top: 1rem;
  border-top: 1px dashed var(--color-gray-border);
}

/* ==========================================================================
   7. FORMULAIRE DE DÉMONSTRATION
   ========================================================================== */
.demo-section {
  padding: 5.5rem 0;
  background-color: var(--color-white);
  scroll-margin-top: 60px;
}

@media (max-width: 768px) {
  .demo-section {
    padding: 3.5rem 0;
  }
}

.demo-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.demo-form {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  position: relative;
}

@media (max-width: 768px) {
  .demo-form {
    padding: 1.25rem 1rem;
  }
}

/* Stepper de progression (2 phases) */
.form-stepper {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray-border);
}

.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-text);
  transition: color var(--transition-speed) ease;
}

.stepper-step.is-active {
  color: var(--color-black);
  font-weight: 600;
}

.stepper-step.is-completed {
  color: var(--color-black);
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #EAECF0;
  color: var(--color-gray-text);
  transition: all var(--transition-speed) ease;
}

.stepper-step.is-active .step-badge {
  background-color: var(--color-red);
  color: var(--color-white);
}

.stepper-step.is-completed .step-badge {
  background-color: var(--color-black);
  color: var(--color-white);
}

.stepper-divider {
  flex: 1;
  height: 1px;
  background-color: var(--color-gray-border);
  margin: 0 0.85rem;
}

.stepper-progress-track {
  width: 100%;
  height: 4px;
  background-color: #F2F4F7;
  border-radius: 2px;
  overflow: hidden;
}

.stepper-progress-bar {
  height: 100%;
  background-color: var(--color-red);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phases du formulaire */
.form-phase {
  display: none;
  animation: fadeInPhase 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-phase.is-active {
  display: block;
}

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

@media (prefers-reduced-motion: reduce) {
  .form-phase {
    animation: none;
  }
  .stepper-progress-bar {
    transition: none;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.form-label .req {
  color: var(--color-red);
  margin-left: 0.25rem;
}

.form-label .opt {
  font-weight: 400;
  color: var(--color-gray-text);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 0.7rem 0.95rem;
  min-height: 44px;
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-speed) ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: var(--color-error);
  background-color: #FFF8F8;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.field-error {
  display: none;
  font-size: 0.85rem;
  color: var(--color-error);
  margin-top: 0.35rem;
  font-weight: 500;
}

.field-error.is-visible {
  display: block;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill-label {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed) ease;
  user-select: none;
}

.radio-pill input[type="radio"]:checked + .radio-pill-label {
  border-color: var(--color-black);
  background-color: var(--color-black);
  color: var(--color-white);
}

.radio-pill input[type="radio"]:focus-visible + .radio-pill-label {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

/* Checkbox (RGPD) */
.checkbox-group {
  margin: 1.25rem 0 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-black);
  cursor: pointer;
}

.checkbox-input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  accent-color: var(--color-red);
  margin-top: 0.15rem;
  cursor: pointer;
}

.legal-link-trigger {
  color: var(--color-black);
  text-decoration: underline;
  font-weight: 600;
}

.legal-link-trigger:hover {
  color: var(--color-red);
}

/* Screen-reader utility (visually hidden) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Honeypot field (hidden from humans, catches automated spam bots) */
.sr-only-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Phase 1 Actions */
.form-phase-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.form-next-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.form-reassurance-text {
  font-size: 0.825rem;
  color: var(--color-gray-text);
  text-align: center;
  margin: 0;
}

.reassurance-icon {
  color: #12B76A;
  font-weight: 700;
  margin-right: 0.25rem;
}

/* Phase 2 Actions */
.form-actions-step2 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.form-prev-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  min-height: 46px;
  background-color: transparent;
  border: 1.5px solid var(--color-gray-border);
  color: var(--color-black);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.form-prev-btn:hover {
  background-color: #F8F9FA;
  border-color: var(--color-black);
}

.form-actions-step2 .form-submit-btn {
  flex: 1;
}

@media (max-width: 480px) {
  .form-actions-step2 {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .form-prev-btn,
  .form-actions-step2 .form-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Form Submit Area */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-submit-btn {
  width: 100%;
  font-size: 1.05rem;
}

.form-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Status Notifications */
.form-alert {
  display: none;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  margin-top: 1rem;
}

.form-alert--success {
  background-color: #EBF8F2;
  color: #0B6B48;
  border: 1px solid #B7E4CF;
}

.form-alert--error {
  background-color: #FFF2F2;
  color: #B31919;
  border: 1px solid #F5C6C6;
}

.form-alert--error a {
  color: #B31919;
  font-weight: 700;
  text-decoration: underline;
}

.form-alert.is-visible {
  display: block;
}

/* ==========================================================================
   8. QUESTIONS FRÉQUENTES (FAQ)
   ========================================================================== */
.faq-section {
  padding: 5.5rem 0;
  background-color: var(--color-gray-bg);
  border-top: 1px solid var(--color-gray-border);
}

@media (max-width: 768px) {
  .faq-section {
    padding: 3.5rem 0;
  }
}

.faq-header {
  margin-bottom: 2.75rem;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

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

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-black);
  cursor: pointer;
  background: none;
  gap: 1rem;
}

.faq-question:hover {
  background-color: #FAFAFA;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gray-bg);
  color: var(--color-black);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform var(--transition-speed) ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background-color: var(--color-black);
  color: var(--color-white);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray-text);
  border-top: 1px solid transparent;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   9. DERNIER APPEL À L’ACTION
   ========================================================================== */
.final-cta-section {
  padding: 6rem 0;
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .final-cta-section {
    padding: 4rem 0;
  }
}

.final-cta-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   LOGO RESTO CAISSE (SANS ARRIÈRE-PLAN)
   - Transparence pure sans aucun fond ni boîte
   - Lévitation fluide et agrandissement au survol
   ========================================================================== */

.final-cta-logo-wrap {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: logoLevitateCTA 4.5s ease-in-out infinite;
}

@keyframes logoLevitateCTA {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.final-cta-logo-wrap:hover {
  animation-play-state: paused;
}

.final-cta-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-cta-logo-wrap:hover .final-cta-logo {
  transform: scale(1.04);
}

.final-cta-title {
  font-size: 2.75rem;
  color: var(--color-white);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .final-cta-title {
    font-size: 2rem;
  }
}

.final-cta-btn {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
}

/* ==========================================================================
   10. PIED DE PAGE (FOOTER MODERNE 4 COLONNES)
   ========================================================================== */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.3fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Colonne 1 : Marque & Réassurance */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo-wrap {
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo-wrap:hover .footer-logo {
  transform: scale(1.04);
}

.footer-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--color-gray-light);
  max-width: 320px;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.825rem;
  color: #D1D5DB;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.38rem 0.8rem;
  border-radius: 20px;
  width: fit-content;
  transition: all 0.25s ease;
}

.footer-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  transform: translateX(2px);
}

.badge-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: badgeDotPulse 2s infinite;
}

@keyframes badgeDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.badge-flag-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Titres de colonnes */
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Colonne 2 : Liens de navigation */
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  color: var(--color-gray-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-link-arrow {
  color: var(--color-red);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.footer-link:hover, .footer-link:focus-visible {
  color: var(--color-white);
  transform: translateX(4px);
}

.footer-link:hover .footer-link-arrow, .footer-link:focus-visible .footer-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Colonne 3 : Contact Direct */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-contact-card:hover, .footer-contact-card:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
  color: var(--color-white);
}

.footer-contact-card--whatsapp:hover, .footer-contact-card--whatsapp:focus-visible {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
  transition: background 0.25s ease, color 0.25s ease;
}

.footer-contact-card:hover .footer-contact-icon {
  background: var(--color-red);
  color: #FFFFFF;
}

.footer-contact-card--whatsapp:hover .footer-contact-icon {
  background: #25D366;
  color: #0B0B0C;
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.footer-contact-label {
  font-size: 0.725rem;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.footer-contact-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer-schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9AA0A6;
  padding: 0.35rem 0.5rem;
}

.schedule-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

/* Colonne 4 : Démonstration & Légal */
.footer-cta-card {
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.25s ease;
}

.footer-cta-card:hover {
  border-color: rgba(255, 26, 26, 0.45);
}

.footer-cta-prompt {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #E2E4E8;
  margin-bottom: 0.85rem;
}

.footer-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
}

.footer-demo-btn svg {
  transition: transform 0.2s ease;
}

.footer-demo-btn:hover svg {
  transform: translateX(3px);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.825rem;
  color: var(--color-gray-light);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-legal-btn:hover, .footer-legal-btn:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-legal-sep {
  color: #4A4D52;
  font-size: 0.75rem;
}

/* Barre Inférieure (Bottom bar) */
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #71767B;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-bottom-region {
  font-size: 0.8rem;
  color: #55585D;
}

.footer-bottom-badge {
  font-size: 0.85rem;
  color: #A3A3A8;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-to-top-btn:hover, .back-to-top-btn:focus-visible {
  background: rgba(255, 26, 26, 0.15);
  border-color: rgba(255, 26, 26, 0.45);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 26, 26, 0.25);
}

.back-to-top-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.back-to-top-btn:hover .back-to-top-icon {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta-logo-wrap,
  .badge-status-dot {
    animation: none !important;
  }
}

/* ==========================================================================
   BOUTON FLOTTANT WHATSAPP
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #25D366;
  color: #0B0B0C;
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  text-decoration: none;
}

.whatsapp-floating:hover, .whatsapp-floating:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: #0B0B0C;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .whatsapp-floating {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
  }

  .whatsapp-label {
    display: none;
  }
}

/* ==========================================================================
   MODALES (MENTIONS LÉGALES & POLITIQUE DE CONFIDENTIALITÉ)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 11, 12, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-container {
  background: var(--color-white);
  color: var(--color-black);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: var(--border-radius);
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .modal-container {
    padding: 1.5rem;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gray-bg);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border: 1px solid var(--color-gray-border);
}

.modal-close-btn:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-gray-text);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-body h3 {
  font-size: 1.15rem;
  color: var(--color-black);
  margin-top: 0.5rem;
}

.modal-body ul {
  padding-left: 1.25rem;
}

.modal-notice {
  background-color: #F8F9FA;
  border-left: 3px solid var(--color-black);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
}
