/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales */
    --primary-color: #2c1810;
    --secondary-color: #8b6914;
    --accent-color: #d4af37;
    --text-primary: #2c1810;
    --text-secondary: #6b5b47;
    --text-light: #ffffff;
    --background-light: #faf8f5;
    --background-dark: #1a1a1a;
    
    /* Couleurs spécifiques géolocalisation */
    --location-bg: #f8f6f3;
    --location-border: #e8e3dc;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Typographie */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Espacements */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 12px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: transparent;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== HEADER ===== */
.header {
    background: var(--text-light);
    border-bottom: 2px solid var(--location-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    height: 80px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
}

.language-selector {
    margin-left: auto;
}

.language-dropdown {
    background: var(--background-light);
    border: 2px solid var(--location-border);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.language-dropdown:hover,
.language-dropdown:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 140px);
}

/* ===== BANDEAU LOCALISATION ===== */
.location-banner {
    background: linear-gradient(135deg, var(--location-bg) 0%, var(--background-light) 100%);
    border-bottom: 1px solid var(--location-border);
    padding: 40px 0;
    margin-bottom: 40px;
}

.location-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.location-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.location-item {
    background: var(--text-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--location-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.location-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.1);
}

.location-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.location-value.loading {
    color: var(--warning-color);
    font-style: italic;
}

.location-value.success {
    color: var(--success-color);
}

.location-value.error {
    color: var(--error-color);
}

.btn-refresh {
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-refresh:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-refresh:active {
    transform: translateY(0);
}

/* ===== SECTION CARTE ===== */
.map-section {
    padding: var(--section-padding);
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.map-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.15);
}

.leaflet-map {
    height: 500px;
    width: 100%;
    border-radius: var(--border-radius);
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.btn-control {
    background: var(--text-light);
    border: 2px solid var(--location-border);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.1);
}

.btn-control:hover {
    background: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== SECTION PATRIMOINE ===== */
.heritage-section {
    padding: var(--section-padding);
    background: var(--location-bg);
}

.heritage-container {
    max-width: 800px;
    margin: 0 auto;
}

.heritage-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.15);
    background: var(--text-light);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--location-border);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-placeholder p {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
}

.heritage-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.heritage-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 24, 16, 0.8));
    color: var(--text-light);
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.heritage-image-container:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.image-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-container {
        position: static;
        transform: none;
    }
    
    .location-title {
        font-size: 2rem;
    }
    
    .location-details {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .leaflet-map {
        height: 350px;
    }
    
    .map-controls {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
    }
    
    .heritage-image {
        height: 300px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .location-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .location-item {
        padding: 15px;
    }
    
    .btn-refresh {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .leaflet-map {
        height: 300px;
    }
    
    .heritage-image {
        height: 250px;
    }
}



/* ===== BANDEAU PUBLICITAIRE ===== */
.ad-banner {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 20px 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.1);
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.ad-text {
    flex: 1;
    color: var(--text-light);
}

.ad-text h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ad-text p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
}

.ad-action {
    flex-shrink: 0;
}

.btn-ad {
    background: var(--text-light);
    color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-ad:hover {
    background: var(--location-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-ad:active {
    transform: translateY(0);
}

/* Responsive pour le bandeau publicitaire */
@media (max-width: 768px) {
    .ad-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ad-text h3 {
        font-size: 1.3rem;
    }
    
    .ad-text p {
        font-size: 0.9rem;
    }
    
    .btn-ad {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ad-banner {
        padding: 15px 0;
    }
    
    .ad-text h3 {
        font-size: 1.2rem;
    }
    
    .ad-text p {
        font-size: 0.85rem;
    }
}



/* ===== VIDÉO DE FOND ===== */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    margin: 0;
    padding: 0;
    border: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: -1;
    pointer-events: none;
}

.header {
    background: var(--text-light);
    position: relative;
    z-index: 2000;
}

.ad-banner {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    position: relative;
    z-index: 1500;
}

.location-banner {
    background: rgba(248, 246, 243, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.map-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.heritage-section {
    background: rgba(248, 246, 243, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.footer {
    background: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* Responsive pour la vid\u00e9o */
@media (max-width: 768px) {
    .background-video {
        opacity: 0.25;
    }
    
    .video-overlay {
        background: rgba(255, 255, 255, 0.55);
    }
}

@media (max-width: 480px) {
    .background-video {
        opacity: 0.2;
    }
    
    .video-overlay {
        background: rgba(255, 255, 255, 0.6);
    }
}
