* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --noir: #000000;
    --blanc: #FFFFFF;
    --rouge: #D32F2F;
    --gris-fonce: #1A1A1A;
    --gris-clair: #F5F5F5;
    --or: #FFD700;
}

body {
    background-color: var(--noir);
    color: var(--blanc);
    overflow-x: hidden;
}

/* Hero Section */
.hero-histoire {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('IMAGE/HY.png') no-repeat center;
    background-size: cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    color: #FF2800; /* Rouge Ferrari */
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    
}

.hero-subtitle {
    color: var(--rouge);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.hero-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--blanc);
    border-left: 4px solid var(--rouge);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

/* Main Content */
.histoire-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Histoire */
.histoire-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--rouge);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--rouge);
}

.section-subtitle {
    color: var(--blanc);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Chapitres Histoire */
.chapitres-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.chapitre-card {
    background: linear-gradient(145deg, var(--gris-fonce), var(--noir));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.chapitre-card:hover {
    transform: translateY(-10px);
    border-color: var(--rouge);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.3);
}

.chapitre-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.chapitre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.chapitre-card:hover .chapitre-image img {
    transform: scale(1.1);
}

.chapitre-content {
    padding: 2rem;
}

.chapitre-title {
    color: var(--or);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chapitre-text {
    color: var(--blanc);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.chapitre-highlights {
    background-color: rgba(211, 47, 47, 0.1);
    border-left: 4px solid var(--rouge);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
}

.chapitre-highlights li {
    margin-bottom: 0.5rem;
    color: var(--blanc);
}

/* ================= ANIMS ================= */
    @keyframes fadeInUp{ from{opacity:0; transform: translateY(30px);} to{opacity:1; transform: translateY(0);} }
    @keyframes pulse{
      0%,100%{ transform:scale(1); box-shadow: 0 0 20px rgba(211,47,47,.3); }
      50%{ transform:scale(1.05); box-shadow: 0 0 30px rgba(211,47,47,.5); }
    }

    /* ================= RESPONSIVE ================= */
    @media (max-width: 992px){
      .hero-title{ font-size: 3.5rem; }
      .hero-subtitle{ font-size: 1.5rem; }
    }

    /* ========== MOBILE MENU FULLSCREEN ========== */
    @media (max-width: 768px){
      .hamburger{ display:flex; }


      .nav-menu{
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 5.2rem 1.6rem 2rem;
        gap: 0;
        transition: right .35s ease;
        z-index: 1190; /* au dessus overlay */
        overflow-y: auto;
      }

      .nav-menu.active{ right: 0; }

      .nav-link{
        padding: 1.1rem 0;
        border-bottom: 1px solid #222;
        border-radius: 0;
      }

      /* Dropdown mobile en mode "accordion" */
      .dropdown-content{
        position: static;
        border: none;
        border-radius: 0;
        background: #111;
        margin: 0.2rem 0 0.8rem 1rem;
        min-width: auto;
      }

      .dropdown.active .dropdown-content{ display:block; }

      .dropdown-content a{
        padding: 1rem 0;
        border-bottom: 1px solid #222;
      }

      /* HERO */
      .hero-minimal{ padding: 1rem; }
      .hero-title{ font-size: 2.6rem; }
      .hero-subtitle{ font-size: 1.2rem; }
      .cta-buttons{ flex-direction: column; }
      .btn{ width:100%; max-width: 320px; justify-content:center; }
      .section-title-simple h2{ font-size: 2.2rem; }
      .features-grid-simple{ grid-template-columns: 1fr; }
    }

    @media (max-width: 576px){
      .hero-title{ font-size: 2.2rem; }
      .hero-subtitle{ font-size: 1.05rem; }
      .feature-item{ padding: 2rem; }
    }