
    :root {
        --text: #000000;
--links: #000000;
--titles: #000000;
--page-background: #F6F8FB;
--highlight: #000091;
--boxes-background: #FFFFFF;
--boxes-border: #000000;
--section-titles: #000000;
--section-titles-background: #FFFFFF;
--header-background: #FFFFFF;
--header-links: #000000;
--footer-background: #FFFFFF;
--footer-links: #333333;
    }
    
/* ======================================================================
   DATA.DREES - CSS OPTIMISE ET RESPONSIVE
   Fusion et optimisation de data.css et version2.css

   Principes :
   - mise en page fluide sans largeur fixe ;
   - menu horizontal sur grand ecran ;
   - menu vertical, tactile et accessible sur mobile ;
   - sous-menus accessibles au survol et au clavier avec :focus-within ;
   - aucun JavaScript requis ;
   - usage de !important limite aux surcharges de la plateforme.
   ====================================================================== */

:root {
    --drees-blue: #000091;
    --drees-text: #161616;
    --drees-muted: #555;
    --drees-border: #ddd;
    --drees-surface: #fff;
    --drees-search-bg: #f5f5f5;
    --drees-footer-bg: #e5e5e5;
    --drees-focus: #0a76f6;
    --drees-shadow: 0 8px 24px rgba(37, 48, 59, .16);
    --drees-content-width: 1200px;
}

/* Normalisation locale */
.ods-front-header *,
.ods-front-footer * {
    box-sizing: border-box;
}

/* ======================================================================
   EN-TETE
   ====================================================================== */

.ods-front-header,
.fr-header {
    min-height: 0 !important;
    height: auto !important;
    padding: .75rem 0 0;
    background: var(--drees-surface) !important;
}

.fr-header__body-row {
    display: flex !important;
    width: min(100%, var(--drees-content-width));
    margin-inline: auto;
    padding-inline: 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.fr-header__brand,
.fr-header__brand-top,
.fr-header__logo {
    display: flex !important;
    align-items: center;
    min-width: 0;
}

.fr-header__brand {
    flex: 1 1 30rem;
}

.fr-header__brand-top {
    flex-wrap: wrap;
    gap: .75rem 1rem;
}

.fr-header__logo {
    flex: 0 0 auto;
}

.fr-header__logo img {
    display: block;
    width: auto !important;
    height: clamp(3.5rem, 7vw, 5rem) !important;
    max-width: 100%;
    object-fit: contain;
}

.drees-headerlogo img {
    display: block;
    width: auto;
    height: clamp(1.75rem, 4vw, 2.2rem) !important;
    max-width: 100%;
    margin-left: clamp(.25rem, 2vw, 1.25rem);
    object-fit: contain;
    background: var(--drees-surface);
}

.fr-header__service {
    flex: 1 1 12rem;
    min-width: 0;
    margin-left: clamp(0rem, 2vw, 1.25rem);
}

.fr-header__service-title,
.fr-header__service-tagline {
    height: auto !important;
    overflow-wrap: anywhere;
}

.fr-header__service-title {
    margin: 0 0 .25rem;
    color: var(--drees-text);
    font-family: "Marianne", Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.25;
}

.fr-header__service-tagline {
    margin: 0;
    color: var(--drees-muted);
    font-size: .9375rem;
    line-height: 1.4;
}

/* ======================================================================
   RECHERCHE, BACK-OFFICE ET COMPTE
   ====================================================================== */

.fr-header__navbar {
    display: flex;
    flex: 1 1 22rem;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
}

.search-card-container {
    order: 2;
    display: flex;
    width: min(100%, 34.375rem);
    margin: 0;
    padding: 0;
    border-radius: .25rem;
}

.search-card-searchbox {
    flex: 1 1 auto;
    min-width: 0;
}

.search-card-searchbox input {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 2.75rem;
    padding: .625rem .875rem;
    border: 0 !important;
    border-bottom: 2px solid var(--drees-blue) !important;
    border-radius: .25rem 0 0 0;
    background: var(--drees-search-bg);
    font-size: 1rem;
}

.search-card-searchbox input:focus-visible {
    outline: 3px solid var(--drees-focus);
    outline-offset: 2px;
}

.search-card-submit-button {
    display: inline-flex;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: 0 !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--drees-blue) !important;
    color: #fff !important;
    cursor: pointer;
}

.search-card-submit-button:focus-visible {
    outline: 3px solid var(--drees-focus);
    outline-offset: 2px;
}

.ods-front-header__management-menu {
    position: static !important;
    order: 1;
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .5rem;
}

.ods-front-header__management-menu-item {
    display: flex;
    align-items: center;
}

.ods-front-header__management-menu-item-link--backoffice {
    margin-right: 0;
    padding: .5rem .75rem;
    border-radius: .2rem;
}

.ods-front-header__management-menu-item-link {
    color: #fff !important;
}

/* ======================================================================
   NAVIGATION PRINCIPALE
   ====================================================================== */

.fr-header__menu {
    margin-top: 1rem;
    border-top: 1px solid var(--drees-border);
}

.ods-front-header__menu {
    display: flex !important;
    width: min(100%, var(--drees-content-width));
    margin: 0 auto;
    padding: 0 1rem;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.ods-front-header__menu-item {
    position: relative;
    margin: 0 !important;
}

.ods-front-header__menu-item-link {
    display: flex;
    min-height: 3rem;
    padding: .75rem clamp(.75rem, 2vw, 1.5rem);
    align-items: center;
    color: var(--drees-text);
    border-bottom: 2px solid transparent;
    font-size: .875rem !important;
    line-height: 1.35;
    opacity: 1;
    text-decoration: none;
}

.ods-front-header__menu-item:hover > .ods-front-header__menu-item-link,
.ods-front-header__menu-item:focus-within > .ods-front-header__menu-item-link {
    color: var(--drees-text) !important;
    border-bottom-color: var(--drees-blue);
    background: transparent !important;
}

.ods-front-header__menu-item-link:focus-visible,
.dropdown-content a:focus-visible,
.ods-front-footer a.foot:focus-visible {
    outline: 3px solid var(--drees-focus);
    outline-offset: -3px;
}

/* Fleche des entrees comportant un sous-menu */
.dropdown-menu > .ods-front-header__menu-item-link::after {
    content: "";
    display: inline-block;
    width: .45rem;
    height: .45rem;
    margin-left: .6rem;
    border-right: 2px solid var(--drees-blue);
    border-bottom: 2px solid var(--drees-blue);
    transform: rotate(45deg) translateY(-.15rem);
    transition: transform .2s ease;
}

.dropdown-menu:hover > .ods-front-header__menu-item-link::after,
.dropdown-menu:focus-within > .ods-front-header__menu-item-link::after {
    transform: rotate(225deg) translateY(-.05rem);
}

/* Sous-menu ferme par defaut sur ordinateur */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 14rem;
    max-width: min(22rem, 90vw);
    margin: 0;
    padding: .5rem;
    border: 1px solid var(--drees-border);
    background: var(--drees-surface);
    box-shadow: var(--drees-shadow);
}

.dropdown-menu:hover > .dropdown-content,
.dropdown-menu:focus-within > .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: .65rem .75rem;
    color: var(--links, var(--drees-blue));
    background: var(--drees-surface);
    font-size: .875rem;
    line-height: 1.4;
    opacity: 1;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    color: var(--links, var(--drees-blue));
    background: #f2f2f9;
    text-decoration: underline;
}

/* ======================================================================
   PIED DE PAGE
   ====================================================================== */

.ods-front-footer {
    min-height: 3.125rem;
    padding: .75rem clamp(1rem, 5vw, 3.75rem);
    border: 0 !important;
    border-bottom: 2px solid var(--drees-blue) !important;
    background: var(--drees-footer-bg) !important;
}

.ods-front-footer ul.pucesF {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    list-style: none;
}

.ods-front-footer li.puceF {
    display: flex;
    padding: .25rem 0;
    align-items: center;
    color: var(--drees-text);
    font-size: 1rem;
}

.ods-front-footer a.foot {
    color: var(--drees-text) !important;
    text-decoration: none;
}

.ods-front-footer a.foot:hover {
    text-decoration: underline;
}

/* ======================================================================
   TABLETTES ET MOBILES

   Sans JavaScript ni ajout d'un controle HTML (checkbox/details), un bouton
   hamburger pliable n'est pas fiable. Sur petit ecran, le menu devient donc
   une navigation verticale toujours accessible. Les sous-menus sont affiches
   dans le flux pour garantir leur fonctionnement au toucher et au clavier.
   ====================================================================== */

@media screen and (max-width: 48rem) {
    .ods-front-header,
    .fr-header {
        padding-top: .5rem;
    }

    .fr-header__body-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .fr-header__brand,
    .fr-header__brand-top {
        width: 100%;
        justify-content: center;
    }

    .fr-header__brand {
        flex-basis: auto;
    }

    .fr-header__service {
        flex-basis: 100%;
        margin-left: 0;
        text-align: center;
    }

    .fr-header__navbar {
        width: 100%;
        flex-basis: auto;
        align-items: stretch;
    }

    .search-card-container {
        width: 100%;
        max-width: none;
    }

    .ods-front-header__management-menu {
        justify-content: center;
    }

    .fr-header__menu {
        margin-top: .75rem;
    }

    .ods-front-header__menu {
        width: 100%;
        padding: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        border-bottom: 1px solid var(--drees-border);
    }

    .ods-front-header__menu-item {
        width: 100%;
        border-top: 1px solid var(--drees-border);
    }

    .ods-front-header__menu-item:first-child {
        border-top: 0;
    }

    .ods-front-header__menu-item-link {
        width: 100%;
        min-height: 3rem;
        padding: .8rem 1rem;
        justify-content: space-between;
        border-bottom: 0;
        font-size: 1rem !important;
    }

    .ods-front-header__menu-item:hover > .ods-front-header__menu-item-link,
    .ods-front-header__menu-item:focus-within > .ods-front-header__menu-item-link {
        border-bottom-color: transparent;
        background: #f2f2f9 !important;
    }

    /* Sous-menus visibles dans le flux : solution CSS seule robuste */
    .dropdown-content,
    .dropdown-menu:hover > .dropdown-content,
    .dropdown-menu:focus-within > .dropdown-content {
        position: static;
        display: block;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 0 0 .5rem 1rem;
        border: 0;
        border-top: 1px solid #eee;
        box-shadow: none;
        background: #fafafa;
    }

    .dropdown-content a {
        padding: .7rem 1rem;
        border-left: 3px solid transparent;
        background: transparent;
        font-size: .9375rem;
    }

    .dropdown-content a:hover,
    .dropdown-content a:focus-visible {
        border-left-color: var(--drees-blue);
        background: #f2f2f9;
    }

    .dropdown-menu > .ods-front-header__menu-item-link::after {
        transform: rotate(45deg) translateY(-.15rem);
    }

    .ods-front-footer ul.pucesF {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 30rem) {
    .fr-header__body-row {
        padding-inline: .75rem;
    }

    .fr-header__brand-top {
        flex-direction: column;
    }

    .drees-headerlogo img {
        margin-left: 0;
    }

    .fr-header__logo img {
        height: 3.5rem !important;
    }

    .fr-header__service-title {
        font-size: 1rem;
    }

    .fr-header__service-tagline {
        font-size: .875rem;
    }

    .ods-front-header__management-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .ods-front-header__management-menu-item,
    .ods-front-header__management-menu-item-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Respect du choix utilisateur concernant les animations */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu > .ods-front-header__menu-item-link::after {
        transition: none;
    }
}