/* ---HEADER--- */

.header {
    position: fixed; /* 👈 garde le header toujours visible */
    top: 0;           /* colle en haut de la page */
    left: 0;
    right: 0;
    z-index: 1000;    /* pour qu'il passe au-dessus du reste */
    background-color: rgba(49, 49, 49, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5rem;
    padding: 0.5rem 1rem;
    box-shadow: 0px 0px 6px rgba(84, 84, 84, 0.8);
    max-width: 1000px;
    margin: 1rem auto;
    height: 60px;
}

/* Conteneur */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo img {
    height: 40px;
    margin-left: 2rem;
}

/* Titre */
.title h1 {
    font-family: Arial, Helvetica, sans-serif;
    color: #50b0ff;
    font-weight: bold;
    font-size: 1.5rem;
    margin-left: 2rem;
}

/* --- Dropdown Container --- */
.dropdown {
    position: relative;
    display: flex;
    align-items: center; /* centre verticalement comme ton ancien bouton */
}

/* --- Conteneur du bouton + menu --- */
/* ✅ Ajouté pour englober bouton + menu et éviter la fermeture immédiate */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* ✅ Zone tampon pour garder le :hover actif entre bouton et menu */
}

/* --- Bouton style "Contact" modernisé --- */
.dropbtn {
    display: inline-block;
    padding: 0 3rem;
    border: 2px solid #bbb;
    border-radius: 3rem;
    color: #bbb;
    background-color: transparent;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: #e0e0e0;
    color: #1A2A42;
    border-color: #F18536;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

/* --- Contenu du menu déroulant --- */
/* ✅ Retiré toute dépendance au display:none pour garder les transitions */
.dropdown-content {
    opacity: 0;
    pointer-events: none;
    visibility: hidden; /* ✅ Ajouté pour contrôle de l'affichage */
    transform: translateY(-5px);
    position: absolute;
    top: 100%; /* ✅ Alignement juste sous le bouton */
    right: 0;
    background-color: #bbb;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.25);
    border-radius: 0.5rem;
    overflow: hidden;
    z-index: 1000;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Liens du menu --- */
.dropdown-content a {
    color: #1A2A42;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #bbb;
}

/* --- Affichage au survol --- */
/* ✅ Le hover est sur .dropdown entier (bouton + menu), pas seulement le bouton */
.dropdown:hover .dropdown-content {
    opacity: 1;
    pointer-events: auto;
    visibility: visible; /* ✅ Passe en visible */
    transform: translateY(0);
}

/* Bouton contact */
.contact a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid #bbb;
    border-radius: 3rem;
    color: #bbb;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: background-color 0.2s;
}

.contact a:hover {
    background-color: #e0e0e0;
}

/* -----MEDIA----- */

/* ---HEADER--- */
/* Responsive */
@media screen and (max-width: 600px) {
  /* Masquer le titre */
    .title {
        display: none !important;
    }

    .header-container {
        justify-content: space-between;
    }
}
@media (max-width: 768px) {
    .header {
        height: 60px;
        margin: 1rem 0.5rem 0 0.5rem;
    }
}