/* rendezvous.css */



/* -------------------------------------------------- */
/*                STYLES GLOBAUX                      */
/* -------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    font-family: "Dancing Script", cursive;
    font-size: 18px;
    line-height: 1.5;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
}

/* -------------------------------------------------- */
/*                     EN-TÊTE                         */
/* -------------------------------------------------- */

.topbar {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.topbar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------- */
/*                       MENU                          */
/* -------------------------------------------------- */

nav {
    background: #fff;
    width: 100%;
    text-align: center;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

nav a:hover {
    color: blueviolet;
}

/* Sous-menu */

.sousmenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

nav > ul li:hover .sousmenu {
    display: block;
}

.sousmenu a {
    padding: 10px 15px;
    white-space: nowrap;
}

.sousmenu a:hover {
    background: #f0f0f0;
}

/* -------------------------------------------------- */
/*                CONTENEUR CALENDRIER                 */
/* -------------------------------------------------- */

.calendrier {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
}

/* Rendre l’iframe responsive */
.calendrier iframe {
    width: 100%;
    aspect-ratio: 4 / 3;   /* ratio idéal pour Google Calendar */
    border: 0;
}

/* -------------------------------------------------- */
/*                     PIED DE PAGE                    */
/* -------------------------------------------------- */

.site-footer {
    text-align: center;
    background: #e0e0e0;
    padding: 20px;
}

/* -------------------------------------------------- */
/*                     RESPONSIVE                      */
/* -------------------------------------------------- */

@media (max-width: 900px) {

    .trois-colonnes {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* --- MENU MOBILE --- */

    nav ul {
        flex-direction: column;   /* Menu vertical */
        align-items: stretch;     /* Prend toute la largeur */
        gap: 0;                   /* Pas d'espace entre les lignes */
        padding: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #ddd;
        text-align: left;
    }

    nav a {
        padding: 12px 15px;
        font-size: 16px;
        display: block;
        width: 100%;
    }

    /* Sous-menu en mobile */
    .sousmenu {
        position: static;         /* Plus de position absolue */
        display: none;            /* Caché par défaut */
        border-top: 1px solid #eee;
        box-shadow: none;
        padding-left: 20px;       /* Décalage visuel */
    }

    nav > ul li:hover .sousmenu {
        display: block;           /* Affichage au toucher */
    }

}