/* ===================================
   TESTCIVIQUE - PAGE FORMATIONS
   Fichier: formation.css
   Description: Styles pour la page des formations avec carte interactive
   =================================== */

body {
    background-color: white;
}

main {
    padding-top: 80px !important;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.reveal-left {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.reveal-right {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    padding: 80px 24px 60px;
    text-align: center;
    background: white;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--logo-red);
    margin: 20px auto 0;
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===================================
   PILLARS SECTION (Split Design)
   =================================== */
.pillars-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 80px;
    position: relative;
}

/* Ligne décorative verticale au centre */
.pillars-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    transform: translateX(-50%);
}

.pillar {
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.4s ease;
    position: relative;
    border-radius: 20px;
}

.pillar:hover {
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-10px);
    z-index: 5;
}

.pillar-number {
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -30px;
    position: relative;
    z-index: 0;
    transition: 0.3s;
}

.pillar:hover .pillar-number {
    opacity: 0.2;
    transform: scale(1.1);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.pillar-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.pillar-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.pillar-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 350px;
    text-align: left;
    background: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.pillar:hover .pillar-features {
    border-color: var(--border);
    background: white;
}

.p-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Couleurs Spécifiques */
.civique .pillar-number,
.civique .pillar-title {
    color: var(--deep-blue);
}

.civique .p-dot {
    background: var(--cyan);
}

.tef .pillar-number,
.tef .pillar-title {
    color: #C73A3A;
}

.tef .p-dot {
    background: #C73A3A;
}

.btn-action-pillar {
    margin-top: 30px;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transform: translateY(10px);
}

.pillar:hover .btn-action-pillar {
    opacity: 1;
    transform: translateY(0);
}

.civique .btn-action-pillar {
    background: var(--text-main);
    color: white;
}

.tef .btn-action-pillar {
    background: white;
    border: 2px solid #C73A3A;
    color: #C73A3A;
}

.tef .btn-action-pillar:hover {
    background: #C73A3A;
    color: white;
}

/* ===================================
   SEPARATOR
   =================================== */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 40px;
    position: relative;
    background: white;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--text-main);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }
    100% {
        top: 18px;
        opacity: 0;
    }
}

/* ===================================
   LOCATOR (Propre et intégré)
   =================================== */
#locator {
    padding-bottom: 60px;
}

.locator-headline {
    text-align: center;
    margin-bottom: 40px;
}

.locator-headline h2 {
    font-size: 2.5rem;
}

.locator-wrapper {
    background: white;
    border: 1px solid var(--border);
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.1);
    border-radius: 24px;
    overflow: hidden;
}

/* LOCATOR LAYOUT */
.locator-wrapper {
    display: grid;
    grid-template-columns: 450px 1fr;
    height: 750px;
    position: relative;
}

/* SIDEBAR */
.centers-sidebar {
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    overflow-y: hidden;
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.sidebar-header h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.sidebar-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Tabs de filtres - visibles sur desktop aussi */
.mobile-filter-tabs {
    display: flex;
    gap: 10px;
    padding: 4px;
    background: #F1F5F9;
    border-radius: 12px;
    margin-bottom: 16px;
}

.filter-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    color: var(--text-muted);
}

.filter-tab.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: var(--text-main);
    font-family: 'Inter';
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--text-muted);
}

.centers-list {
    padding: 20px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    flex-grow: 1;
}

.center-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #E2E8F0 0%, #F1F5F9 100%) border-box;
}

.center-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--cyan) 0%, #0090ad 100%) border-box;
}

.center-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: block;
    color: var(--text-main);
}

.center-address {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
}

.center-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.c-tag {
    font-size: 0.7rem;
    background: #E0F2FE;
    color: #0369A1;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-contact-center {
    margin-top: 15px;
    width: 100%;
    padding: 11px;
    border: none;
    background: var(--deep-blue);
    color: var(--bg-white);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.btn-contact-center:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

/* Texte des boutons - par défaut texte complet visible */
.btn-text-short {
    display: none;
}

.btn-text-full {
    display: inline;
}

/* MAP */
.map-frame {
    background-color: #E5E7EB;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
}

/* CONTACT PANEL */
.contact-panel {
    position: fixed;
    top: 100px;
    bottom: auto;
    right: 20px;
    width: 380px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateX(calc(100% + 50px));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1200;
    padding: 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.contact-panel.active {
    transform: translateX(0);
}

.close-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    background: var(--bg-body);
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-panel:hover {
    background: var(--text-main);
    color: white;
}

.cp-header {
    margin-bottom: 15px;
}

.cp-header h2 {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.cp-address {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.75rem;
}

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

.label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-body);
    font-family: 'Inter';
    font-size: 0.8rem;
    outline: none;
}

.input:focus {
    background: white;
    border-color: var(--cyan);
}

/* Style pour les select avec optgroup */
select.input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300D4FF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
    appearance: none;
}

select.input option {
    background-color: white;
    color: var(--text-main);
    padding: 10px;
    font-size: 0.8rem;
}

select.input optgroup {
    background-color: #F1F5F9;
    color: var(--deep-blue);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
}

select.input optgroup option {
    background-color: white;
    color: var(--text-main);
    padding-left: 15px;
    font-weight: 400;
    text-transform: none;
}

select.input option:disabled {
    color: var(--text-muted);
    font-style: italic;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: var(--deep-blue);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.8rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.info-box {
    background: #F0F9FF;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: #0F172A;
    border: 1px solid #BAE6FD;
}

/* FOOTER SIDEBAR (pour la sidebar des centres, pas le footer global) */
.sidebar-footer {
    padding: 30px 24px;
    background: #F8FAFC;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: auto;
}

.sidebar-footer .sidebar-logo {
    font-family: 'Anton';
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}

.sidebar-footer .sidebar-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.sidebar-footer .sidebar-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
}

.copyright {
    font-size: 0.7rem;
    color: #94A3B8;
}

/* PAGINATION */
.pagination-container {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    margin-top: auto;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
    background: var(--bg-body);
    border-color: var(--cyan);
}

.page-btn.active {
    background: var(--deep-blue);
    color: var(--bg-white);
    border-color: var(--cyan);
}

.page-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Overlay backdrop - désactivé sur desktop, actif uniquement sur mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Pas d'overlay actif sur desktop */
.sidebar-overlay.active {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* ========================================= */
/* === RESPONSIVE DESIGN === */
/* ========================================= */

/* TABLETTE (1024px et moins) */
@media (max-width: 1024px) {
    .locator-wrapper {
        grid-template-columns: 400px 1fr;
    }

    .sidebar-header h1 {
        font-size: 1.8rem;
    }

    .center-card {
        padding: 18px;
    }
}

/* MOBILE (768px et moins) */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    main {
        padding-top: 60px !important;
    }

    /* Hero responsive */
    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Pillars responsive */
    .pillars-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 20px 60px;
    }

    .pillars-wrapper::after {
        display: none;
    }

    .pillar {
        padding: 40px 20px;
        border-bottom: 1px solid var(--border);
    }

    .pillar-number {
        font-size: 3rem;
    }

    .pillar-title {
        font-size: 1.5rem;
    }

    .pillar-desc {
        font-size: 0.95rem;
    }

    .p-feat {
        font-size: 0.85rem;
    }

    /* Scroll separator responsive */
    .section-separator {
        padding: 40px 0;
    }

    /* Locator responsive */
    #locator {
        padding-bottom: 40px;
    }

    .locator-headline h2 {
        font-size: 2rem;
    }

    .locator-wrapper {
        border-radius: 16px;
        border: none;
    }

    .locator-wrapper {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
        max-width: 100%;
        overflow-x: hidden;
        height: auto;
    }

    /* Carte affichée en haut */
    .map-frame {
        height: 45vh;
        position: relative;
        top: 0;
        width: 100%;
        order: 1;
        overflow: visible !important;
    }

    /* Tabs de filtres mobiles */
    .mobile-filter-tabs {
        display: flex !important;
        gap: 10px;
        padding: 4px;
        background: #F1F5F9;
        border-radius: 12px;
        margin-top: 16px;
    }

    .filter-tab {
        flex: 1;
        padding: 10px;
        background: transparent;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        transition: 0.3s;
        text-align: center;
        color: var(--text-muted);
    }

    .filter-tab.active {
        background: white;
        color: var(--text-main);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    /* Sidebar des centres - scrollable normalement */
    .centers-sidebar {
        border-right: none;
        border-top: 1px solid var(--border);
        border-radius: 24px 24px 0 0;
        margin-top: -20px;
        z-index: 20;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
        background: white;
        display: flex;
        flex-direction: column;
        min-height: 30vh;
        order: 2;
        overflow-y: visible;
    }

    /* Header de la sidebar sur mobile */
    .sidebar-header {
        padding: 24px;
        background: white;
        border-bottom: 1px solid var(--border);
        border-radius: 24px 24px 0 0;
    }

    .sidebar-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    /* Cacher la description et le search box sur mobile */
    .sidebar-header p,
    .search-box {
        display: none;
    }

    .centers-list {
        padding: 16px;
        padding-bottom: 40px;
        gap: 12px;
    }

    .center-card {
        background: white;
        border: 2px solid transparent;
        border-radius: 16px;
        padding: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(135deg, #E2E8F0 0%, #F1F5F9 100%) border-box;
    }

    .center-card:hover {
        border-color: transparent;
        box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
        transform: translateY(-4px);
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(135deg, var(--cyan) 0%, #0090ad 100%) border-box;
    }

    .center-name {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 6px;
        display: block;
        color: var(--text-main);
    }

    .center-address {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.4;
        color: var(--text-muted);
    }

    .center-tags {
        gap: 8px;
        margin-bottom: 12px;
    }

    .c-tag {
        font-size: 0.7rem;
        background: #E0F2FE;
        color: #0369A1;
        padding: 5px 10px;
        border-radius: 6px;
        font-weight: 600;
    }

    .btn-contact-center {
        margin-top: 12px;
        padding: 11px 20px;
        border: none;
        background: var(--deep-blue);
        color: var(--bg-body);
        border-radius: 10px;
        font-weight: 700;
        cursor: pointer;
        font-size: 0.8rem;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
        width: auto;
        display: inline-block;
    }

    .btn-contact-center:hover {
        background: #00B8DB;
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    }

    /* Afficher le texte complet sur mobile aussi */
    .btn-text-full {
        display: inline;
    }

    .btn-text-short {
        display: none;
    }

    /* Pagination responsive */
    .pagination-container {
        margin-bottom: 20px;
    }

    /* Pas d'overlay sur mobile - on garde juste le formulaire */
    .sidebar-overlay {
        display: none !important;
    }

    .sidebar-overlay.active {
        display: none !important;
    }

    /* Panel de contact en modal bottom sheet */
    .contact-panel {
        position: fixed;
        inset: auto 0 0 0;
        width: 100%;
        height: 90vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        padding: 20px;
        padding-bottom: 30px;
        max-height: 90vh;
        overflow-y: auto;
        z-index: 99999;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
        background: white;
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .contact-panel.active {
        transform: translateY(0);
    }

    .close-panel {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }

    .cp-header {
        margin-bottom: 18px;
    }

    .cp-header h2 {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .cp-address {
        font-size: 0.8rem;
    }

    .label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .input {
        padding: 11px 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

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

    .btn-submit {
        padding: 13px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .info-box {
        padding: 10px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

}

/* PETIT MOBILE (480px et moins) */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    main {
        padding-top: 60px !important;
    }

    /* Hero responsive - petit mobile */
    .hero-section {
        padding: 50px 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Pillars responsive - petit mobile */
    .pillars-wrapper {
        padding: 0 16px 50px;
    }

    .pillar {
        padding: 30px 16px;
    }

    .pillar-number {
        font-size: 2.5rem;
    }

    .pillar-title {
        font-size: 1.3rem;
    }

    .pillar-desc {
        font-size: 0.9rem;
    }

    .p-feat {
        font-size: 0.8rem;
    }

    /* Scroll separator responsive - petit mobile */
    .section-separator {
        padding: 30px 0;
    }

    .mouse {
        width: 20px;
        height: 32px;
    }

    .scroll-down {
        font-size: 0.7rem;
    }

    /* Locator responsive - petit mobile */
    #locator {
        padding-bottom: 30px;
    }

    .locator-headline h2 {
        font-size: 1.8rem;
    }

    .locator-wrapper {
        max-width: 100%;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .map-frame {
        height: 40vh;
        order: 1;
    }

    /* Tabs de filtres sur petit mobile */
    .mobile-filter-tabs {
        padding: 3px;
        gap: 8px;
        margin-top: 12px;
    }

    .filter-tab {
        padding: 9px 14px;
        font-size: 0.8rem;
    }

    /* Sidebar sur petit mobile - scrollable */
    .centers-sidebar {
        min-height: 35vh;
        order: 2;
    }

    .sidebar-header {
        padding: 18px 16px;
    }

    .sidebar-header h1 {
        font-size: 1.6rem;
    }

    .sidebar-header p {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .search-box {
        padding: 9px 11px;
    }

    .search-box input {
        font-size: 0.85rem;
    }

    .centers-list {
        padding: 14px;
        padding-bottom: 30px;
        gap: 10px;
    }

    .center-card {
        padding: 16px;
        border-radius: 16px;
    }

    .center-name {
        font-size: 0.95rem;
    }

    .center-address {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .c-tag {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .btn-contact-center {
        margin-top: 10px;
        padding: 10px 18px;
        font-size: 0.75rem;
        width: auto;
        display: inline-block;
    }

    /* Texte complet sur petit mobile aussi */
    .btn-text-full {
        display: inline;
    }

    .btn-text-short {
        display: none;
    }

    /* Overlay backdrop visible sur petit mobile */
    .sidebar-overlay {
        display: none !important;
    }

    .contact-panel {
        padding: 20px 18px;
        padding-bottom: 30px;
    }

    .close-panel {
        top: 12px;
        right: 12px;
    }

    .cp-header h2 {
        font-size: 1.3rem;
    }

    .cp-address {
        font-size: 0.75rem;
    }

    .label {
        font-size: 0.7rem;
    }

    .input {
        padding: 10px 11px;
        font-size: 0.85rem;
    }

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

    .btn-submit {
        padding: 12px;
        font-size: 0.85rem;
    }

    .info-box {
        padding: 9px;
        font-size: 0.7rem;
    }

    /* Overlay backdrop pour le contact panel */
    .sidebar-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Panel de contact en modal bottom sheet */
    .contact-panel {
        position: fixed;
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        transform: translateY(110%);
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        max-height: 85vh;
        overflow-y: auto;
        padding: 24px 20px;
        z-index: 1050;
    }

    .contact-panel.active {
        transform: translateY(0);
    }

    .close-btn {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
}
