@font-face {
    font-family: 'Ma police';
    src: url(police/Baskervville-VariableFont_wght.ttf);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Ma police', sans-serif;
}

body{
  background:#f5f5f5;
  color:black;
  font-weight: 500;
}

/* ================= HEADER ================= */

header{
  padding:30px 20px;
  text-align:center;
  top:0;
  z-index:100;
  transition:all 0.3s ease;
}

#separation{
  width: 60%;
  height: 2px;
  margin: 5px auto 40px auto;
  

  background: linear-gradient(to right, transparent, black, transparent);
  opacity: 0.7;
}

#header.shrink{
  padding:10px 20px;
}

.logo{
  width:15%;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:20px;
  transition:all 0.3s ease;
  border: 0.1px solid black;
}

#header.shrink .logo{
  width:5%;
  margin-bottom:5px;
}

/* --- LE BOUTON MENU (Fixé à l'écran avec alignement vertical Flexbox) --- */
.dropdown-btn {
  display: flex;            /* Active Flexbox pour l'alignement */
  align-items: center;      /* Centre le texte et l'icône sur la même ligne horizontale */
  justify-content: center;  /* Centre l'ensemble au milieu du bouton */
  gap: 8px;                 /* Crée l'espace parfait entre le mot "Menu" et le symbole "☰" */
  
  background-color: #445E39; 
  color: white;
  padding: 8px 15px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  /* border-radius: 6px; */
  font-weight: bold;
  transition: background 0.3s;
  
  /* Fixe le bouton sur l'écran au scroll */
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999; /* Reste toujours au premier plan */
}

/* Ajustement précis du comportement de l'icône burger */
.burger-icon {
  font-size: 20px;          /* Légèrement plus grand pour s'équilibrer avec le texte */
  line-height: 1;           /* Supprime les hauteurs de ligne invisibles qui décalent l'icône */
}

.dropdown-btn:hover {
  background-color: #445E39; /* Un vert légèrement plus clair au survol pour l'effet interactif */
}

/* --- LA NAVIGATION DÉROULANTE (Fixée sous le bouton) --- */
nav {
  display: none; 
  flex-direction: column;
  background: #445E39; 
  
  /* Fixe le menu pour qu'il suive le bouton */
  position: fixed;
  top: 75px;     /* Aligné pile en dessous du bouton */
  right: 20px;   /* Aligné sur le côté droit */
  width: 110px;  /* Largeur fixe du bloc menu */
  
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  gap: 0px !important;
  z-index: 9998; 
}

/* Style des liens dans le menu déroulant */
nav a {
  display: block;
  padding: 15px 0;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

nav a:hover {
  background-color: #445E39; /* Devient un peu plus sombre au survol pour le contraste */
  color: #7abf5a;
}

nav a:last-child {
  border-bottom: none;
}

/* Classe activée par le JavaScript pour afficher le menu */
nav.open {
  display: flex !important;
}

/* ================= GALERIE 4 IMAGES ================= */

.galerie{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:15px;
  padding:40px;
}

.galerie img{
  width:100%;
  height:420px;
  object-fit:cover;
  /* border-radius:12px; */
  opacity:0;
  transform:translateY(30px);
  animation: apparition 1.5s ease forwards;
}

.image2{
  object-position: -200px;
}

.galerie img:hover{
  transform:scale(1.03);
}

@keyframes apparition{
  from{
    opacity:0;
    transform:scale(0.9);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* ================= PRESENTATION ================= */

.presentation{
  width:90%;
  margin:auto;
  background:white;
  overflow:hidden;
  display:flex;
  align-items:center;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.presentation img{
  height:100%;
  object-fit:cover;
  width: 50%;
}

#img2{
  margin-left: 20%;
  object-fit: cover;
}

.texte{
  width:100%;
  max-width:900px;
  margin:40px auto;
  text-align:center;
  font-size:13px;
}

h1{
  font-size: 20px;
  color: #445E39;
}

.texte h2{
  font-size:34px;
  color:#445E39;
  margin-bottom:20px;
  text-align:center;
}

.texte p{
  line-height:1.5;
  text-align:center;
  font-weight: 500;
}

.texte strong{
  font-size: 13px;
}

/* ================= CAROUSSEL ================= */

.services-carousel{
  width:80%;
  margin:60px auto;
  text-align:center;
}

.services-carousel h2{
  font-size:38px;
  color:#445E39;
  margin-bottom:30px;
}

.carousel{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.carousel-container{
  width:100%;
  box-shadow:0 5px 20px rgba(0,0,0,0.15);
}

.slide{
  display:none;
  position:relative;
}

.slide.active{
  display:block;
}

.slide img{
  width:100%;
  height: 700px;
  object-fit:cover;
}

.slide h3{
  position: absolute;
  color:white;
  margin: 20px;
  bottom: 5px;
  padding: 20px 10px;
  font-size:20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.507));
}

.prev, .next{
  position:absolute;
  background:#445E39;
  color:white;
  border:none;
  width:55px;
  height:55px;
  border-radius:50%;
  cursor:pointer;
  font-size:28px;
  z-index:10;
  transition:0.3s;
}

.prev:hover, .next:hover{
  background:#445E39;
}

.prev{
  left:-25px;
}

.next{
  right:-25px;
}

/* ================= FOOTER ================= */

footer{
  margin-top:70px;
  background:#445E39;
  color:white;
  text-align:center;
  padding:25px;
  font-size:16px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1000px){
  .logo{
  width:25%;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:20px;
  transition:all 0.3s ease;
  border: 0.1px solid black;
  }

  .galerie{
    grid-template-columns:repeat(2,1fr);
  }
  .presentation{
    flex-direction:column;
  }
  .presentation img, .texte{
    width:100%;
  }
}

@media(max-width:1000px){
  .galerie{
    grid-template-columns:1fr;
  }

  .services-carousel{
  width:100%;
  margin:60px auto;
  text-align:center;
}

  .slide img{
    height:320px;
  }
  .slide h3{
    font-size:20px;
    text-align: left;
    position: absolute;
    margin-left: 75px;
    color:#445E39;
    background: none;
    bottom: -80px;
  }
  .prev, .next{
    width:50px;
    height:50px;
    font-size:25px;
  }
}