/* ============================================
   TAXI VIDAL - Main Stylesheet
   Design System + Global Styles
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Colors */
  --color-primary: #0A1A2F;      /* Bleu nuit */
  --color-secondary: #E5D6BD;    /* Champagne */
  --color-light: #F6F5F2;        /* Ivoire */
  --color-gray: #D9D9D7;         /* Gris chaud */
  --color-success: #2D7A3E;
  --color-error: #C73838;
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 26, 47, 0.08);
  --shadow: 0 4px 20px rgba(10, 26, 47, 0.1);
  --shadow-lg: 0 8px 40px rgba(10, 26, 47, 0.15);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

/* 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;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-light);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--color-secondary);
}

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

ul {
  list-style: none;
}

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

/* Section Spacing */
section {
  padding: var(--spacing-3xl) 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: rgba(10, 26, 47, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--container-padding);
  gap: var(--spacing-lg);
}

.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  transition: var(--transition);
}

.logo-image:hover {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: var(--spacing-xs) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: var(--color-white);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

/* ============================================
   BOUTON APPEL FIXE (MOBILE)
   ============================================ */

.btn-call-fixed {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  transition: var(--transition);
}

.btn-call-fixed:hover {
  background-color: #142A45;
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(10, 26, 47, 0.2);
}

.btn-call-fixed svg {
  flex-shrink: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(135deg, rgba(10, 26, 47, 0.75) 0%, rgba(10, 26, 47, 0.3) 50%, rgba(10, 26, 47, 0.65) 100%);
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  animation: subtleZoom 30s ease-in-out infinite alternate, fadeInVideo 1.5s ease-out;
  opacity: 1;
  filter: brightness(0.9) contrast(1.05);
}

@keyframes fadeInVideo {
  from {
    opacity: 0;
    filter: brightness(0.9) contrast(1.05) blur(10px);
  }
  to {
    opacity: 1;
    filter: brightness(0.9) contrast(1.05) blur(0);
  }
}

@keyframes subtleZoom {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.1); 
  }
}

/* Fallback pour les navigateurs qui ne supportent pas la vidéo */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #142A45 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 
    0 2px 20px rgba(0, 0, 0, 0.5),
    0 4px 40px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  color: var(--color-white);
  text-shadow: 
    0 2px 15px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.9);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.badge:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* ============================================
   PRESENCE LOCALE
   ============================================ */

.presence {
  background-color: var(--color-white);
  padding: var(--spacing-lg) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-gray);
}

.presence-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  padding: var(--spacing-xl);
  background-color: var(--color-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card-highlight {
  background: linear-gradient(135deg, #F6F5F2 0%, #E5D6BD 100%);
  border: 2px solid var(--color-secondary);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: var(--radius);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.service-description {
  color: rgba(10, 26, 47, 0.8);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.service-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================
   VEHICULE
   ============================================ */

.vehicule {
  background-color: var(--color-light);
}

.vehicule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  align-items: center;
}

/* Galerie d'images moderne avec chevauchement */
.vehicule-images-gallery {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Indicateurs cachés par défaut sur desktop */
.gallery-indicators {
  display: none;
}

.gallery-image {
  position: absolute;
  border-radius: 2rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 
    0 10px 40px rgba(10, 26, 47, 0.15),
    0 2px 8px rgba(10, 26, 47, 0.1);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image 1 - Extérieur (en haut à gauche) */
.gallery-image-1 {
  width: 65%;
  max-width: 450px;
  top: 0;
  left: 0;
  transform: rotate(-3deg);
  z-index: 1;
}

.gallery-image-1 img {
  aspect-ratio: 4/3;
}

/* Image 2 - Intérieur (en bas à droite, chevauche légèrement) */
.gallery-image-2 {
  width: 60%;
  max-width: 420px;
  bottom: 0;
  right: 0;
  transform: rotate(4deg);
  z-index: 2;
}

.gallery-image-2 img {
  aspect-ratio: 16/10;
}

/* Effets au survol - Image 1 */
.gallery-image-1:hover {
  transform: rotate(-1deg) scale(1.05) translateY(-10px);
  z-index: 3;
  box-shadow: 
    0 20px 60px rgba(10, 26, 47, 0.25),
    0 5px 15px rgba(10, 26, 47, 0.15);
}

/* Effets au survol - Image 2 */
.gallery-image-2:hover {
  transform: rotate(2deg) scale(1.05) translateY(-10px);
  z-index: 3;
  box-shadow: 
    0 20px 60px rgba(10, 26, 47, 0.25),
    0 5px 15px rgba(10, 26, 47, 0.15);
}

/* Effet de luminosité au survol des images */
.gallery-image:hover img {
  filter: brightness(1.05) contrast(1.05);
}

/* Animation d'apparition */
.gallery-image-1 {
  animation: fadeInRotateLeft 0.8s ease-out;
}

.gallery-image-2 {
  animation: fadeInRotateRight 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInRotateLeft {
  from {
    opacity: 0;
    transform: rotate(-8deg) translateY(40px);
  }
  to {
    opacity: 1;
    transform: rotate(-3deg) translateY(0);
  }
}

@keyframes fadeInRotateRight {
  from {
    opacity: 0;
    transform: rotate(8deg) translateY(40px);
  }
  to {
    opacity: 1;
    transform: rotate(4deg) translateY(0);
  }
}

.vehicule-intro {
  font-size: 1.125rem;
  color: rgba(10, 26, 47, 0.8);
  margin-bottom: var(--spacing-xl);
}

.vehicule-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.feature {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.feature svg {
  flex-shrink: 0;
  color: var(--color-success);
}

.feature div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.feature span {
  font-size: 0.9375rem;
  color: rgba(10, 26, 47, 0.7);
}

/* ============================================
   PROCESSUS
   ============================================ */

.processus {
  background-color: var(--color-white);
}

.processus-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

.processus-step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin: 0 auto var(--spacing-md);
  font-family: var(--font-display);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.step-description {
  color: rgba(10, 26, 47, 0.7);
  font-size: 0.9375rem;
}

.processus-connector {
  width: 100px;
  height: 2px;
  background-color: var(--color-gray);
  margin-top: 30px;
  flex-shrink: 0;
}

/* ============================================
   CPAM
   ============================================ */

.cpam {
  background: linear-gradient(135deg, #F6F5F2 0%, #E5D6BD 100%);
  padding: var(--spacing-3xl) 0;
}

.cpam-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cpam-text {
  font-size: 1.125rem;
  color: rgba(10, 26, 47, 0.8);
  margin-bottom: var(--spacing-md);
}

.cpam-notice {
  padding: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.6);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-xl);
  text-align: left;
  font-size: 0.9375rem;
}

/* ============================================
   CARTE
   ============================================ */

.zone-carte {
  background-color: var(--color-white);
}

.map-container {
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-md);
}

.zone-info {
  text-align: center;
  color: rgba(10, 26, 47, 0.7);
  font-size: 0.9375rem;
  margin: 0;
}

/* ============================================
   AVIS CLIENTS
   ============================================ */

.avis {
  background-color: var(--color-light);
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.avis-card {
  padding: var(--spacing-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.avis-stars {
  color: #FFA500;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.1em;
}

.avis-text {
  font-style: italic;
  color: rgba(10, 26, 47, 0.8);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.avis-author {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
  margin: 0;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  background-color: var(--color-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: rgba(10, 26, 47, 0.7);
}

.faq-icon {
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: var(--spacing-md);
  color: rgba(10, 26, 47, 0.8);
  line-height: 1.7;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
  background: linear-gradient(135deg, var(--color-primary) 0%, #142A45 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-3xl) 0;
}

.cta-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.cta-text {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

/* Cacher les éléments mobile sur desktop */
.footer-contact-mobile,
.footer-legal-mobile {
  display: none;
}

.footer-title {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.footer-text {
  font-size: 0.9375rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-list a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--color-white);
  padding-left: 0.25rem;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-credit {
  margin-top: var(--spacing-sm);
  font-size: 0.8125rem;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-credit a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.required {
  color: var(--color-error);
}

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

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

