body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color:#f8f4ec;
    width:stretch;
}
/* Conteneur de contenu (lecture confortable) */
main{
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Titres */
h2{
  font-size: 1.6rem;
  margin: 2rem 0 0.8rem 0;
  letter-spacing: 0.02em;
  border-left: 4px solid #8B5E3C;
  padding-left: 12px;
}

p{
  margin: 0 0 1rem 0;
}

/* Sections */
section{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* Footer */
footer{
  text-align: center;
  padding: 25px 15px;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.7);
  border-top: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.35);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

header * {
    position: relative;
}
header {
    background-image: url("../img/banniere.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 320px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    position: relative;
}
header h1{
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

header p{
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 0 1rem 0;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
header .page-title{
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.2rem;
}

nav ul{
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  justify-content: center;
 
  column-gap: 12px;   /* espace horizontal */
  row-gap: 8px;       /* espace vertical plus petit */
  flex-wrap: wrap;
}



nav a{
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

nav a:hover{
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
nav li {
    display: inline-block;
    margin-right: 1rem;
}
.img-accueil {
    max-width: 600px;
    display: block;
    margin: 2rem auto;
}
section{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 18px 18px;
}
/* Formulaire */
form{
  margin-top: 12px;
}
form p{
  margin: 0 0 14px 0;
}
label{
  font-weight: 600;
}

input, textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  margin-top: 6px;
  padding: 12px 12px;

  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;

  background: rgba(255,255,255,0.95);
  color: #1f1f1f;

  font: inherit;
}

textarea{
  resize: vertical;
  min-height: 140px;
}

/* Focus (très important UX) */
input:focus, textarea:focus{
  outline: none;
  border-color: rgba(139, 94, 60, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.15);
}

/* Bouton */
button{
  appearance: none;
  border: none;
  border-radius: 999px;

  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;

  color: white;
  background: #8B5E3C;

  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

button:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

button:active{
  transform: translateY(0);
}
/* Galerie */
.galerie{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.galerie a{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galerie a:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.15);
}

.galerie img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.galerie figcaption{
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.8);
}
/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
}

.lightbox.is-open{
  display: flex;
}

.lightbox-figure{
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox-img{
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

.lightbox-caption{
  color: rgba(255,255,255,0.9);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Boutons */
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: absolute;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: white;
  cursor: pointer;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-close{
  top: 18px;
  right: 18px;
  font-size: 28px;
}

.lightbox-prev{
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next{
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{
  background: rgba(255,255,255,0.14);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active{
  transform: translateY(-50%) scale(0.98);
}

.lightbox-close:active{
  transform: scale(0.98);
}

/* Mobile : flèches un peu plus basses */
@media (max-width: 600px){
  .lightbox-prev{ left: 10px; }
  .lightbox-next{ right: 10px; }
  .lightbox-close{ top: 10px; right: 10px; }
}

@media (max-width: 768px){

  header{
    padding: 60px 20px;
    text-align: center;
  }

  header h1{
    font-size: 2rem;
  }

  header .page-title{
    font-size: 0.9rem;
    margin-top: 6px;
  }

  nav ul{
    gap: 12px;
  }

  nav a{
    padding: 8px 14px;
    font-size: 0.95rem;
  }
    input, textarea{
    padding: 14px;
  }

  button{
    width: 100%;
  }
}

@media (max-width: 480px){
  nav ul{
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}