html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* supprime le scroll horizontal */
  box-sizing: border-box; /* inclut padding/border dans les dimensions */
}

.header-bg {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 120px 20px;
  color: white;
  overflow: hidden;
}

.header-bg h1,
.header-bg p {
  position: relative;
  z-index: 2; /* texte au-dessus de l'overlay */
  margin: 0;
  width: 100%;
  text-align: center;
}

.header-bg .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1; /* overlay derrière le texte mais devant les bg */
}

.header-bg .bg1,
.header-bg .bg2,
.header-bg .bg3 {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0; /* derrière overlay et texte */
  animation: fadeBackground 15s infinite;
}

.header-bg .bg1 { background-image: url("images/g1.png"); animation-delay: 0s; }
.header-bg .bg2 { background-image: url("images/g2.png"); animation-delay: 5s; }
.header-bg .bg3 { background-image: url("images/g3.png"); animation-delay: 10s; }

@keyframes fadeBackground {
  0%, 33% { opacity: 0; }
  11%, 22% { opacity: 1; }
  100% { opacity: 0; }
}

.service-card {
  transition: transform 0.4s ease;
  transform: scale(1);
}

.service-card,
.service-card h2,
.service-card h2 span,
.service-card p,
.service-card p span {
    color: #ffffff !important;
}

/* Animation d’agrandissement */
@keyframes pulseCard {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.08); }
  20%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* Chaque card commence à une période différente */
.card1 {
  animation: pulseCard 8s infinite;
  animation-delay: 0s;
}

.card2 {
  animation: pulseCard 8s infinite;
  animation-delay: 2s;
}

.card3 {
  animation: pulseCard 8s infinite;
  animation-delay: 4s;
}

.card4 {
  animation: pulseCard 8s infinite;
  animation-delay: 6s;
}

/* Wrapper pour cacher le débordement */
.avis-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Ligne horizontale des cartes */
.avis-marquee {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  animation: scroll-left 20s linear infinite;
  --marquee-width: 100%; /* valeur par défaut */
}


/* Cartes */
.avis-marquee .card {
  flex: 0 0 300px; /* largeur fixe */
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
}

/* Mobile : 1 carte visible */
@media (max-width: 768px) {
  .avis-marquee .card {
    flex: 0 0 90%;
    min-width: 90%;
  }
}


@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--marquee-width))); }
}




.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cartes individuelles */
.card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  flex: 1 1 250px; /* minimum 250px, flexible */
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden; /* empêche les images de dépasser */
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Images des utilisateurs */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}

/* Étoiles */
.stars {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #f0a500;
}

/* Texte */
.card p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: red; /* texte en blanc pour qu’il ressorte */
}

.airport-section {
  background-image: url('./images/airplane.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  height: 230px; /* Hauteur minimale */
}

.airport-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* overlay sombre pour le contraste */
}

.airport-section p {
  position: relative;
  z-index: 1;
}

.dispo-section {
  position: relative;
  background-image: url('./images/sec1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  height: 320px; /* Hauteur minimale */
}

.dispo-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* overlay sombre pour rendre le texte lisible */
}

.dispo-section button {
  position: relative;
  z-index: 1;
}

.dispo-section button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 18px;
  background-color: #f0a500;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dispo-section button:hover {
  background-color: #d18e00;
}

.pro-section {
  position: relative;
  background-image: url('./images/sec2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 80px 20px;
  height: 280px; /* Hauteur minimale */
}

.pro-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* overlay sombre pour contraste */
}

.pro-section button {
  position: relative;
  z-index: 1;
}

.pro-section button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 18px;
  background-color: #f0a500;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pro-section button:hover {
  background-color: #d18e00;
}


.event-section {
  position: relative;
  background-image: url('./images/sec4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  text-align: center;
  height: 220px; /* Hauteur minimale */
}

.event-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* overlay pour rendre le texte lisible */
}


.event-section button {
  position: relative;
  z-index: 1;
}

.event-section button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 18px;
  background-color: #f0a500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.event-section button:hover {
  background-color: #d18e00;
}

.nav-bar, footer {
  width: 100%;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b263b;
  padding: 10px 20px;
  position: relative;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a:hover {
  color: #f0a500;
}

.footer-container, .nav-links {
  max-width: 100%;  /* ne limite pas la largeur */
  margin: 0 auto;   /* centre si besoin */
}


.flags {
  display: flex;
  gap: 10px;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

.separator {
  width: 1px;
  height: 20px;
  background-color: #555;
}

.flags {
  display: flex;
  align-items: center;
  margin-left: auto; /* pousse les drapeaux à droite */
  gap: 5px;
}


.flag {
  width: 24px;
  height: 16px;
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

.flag:hover {
  transform: scale(1.2); /* petit effet au survol */
}


.nav-bar {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  gap: 20px;               /* espace entre les items */
  background: #1b263b;
  padding: 15px;
}

/* liens */
.nav-bar a {
  display: flex;
  align-items: center;
  gap: 5px;               /* espace entre icône et texte */
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

/* séparateurs verticaux */
.nav-bar a::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e0e1dd;
}
.nav-bar a:last-child::after {
  content: none;
}

/* flags */
.nav-bar .flags {
  display: flex;
  gap: 10px;
  margin-left: 20px; /* espace entre liens et drapeaux */
  align-items: center;
}

.nav-bar .flags img {
  width: 24px;
  height: 16px;
  cursor: pointer;
  border: 2px solid transparent; /* bordure par défaut invisible */
  border-radius: 4px;
  transition: border 0.3s;
}

.nav-bar .flags img.active {
  border: 2px solid #f0a500; /* couleur de la bordure du drapeau sélectionné */
}

#confort {
  margin-top: 50px;
  text-align: center;
}

.confort-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
  gap: 30px;
  max-width: 900px; /* largeur max de la section */
  margin-top: 25px;
  margin: 0 auto; /* centre l'ensemble */
  padding: 20px 0;
}

.confort-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: .3s ease;
}

.confort-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.confort-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

#contact p {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#contact i {
  color: #0d1b2a;
  font-size: 20px;
}

#contact a {
  text-decoration: none;
  color: #0d1b2a;
  font-weight: bold;
}

#contact .socials {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

#contact .social {
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  transition: .3s ease;
}

/* Instagram hover */
.social.instagram:hover {
  background: #E1306C;
  color: white;
}

/* Facebook hover */
.social.facebook:hover {
  background: #1877F2;
  color: white;
}

/* LinkedIn hover */
.social.linkedin:hover {
  background: #0077B5;
  color: white;
}

.social i {
  transition: 0.3s;
}
.social:hover i {
  transform: scale(1.2);
}


/* Grid pour les avis clients */
#avis {
  padding: 60px 20px;
  text-align: center;
}

#avis h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #222;
}

/* Cartes individuelles */
.card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  flex: 1 1 250px; /* minimum 250px, flexible */
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden; /* empêche les images de dépasser */
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Images des utilisateurs */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}

/* Étoiles */
.stars {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #f0a500;
}

/* Texte */
.card p {
  margin: 5px 0;
  color: #333;
  font-size: 0.95rem;
}


footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px 20px 20px;
  font-family: Arial, sans-serif;
  text-align: center; /* centre le texte */
  width: 100%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-contact p,
.footer-contact a,
.footer-socials a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}

.footer-socials a {
  margin-right: 10px;
  font-size: 20px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 14px;
}
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-container > div {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-container a {
  color: #fff;
  text-decoration: none;
  align-items: center;
}

.footer-container a:hover {
  color: #f0a500;
  align-items: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 14px;
}
/* ---- POPUP ---- */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 300px;
  text-align: center;
  animation: fadeIn .3s ease;
}

.confort-item {
  cursor: pointer; /* montre que c’est cliquable */
}

.popup-content h3 {
  margin-bottom: 10px;
}

.popup-content button {
  margin-top: 15px;
  padding: 8px 15px;
  border: none;
  background: #333;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.popup-content { position: relative; }
.close-popup {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}
#copy-wifi {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #1b263b;
  color: #fff;
  cursor: pointer;
}

/* Version propre : texte blanc uniquement dans les cartes */
/* Patch global (à placer tout à la fin) */
.service-card,
.service-card *,
.service-card h2,
.service-card p,
.service-card h2 span,
.service-card p span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  position: relative;
  z-index: 2;
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-wrapper input {
  width: 100%;
  padding-right: 40px; /* espace pour l’icône */
  box-sizing: border-box;
}

.calendar-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none; /* ne bloque pas le clic sur le champ */
  color: #0d1b2a; /* couleur visible, tu peux adapter */
  font-size: 18px;
}

/* visible par défaut (mobile) */
.mobile-label, .calendar-icon {
  display: block;
}

/* S’applique à tous les champs du formulaire, mobile-first */
#reservation-form input,
#reservation-form textarea,
#reservation-form input[type="datetime-local"] {
  width: 100% !important;      /* force la largeur complète */
  max-width: 100%;             /* pas de dépassement */
  box-sizing: border-box;      /* inclut padding et border */
  padding: 12px;               /* même padding que les autres */
  font-size: 16px;             /* harmonise la taille du texte */
}

/* Wrapper flex pour forcer la largeur */
.input-icon-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Input full width */
.input-icon-wrapper input {
  flex: 1;                  /* occupe tout l’espace */
  width: 100% !important;   /* force largeur */
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 12px; /* padding à droite pour l’icône */
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Icône calendrier */
.calendar-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
  color: #0d1b2a;
}


/* masqué sur desktop */
@media (min-width: 769px) {
  .mobile-label, .calendar-icon {
    display: none;
  }
}
/* Animation */
@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


@media (max-width: 480px) {
  .confort-list {
    grid-template-columns: 1fr;
  }
  .card {
    flex: 1 1 100%;
  }
}
/* Responsive pour mobile */
@media (max-width: 600px) {
  
  .mobile-label {
    display: block;
    color: black;
    margin-bottom: 5px;
    font-size: 16px;
    text-align: left;
    width: 100%;
  }
  
  .confort-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card {
    flex: 1 1 45%;
  }
  
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1b263b;
    flex-direction: column;
    width: 200px;
    padding: 10px 20px;
    gap: 15px;
    border-radius: 0 0 10px 10px;
    display: none; /* caché par défaut */
    z-index: 10;
  }

  .nav-links.active {
    display: flex;
  }
  
   .nav-bar a::after {
    content: none !important;
  }

    .header-bg h1 {
    font-size: 1.8rem !important; /* taille correcte pour mobile */
    text-align: center;
  }

  .header-bg p {
    font-size: 1rem !important;
    text-align: center;
  }

  .header-bg {
    padding: 80px 0px !important; /* moins d'espace en haut sur téléphone */
    text-align: center;
  }
  
  #avis .avis-grid {
    display: grid;               /* uniquement pour mobile */
    grid-template-columns: 1fr;  /* une colonne */
    justify-items: center;       /* centre horizontalement */
    align-items: center;         /* centre verticalement si besoin */
    gap: 20px;
    padding: 0;                  /* supprime le padding gauche/droite */
    margin: 0 auto;
    width: 100%;
  }

  #avis .avis-grid .card {
    width: 90%;                  /* taille adaptée à l’écran */
    max-width: 350px;
    margin: 0 auto;
  }
    /* Force la .service-grid en grid et neutralise les conflits flex */
  .service-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
    align-items: start;          /* évite l'étirement vertical */
    grid-auto-rows: minmax(0, auto); /* chaque cellule prend la hauteur de son contenu */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  /* Les cartes : pas de width forcée, hauteur auto, layout interne en colonne */
  .service-card {
    width: auto !important;
    max-width: 100%;
    margin: 0;
    padding: 12px !important;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 0;               /* important pour Safari */
    box-sizing: border-box;
    overflow: hidden;
    background-size: cover;      /* conserve l'image d'arrière-plan */
    background-position: center;
  }

  /* Neutraliser hauteurs fixes des sections (très important) */
  .service-card.airport-section,
  .service-card.dispo-section,
  .service-card.pro-section,
  .service-card.event-section {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 14px !important;   /* réduis le padding vertical */
    padding-bottom: 14px !important;
  }

  /* Titres et paragraphes compacts */
  .service-card h2, .service-card h3 {
    font-size: 1rem !important;
    margin: 6px 0;
    line-height: 1.15;
    text-align: center;
  }

  .service-card p {
    font-size: 0.9rem !important;
    margin: 6px 0 0;
    text-align: center;
    line-height: 1.3;
    color: white;
  }

  /* Si tu veux afficher une vignette (optionnel) — sinon les backgrounds restent */
  .service-card .thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    margin-bottom: 8px;
  }

  /* Evite conflits avec la règle globale .grid {display:flex} */
  .grid.service-grid { display: grid !important; }

  /* Petits ajustements visuels */
  .service-grid > * { box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
  
  .footer-container {
    flex-direction: column;    /* empile les blocs verticalement */
    align-items: center;       /* centre horizontalement les blocs */
    text-align: left;          /* texte aligné à gauche dans chaque bloc */
    gap: 15px;                 /* espace entre les blocs */
  }

  /* Chaque bloc : icône et texte sur la même ligne */
  .footer-container > div {
    display: flex;             /* icône + texte sur une ligne */
    align-items: center;       /* verticalement aligné */
    justify-content: flex-start; /* icône à gauche, texte à droite */
    gap: 8px;                  /* espace entre icône et texte */
    width: 100%;               /* pour que le bloc prenne toute la largeur */
    max-width: 300px;          /* optionnel, largeur max */
  }

  .footer-socials {
    flex-direction: row;       /* icônes sociales sur une ligne */
    justify-content: center;   /* centrer les icônes */
    gap: 15px;
  }
}