#side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px; /* largeur du panneau */
    height: 100vh;
    background: #f7f7f7;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%); /* caché à gauche */
    transition: transform 0.35s ease;
    z-index: 9999; /* devant tout */
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

#side-panel.open {
    transform: translateX(0); /* panneau visible */
}

#side-panel.close {
    transform: translateX(-100%); /* panneau visible */
}

.button-close{
    position: absolute;
    top: 10px;
    right: 10px;

    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

figure {
    text-align: center;
}

img {
    border-radius: 15px;
}

h2 {
    margin-top: 38px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
}

h3 {
    background: #f2f2f2;
    padding: 8px 14px;
    border-left: 4px solid #81a3f6;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px; /* espace entre l’emoji et le texte */
    margin-bottom: 8px;
}

h3 .material-icons {
    font-size: 15px; 
}

.bouton-volant {
    text-decoration: none;
    display: inline-block;
    position: fixed;
    top: 8.5%; /* espace sous navbar */
    right: 20px; /* distance depuis la droite */
    z-index: 9999; /* passe devant tout */

    background: #004e98; /* couleur */
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 16px;
}

.bouton-volant:hover {
    background: #0056c7;
}

/* ---- Responsive Mobile ---- */
@media (max-width: 768px) {
    #side-panel {
        width: 85vw;         /* prend 85% de la largeur écran */
        max-width: 400px;    /* limite max */
        padding: 15px;
    }

    .bouton-volant {
        top: 11%;
        right: 10px;
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (max-width: 700px) {
    #side-panel {
        width: 92vw;
        max-width: none;
    }

    .bouton-volant {
        top: 16%;
        font-size: 13px;
        padding: 7px 12px;
    }
}