.lgo-ateliers {
    font-family: 'Montserrat', sans-serif;
    color: #111;
}

.lgo-ateliers-mois {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 600;
    text-transform: uppercase;      /* MAJUSCULES */
    color: #616E47;
    margin: 34px 0 26px;
}

/* Sous-titre sous le titre du mois */
.lgo-ateliers-subtitle {
    margin-top: -25px;       /* rapproche du titre */
    margin-bottom: 20px;   /* espace avant les cartes */
    font-style: italic;
    font-size: 14px;
    color: #555;
}

.lgo-ateliers-cartes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.lgo-ateliers-carousel .lgo-carousel-track {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
}

.lgo-atelier-media {
    position: relative;
}

.lgo-atelier-card {
    border: 1px solid #e6e6e6;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    min-width: 240px;
}

.lgo-atelier-trigger {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border: none !important;
}

.lgo-atelier-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFF8D;
    color: #000;
    text-align: center;
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    z-index: 2;
}

.lgo-atelier-title {
    font-size: 20px;
    margin: 16px;
}

.lgo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lgo-modal[hidden] {
    display: none;
}

.lgo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.lgo-modal-dialog {
    position: relative;
    background: #fff;
    max-width: 640px;
    width: min(90vw, 640px);
    max-height: 80vh;
    overflow: auto;
    padding: 24px;
    border-radius: 16px;
    z-index: 1;
}

.lgo-modal-close {
    border: none;
    background: #616E47 !important;
    color: #fff;
    padding: 8px 12px;
    Border: none !important;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 16px;
}

.lgo-modal-content {
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
}

.lgo-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.lgo-carousel-prev,
.lgo-carousel-next {
    border: 1px solid #111;
    background: #fff;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
}

@media (max-width: 640px) {
    .lgo-ateliers-mois {
        font-size: 30px;
        padding-left: 1em;
        padding-right: 1em;
    }

    .lgo-atelier-title {
        font-size: 18px;
    }

    .lgo-ateliers-anchor {
        scroll-margin-top: 76px; /* mobile */
    }


    .lgo-ateliers-cartes {
        grid-template-columns: 1fr; /* 1 seule colonne */
        padding-left: 1em;
        padding-right: 1em;
    }

    /* Sous-titre sous le titre du mois */
    .lgo-ateliers-subtitle {
        margin-top: -10px;       /* rapproche du titre */
        margin-bottom: 20px;   /* espace avant les cartes */
        font-style: italic;
        font-size: 14px;
        color: #555;
        padding-left: 2em;
        padding-right: 2em;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {

    .lgo-ateliers-mois {
        font-size: 34px;
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .lgo-atelier-title {
        font-size: 19px;
    }

    .lgo-ateliers-cartes {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes tablette */
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

}

/* ======================================================
   Boutons sous les ateliers (par mois)
   Classes HTML :
   - lgo-btn lgo-btn-inscription
   - lgo-btn lgo-btn-questionnaire
   ====================================================== */

/* Wrapper des 2 boutons (si tu l’as dans le HTML) */
.lgo-ateliers-actions {
    margin: 32px 0 48px;     /* espace après les cartes */
    display: flex;
    flex-direction: column;  /* l’un sous l’autre */
    align-items: center;     /* centrés */
    gap: 14px;               /* espace entre les deux boutons */
}

/* Base bouton (commune) */
.lgo-btn {
    display: block;                 /* important pour largeur identique */
    width: 420px;                   /* largeur fixe commune */
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;      /* MAJUSCULES */
    text-decoration: none;
    padding: 16px 24px;             /* plus large / plus confortable */
    border-radius: 0;               /* pas d’arrondi */
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    background: #FFFF8D;
    color: #000000 !important;                    /* TEXTE NOIR */
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.lgo-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.lgo-btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* Variantes (conservées pour évolution future) */
.lgo-btn-inscription {
    background: #FFFF8D;
    color: #000000;
}

.lgo-btn-questionnaire {
    background: #FFFF8D;
    color: #000000;
}

/* ======================================================
   Bouton inscription dans la modale atelier
   ====================================================== */

.lgo-modal-actions {
    margin-top: 12px;        /* aération avec le contenu */
    padding-top: 16px;
    text-align: left !important;
}

.lgo-modal-actions .lgo-btn {
    width: 100%;
    max-width: 300px;        /* cohérent avec les boutons mensuels */
    margin-left: 0;     /* force l’alignement à gauche */
    margin-right: auto; /* empêche le centrage implicite */
}

.lgo-ateliers-anchor {
    scroll-margin-top: 150px;
}

/* ======================================================
   Séparation visuelle entre les mois (M / M+1)
   ====================================================== */

.lgo-ateliers-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 64px 0 48px;
}

/* ======================================================
   SUPPRESSION DU HOVER / FOCUS VIOLET SUR LES CARTES
   ====================================================== */

/* Empêche tout effet visuel parasite au survol */
.lgo-atelier-trigger:hover,
.lgo-atelier-trigger:focus,
.lgo-atelier-trigger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Empêche les effets hérités sur les enfants */
.lgo-atelier-trigger:hover *,
.lgo-atelier-trigger:focus *,
.lgo-atelier-trigger:focus-visible * {
    outline: none !important;
    box-shadow: none !important;
}

/* ======================================================
   MASQUER LE BOUTON DANS LA MODALE (temporaire)
   ====================================================== */

.lgo-modal-actions {
    display: none;
}
