/*
Theme Name: CMPPA from 2025
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Template: twentytwentyfive
Author: Thomas Vuillermet
Author URI: tvuillermet.com
Description: Twenty Twenty-Five for CMPPA
Tags: one-column,custom-colors,custom-menu,custom-logo,editor-style,featured-images,full-site-editing,block-patterns,rtl-language-support,sticky-post,threaded-comments,translation-ready,wide-blocks,block-styles,style-variations,accessibility-ready,blog,portfolio,news
Version: 1.0.1739214939
Updated: 2025-02-10 20:15:39
*/nav.custom-menu {
    padding: 10px 20px;
    position: relative;
}

/* Menu standard pour desktop */
nav.custom-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

nav.custom-menu a {
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: background 0.3s, transform 0.2s;
    color: #333; /* Couleur du texte, à ajuster selon votre design */
}

nav.custom-menu a:hover {
    transform: translateY(-2px);
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001; /* Au-dessus du menu */
}

/* Responsive - Menu coulissant */
@media screen and (max-width: 768px) {
    nav.custom-menu {
        padding: 10px;
    }
    
    /* Menu qui coulisse depuis la droite */
    nav.custom-menu ul {
        display: block;
        position: fixed;
        top: 0;
        right: -750px; /* Caché à droite */
        width: 250px;
        height: 100vh;
        background-color: #fff; /* Fond du menu */
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        padding: 70px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.custom-menu ul li {
        margin-bottom: 15px;
        text-align: left;
    }
    
    nav.custom-menu a {
        display: block;
        font-size: 16px;
        padding: 10px;
        border-radius: 4px;
    }
    
    nav.custom-menu a:hover {
        background-color: #f5f5f5;
        transform: none;
    }
    
    /* Affiche l'icône du menu */
    .menu-icon {
        display: block;
		position: fixed;
		top: 70px;
		right: 70px;
    }
    
    /* Affiche le menu quand la case est cochée */
    #menu-toggle:checked ~ ul {
        right: 0; /* Faire apparaître le menu */
    }
    
    /* Style pour le bouton de déconnexion */
    .button-espace-membre a {
        background-color: #f44336; /* Rouge pour déconnexion */
        color: white;
    }
    
    /* Overlay semi-transparent quand le menu est ouvert */
    #menu-toggle:checked ~ .menu-overlay {
        display: block;
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
}