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

html, body {
  height: 100vh;         /* 100dvh = hauteur réelle de la fenêtre */

  overflow: hidden;      /* sur html AUSSI : bloque tout décalage/défilement */
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}



/* --- Barre de navigation : liens à gauche, logo à droite --- */
.navbar {
  position: relative;
  max-width: 100%;
  height: 70px;
  background-color: #014b88;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  flex-shrink: 0;
  z-index: 200;
}

.brand {
  order: 3;
}

.brand img {
  height: 55px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  order: 1;
}

.nav-links a,
.dropbtn {
  display: block;
  color: #ffffff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  background: none;
  border: none;
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.nav-links a:hover,
.dropbtn:hover,
.dropdown.open .dropbtn {
  background-color: #003366;
  color: #ffffff;
}

.nav-links a.active {
  background-color: #014b88;
  color: #ffffff;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #014b88;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-top: 3px solid #003366;
}

.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
}

.burger {
  display: none;
  order: 4;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

/* --- Vidéo plein écran --- */
.hero {
  flex: 1;
  position: relative;
  overflow: visible;    /* la vidéo ne peut plus sortir du hero */
  min-height: 0;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;        /* 100% du hero, pas 100vh */
  object-fit: cover;
}

/* Image à droite, juste sous le header */
.hero-image {
  position: absolute;
  right: 6%;
  top: 10px;
  transform: none;
  max-width: 20%;
  max-height: 38%;
  cursor: pointer;         /* indique qu'elle est cliquable */
  transition: opacity 0.5s;
}
.hero-image.cachee {
  opacity: 0;
  pointer-events: none;
}

/* --- Pied de page : scène d'eau + contenu en 3 blocs --- */


:root {
  --crete-eau: 90px;
  --marge-bonhomme: 65px;
}

.eau {
  position: absolute;
  left: 0;
  top: var(--crete-eau);
  width: 100%;
  height: 190px;
  object-fit: fit;
  object-position: top center;
  will-change: transform;
}

.eau-avant2 {
  z-index: 1;
  animation: eau2 6s ease-in-out infinite alternate;
}

.eau-avant {
  z-index: 4;
  animation: eau1 4s ease-in-out infinite alternate;
}

@keyframes eau1 {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(16px); }
  100% { transform: translateY(0); }
}

@keyframes eau2 {
  0%   { transform: scaleX(-1) translateY(6px); }
  50%  { transform: scaleX(-1) translateY(30px); }
  100% { transform: scaleX(-1) translateY(6px); }
}

/* Le bonhomme : dans la scène d'eau, PAS dans le contenu */
.flottant {
  position: absolute;
  left: 6%;
  top: calc(var(--crete-eau) - var(--marge-bonhomme));  /* toujours au-dessus de la crête */
  width: 150px;
  z-index: 2;
}

.antoninflotte {
  width: 100%;
  height: auto;
  display: block;
  animation: flotte 6s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes flotte {
  0%   { transform: translateY(0)   rotate(0deg); }
  50%  { transform: translateY(6px) rotate(4deg); }
  100% { transform: translateY(0)   rotate(0deg); }
}

/* Le contenu : 3 blocs + colonne vide, au-dessus de tout */
.footer {
  position: relative;
  height: 220px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 51, 102, 0), #003366);
  flex-shrink: 0;
  z-index: 2;
}

.footer-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 140px;
  padding: 0 2rem 0.5rem;
}

.footer-espace {
  width: 170px;
  flex-shrink: 0;
}





.footer-tel {
  flex: 1;
  text-align: center;
  color: #FFFFFF;
  font-size: clamp(2.4rem, 6vw, 4rem);   /* beaucoup plus gros qu'avant */
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  text-decoration: none;
}

.btn-info {
  flex-shrink: 0;
  align-self: center;
  background: #014b88;
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-family: inherit;
  letter-spacing: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-info:hover {
  background: #003366;
}

.footer-maison img {
  height: 55px;
}

/* --- Pop-up info --- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 20, 40, 0.6);
  padding: 1rem;
}

.overlay.open {
  display: flex;
}

.modal {
  position: relative;
  background: #f4fafd;
  color: #0a2342;
  width: min(640px, 94%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  border-radius: 12px;
  border-top: 6px solid #014b88;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal h2 {
  color: #014b88;
  letter-spacing: 2px;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #014b88;
  cursor: pointer;
}

/* Le bloc texte vit maintenant dans le pop-up :
   il n'a plus besoin de sa hauteur plafonnée ni de scrollbar */
.modal .footer-info {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}






.footer-info {
  flex: 1;
  max-height: 100px;      /* le texte ne pousse plus jamais le footer */
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.5;
  color: #0a2342;
  padding-right: 8px;
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #014b88 #c3dcec;
}

.footer-info::-webkit-scrollbar {
  width: 6px;
}

.footer-info::-webkit-scrollbar-track {
  background: #c3dcec;
  border-radius: 3px;
}

.footer-info::-webkit-scrollbar-thumb {
  background: #014b88;
  border-radius: 3px;
}


.footer-info a {
  color: #014b88;
  text-decoration: none;
}

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

.footer-info svg {
  width: 20px;
  height: 20px;
  fill: #014b88;
  vertical-align: middle;
  margin: 0 4px;
}

.footer-info svg.stroke {
  fill: none;
  stroke: #014b88;
  stroke-width: 2;
}

.footer-info svg .fill {
  fill: #014b88;
}

.footer-maison {
  flex-shrink: 0;
}

.footer-maison img {
  height: 70px;
}



.flottant {
  cursor: pointer;
}

.flottant:focus-visible {
  outline: 3px solid #ffffff;
  border-radius: 8px;
}

.form-recherche {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.form-recherche input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1.05rem;
  border: 2px solid #014b88;
  border-radius: 8px;
  font-family: inherit;
  color: #0a2342;
}

.form-recherche input:focus {
  outline: 3px solid rgba(1, 75, 136, 0.3);
}

.form-recherche button {
  background: #014b88;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
}

.form-recherche button:hover {
  background: #003366;
}

.indice-recherche {
  font-size: 0.9rem;
  color: #5a6b7b;
}

.indice-recherche a {
  color: #014b88;
}


/* --- Mobile --- */
@media (max-width: 785px) {

  :root {
    --crete-eau: 100px;     /* l'eau monte sur la vidéo en mobile */
    --marge-bonhomme: 40px;
  }
  
  body {
    overflow-y: auto;
	background-color: #469cb0;
	
  }

  .hero {
    min-height: 55vh;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background-color: #014b88;
    border-top: 1px solid #003366;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
  }

 .eau {
    height: 140px;
  }

  .flottant {
    left: 4%;
    width: 90px;
  }

  .footer {
    height: auto;

  }
   .footer-info {
    max-height: none;
    overflow: visible;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    margin-top: 110px;
  }

  .footer-espace {
    display: none;
  }

}
</style>