@import url('header.css'); /* Charge ton header/footer */
@import url('footer.css'); /* Charge ton header/footer */


/* ========================================================
   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-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) {
    header { padding: 20px 30px; }
    .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 { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
}
/* ========================================================
   FOOTER
   ======================================================== */
footer {
    background-color: #0a4c56;
    color: #faf3E0;
    padding: 80px 10% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #D9A441;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50%; height: 2px;
    background: linear-gradient(90deg, #D9A441, transparent);
}

.footer-section p,
.footer-section a {
    font-size: 0.95rem;
    line-height: 2;
    color: #faf3E0;
    text-decoration: none;
    font-weight: 300;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section a:hover { opacity: 1; color: #D9A441; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(250, 243, 224, 0.2);
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.7;
}