/* ===========================
   HEADER - Mode normal (desktop)
   =========================== */
.site-header {
    width: 100%;
    height: var(--header-height);
    background: url('ImagesSources/Fond_Header.png') no-repeat center center/cover;
    color: #d2a374;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-overlay {
    display: flex;
    align-items: center;
    padding: 0 2%;
    height: var(--header-height);
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.header-logo {
    height: calc(var(--header-height) * 0.75);
    width: auto;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #d2a374;
    text-align: center;
}

.header-text h1 {
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
}

.header-text p {
    font-size: 1rem;
    margin: 5px 0 0 0;
}

.header-nav {
    background-color: transparent;
}

.header-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.header-nav li {
    margin: 0;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}

.header-nav a:hover {
    color: #ffd700;
}

/* Bouton hamburger caché en grand écran */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1100;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Palier 1 : Tablettes paysage (max 1024px) */
@media (max-width: 1024px) {
    .header-overlay {
        gap: 10px;
    }
    .header-text h1 {
        font-size: 2.2rem;
    }
    .header-nav ul {
        gap: 20px;
    }
}

/* Palier 2 : Tablettes portrait (max 768px) */
@media (max-width: 768px) {
    .header-overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
        height: auto;
    }
    .header-logo {
        height: 70px;
    }
    .header-text h1 {
        font-size: 2rem;
    }
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Palier 3 : Smartphones (max 480px) */
@media (max-width: 480px) {
    /* Disposition header */
    .header-overlay {
        flex-direction: row; /* Logo + bloc texte côte à côte */
        align-items: center;
        justify-content: flex-start;
        height: auto;
        padding: 10px;
        gap: 10px;
    }	

    .header-logo {
        height: calc(var(--header-height) * 0.5);
        width: auto;
        padding-left: 5px;
    }

    .header-text {
        flex-direction: column; /* h1 au-dessus du h2 */
        align-items: flex-start; /* aligner à gauche */
        text-align: left;
    }

    .header-text h1 {
        font-size: 1.4rem;
        margin: 0;
    }	

    .header-text h2 {
        font-size: 1rem;
        margin: 0;
    }

    /* Navigation mobile */
    .menu-toggle {
        display: block;
    }

    .header-nav ul {
        display: none; /* Masqué par défaut */
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        padding: 20px 0;
        gap: 15px;
    }

    .header-nav ul.show {
        display: flex; /* Affiché au clic */
    }
}
