/* ========================================================
   HERO
   ======================================================== */
.hero {
    position: relative;
    height: 100vh; /* ← indispensable */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================
   HERO SLIDESHOW
   ======================================================== */
.hero-slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%; /* ← déjà là normalement */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%;
    height: 110%; /* ← vérifie que c'est bien 110% et pas 100% */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes subtleZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.03); }
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom,
        rgba(10, 76, 86, 0.2) 0%,
        rgba(10, 76, 86, 0.5) 100%);
}

.hero h1 {
    position: relative;
    color: #faf3E0;
    font-size: 6rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 8px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.3s;
}

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


.histoire-modern {
    padding: 120px 10%;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.histoire-modern:nth-child(even) { background: #faf3E0; }
.histoire-modern:nth-child(odd)  { background: #fff; }

.histoire-modern.inverse {
    background: linear-gradient(135deg, #0a4c56 0%, #0d5f6d 100%) !important;
}

.histoire-modern .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    width: 100%;
}

.histoire-modern.inverse .container { direction: rtl; }
.histoire-modern.inverse .text      { direction: ltr; }

.histoire-modern .image { position: relative; }

.histoire-modern .image::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    right: 20px; bottom: 20px;
    border: 3px solid #D9A441;
    z-index: 0;
    transition: all 0.5s ease;
}

.histoire-modern:hover .image::before {
    top: -30px; left: -30px;
    right: 30px; bottom: 30px;
}

.histoire-modern .image img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    transition: all 0.6s ease;
    filter: grayscale(0.2);
}

.histoire-modern:hover .image img {
    transform: scale(1.03);
    filter: grayscale(0);
}

.histoire-modern .text h2 {
    font-size: 3rem;
    font-weight: 600;
    color: #0a4c56;
    margin-bottom: 30px;
    padding-left: 25px;
    position: relative;
}

.histoire-modern .text h2::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #D9A441, #f4c467);
}

.histoire-modern.inverse .text h2 { color: #faf3E0; }
.histoire-modern.inverse .text h2::before {
    background: linear-gradient(to bottom, #faf3E0, #D9A441);
}

.histoire-modern .text p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    text-align: justify;
}

.histoire-modern.inverse .text p { color: rgba(250, 243, 224, 0.9); }

.image-placeholder {
    width: 100%; height: 400px;
    background: linear-gradient(135deg, #0a4c56, #0d5f6d);
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #D9A441;
    font-size: 5rem;
    position: relative; z-index: 1;
}

@media (max-width: 900px) {
    .histoire-modern { padding: 80px 5%; }
    .histoire-modern .container { grid-template-columns: 1fr; gap: 50px; }
    .histoire-modern.inverse .container { direction: ltr; }
    .histoire-modern .text h2 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    /* header responsive → voir header.css */
}
/* footer → voir footer.css */