/* ==================== GRANDE MURAILLE DE CHINE - CSS ULTRA-MODERNE ==================== */
/* 100% CSS Pur - 0% JavaScript */
/* Toutes les animations et effets sont en CSS natif */

/* ==================== RESET & VARIABLES MCN ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Charte MCN - Mode Normal */
    --primary-color: #ea5c0d;
    --secondary-color: #b94503;
    --accent-color: #f7af3e;
    --dark-bg: #333333;
    --card-bg: #505050;
    --text-light: #f5f5f5;
    --text-dark: #333333;
}

/* Mode Daltonien activé */
#daltonien-mode:checked ~ * {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #ffcc00;
    --dark-bg: #2a2a2a;
    --card-bg: #404040;
}

.mode-checkbox {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #f5f5f5;
}

/* Texte blanc partout par défaut */
p, span, div, li, td, th, label {
    color: #f5f5f5;
}

/* ==================== ACCESSIBILITÉ ==================== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

::selection {
    background-color: var(--primary-color);
    color: white;
}

/* ==================== HEADER GLASSMORPHISM ==================== */
.header {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(234, 92, 13, 0.2);
    animation: slideDown 0.6s ease;
}

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

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== LOGO ANIMÉ ==================== */
.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(234, 92, 13, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(234, 92, 13, 0.5));
}

/* ==================== BOUTONS MODE COULEUR ==================== */
.color-mode-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mode-button {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    user-select: none;
}

.mode-normal {
    background: var(--primary-color);
    color: white;
}

.mode-daltonien {
    background: transparent;
    color: var(--primary-color);
}

/* État inversé quand daltonien activé */
#daltonien-mode:checked ~ .header .mode-normal {
    background: transparent;
    color: var(--primary-color);
}

#daltonien-mode:checked ~ .header .mode-daltonien {
    background: var(--primary-color);
    color: white;
}

.mode-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(234, 92, 13, 0.3);
}

/* ==================== NAVIGATION ==================== */
.nav-menu {
    display: flex;
    gap: 15px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    padding: 12px 24px;
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Effet de balayage CSS pur */
.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 56, 13, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, #ea5c0d 0%, #b94503 100%);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 56, 13, 0.2);
}

.nav-menu a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b94503 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(212, 56, 13, 0.4);
}

/* ==================== HERO AVEC VIDEO & PARTICULES CSS ==================== */
.hero {
    position: relative;
    height: 600px;
    background-image: url('dramatic-tower.jpg'); /* Fallback image si vidéo ne charge pas */
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5; /* Fallback color */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Vidéo en background - CSS pur */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 1;
}

/* Si la vidéo ne charge pas, l'image de fond sera visible */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(212, 56, 13, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(26, 26, 46, 0.8) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(212, 56, 13, 0.3) 100%);
    z-index: 1;
}

/* Particules scintillantes CSS pur - PAS DE JS ! */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 85%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 15s ease-in-out infinite;
    opacity: 0.5;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% { 
        background-position: 0% 0%, 50% 50%, 100% 100%, 30% 80%, 70% 20%, 40% 60%;
        opacity: 0.5;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 50% 50%, 80% 20%, 30% 80%, 60% 40%;
        opacity: 0.8;
    }
}

/* Titre Hero avec effet Glow CSS */
.hero-title {
    background: linear-gradient(135deg, 
        rgba(212, 56, 13, 0.95) 0%, 
        rgba(247, 148, 29, 0.95) 50%,
        rgba(255, 215, 0, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 30px 80px;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    z-index: 2;
    position: relative;
    animation: heroTitleEntry 1.2s ease;
    border-radius: 20px;
    box-shadow: 
        0 15px 60px rgba(212, 56, 13, 0.5),
        0 0 100px rgba(247, 148, 29, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes heroTitleEntry {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    60% {
        transform: translateY(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title:hover {
    transform: scale(1.05) translateY(-5px);
    animation: glow 1.5s ease-in-out infinite alternate;
}

/* Effet Glow CSS pur */
@keyframes glow {
    from {
        filter: brightness(1) drop-shadow(0 0 20px rgba(247, 148, 29, 0.5));
    }
    to {
        filter: brightness(1.1) drop-shadow(0 0 40px rgba(247, 148, 29, 0.8));
    }
}

.hero-subtitle {
    background: rgba(234, 92, 13, 0.15);
    backdrop-filter: blur(20px);
    color: white;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
    position: relative;
    animation: heroSubtitleEntry 1.2s ease 0.3s backwards;
    border-radius: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

@keyframes heroSubtitleEntry {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-subtitle:hover {
    background: rgba(234, 92, 13, 0.25);
    transform: scale(1.05) translateY(-3px);
}

/* ==================== CONTENU PRINCIPAL ==================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ==================== SECTION INTRODUCTION ==================== */
.intro-section,
.preservation-intro {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(212, 56, 13, 0.85) 100%);
    backdrop-filter: blur(10px);
    padding: 50px 60px;
    margin-bottom: 60px;
    text-align: center;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(212, 56, 13, 0.2),
        inset 0 1px 0 rgba(80, 80, 80, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(80, 80, 80, 0.3);
}

/* Effet de rotation de gradient CSS pur */
.intro-section::before,
.preservation-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 148, 29, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.intro-section h2,
.preservation-intro h2 {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.intro-section p,
.preservation-intro p {
    color: #fff;
    line-height: 2;
    margin: 0 auto;
    max-width: 1000px;
    font-size: 17px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==================== CARTES COLONNES (INDEX) ==================== */
.four-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.column-card {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(212, 56, 13, 0.1);
    position: relative;
    border: 2px solid rgba(234, 92, 13, 0.3);
}

.column-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 56, 13, 0.05) 0%, 
        rgba(247, 148, 29, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.column-card:hover::before {
    opacity: 1;
}

/* Transform 3D au hover CSS pur */
.column-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 
        0 30px 80px rgba(212, 56, 13, 0.3),
        0 0 100px rgba(247, 148, 29, 0.2);
    border-color: var(--primary-color);
}

.column-card:hover .column-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    letter-spacing: 3px;
    transform: scale(1.05);
}

.column-card:hover .column-image-real {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.column-image-real {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.column-header {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 18px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.column-content {
    padding: 25px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

/* ==================== CHIFFRES CLÉS ==================== */
.key-numbers,
.section-title {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 20px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.number-card {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(212, 56, 13, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(234, 92, 13, 0.3);
}

/* Barre colorée animée CSS pur */
.number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.number-card:hover::before {
    transform: scaleX(1);
}

.number-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 25px 70px rgba(212, 56, 13, 0.3),
        0 0 80px rgba(247, 148, 29, 0.2);
    border-color: var(--secondary-color);
}

/* Gradient Text CSS pur */
.number-value {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.number-label {
    font-size: 14px;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==================== PAGE HISTOIRE - CARTES ==================== */
.history-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.history-card {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(212, 56, 13, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(234, 92, 13, 0.3);
}

.history-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 25px 70px rgba(212, 56, 13, 0.3),
        0 0 80px rgba(247, 148, 29, 0.2);
    border-color: var(--primary-color);
}

.history-image-real {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.6s ease;
}

.history-card:hover .history-image-real {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1);
}

.history-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    transition: all 0.6s ease;
}

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

.history-label {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
}

.history-description {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ==================== TIMELINE SECTION ==================== */
.timeline-section {
    margin-top: 50px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 30px;
    margin-bottom: 40px;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(212, 56, 13, 0.1);
    transition: all 0.5s ease;
    border: 2px solid rgba(234, 92, 13, 0.3);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px 0 0 20px;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 
        0 20px 60px rgba(212, 56, 13, 0.3),
        0 0 80px rgba(247, 148, 29, 0.2);
}

.timeline-period {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-radius: 10px;
    margin-bottom: 10px;
}

.timeline-dynasty {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    border-radius: 10px;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.timeline-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.timeline-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    transition: all 0.6s ease;
    object-fit: cover;
}

.timeline-item:hover .timeline-image {
    transform: scale(1.05) rotate(2deg);
}

/* ==================== CARTE GÉOGRAPHIQUE ==================== */
.geographic-section {
    margin-top: 50px;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 80px rgba(212, 56, 13, 0.1);
    border: 2px solid rgba(234, 92, 13, 0.3);
}

.geographic-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-radius: 15px;
}

.geographic-map {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #f5f5f5;
}

/* ==================== PAGE PRÉSERVATION - DÉFIS ==================== */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.challenge-card {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(212, 56, 13, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(234, 92, 13, 0.3);
}

.challenge-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 25px 70px rgba(212, 56, 13, 0.3),
        0 0 80px rgba(247, 148, 29, 0.2);
    border-color: var(--primary-color);
}

.challenge-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    transition: all 0.6s ease;
    object-fit: cover;
}

.challenge-image {
    transform: scale(1.05);
}

.challenge-label {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.challenge-description {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ==================== PROJETS DE RESTAURATION ==================== */
.project-card {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 0 70px rgba(212, 56, 13, 0.1);
    margin-bottom: 50px;
    border: 2px solid rgba(234, 92, 13, 0.3);
}

.project-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    padding: 40px;
}

.project-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.project-detail {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(212, 56, 13, 0.3);
    transition: all 0.4s ease;
}

.project-detail:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(212, 56, 13, 0.5);
}

.project-detail strong {
    font-size: 24px;
    display: block;
    margin-top: 10px;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.project-img {
    width: 200%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    transition: all 0.5s ease;
    object-fit: cover;
}

.project-img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ==================== CONSERVATION DIGITALE ==================== */
.conservation-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 0 70px rgba(212, 56, 13, 0.1);
    margin-bottom: 50px;
    border: 2px solid rgba(234, 92, 13, 0.3);
}

.conservation-map {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    border-radius: 15px;
    display: flex;
    object-fit: cover;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #f5f5f5;
}

.conservation-header {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.conservation-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.conservation-tools {
    display: flex;
    gap: 15px;
}

.tool-item {
    flex: 1;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tool-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 56, 13, 0.4);
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ==================== ACTIONS & INITIATIVES ==================== */
.actions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    position: center; 
}

.action-section {
    background: #333333;
    border-radius: 20px;
    overflow: hidden;  /* ← IMPORTANT : Cache les débordements */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.action-section:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(212, 56, 13, 0.3),
        0 0 80px rgba(247, 148, 29, 0.2);
}

.action-header {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.action-header.contribute {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
}

.action-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ea5c0d 0%, #b94503 100%);
    transition: all 0.4s ease;
    object-fit: cover;
}

.action-image:hover {
    transform: scale(1.05);
}



.action-label {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.action-description {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ==================== HISTORIQUE DES RESTAURATIONS ==================== */
.history-timeline {
    margin-top: 50px;
}

.history-timeline-header {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 20px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.history-timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.history-period-card {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(212, 56, 13, 0.1);
    transition: all 0.5s ease;
    border: 2px solid rgba(234, 92, 13, 0.3);
}

.history-period-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(212, 56, 13, 0.3),
        0 0 80px rgba(247, 148, 29, 0.2);
}

.period-label,
.period-decade {
    background: linear-gradient(135deg, #505050 0%, #333333 100%);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.period-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    object-fit: cover;
    justify-content: center;
    font-size: 50px;
    object-fit: cover;
}

.period-description {
    padding: 18px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ==================== FOOTER MODERNE ==================== */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    color: var(--text-light);
    padding: 60px 40px 30px;
    margin-top: 80px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Ligne décorative CSS pur */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

/* Flèche animée CSS pur */
.footer-column a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary-color);
    transform: translateX(10px);
}

.footer-column a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-column button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(212, 56, 13, 0.4);
}

.footer-column button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(212, 56, 13, 0.6);
}

.unesco-logo-footer {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: rgba(80, 80, 80, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(80, 80, 80, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

/* ==================== ANIMATIONS D'ENTRÉE CSS PUR ==================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Application des animations avec délais progressifs */
.column-card,
.number-card,
.history-card,
.challenge-card,
.action-section,
.history-period-card {
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
}

.column-card:nth-child(1),
.number-card:nth-child(1),
.history-card:nth-child(1),
.challenge-card:nth-child(1) { animation-delay: 0.1s; }

.column-card:nth-child(2),
.number-card:nth-child(2),
.history-card:nth-child(2),
.challenge-card:nth-child(2) { animation-delay: 0.2s; }

.column-card:nth-child(3),
.number-card:nth-child(3),
.history-card:nth-child(3),
.challenge-card:nth-child(3) { animation-delay: 0.3s; }

.column-card:nth-child(4),
.number-card:nth-child(4) { animation-delay: 0.4s; }

/* ==================== RESPONSIVE HEADER MOBILE UNIQUEMENT ==================== */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        justify-content: center;
    }
}

/* Smartphones et mobiles */
@media (max-width: 768px) {
    /* Header ultra-compact sur mobile */
    .header {
        padding: 8px 15px;
    }
    
    .nav-container {
        gap: 8px;
    }
    
    /* Logos réduits */
    .logo-img,
    .unesco-badge {
        height: 45px;
    }
    
    /* Navigation en colonne compacte */
    .nav-menu {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 8px 15px;
        font-size: 12px;
        text-align: center;
    }
}

/* Très petits smartphones */
@media (max-width: 480px) {
    .header {
        padding: 6px 10px;
    }
    
    .logo-img,
    .unesco-badge {
        height: 40px;
    }
    
    .nav-menu a {
        padding: 6px 12px;
        font-size: 11px;
    }
}
