@import url('https://fonts.cdnfonts.com/css/snailets-brk');
@import url('https://fonts.cdnfonts.com/css/gill-sans-nova-cond-ultra-bold');

/* Couleur de fond du site */
body {
  /*font-family: 'Snailets BRK', sans-serif; */
  background-color: #9EDDEB !important; /* bleu #9EDDEB */
  color: black !important;

}

/* Header et logo */
header img {
  width: 100%;
  height: auto;
}

/* Navbar */
.navbar {
  background-color: #E5A154;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem;
  background-color: #301910;
  box-sizing: border-box;
}

nav a {
  display: inline-block;
  flex-grow: 1;
  text-align: center;
  color: #301910;
  text-decoration: none;
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  border: 2px solid #301910;
  border-radius: 20px;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 30px;
}

/* Couleur au survol */
.custom-nav a:hover {
  background-color: #D1893D; /* Nouvelle couleur de fond de survol  */
  color: black; /* couelur du texte au survol */
  transform: scale(1.05);
}

/* Styles pour le milieu de la page et le footer */
.central-text, footer {
  font-family: 'Gill Sans Nova Cond Ultra Bold', sans-serif;
}

footer {
  background-color: black;
  padding: 5px 0;
  text-align: center;
}

footer p {
  color: gray;
  margin: 5px 0;
  font-size: 19px;
}

footer a {
  color: gray;
  text-decoration: underline;
  font-size: 19px;
}

/* Animation et splash */
header {
  position: relative;
  z-index: 1;
}

#splash {
  position: relative;
  z-index: 2;
}

/* Animation de pub */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes explode {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translate(-50%, -150%); }
  to { transform: translate(-50%, -50%); }
}

/* ----- Animation Escargot et Overlay ----- */

/* Overlay de la pub (voile) */
#adOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Voile semi-transparent */
  z-index: 998;
  opacity: 1;
  transition: opacity 1s;
}

#adOverlay.fadeOut {
  animation: fadeOverlay 1s forwards;
}

@keyframes fadeOverlay {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Conteneur principal de l'animation */
#escargotContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  z-index: 999;
  overflow: hidden;
  text-align: center;
}

/* Cadre coloré derrière l'escargot */
#escargotFrame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 165, 0, 0.3); /* Orange léger à 30% d'opacité */
  z-index: 0;
}

/* SVG de l'escargot */
#escargotImage {
  position: absolute;
  width: 50%;
  max-width: 600px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Texte affiché par-dessus */
#escargotText {
  position: absolute;
  z-index: 2;
  color: white;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  line-height: 1.4;
  max-width: 40%;
  text-align: center;
}

/* Animation "tourbillon" appliquée au conteneur */
#escargotContainer.swirl {
  animation: swirlOut 1s forwards;
}

@keyframes swirlOut {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(150vw, -50%) rotate(720deg) scale(0);
    opacity: 0;
  }
}

/* Adaptations responsives */

/* Pour écrans moyens */
@media (max-width: 992px) {
  #escargotImage {
    width: 60%;
  }
  #escargotText {
    font-size: 18px;
    max-width: 50%;
  }
}

/* Pour petits écrans */
@media (max-width: 576px) {
  #escargotImage {
    width: 70%;
  }
  #escargotText {
    font-size: 16px;
    max-width: 80%;
  }
}

/* Second navbar */
.second-navbar {
  background-color: #301910;
  color: #301910;
  padding: 10px 0;
  text-align: center;
  font-size: 16px;
}

.navbar-nav .nav-link {
  border: 2px solid white;
  border-radius: 20px;
  padding: 5px 10px;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover {
  background-color: white;
}

.navbar-brand {
  display: flex;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
}

.nav-link {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Styles spécifiques pour petits écrans */
@media (max-width: 576px) {
  .navbar-nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-item {
    flex: 1 1 auto;
    margin: 1mm;
  }

  .nav-link {
    text-align: center;
    padding: 3px 6px;
    font-size: 12px;
  }
}

.custom-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem;
  background-color: #E5A154; /* Fond du menu */
}

/* Styles des liens */
.custom-nav a {
  display: inline-block;
  flex-grow: 1;
  text-align: center;
  background-color: #301910; /* Fond actif par défaut */
  color: greenyellow;
  text-decoration: none;
  font-size: 30px; /* changer ici pour taille du texte des onglets! */
  padding: 1rem 2rem; /* augmente l'espace interne */
  border: 2px solid #301910;
  border-radius: 20px;
  font-family: 'Snailets BRK', sans-serif;
  transition: background-color 0.3s, transform 0.3s;
}

/* Couleur du lien actif (permanent sur l'onglet actuel) */
.custom-nav a.active {
  background-color: #301910;
  color: white;
  font-weight: bold;
}

/*  forcer toutes les pages à utiliser la même proportion (navbar) */

/* ok */

/* Bouton de retour stylisé pour la page de confirmation */
.btn-retour {
  display: inline-block; /* Permet au bouton de s'afficher en ligne sans prendre toute la largeur */
  padding: 12px 24px; /* Ajoute de l'espace autour du texte pour un meilleur rendu */
  background-color: #4CAF50; /* Couleur de fond verte */
  color: white; /* Couleur du texte en blanc */
  text-decoration: none; /* Supprime le soulignement du lien */
  font-size: 18px; /* Taille du texte */
  border-radius: 5px; /* Ajoute des bords arrondis */
  transition: 0.3s; /* Effet de transition pour l'animation au survol */
  margin-top: 20px; /* Ajoute un espace au-dessus du bouton */
}

/* Effet au survol du bouton */
.btn-retour:hover {
  background-color: #388E3C; /* Assombrit légèrement le vert pour un effet interactif */
}
/* ok */

/* 25.02.25 00H58 */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.confirmation-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer {
  margin-top: auto;
}
/* ok */

