/* Reset et base */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
}

.menu-centered {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background-color: #ffffffcc;
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.menu-centered a {
  position: relative;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  color: #444;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.menu-centered a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0%;
  background-color: #ffcc00;
  transition: width 0.3s ease;
}

.menu-centered a:hover::after,
.menu-centered a.active::after {
  width: 100%;
}

.menu-centered a:hover,
.menu-centered a.active {
  color: #ffcc00;
}

/* Section de présentation */
.hero {
	position: relative;
	text-align: center;
	padding: 0px 20px 60px; /* Espace ajusté pour la lisibilité */
	color: #fff;
	overflow: hidden;
	z-index: 1;
	height: 720px;
	border-bottom-left-radius: 40px;
	border-bottom-right-radius: 40px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/fond-hero.jpg'); /* Remplace par ton image */
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.6); /* Flou très léger + assombrissement */
  z-index: -1;
}

.hero h1,
.hero p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.logo-hero {
	display: block;
	padding: 40px;
	/* [disabled]margin-top: 0; */
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 30px;
	height: 280px;
}

/* Prochaine activité */
.à-venir {
  text-align: center;
  padding: 40px 20px;
}

.à-venir img {
  max-width: 90%;
  border-radius: 10px;
  margin: 20px 0;
  object-fit: cover;
}

/* Souvenirs */
.archives {
  text-align: center;
  padding: 40px 20px;
}

.galerie {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px 0;
}

.galerie img {
  width: 300px;
  border-radius: 10px;
  object-fit: cover;
}

/* Footer */
.footer-double {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 40px;
  border-top: 1px solid #eee;
  background-color: #f2f2f2;
  font-size: 0.9rem;
}

.footer-double p {
  margin: 0;
}

/* Formulaires (pour compte.html) */
.form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 60px 20px;
}

.form-container {
  background: #f2f2f2;
  padding: 40px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
}

input,
button {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  background-color: #0071e3;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.à-venir {
  padding: 40px 20px;
  background-color: #fefefe;
  text-align: center;
}

.carte-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.carte-activité {
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 420px;
  display: flex;
  flex-direction: column;
}

.carte-activité img {
	display: block;       /* empêche espace fantôme */
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin-top: 20px;
	margin-right: 20px;
	margin-left: 20px;
	/* [disabled]margin-bottom: 20px; */            /* essentiel */
	padding: 0;
	border: none;
	line-height: 0;       /* pour éviter un pixel de décalage */
}

.carte-activité:hover {
  transform: translateY(-4px);
}

.carte-texte {
  padding: 20px;
}

.carte-texte h3 {
  margin-top: 0;
  color: #0071e3;
  font-size: 1.2em;
}

.carte-texte p {
  margin: 8px 0;
}

.galerie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.galerie img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.galerie img.show {
  opacity: 1;
  transform: translateY(0);
}

.galerie img:hover {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s;
  z-index: 999;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
}
