/*
    Projet : Site web Les Voies des Gastlosen
    Fichier : style-histoire.css
    Auteur : Antoine Schneider
    Date de création : 16 janvier 2026
    Dernière modification : 16 janvier 2026
    Description : Feuille de style pour la page histoire.
                  Mise en page chronologique alternée avec
                  animations progressives et style épuré.
    Compatibilité : Chrome, Firefox, Edge, Safari
*/

/* ============================================
   RESET ET BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.95),
        rgba(40, 40, 40, 0.95)
    );
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

nav img {
    width: 80px;
    height: auto;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

nav img:hover {
    transform: scale(1.05);
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #ff6b35,
        #f7931e
    );
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover,
nav a.active {
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
}

/* ============================================
   OVERLAY ET HERO
   ============================================ */

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

.hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.9),
        rgba(50, 50, 50, 0.9)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 70px);
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 107, 53, 0.5);
    animation: titleAppear 1.5s ease-out;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: #e0e0e0;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

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

/* ============================================
   CONTENU HISTORIQUE
   ============================================ */

.histoire-content {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sections historiques */
.histoire-section {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.histoire-section:nth-child(1) {
    animation-delay: 0.2s;
}

.histoire-section:nth-child(2) {
    animation-delay: 0.4s;
}

.histoire-section:nth-child(3) {
    animation-delay: 0.6s;
}

.histoire-section:nth-child(4) {
    animation-delay: 0.8s;
}

.histoire-section:nth-child(5) {
    animation-delay: 1s;
}

.histoire-section:nth-child(6) {
    animation-delay: 1.2s;
}

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

/* Version reverse (image à droite) */
.histoire-section.reverse {
    grid-template-columns: 1fr 1fr;
}

.histoire-section.reverse .histoire-image-container {
    order: 2;
}

.histoire-section.reverse .histoire-text {
    order: 1;
}

/* Conteneur d'image */
.histoire-image-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #ff6b35;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.histoire-image {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #555,
        #888
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease;
}

.histoire-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px 
                rgba(255, 107, 53, 0.4);
}

/* Texte historique */
.histoire-text {
    color: #ffffff;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.histoire-text h2 {
    color: #ff6b35;
    font-size: 28px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.histoire-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(
        135deg,
        #0a0a0a,
        #1a1a1a
    );
    color: #e0e0e0;
    padding: 40px 20px;
    border-top: 3px solid #ff6b35;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.footer-content p {
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.footer-content strong {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid 
                rgba(255, 107, 53, 0.3);
    color: #808080;
    font-size: 14px;
    margin-top: 20px;
}

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

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 20px;
        padding: 15px 20px;
    }

    nav a {
        font-size: 14px;
    }

    .histoire-content {
        padding: 40px 20px;
    }

    .histoire-section,
    .histoire-section.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .histoire-section.reverse .histoire-image-container {
        order: 1;
    }

    .histoire-section.reverse .histoire-text {
        order: 2;
    }

    .histoire-image {
        height: 250px;
    }

    .histoire-text {
        font-size: 16px;
    }

    .histoire-text h2 {
        font-size: 22px;
    }

    footer {
        padding: 40px 20px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .histoire-image {
        height: 180px;
    }

    .histoire-text h2 {
        font-size: 20px;
    }

    .histoire-text p {
        font-size: 15px;
    }
}