/* ============================================================
   AUTO PRESTIGEE - Design System Premium 2026
   Convoyage automobile professionnel
   Inspirations: Tesla · Porsche · Stripe · Linear
   ============================================================ */

/* -----------------------------------------------------------
   1. CUSTOM PROPERTIES / DESIGN TOKENS
   ----------------------------------------------------------- */
:root {
  /* Couleurs principales */
  --ap-navy:        #0a1628;
  --ap-navy-dark:   #060e1a;
  --ap-navy-light:  #12243d;
  --ap-blue:        #1e40af;
  --ap-blue-electric:#3b82f6;
  --ap-blue-glow:   #60a5fa;
  --ap-blue-pale:   #dbeafe;
  --ap-blue-subtle: #eff6ff;
  --ap-accent:      #2563eb;
  --ap-accent-hover:#1d4ed8;

  /* Neutres */
  --ap-white:       #ffffff;
  --ap-gray-50:     #f8fafc;
  --ap-gray-100:    #f1f5f9;
  --ap-gray-200:    #e2e8f0;
  --ap-gray-300:    #cbd5e1;
  --ap-gray-400:    #94a3b8;
  --ap-gray-500:    #64748b;
  --ap-gray-600:    #475569;
  --ap-gray-700:    #334155;
  --ap-gray-800:    #1e293b;
  --ap-gray-900:    #0f172a;

  /* Statuts */
  --ap-success:     #10b981;
  --ap-warning:     #f59e0b;
  --ap-danger:      #ef4444;
  --ap-info:        #06b6d4;

  /* Dégradés */
  --grad-hero:      linear-gradient(135deg, #0a1628 0%, #12243d 40%, #1e3a5f 100%);
  --grad-blue:      linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  --grad-navy:      linear-gradient(180deg, #0a1628 0%, #0f2035 100%);
  --grad-card:      linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --grad-glass:     linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
  --grad-shine:     linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);

  /* Typographie */
  --font-primary:   'Inter', 'Manrope', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:   'Manrope', 'Inter', 'Poppins', sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Tailles */
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-lg:    1.125rem;
  --fs-xl:    1.25rem;
  --fs-2xl:   1.5rem;
  --fs-3xl:   1.875rem;
  --fs-4xl:   2.25rem;
  --fs-5xl:   3rem;
  --fs-6xl:   3.75rem;
  --fs-7xl:   4.5rem;

  /* Poids */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* Interlignes */
  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  /* Espacement */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Rayons */
  --radius-sm:    0.375rem;
  --radius-md:    0.5rem;
  --radius-lg:    0.75rem;
  --radius-xl:    1rem;
  --radius-2xl:   1.25rem;
  --radius-3xl:   1.5rem;
  --radius-full:  9999px;

  /* Ombres */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --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-2xl:   0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-glow:  0 0 20px rgba(37,99,235,0.3);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky:   1020;
  --z-fixed:    1030;
  --z-modal:    1050;
  --z-toast:    1070;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--ap-gray-700);
  background-color: var(--ap-white);
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--ap-gray-100);
}
body::-webkit-scrollbar-thumb {
  background: var(--ap-gray-300);
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--ap-gray-400);
}

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

a {
  color: var(--ap-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}
a:hover {
  color: var(--ap-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--ap-navy);
}

::selection {
  background: var(--ap-blue-pale);
  color: var(--ap-navy);
}

/* -----------------------------------------------------------
   3. LAYOUT & CONTAINERS
   ----------------------------------------------------------- */
.container-ap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-24) 0;
}

.section-sm {
  padding: var(--sp-16) 0;
}

.section-lg {
  padding: var(--sp-32) 0;
}

.section-dark {
  background: var(--grad-navy);
  color: var(--ap-gray-300);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--ap-white);
}

.section-light {
  background: var(--ap-gray-50);
}

.section-blue {
  background: var(--ap-blue-subtle);
}

/* -----------------------------------------------------------
   4. TYPOGRAPHIE
   ----------------------------------------------------------- */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, var(--fs-7xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: var(--ap-blue-subtle);
  color: var(--ap-blue);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  border: 1px solid var(--ap-blue-pale);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  color: var(--ap-navy);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--ap-gray-500);
  max-width: 640px;
  line-height: var(--lh-relaxed);
}

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

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

/* -----------------------------------------------------------
   5. NAVIGATION / HEADER
   ----------------------------------------------------------- */
.ap-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.ap-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-md);
}

.ap-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.ap-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-xl);
  color: var(--ap-navy);
  text-decoration: none;
  transition: opacity var(--duration-fast);
}
.ap-logo:hover {
  color: var(--ap-navy);
  opacity: 0.8;
}

.ap-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.ap-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}

.ap-nav-link {
  display: flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ap-gray-600);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
  text-decoration: none;
}

.ap-nav-link:hover,
.ap-nav-link.active {
  color: var(--ap-blue);
  background: var(--ap-blue-subtle);
}

.ap-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Mobile menu */
.ap-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--sp-2);
  cursor: pointer;
  color: var(--ap-navy);
  font-size: 1.5rem;
  line-height: 1;
}

.ap-mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ap-white);
  z-index: var(--z-modal);
  padding: var(--sp-6);
  overflow-y: auto;
}

.ap-mobile-nav.show {
  display: block;
  animation: slideDown var(--duration-normal) var(--ease-out);
}

.ap-mobile-nav .ap-nav-link {
  display: block;
  padding: var(--sp-4) var(--sp-4);
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--ap-gray-100);
}

@media (max-width: 1024px) {
  .ap-nav { display: none; }
  .ap-mobile-toggle { display: block; }
  .ap-header-actions .btn-outline-primary { display: none; }
}

/* -----------------------------------------------------------
   6. BOUTONS
   ----------------------------------------------------------- */
.btn-ap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-ap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--grad-shine);
  transition: left 0.5s var(--ease-out);
}
.btn-ap:hover::before {
  left: 100%;
}

.btn-ap-primary {
  background: var(--grad-blue);
  color: var(--ap-white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-ap-primary:hover {
  color: var(--ap-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}
.btn-ap-primary:active {
  transform: translateY(0);
}

.btn-ap-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--fs-base);
  border-radius: var(--radius-xl);
}

.btn-ap-outline {
  background: transparent;
  color: var(--ap-blue);
  border-color: var(--ap-gray-200);
  backdrop-filter: blur(4px);
}
.btn-ap-outline:hover {
  color: var(--ap-white);
  background: var(--ap-blue);
  border-color: var(--ap-blue);
  transform: translateY(-2px);
}

.btn-ap-outline-white {
  background: transparent;
  color: var(--ap-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ap-outline-white:hover {
  background: var(--ap-white);
  color: var(--ap-navy);
  border-color: var(--ap-white);
  transform: translateY(-2px);
}

.btn-ap-ghost {
  background: transparent;
  color: var(--ap-gray-600);
  padding: var(--sp-2) var(--sp-4);
}
.btn-ap-ghost:hover {
  color: var(--ap-blue);
  background: var(--ap-blue-subtle);
}

.btn-ap-dark {
  background: var(--ap-navy);
  color: var(--ap-white);
}
.btn-ap-dark:hover {
  background: var(--ap-navy-light);
  color: var(--ap-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* -----------------------------------------------------------
   7. HERO SECTION
   ----------------------------------------------------------- */
.ap-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding-top: 72px;
}

.ap-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.ap-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

/* Grid pattern overlay */
.ap-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.ap-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.ap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-full);
  color: var(--ap-blue-glow);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s var(--ease-out);
}

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

.ap-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-extrabold);
  color: var(--ap-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.ap-hero h1 .highlight {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ap-hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.7);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-8);
  max-width: 520px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.ap-hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
  flex-wrap: wrap;
}

.ap-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.ap-hero-stat {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ap-hero-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-lg);
  color: var(--ap-blue-glow);
  font-size: 1.1rem;
}

.ap-hero-stat-text {
  color: rgba(255,255,255,0.9);
}
.ap-hero-stat-text strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--ap-white);
}
.ap-hero-stat-text span {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero visual / illustration */
.ap-hero-visual {
  position: relative;
  animation: fadeIn 1s var(--ease-out) 0.3s both;
}

.ap-hero-car-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.ap-hero-car-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--grad-blue);
  border-radius: 0 0 2px 2px;
}

.hero-car-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(37,99,235,0.1) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.hero-car-placeholder i {
  font-size: 5rem;
  color: rgba(255,255,255,0.2);
}

.hero-car-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,22,40,0.5), transparent);
}

/* Map mini preview */
.ap-hero-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.ap-hero-map-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
}

.ap-hero-map-item i {
  color: var(--ap-blue-glow);
}

@media (max-width: 768px) {
  .ap-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--sp-12) var(--sp-6);
  }
  .ap-hero-subtitle { margin-inline: auto; }
  .ap-hero-actions { justify-content: center; }
  .ap-hero-stats { grid-template-columns: 1fr 1fr; }
  .ap-hero-visual { order: -1; }
}

/* -----------------------------------------------------------
   8. BARRE DE CONFIANCE
   ----------------------------------------------------------- */
.ap-trust-bar {
  background: var(--ap-white);
  border-bottom: 1px solid var(--ap-gray-100);
  padding: var(--sp-8) 0;
}

.ap-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.ap-trust-item {
  text-align: center;
}

.ap-trust-number {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--ap-blue);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.ap-trust-label {
  font-size: var(--fs-sm);
  color: var(--ap-gray-500);
  font-weight: var(--fw-medium);
}

@media (max-width: 768px) {
  .ap-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
}

/* -----------------------------------------------------------
   9. CARTES PREMIUM
   ----------------------------------------------------------- */
.ap-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.ap-card:hover {
  border-color: var(--ap-blue-pale);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.ap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-blue);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.ap-card:hover::before {
  opacity: 1;
}

.ap-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ap-blue-subtle);
  border-radius: var(--radius-lg);
  color: var(--ap-blue);
  font-size: 1.5rem;
  margin-bottom: var(--sp-5);
  transition: all var(--duration-normal);
}

.ap-card:hover .ap-card-icon {
  background: var(--grad-blue);
  color: var(--ap-white);
  transform: scale(1.05);
}

.ap-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--ap-navy);
  margin-bottom: var(--sp-3);
}

.ap-card-text {
  font-size: var(--fs-sm);
  color: var(--ap-gray-500);
  line-height: var(--lh-relaxed);
}

/* Dark card variant */
.ap-card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.ap-card-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.ap-card-dark .ap-card-icon {
  background: rgba(59,130,246,0.15);
  color: var(--ap-blue-glow);
}

.ap-card-dark:hover .ap-card-icon {
  background: var(--grad-blue);
  color: var(--ap-white);
}

.ap-card-dark .ap-card-title {
  color: var(--ap-white);
}

.ap-card-dark .ap-card-text {
  color: rgba(255,255,255,0.6);
}

/* -----------------------------------------------------------
   10. SECTION PROBLÈMES / SOLUTIONS
   ----------------------------------------------------------- */
.ap-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.ap-problem-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.ap-problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal);
  cursor: default;
}

.ap-problem-item:hover {
  background: var(--ap-gray-50);
}

.ap-problem-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
}

.ap-problem-icon.problem {
  background: #fef2f2;
  color: var(--ap-danger);
}

.ap-problem-icon.solution {
  background: #ecfdf5;
  color: var(--ap-success);
}

.ap-problem-item h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-1);
}

.ap-problem-item p {
  font-size: var(--fs-sm);
  color: var(--ap-gray-500);
  margin: 0;
}

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

/* -----------------------------------------------------------
   11. STEPS / PROCESSUS
   ----------------------------------------------------------- */
.ap-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-6);
  position: relative;
}

.ap-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--ap-gray-200);
  z-index: 0;
}

.ap-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ap-step-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  background: var(--ap-white);
  border: 2px solid var(--ap-gray-200);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--ap-gray-400);
  transition: all var(--duration-normal);
  position: relative;
}

.ap-step.active .ap-step-number,
.ap-step:hover .ap-step-number {
  background: var(--grad-blue);
  border-color: transparent;
  color: var(--ap-white);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.ap-step h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}

.ap-step p {
  font-size: var(--fs-sm);
  color: var(--ap-gray-500);
}

@media (max-width: 1024px) {
  .ap-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .ap-steps::before { display: none; }
  .ap-step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: var(--sp-4);
  }
  .ap-step-number {
    margin: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }
}

/* -----------------------------------------------------------
   12. TÉMOIGNAGES
   ----------------------------------------------------------- */
.ap-testimonial-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  position: relative;
  transition: all var(--duration-normal);
}

.ap-testimonial-card:hover {
  border-color: var(--ap-blue-pale);
  box-shadow: var(--shadow-lg);
}

.ap-testimonial-quote {
  font-size: 3rem;
  color: var(--ap-blue-pale);
  line-height: 1;
  margin-bottom: var(--sp-4);
  font-family: Georgia, serif;
}

.ap-testimonial-content {
  font-size: var(--fs-base);
  color: var(--ap-gray-600);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  font-style: italic;
}

.ap-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ap-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}

.ap-testimonial-info strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ap-navy);
}
.ap-testimonial-info span {
  font-size: var(--fs-xs);
  color: var(--ap-gray-400);
}

.ap-testimonial-stars {
  color: #fbbf24;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

/* -----------------------------------------------------------
   13. FORMULAIRES
   ----------------------------------------------------------- */
.ap-form-group {
  margin-bottom: var(--sp-5);
}

.ap-form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ap-navy);
  margin-bottom: var(--sp-2);
}

.ap-form-control {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  color: var(--ap-gray-800);
  background: var(--ap-white);
  border: 2px solid var(--ap-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-smooth);
  outline: none;
}

.ap-form-control:focus {
  border-color: var(--ap-blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.ap-form-control::placeholder {
  color: var(--ap-gray-400);
}

.ap-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

textarea.ap-form-control {
  resize: vertical;
  min-height: 120px;
}

.ap-form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.ap-form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ap-blue);
}

/* -----------------------------------------------------------
   14. FAQ ACCORDION
   ----------------------------------------------------------- */
.ap-faq-item {
  border: 1px solid var(--ap-gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: all var(--duration-normal);
}

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

.ap-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  background: var(--ap-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--ap-navy);
  text-align: left;
  transition: all var(--duration-fast);
}

.ap-faq-question:hover {
  color: var(--ap-blue);
}

.ap-faq-question i.bi-chevron-down {
  transition: transform var(--duration-normal) var(--ease-out);
  font-size: var(--fs-sm);
  color: var(--ap-gray-400);
}

.ap-faq-item.open .ap-faq-question i.bi-chevron-down {
  transform: rotate(180deg);
  color: var(--ap-blue);
}

.ap-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.ap-faq-item.open .ap-faq-answer {
  max-height: 500px;
}

.ap-faq-answer-inner {
  padding: 0 var(--sp-6) var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--ap-gray-600);
  line-height: var(--lh-relaxed);
}

/* -----------------------------------------------------------
   15. TRACKING / SUIVI
   ----------------------------------------------------------- */
.ap-tracking-timeline {
  position: relative;
  padding-left: var(--sp-8);
}

.ap-tracking-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ap-gray-200);
  border-radius: 2px;
}

.ap-tracking-step {
  position: relative;
  padding-bottom: var(--sp-8);
  padding-left: var(--sp-6);
}

.ap-tracking-step:last-child {
  padding-bottom: 0;
}

.ap-tracking-dot {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ap-white);
  border: 3px solid var(--ap-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ap-tracking-step.completed .ap-tracking-dot {
  background: var(--ap-success);
  border-color: var(--ap-success);
  color: white;
}

.ap-tracking-step.active .ap-tracking-dot {
  background: var(--ap-blue);
  border-color: var(--ap-blue);
  box-shadow: 0 0 0 6px rgba(37,99,235,0.2);
  animation: pulse 2s infinite;
}

.ap-tracking-step-title {
  font-weight: var(--fw-semibold);
  color: var(--ap-navy);
  margin-bottom: var(--sp-1);
}

.ap-tracking-step.completed .ap-tracking-step-title {
  color: var(--ap-success);
}

.ap-tracking-step.active .ap-tracking-step-title {
  color: var(--ap-blue);
}

.ap-tracking-step-time {
  font-size: var(--fs-xs);
  color: var(--ap-gray-400);
}

.ap-tracking-step-detail {
  font-size: var(--fs-sm);
  color: var(--ap-gray-500);
  margin-top: var(--sp-1);
}

/* Map placeholder */
.ap-map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--ap-gray-100);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--ap-gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ap-gray-400);
}

.ap-map-placeholder i {
  font-size: 3rem;
  margin-bottom: var(--sp-3);
}

/* -----------------------------------------------------------
   16. TARIFS
   ----------------------------------------------------------- */
.ap-pricing-card {
  background: var(--ap-white);
  border: 2px solid var(--ap-gray-100);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  text-align: center;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.ap-pricing-card.featured {
  border-color: var(--ap-blue);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}

.ap-pricing-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-blue);
  color: white;
  padding: var(--sp-1) var(--sp-5);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ap-pricing-card:hover {
  border-color: var(--ap-blue-pale);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.ap-pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.ap-pricing-name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--ap-navy);
  margin-bottom: var(--sp-2);
}

.ap-pricing-desc {
  font-size: var(--fs-sm);
  color: var(--ap-gray-500);
  margin-bottom: var(--sp-6);
}

.ap-pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--sp-8);
  text-align: left;
}

.ap-pricing-features li {
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--ap-gray-600);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ap-pricing-features li i {
  color: var(--ap-success);
  font-size: var(--fs-base);
}

/* -----------------------------------------------------------
   17. CTA SECTIONS
   ----------------------------------------------------------- */
.ap-cta {
  background: var(--grad-navy);
  border-radius: var(--radius-2xl);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ap-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.15), transparent 50%);
}

.ap-cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 50%, rgba(96,165,250,0.1), transparent 50%);
}

.ap-cta-content {
  position: relative;
  z-index: 1;
}

.ap-cta h2 {
  color: var(--ap-white);
  font-size: clamp(1.75rem, 3.5vw, var(--fs-4xl));
  margin-bottom: var(--sp-4);
}

.ap-cta p {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-8);
  max-width: 600px;
  margin-inline: auto;
}

/* -----------------------------------------------------------
   18. FOOTER
   ----------------------------------------------------------- */
.ap-footer {
  background: var(--ap-navy-dark);
  color: var(--ap-gray-400);
  padding-top: var(--sp-20);
}

.ap-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  padding-bottom: var(--sp-12);
}

.ap-footer-brand p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-4);
  max-width: 320px;
}

.ap-footer-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--ap-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-5);
}

.ap-footer-links {
  list-style: none;
  padding: 0;
}

.ap-footer-links li {
  margin-bottom: var(--sp-3);
}

.ap-footer-links a {
  font-size: var(--fs-sm);
  color: var(--ap-gray-400);
  transition: all var(--duration-fast);
}

.ap-footer-links a:hover {
  color: var(--ap-white);
  padding-left: var(--sp-2);
}

.ap-footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
}

.ap-footer-contact-item i {
  color: var(--ap-blue-glow);
  width: 16px;
}

.ap-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-6) 0;
}

.ap-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  font-size: var(--fs-xs);
}

.ap-footer-social {
  display: flex;
  gap: var(--sp-3);
}

.ap-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  color: var(--ap-gray-400);
  transition: all var(--duration-fast);
}

.ap-footer-social a:hover {
  background: var(--ap-blue);
  color: var(--ap-white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .ap-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .ap-footer-brand {
    grid-column: 1 / -1;
  }
  .ap-footer-bottom-inner {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }
}

/* -----------------------------------------------------------
   19. ANIMATIONS
   ----------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* -----------------------------------------------------------
   20. UTILITAIRES
   ----------------------------------------------------------- */
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }
.gap-12 { gap: var(--sp-12); }

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.mx-auto    { margin-inline: auto; }
.mb-0       { margin-bottom: 0 !important; }
.mb-4       { margin-bottom: var(--sp-4); }
.mb-6       { margin-bottom: var(--sp-6); }
.mb-8       { margin-bottom: var(--sp-8); }
.mb-12      { margin-bottom: var(--sp-12); }
.mb-16      { margin-bottom: var(--sp-16); }
.mt-4       { margin-top: var(--sp-4); }
.mt-8       { margin-top: var(--sp-8); }
.pt-20      { padding-top: var(--sp-20); }

.text-sm   { font-size: var(--fs-sm); }
.text-xs   { font-size: var(--fs-xs); }
.text-muted { color: var(--ap-gray-500); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold   { font-weight: var(--fw-bold); }

.d-flex    { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.overflow-hidden { overflow: hidden; }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Hero spacer for fixed header */
.page-header-spacer {
  padding-top: 72px;
}

/* Sub-page hero */
.ap-page-hero {
  background: var(--grad-hero);
  padding: var(--sp-24) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}

.ap-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.ap-page-hero .ap-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ap-page-hero h1 {
  color: var(--ap-white);
  font-size: clamp(2rem, 4vw, var(--fs-5xl));
  position: relative;
}

.ap-page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-lg);
  max-width: 600px;
  position: relative;
}

/* Breadcrumb */
.ap-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  position: relative;
}

.ap-breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}
.ap-breadcrumb a:hover {
  color: var(--ap-white);
}
.ap-breadcrumb .separator {
  color: rgba(255,255,255,0.3);
}
.ap-breadcrumb .current {
  color: rgba(255,255,255,0.9);
}

/* -----------------------------------------------------------
   21. COOKIE BANNER
   ----------------------------------------------------------- */
.ap-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ap-navy);
  color: var(--ap-gray-300);
  padding: var(--sp-5) var(--sp-6);
  z-index: var(--z-toast);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.ap-cookie-banner.show {
  transform: translateY(0);
}

.ap-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: var(--sp-6);
}

.ap-cookie-inner p {
  font-size: var(--fs-sm);
  margin: 0;
}

.ap-cookie-inner a {
  color: var(--ap-blue-glow);
}

@media (max-width: 768px) {
  .ap-cookie-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* -----------------------------------------------------------
   22. BACK TO TOP
   ----------------------------------------------------------- */
.ap-back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 48px;
  height: 48px;
  background: var(--grad-blue);
  color: var(--ap-white);
  border: none;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.ap-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ap-back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* -----------------------------------------------------------
   23. RESPONSIVE FINAL
   ----------------------------------------------------------- */
@media (max-width: 576px) {
  .section { padding: var(--sp-16) 0; }
  .section-lg { padding: var(--sp-20) 0; }
  .ap-cta { padding: var(--sp-10) var(--sp-6); }
  .display-1 { font-size: 2rem; }
}

/* -----------------------------------------------------------
   24. IMAGES & VISUELS
   ----------------------------------------------------------- */

/* Image container avec effet premium */
.ap-img-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.ap-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.ap-img-wrap:hover img {
  transform: scale(1.03);
}

/* Overlay dégradé */
.ap-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,22,40,0.4) 100%);
  pointer-events: none;
}

/* Image dans hero */
.hero-car-image {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  object-position: center 60%;
  display: block;
  filter: brightness(0.85) contrast(1.05);
  transition: filter 0.4s;
}

.ap-hero-car-card:hover .hero-car-image {
  filter: brightness(0.95) contrast(1.1);
}

/* Image dans carte de service */
.ap-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-5);
  transition: transform 0.4s var(--ease-out);
}

.ap-card:hover .ap-card-img {
  transform: scale(1.02);
}

/* Image dans section split */
.ap-section-img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

/* Image dans témoignage / blog */
.ap-blog-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(-1 * var(--sp-8));
  margin-bottom: var(--sp-6);
  width: calc(100% + 2 * var(--sp-8));
  max-width: none;
}

/* Image placeholder avec gradient */
.ap-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--ap-navy) 0%, var(--ap-navy-light) 50%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.ap-img-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 60%);
  border-radius: 50%;
}

/* Badge sur image */
.ap-img-badge {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  background: rgba(10,22,40,0.8);
  backdrop-filter: blur(10px);
  color: white;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-lg);
  font-size: var(--fs-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  z-index: 2;
}

/* Full width image section */
.ap-image-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  position: relative;
}

.ap-image-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85), rgba(10,22,40,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}
