/* ============================================
   DIGISTBAN - STYLES GÉNÉRAUX
   ============================================
   Fichier : css/style.css
   Description : Styles globaux, layout, header, hero, footer, FAQ, modal, etc.
   ============================================ */

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================
   New Trustworthy Palette:
   - Primary: Deep Blue (#2C5282) - Trust, professionalism
   - Secondary: Medium Blue (#3182CE) - Modern, approachable
   - Accent: Light Blue (#63B3ED) - Highlights, warmth
   - Background: Light Gray (#F7FAFC) - Clean, calm
   - Text: Dark Navy (#1A365D) - Strong readability
   - Surface: White (#FFFFFF) - Clean, modern
   ============================================ */
:root {
  /* Primary Colors - Trustworthy Blue */
  --color-primary-dark: #1A365D;
  --color-primary: #2C5282;
  --color-primary-light: #3182CE;
  --color-accent: #63B3ED;
  --color-accent-light: #EBF8FF;
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-gray-50: #F7FAFC;
  --color-gray-100: #EDF2F7;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E0;
  --color-gray-400: #A0AEC0;
  --color-gray-500: #718096;
  --color-gray-600: #4A5568;
  --color-gray-700: #2D3748;
  --color-gray-800: #1A202C;
  --color-gray-900: #171923;
  
  /* Semantic Colors */
  --color-text: var(--color-gray-800);
  --color-text-light: var(--color-gray-600);
  --color-text-muted: var(--color-gray-500);
  --color-bg: var(--color-white);
  --color-bg-light: var(--color-gray-50);
  --color-border: var(--color-gray-200);
  --color-border-light: var(--color-gray-100);
  
  /* Status Colors */
  --color-success: #38A169;
  --color-error: #E53E3E;
  --color-warning: #D69E2E;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-gray-50) 50%, var(--color-white) 100%);
  
  /* Typographie - Inter (Professional Sans-Serif) */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-6);
  --header-height: 72px;
  
  /* Bordures */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(49, 130, 206, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-menu-overlay: 250;
  --z-menu: 260;
  --z-modal: 300;
  --z-tooltip: 400;
  --z-floating: 500;
  --z-loader: 1000;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

*:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS - Refined & Elegant
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 
    opacity 0.55s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for elegant cascade effect */
.scroll-reveal[data-delay="100"] { transition-delay: 100ms; }
.scroll-reveal[data-delay="150"] { transition-delay: 150ms; }
.scroll-reveal[data-delay="200"] { transition-delay: 200ms; }
.scroll-reveal[data-delay="250"] { transition-delay: 250ms; }
.scroll-reveal[data-delay="300"] { transition-delay: 300ms; }
.scroll-reveal[data-delay="350"] { transition-delay: 350ms; }
.scroll-reveal[data-delay="400"] { transition-delay: 400ms; }
.scroll-reveal[data-delay="450"] { transition-delay: 450ms; }
.scroll-reveal[data-delay="500"] { transition-delay: 500ms; }

/* Directional reveal variants */
.scroll-reveal--left {
  transform: translateX(-30px);
}

.scroll-reveal--left.scroll-reveal--visible {
  transform: translateX(0);
}

.scroll-reveal--right {
  transform: translateX(30px);
}

.scroll-reveal--right.scroll-reveal--visible {
  transform: translateX(0);
}

.scroll-reveal--scale {
  transform: scale(0.95);
}

.scroll-reveal--scale.scroll-reveal--visible {
  transform: scale(1);
}

/* ============================================
   UTILITAIRES
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   BOUTONS - Avec micro-animations
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: var(--color-white);
  text-decoration: none;
}

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

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-gray-50);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  min-height: 56px;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--gradient-primary);
  z-index: var(--z-loader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-overlay--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 80px;
  height: 80px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.loader-brand {
  margin-top: var(--space-4);
  height: 52px;
}

.loader-brand img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.loader-subtitle {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================
   HEADER - Avec nouveau logo
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
}

.header__container .nav--desktop {
  margin-left: auto;
  margin-right: var(--space-4);
}

/* Logo Block */
.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.header__brand:hover {
  transform: scale(1.02);
}

.header__brand:hover .header__logo-icon {
  transform: rotate(5deg);
}

/* Logo Icon (image) */
.header__logo-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.header__brand:hover .header__logo-icon {
  transform: rotate(5deg);
}

/* Logo Text (image) */
.header__logo-text {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ============================================
   NAVIGATION - Desktop only
   ============================================ */
.nav--desktop {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav--desktop .nav__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav--desktop .nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
}

.nav--desktop .nav__link:hover {
  color: var(--color-primary);
  background: var(--color-gray-50);
  text-decoration: none;
}

.nav--desktop .nav__link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   MOBILE NAVIGATION - Drawer (hidden on desktop)
   ============================================ */
.mobile-nav {
  display: none;
}

/* Menu Toggle Button - With visible background */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  gap: 5px;
  transition: all var(--transition-fast);
  z-index: var(--z-menu);
}

.menu-toggle:hover {
  background: var(--color-gray-200);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle__bar {
  width: 20px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MENU OVERLAY - Backdrop for mobile drawer
   ============================================ */
.menu-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 32, 44, 0);
  z-index: var(--z-menu-overlay);
  opacity: 0;
  visibility: hidden;
  transition: 
    background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.menu-overlay--active {
  background: rgba(26, 32, 44, 0.65);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

main {
  padding-top: var(--header-height);
}

/* ============================================
   HERO - Compact and balanced
   ============================================ */
.hero {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 179, 237, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(44, 82, 130, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 15s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.03); }
}

.hero__content {
  max-width: 680px;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-6) 0;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__text {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  white-space: pre-line;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-20) 0;
}

.section--light {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.section--gradient {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-gray-50) 50%, var(--color-white) 100%);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section__title {
  margin-bottom: var(--space-3);
  color: var(--color-text);
  font-weight: 700;
}

.section__subtitle {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   WHATSAPP FAB - Au-dessus du menu
   ============================================ */
.fab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: var(--z-floating);
}

.fab__btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: #25D366;
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  position: relative;
}

.fab__btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
  background: #128C7E;
}

.fab__btn:active {
  transform: translateY(0) scale(1);
}

.fab__btn svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.fab__btn:hover svg {
  transform: rotate(10deg);
}

.fab__tooltip {
  position: absolute;
  right: calc(100% + var(--space-3));
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-gray-800);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.fab__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-gray-800);
}

.fab__btn:hover .fab__tooltip {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   CONTACT MENU
   ============================================ */
.contact-menu {
  position: absolute;
  bottom: calc(100% + var(--space-3));
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 260px;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.contact-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.contact-menu__title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.contact-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.contact-menu__item:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateX(4px);
}

.contact-menu__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.contact-menu__item:hover .contact-menu__icon {
  color: var(--color-primary);
}

.contact-menu__item[href*="wa.me"]:hover {
  background: #25D366;
  color: var(--color-white);
}

.contact-menu__item[href*="wa.me"]:hover .contact-menu__icon {
  color: var(--color-white);
}


/* ============================================
   MODAL - Formulaire de contact
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 32, 44, 0.7);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  overflow-y: auto;
}

.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.modal-overlay--open .modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-gray-100);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal__close:hover {
  background: var(--color-error);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal__close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal__body {
  padding: var(--space-6);
  overflow-y: auto;
}

/* When form content is hidden, center the success state */
.modal__body:has(#form-content[style*="none"]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

/* Form Header */
.form__header {
  margin-bottom: var(--space-6);
  padding-right: var(--space-12);
}

.form__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.form__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form__label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form__label--required::after {
  content: ' *';
  color: var(--color-error);
}

.form__input,
.form__textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  transition: all var(--transition-fast);
  min-height: 48px;
  width: 100%;
  line-height: 1.5;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-gray-400);
}

.form__input--error,
.form__textarea--error {
  border-color: var(--color-error);
}

.form__input--error:focus,
.form__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__error {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 18px;
}

/* Form Alert - Inline messages like test.html */
.form__alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-4);
  animation: alertPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid transparent;
}

.form__alert--success {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
  border-left-color: var(--color-success);
}

.form__alert--error {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
  border-left-color: var(--color-error);
}

@keyframes alertPop {
  0% { transform: scale(0.95) translateY(-10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.form__hint {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.form__checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form__checkbox-label {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.5;
}

.form__checkbox-label a {
  font-weight: 500;
  color: var(--color-primary-light);
}

.form__checkbox-label a:hover {
  color: var(--color-primary);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Submit Button - Clean state management */
.form__submit {
  width: 100%;
  margin-top: var(--space-2);
  position: relative;
}

.form__submit-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.form__submit-text.is-hidden {
  display: none !important;
}

.form__submit-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.form__submit-loading.is-visible {
  display: flex !important;
}

.form__spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Fallback Block */
.form__fallback {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.form__fallback-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.form__fallback-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.form__fallback-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.form__fallback-link:hover {
  background: var(--color-gray-100);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Success State - Clean and elegant */
.form__success {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  animation: successFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes successFadeIn {
  0% { 
    opacity: 0; 
    transform: scale(0.95) translateY(10px); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

.form__success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, #38A169 0%, #48BB78 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(56, 161, 105, 0.35);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes successPop {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.form__success-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

.form__success-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  animation: successSlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.form__success-text {
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
  line-height: 1.7;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  animation: successSlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

@keyframes successSlideUp {
  0% { 
    opacity: 0; 
    transform: translateY(15px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.form__reset-btn {
  width: 100%;
  max-width: 280px;
  animation: successSlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

/* Hide form cleanly when success is shown */
#form-content[style*="none"] ~ .form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: var(--space-8) var(--space-6);
}

/* ============================================
   FAQ - Avec animations améliorées
   ============================================ */
.faq-section {
  position: relative;
}

.faq__search {
  max-width: 480px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.faq__search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.faq__search-input {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  padding-left: calc(var(--space-4) + 28px);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  background: var(--color-white);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.faq__search-input:hover {
  border-color: var(--color-gray-300);
}

.faq__search-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15), var(--shadow-sm);
}

.faq__search-input:focus + .faq__search-icon {
  color: var(--color-primary-light);
}

.faq__search-input::placeholder {
  color: var(--color-gray-400);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.faq__item:hover {
  border-color: var(--color-gray-300);
  box-shadow: var(--shadow-md);
}

.faq__item--open {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(49, 130, 206, 0.1);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent-light) 100%);
}

.faq__item--hidden {
  display: none;
}

/* FAQ Question Button */
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__item--open .faq__question {
  color: var(--color-primary);
}

.faq__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq__question:hover .faq__number,
.faq__item--open .faq__number {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.faq__question-text {
  flex: 1;
  line-height: 1.4;
}

.faq__icon-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.faq__question:hover .faq__icon-wrapper {
  background: var(--color-gray-200);
}

.faq__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--color-text-muted);
}

.faq__item--open .faq__icon-wrapper {
  background: var(--gradient-primary);
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
  color: var(--color-white);
}

/* FAQ Answer */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.1s;
}

.faq__item--open .faq__answer {
  max-height: 600px;
  opacity: 1;
}

.faq__answer-content {
  padding: 0 var(--space-5) var(--space-5) calc(var(--space-5) + 40px);
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: var(--font-size-base);
}

.faq__answer-content p {
  margin-bottom: var(--space-3);
}

.faq__answer-content p:last-child {
  margin-bottom: 0;
}

.faq__answer-content strong {
  color: var(--color-primary);
  font-weight: 600;
}

.faq__answer-content ul {
  margin: var(--space-3) 0;
  padding-left: var(--space-5);
}

.faq__answer-content li {
  margin-bottom: var(--space-2);
}

.faq__answer-content li::marker {
  color: var(--color-primary-light);
}

/* FAQ Empty State */
.faq__empty {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--color-border);
  max-width: 440px;
  margin: 0 auto;
}

.faq__empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.faq__empty-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  font-weight: 400;
  margin-bottom: var(--space-4);
}

.faq__empty-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.faq__empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: var(--color-white);
  text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-gray-800);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-6);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__title {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer__description {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
  font-weight: 400;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.footer__heading {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: var(--color-gray-300);
  font-size: var(--font-size-sm);
  font-weight: 400;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer__link:hover {
  color: var(--color-white);
  text-decoration: none;
  transform: translateX(2px);
}

.footer__bottom {
  border-top: 1px solid var(--color-gray-700);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__legal,
.footer__rgpd,
.footer__copyright {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-gray-500);
}

.footer__copyright {
  text-align: center;
}


/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-4);
    --header-height: 64px;
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }
  
  /* Loader */
  .loader-logo { width: 64px; height: 64px; }
  .loader-brand { height: 40px; }
  
  /* Header */
  .header__logo-icon { width: 40px; height: 40px; }
  .header__logo-text { height: 32px; }
  
  /* ============================================
     MOBILE MENU - Right-side drawer
     ============================================ */
  
  /* Show menu toggle button */
  .menu-toggle { 
    display: flex; 
    z-index: var(--z-menu);
  }
  
  /* Hide desktop nav */
  .nav--desktop {
    display: none;
  }
  
  /* Show mobile drawer nav */
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-height) + var(--space-4)) var(--space-4) var(--space-4);
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: var(--z-menu);
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    overflow-y: auto;
  }
  
  /* Open state */
  .mobile-nav.is-open {
    transform: translateX(0);
  }
  
  /* Mobile nav close button */
  .mobile-nav__close {
    position: absolute;
    top: calc(var(--header-height) / 2 - 16px);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E53E3E;
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: calc(var(--z-menu) + 1);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.4);
  }
  
  .mobile-nav__close:hover {
    background: #C53030;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.5);
  }
  
  .mobile-nav__close:active {
    transform: scale(0.95);
  }
  
  /* Mobile nav links */
  .mobile-nav__link {
    display: block;
    width: 100%;
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-md);
    border-bottom: 1px solid var(--color-border-light);
    background: transparent;
    opacity: 0;
    transform: translateX(20px);
    transition: 
      opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      background 0.2s ease,
      color 0.2s ease;
  }
  
  .mobile-nav.is-open .mobile-nav__link {
    opacity: 1;
    transform: translateX(0);
  }
  
  .mobile-nav.is-open .mobile-nav__link:nth-child(2) { transition-delay: 0.06s; }
  .mobile-nav.is-open .mobile-nav__link:nth-child(3) { transition-delay: 0.11s; }
  .mobile-nav.is-open .mobile-nav__link:nth-child(4) { transition-delay: 0.16s; }
  
  .mobile-nav__link:last-child {
    border-bottom: none;
  }
  
  .mobile-nav__link:hover,
  .mobile-nav__link:active {
    background: var(--color-accent-light);
    color: var(--color-primary);
  }
  
  /* Hero - Compact mobile */
  .hero {
    min-height: calc(100dvh - var(--header-height));
    padding: var(--space-4);
    display: flex;
    align-items: center;
  }
  
  .hero__content {
    padding: var(--space-2) 0;
    width: 100%;
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }
  
  .hero__text {
    font-size: var(--font-size-base);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    white-space: pre-line;
  }
  
  .hero__cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero__cta .btn {
    width: 100%;
  }
  
  /* Sections */
  .section { padding: var(--space-12) 0; }
  .section__title { font-size: var(--font-size-2xl); }
  .section__subtitle { font-size: var(--font-size-base); }
  
  /* FAB - Bigger on mobile with pulse animation */
  .fab { right: var(--space-4); bottom: var(--space-4); }
  .fab__text { display: none; }
  .fab__btn { 
    padding: var(--space-4);
    min-width: 64px;
    min-height: 64px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  }
  
  .fab__btn svg {
    width: 32px;
    height: 32px;
  }
  
  /* Green pulse animation for WhatsApp button */
  .fab__btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: #25D366;
    opacity: 0.4;
    z-index: -1;
    animation: whatsappPulse 2s ease-in-out infinite;
  }
  
  @keyframes whatsappPulse {
    0%, 100% {
      transform: scale(1);
      opacity: 0.4;
    }
    50% {
      transform: scale(1.15);
      opacity: 0.15;
    }
  }
  
  /* Modal */
  .modal-overlay {
    padding: var(--space-3);
    align-items: flex-start;
    padding-top: var(--space-8);
  }
  
  .modal {
    max-height: calc(100vh - var(--space-8));
  }
  
  .modal__body {
    padding: var(--space-4);
  }
  
  .form__header {
    padding-right: var(--space-10);
  }
  
  .form__title {
    font-size: var(--font-size-xl);
  }
  
  .form__fallback-links {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form__fallback-link {
    justify-content: center;
  }
  
  /* FAQ */
  .faq__question {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 56px;
  }
  
  .faq__number {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
  }
  
  .faq__icon-wrapper { width: 28px; height: 28px; }
  .faq__icon { width: 16px; height: 16px; }
  
  .faq__answer-content {
    padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 32px);
    font-size: var(--font-size-sm);
    line-height: 1.65;
  }
  
  /* Footer */
  .footer { padding: var(--space-10) 0 var(--space-5); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  
  .footer__description {
    font-size: var(--font-size-sm);
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   ACCESSIBILITÉ - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html { scroll-behavior: auto; }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .loader-overlay,
  .header,
  .fab,
  .modal-overlay,
  .menu-toggle,
  .menu-overlay {
    display: none !important;
  }
  
  main { padding-top: 0; }
  
  .section { 
    padding: var(--space-6) 0; 
    page-break-inside: avoid; 
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-8) 0;
  }
}
