/* Design pour toute la page */
body {
  background-color: #AADCF2;
  margin: 0;
  font-family: Calibri, Arial, sans-serif;
  font-size: 100%;
}

h1 {
  font-size: 2.5em;
  margin-left:5%;
  margin-right:5%;
}

h2 {
  font-size: 2.0em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

p {
  font-size: 1.0em;
}

a {
 text-decoration: none;
}


/* Bandeau de haut de page */

.container {
  position: relative;
  margin: 0;
}

.logo {
  position: absolute;
  top: 1%;
  left: 1%;
  z-index: 3;
  width: 23%;
}


.geopartenariat {
  position: absolute;
  top: 10%;
  right: 5%;
  opacity: 1;
  z-index: 3;
  width: 15%;
}


.texte-header {
  position: absolute;
  top: 60%;
  left: 1%;
  background-color: white;
  opacity: 0.8;
  color: auto;
  z-index: 2;
  width: 23%;
  text-align: center;
  font-size: 1.5vw;
  font-style: italic;
}

.contact-header {
  position: absolute;
  top: 60%;
  right: 5%;
  background-color: white;
  opacity: 0.8;
  z-index: 2;
  width: 15%;
  text-align: center;
  font-size: 1.5vw;
}

.contact-header p {
  font-weight: bold;
  color: black;
  font-size: 1.3vw;
  padding: 5%;
}

.contact-header {
  position: absolute;
  top: 60%;
  right: 5%;
  background-color: white;
  color: auto;
  opacity: 0.8;
  z-index: 2;
  width: 15%;
  text-align: center;
  font-size: 1.5vw;
  font-weight: bold;
}


/* Menu de navigation */

/* Menu de navigation avec sticky */

[id] {
  scroll-margin-top: 60px;
}

.topnav {
  overflow: hidden;
  background-color: rgba(20,108,54,1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.topnav a {
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #AADCF2;
  color: black;
}

.topnav .icon {
  display: none;
}

.topnav .menu {
  display: none;
}

/* Conteneur des réseaux sociaux */
.social-nav {
  margin-left: auto;
  display: flex;
  gap: 5px;
  padding-right: 10px;
}

.social-nav .social-link {
  padding: 10px 12px;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-nav .social-link:hover {
  transform: scale(1.2);
  background-color: transparent;
}

/* Couleurs des réseaux sociaux */
.social-nav a[href*="facebook"]:hover {
  color: #3B5998;
}

.social-nav a[href*="youtube"]:hover {
  color: #FF0000;
}

.social-nav a[href*="instagram"]:hover {
  color: #E1306C;
}

.social-nav a[href*="linkedin"]:hover {
  color: #0077B5;
}

/* Adaptation du menu aux mobiles et tablettes */

@media screen and (max-width: 1024px) {
  .topnav {
    display: block;
  }
  
  .topnav a:not(:first-child) {
    display: none;
  }
  
  /* Cache les réseaux sociaux par défaut sur mobile */
  .social-nav {
    display: none;
  }
  
  .topnav a.icon {
    float: right;
    display: block;
  }
  
  .topnav a.menu {
    float: left;
    display: block;
  }
}

@media screen and (max-width: 1024px) {
  .topnav.responsive {
    position: relative;
  }
  
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  
  /* Affiche les réseaux sociaux en bas du menu mobile */
  .topnav.responsive .social-nav {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    gap: 20px;
    border-top: 1px solid #555;
    margin-top: 10px;
  }
  
  .topnav.responsive .social-nav .social-link {
    font-size: 24px;
  }
}


/* Adaptation du menu aux mobiles et tablettes */

@media screen and (max-width: 1024px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav a.menu {
    float: left;
    display: block;
  }
}

@media screen and (max-width: 1024px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}



/* CSS galerie images */

/* Grille de la galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: white;
  transition: transform 0.3s ease;
}

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

.gallery-item a {
  display: block;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  padding: 12px;
  color: #555;
  font-size: 14px;
  text-align: center;
}

.gallery-item .caption-accueil {
  padding: 12px;
  color: #000000;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
}


/* Cr�ation de colonnes qui flottent les unes � c�t� des autres */
.column {
  float: left;
  padding: 0;
}


.full {
  width: 100%;
  background-color: #3F6DEB;
  text-decoration: none;
  text-align: center;
  color: white;
  font-weight: bold;
}

.full a {
  color: white;
}

.full a:hover {
  text-decoration: underline;
}

/* Bandeaux entiers */
.bandeau-bleu {
  width: 100%;
  background-color: #ddeeff;
  text-decoration: none;
  text-align: center;
  color: #3F6DEB;
  font-weight: bold;
}

.bandeau-orange {
  width: 100%;
  background-color: #FFeedd;
  text-decoration: none;
  text-align: center;
  color: #FF8D31;
  font-weight: bold;
}

.bandeau-rouge {
  width: 100%;
  background-color: #C80031;
  text-decoration: none;
  text-align: center;
  color: white;
  font-weight: bold;
}

.bandeau-vert {
  width: 100%;
  background-color: #ddffdd;
  text-decoration: none;
  text-align: center;
  color: #006D36;
  font-weight: bold;
}


/* Tailles des colonnes */

.content-split-2 {
  width: 50%;
  text-align: center;
  color:black;
}

.content-split-3 {
  width: 33%;
  text-align: center;
  color:black;
}

.content-split-4 {
  width: 25%;
  text-align: center;
  color:black;
}

.top-text {
  width: 100%;
  text-align: center;
  color:black;
}


/* Tailles et couleurs des contenus des colonnes */
.content-split-2 img {
  width: 75%;
  height: auto;
}

.content-split-3 img {
  width: 90%;
  height: auto;
}

.content-split-4 img {
  width: 75%;
  height: auto;
}

.sous-menu {
  background-color:#AADCF2;
  color:black;
  text-align: center;
}

figure {
  margin: auto;
}

figcaption {
  color: black;
  font-style: italic;
  padding: 2px;
  text-align: center;
}

/* R�initialisation des floats apr�s les colonnes */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Contenant color�s */

.box_plein_blanc {
  background-color: white;
  border-radius: 25px;
  border: 2px solid white;
  padding: 1%;
  margin: 1%;
  text-align: center;
  color: black;
  font-weight: bold;
}

.box_bord_vert {
  background-color: white;
  border-radius: 25px;
  border: 10px solid #006D36;
  padding: 2%;
  margin: 2%;
  text-align: center;
}

.box_plein_vert {
  background-color: #006D36;
  border-radius: 25px;
  border: 2px solid white;
  padding: 1%;
  margin: 1%;
  text-align: center;
  color: white;
  font-weight: bold;
}

.box_plein_vert a {
  color: white;
  font-size: 1.5em;
}


.box_bord_orange {
  background-color: white;
  border-radius: 25px;
  border: 10px solid #FF8D31;
  padding: 2%;
  margin: 2%;
  text-align: center;
}

.box_plein_orange {
  background-color: #FF8D31;
  border-radius: 25px;
  border: 2px solid white;
  padding: 1%;
  margin: 1%;
  text-align: center;
  color: white;
  font-weight: bold;
}

.box_plein_orange a {
  color: white;
  font-size: 1.5em;
}

.box_bord_rouge {
  background-color: white;
  border-radius: 25px;
  border: 10px solid #C80031;
  padding: 2%;
  margin: 2%;
  text-align: center;
}

.box_plein_rouge {
  background-color: #C80031;
  border-radius: 25px;
  border: 2px solid white;
  padding: 1%;
  margin: 1%;
  text-align: center;
  color: white;
  font-weight: bold;
}

.box_plein_rouge a {
  color: white;
  font-size: 1.5em;
}



.box_bord_bleu {
  background-color: white;
  border-radius: 25px;
  border: 10px solid #3F6DEB;
  padding: 2%;
  margin: 2%;
  text-align: center;
}

.box_plein_bleu {
  background-color: #3F6DEB;
  border-radius: 25px;
  border: 2px solid white;
  padding: 1%;
  margin: 1%;
  text-align: center;
  color: white;
  font-weight: bold;
}

.box_plein_bleu a {
  color: white;
  font-size: 1.5em;
}



/* Adaptation du contenu aux smartphones, tablettes et petits �crans */

@media only screen and (max-width: 768px) {
  /* Pour les smartphones */
  .column, .left, .right, .content-split-2, .content-split-3, .content-split-4, .center {
    width: 100%;
    height: auto;
  }
  .over-image {
    width: 50%;
    height: auto;
  }

  .content-split-2 img {
    width: 100%;
    height: auto;
  }

  .content-split-3 img {
    width: 100%;
    height: auto;
  }

  .content-split-4 img {
    width: 100%;
    height: auto;
  }

  h1 {
  font-size: 2.0em;
  margin-left:5%;
  margin-right:5%;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.25em;
  }

  h4 {
    font-size: 1.1em;
  }

}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  /* Pour les tablettes et petits �crans */
  .content-split-3, .content-split-4 {
    width: 60%;
    height: auto;
  }

}