
/* --- STRUCTURE GLOBALE (Grand Écran) --- */
.timeline {
    display: flex;
    flex-direction: row; /* Aligne l'en-tête à gauche et les cartes à droite */
    gap: 4rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.wrapper-timeline-title {
  z-index: 1;
  display: inline-block;
  /* Votre couleur orange */
  width:100%;
  background-color: #ffffff;
 
}

.outer .wrapper-timeline-title {
    top: var(--nav-height, 56px);
    position:sticky;
    z-index: 9;
}




/* Bloc Titre + Photo */
.timeline-img-cont {
    flex: 1;
    position: sticky;
    top: var(--nav-height, 56px);
    text-align: center;
    height: max-content;
    .p{
        font-family: var(--font-body);
    };
    .li{
        font-family: var(--font-body);
        margin-bottom: 15px;
    };
}

#timeline-title, .outer h2 {
  border-radius: 150px;
  font-weight: normal;
  font-family: var(--font-title);
  font-size: medium;
  background-color: var(--color-light);
  padding-left: 4%;
  padding-right: 4%;
  border: 1px solid var(--color-mid-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#timeline-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-medium);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Bloc qui contient toutes les cartes */
.outer {
    flex: 2;
    position: relative;
    padding-left: 18px; /* Espace pour la ligne */

    .p{
        font-family: var(--font-body);
    }
}

/* La ligne verticale de la timeline */
.outer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-light);
}

/* --- LES CARTES --- */
.card {
    position: relative;
    margin-bottom: 2.5rem;
    z-index: 2;
}

.card:last-child {
    margin-bottom: 0;
}

.info {
    background: var(--color-light);
    padding: 1.5rem;
    margin:5px;
    border-radius: 12px;
    border: 1px solid var(--color-medium);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.info .title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;

}

.info li {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--font-body);
    margin-bottom: 5px;
}

/* Les puces (points) sur la ligne */
.card::after {
    content: '';
    position: absolute;
    top: 20%;
    width: 10px;
    height: 10px;
    background: var(--color-medium);
    border: 4px solid var(--color-light); 
    border-radius: 50%;
    z-index: 2;
}

/* Sur grand écran (Desktop) */
.card::after {
    left: -26px; 
}


/* --- MOBILE & TABLETTE (Moins de 800px) --- */
@media (max-width: 800px) {
    .timeline {
        flex-direction: column; /* Tout s'empile verticalement */
        gap: 2rem;
        padding: 2rem 1rem;
    }


    .timeline-img-cont {
        position: static;
        margin-bottom: 1rem;
    }

    .wrapper-timeline-title {
        z-index: 1;
        position: sticky;
        top: var(--nav-height, 56px);
    }

    #timeline-title, .outer h2{
        font-size: medium;  
        top:2px;
        z-index: 10;
    }

    #timeline-img {
        width: 90px;
        height: 90px;
    }


    .info {
        padding: 1rem; /* Cartes légèrement plus compactes */
        margin-bottom: 10px;
        margin-left: 5px;
        margin-right: 5px;
    }
}
