/* RESET MINIMAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* PAGE */
.page-citadines {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: url("/assets/img/hero3.jpg") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero {
  padding: 40px 0;
  text-align: center;
}

.hero-logo {
  max-width: 520px;
  height: auto;
}

/* CONTENU */
.content {
  flex: 1;
}

/* FOOTER */
.footer {
  padding: 40px 0 50px;
  text-align: center;
}

/* TEXTE BLANC — SIMPLE */
.reservation-label {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* TELEPHONE */
.reservation-phone {
  display: inline-block;
  background: #d65a42;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===============================
   VEHICLES GRID (Citadines / Utilitaires)
   =============================== */

.vehicles-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.vehicles-grid.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vehicle-card img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.vehicle-card .caption {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .vehicles-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Tuning layout vignettes (spacing + white captions) --- */
.vehicles-section { padding-top: 120px; padding-bottom: 60px; }
.vehicles-grid { gap: 72px; }
.vehicle-card .caption { color: #ffffff; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }

/* cliquable propre */
.vehicle-card { text-decoration: none; color: inherit; }
.vehicle-card:hover img { transform: translateY(-3px); transition: transform 140ms ease; }
.vehicle-card img { transition: transform 140ms ease; }


/* ===============================
   BOUTON RETOUR (global)
   =============================== */

.btn-back {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 50;
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-back:hover {
  background: rgba(0,0,0,0.75);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .btn-back {
    top: 16px;
    left: 16px;
    font-size: 13px;
    padding: 9px 14px;
  }
}


/* ===============================
   VEHICLE DETAIL PAGES
   =============================== */

.page-detail {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f5f3;
  padding: 24px 0;
}

.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px; /* ~5-10mm */
}

.detail-title {
  text-align: center;
  margin: 8px 0 22px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.detail-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.detail-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.detail-label {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}


/* ==== OVERRIDES: DETAIL PAGES (background + centering + consistent image size) ==== */

.page-detail{
  background: url("/assets/img/hero3.jpg") center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
}

.detail-wrap{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement le bloc titre + images */
  padding-top: 10px;
  padding-bottom: 40px;
}

.detail-title{
  font-size: 28px;      /* plus gros */
  font-weight: 900;
  color: #ffffff;       /* lisible sur background */
  text-shadow: 0 10px 28px rgba(0,0,0,0.55);
  margin: 0 0 18px;     /* plus “centré” visuellement */
}

.detail-grid{
  gap: 48px;            /* un peu plus d’air */
}

.detail-card{
  max-width: 520px;     /* cartes plus grandes et cohérentes */
  width: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(2px);
}

.detail-card img{
  height: 300px;        /* même hauteur => même “taille” visuelle */
  object-fit: cover;    /* recadre proprement sans déformer */
}

.detail-label{
  color: #111;
}

@media (max-width: 900px){
  .detail-card img{
    height: auto;       /* sur mobile on garde le ratio naturel */
  }
}


/* ==== DETAIL TITLE: SIZE + VERTICAL BALANCE ==== */

.detail-title{
  font-size: 31px;        /* +3 points (28 → 31) */
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin: 0 auto 26px;    /* espace maîtrisé avant les photos */
  text-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

/* ajuste le centrage global titre + photos */
.detail-wrap{
  justify-content: center;
  padding-top: 12px;     /* descend légèrement le bloc */
}



/* ==== DETAIL: move title up WITHOUT moving photos ==== */
.detail-title{
  position: relative;
  top: -68px;          /* ajuste ici si besoin */
}


/* ===============================
   UI POLISH (hover / focus / gallery)
   =============================== */

/* Vignettes catégories (citadines/luxe/utilitaires) */
.vehicle-card{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.vehicle-card:hover,
.vehicle-card:focus-visible{
  transform: translateY(-3px);
  filter: brightness(1.02);
}
.vehicle-card:focus-visible{
  outline: 3px solid rgba(255,255,255,0.65);
  outline-offset: 6px;
}

/* Cards page d’accueil */
.card{
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.card:hover,
.card:focus-visible{
  transform: translateY(-3px);
  filter: brightness(1.02);
}

/* Pages détail */
.detail-card{
  transition: transform .18s ease, box-shadow .18s ease;
}
.detail-card:hover{
  transform: translateY(-2px);
}

/* Mini galerie (pages détail) */
.mini-gallery{
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.mini-gallery a{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
  transition: transform .18s ease, filter .18s ease;
}
.mini-gallery a:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}
.mini-gallery img{
  width: 140px;
  height: 88px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px){
  .mini-gallery img{ width: 120px; height: 76px; }
}


/* Detail pages — clickable images polish */
.detail-card a{
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s ease, filter .18s ease;
}
.detail-card a:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

