/* ============================================================
   HOME PAGE — page-specific styles (v2, sobre/contraste)
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 56px;
  overflow: hidden;
  background: var(--ink);
  width: 100%;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  display: block;
  max-width: none;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 32%, rgba(0,0,0,0.42) 58%, rgba(0,0,0,0.22) 100%),
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.05) 40%, transparent 60%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hero-copy { order: 2; min-width: 0; width: 100%; box-sizing: border-box; }
.hero-form-wrap { order: 1; width: 100%; min-width: 0; box-sizing: border-box; margin-bottom: 32px; }
@media (min-width: 1025px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 5vw, 64px);
  }
  .hero-copy { order: unset; margin-bottom: 0; }
  .hero-form-wrap { order: unset; margin-bottom: 0; }
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.hero-copy .eyebrow .dot { background: var(--accent-soft); }
.hero-copy h1 {
  margin-bottom: 18px;
  color: var(--white);
}
.hero-copy h1 .accent-word {
  color: var(--accent-soft);
}
.hero-copy .lead {
  max-width: 100%;
}
.hero-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
}
.hero-trustline .stat {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.hero-trustline .stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  white-space: nowrap;
  transition: font-size 0.4s ease;
}
.hero-trustline .stat .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cta-row .btn-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.hero-cta-row .btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: var(--white); }

.hero-form-wrap { position: relative; }

@media (max-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 16px); min-height: unset; }
  .hero-bg img { object-position: 75% 40%; }
  .hero-copy .lead {
  max-width: unset;
}
}

@media (max-width: 620px) {
  .hero { padding-top: calc(var(--header-h) + 10px); padding-bottom: 40px; }
  .hero-trustline { display: none; }
}

/* ---------- LOGO STRIP ---------- */
/* ---------- USP GRID ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}



.usp-grid .card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.usp-grid .card p { font-size: 0.9rem; }

/* ---------- SERVICES ---------- */

@media (max-width: 1020px) {  }




/* .service-card : ancien nom avant renommage en .service-detail (voir
   plus bas dans ce fichier) — bloc mort retiré le 28/07/2026, vérifié
   qu'aucun HTML n'utilise cette classe. */






/* ---------- CITY TABS ---------- */
.city-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.city-tabs button {
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--stroke-strong);
  color: var(--text-mid);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  transition: all 0.2s ease;
}
.city-tabs button.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.city-panel { display: none; }
.city-panel.active { display: block; }

.city-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}


.city-detail .city-text h3 { margin-bottom: 14px; }
.city-detail .city-text p { margin-bottom: 14px; font-size: 0.95rem; }
.route-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.route-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  padding: 14px 18px;
}
.route-row .route-name { font-weight: 600; font-size: 0.92rem; color: var(--text-hi); }
.route-row .route-meta { font-size: 0.78rem; color: var(--text-low); }
.route-row .route-price { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.95rem; white-space: nowrap; }

.city-detail .city-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--stroke);
}
.city-detail .city-media img { width: 100%; height: 100%; object-fit: cover; }
.city-detail .city-media .media-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-hi);
}

/* ============================================================
   SERVICE TABS — même mécanique que city-tabs, grille 3x2 sur mobile
   pour éviter le scroll horizontal avec 6 onglets
   ============================================================ */
.service-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .service-tabs { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .service-tabs button { font-size: 0.62rem; padding: 6px 3px; gap: 2px; border-width: 1px; }
  .service-tabs button svg { width: 11px; height: 11px; }
}
.service-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--stroke-strong);
  color: var(--text-mid);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 12px 10px;
  border-radius: var(--r-pill);
  transition: all 0.2s ease;
  text-align: center;
}
.service-tabs button svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.service-tabs button.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.service-panel { display: none; }
.service-panel.active { display: block; }

.service-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.service-detail .service-text h3 { margin-bottom: 14px; }
.service-detail .service-text p { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.7; }
.service-detail .service-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--stroke);
}
.service-detail .service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail .service-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.service-detail .service-link:hover { text-decoration: underline; }

/* ---------- PRICING TABLE ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.price-card.featured {
  border-color: var(--ink);
  border-width: 2px;
}
.price-card .badge-pop {
  position: absolute; top: -12px; left: 28px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-pill);
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.price-card .sub { font-size: 0.84rem; color: var(--text-low); margin-bottom: 18px; }
.price-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.price-list .row {
  display: flex; justify-content: space-between;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}
.price-list .row span:first-child { color: var(--text-mid); }
.price-list .row span:last-child { font-weight: 700; color: var(--text-hi); font-family: var(--font-display); }
.price-from {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 4px;
}
.price-from .amount { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-hi); }
.price-from .unit { font-size: 0.82rem; color: var(--text-low); }

/* ---------- VEHICLE ---------- */
.vehicle-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.vehicle-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--stroke);
  min-height: 280px;
  aspect-ratio: 4/3;
  background: var(--surface);
}
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.spec-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.spec-item .spec-label { font-size: 0.74rem; color: var(--text-low); margin-bottom: 4px; }
.spec-item .spec-value { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.perk-list { display: flex; flex-direction: column; gap: 10px; }
.perk-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-mid);
}
.perk-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 26px;
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 16px; height: 16px; color: var(--amber); }
.testimonial-card p.quote { font-size: 0.95rem; color: var(--text-hi); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-author .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-author .meta { font-size: 0.78rem; color: var(--text-low); }

/* ---------- ZONE ---------- */
.zone-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .usp-grid { grid-template-columns: 1fr 1fr; }  .zone-block { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usp-grid { grid-template-columns: 1fr; }    .zone-block { grid-template-columns: 1fr; } }


.zone-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 22px;
}
.zone-card h4 { font-size: 0.98rem; margin-bottom: 8px; }
.zone-card p { font-size: 0.84rem; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta .eyebrow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: var(--accent-soft); }
.final-cta h2 { margin-bottom: 14px; color: var(--white); }
.final-cta p { max-width: 520px; margin: 0 auto 28px; color: rgba(255,255,255,0.72); }
.final-cta .hero-cta-row { justify-content: center; }
.final-cta .btn-accent { background: var(--accent); }
.final-cta .btn-accent:hover { background: var(--accent-soft); }

/* ============================================================
   COMMITMENT GRID : .commitment-item centralisé dans global.css.
   Seule cette page affiche 3 colonnes (2 partout ailleurs) —
   surcharge minimale, le reste (display/gap) vient de global.css.
   ============================================================ */
.commitment-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .city-detail { grid-template-columns: 1fr; }  .service-detail { grid-template-columns: 1fr; }  .pricing-grid { grid-template-columns: 1fr; }  .vehicle-block { grid-template-columns: 1fr; }  .commitment-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT GRID — section À propos accueil avec photo chauffeur
   ============================================================ */
.accueil-about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.accueil-about-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.25);
}
@media (max-width: 800px) {
  .accueil-about-grid { grid-template-columns: 1fr; }
  .accueil-about-photo { order: -1; max-width: 260px; margin: 0 auto; }
}
.accueil-about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}


/* ============================================================
   CARTE HERO — hero reduit 20% + panneau carte trajet
   (extrait de fr/1/index.html, valide en reel le 25/07/2026)
   26/07/2026 : carte reservee au desktop (>=992px) suite au bug de
   saut de mise en page sur mobile (jamais explique). Sous 992px,
   aucun effet visuel de la carte : hero-copy ne disparait jamais,
   trajet-panneau reste cache -> page identique a avant la carte.
   ============================================================ */
  /* Panneau carte : cache par defaut (tous ecrans) */
  .trajet-panneau {
    display: none;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    flex-direction: column;
  }

  @media (min-width: 992px) {
    /* Hero : texte reduit de 20% */
    .hero .hero-copy h1        { font-size: 0.8em; }
    .hero .hero-copy .lead     { font-size: 0.8em; }
    .hero .hero-copy .eyebrow  { font-size: 0.8em; }
    .hero .hero-trustline .num { font-size: 0.8em; }
    .hero .hero-trustline .lbl { font-size: 0.8em; }

    /* Transition douce du texte hero */
    .hero .hero-copy {
      transition: opacity .45s ease, transform .45s ease;
    }
    /* Etat "trajet pret" : le texte disparait, le formulaire glisse a gauche */
    .hero.trajet-actif .hero-copy {
      opacity: 0;
      transform: translateX(-30px);
      pointer-events: none;
      position: absolute;
      visibility: hidden;
    }

    .hero.trajet-actif .trajet-panneau { display: flex; }
  }

  /* En-tete : pastille verte depart - pastille noire arrivee */
  .trajet-entete {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    flex-wrap: wrap;
  }
  .trajet-entete .pastille {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: inline-block;
  }
  .trajet-entete .pastille.depart  { background: #0a8f5b; }
  .trajet-entete .pastille.arrivee { background: #111; }
  .trajet-entete .lien {
    width: 26px; height: 1px;
    background: #111;
    flex: 0 0 auto;
  }
  .trajet-entete .adr {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
  }

  /* La carte elle-meme */
  .trajet-panneau gmp-map {
    width: 100%;
    height: 420px;
    display: block;
  }

  /* Pied : distance et duree */
  .trajet-pied {
    padding: 14px 18px;
    font-size: 14px;
    color: #333;
  }
  .trajet-pied .sep { margin: 0 8px; color: #999; }

  /* Sur grand ecran : formulaire a gauche, carte a droite */
  @media (min-width: 992px) {
    .hero.trajet-actif .container {
      display: flex;
      gap: 24px;
      align-items: flex-start;
    }
    .hero.trajet-actif .hero-form-wrap { flex: 0 0 42%; }
    .hero.trajet-actif .trajet-panneau { flex: 1 1 auto; }
  }
  @media (max-width: 991px) {
    .trajet-panneau { margin-top: 20px; }
    .trajet-panneau gmp-map { height: 320px; }
  }

/* ---------- TAILLES HERO SPECIFIQUES PAR PAGE (ajoute le 26/07/2026) ---------- */
@media (min-width: 1025px) {
  .hero-size-fr .hero-copy h1 { font-size: clamp(1.69rem, 4.5vw, 2.66rem); }
  .hero-size-fr .hero-copy .lead { font-size: 0.972rem; }
}
@media (max-width: 1024px) {
  .hero-size-fr .hero-copy h1 { font-size: clamp(1.59rem, 4.5vw, 2.56rem); }
  .hero-size-fr .hero-copy .lead { font-size: 0.972rem; }
}

/* Page de test fr/1/ : +50% sur le titre et le texte d'intro, PC uniquement */
@media (min-width: 1025px) {
  .hero-size-test .hero-copy h1 { font-size: clamp(1.15rem, 1.5vw, 2.0rem); }
  .hero-size-test .hero-copy .lead { font-size: 1.62rem; }
}
