body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background: #f5f5f5;
}

/* HEADER fixée en haut */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #2c3e50;
}
/* En-tête avec titre */
.site-header {
  background: #2c3e50;   /* couleur de fond */
  color: white;          /* texte en blanc */
  padding: 40px 20px;    /* espace autour */
  text-align: center;    /* centré horizontalement */
}

.site-header h1 {
  font-size: 3rem;       /* taille du titre */
  margin: 0;             /* supprime marges par défaut */
  font-weight: bold;
  letter-spacing: 2px;   /* espacement entre lettres */
}
/* Image bannière */
header .banniere {
  width: 25%;
  max-height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Menu sous la bannière */
nav {
  margin: 0;
  padding: 10px 0;
  background: rgba(0,0,0,0.5);
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}

/* Décaler le contenu pour ne pas passer sous le header */
main {
  padding: 250px 20px 20px;
}

/* CONTENT */
.intro h2 {
  color: #2c3e50;
}
.images {
  margin: 5px 0;
}


.images {
  display: flex;          /* aligne les images horizontalement */
  flex-wrap: wrap;        /* passe à la ligne si nécessaire */
  justify-content: center;
  gap: 1px;              /* espace entre les images */
}

.image-item {
  text-align: center;     /* centre le texte sous l'image */
  max-width: 250px;         /* même largeur que l'image */
  word-wrap: break-word;    /* force le passage à la ligne si texte trop long */
}

.image-item img {
  width: 200px;           /* taille uniforme des images */
  height: 350px;
  object-fit: cover;      /* recadre les images proprement */
  border-radius: 5px;
}

.image-item figcaption {
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
  
}

/*ajout************************/

.vignette {
  display: flex;
  flex-direction: column;
  align-items: center;      /* centre horizontalement */
  justify-content: center;  /* centre verticalement si besoin */
  text-align: center;
  width: 250px;             /* largeur fixe de la vignette */
  height: 250px;            /* hauteur fixe de la vignette */
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;         /* cache ce qui dépasse */
}

.vignette img {
  max-width: 100%;
  max-height: 70%;         /* limite la hauteur de l’image */
  object-fit: contain;     /* garde le ratio sans couper */
  display: block;
  margin: 0 auto;          /* centre dans son conteneur */
}
/* La galerie en grille */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* espace entre les vignettes */
  margin: 20px auto;
  max-width: 1600px; /* largeur max de la galerie */
}

/* Une vignette */
.vignette {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  /*height: 300px;         /* même hauteur pour toutes les vignettes */
  box-sizing: border-box;
  overflow: hidden;
  background: white;
}

/* Image dans une vignette */
.vignette img {
  max-width: 100%;
  max-height: 70%;       /* l’image occupe ~70% de la vignette */
  object-fit: contain;   /* garde les proportions */
  margin-bottom: 8px;
}

/* Vidéo locale et YouTube intégrée */
.vignette iframe,
.vignette video {
  max-width: 100%;
  max-height: 80%;       /* même règle que pour les images */
  object-fit: contain;   /* garde les proportions */
  margin-bottom: 8px;
  border-radius: 6px;
  display: block;
}


/* Texte sous l’image */
.vignette p {
  font-size: 14px;
  margin: 0;
}


/* FOOTER */
footer {
  background: #2c3e50;
  color: white;
  padding: 20px;
  margin-top: 10px;
  position: relative; /* pour bouton absolu */
  
  /* Footer positionné en relative pour bouton absolu */

}

/* Container pour empiler les boutons verticalement à droite */
.footer-boutons {
  display: flex;
  flex-direction: column;   /* empilement vertical */
  align-items: flex-end;    /* aligné à droite */
  gap: 10px;                /* espace entre les boutons */
  margin-top: 10px;
}

/* Boutons image + texte */
.bouton-image-texte-footer {
  display: flex;
  align-items: center;
  justify-content: center;   /* centre le texte + icône */
  padding: 12px 24px;
  background: #e67e22;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: 0.3s;
  width: 280px;     /* largeur fixe identique pour tous */
  box-sizing: border-box; /* prend en compte padding dans la largeur */
}

.bouton-image-texte-footer img.btn-icone-footer {
  height: 40px;
  width: 100%;
  margin-right: 10px;
}

.bouton-image-texte-footer:hover {
  background: #cf6d16;
}

}
footer p {
  margin: 5px 0;
}

footer {
  background: #2c3e50;
  color: white;
  padding: 20px;
}

/* Container principal en 3 colonnes */
.footer-container {
  display: flex;
  justify-content: space-between; /* espace entre les colonnes */
  align-items: flex-start;
  flex-wrap: wrap;                /* responsive */
  gap: 20px;
}

/* Coordonnées à gauche */
.footer-coordonnees {
  flex: 1 1 200px;
  text-align: left;
}

/* Boutons réseaux au centre */
.footer-reseaux {
  display: flex;
  flex-direction: column;
  align-items: center; /* centré horizontalement */
  gap: 10px;
  flex: 1 1 200px;
}
.footer-reseaux a {
  display: inline-block;
  margin: 0;
  padding: 10px 15px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
}
.footer-reseaux a.whatsapp { background: #25D366; }
.footer-reseaux a.facebook { background: #1877F2; }
.footer-reseaux a:hover { opacity: 0.8; }

/* Boutons image à droite */
.footer-boutons {
  display: flex;
  flex-direction: column; /* empilés verticalement */
  align-items: flex-end;
  gap: 10px;
  flex: 1 1 200px;
}

/* Boutons image + texte */
.bouton-image-texte-footer {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: #e67e22;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: 0.3s;
}

.bouton-image-texte-footer img.btn-icone-footer {
  height: 40px;
  width: 100px;
  margin-right: 10px;
}

.bouton-image-texte-footer:hover {
  background: #cf6d16;
}

.compteur {
  position: fixed;     /* reste collé à l’écran */
  bottom: 10px;        /* marge en bas */
  left: 10px;         /* marge à droite */
  background: #2c3e50; /* fond */
  color: white;        /* texte blanc */
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0.9;
}

