/* ==========================================================================
   1. BASE & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root { --blue: #1652A1; --blue-light: #2b95ff; --red: #d3011c; --gray-bg: #F1F1F8; --text: #333; }
body { font-family: 'Poppins', sans-serif; color: var(--text); margin: 0; -webkit-font-smoothing: antialiased; }
.container-main { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.container-small { max-width: 900px; margin: 0 auto; padding: 100px 15px; }
.container-small h1 { margin-bottom: 60px !important; }


/* ==========================================================================
   2. HEADER DESKTOP (PC)
   ========================================================================== */

/* Classe utilitaire universelle */
.avatar-circle { 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    object-position: center; 
    border-radius: 50%; 
    border: 2px solid #2b95ff; 
}

/* ==========================================================================
   3. SECTIONS CONTENU (Hero, Search, CTA)
   ========================================================================== */

/* --- CONFIGURATION GLOBALE --- */
html { scroll-behavior: smooth !important; }
#liste-lotos { scroll-margin-top: 80px; }

#formRecherche {
    display: block;        /* S'assure qu'il se comporte comme un bloc */
    margin-left: auto;     /* Pousse la marge gauche au maximum */
    margin-right: auto;    /* Pousse la marge droite au maximum */
    width: fit-content;    /* S'adapte à son contenu intérieur */
    max-width: 100%;       /* L'empêche de déborder sur les petites tablettes */
}

.hero-search { 
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/images/fond_hero_search.jpg') no-repeat center center;
    background-size: cover;
    color: white; text-align: center;
    margin-top: 1px;
}
.hero-search h1 { font-size: 25px; font-weight: 600; margin-bottom: 60px; margin: 10px;}
/* Le conteneur reste identique */
.input-box { 
    background: white; border-radius: 12px; height: 45px; display: flex; position: relative;
    align-items: center; padding: 0 15px; width: 100%; box-sizing: border-box;
}
/* On cible maintenant directement votre classe .input-recherche */
/* On garde .input-box select si vous avez encore des menus déroulants ailleurs */
.input-recherche,.input-box select {
    width: 100%; height: 100%; padding: 0 10px 0 40px; border-radius: 8px; border: none; font-size: 14px;
    outline: none; /* Petit ajout pour éviter le contour bleu par défaut */
}
/* L'icône reste positionnée par rapport à .input-box */
.icon-input { 
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--red);
    z-index: 1; /* S'assure que l'icône reste au-dessus de l'input */
}
.input-box input { outline: none; font-family: inherit; color: #333; background: transparent; }
.search-pyramid { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; }
.search-row { 
    display: flex; flex-direction: row; align-items: flex-start; justify-content: center;
    gap: 15px; width: 100%;
}
.search-group { width: 260px; display: flex; flex-direction: column; gap: 10px; }
.count-txt { color: white; margin-top: 15px; font-size: 14px; }
.count-txt a { text-decoration: none !important; color: white; }
.count-txt a:hover { text-decoration: none !important; border-bottom: 1px solid white; }

.search-actions { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.submit-search {
    background: var(--red); color: white; border: none; padding: 12px 30px; border-radius: 50px;
    font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase;
    font-size: 14px; font-weight: 700;
}
.submit-search:hover { background: #9B0115; }

/* --- SECTION CTA --- */
/* Le conteneur qui remonte sur la section Hero */
/* On cible spécifiquement la section qui suit la recherche */
.hero-search + .gray-bg-section { padding-top: 0 !important; /* On retire le padding du haut pour coller au hero */ }
/* On fait remonter le container interne uniquement dans cette section */
.hero-search + .gray-bg-section .container-main { margin-top: -120px; z-index: 10; }

.cta-section { padding: 50px 0; }
.cta-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.cta-text { font-size: 18px; color: #333; margin: 0; }
.btn-cta {
    background-color: var(--red); color: white; border: none; padding: 12px 25px; border-radius: 8px;
    font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px;
    cursor: pointer; text-decoration: none
}
.btn-cta:hover { background-color: var(--blue); }

    /* --- DIAPORAMA --- */
.ad-slider-container {
    width: 100%; max-width: 810px; height: auto; aspect-ratio: 810 / 98; margin: 0 auto 25px auto;
    overflow: hidden; background: #f1f5f9; position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.slider-track { display: flex; transition: transform 0.5s ease-in-out; height: 100%; }
.ad-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ad-slide img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   4. RÉSULTATS (Affichage en Liste PC)
   ========================================================================== */

/* --- LAYOUT 2 COLONNES --- */
/* ================= LAYOUT PRINCIPAL ================= */

.main-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: flex-start;
    width: 100%;
}

.lotos-content {
    flex: 2;
    min-width: 0;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: var(--blue);
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* PUBS */

.sidebar-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-ad-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.ad-sidebar-item { display: flex; justify-content: center; margin-bottom: 20px; width: 100%; }
.ad-sidebar-item img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

@media (max-width: 1024px) {

    .main-layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

}

/* --- MASQUER LA SIDEBAR SUR PETITS ÉCRANS (TABLETTES/MOBILES) --- */
@media screen and (max-width: 1024px) {

    .lotos-content {
        flex: 1; /* Permet aux lotos de prendre toute la largeur disponible */
        width: 100% !important;
    }
    


    /* 1. Sécurité pour le conteneur parent */
    .ad-slider-container {
        width: 100vw !important; /* Prend la largeur exacte de la fenêtre */
        max-width: 100% !important;
        position: relative !important;
        left: 0 !important;
        margin: 0 auto 20px auto !important;
        overflow: hidden !important; /* Coupe ce qui dépasse */
        display: block !important; /* On repasse en block pour plus de stabilité */
        text-align: center !important;
    }

    /* 2. On empêche la piste de se décaler */
    .slider-track {
        display: inline-block !important; /* Permet au text-align: center de fonctionner */
        width: auto !important;
        max-width: 100% !important;
        transform: none !important; /* Annule les décalages JS */
        white-space: nowrap; /* Garde les slides sur une ligne si besoin */
    }

    /* 3. On force l'image à rester dans le cadre */
    .ad-slide {
        display: inline-block !important;
        width: 100% !important;
        vertical-align: top;
    }

    .ad-slide img {
        max-width: 95% !important; /* On laisse 5% de marge pour la sécurité */
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
        box-sizing: border-box;
    }
}



    .list-results {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .card-event-list {
        background: white;
        border-radius: 12px;
        display: flex;
        align-items: stretch;
        margin-bottom: 20px; /* C'est cette ligne qui crée l'espace entre les lotos */
        padding: 15px 25px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-bottom: 4px solid var(--red);
        transition: transform 0.2s ease;
    }

/* ===== STYLE CALENDRIER DATE BLOCK ===== */

.date-block{
    width:70px;
    height: fit-content;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,0.12);
    border:1px solid #e5e7eb;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    margin-right: 30px;
    margin-top: 10px;
}

/* Bande du mois en haut */
.date-block .month{
    order:1;
    background:#dc2626; /* rouge */
    color:#fff;
    width:100%;
    text-align:center;
    font-size:13px;
    font-weight:700;
    padding:6px 0;
}

/* Jour */
.date-block .day{
    order:2;
    font-size:26px;
    font-weight:800;
    color:#1e293b;
    padding:12px 0 2px;
    line-height:1;
}

/* Nom du jour */
.date-block .day-name{
    order:3;
    font-size:12px;
    color:#64748b;
    padding-bottom:6px;
}



    .info-block {
        flex: 1;
        padding: 0 30px;
        display: flex;
        flex-direction: column;
    }

    .info-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .dept-city {
        font-size: 13px;
        color: var(--blue);
        font-weight: 700;
    }

    .venue-time {
        font-size: 13px;
        color: #666;
        font-style: italic;
    }

    .info-block h3 {
        font-size: 18px;
        margin: 8px 0;
        color: #000;
        font-weight: 700;
    }
    

       /* ==========================================================================
   5. FOOTER
   ========================================================================== */

   /* --- STYLES DU FOOTER --- */
.main-footer {
    background: #FFFFFF;
    color: #000000;
    padding: 60px 0 0;
    border-top: 1px solid #d1d7e0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    justify-items: center; /* ← on ajoute juste ça */
}

.footer-logo { height: 90px; margin: 0 auto 25px; display: block; }

.footer-nav a.nav-bold {
    display: block;
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.2s;
    text-align: center;
    padding-top: 15px;
}

.btn-write-outline {
    display: block;
    width: fit-content;
    margin: 0px auto 0;
    background-color: #ffffff;
    border: 1px solid #1652A1;
    padding: 4px 25px !important;
    border-radius: 15px;
    color: #000000 !important;
    font-weight: 400;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-write-outline:hover {
    background: #1652A1;
    color: #ffffff !important;
    border: 1px solid #1652A1;
}

.footer-socials { display: flex; gap: 20px; justify-content: center; }
.footer-socials a { font-size: 1.4rem; color: #000000; }
    .main-footer {
        background-color: white;
        padding: 60px 0 20px;
        border-top: 1px solid #eee;
    }

    .footer-col h4 {
        font-weight: 700;
        font-size: 16px;
        color: #000;
        margin-top: 0;
    }

    .footer-logo {
        height: 70px;
        margin-bottom: 20px;
        display: block;
    }

    .footer-socials {
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .footer-socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background-color: #000;
        color: #fff !important;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .footer-socials a:hover {
        background-color: var(--blue-light);
        transform: scale(1.1);
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center; /* centre les boutons dans la colonne */
        gap: 12px;
        width: fit-content;
        margin: 0 auto;
    }

    /* bouton */
    .btn-contact {
        display: grid;
        grid-template-columns: 26px 1fr; /* colonne icône fixe */
        align-items: center;
        padding: 8px 14px;
        border-radius: 25px;
        border: 1px solid white;
        color: white;
        text-decoration: none !important;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.25s ease;
    }

    /* icône */
    .btn-contact i {
        text-align: center;
        font-size: 14px;
    }

    /* texte */
    .btn-contact span {
        text-align: center;
    }

    .btn-contact:hover { background-color: white; color: var(--blue); }

    .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centre horizontalement */
    justify-content: center;
    text-align: center;
    }

    .footer-col a {
        text-decoration: none;
        color: #000;
        transition: color 0.3s;
    }

    .footer-col:nth-child(2) a {
        font-weight: 700;
        font-size: 16px;
    }

    .footer-col:nth-child(2) a:hover {
        color: var(--blue);
    }

    .footer-col:nth-child(3) a:not(.btn-contact) {
        font-weight: 400;
        font-size: 14px;
        text-align: center;
    }

    .footer-col:nth-child(3) a:not(.btn-write):hover {
        text-decoration: underline;
        align-items: center;
    }

    .btn-write {
        display: inline-block;
        border: 1px solid #000 !important;
        padding: 4px 25px;
        border-radius: 20px;
        margin-top: 5px;
        font-weight: 700 !important;
        width: fit-content;
        align-self: center;
    }

    .btn-write:hover {
        background-color: var(--blue);
        border-color: var(--blue) !important;
        color: #fff !important;
    }

    /* ==========================================================================
   6. INSCRIPTION & COMPTE
   ========================================================================== */
    .header-title-blue {
        background: linear-gradient(to right, #1652A1, #2b95ff);
        padding: 35px 0;
        text-align: center;
        color: white;
        margin-bottom: 40px;
    }

        .header-title-blue h1 {
            font-size: 32px;
            font-weight: 800;
            margin: 0;
            letter-spacing: 0.5px;
        }

    .auth-card {
        background: white;
        border-radius: 15px;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        max-width: 1100px;
        margin: 0 auto 30px;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 60px;
    }

    .form-group {
        margin-bottom: 20px;
    }

        .form-group label {
            display: block;
            font-weight: 500;
            margin-bottom: 8px;
            color: #333;
            font-size: 15px;
        }

    .input-with-icon {
        position: relative;
        display: flex;
        align-items: center;
    }

        .input-with-icon input {
            width: 100%;
            padding: 12px 45px 12px 20px;
            border: 1px solid #dce0e5;
            border-radius: 30px;
            font-size: 15px;
            outline: none;
            transition: all 0.3s ease;
            background-color: #fff;
        }

            .input-with-icon input:focus {
                border-color: var(--blue-light);
                box-shadow: 0 0 0 3px rgba(43, 149, 255, 0.1);
            }

        .input-with-icon i {
            position: absolute;
            right: 20px;
            color: #444;
            font-size: 18px;
        }

    .help-text {
        display: block;
        font-size: 12px;
        color: #777;
        font-style: italic;
        margin-top: 8px;
        text-align: right;
    }

    .form-checkbox {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .form-checkbox input {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--blue-light);
        }

        .form-checkbox label {
            font-weight: 700;
            font-size: 16px;
            color: #000;
            cursor: pointer;
        }

    .role-selection {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #f0f0f0;
        text-align: center;
    }

        .role-selection p {
            font-weight: 700;
            margin-bottom: 15px;
        }

    .role-options {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .role-radio {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 600;
    }

        .role-radio input {
            width: 20px;
            height: 20px;
            accent-color: var(--blue);
        }

    .form-footer {
        text-align: center;
        margin-top: 40px;
    }

    .btn-register {
        background-color: #2b95ff;
        color: white;
        border: none;
        padding: 14px 50px;
        border-radius: 50px;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 15px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(43, 149, 255, 0.3);
    }

        .btn-register:hover {
            background-color: #1652A1;
            transform: translateY(-2px);
        }

    .privacy-notice {
        max-width: 1100px;
        margin: 50px auto;
        padding: 0 15px;
        color: #333;
    }

        .privacy-notice h3 {
            font-size: 20px;
            font-weight: 800;
            margin-bottom: 15px;
            text-decoration: none;
        }

        .privacy-notice p {
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 15px;
            font-weight: 400;
        }

        .privacy-notice a {
            color: inherit;
            text-decoration: underline;
        }

    .legal-links {
        font-size: 14px;
        margin-top: 25px;
    }

    .alert-success-register {
        background-color: #ecfdf5;
        border: 1px solid #10b981;
        border-radius: 12px;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        max-width: 500px;
        margin: 0 auto 30px;
        animation: slideDown 0.5s ease-out;
    }

    .alert-icon {
        color: #10b981;
        font-size: 24px;
    }

    .alert-text strong {
        display: block;
        color: #065f46;
    }

    .alert-text p {
        margin: 0;
        color: #047857;
        font-size: 14px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .alert-error-form {
        background-color: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
        padding: 15px 20px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 1000px;
        margin: 0 auto 25px;
        font-weight: 500;
        font-size: 15px;
        animation: shake 0.4s ease-in-out;
    }

    @keyframes shake {
        0%, 100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }
    /* ==========================================================================
   7. FOOTER
   ========================================================================== */
    /* Layout Mon Compte */
    .dashboard-layout {
        display: flex;
        gap: 30px;
        padding: 30px 0;
    }

    .dashboard-content {
        flex: 2;
    }
    /* 2/3 */
    .dashboard-sidebar {
        flex: 1;
        position: sticky;
        top: 20px;
        height: fit-content;
    }
    /* 1/3 sticky */

        /* Bannière */
.user-banner-blue {
    background: #004691; background-image: linear-gradient(135deg, #004691 0%, #2b95ff 100%);
    color: white; padding: 25px 0;
}
.user-banner-blue h1 { font-size: 1.8rem; font-weight: 800; margin: 0; }
    .info-recherche {
    background: #f0f7ff; 
    color: #1e40af; 
    padding: 30px 15px; 
    border-radius: 8px; 
    font-size: 0.9rem; /* Taille normale sur PC */
    border-left: 4px solid #2b95ff; 
    margin-bottom: 20px;
    text-align: center;
}
    /* Cartes (Mes évènements / Favoris) */
    .account-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        margin-bottom: 20px;
        overflow: hidden;
    }

    .card-header {
        background: #f8fafc;
        padding: 15px 20px;
        font-weight: bold;
        border-bottom: 1px solid #edf2f7;
    }

    .card-body {
        padding: 20px;
        color: #64748b;
    }
    /* Sidebar Design */
    .btn-sidebar-action {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #2b95ff;
        color: white;
        padding: 15px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .sidebar-box {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
    }

    .sidebar-header {
        background: #2b95ff;
        color: white;
        padding: 10px 15px;
        font-size: 0.85rem;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
    }

    .sidebar-body {
        padding: 15px;
        text-align: center;
    }


    /* Mobile Adaptability */
    @media (max-width: 992px) {


        .container-small h1 { margin-bottom: 50px !important; font-size: 0.75rem !important;}
        .container-small { padding: 40px 15px 100px; }
        .dashboard-layout {
            flex-direction: column;
        }

        .dashboard-sidebar {
            order: 2;
            position: static;
        }

                /* Bannière */
        .user-banner-blue { text-align: center; padding: 15px 5px; }
        .user-banner-blue h1 { font-size: 1rem; }
    }
    /* ==========================================================================
   8. RESPONSIVE & MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
    .ad-slider-container {
        /* On force la sortie du container-main */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        
        /* On retire les arrondis si vous en aviez pour un look plein écran */
        border-radius: 0;
        margin-top: 10px;
        margin-bottom: 25px;
    }

    .ad-slide img {
        width: 100%;
        height: auto;
        border-radius: 0; /* Image bord à bord */
    }
}
  
    .header-mobile {
        display: none;
    }

    .mobile-nav-links {
        display: none;
    }




    @media (max-width: 900px) {

        /* 1. Ton bloc principal (on ne change rien à ta structure) */
    #formRecherche {
        margin-top: -100px;
        position: relative;
        z-index: 10;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 95%;
        max-width: 600px;
    }

    /* 2. On force les éléments internes à se centrer */
    #formRecherche .search-row {
        display: flex;
        flex-direction: column; /* On empile pour la tablette */
        align-items: center;    /* Centre horizontalement les inputs */
        width: 100%;
        gap: 15px;             /* Espace entre les champs */
        padding-top: 80px;
    }

    /* 3. On s'assure que les groupes d'input occupent bien la largeur */
    #formRecherche .search-group, 
    #formRecherche .search-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 1. On donne de l'espace au titre pour qu'il ne soit pas recouvert */
    .hero-search h1 {
        position: relative;
        z-index: 5;          /* S'assure qu'il reste visible */
        margin-bottom: 10px; /* Crée un "trou" pour accueillir le formulaire qui remonte */
        text-align: center;
    }

    /* 4. On force les inputs et le bouton à être centrés et larges */
    #formRecherche .input-box,
    #formRecherche .select-recherche,
    #formRecherche .submit-search {
        width: 100%;           /* Prend toute la largeur du max-width (600px) */
        max-width: 500px;      /* Pour garder un look sympa sur tablette */
    }

        .header-mobile {
            background-color: #004691;
            padding: 0px 0;
            display: block;
            position: sticky;
            top: 0;
            z-index: 2000;
        }

            nav.mobile-nav-links {
                background-color: #004691;
                width: 100%;
                min-height: 45px;
                justify-content: center;
                align-items: center;
                gap: 15px;
                padding: 2px 0;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }
            .mobile-nav-links.active{
    display:flex;
    flex-direction:column;   /* 👈 VERTICAL */
}

        .mobile-nav-links a {
            color: white;
            text-decoration: none;
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
        }

        .mobile-nav-links .sep {
            color: white;
            font-size: 18px;
            font-weight: 300;
            opacity: 0.6;
            display: flex;
            align-items: center;
        }

        .mobile-nav-links a:nth-child(3) {
            font-weight: 900;
        }

/* NEWSLETTER */

.mobile-newsletter-btn{
    background:#ffd700 !important;
    color:#000 !important;
    margin:20px;
    border-radius:8px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}


        .hero-search {
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/images/fond_hero_search.jpg') no-repeat center center;
    background-size: cover;
        }

        .search-pyramid {
            flex-direction: column;
            gap: 15px;
            align-items: center;
        }

        .search-group {
            width: 100%;
            max-width: 350px;
        }

        .range-wrapper {
            position: static;
            margin-top: 10px;
            color: white;
            justify-content: center;
        }

        .cta-section {
            padding: 15px 0;
        }
    
    /* La boîte d'appel à l'action */
    .cta-box {
        margin-top: 50px !important;
        padding: 15px !important;
        flex-direction: column; /* On empile texte et bouton pour gagner de la place */
        text-align: center;
        gap: 15px;
    }

    .cta-box h2 {
        font-size: 0.85rem !important; /* Titre réduit */
    }

    .cta-box p {
        font-size: 0.75rem !important; /* Sous-titre réduit */
        margin-top: 2px !important;
    }

    .cta-box .btn-cta {
        font-size: 0.7rem !important;  /* Texte bouton réduit */
        padding: 10px 20px !important; /* Bouton plus facile à cliquer mais texte petit */
        width: 100%; /* Le bouton prend toute la largeur sur mobile pour le pouce */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Titre principal de la liste des lotos */
    .page-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }



        .card-event-list {
            flex-direction: row;
            padding: 10px;
            gap: 10px;
        }



  .date-block{
    margin-right: 6px;   /* un peu moins large en mobile */
    margin-top:4px;
    width: 60px;;
  }

  /* Bande rouge moins haute */
  .date-block .month{
    font-size:11px;
    padding:3px 0;
  }

  /* Chiffre du jour plus centré et compact */
  .date-block .day{
    font-size:20px;
    padding:6px 0 2px;   /* réduit la hauteur blanche */
  }

  /* Nom du jour rapproché */
  .date-block .day-name{
    font-size:10px;
    padding-bottom:4px;
  }


        .info-block {
            padding: 0;
            flex: 1;
        }

            .info-block h3 {
                font-size: 15px;
                margin: 2px 0 0 0;
                line-height: 1.2;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

        .dept-city {
            font-size: 11px;
        }

        .venue-time, .organizer, .animator, .bottom-info {
            display: none !important;
        }

        .action-block {
            padding-left: 5px;
        }

        .btn-view {
            display: inline-block;
            width: auto;
            padding: 3px 10px;
            font-size: 10px;
            border-radius: 6px;
        }
 
    .main-footer {
        padding: 20px 0 15px !important;
    }
        .form-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .auth-card {
            padding: 20px;
        }
    }

    .mobile-nav-links.active{
    display:flex;
}
 /* ==========================================================================
   8. LAYOUT PRINCIPAL (2 COLONNES) - TOPLOTO
   ========================================================================== */

/* --- 1. CONFIGURATION DESKTOP --- */


.sidebar-widget h4 {
    margin-top: 0;
    font-size: 16px;
    color: var(--blue);
    border-bottom: 2px solid var(--gray-bg);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Le conteneur des pubs */
.sidebar-slider {
    display: flex;
    flex-direction: column;
}

/* On force l'espace sur le conteneur de la pub */
.sidebar-ad-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important; /* Sécurité si le gap échoue */
}

.sidebar-ad-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* --- 2. AJUSTEMENT MOBILE (Slider et Empilement) --- */
@media (max-width: 992px) {


    .ad-spacer {
        display: none !important;
    }

    .lotos-content {
        order: 1;
        width: 100% !important;
    }


} /* Cette accolade ferme le @media (max-width: 992px) */

/* --- ALERTES --- */
.alert-success-register, .alert-error-login, .alert-info-logout {
    animation: fadeInDown 0.5s ease-out;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
