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

html {
  overflow-y: scroll; /* ✅ réserve toujours l’espace scrollbar */
}

body {
    font-family: sans-serif;
    background: white;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  border-bottom: 3px solid #155875;
  padding: 1rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

/* FOND-HAUT */
.fond-haut {
  position: fixed;
  top: 100px; /* doit correspondre à la hauteur réelle du header */
  width: 100%;
  height: 80px;
  background-color: #155875;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 80% 20%, 0 100%);
  z-index: 20;
}

#bloc_page {
  max-width: 100%;
  height: auto;
  margin-left: 10%;
  margin-right: 10%;
  padding-top: 200px;   /* laisse place à fond-haut */
  padding-bottom: 120px; /* laisse place à fond-bas */
}

#bloc_page_p1 {
  max-width: 100%;
  height: auto;
  margin-left: 10%;
  margin-right: 10%;
  text-align: center;
  padding-top: 200px;   /* laisse place à fond-haut */
  padding-bottom: 120px; /* laisse place à fond-bas */
}

#bloc_page_p3 {
  max-width: 100%;
  height: auto;
  margin-left: 30%;
  margin-right: 30%;
  padding-top: 200px;   /* laisse place à fond-haut */
  padding-bottom: 120px; /* laisse place à fond-bas */
}

#logoagoraciney {
  max-height: 80px;
  width: auto;
}

/* NAVIGATION */
.navbar {
  display: flex;
  gap: 2rem;
}

.navbar a {
  text-decoration: none;
  color: #155875;
  font-weight: bold;
}

.contact {
  color: white;
}

#check {
  display: none;
}

.icons {
  display: none;
  color: #155875;
  font-size: 2.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* CONTENU PRINCIPAL */
.main .contenu {
    padding: 160px 10% 60px;  
}

#photodegroupe {
    display: block;             /* permet le centrage avec margin auto */
    max-width: 500px;           /* ou 100% si tu veux qu’elle s’adapte */
    height: auto;               /* garde les proportions */
    margin-left: auto;
     margin-right: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  text-align: center;
  margin: 2rem auto;
}

figure img {
  max-width: 100%;
  height: auto;
}

figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

h1{
    color: 	#155875;
    margin-bottom: 2rem;
    text-align: center;
}

h2{
    color: 	#155875;
    margin-bottom: 2rem;
}

p{
    color: 	#6f7475;
    margin-bottom: 2rem;
}

/* FOND-BAS */
.fond-bas {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 100px;
  width: 100%;
  background-color: #155875;
  clip-path: polygon(0 30%, 20% 80%, 100% 0, 100% 100%, 0 100%);
  z-index: 10;
}

.footer {
  text-align: center;
  color: white;
  font-size: 0.9rem;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.footer a {
  color: white;
  text-decoration: underline; /* optionnel, pour le rendre bien visible */
}

.footer a:visited {
  color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 1rem;
    z-index: 99;
  }

  .navbar a {
    font-size: 1rem;
    margin: 0.5rem 0;
  }

  #check:checked ~ .navbar {
    display: flex;
  }

  .icons {
    display: flex;
  }

  #check:checked ~ .icons #menu-icon {
    display: none;
  }

  #check:checked ~ .icons #close-icon {
    display: inline;
  }

  #close-icon {
    display: none;
  }
  
  h1, h2, h3 {
    text-align: center;
  }
  h1 {
    font-size: 1.2rem;
    color: #155875;
  } 
  
  h2 {
    font-size: 1.1rem;
    color: #155875;
  }

 .main .contenu {
    padding: 2rem 1rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  [id^="bloc_page"] {
    padding: 0 1rem;
  padding-top: 150px;
  }

  #bloc_page_p3 {
    
    margin: 0 auto; /* pour supprimer le 30% si besoin */
  }

  #photodegroupe {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}
