/* ═══════════════════════════════════════════
   Variables CSS
   ═══════════════════════════════════════════ */
:root {
    --fhf-blue:       #003189;
    --fhf-blue-dark:  #002070;
    --fhf-blue-light: #e8edf7;
    --bs-body-color:  #2e4150;
    --fhf-red:        #e2001a;
    --text-light:     #ffffff;
    --font:           'Arial', sans-serif;
}

/* ═══════════════════════════════════════════
   Styles de base
   ═══════════════════════════════════════════ */
body {
    font-family: var(--font);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════
   Pré-header
   ═══════════════════════════════════════════ */
.pre-header {
    background-color: #edf4f9;
    font-size: 0.75rem;
}

.pre-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}

.pre-nav a {
    display: block;
    color: var(--bs-body-color);
    text-decoration: none;
    padding: 8px 12px;
    transition: background 0.2s, color 0.2s;
}

.pre-nav a:hover {
    background-color: var(--fhf-blue);
    color: #fff;
}

/* ═══════════════════════════════════════════
   Header principal
   ═══════════════════════════════════════════ */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 7.8rem;
    align-items: center;
    justify-content: space-between;
    display: flex;
}

.main-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 80px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
}

/* ═══════════════════════════════════════════
   Navigation principale
   ═══════════════════════════════════════════ */
.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    height: 100%;
    padding: 0;
    margin: 0;
}

.main-nav a {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 12px;
    min-height: 80px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.main-nav a.btn-login{
    min-height: inherit;
    padding: 15px;
    margin-top: 10px;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--fhf-blue-dark);
}

/* ═══════════════════════════════════════════
   Actions du header (boutons)
   ═══════════════════════════════════════════ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-search {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.btn-search:hover {
    background-color: var(--fhf-blue-dark);
}

.btn-login {
    background-color: var(--fhf-red);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 2px;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.btn-login:hover {
    background-color: #b8001a;
    color: #fff;
}

/* ═══════════════════════════════════════════
   Menu mobile - Bouton hamburger
   ═══════════════════════════════════════════ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* ═══════════════════════════════════════════
   Responsive - Tablettes et mobiles < 992px
   ═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .pre-header {
        display: none;
    }

    .main-header__inner {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .logo {
        flex: 0 0 auto;
        max-width: 150px;
    }

    .logo img {
        max-height: 40px;
        width: auto;
    }

    .main-nav {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 20px;
    }

    .main-nav.active {
        left: 0 !important;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        list-style: none;
        margin: 0;
    }

    .main-nav .nav-item,
    .main-nav li {
        width: 100%;
        margin: 0;
        list-style: none;
    }

    .main-nav .nav-link {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #eee;
        text-decoration: none;
        min-height: auto;
        text-transform: none;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        background-color: #f5f5f5;
    }

    .header-actions {
        width: 100%;
        padding: 15px 20px;
    }

    .header-actions .btn-login {
        width: 100%;
        display: block;
        text-align: center;
        padding: 10px 15px;
    }
}

/* ═══════════════════════════════════════════
   Responsive - Petits mobiles < 768px
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
    .logo {
        max-width: 120px;
    }

    .logo img {
        max-height: 35px;
    }

    .main-nav {
        width: 85%;
        max-width: 280px;
    }
}


.region-content-banner {
    position: relative;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
    min-height: 15rem;
    padding-top: 2.5rem;
    padding-bottom: 3.2rem;
    background: linear-gradient(109deg, #0b5a9d 0%, #e2001a 100%);
}

.region-content-banner a.text-dark,
.region-content-banner li,
.region-content-banner a,
.region-content-banner h1 {
    color: #fff !important;
}
.region-content-banner h1 {
    font-size: 3.5rem;
}
@media (max-width: 991px) {
    .region-content-banner h1 {
        font-size: 2rem;
    }
}
.region-content-banner a.btn{
    border: 1px solid #fff;
}

.btn-xxs{
    padding: 0.2rem 0.5rem !important;
    margin-left: 0.5rem;
}

.region-content-banner #formulaire label {
    color: #fff;
}

.region-content-banner #formulaire select {
    background-color: #fff;
    min-width: 200px;
}
