/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 11 2026 | 00:24:16 */
/* ========================================
   CARTE INTERACTIVE AIREXPO - PLEIN ÉCRAN
   Style Google Maps pour une expérience immersive
   Version compatible WordPress Twenty Twenty-Four
   ======================================== */

/* Reset de la page pour carte plein écran - Compatible WordPress */
body:has(.airexpo-map-container) {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html:has(.airexpo-map-container) {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
}

/* Masquer l'interface WordPress mais garder les conteneurs nécessaires */
body:has(.airexpo-map-container) > header,
body:has(.airexpo-map-container) > footer,
body:has(.airexpo-map-container) > nav:not(:has(.airexpo-map-container)),
body:has(.airexpo-map-container) aside,
body:has(.airexpo-map-container) .wp-block-template-part,
body:has(.airexpo-map-container) .site-header,
body:has(.airexpo-map-container) .site-footer {
    display: none !important;
}

/* S'assurer que les conteneurs WordPress ne bloquent pas la carte */
body:has(.airexpo-map-container) .wp-site-blocks,
body:has(.airexpo-map-container) .entry-content,
body:has(.airexpo-map-container) main,
body:has(.airexpo-map-container) article {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    height: 100vh !important;
}

/* Container principal de la carte - FORCE le plein écran */
.airexpo-map-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #f0f0f0;
    z-index: 999999 !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* Wrapper de l'image avec zoom/pan */
.airexpo-map-wrapper {
    position: absolute !important;
    top: 70px !important; /* Hauteur du header */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 70px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
    background: #f5f5f5;
}

.airexpo-map-wrapper:active {
    cursor: grabbing;
}

/* Image de la carte - FORCE l'affichage en grand */
.airexpo-map-wrapper img {
    max-width: none !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    min-height: 70vh;
    display: block;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    object-fit: contain;
}

/* Header flottant avec titre et contrôles */
.map-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 80%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.map-header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-header-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-header-title .event-date {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    margin-left: 1rem;
}

/* Contrôles de zoom */
.map-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.map-control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-control-btn:hover {
    background: #f7f7f7;
    border-color: #1a73e8;
    color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.map-control-btn.home-btn {
    font-size: 1.1rem;
}

/* Bouton retour accueil (dans le header) */
.btn-back-home {
    background: #1a73e8;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.btn-back-home:hover {
    background: #1557b0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    transform: translateY(-1px);
}

/* Légende flottante */
.map-legend {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 90;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 90vw;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.legend-icon {
    font-size: 1.3rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Popup améliorée - style moderne */
.map-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.map-popup {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-popup-overlay.active .map-popup {
    transform: scale(1) translateY(0);
}

/* Header de la popup */
.popup-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    flex-shrink: 0;
}

.popup-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Contenu de la popup */
.popup-content {
    padding: 2rem;
}

.popup-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin: 0 0 1.5rem 0;
}

/* Liste des événements/planning */
.events-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.events-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #1a73e8;
    transition: all 0.2s ease;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.event-time {
    font-weight: 700;
    color: #1a73e8;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.event-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.event-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Boîte d'informations */
.info-box {
    background: #e8f4fd;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #b3d9f2;
}

.info-box-title {
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box-content {
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Header compact : une seule ligne, titre à gauche, boutons à droite */
    .map-header {
        height: 56px;
        padding: 0 0.6rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .map-header-title {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .map-header-title h1 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Masquer la date sur mobile */
    .map-header-title .event-date {
        display: none;
    }

    .map-controls {
        gap: 0.25rem;
        flex-shrink: 0;
    }

    .map-control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    /* Bouton retour : icône seule */
    .btn-back-home {
        font-size: 0;
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        min-width: unset;
        overflow: hidden;
        position: relative;
    }

    .btn-back-home::before {
        content: '←';
        font-size: 1.1rem;
        line-height: 1;
    }

    /* Carte façon Google Maps :
       Image paysage dimensionnée par la HAUTEUR → plus large que l'écran
       → l'utilisateur panne horizontalement */
    .airexpo-map-wrapper {
        top: 56px !important;
        height: calc(100vh - 56px) !important;
        align-items: center;
        justify-content: center;
        padding-bottom: 44px;
    }

    .airexpo-map-wrapper img {
        height: calc(100vh - 56px - 44px) !important;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
        min-height: unset;
        flex-shrink: 0;
    }

    /* Légende : bande fixe en bas, scroll horizontal */
    .map-legend {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 12px 12px 0 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem 1rem;
        gap: 1rem;
        justify-content: flex-start;
        max-width: 100vw;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    }

    .legend-item {
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .legend-icon {
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }

    /* Popup glisse depuis le bas */
    .map-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .map-popup {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }

    .popup-header {
        padding: 1.25rem 1.5rem;
        border-radius: 20px 20px 0 0;
    }

    .popup-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }

    .popup-title {
        font-size: 1.2rem;
    }

    .popup-content {
        padding: 1.25rem;
    }
}

/* Aide visuelle pour les zones cliquables */
.airexpo-map-wrapper area:hover,
.airexpo-map-wrapper area:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* Indicateur de chargement */
.map-loading {
    z-index: 10;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

.map-loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Scrollbar personnalisée pour la popup */
.map-popup::-webkit-scrollbar {
    width: 8px;
}

.map-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.map-popup::-webkit-scrollbar-thumb {
    background: #1a73e8;
    border-radius: 10px;
}

.map-popup::-webkit-scrollbar-thumb:hover {
    background: #0d47a1;
}

