/* ===================================
   GLOBAL
=================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #333;
  background: #fdfdfd;
  scroll-behavior: smooth;
  padding-top: 70px;
}

a { text-decoration: none; }

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: #222;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
}

.logo img { height: 50px; width: auto; }

/* BOUTON HAMBURGER */
.menu-toggle { 
  display: none; /* caché par défaut */
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* MENU DESKTOP */
@media (min-width: 768px) {
  .nav-links {
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links li a {
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .nav-links li a:hover {
    color: #ffb300; /* hover uniquement sur le texte */
  }
}

/* HERO */
.hero {
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1600585152220-90363fe7e115?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 5px rgba(0,0,0,.6);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 5px rgba(0,0,0,.6);
}

.hero-logo {
  width: 180px;           
  height: auto;
  margin-bottom: 20px;    
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.4));
  animation: fadeInLogo 1.2s ease-in-out;
}

.btn {
  background: #ffb300;
  color: #222;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #e2a200;
}

/* SECTIONS GENERALES */
section { padding: 80px 20px; max-width: 1200px; margin: auto; }
h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; color: #222; }

/* SERVICES */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card h3 { margin-bottom: 10px; color: #222; }
.card p { color: #555; }

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* À PROPOS */
.apropos p { max-width: 800px; margin: auto; text-align: center; color: #555; line-height: 1.6; }

/* GALERIE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px; 
  max-width: 800px;
  margin: 0 auto;
}

.gallery-item { border-radius: 10px; overflow: hidden; height: 250px; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.note { text-align: center; margin-top: 10px; font-size: 0.9rem; color: #888; }

/* CONTACT */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact form {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: none;
  width: 100%;
}

.contact button { align-self: center; }

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.social-icons a svg { width: 40px; height: 40px; transition: transform 0.3s, fill 0.3s; }

.social-icons a:hover svg { transform: scale(1.1); }

/* FOOTER */
footer {
  background: #222;
  color: #fff;
  text-align: center; /* ça reste au centre horizontalement */
  padding: 25px 20px;
  font-size: 0.9rem;

  display: flex;          /* active flexbox */
  justify-content: center; /* centre horizontalement les éléments */
  gap: 20px;              /* espace entre les deux <p> */
  flex-wrap: wrap;        /* pour les petits écrans, les éléments peuvent passer à la ligne */
}


/* RESPONSIVE NAVIGATION MOBILE */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 50px; /* juste sous la navbar */
    left: 0;
    width: 100%;
    background: #222;
    flex-direction: column;
    align-items: center;
    padding: 0;          /* supprime padding supérieur */
    overflow: hidden; 
    max-height: 0;    
    border-radius: 0;    /* supprime arrondi supérieur */
    transition: max-height 0.5s ease; 
    z-index: 999;
  }

  .nav-links.active {
    max-height: 500px; 
    padding: 20px;
  }

  /* Liens du menu mobile centrés et pleine largeur */
  .nav-links li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
    list-style: none; /* supprime le point */
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
  }

  .nav-links li a:hover {
    background: #ffb300;
    color: #222;
  }

  /* Centrer le ☰ */
  .menu-toggle {
    display: block;
    margin: 10px auto; /* centre horizontalement */
    font-size: 26px;
    color: #fff;
    cursor: pointer;
  }
}

/* LOGO ANIMATION */
@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================================
   FADE-IN ANIMATION POUR HERO
=================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.5s;
}

.fade-in.delay-2 {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/* ==============================
   CARROUSEL MODERNE
================================ */
.carousel {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  aspect-ratio: 16 / 9; /* hauteur identique */
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit sans fond */
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-item {
    height: 250px;
  }
}

/* ==============================
   FORMULAIRE TELEPHONE + DROPDOWN
================================ */
.phone-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.country-dropdown {
  position: relative;
  width: 120px;
  cursor: pointer;
  user-select: none;
}

/* ✅ Champ de sélection a la même taille que les autres champs */
.country-dropdown .selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;

  height: 48px;       /* même hauteur que les autres champs */
  padding: 0 10px;    /* padding vertical nul pour un alignement parfait */
  box-sizing: border-box;
}

.country-dropdown .selected img.flag {
  width: 20px;   
  height: 14px;  
  object-fit: cover;
}

.country-dropdown .selected .arrow {
  margin-left: 5px;
}

.country-dropdown .options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
}

.country-dropdown .options li {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  gap: 5px;
}

.country-dropdown .options li:hover {
  background: #f0f0f0;
}

.country-dropdown.active .options {
  display: block;
}

/* Champ téléphone prend le reste */
#telephone {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 0 15px;
  font-size: 1rem;
}

.country-dropdown .options li img.flag {
  width: 20px;   
  height: 14px;  
  object-fit: cover;
}
