/* ========================================= */
/* STYLES POUR LA PAGE D'ACCUEIL (index.html) */
/* ========================================= */

/* Reset du main pour enlever tout style par défaut */
main {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* ========================================= */
/* Section Hero */
/* ========================================= */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/hero-pattern.svg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 0 2.5rem 0;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================= */
/* Boutons CTA avec compteurs */
/* ========================================= */

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.cta-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cta-btn i {
    font-size: 1.2rem;
}

/* Compteurs sous les boutons */
.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.count-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.count-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Statistiques Hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ========================================= */
/* Section Cards Container */
/* ========================================= */

.cards-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Header avec bordure décorative */
.section-header {
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem auto 1rem;
    max-width: 800px;
    position: relative;
}

/* Bordure décorative au-dessus */
.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
}

/* Mots en couleur d'accent */
.section-header .accent {
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================= */
/* Cartes POI */
/* ========================================= */

.article-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Container de l'image avec overlay */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.1);
}

/* Overlay gradient sur l'image */
.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    pointer-events: none;
}

/* Badge de catégorie en haut à gauche */
.card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.card-category-badge i {
    font-size: 1rem;
}

/* Bouton favoris en haut à droite */
.card-favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.card-favorite-btn i {
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s;
}

.card-favorite-btn:hover {
    transform: scale(1.1);
    background: #ff6b6b;
}

.card-favorite-btn:hover i {
    color: white;
}

.card-favorite-btn.active i {
    color: #ff6b6b;
}

/* Contenu de la carte */
.card-content {
    padding: 1rem;
}

.card-label {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-label a {
    color: rgb(0, 80, 82);
    text-decoration: none;
    transition: color 0.3s;
}

.card-label a:hover {
    color: #667eea;
}

/* Rating avec étoiles */
.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-stars {
    display: flex;
    gap: 0.2rem;
}

.card-stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

.card-stars i.empty {
    color: #ddd;
}

.card-reviews-count {
    font-size: 0.85rem;
    color: #666;
}

/* Meta informations */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-type,
.card-region {
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-type {
    background: #e3f2fd;
    color: #1976d2;
}

.card-region {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Bouton "Plus d'infos" qui apparaît au hover */
.card-cta {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    margin-top: 1rem;
}

.article-card:hover .card-cta {
    opacity: 1;
    transform: translateY(0);
}

.card-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.card-cta-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========================================= */
/* Section carte de France */
/* ========================================= */

.map-section {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ffffff 100%);
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.map-section .map-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: auto !important;
}

/* Header de la carte */
.map-section .map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.map-section .map-header-content {
    flex: 1;
}

.map-section .map-title {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-section .map-title i {
    font-size: 2rem;
}

.map-section .map-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

/* Contrôles de la carte */
.map-section .map-controls {
    display: flex;
    gap: 0.75rem;
}

.map-section .map-control-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.map-section .map-control-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.map-section .map-control-btn i {
    font-size: 1.2rem;
}

/* Wrapper de la carte */
.map-section .map-wrapper {
    position: relative;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 900px;
}

/* Info bulle au-dessus de la carte */
.map-section .map-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #bbdefb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #1565c0;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    animation: slideDown 0.5s ease-out;
}

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

.map-section .map-info i {
    font-size: 1.3rem;
    color: #667eea;
}

.map-section .map-info span {
    flex: 1;
}

.map-section #map {
    height: 850px !important;
    width: 100% !important;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: block !important;
}

/* Footer avec stats */
.map-section .map-footer {
    display: flex;
    justify-content: space-around;
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.map-section .map-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #555;
}

.map-section .map-stat i {
    font-size: 1.5rem;
    color: #667eea;
}

.map-section .map-stat span {
    font-size: 0.95rem;
}

.map-section .map-stat strong {
    color: #333;
    font-weight: 700;
}

/* Mode plein écran */
.map-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
    background: white;
}

.map-section.fullscreen .map-container {
    max-width: none;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.map-section.fullscreen .map-wrapper {
    flex: 1;
    padding: 0;
}

.map-section.fullscreen #map {
    height: 100%;
    border-radius: 0;
}

/* Style des tooltips des régions */
.region-tooltip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.region-tooltip::before {
    border-top-color: #667eea !important;
}

/* Style des contrôles de zoom Leaflet */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #667eea !important;
    border: none !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.leaflet-control-zoom a:hover {
    background: #667eea !important;
    color: white !important;
}

.leaflet-control-zoom a:first-child {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom a:last-child {
    border-radius: 0 0 8px 8px !important;
}

/* ========================================= */
/* Responsive */
/* ========================================= */

@media (max-width: 768px) {
    /* Hero */
    .hero-section {
        padding: 3rem 1.5rem;
    }

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

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-container {
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .count-item {
        width: 100%;
    }

    .count-number {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Cartes */
    .card-image-wrapper {
        height: 180px;
    }

    .card-category-badge {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .card-favorite-btn {
        width: 35px;
        height: 35px;
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Map */
    .map-section {
        padding: 2rem 1rem;
    }

    .map-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }

    .map-title {
        font-size: 1.5rem;
        justify-content: center;
    }

    .map-controls {
        width: 100%;
        justify-content: center;
    }

    .map-wrapper {
        padding: 1rem;
    }

    #map {
        height: 400px;
    }

    .map-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .map-stat {
        justify-content: center;
    }
}
