
/* =====================================
   HISTORIQUE INTERSIG MAROC
===================================== */

.history-hero {
    padding: 100px 0;
    background: linear-gradient(120deg, #082746, #164b78);
    color: #fff;
}

.history-label {
    color: #f58220;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.history-hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    margin: 20px 0;
    color: white;
}

.history-hero h1 span,
.history-introduction h2 span,
.history-heading h2 span,
.history-conclusion h2 span {
    color: #f58220;
}

.history-line {
    width: 85px;
    height: 4px;
    background: #f58220;
    margin-bottom: 25px;
}

.history-hero p {
    max-width: 720px;
    line-height: 1.9;
    color: #dce5ed;
}

.history-introduction {
    padding: 90px 0;
    background: white;
    text-align: center;
}

.history-introduction h2 {
    font-size: clamp(30px, 4vw, 46px);
    color: #082746;
    margin: 20px 0;
}

.history-introduction p {
    max-width: 850px;
    margin: 15px auto;
    color: #657487;
    line-height: 1.9;
}

.history-section {
    padding: 100px 0;
    background: #f4f6f9;
}

.history-heading {
    text-align: center;
    margin-bottom: 70px;
}

.history-heading h2 {
    font-size: clamp(30px, 4vw, 45px);
    color: #082746;
    margin-top: 18px;
}

.history-timeline {
    position: relative;
    max-width: 1100px;
    margin: auto;
}

.history-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(
        to bottom,
        #f58220,
        #f5b36e
    );
    transform: translateX(-50%);
}

.history-item {
    position: relative;
    width: 50%;
    padding: 0 45px 45px;
    box-sizing: border-box;
}

.history-item:nth-child(odd) {
    margin-right: auto;
}

.history-item:nth-child(even) {
    margin-left: auto;
}

.history-dot {
    position: absolute;
    top: 30px;
    width: 22px;
    height: 22px;
    background: #f58220;
    border: 5px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #f58220;
    z-index: 2;
}

.history-item:nth-child(odd) .history-dot {
    right: -11px;
}

.history-item:nth-child(even) .history-dot {
    left: -11px;
}

.history-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-bottom: 4px solid #f58220;
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.history-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.history-year {
    display: inline-block;
    font-size: 38px;
    font-weight: 800;
    color: #f58220;
    margin-bottom: 12px;
}

.history-card h3 {
    font-size: 20px;
    color: #082746;
    margin-bottom: 12px;
}

.history-card p {
    font-size: 15px;
    color: #657487;
    line-height: 1.8;
}

.history-conclusion {
    padding: 100px 0;
    text-align: center;
    background: #082746;
    color: white;
}

.history-conclusion h2 {
    font-size: clamp(32px, 4vw, 50px);
    margin: 20px 0;
}

.history-conclusion p {
    max-width: 750px;
    margin: 0 auto 35px;
    color: #dce5ed;
    line-height: 1.9;
}

.history-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 28px;
    background: #f58220;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: background .3s;
}

.history-button:hover {
    background: #d96b0e;
}

/* =====================================
   VERSION MOBILE
===================================== */

@media (max-width: 768px) {

    .history-hero,
    .history-introduction,
    .history-section,
    .history-conclusion {
        padding: 65px 0;
    }

    .history-timeline::before {
        left: 12px;
        transform: none;
    }

    .history-item,
    .history-item:nth-child(even) {
        width: 100%;
        margin: 0;
        padding: 0 0 30px 45px;
    }

    .history-item:nth-child(odd) .history-dot,
    .history-item:nth-child(even) .history-dot {
        left: 3px;
        right: auto;
    }

    .history-card {
        padding: 24px;
    }

    .history-year {
        font-size: 30px;
    }
}
