body.page-historique {
    padding-top: 80px;
}

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + 72px) 24px 90px;
    overflow: hidden;
}

.hero-historique {
    background: linear-gradient(135deg, rgba(11,31,58,0.97), rgba(37,99,235,0.95)),
        url('../images/batiment2.jpg') center/cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.55), rgba(37,99,235,0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-content .lead {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
    max-width: 720px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

.btn-hero.primary {
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 12px 28px rgba(6,182,212,0.24);
}

.btn-hero.secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.12);
}

.section-light,
.section-dark {
    padding: 80px 24px;
}

.section-light {
    background: #f8fbff;
}

.section-dark {
    background: #0f172a;
    color: #fff;
}

.info-card-large,
.media-card,
.history-card,
.stat-card,
.feature-box {
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(15,23,42,0.08);
}

.info-card-large {
    background: #fff;
    padding: 36px;
    color: #0f172a;
}

.badge-admin {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.info-card-large h2,
.section-header h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.info-card-large p,
.history-card p,
.feature-box p,
.stat-card span {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.9;
}

.media-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    height: 100%;
    border: 10px solid #ffffff;
    border-radius: 26px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
}

.media-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.5), transparent 70%);
    z-index: 1;
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.media-quote {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.history-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 30px;
}

.timeline-label {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.history-card p {
    color: rgba(255,255,255,0.9);
}

.stat-card {
    padding: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%;
}

.stat-card h3 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.stat-card span {
    color: rgba(255,255,255,0.75);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-header p {
    color: rgba(255,255,255,0.74);
    line-height: 1.8;
}

.feature-box {
    background: #fff;
    padding: 28px;
    text-align: center;
    height: 100%;
}

.feature-box i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-size: 1.15rem;
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.feature-box p {
    color: #64748b;
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 72vh;
    }
}

@media (max-width: 768px) {
    body.page-historique {
        padding-top: 72px;
    }

    .hero-section {
        padding: calc(72px + 56px) 18px 64px;
    }

    .section-light,
    .section-dark {
        padding: 64px 18px;
    }

    .info-card-large,
    .history-card,
    .stat-card,
    .feature-box {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content .lead {
        font-size: 0.98rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 280px;
    }

    .media-card {
        border-width: 6px;
    }

    .media-quote {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 0.84rem;
        text-align: center;
        border-radius: 16px;
    }
}
