.text-color-violet {
    color: #da8250;
}

.card-text-title {
    font-family: system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    line-height: 1.05;
    margin-top: 24px;
    position: relative;
    z-index: 2;
    color: #da8250;
}

.card-text-undertitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    position: relative;
    z-index: 2;
    color: #da8250;
}

/* ========================
   Spacing & Layout
   ======================== */

main {
    justify-content: center;
    position: relative;
}

.scolaire-main {
    min-height: 50vh;
}

/* Remplissage élégant avec spacing dynamique */
@media (min-width: 769px) and (max-width: 1024px) {
    main {
        padding: clamp(2rem, 10vh, 4rem) 2rem;
        gap: 3rem;
    }

    main::before {
        content: "";
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(100px, 20vw, 200px);
        height: 3px;
        background: linear-gradient(90deg, transparent, #da8250, transparent);
        border-radius: 2px;
    }

    main::after {
        content: "";
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(100px, 20vw, 200px);
        height: 3px;
        background: linear-gradient(90deg, transparent, #da8250, transparent);
        border-radius: 2px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-h {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 5rem auto;
        padding-top: 0rem;
        max-width: 100%;
        width: 100%;
    }

    .timeline-h::before {
        content: "";
        position: absolute;
        top: 3rem; /* ⬅ référence UNIQUE */
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #da8250, #e8a567);
        border-radius: 2px;
    }

    .timeline-item-h {
        position: relative;
        width: 23%;
        text-align: center;
    }

    .timeline-dot-h {
        position: absolute;
        top: 3rem; /* ⬅ EXACTEMENT pareil */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 18px;
        height: 18px;
        background: #da8250;
        border-radius: 50%;
        border: 4px solid #fff;
        box-shadow: 0 0 0 3px rgba(218, 130, 80, 0.25);
    }

    .timeline-date-h {
        margin-top: 5rem; /* texte sous la frise */
    }
}

@media (min-width: 1024px) {
    .timeline-h {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin: 0 auto;
        max-width: 1200px;
    }

    .timeline-h::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #da8250, #e8a567);
        border-radius: 2px;
    }

    .timeline-item-h {
        position: relative;
        width: 22%;
        text-align: center;
    }

    .timeline-dot-h {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background: #da8250;
        border-radius: 50%;
        border: 4px solid #fff;
        box-shadow: 0 0 0 3px rgba(218, 130, 80, 0.25);
    }

    .timeline-date-h {
        margin-top: 4rem; /* texte sous la frise */
    }

    main::before {
        content: "";
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(100px, 20vw, 200px);
        height: 3px;
        background: linear-gradient(90deg, transparent, #da8250, transparent);
        border-radius: 2px;
    }

    main::after {
        content: "";
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(100px, 20vw, 200px);
        height: 3px;
        background: linear-gradient(90deg, transparent, #da8250, transparent);
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .timeline-h {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 4rem;
        margin: 4rem auto;
        padding-left: 3rem;
    }

    /* LIGNE VERTICALE */
    .timeline-h::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0; /* ✅ LA CLÉ */
        left: 20px;
        width: 4px;
        background: linear-gradient(180deg, #da8250, #e8a567);
        border-radius: 2px;
    }

    /* POINT UNIQUE EN HAUT */
    .timeline-h::after {
        content: "";
        position: absolute;
        top: 0;
        left: 22px;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background: #da8250;
        border-radius: 50%;
        border: 4px solid #fff;
        box-shadow: 0 0 0 3px rgba(218, 130, 80, 0.25);
    }
}
