/* 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%;
  font-weight: 700;
  letter-spacing: 1px;
  /*text-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);*/
}

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: 20%;
}


.sub-logo {
  position: absolute;
  top: 65%;
  left: 1%;
  background-color: rgba(49, 47, 152, 1);
  color: white;
  z-index: 2;
  width: 20%;
  text-align: center;
  font-size: 2vw;
  font-weight: bold;
}

.nous-header {
  position: absolute;
  top: 10%;
  right: 5%;
  background-color:  rgba(49, 47, 152, 1);
  color: white;
  z-index: 2;
  width: 20%;
  text-align: center;
  font-size: 1.5vw;
  font-style: italic;
}

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


/* Menu de navigation avec sticky */

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

.topnav {
  overflow: hidden;
  background-color: rgba(49, 47, 152, 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;
  }
}


/* ==================================== */
/* Grille moderne */
.atouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Carte atout */
.atout-card {
    background: rgba(255,255,255,1);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet survol */
.atout-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Bande de couleur en haut */
.atout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-start), var(--color-end));
}

/* Icône */
.atout-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-start), var(--color-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.atout-card h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
}

.atout-card p {
    color: #666;
    line-height: 1.7;
    text-align: left;
}

/* Variantes de couleurs */
.atout-card.bleu {
    --color-start: #59C9EE;
    --color-end: #3F6DEB;
}

.atout-card.vert {
    --color-start: #2F9151;
    --color-end: #146C36;
}

.atout-card.orange {
    --color-start: #FF9800;
    --color-end: #FF8D31;
}

.atout-card.violet {
    --color-start: #9C27B0;
    --color-end: #8a2be2;
}

/* Responsive */
@media (max-width: 768px) {
    .atouts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h2 {
        font-size: 1.5em;
        margin-bottom: 30px;
    }

    .atout-card {
        padding: 30px 20px;
    }
}
/* ==================================== */


/* ========================================
NOUVEAU SYSTÈME GRID (remplace float)
======================================== */

/* Conteneur principal avec Grid */
.row {
  display: grid;
  gap: 0;
  width: 100%;
}

/* Grid 2 colonnes */
.row.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Grid 3 colonnes */
.row.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Grid 4 colonnes */
.row.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Élément pleine largeur dans une grille */


.full {
  grid-column: 1 / -1;
  width: 100%;
  position: relative;
  color: #000;
  text-align: center;
  padding: 1.5rem;
  font-weight: 600;
  z-index: 1;
}

.full.violet {
  border-top: 4px solid blueviolet;
  border-bottom: 4px solid blueviolet;
}

.full.bleu {
  border-top: 4px solid #3F6DEB;
  border-bottom: 4px solid #3F6DEB;
}

.full.bleuclair {
  border-top: 4px solid #59C9EE;
  border-bottom: 4px solid #59C9EE;
}

.full.vert {
  border-top: 4px solid #146C36;
  border-bottom: 4px solid #146C36;
}

.full.orange {
  border-top: 4px solid #FF8D31;
  border-bottom: 4px solid #FF8D31;
}

.full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.4);
  z-index: -1;
  /* border-radius: 20px; */ /* optionnel */
}

.full h2 {
 /* font-family: 'Inter', sans-serif;*/
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  /*text-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);*/
}


.full a {
  color: white;
}

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

/* Classes de contenu (gardées pour compatibilité mais n'utilisent plus float) */
.column {
  padding: 0;
}

.content-split-2,
.content-split-3,
.content-split-4,
.top-text {
  text-align: center;
  color: black;
}

/* Images dans les colonnes */
.content-split-2 img,
.content-split-3 img,
.content-split-4 img {
  max-width: 90%;
  height: auto;
}

.content-split-2 img {
  max-width: 75%;
}

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

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

figure {
  margin: auto;
}

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

/* Contenant colorés : changer couleurs bord ou background selon couleur choisie */

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

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

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

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

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



/* ========================================
   RESPONSIVE - Grid s'adapte automatiquement
   ======================================== */

@media only screen and (max-width: 768px) {
  /* Sur mobile, toutes les grilles passent en 1 colonne */
  .row.grid-2,
  .row.grid-3,
  .row.grid-4 {
    grid-template-columns: 1fr;
  }

  .content-split-2 img,
  .content-split-3 img,
  .content-split-4 img {
    width: 100%;
    max-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) {
  /* Sur tablette, grid-3 et grid-4 passent en 2 colonnes */
  .row.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .row.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 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;
}

/* Overlay pour l'agrandissement */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay:target {
  display: flex;
}

.overlay-content {
  position: relative;
}

.overlay img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.overlay .close {
  position: absolute;
  top: -10%;
  right: 5%;
  color: white;
  font-size: 60px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s;
}

.overlay .close:hover {
  color: #ccc;
}

/* Responsive galerie */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery-item img {
    height: 200px;
  }

  .overlay .close {
    font-size: 30px;
  }
}