/* A&H Taxi Design System */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Foundation Colors */
:root {
  --bg-page: #F8F5F1;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8F5F1;
  --bg-section: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #484848;
  --text-muted: #707070;
  --text-link: #333333;
  --border-light: #E4E4E4;
  --border-medium: #BABABA;
  --border-strong: #767676;
  --brand-green: #006034;
  --green-hover: #00502C;
  --green-active: #004024;
  --brand-orange: #FF4310;
  --orange-hover: #EB3906;
  --orange-active: #D72F00;
}

/* Reset and Base */
* {
  box-sizing: border-box;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  background: var(--bg-page);
}

/* Typography System */
.display-xl { font-size: 72px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.display-lg { font-size: 62px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.display-md { font-size: 47px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.heading-1 { font-size: 38px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.heading-2 { font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.heading-3 { font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.heading-4 { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; }
.body-xl { font-size: 20px; font-weight: 400; line-height: 1.6; letter-spacing: 0em; }
.body-lg { font-size: 18px; font-weight: 400; line-height: 1.6; letter-spacing: 0em; }
.body-md { font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: 0em; }
.body-sm { font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0em; }
.caption { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0.01em; }
.button-text { font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: 0em; }
.link-text { font-size: 18px; font-weight: 500; line-height: 1.33; letter-spacing: -0.5px; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--brand-green); }

/* Layout & Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.responsive-grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-section { 
  padding: 100px 24px 140px; 
  text-align: center; 
  position: relative; 
  background-image: url('joigny.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

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

.hero-section h1,
.hero-section h2,
.hero-section p,
.hero-section .text-green {
  color: #FFFFFF;
}

.hero-section .text-secondary {
    color: #E0E0E0;
}


.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }

/* Global Component Styles */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-16 > * + * { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.w-full { width: 100%; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* Buttons */
.btn-primary {
  background: var(--brand-green); color: white; border: none; border-radius: 42px;
  padding: 18px 32px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; min-height: 56px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
}
.btn-primary:hover {
  background: var(--green-hover); transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 96, 52, 0.3);
}

.btn-secondary {
  background: transparent; color: var(--brand-green); border: 2px solid var(--brand-green);
  border-radius: 42px; padding: 16px 24px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; min-height: 52px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-secondary:hover {
  background: var(--brand-green); color: white; transform: translateY(-1px);
}

.btn-secondary-white {
  background: transparent; color: white; border: 2px solid white;
  border-radius: 42px; padding: 16px 24px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; min-height: 52px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-secondary-white:hover {
  background: white; color: var(--text-primary); transform: translateY(-1px);
}
button i, a i { margin-right: 0.5rem; }

/* Cards */
.design-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px;
  padding: 40px 32px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); transition: all 0.3s ease;
  cursor: pointer; position: relative; height: 100%;
}
.design-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12); }
.card-icon {
  width: 64px; height: 64px; background: var(--brand-orange); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.card-icon i { color: white; width: 32px; height: 32px; margin: 0; }
.card-icon.w-12 { width: 48px; height: 48px; }
.card-icon.w-12 i { width: 24px; height: 24px; }

/* Header */
.design-header {
  background: var(--bg-page); border-bottom: 1px solid var(--border-light); padding: 10px 24px;
  position: sticky; top: 0; z-index: 100;
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo img {
    height: 100px;
    width: auto;
    display: block;
}
.nav-menu { display: flex; gap: 16px; align-items: center; }
.nav-link {
  color: var(--text-link); text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; transition: all 0.2s ease;
}
.nav-link:hover { background: rgba(0, 96, 52, 0.1); color: var(--brand-green); }
.nav-link.active { color: var(--brand-green); background: rgba(0, 96, 52, 0.1); font-weight: 600; }
.mobile-menu-button { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-primary); }
.mobile-menu { display: none; }

.mobile-phone-button {
    display: none;
}

/* Form Elements */
label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-primary); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-medium);
  border-radius: 8px; font-size: 16px; transition: border-color 0.2s;
  background: white;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand-green); }
textarea { min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Page Véhicules */
.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* Responsive */
@media (max-width: 809px) {
  .display-md { font-size: 38px; }
  .heading-1 { font-size: 32px; }
  .container { padding: 0 16px; }
  .design-header { padding: 10px 16px; }
  .nav-menu { display: none; }
  .mobile-menu-button { display: block; }
  .mobile-menu.open {
      display: block; position: absolute; top: 100%; left: 0; right: 0;
      background: var(--bg-card); border-bottom: 1px solid var(--border-light);
      padding: 20px; z-index: 50;
  }
  .mobile-menu a { display: block; padding: 12px 0; }
  .design-grid { display: grid; grid-template-columns: 1fr !important; gap: 1.5rem; }
  .responsive-grid-2-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-section { padding: 80px 16px 120px; }
  .form-grid { grid-template-columns: 1fr; }
  .flex-col { flex-direction: column; }
  
  .service-layout-grid > * {
    order: unset !important;
  }

  .nav-logo img {
    height: 60px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-model {
      order: 1;
  }
  .vehicle-text {
      order: 2;
  }
  
  .mobile-phone-button {
    background: var(--brand-green);
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 42px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .mobile-phone-button i {
      margin-right: 0;
  }

  .sketchfab-embed-wrapper {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 420px) {
    .mobile-phone-button span {
        display: none;
    }
    .mobile-phone-button {
        padding: 10px;
    }
}


/* Style pour le bouton téléphone dans le header */
.nav-phone-button {
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 18px 32px !important;
    background: var(--brand-orange) !important;
    box-shadow: 0 8px 24px rgba(255, 67, 16, 0.3) !important;
}

.nav-phone-button:hover {
    background: var(--orange-hover) !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 10px 30px rgba(255, 67, 16, 0.4) !important;
}

.nav-phone-button i {
    width: 20px;
    height: 20px;
}

/* Styles pour la validation des formulaires */
.form-error-message {
    color: #d00;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-top: 6px;
}

input.has-error, textarea.has-error, select.has-error {
    border-color: #d00 !important;
}

/* Styles pour la galerie de la flotte */
.fleet-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fleet-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fleet-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.fleet-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 809px) {
  .fleet-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Correction pour le centrage du bouton dans le menu mobile */
.mobile-menu-call-btn {
  gap: 0.75rem;
}
.mobile-menu-call-btn i {
  margin-right: 0;
}

/* Styles pour le formulaire d'avis */
.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.rating-stars input[type="radio"] {
  display: none;
}
.rating-stars label {
  font-size: 3rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
  margin: 0;
  padding: 0 0.25rem;
}
.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #FFC107;
}

/* Champ anti-spam */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Styles pour agrandir les modèles 3D */
.sketchfab-embed-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.sketchfab-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}