/* ==============================================
    Thème enfant : Hello Elementor Child Soeurs
    entete-pied.css — en-tête et pied de page codés dans le thème
    Reproduit l'en-tête / pied de page Elementor de leprado.org
    (mêmes couleurs, polices et comportements).
    v1.1.0
   ============================================== */

/* -----------------------------------------------
   EN-TÊTE — structure (ordinateur)
   ----------------------------------------------- */
.prado-header--theme {
    position:         relative;
    z-index:          9995;
    background-color: #fff;
    font-family:      var(--font-body);          /* National, comme le reste du réseau */
    padding:          0 2%;
}

.prado-header__inner {
    display:      flex;
    align-items:  center;
    gap:          0;
    min-height:   64px;
}

/* 1. Logo */
.prado-header--theme .prado-header-logo {
    flex:   0 0 160px;
    width:  160px;
}
.prado-header--theme .prado-header-logo a {
    display: block;
    line-height: 0;
}
.prado-header--theme .prado-header-logo img {
    display: block;
    width:   160px;
    height:  auto;
}

/* 2. Sélecteur de site */
.prado-header--theme .prado-header-title {
    flex:      0 0 auto;
    margin-left: 12px;
}
/* Le titre du sélecteur reste en RockebyCd (sinon le H1 manuscrit de soeurs.css s'appliquerait) */
.prado-header--theme .selecteur-site h1,
.prado-header--theme .selecteur-site .titre-actuel {
    font-family: 'RockebyCd-Bold-2', var(--font-title) !important;
    color:       inherit;
}
.prado-header__titre-repli {
    margin: 0;
    font-family: var(--font-title);
    font-size:   1.8rem;
}
.prado-header__titre-repli a { color: var(--bleu-prado-1); text-decoration: none; }

/* 3. Navigation */
.prado-header--theme .prado-header-nav {
    flex:    1 1 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.prado-menu,
.prado-menu .sub-menu {
    list-style: none;
    margin:     0;
    padding:    0;
}

.prado-menu {
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    justify-content: flex-end;
}

.prado-menu > li {
    position: relative;
}

.prado-menu a {
    display:         block;
    padding:         4px 10px;
    font-family:     var(--font-body);
    font-size:       17px;   /* v1.4.0 : 16 → 17 px (lisibilité) */
    font-weight:     600;
    line-height:     24px;
    text-transform:  uppercase;
    text-decoration: none;
    color:           var(--bleu-prado-3);        /* #304D9C */
    transition:      background-color .2s ease, color .2s ease;
}

/* Survol / page courante : fond ocre, texte blanc (comme leprado.org) */
.prado-menu > li > a:hover,
.prado-menu > li > a:focus-visible,
.prado-menu > li:hover > a,
.prado-menu > li.current-menu-item > a,
.prado-menu > li.current-menu-ancestor > a,
.prado-menu > li.current-menu-parent > a {
    background-color: var(--jaune-prado-1);      /* #E1A603 */
    color:            #fff;
}

/* Petit chevron après les entrées qui ont un sous-menu */
.prado-menu > li.menu-item-has-children > a::after {
    content:       "";
    display:       inline-block;
    width:         6px;
    height:        6px;
    margin:        0 0 3px 8px;
    border-right:  2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform:     rotate(45deg);
    vertical-align: middle;
}

/* Sous-menus (ordinateur) : liste blanche au survol */
.prado-menu .sub-menu {
    position:         absolute;
    top:              100%;
    left:             0;
    min-width:        240px;
    background-color: #fff;
    box-shadow:       0 6px 16px rgba(0, 0, 0, .15);
    opacity:          0;
    visibility:       hidden;
    transform:        translateY(6px);
    transition:       opacity .2s ease, transform .2s ease, visibility .2s;
    z-index:          10;
}
.prado-menu > li:hover > .sub-menu,
.prado-menu > li:focus-within > .sub-menu,
.prado-menu > li.sous-menu-ouvert > .sub-menu {
    opacity:    1;
    visibility: visible;
    transform:  none;
}
.prado-menu .sub-menu a {
    padding:     13px 20px;
    white-space: nowrap;
}
.prado-menu .sub-menu a:hover,
.prado-menu .sub-menu a:focus-visible,
.prado-menu .sub-menu .current-menu-item > a {
    background-color: var(--jaune-prado-1);
    color:            #fff;
}

/* Boutons ajoutés par entete.js : masqués sur ordinateur (le survol suffit) */
.prado-header--theme .prado-sous-menu__bouton { display: none; }

/* Burger : masqué sur ordinateur */
.prado-header--theme .prado-burger { display: none; }

/* 4. Recherche */
.prado-header--theme .prado-header-search {
    flex:        0 0 auto;
    margin-left: 16px;
    display:     flex;
    align-items: center;
    justify-content: center;
}

/* Remise à zéro des boutons (Hello Elementor les colore en rose #c36 par défaut) */
/* (Hello applique aussi un fond rose au survol / focus : on le neutralise) */
.prado-header--theme button:hover,
.prado-header--theme button:focus,
.prado-header--theme .prado-sous-menu__bouton:hover,
.prado-header--theme .prado-sous-menu__bouton:focus,
.prado-header--theme .prado-recherche__fermer:focus {
    background-color: transparent;
}
.prado-header--theme button {
    font:          inherit;
    border:        0;
    border-radius: 0;
    background:    none;
    padding:       0;
    margin:        0;
    color:         inherit;
    cursor:        pointer;
    line-height:   1;
}

.prado-header--theme .prado-recherche__bouton {
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    width:            33px;
    height:           33px;
    border-radius:    3px;
    background-color: var(--vert-prado-1);       /* #1AA085 */
    color:            #fff;
    transition:       background-color .2s ease;
}
.prado-header--theme .prado-recherche__bouton:hover,
.prado-header--theme .prado-recherche__bouton:focus-visible {
    background-color: var(--jaune-prado-1);
    color:            #fff;
}

/* Panneau de recherche plein écran */
.prado-recherche {
    position:         fixed;
    inset:            0;
    z-index:          99999;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    padding:          0 8%;
    background-color: rgba(26, 160, 133, .96);
}
.prado-recherche[hidden] { display: none; }

.prado-recherche__form { width: 100%; max-width: 900px; }

.prado-recherche__champ {
    width:         100%;
    padding:       .3em 0;
    border:        0 !important;
    border-bottom: 2px solid #fff !important;
    border-radius: 0 !important;
    background:    transparent !important;
    color:         #fff;
    font-family:   var(--font-body);
    font-size:     clamp(1.6rem, 4vw, 3rem);
    outline:       none;
}
.prado-recherche__champ:focus,
.prado-recherche__champ:focus-visible {
    outline:    none !important;
    box-shadow: none !important;
    border-bottom-color: var(--jaune-prado-2) !important;
}
.prado-recherche__champ::placeholder { color: rgba(255, 255, 255, .7); }

.prado-header--theme .prado-recherche__fermer {
    position: absolute;
    top:      24px;
    right:    24px;
    color:    #fff;
}
.prado-header--theme .prado-recherche__fermer:hover { color: var(--jaune-prado-2); }

html.prado-recherche-ouverte { overflow: hidden; }

/* En-tête collant sur ordinateur (comme leprado.org) */
@media (min-width: 1025px) {
    .prado-header--theme {
        position: sticky;
        top:      0;
    }
    .admin-bar .prado-header--theme { top: 32px; }
}


/* -----------------------------------------------
   EN-TÊTE — tablette et mobile (≤ 1024 px)
   (common.css fixe déjà la largeur des 4 blocs : 160 / auto / 40 / 40)
   ----------------------------------------------- */
@media (max-width: 1024px) {

    .prado-header--theme { padding: 0 10px; }
    .prado-header__inner { min-height: 82px; }
    .prado-header--theme .prado-header-title { flex: 1 1 auto; min-width: 0; margin-left: 8px; }
    .prado-header--theme .prado-header-search { margin-left: 0; }

    /* Burger : carré vert, barres blanches */
    .prado-header--theme .prado-burger {
        display:          inline-flex;
        align-items:      center;
        justify-content:  center;
        width:            33px;
        height:           33px;
        border-radius:    3px;
        background-color: var(--vert-prado-1);
        color:            #fff;
    }
    .prado-header--theme .prado-burger:hover,
    .prado-header--theme .prado-burger:focus-visible,
    .menu-ouvert .prado-burger {
        background-color: var(--jaune-prado-1);
    }
    .prado-burger__barres,
    .prado-burger__barres::before,
    .prado-burger__barres::after {
        display:    block;
        width:      18px;
        height:     2px;
        background: currentColor;
        transition: transform .2s ease, background-color .2s ease;
    }
    .prado-burger__barres { position: relative; }
    .prado-burger__barres::before,
    .prado-burger__barres::after {
        content:  "";
        position: absolute;
        left:     0;
    }
    .prado-burger__barres::before { top: -6px; }
    .prado-burger__barres::after  { top:  6px; }
    /* Croix quand le menu est ouvert */
    .menu-ouvert .prado-burger__barres { background: transparent; }
    .menu-ouvert .prado-burger__barres::before { transform: translateY(6px) rotate(45deg); }
    .menu-ouvert .prado-burger__barres::after  { transform: translateY(-6px) rotate(-45deg); }

    /* Panneau du menu sous l'en-tête */
    .prado-navigation {
        display:          none;
        position:         absolute;
        top:              100%;
        left:             0;
        right:            0;
        max-height:       calc(100vh - 82px);
        overflow-y:       auto;
        background-color: #fff;
        box-shadow:       0 10px 20px rgba(0, 0, 0, .15);
    }
    .menu-ouvert .prado-navigation { display: block; }

    .prado-menu { display: block; }
    .prado-menu li {
        position:   relative;
        border-top: 1px solid #ececec;
    }
    .prado-menu a { padding: 12px 56px 12px 20px; }
    .prado-menu > li.menu-item-has-children > a::after { display: none; }

    /* Sous-menus : en accordéon */
    .prado-menu .sub-menu {
        position:   static;
        min-width:  0;
        box-shadow: none;
        opacity:    1;
        visibility: visible;
        transform:  none;
        display:    none;
        background-color: #f7f7f7;
    }
    .prado-menu > li:hover > .sub-menu,
    .prado-menu > li:focus-within > .sub-menu { display: none; }
    .prado-menu > li.sous-menu-ouvert > .sub-menu { display: block; }
    .prado-menu .sub-menu a { padding-left: 36px; white-space: normal; }

    /* Pas de fond ocre au simple survol sur écran tactile, seulement page courante */
    .prado-menu > li:hover > a { background-color: transparent; color: var(--bleu-prado-3); }
    .prado-menu > li.current-menu-item > a,
    .prado-menu > li.current-menu-ancestor > a { background-color: var(--jaune-prado-1); color: #fff; }

    .prado-header--theme .prado-sous-menu__bouton {
        display:         flex;
        align-items:     center;
        justify-content: center;
        position:        absolute;
        top:             0;
        right:           0;
        width:           48px;
        height:          48px;
        color:           var(--bleu-prado-3);
    }
    .prado-header--theme .prado-sous-menu__bouton svg { transition: transform .2s ease; }
    .sous-menu-ouvert > .prado-sous-menu__bouton svg { transform: rotate(180deg); }
}


/* -----------------------------------------------
   PIED DE PAGE
   ----------------------------------------------- */
.prado-footer--theme {
    font-family: var(--font-body);
    font-size:   17px;
    color:       #fff;
}

.prado-footer__bandeau {
    background-color: var(--bleu-prado-1);       /* #263875 */
    padding:          40px 2% 30px;
    margin-top:       40px;
}

.prado-footer__colonnes {
    display:   grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:       30px;
    max-width: 1140px;
    margin:    0 auto;
}

/* Logo sur pastille blanche (le mot « Prado » est bleu, illisible sur le bandeau) */
.prado-footer__logo {
    display:          inline-block;
    line-height:      0;
    padding:          10px;
    border-radius:    6px;
    background-color: #fff;
}
.prado-footer__logo img { width: 110px; height: auto; }

.prado-footer__coordonnees {
    display:        flex;
    flex-direction: column;
    gap:            6px;
    margin-top:     16px;
    font-style:     normal;
    font-size:      16px;
    line-height:    1.45;
}

.prado-footer--theme h2.prado-footer__titre {
    margin:      0 0 14px;
    font-family: var(--font-title) !important;  /* RockebyCd */
    font-size:   22px;
    font-weight: 700;
    color:       var(--jaune-prado-1);
}

.prado-footer__liens {
    list-style: none;
    margin:     0;
    padding:    0;
}
.prado-footer__liens li + li { margin-top: 8px; }

.prado-footer--theme a {
    color:           #fff;
    text-decoration: none;
    transition:      color .2s ease;
}
.prado-footer--theme a:hover,
.prado-footer--theme a:focus-visible {
    color:           var(--jaune-prado-2);
    text-decoration: underline;
}

.prado-footer__reseaux {
    display:    flex;
    gap:        10px;
    margin-top: 18px;
}
.prado-footer--theme .prado-footer__reseau {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    border-radius:   50%;
    background-color: rgba(255, 255, 255, .12);
}
.prado-footer--theme .prado-footer__reseau:hover {
    background-color: var(--jaune-prado-1);
    color:            #fff;
}

.prado-footer__copyright {
    background-color: var(--bleu-prado-1);
    border-top:       1px solid rgba(255, 255, 255, .15);
    padding:          14px 2%;
    text-align:       center;
    font-size:        15px;
}
.prado-footer__copyright p { margin: 0; }

@media (max-width: 1024px) {
    .prado-footer__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .prado-footer__colonnes { grid-template-columns: 1fr; text-align: center; }
    .prado-footer__coordonnees { align-items: center; }
    .prado-footer__reseaux { justify-content: center; }
}
