/* =========================
   BASE
========================= */

body {
    margin: 0;
}

/* =========================
   EN-TÊTE – BASE COMMUNE
========================= */

.theader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;

    min-height: 110px;
    padding-left: 50px;
    padding-right: 30px;

    background-color: #6d0504; /* évite le gris du body */
}

/* =========================
   LOGO
========================= */

.site-logo img {
    max-height: 80px;
    height: auto;
    display: block;
}

/* =========================
   MENU
========================= */

#tmenu ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;              /* ✅ autorise le retour à la ligne */
    gap: 20px;

    margin: 0;
    padding: 0;
    list-style: none;
}

#tmenu li {
    white-space: normal;          /* ✅ autorise le wrap */
}

#tmenu li a {
    color: #ffffff;
    text-decoration: none;
}

/* =========================
   PAGES INTERNES : image d’en-tête
========================= */

body:not(.homebody) .theader {
    background-image: url("../img/header-bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* =========================
   ACCUEIL : fond SOLIDE (évite le gris)
========================= */

body.homebody .theader {
    background-image: url("../img/header-bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* =========================
   IMAGE ACCUEIL (big-block)
========================= */

/* custom styles only */

/* la taille du bloc, OK */
body.homebody #big-block-1 {
    min-height: 260px;
    padding: 0;
}

/* =========================
   RESPONSIVE – MENU SOUS LE LOGO
========================= */

@media (max-width: 900px) {

    .theader {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #tmenu ul {
        justify-content: flex-start;
    }
}