/*
 * Feuille de style principale pour le site de réservation VTC.
 * Le thème sombre avec des accents dorés est inspiré de sites de chauffeur privé haut de gamme.
 * On utilise des variables CSS pour faciliter la cohérence des couleurs.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-dark: #0b0b0b;
  --color-darker: #050505;
  --color-light: #ffffff;
  --color-muted: #aaaaaa;
  --color-primary: #c4a24a; /* teinte dorée douce */
  --color-primary-dark: #b08d34;
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --max-width: 1200px;
  --nav-height: 70px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #000; /* ✅ fond noir si l’image ne charge pas */
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-primary-dark);
}

/* Navigation */
.navbar {
  background-color: var(--color-darker);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  padding: 0.5rem 0.75rem;
  color: var(--color-light);
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-links li a.active,
.nav-links li a:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

/* Langue sélection */
.language-select {
  margin-left: 1rem;
  padding: 0.3rem 0.5rem;
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Slideshow for tourist section */
.slideshow {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}

/* ✅ amélioration visibilité du diaporama */
.slideshow img.active {
  display: block;
  opacity: 0.8; /* augmente la visibilité, tu peux mettre 0.9 pour encore plus clair */
  filter: brightness(1.1); /* éclaire légèrement les images */
  transition: opacity 1.5s ease-in-out;
}

/* Diaporama de la section héroïque (plein écran). Les images sont
   superposées et défilent avec un filtre sombre pour laisser
   apparaître le texte. */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}
.hero-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  display: none;
}

/* Héros */
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
  overflow: hidden;
}

.hero::before {
  /* Le diaporama de la section héroïque gère l’image de fond.
     Nous supprimons l’image statique et conservons uniquement
     le conteneur pour positionnement. */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* aucune image de fond : les slides s’en chargent */
  background: none;
  z-index: -3;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  z-index: -1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.btn {
  background-color: var(--color-primary);
  color: var(--color-dark);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--color-primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

/* WhatsApp floating button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 1000;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Contact page styles */
.contact-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.contact-item p a {
  color: var(--color-light);
  text-decoration: underline;
}

/* Sections générales */
section {
  padding: 4rem 1rem;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Cartes de caractéristiques/services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--color-card-bg);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo image sizing */
.logo img {
  height: 60px; /* ajuste la taille si besoin */
  border: 2px solid #d4af37; /* cadre doré élégant */
  border-radius: 8px; /* coins légèrement arrondis */
  padding: 4px; /* espace entre le logo et le bord */
  background-color: #0a0a0a; /* fond noir / bleu très foncé pour le contraste */
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); /* légère lueur dorée */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05); /* petit zoom au survol */
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); /* effet lumineux pro */
}
  /* Keep the logo at a reasonable height within the navbar */
  height: 40px;
  width: auto;
}

/* Service card images */
.card-icon img {
  /* When an image is placed inside the card-icon container, give it a fixed size */
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  flex-grow: 1;
}

.card .card-btn {
  margin-top: 1.5rem;
  align-self: start;
  font-size: 0.9rem;
}

/* Tableaux de tarifs */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table th,
table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
  background-color: var(--color-card-bg);
  color: var(--color-primary);
  font-weight: 600;
  text-align: left;
}

table td {
  color: var(--color-light);
}

/* Formulaire de réservation */
.reservation-form {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.reservation-form .full-width {
  grid-column: span 2;
}

.reservation-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-darker);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--color-light);
  font-size: 0.95rem;
  outline: none;
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  border-color: var(--color-primary);
}

.reservation-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.reservation-form textarea {
  resize: vertical;
  min-height: 100px;
}

.reservation-form .options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.reservation-form .options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  color: var(--color-muted);
}

.reservation-form .options input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.reservation-form .submit-btn {
  grid-column: span 2;
  margin-top: 1rem;
  text-align: center;
}

/* Footer */
footer {
  margin-top: auto;
  background-color: var(--color-darker);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

footer p {
  margin-bottom: 0.5rem;
}

/* Classe utilitaire pour masquer les éléments */
.hidden {
  display: none !important;
}

/* Section éco-responsable */
.eco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 1rem;
  padding: 1.5rem;
  background-color: var(--color-card-bg);
  border-radius: 8px;
}

.eco img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.eco p {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  section {
    padding: 3rem 1rem;
  }
  .reservation-form {
    grid-template-columns: 1fr;
  }
  .reservation-form .full-width {
    grid-column: span 1;
  }
}
/* === ALIGNEMENT LOGO + MENU === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
}

/* === MENU PRINCIPAL === */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  padding-top: 3px;
}  

nav ul li a:hover {
  color: #d4af37; /* doré au survol */
}

/* === LANGUES AVEC DRAPEAUX === */
.language-select {
  background-color: transparent;
  color: #fff;
  border: 1px solid #d4af37;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: 500;
}

.language-select option {
  color: #000;
  font-weight: 500;
}
/* ==== Fond de la page SERVICES ==== */
/* Version simple (marche même si tu n'as pas mis le code de transition) */
/* === Fonds d’arrière-plan des pages === */

/* SERVICES = Tour Eiffel */
/* ==== FONDS PAR PAGE ==== */

body.services-page {
  background-image: url('/assets/nani.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.gamme-page {
  background-image: url('../assets/bastille.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.tarifs-page {
  background-image: url('../assets/notre-dame.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.apropos-page {
  background-image:
    url('../assets/logo-ecologie.jpg'),
    url('../assets/logo-raylan.jpg');
  background-position: center right 0, center bottom;
  background-size: 200px 180px, 200px 180px;
  background-repeat: no-repeat, no-repeat;
}
/* SERVICES = Tour Eiffel */
body.services-page {
  background-image: url('./assets/tour-nani.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* GAMME = Bastille */
body.gamme-page {
  background-image: url('./assets/bastille.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* TARIFS = Notre-Dame */
body.tarifs-page {
  background-image: url('./assets/notre-dame.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* À PROPOS = logos Raylan + écologie */
body.apropos-page {
  background-image:
    url('./assets/logo-ecologie.jpg'),
    url('./assets/logo-raylan.jpg');
  background-position: center right, center bottom;
  background-size: 200px 180px, 200px 180px;
  background-repeat: no-repeat, no-repeat;
  
}
/* === VERSION MOBILE COMPLÈTE === */
@media (max-width: 768px) {

  /* === Structure générale === */
  body {
    background-attachment: scroll !important; /* évite le bug iPhone */
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
  }

  /* === NAVBAR === */
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px 15px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-links li a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .logo img {
    height: 50px;
    margin-bottom: 10px;
  }

  /* === SECTION HERO === */
  .hero {
    min-height: 50vh;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* === FORMULAIRES (Réservation + Contact) === */
  form,
  .reservation-form {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  form input,
  form select,
  form textarea,
  .reservation-form input,
  .reservation-form select,
  .reservation-form textarea {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .submit-btn {
    text-align: center;
  }

  /* === CARTES (services, gammes, etc.) === */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  /* === TEXTE === */
  p,
  li {
    font-size: 0.95rem;
  }

  /* === SECTION ÉCO RESPONSABLE === */
  .eco {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .eco img {
    width: 50px;
    height: 50px;
  }

  /* === FOOTER === */
  footer {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 2rem 1rem 80px 1rem;
  }

  footer a {
    display: inline-block;
    margin-top: 0.4rem;
  }

  /* === WHATSAPP FLOATING BUTTON === */
  .whatsapp-button {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }

  /* === IMAGES DE FOND PAR PAGE === */
  body.services-page,
  body.gamme-page,
  body.tarifs-page,
  body.apropos-page,
  body.reservation-page,
  body.contact-page {
    background-attachment: scroll !important; /* iPhone fix */
    background-size: cover;
    background-position: center;
  }

  /* === FAQ === */
  .faq-item {
    margin-bottom: 1rem;
  }

  .faq-item h3 {
    font-size: 1rem;
  }

  .faq-item p {
    font-size: 0.9rem;
  }
}
.i18n-missing { outline: 1px dashed #ffcc00; }
body.services-page {
  background: url('/assets/nani.jpg') center/cover fixed no-repeat !important;
  background-color: #000 !important;
  color: #fff !important;
}
/* === Fond spécifique pour la page Services === */
body.services-page {
  background: url('assets/nani.jpg') center center / cover no-repeat fixed;
  background-color: #000; /* fond noir si image absente */
  color: #fff;
}