/* Base */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #fefefe;
    color: #333;
}


/* 🌟 NAVBAR FIX */
/* ✅ FIX position absolute */
header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.9); /* fond semi-transparent */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* ✅ logo size fix */
  .logo {
    height: 45px;
    max-height: 100%;
    object-fit: contain;
  }
  
  /* ✅ Ajustement des UL */
  .nav-links ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  
  .nav-links ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    padding: 8px 15px;
    transition: all 0.3s ease;
  }
  
  .nav-links ul li a:hover {
    color: #662843;
  }
  
  /* ✅ LIEN VALEURS SPECIAL */
  .nav-links ul li .btn-ancre {
    background: #662843;
    color: #fff;
    border-radius: 4px;
  }
  
  .nav-links ul li .btn-ancre:hover {
    background: #000;
    color: #fff;
  }
  
  /* ✅ DROPDOWN */
/* 🔧 Conteneur du dropdown */
.dropdown {
    position: relative;
    z-index: 1001; /* ✅ Assure que le menu passe au-dessus de tout */
  }
 
  /* 🔽 Menu déroulant caché de base */
  .nav-links ul .dropdown-menu {
    display: none;
    flex-direction: column;
    
    position: absolute;
    top: calc(100% + 10px); /* ✅ Juste sous la navbar */
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 1002;
  }
  
  .nav-links ul .dropdown:hover .dropdown-menu {
    display: flex;
  }
  
  /* ✅ Affichage au hover */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  /* ✅ Style interne */
  .dropdown-menu li {
    padding: 8px 20px;
  }
  
  .dropdown-menu li a {
    display: block;
    color: #000;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .dropdown-menu li a:hover {
    background: #f5f5f5;
  }
  
  
  /* ✅ RÉSEAUX SOCIAUX */
  .social-icons a {
    background: #fff;
    color: #000;
    border-radius: 50%;
    padding: 6px 9px;
    margin-left: 5px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
  }
  
  .social-icons a:hover {
    background: #662843;
    color: #fff;
  }
  
  /* ✅ MENU BURGER */
  .menu-toggle {
    display: none;
    font-size: 1.6em;
    color: #000;
    cursor: pointer;
  }
  
  /* ✅ RESPONSIVE */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      position: absolute;
      top: 70px;
      left: 0;
      right: 0;
      background: white;
      display: none;
      flex-direction: column;
      text-align: center;
      gap: 20px;
      padding: 20px 0;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .nav-links ul {
      flex-direction: column;
      gap: 10px;
    }
  
    .dropdown-menu {
      position: static;
      box-shadow: none;
      background: #f0f0f0;
    }
  }
  

h2, h3 {
    color: #662843;
    text-align: center;
}

p {
    line-height: 1.6;
    font-size: 1.1em;
    max-width: 900px;
    margin: 15px auto;
    padding: 0 20px;
}

/* Section Intro */
.intro {
    background: linear-gradient(to right, #662843, #943c62);
    color: white;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.intro h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.intro p {
    color: #fff;
    font-size: 1.2em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Profile Sections */
section.Lionel, section.Jacques, section.Selim {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    animation: fadeIn 1s ease-in-out;
}

section.Lionel { animation: slideLeft 1s ease-in-out; }
section.Jacques { animation: slideRight 1s ease-in-out; }
section.Selim { animation: slideLeft 1s ease-in-out; }

section img {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

section img:hover {
    transform: scale(1.05);
}

section h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

section p {
    max-width: 600px;
}

/* Footer */
.footer {
    background: #662843;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    section.Lionel, section.Jacques, section.Selim {
        flex-direction: column;
        text-align: center;
    }

    section img {
        width: 90%;
    }
}
