/* --- En-tête de la page --- */
.about-hero {
    padding: 60px 0 40px 0;
}

.about-hero h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 1.2rem;
    color: #666;
}

/* --- Frise Chronologique (Timeline) --- */
.timeline-section {
    padding: 20px 0 80px 0;
    overflow: hidden; /* Évite les dépassements horizontaux */
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* La ligne centrale pointillée */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-image: linear-gradient(to bottom, #ccc 50%, transparent 50%);
    background-size: 2px 15px; /* Ajuste la taille des pointillés */
    background-repeat: repeat-y;
    transform: translateX(-50%);
    z-index: 1;
}

/* Une rangée complète (Étape) */
.timeline-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

/* Les demi-colonnes (Gauches et Droites) */
.timeline-half {
    width: calc(50% - 40px); /* 50% moins l'espace pour le cercle central */
}

/* Gestion du centrage du cercle */
.timeline-center {
    display: flex;
    justify-content: center;
    width: 80px; /* Largeur allouée au milieu */
}

.timeline-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    /* Ajustement manuel pour l'aligner parfaitement avec le titre */
    margin-top: -10px; 
    box-shadow: 0 0 0 5px #fff; /* Crée un petit contour blanc pour masquer la ligne derrière */
}

/* --- Style des Titres et Connecteurs --- */
.timeline-title {
    color: var(--primary-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin: 0;
}

.left-half .timeline-title {
    justify-content: flex-end; /* Pousse le titre vers la ligne centrale */
}

.right-half .timeline-title {
    justify-content: flex-start; /* Tire le titre depuis la ligne centrale */
}

/* Le petit trait reliant le titre au cercle */
.connector {
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
}

.left-half .connector { margin-left: 20px; }
.right-half .connector { margin-right: 20px; }


/* --- Style du Contenu (Images et Texte) --- */
.timeline-img {
    width: 100%;
    max-width: 450px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #ddd; /* Petite bordure comme sur ta maquette */
    margin-bottom: 25px;
    display: block;
}

/* Aligne l'image contre la ligne centrale selon son côté */
.left-half .timeline-img {
    margin-left: auto;
    margin-right: 0;
}
.right-half .timeline-img {
    margin-left: 0;
    margin-right: auto;
}

.timeline-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.left-half .timeline-text { text-align: right; }
.right-half .timeline-text { text-align: left; }

.timeline-text p {
    margin-bottom: 15px;
}

/* Mots en gras / bleus */
.text-highlight {
    color: var(--primary-color);
    font-weight: 600;
}


/* --- RÉACTIVITÉ POUR LES MOBILES (Smartphone) --- */
@media (max-width: 768px) {
    .timeline-line {
        display: none; /* On cache la ligne centrale sur petit écran */
    }

    .timeline-row {
        flex-direction: column;
        align-items: center;
        margin-bottom: 60px;
    }

    .timeline-half {
        width: 100%;
        text-align: center !important; /* Force tout au centre */
    }

    .timeline-img {
        margin: 0 auto 20px auto !important; /* Centre l'image */
    }

    .left-half .timeline-title,
    .right-half .timeline-title {
        justify-content: center; /* Centre les titres */
    }

    .connector {
        display: none; /* On cache les petits traits connecteurs */
    }

    .timeline-circle {
        margin-top: 0;
        margin-bottom: 15px;
        box-shadow: none;
    }

    /* ASTUCE MAGIQUE : Flex Order. 
       Garantit l'ordre visuel (Cercle en 1, Titre en 2, Texte en 3)
       quel que soit le côté d'origine de l'élément ! */
    .timeline-center { order: 1; width: 100%; }
    .title-side { order: 2; margin-bottom: 20px; }
    .content-side { order: 3; }
}