/* ——————————————
   Box-sizing global pour éviter tout débordement
   —————————————— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ——————————————
   Styles globaux
   —————————————— */
body {
  font-family: sans-serif;
  margin: 0 auto;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  max-width: 1200px;
}

header {
  background-color: #333;
  color: #fff;
  padding: 1em 0;
  text-align: center;
}

nav {
  background-color: #444;
  color: #fff;
  padding: 0.5em 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1em;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

main {
  padding: 20px;
}

section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* H2 généraux des autres sections */
section h2 {
  color: #333;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

/* ——————————————
   Section “Hero” full-width & centré
   —————————————— */
section#hero {
  /* Full-bleed centering technique */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;

  /* Image de fond */
  background-image: url('images/bandeau.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  /* Ratio 16:9 pour conserver le paysage */
  aspect-ratio: 16 / 9;

  /* Centrage du contenu textuel */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  /* Espacements et style */
  padding: 50px 20px;
  border-radius: 0;      /* En full-bleed, on retire les coins arrondis si besoin */
  margin-bottom: 20px;
}

/* Titres dans le Hero : blanc et taille équivalente */
section#hero h1,
section#hero h2 {
  font-size: 2.5em;
  border-bottom: none;   /* supprime la bordure inférieure */
  padding-bottom: 0;      /* remet à zéro tout padding éventuel */
  margin: 0.5em 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* ——————————————
   Section “Qui”
   —————————————— */
section#qui img {
  max-width: 150px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1em;
}

section#qui p,
section#qui h3 {
  text-align: center;
}

/* ——————————————
   Section “Activité”
   —————————————— */
section#activite ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* ——————————————
   Section “Galerie”
   —————————————— */
section#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

section#gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ——————————————
   Section “Contact”
   —————————————— */
section#contact p {
  margin-bottom: 1em;
}

section#contact a {
  color: #007bff;
  text-decoration: none;
}

section#contact a:hover {
  text-decoration: underline;
}

/* ——————————————
   Pied de page
   —————————————— */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  position: sticky;
  bottom: 0;
  width: 100%;
}

/* ——————————————
   Ajustements responsive
   —————————————— */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5em 0;
  }

  section#gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  /* Conserver le ratio 16/9 sur mobile */
  section#hero {
    aspect-ratio: 16 / 9;
  }
}
