:root {
    --apce-bg-page: #38384C;
    --apce-bg-container: #1e1e26;
    --apce-bg-card: #2d2d3d;
    --apce-bg-inner: #14141a;
    --apce-border-card: 1px solid rgba(255, 255, 255, 0.06);
    --apce-border-inner: 1px solid rgba(255, 255, 255, 0.04);
    --apce-shadow-container: 0 12px 35px rgba(0, 0, 0, 0.4);
    --apce-shadow-card: 0 4px 15px rgba(0, 0, 0, 0.25);
    --apce-radius-container: 16px;
    --apce-radius-card: 8px;
    --apce-yellow: #FCD202;
    --apce-text-main: #ffffff;
    --apce-text-muted: #b0b0c5;
}

/* ==========================================================================
   💻 FIX RESPONSIVE ULTIME POUR LE MENU ASTRA (769px - 1200px)
   ========================================================================== */
@media screen and (min-width: 769px) and (max-width: 1200px) {

    /* 1. On interdit STRICTEMENT au texte de se couper en deux lignes dans un bouton */
    ul#ast-hf-menu-1.main-header-menu .menu-item > .menu-link {
        white-space: nowrap !important; /* Force le texte à rester sur une seule ligne */
        font-size: 13px !important;     /* On passe à 13px pour gagner les précieux pixels manquants */
        padding-left: 6px !important;   /* On resserre l'espace interne au maximum */
        padding-right: 6px !important;
    }

    /* 2. Le nom du site "philatélie-coulommiers" est très long ! */
    /* On réduit sa taille dans cette zone pour laisser le menu respirer */
    .site-title a {
        font-size: 18px !important; 
        white-space: nowrap !important;
    }
    
    /* 3. On réduit l'espace global entre les boutons du menu */
    ul#ast-hf-menu-1.main-header-menu {
        flex-wrap: nowrap !important; 
        gap: 4px !important; 
    }

    /* 4. On réduit encore un poil la flèche de sous-menu */
    ul#ast-hf-menu-1.main-header-menu .dropdown-menu-toggle {
        padding-left: 2px !important;
    }
    ul#ast-hf-menu-1.main-header-menu .ast-arrow-svg {
        width: 10px !important;
    }
}



/* ==========================================================================
   🗺️ STYLISATION DES CARTES GOOGLE MAPS (RESPONSIVE)
   ========================================================================== */
.apce-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden; /* Pour que les coins de la carte soient arrondis proprement */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Un léger ombrage pour donner du relief */
    border: 2px solid #FCD202; /* Rappel de ton jaune fétiche autour de la carte */
}

.apce-map-container iframe {
    display: block;
    width: 100% !important;
}

/* Ajustement de la hauteur sur petit écran pour pas que la carte prenne tout l'écran du téléphone */
@media screen and (max-width: 768px) {
    .apce-map-container iframe {
        height: 300px !important;
    }
}


/* ==========================================================================
   📅 PAGE : NOS PROCHAINES RÉUNIONS
   ========================================================================== */

/* Structure en 2 colonnes (Contenu principal / Sidebar de la salle) */
.apce-reunions-grid {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.apce-reunions-main {
    flex: 2;
}

.apce-reunions-sidebar {
    flex: 1;
}

/* --- LES CATÉGORIES (Philatélie, Placomusophilie) --- */
.apce-reunions-main h2 {
    color: #FCD202;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(229, 230, 66, 0.2);
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* --- LES BLOCS DE RÉUNION --- */
.apce-reunion-card {
    background-color: var(--apce-bg-card);
    border-left: 4px solid var(--apce-yellow);
    border-radius: 0 var(--apce-radius-card) var(--apce-radius-card) 0;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--apce-shadow-card);
    border-top: var(--apce-border-card);
    border-right: var(--apce-border-card);
    border-bottom: var(--apce-border-card);
}

.apce-reunion-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.apce-reunion-date {
    color: var(--apce-yellow);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(229, 230, 66, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px dashed rgba(229, 230, 66, 0.3);
    text-align: right;
    white-space: nowrap;
}

/* --- L'ENCADRÉ DE LA SALLE (SIDEBAR) --- */
.apce-salle-box {
    background-color: var(--apce-bg-card);
    border: 1px dashed var(--apce-yellow);
    border-radius: var(--apce-radius-card);
    padding: 30px;
    position: sticky;
    top: 40px; /* Reste fixé à l'écran lors du défilement */
    text-align: center;
    box-shadow: var(--apce-shadow-card);
}

.apce-salle-box h3 {
    color: #FCD202;
    margin-top: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.apce-salle-box p {
    color: #f0f0f5;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.apce-salle-location {
    font-weight: bold;
    color: #ffffff;
}

.apce-salle-parking {
    font-size: 0.85rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* 📱 Version Mobile */
@media screen and (max-width: 900px) {
    .apce-reunions-grid {
        flex-direction: column;
    }
    .apce-reunion-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .apce-reunion-date {
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   📅 SECTION RÉUNIONS : LE VISUEL HABILLÉ (TYPE PANNEAU)
   ========================================================================== */

/* Conteneur principal pour isoler le visuel habillé */
.apce-reunions-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Le panneau habillé complet */
.apce-reunions-visual-wrapper {
    position: relative;
    width: 100%;
    max-height: 300px; /* Limite la hauteur pour pas que ça bouffe tout l'écran */
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Ombre douce et profonde */
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Effet sympa au survol : le panneau grossit et s'illumine */
.apce-reunions-visual-wrapper:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--apce-yellow); /* Rappel jaune signature */
}

/* L'image de fond (100% largeur, centrée) */
.apce-reunions-visual-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image proprement pour remplir le panneau */
    object-position: center; /* Centre le sujet de l'image */
    opacity: 0.9; /* Légère transparence pour donner du cachet */
}

/* Le bloc du titre : il se superpose proprement */
.apce-reunions-visual-title-block {
    position: relative;
    z-index: 2; /* Passe DEVANT l'image de fond */
    text-align: center;
    padding: 40px;
    
    /* Superbe dégradé de fond sombre semi-transparent */
    background: linear-gradient(135deg, rgba(45, 45, 61, 0.9) 0%, rgba(30, 30, 36, 0.7) 100%);
    
    border-radius: 6px;
    border: 2px dashed var(--apce-yellow); /* Bordure pointillée jaune style philatélie */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Le titre proprement dit */
.apce-reunions-visual-title-block h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--apce-yellow); /* Titre jaune signature APCE */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace; /* Police typewriter postal signature */
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3); /* Léger effet 3D */
}

/* 📱 Adaptation mobiles */
@media screen and (max-width: 768px) {
    .apce-reunions-visual-title-block {
        padding: 20px;
        margin: 0 10px;
    }
    .apce-reunions-visual-title-block h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}

.ast-header-account-text{
    color: #FCD202 !important;
}

.ast-header-account-text :hover{
    color: #FFFFFF !important;
}