/* css/menu.css — barre de menu en relief, couleurs d'origine */

.barre-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
    margin: 1rem auto 0;
    padding: .7rem 1.1rem;
    background: linear-gradient(180deg, #8fffff 0%, aqua 45%, #00c9c9 100%);
    border: 1px solid rgba(255, 255, 255, .6);
    border-bottom: 3px solid #00a3a3;
    border-radius: var(--rayon);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .8),    /* reflet sur l'arête haute */
        0 10px 24px rgba(0, 0, 0, .55),           /* ombre portée sur le fond sombre */
        0 2px 0 rgba(0, 0, 0, .25);
}

/* Logo accueil */
.menu_icone { flex: 0 0 auto; width: auto; line-height: 0; }
.img_menu {
    display: block;
    width: auto;
    height: 46px;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .6);
    transition: transform .2s, box-shadow .2s;
}
.menu_icone:hover .img_menu {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .45), 0 0 0 1px #fff;
}

.barre-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Boutons : pastilles bombées #FFDC9D */
.menu-lien {
    display: inline-block;
    padding: .55rem 1rem;
    color: #000;
    font: 600 .9rem/1.2 Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffe8bd 0%, #FFDC9D 55%, #f5cb80 100%);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .8),
        0 3px 0 #b8892f,                           /* épaisseur du bouton */
        0 5px 10px rgba(0, 0, 0, .35);
    transition: transform .15s, box-shadow .15s, background .2s;
}

.menu-lien:hover,
.menu-lien:focus-visible {
    color: #000;
    background: linear-gradient(180deg, #ffe2a6 0%, #ffd27a 55%, #f2bd62 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .8),
        0 5px 0 #b8892f,
        0 10px 18px rgba(0, 0, 0, .4);
    outline: none;
}

/* Effet « appui » */
.menu-lien:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 1px 0 #b8892f;
}

/* Page active : bouton enfoncé, dans la teinte du survol */
.menu-lien.actif {
    color: #000;
    background: linear-gradient(180deg, #f2bd62 0%, #ffd27a 100%);
    border-color: rgba(0, 0, 0, .25);
    transform: translateY(2px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 2px #fff;
}

/* ---------- Burger (mobile) ---------- */
.burger {
    display: none;
    width: 100%;
    box-sizing: border-box;
    margin: 1rem 0 0;
    padding: .8rem 1rem;
    color: #fff;
    font: 700 1.1rem Arial, sans-serif;
    letter-spacing: .05em;
    background: linear-gradient(180deg, #2a2a2a, #000);
    border: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 3px solid aqua;
    border-radius: var(--rayon);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 8px 18px rgba(0, 0, 0, .5);
    cursor: pointer;
}

@media (max-width: 900px) {
    .burger { display: block; }

    .barre-menu { display: none; flex-direction: column; margin-top: .6rem; }
    .barre-menu.show { display: flex; }

    .barre-menu ul { flex-direction: column; width: 100%; }
    .menu-lien { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .menu-lien, .img_menu { transition: none; }
}