/* ============================================
   DESIGN SYSTEM — Pro Maintenance France
   ============================================ */

/* ----- CSS Variables ----- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --top-bar-height: 36px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--top-bar-height));
}

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

/* ----- Typography ----- */
h1, h2, h3, h4 { line-height: 1.15; color: var(--text-dark); font-weight: 800; }

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

.text-outline {
  -webkit-text-stroke: 2px var(--primary);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ----- Sections ----- */
.section {
  padding: 80px 0;
}

.section-dark { background: var(--bg-dark); }
.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  height: var(--top-bar-height);
  background: var(--bg-dark);
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.top-bar-track {
  display: flex;
  width: max-content;
  animation: scrollTopBar 25s linear infinite;
  height: 100%;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
}

.top-bar-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

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

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: sticky;
  top: var(--top-bar-height);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-md); }

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

.logo-link {
  display: flex;
  align-items: center;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop a:not(.btn) {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-desktop a:not(.btn):hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta { margin-left: 12px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + var(--top-bar-height));
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--top-bar-height));
  background: var(--bg-white);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

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

.mobile-menu a {
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu a:hover { background: var(--bg-light); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.btn-primary {
  background: var(--gradient);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}

.btn-phone {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}

.btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.1);
}

.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--top-bar-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.7) 50%, rgba(15,23,42,0.85) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-white) 0%, transparent 100%);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Left side */
.hero-text { color: var(--text-white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-white);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-checkmarks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-checkmarks li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   HERO FORM — futuriste / verre dépoli
   ============================================ */
.hero-form-wrapper { position: relative; }

/* Glow subtil derrière la carte */
.hero-form-wrapper::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -15%;
  right: -15%;
  bottom: -20%;
  background: radial-gradient(ellipse at 40% 50%, rgba(37,99,235,0.12) 0%, rgba(124,58,237,0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: formGlow 6s ease-in-out infinite alternate;
}

@keyframes formGlow {
  0% { transform: translate(0, 0); opacity: 0.6; }
  100% { transform: translate(10px, -10px); opacity: 1; }
}

.hero-form-header {
  text-align: center;
}
.hero-form-header h3 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 900;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.hero-form-card .hero-form-subtitle {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
.hero-form-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

/* Ligne lumineuse animée en haut */
.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  animation: formScan 4s ease-in-out infinite;
}

@keyframes formScan {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* Form progress steps */
.form-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.form-step-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border-radius: 7px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-step-tab.active {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.form-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  transition: all 0.35s ease;
}

.form-step-tab.active .form-step-num {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

.form-step-connector {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.1) 100%);
  flex-shrink: 0;
}

/* Step transitions */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Form actions row */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

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

.btn-back {
  flex: 0 0 auto;
  padding: 12px 20px;
  font-weight: 500;
}

/* Form fields — HEADER (titre + sous-titre) */
.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.form-header p {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group { margin-bottom: 14px; }

.form-row .form-group { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: #fff;
  background: rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(4px);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.45);
}

.form-group select option {
  color: #111;
  background: #fff;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2), 0 0 20px rgba(37,99,235,0.08);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  border-radius: 4px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.form-checkbox label a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.form-checkbox label a:hover {
  color: #fff;
}

.form-error {
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  min-height: 20px;
}

.hero-form-footer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
}

/* Form success */
.hero-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-form-success.visible {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.hero-form-card.submitted {
  animation: successPulseFutur 0.6s ease;
}

@keyframes successPulseFutur {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(16,185,129,0.15), 0 8px 32px rgba(0,0,0,0.2); }
  100% { transform: scale(1); }
}

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
  animation: successBounceFutur 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successBounceFutur {
  0% { transform: scale(0) rotate(-15deg); }
  50% { transform: scale(1.15) rotate(3deg); }
  70% { transform: scale(0.95) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.hero-form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}

.hero-form-success p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Trust badges under form */
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.trust-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Animations */
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease 0.2s forwards;
}

@keyframes fadeInLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   STATS COUNTER
   ============================================ */
.section-stats {
  padding: 60px 0;
  background: var(--bg-dark);
  color: var(--text-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  width: 100%;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.service-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.service-card-body {
  padding: 24px;
  position: relative;
}

.service-card-body .service-icon {
  display: none;
}

.service-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-cta {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.service-cta:hover { gap: 8px; letter-spacing: 0.5px; }

/* ============================================
   MINI-FORM (intermédiaire)
   ============================================ */
.section-mini-form {
  padding: 40px 0;
  background: var(--gradient);
}

.mini-form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition: all 0.5s ease;
}

.mini-form-card.submitted {
  justify-content: center;
  animation: successPulseMini 0.6s ease;
}

@keyframes successPulseMini {
  0% { transform: scale(1); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.mini-form-content h3 {
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 4px;
}

.mini-form-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.mini-form-fields {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.mini-form-fields .form-group { margin-bottom: 0; }

.mini-form-fields input,
.mini-form-fields select {
  padding: 12px 14px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.15);
  color: var(--text-white);
  outline: none;
  width: 200px;
}

.mini-form-fields input::placeholder { color: rgba(255,255,255,0.6); }
.mini-form-fields select option { color: var(--text-dark); }
.mini-form-fields input:focus,
.mini-form-fields select:focus {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.25);
}

.mini-form .btn-primary {
  background: var(--text-white);
  color: var(--primary);
  box-shadow: none;
}

.mini-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mini-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-white);
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mini-form-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.mini-form-success .success-icon {
  background: rgba(255,255,255,0.2);
  width: 56px;
  height: 56px;
}

.mini-form-success p {
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ============================================
   WHY (Pourquoi nous)
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   LEGAL (Obligation)
   ============================================ */
.section-legal { background: var(--bg-dark); }

.legal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}

.legal-icon {
  font-size: 3rem;
  line-height: 1;
}

.legal-content { color: rgba(255,255,255,0.85); }

.legal-content h2 {
  font-size: 1.8rem;
  color: var(--text-white);
  margin: 12px 0;
}

.legal-content > p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.legal-checkboxes {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.legal-check-item {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================
   SECTION DIVIDERS — Séparateurs visuels
   ============================================ */
.section-divider {
  height: 6px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 15%, var(--accent) 50%, var(--primary) 85%, transparent 100%);
  opacity: 0.25;
  position: relative;
  z-index: 1;
}

.section-divider-wave {
  height: 24px;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.section-divider-wave::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 24px;
  background: radial-gradient(ellipse at 50% -50%, var(--primary) 0%, transparent 70%);
  opacity: 0.15;
}

.section-divider-dots {
  height: 20px;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.section-divider-dots::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.section-divider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--primary);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-white);
}

.section-divider-dot:nth-child(2) {
  border-color: var(--accent);
}

.section-divider-spacer {
  height: 20px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-light) 100%);
}

/* ============================================
   CHECKLIST TABS
   ============================================ */
.checklist-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.checklist-tab {
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.checklist-tab:hover { border-color: var(--primary); color: var(--primary); }
.checklist-tab.active {
  background: var(--gradient);
  color: var(--text-white);
  border-color: transparent;
}

.checklist-content {
  display: none;
  max-width: 600px;
  margin: 0 auto;
}

.checklist-content.active { display: block; }

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: var(--transition);
}

.checklist-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.check-icon {
  width: 28px;
  height: 28px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.checklist-item span:last-child {
  font-size: 0.95rem;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.cert-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cert-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cert-logo {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.cert-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.cert-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cert-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.75;
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.testimonial-stars {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonial-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.testimonial-prev,
.testimonial-next {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--text-body);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
}

.testimonials-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.testimonials-dots button.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PAIEMENT — Facilités de paiement & partenaires
   ============================================ */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.payment-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.payment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.payment-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 80px;
}

.payment-icon {
  font-size: 2rem;
  line-height: 1;
}

.payment-logo-img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.payment-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 10px;
}

.payment-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .payment-card {
    padding: 20px 16px;
  }
  .payment-logo {
    min-height: 60px;
  }
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  background: var(--gradient);
  text-align: center;
  padding: 80px 0;
}

.cta-final-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-white);
  margin-bottom: 12px;
}

.cta-final-card p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-final .btn-primary {
  background: var(--text-white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.cta-final .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }

/* ============================================
   EXIT POPUP
   ============================================ */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.exit-popup-overlay.open { display: flex; }

.exit-popup {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.exit-popup-close:hover { background: var(--bg-light); color: var(--text-dark); }

.exit-popup-content { text-align: center; }

.exit-popup-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.exit-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.exit-popup > .exit-popup-content > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.exit-popup-form .form-group {
  margin-bottom: 14px;
}

.exit-popup-form .form-group input,
.exit-popup-form .form-group select {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: var(--transition);
  color: var(--text-dark);
  background: var(--bg-white);
}

.exit-popup-form .form-group input::placeholder {
  color: var(--text-muted);
}

.exit-popup-form .form-group input:focus,
.exit-popup-form .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  background: var(--bg-white);
}

.exit-popup-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.exit-popup-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.exit-popup-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.exit-popup-success p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 16px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

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

.footer-col h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  display: block;
  transition: var(--transition);
}

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

.footer-contact { margin-top: 16px; }
.footer-contact strong a { color: var(--text-white); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   STICKY CTA MOBILE
   ============================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  gap: 12px;
}

.sticky-cta .btn { flex: 1; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--bg-dark);
  padding: 16px 24px;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  flex: 1;
  min-width: 250px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-light);
}

.success-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.success-checkmark {
  width: 72px;
  height: 72px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.success-card h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.success-details {
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.success-details p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 4px;
}

.success-message p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   FORM DISABLED STATE (loading)
   ============================================ */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { gap: 32px; }
  .hero-form-card { padding: 24px; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; --top-bar-height: 32px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }

  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .hero { min-height: auto; padding: 40px 0 60px; }
  .hero::after { height: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; padding-bottom: 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-description { font-size: 1rem; }
  .hero-form-wrapper { order: -1; }
  .hero-trust { gap: 16px; padding: 12px; }
  .scroll-indicator { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-form-card { padding: 20px; }
  .hero-form-card .btn-lg { padding: 14px 24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }

  .mini-form-card { flex-direction: column; text-align: center; }
  .mini-form-fields { justify-content: center; width: 100%; }
  .mini-form-fields input,
  .mini-form-fields select { width: 100%; }

  .why-grid { grid-template-columns: 1fr 1fr; }

  .legal-card { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .legal-checkboxes { text-align: left; }

  .checklist-tabs { flex-wrap: wrap; }

  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-card { padding: 24px; }

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

  .sticky-cta { display: flex; }
  .cookie-content { flex-direction: column; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }

  .exit-popup { padding: 28px; }
  .exit-popup h3 { font-size: 1.2rem; }

  .success-card { padding: 32px; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
}