html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/*-----------------------------------------*/
/* NAVIGATION MENU specific styling */
/*-----------------------------------------*/
header {
  background-color: white;
  color: white;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  position: relative;
}

.logo img {
  height: 60px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px auto;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #26488C;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #8EBF91;
}

.nav-links li a.active {
  font-weight: bold;
  /*border-bottom: 2px solid #8EBF91;*/
  color: #8EBF91;
}

/* Overlay flou arrière-plan */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.menu-overlay.active {
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    background-color: #004080;
    color: #004080;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background-color: white;
    width: 150px;
    border-radius: 8px 8px 8px 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
    z-index: 1001;
  }

  .nav-links.open {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
  }
}
/*-----------------------------------------*/

/* Contenu principal et footer */
main {
  flex: 1;
}

/*-----------------------------------------*/
/* FOOTER specific styling */
/*-----------------------------------------*/
footer {
  text-align: center;
  background-color: #ffffff;
  /*border-style: dotted;
  border-color: black;*/
  padding: 1em;
}
/*-----------------------------------------*/

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
  margin: auto;
}

input,
textarea,
button {
  padding: 0.5em;
  font-size: 1em;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.gallery img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
}






/*-----------------------------------------*/
/* INDEX.HTML specific styling */
/*-----------------------------------------*/
.index_content {
  width: 100%;
  height: 100%;
  text-align:center;
  background: linear-gradient(60deg, rgba(38, 72, 140, 1) 0%, rgba(142, 191, 145,1) 100%);
  color:white;
}


.inner-header {
  height:60vh;
  width:100%;
  margin: 0;
  padding: 0;
}

.flex { /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position:relative;
  width: 100%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:100px;
  max-height:150px;
}

.content {
  position:relative;
  height:20vh;
  text-align:center;
  background-color: white;
}

/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height:40px;
    min-height:40px;
  }
  .content {
    height:30vh;
  }
  h1 {
    font-size:24px;
  }
}
/*-----------------------------------------*/
/*
*/
/*-----------------------------------------*/
/* ENTREPRISE.HTML specific styling */
/*-----------------------------------------*/
.entreprise_content {
  background: linear-gradient(60deg, rgba(38, 72, 140, 1) 0%, rgba(142, 191, 145,1) 100%);
  display: grid;
  grid-template-areas:
    "presentation image"
    "historique historique"
    "chiffres chiffres"
    "collaborateurs collaborateurs"
    "partenaires partenaires";
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  padding: 2em;
}

.entreprise_presentation { 
  border-style: dotted;
  border-color: #000000;
  grid-area: presentation; 
  background: white; 
  padding: 1em; 
  border-radius: 12px;
  text-align: justify;
  text-justify: inter-word;
}
.entreprise_image { 
  border-style: dotted;
  border-color: #000000;
  grid-area: image;
  background: white;
  padding: 1em; 
  border-radius: 12px;
}
.entreprise_image img { width: 100%; height: auto; border-radius: 8px; }

.entreprise_historique,
.entreprise_enchiffres,
.entreprise_collaborateurs,
.entreprise_partenaires {
  border-style: dotted;
  border-color: #000000;
  background: white;
  padding: 1em;
  border-radius: 12px;
}

.entreprise_historique { grid-area: historique; }
.entreprise_enchiffres { grid-area: chiffres; }
.entreprise_collaborateurs { grid-area: collaborateurs; }
.entreprise_partenaires { grid-area: partenaires; }

/* Responsive */
@media (max-width: 900px) {
  .entreprise_content {
    grid-template-areas:
      "presentation"
      "image"
      "historique"
      "chiffres"
      "collaborateurs"
      "partenaires";
    grid-template-columns: 1fr;
  }
}
/*-----------------------------------------*/
/*
*/
/*-----------------------------------------*/
/* METIERS.HTML specific styling */
/*-----------------------------------------*/
.metiers_content {
  background: linear-gradient(60deg, rgba(38, 72, 140, 1) 0%, rgba(142, 191, 145,1) 100%);
  display: grid;
  grid-template-areas:
    "text"
    "cardboard"
    "certifications";
  gap: 1.5em;
  padding: 2em;
}

.metiers_text {
  border-style: dotted;
  border-color: #000000;
  grid-area: text;
  background: white;
  padding: 1em;
  border-radius: 12px;
}

.certifications_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  background-color: white;
}

.certifications_table td {
  border: 1px solid #ccc;
  padding: 1em;
  vertical-align: top;
}

.certifications_table img {
  max-width: 80px;
  height: auto;
  display: block;
  margin: auto;
}

.metiers_cardboard {
  border-style: dotted;
  border-color: #000000;
  grid-area: cardboard;
  background: white;
  padding: 1em;
  border-radius: 12px;
}

.metiers_qualifications {
  border-style: dotted;
  border-color: #000000;
  grid-area: certifications;
  background: white;
  padding: 1em;
  border-radius: 12px;
}

.qualifications_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 0.95em;
  background-color: white;
}

.qualifications_table th,
.qualifications_table td {
  border: 1px solid #ccc;
  padding: 0.75em;
  vertical-align: top;
  text-align: left;
}

.qualifications_table th {
  background-color: #26488C;
  color: white;
}

.qualifications_table img {
  max-width: 50px;
  height: auto;
  display: block;
  margin: auto;
}

/* Responsive — aucune modification nécessaire ici 
   car la structure est déjà empilée, mais on garde la base */
@media (max-width: 768px) {
  .metiers_content {
    padding: 1em;
  }
}
/*-----------------------------------------*/
/*
*/
/*-----------------------------------------*/
/* REALISATIONS.HTML specific styling */
/*-----------------------------------------*/



















/*-----------------------------------------*/
/*
*/
/*-----------------------------------------*/
/* CONTACT.HTML specific styling */
/*-----------------------------------------*/
.contact_content {
  width: 95%;
  height: 100%;
  /*text-align:center;*/
  background: linear-gradient(60deg, rgba(38, 72, 140, 1) 0%, rgba(142, 191, 145,1) 100%);
  /*color:white;*/
  display: grid;
  grid-template-areas:
    "map map"
    "text form"
    "infos form";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 1em;
  padding: 2em;
  background-color: #f9f9f9;
}

.contact_map {
  border-style: dotted;
  border-color: #004080;
  grid-area: map;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
}

.contact_text {
  border-style: dotted;
  border-color: #000000;
  grid-area: text;
  background: white;
  padding: 1em;
  border-radius: 12px;
}

.contact_infos {
  border-style: dotted;
  border-color:#267b8c;
    grid-area: infos;
  background: white;
  padding: 1em;
  border-radius: 12px;
}

.contact_form {
  border-style: dotted;
  border-color: #8EBF91;
    grid-area: form;
  background: white;
  padding: 1em;
  border-radius: 12px;
}

.contact_form form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact_form input{
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact_form textarea {
  padding: 0.5em;
  font-size: 1em;
  min-height: 150px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact_form button {
  background-color: #26488C;
  color: white;
  border: none;
  padding: 0.75em;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsive layout */
@media (max-width: 768px) {
  .contact_page {
    grid-template-areas:
      "map"
      "text"
      "infos"
      "form";
    grid-template-columns: 1fr;
  }
}
/*-----------------------------------------*/









