/**********      BANDEAU DU HAUT (toutes les pages sauf l'accueil)      **********/
/* Collé tout en haut de l'écran et sur toute la largeur, dans l'esprit de la barre de l'accueil :
   logo et nom du chœur à gauche (lien vers l'accueil) avec le nom de la page dessous,
   bouton de retour à droite. Les tailles sont en px : le bandeau est identique sur toutes
   les pages, quelle que soit la taille de texte propre à chacune.
   À charger après les styles de la page (et avant pied.css). */

/* Les ancres (ex. ADIXCHOEUR.html#back) ne passent pas sous le bandeau. */
html {
    scroll-padding-top: 76px;
}

body > .bandeau {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 7px 16px;
    align-self: stretch;
    justify-self: stretch;
    color: #004b14;
    background: linear-gradient(180deg, #f6fcffeb, #dbf3ffe0);
    border: 0;
    border-bottom: 1px solid #005f9159;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 6px 18px #003c5f29;
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
    font: 400 18px/1.15 haritzaga, Arial, sans-serif;
    letter-spacing: normal;
    text-align: left;
    text-shadow: none;
}

/* Logo + nom du chœur + nom de la page */
body > .bandeau .bandeau-marque {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    background: none;
    text-decoration: none;
}

body > .bandeau .bandeau-marque img {
    display: block;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px #001d2f59, 0 0 0 2px #ffffffcc;
    object-fit: cover;
    transition: transform .2s ease;
}

body > .bandeau .bandeau-marque:hover img,
body > .bandeau .bandeau-marque:focus-visible img {
    transform: rotate(-8deg) scale(1.05);
}

body > .bandeau .bandeau-titres {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

body > .bandeau .bandeau-titres strong {
    font-family: haritzaga, Arial, sans-serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .03em;
    color: #004b14;
    white-space: nowrap;
}

body > .bandeau .bandeau-titres span {
    display: block;
    overflow: hidden;
    font: 700 12.5px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #00689c;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Bouton de retour : pastille avec une flèche dans un rond */
body > .bandeau .bandeau-retour {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 5px 16px 5px 5px;
    color: #002e80;
    background: linear-gradient(180deg, #ffffff, #c6ecff);
    border: 1px solid #005f91;
    border-radius: 999px;
    box-shadow: inset 0 1px 1px #ffffff, 0 2px 6px #003c5f29;
    font: 400 17px/1 haritzaga, Arial, sans-serif;
    letter-spacing: .03em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body > .bandeau .bandeau-retour svg {
    display: block;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 7px;
    box-sizing: border-box;
    border-radius: 50%;
    color: #fff;
    background: #00689c;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: background .18s ease, transform .18s ease;
}

body > .bandeau .bandeau-retour span {
    font: inherit;
    letter-spacing: inherit;
}

body > .bandeau .bandeau-retour:hover,
body > .bandeau .bandeau-retour:focus-visible {
    color: #006615;
    background: linear-gradient(180deg, #ffffff, #d8ffd9);
    border-color: #006615;
    box-shadow: inset 0 1px 1px #ffffff, 0 3px 10px #00661533;
    outline: none;
}

body > .bandeau .bandeau-retour:hover svg,
body > .bandeau .bandeau-retour:focus-visible svg {
    background: #006615;
    transform: translateX(-3px);
}

body > .bandeau a:focus-visible {
    outline: 3px solid #0b5d4580;
    outline-offset: 2px;
}

/* Grands écrans : un peu plus grand, comme le nom du chœur sur l'accueil. */
@media all and (min-width: 1024px) {
    body > .bandeau {
        padding: 8px 22px;
    }

    body > .bandeau .bandeau-marque img {
        width: 48px;
        height: 48px;
    }

    body > .bandeau .bandeau-titres strong {
        font-size: 37px;
    }

    body > .bandeau .bandeau-titres span {
        font-size: 13.5px;
    }

    body > .bandeau .bandeau-retour {
        padding: 6px 18px 6px 6px;
        font-size: 19px;
    }

    body > .bandeau .bandeau-retour svg {
        width: 32px;
        height: 32px;
    }
}

@media all and (max-width: 640px) {
    html {
        scroll-padding-top: 64px;
    }

    body > .bandeau {
        gap: 8px;
        padding: 6px 10px;
        border-radius: 0 0 12px 12px;
    }

    body > .bandeau .bandeau-marque {
        gap: 8px;
    }

    body > .bandeau .bandeau-marque img {
        width: 36px;
        height: 36px;
    }

    body > .bandeau .bandeau-titres strong {
        font-size: 25px;
    }

    body > .bandeau .bandeau-titres span {
        font-size: 11px;
        letter-spacing: .06em;
    }

    body > .bandeau .bandeau-retour {
        gap: 6px;
        padding: 4px 11px 4px 4px;
        font-size: 15px;
    }

    body > .bandeau .bandeau-retour svg {
        width: 27px;
        height: 27px;
        padding: 6px;
    }
}

/* Petits téléphones : on resserre encore pour que tout tienne sur une ligne. */
@media all and (max-width: 380px) {
    body > .bandeau {
        gap: 6px;
        padding: 6px 8px;
    }

    body > .bandeau .bandeau-marque {
        gap: 6px;
    }

    body > .bandeau .bandeau-marque img {
        width: 32px;
        height: 32px;
    }

    body > .bandeau .bandeau-titres strong {
        font-size: 21px;
    }

    body > .bandeau .bandeau-titres span {
        font-size: 10px;
        letter-spacing: .02em;
    }

    body > .bandeau .bandeau-retour {
        gap: 5px;
        padding: 3px 9px 3px 3px;
        font-size: 13.5px;
    }

    body > .bandeau .bandeau-retour svg {
        width: 25px;
        height: 25px;
    }
}
