/* Reset & typographie */
* { margin:0; padding:0; box-sizing:border-box; }
html{
    font-size: 100%;
}
@media(max-width: 768px){
    html{
        font-size: 90%;
    }
}
@media(max-width: 480px){
    html{
        font-size: 80%;
    }
}

body,h1,h2,h3,p,ul,li,a{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body{ background: #484d49;
    font-size: large;
    font-family: Arial, Helvetica, sans-serif;
    color: #ece7e7;
    line-height: 1.6;
}

.container { max-width:1200px; margin:0 auto; padding:1em; }

/* Header & navigation */
/* Le conteneur du header */
.header {
    background: #484d49;
    position: relative;
    color: #fff;
    padding: 1em 0;
  }
  
  /* La zone interne du header (burger + logo) */
  .header-content {
    display: flex;
    justify-content: space-between; /* Sépare le logo du menu burger */
    align-items: center;
    max-width: 960px;               /* Largeur max pour éviter un header trop large */
    margin: 0 auto;
    padding: 0 1em;
    width: 100%;
  }
  
  /* Le logo */
  .logo {
    font-size: 1.5rem;
    text-align: center;
    flex: 1;                        /* Pour occuper toute la place */
  }
  
  /* Le menu burger */
  .menu-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    z-index: 10;
  }
  
  /* Les barres du menu burger */
  .menu-burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
  }
  
  /* Animation burger actif */
  .menu-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-burger.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
.logo { font-size:1.5rem; }
.menu-burger { display:flex; flex-direction:column; cursor:pointer; width:30px; gap:5px; }
.menu-burger span {
  display:block; height:3px; background:#fff; border-radius:2px;
  transition:0.3s;
}
.menu-burger.active span:nth-child(1) {
  transform:rotate(45deg) translate(5px,5px);
}
.menu-burger.active span:nth-child(2) { opacity:0; }
.menu-burger.active span:nth-child(3) {
  transform:rotate(-45deg) translate(5px,-5px);
}
.navbar {
  position:absolute; top:100%; left:0; right:0;
  background:#363836; display:flex; flex-direction:column;
  overflow:hidden; max-height:0;
  transition:max-height 0.3s;
}
.navbar a {
  color:#e8f5e9; text-decoration:none; padding:0.75em 1em;
}
.navbar a:hover { background:rgba(255,255,255,0.1); }
.navbar.active { max-height:300px; }

/* Overlay */
.overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.5);
  opacity:0; visibility:hidden;
  transition:0.3s;
}
.overlay.active { opacity:1; visibility:visible; }

/* Hero */
.hero { text-align:center;
    background: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),url('medias/background\ 1.jpg')center/cover no-repeat;
    padding:4em 1em; }
.hero img { max-width:300px; opacity:0; animation:fadeIn 1s forwards 0.5s; }
.hero h2 { font-size:2rem; }
.hero p { margin:1em 0; font-size:1.1rem; }
.btn {
  background:#1b5e20; color:#fff; padding:0.75em 1.5em;
  border-radius:5px; text-decoration:none;
  display:inline-block; transition:background 0.3s;
}
.btn:hover { background:#388e3c; }

/* Sections */
section { padding:3em 1em; background:#fff; margin-bottom:1em; border-radius:5px; 
        padding: 3em 1em;
        margin-bottom: 1em;
        border-radius: 5px;
        background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                    url('medias/background.jpg') center/cover no-repeat;
        background-color: #fff; /* si l'image ne charge pas */
      
      }
.events .gallery {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1em;
}
.gallery img { width:100%; border-radius:5px; transform:scale(1); transition:transform 0.3s; }
.gallery img:hover { transform:scale(1.05); }

/* Staff */
.staff .team {
  display:flex; flex-wrap:wrap; gap:2em; align-items:center;
}
.staff .member img { width:150px; border-radius:50%; }
.staff-list{ list-style: none; color:#fcfafa; }

/* Contact & footer */
.contact ul, .social {
    list-style:none; display:flex; gap:1em; justify-content:center; }
    .boutons{
      height: 50px;
      width: 50px;
      border-radius: 25%;
      display: flex;
      justify-content: center;
      align-items: center;
      position: fixed;
      right: 20px;
      bottom: 20px;
      cursor: pointer;
      background-color: rgb(45, 168, 62);
   }  
/* Animations */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* Responsive */
@media(min-width:768px) {
  .header-content .menu-burger { display:none; }
  .navbar { position:static; flex-direction:row; max-height:none; background:transparent; }
  .navbar a { padding:0 1em; color:#fff; }
  .overlay { display:none; }
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 1em 0;
    display: flex;
    flex-direction: column; /* Par défaut : colonne */
    gap: 1em;
    text-align: center;
  }
  
  .contact-list li a {
    color: #fff; /* adapte si fond sombre */
    text-decoration: none;
  }
  
  /* ✅ Responsive : en ligne sur grands écrans */
  @media (min-width: 768px) {
    .contact-list {
      flex-direction: row;
      justify-content: center;
      text-align: left;
    }
  }
  .foot {
    text-align: center;
  }
  .centre {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
} 
.quatre {
    display: flex;
    justify-content:space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 1.5em;
    position:relative;
  }
