:root {
  --primary-color: #136aad;
  --secondary-color: #ff7f08;
  --background-light: #f0f0f0;
  --text-dark: #111111;
}
html,
body {
  max-width: 1440px; /* Limite la largeur maximale de la page */
  margin: auto; /* Centre la page */
  height: 100%; /* Assurez-vous que html et body occupent toute la hauteur de la page */
}

body {
  font-family: "Arial", sans-serif;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  margin: auto;
  justify-content: space-between;
}
a {
  text-decoration: none;
  color: var(--primary-color);
}
a:visited {
  color: var(--primary-color);
}
header {
  background-color: white;
  color: var(--primary-color);
  text-align: center;
  display: flex;
  justify-content: space-between;
  position: relative;
  /* margin: 0 20px; */
  padding: 0 30px;
  align-items: center;
}
header img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 5%;
}
header li {
  display: inline;
  padding: 10px;
  font-size: 24px;
}
header button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  position: fixed;
  display: none;
}
/* nav ul .menu {
  opacity: 1;
} */
nav li {
  background: linear-gradient(
    to right,
    var(--secondary-color) 100%,
    transparent 100%
  );
  background-size: 0 2px;
  background-repeat: no-repeat;
  transition: background-size 0.3s linear;
}
nav li:hover {
  background-size: 100% 2px;
}
nav ul li {
  position: relative;
}
nav ul li ul {
  position: absolute;
  width: 200px; /* Ajustez cette valeur en fonction de vos besoins */
  left: -67px;
  display: none;
  flex-direction: column;
}
nav ul li:hover ul {
  display: flex;
}
nav ul li ul li {
  background: linear-gradient(
    to left,
    var(--secondary-color) 100%,
    transparent 100%
  );
  background-size: 0 2px;
  background-position: bottom;
  background-repeat: no-repeat;
  transition: background-size 0.3s linear;
}

.menu_item{
  border-bottom: none;
}
nav ul li ul li:hover {
  background-size: 75% 2px;
}

.burger-button {
  display: none;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
/* @keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes move {
  0% {
    left: -20%;
  }
  50% {
    left: 25%;
  }
  100% {
    left: -20%;
  }
}

.gear-anim {
  position: relative;
  animation: rotate 3s linear infinite, move 10s ease-in-out infinite;
  width: 50px;
  height: 50px;
} */

main {
  flex: 1;
  height: auto;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.card {
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px;
  border-radius: 5px;
  background-color: white;
  width: calc(33% - 40px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.card h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.card p {
  margin-bottom: 10px;
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

footer i {
  color: var(--secondary-color);
}

footer a {
  color: white;
}
footer a:visited {
  color: white;
}

footer .info-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

footer .contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

footer .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

footer .contact-item i {
  margin-right: 10px;
  font-size: 20px;
}

footer .contact-item div {
  text-align: left;
}



.footer .map-container iframe {
  border-radius: 15px;
  max-width: 100%;
  height: auto;
}

footer .info-links {
  list-style: none;
  padding: 0;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

footer .info-links li {
  margin: 5px 0;
}

.contact-link {
  align-items: center;
  display: flex;
}

footer ul {
  list-style-type: none;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer li {
  border-bottom: none;
  padding: 0;
}

footer .site-credit {
  text-align: center;
  font-size: 10px;
  margin-top: 30px;
  margin-bottom: 0;
  color: white;
}

footer .site-credit a {
  color: white;
  text-decoration: none;
}

footer .site-credit a:hover {
  text-decoration: underline;
}

.social-links {
  display: inline-flex;
  gap: 10px;
  margin-left: 15px; /* Ajuste pour un espacement entre le lien de contact et les icônes */
}
.facebook-footer, .instagram-footer {
  color: white; /* Couleur blanche pour se fondre avec le footer */ 
  font-size: 18px; /* Taille des icônes */
}
.facebook-footer:hover, .instagram-footer:hover {
  color: var(--secondary-color); /* Couleur de survol */
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-banner.slide-in {
  transform: translateX(0);
  opacity: 1;
}

.cookie-banner.slide-out {
  transform: translateX(-100%);
  opacity: 0;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.cookie-content p a {
  color: var(--primary-color, #0055ff);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.cookie-accept {
  background-color: var(--primary-color, #0055ff);
  color: #fff;
}

.cookie-accept:hover {
  background-color: #0033cc;
}

.cookie-refuse {
  background-color: #e0e0e0;
  color: #333;
}

.cookie-refuse:hover {
  background-color: #ccc;
}

.cookie-customize {
  background-color: transparent;
  color: var(--primary-color, #0055ff);
  border: 1px solid var(--primary-color, #0055ff);
}

.cookie-customize:hover {
  background-color: rgba(0, 85, 255, 0.1);
}

.cookie-customize-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.cookie-customize-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
}

.cookie-customize-panel input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.cookie-save {
  background-color: var(--primary-color, #0055ff);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
}

.cookie-save:hover {
  background-color: #0033cc;
}

/* Début du style de la bannière de vacances*/

/* Conteneur de la bannière */
.banner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.7); /* Fond gris semi-transparent */
  z-index: 1000; /* Au-dessus des autres éléments */
  pointer-events: none; /* Permet les clics à travers le fond */
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center;
  overflow: hidden; /* Évite les débordements */
}

/* Conteneur de l’avion et de la bannière */
.airplane-banner {
  position: absolute;
  display: flex;
  align-items: center;
  pointer-events: auto; /* Permet les interactions avec la bannière */
  animation: flyAcross 35s linear forwards; /* Animation de 25s, une seule fois */
  top: 50%;
  transform: translateY(-50%); /* Centre verticalement */
}

/* Icône de l’avion */
.airplane-icon {
  font-size: 10rem; /* Taille de l’avion */
  color: var(--primary-color); /* Bleu pour l’avion */
  margin-right: 10px; /* Espace entre l’avion et la bannière */
  z-index: 10; /* Devant la bannière */
  position: relative;
  transform: rotate(46deg);
  transform-origin: center center; /* Centre la rotation */
}

/* Bannière avec le texte */
.banner-content {
  position: relative;
  background: linear-gradient(to bottom right, #87CEEB, #FFD700); /* Dégradé bleu ciel vers doré */
  color: #333; /* Texte sombre pour contraste */
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border: 10px solid transparent; /* Espace pour la bordure ondulée */
  border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M0 10 Q 5 5, 10 10 T 20 10" fill="none" stroke="#d32f2f" stroke-width="2"/></svg>') 20 stretch; /* Bordure ondulée */
  border-image-repeat: round;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  max-width: 500px; /* Allongée pour afficher tout le texte */
  z-index: 5; /* Derrière l’avion */
  animation: wave 2s ease-in-out infinite; /* Animation de flottement */
}

/* Animation de flottement */
@keyframes wave {
  0% { transform: translateY(0); }
  50% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* Bouton de fermeture */
.close-banner {
  position: fixed; /* Fixe sur l’écran */
  top: 25%; /* Position demandée */
  left: 50%; /* Centré horizontalement */
  transform: translate(-50%, -50%); /* Centre précisément */
  background: #d32f2f; /* Rouge pour le bouton */
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  width: 40px; /* Taille augmentée */
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  pointer-events: auto;
  z-index: 1010; /* Au-dessus de tout */
}

.close-banner:hover {
  background: #b71c1c; /* Rouge plus foncé au survol */
}

/* Texte de la bannière */
.banner-text {
  line-height: 1.4;
  max-width: 90%;
}

/* Saut de ligne dans le texte */
.banner-text br {
  display: block;
  margin: 5px 0;
}

/* Overlay de rappel des congés */
.vacation-overlay {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(to bottom, #40E0D0, #FF7F50); /* Dégradé turquoise vers rose corail */
  color: #333;
  padding: 15px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 900; /* En dessous de la bannière principale */
  max-width: 300px;
  line-height: 1.4;
  pointer-events: auto;
}

.close-overlay {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #d32f2f;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}
.close-overlay:hover {
  background: #b71c1c;
}

/* Animation de vol */
@keyframes flyAcross {
  0% {
    transform: translateX(-100%) translateY(-50%); /* Départ hors écran à gauche */
  }
  100% {
    transform: translateX(calc(100vw + 100%)) translateY(-50%); /* Sortie à droite */
  }
}

/* Media queries pour responsivité */
@media (max-width: 768px) {
  .banner-container {
    height: 100%;
  }
  .airplane-icon {
    font-size: 8rem; /* Réduit pour tablettes */
  }
  .banner-content {
    font-size: 0.9rem;
    padding: 12px 15px;
    max-width: 85%; /* Ajusté pour tablettes */
    border-width: 8px; /* Bordure plus fine */
  }
  .close-banner {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .vacation-overlay {
    font-size: 0.8rem;
    padding: 8px 12px;
    max-width: 200px;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .banner-container {
    height: 100%;
  }
  .airplane-icon {
    font-size: 7rem; /* Réduit pour mobiles */
  }
  .banner-content {
    font-size: 0.8rem;
    padding: 10px 12px;
    max-width: 80%; /* Ajusté pour mobiles */
    border-width: 6px; /* Bordure encore plus fine */
  }
  .close-banner {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .vacation-overlay {
    font-size: 0.75rem;
    padding: 6px 10px;
    max-width: 190px;
    bottom: 10px;
    right: 10px;
  }
}

/* Support pour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .airplane-banner {
    animation: none;
    transform: translateX(0) translateY(-50%);
  }
  .banner-content {
    animation: none; /* Désactive l’effet de flottement */
  }
}
/*Fin du style de la bannière de vacances */

@media screen and (max-width: 600px) {
  .cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 15px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
    text-align: center;
  }
}

/* Lien de gestion des cookies dans le footer */
.cookie-settings-link {
  color: white;
  text-decoration: none;
  font-size: inherit;
}

.cookie-settings-link:hover {
  text-decoration: none;
}

.cookie-message {
  text-align: center;
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 10px 0;
}

.cookie-message p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.cookie-message a.cookie-reopen {
  color: var(--primary-color, #136aad);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-message a.cookie-reopen:hover {
  color: #0f568a;
}

/* Ajoutez ces styles pour rendre votre menu responsive */
@media (max-width: 1150px) {
  .footer .map-container {
    display: none;
  }
}
@media (max-width: 1015px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }

  header img {
    margin: 0;
  }
  .burger-button {
    display: block; /* Afficher le bouton hamburger */
    color: var(--primary-color);
    position: absolute;
    right: 10px;
  }

  .menu {
    text-align: center;
    background-color: #f4f9fd;
    width: 100%;
    opacity: 0; /* Masquer le menu par défaut */
    transition: opacity 1s ease;
    position: absolute;
    padding: 0;
    max-width: 100%;
    right: 0;
    pointer-events: none; /* Désactiver les interactions */
    top: 86px;
    margin: 32px 0;
  }
  .menu-active .menu {
    opacity: 1; /* Afficher le menu lorsque le bouton est cliqué */
    pointer-events: auto; /* Activer les interactions lorsque le menu est ouvert */
    z-index: 200;
  }

  nav ul li {
    display: block;
    padding: 10px 0;
  }

  nav ul li ul {
    left: 100px;
    top: 0;
    position: relative; /* Position relative pour les sous-menus */
    width: 100%;
  }

  nav ul li ul li {
    padding-left: 20px; /* Indenter les sous-menus */
  }

  nav li {
    background: none;
  }

  nav ul li ul li {
    background: none;
  }

  #btn_hamb {
    display: none;
  }
}
/* Styles pour les écrans de moins de 768px */
@media (max-width: 768px) {
  footer .contact-item .address-line2,
  footer .contact-item .address-line3 {
    display: block;
  }
}
@media (max-width: 450px) {
  header img {
    width: 327px;
    height: 82px;
  }
  .menu {
    top: 86px;
  }
  nav ul li {
    font-size: 16px;
  }
  nav ul li ul {
    left: 85px;
    top: 0;
  }
  footer {
    font-size: 12px;
  }
}
@media (max-width: 400px) {
  header img {
    width: 290px;
    height: 70px;
  }
  .burger-button {
    font-size: 30px;
  }
}
@media (max-width: 370px) {
  header img {
    width: 260px;
    height: 65px;
  }
  .burger-button {
    font-size: 25px;
  }
}
@media (max-width: 325px) {
  header img {
    width: 230px;
    height: 60px;
  }
  .burger-button {
    font-size: 20px;
  }
}