/* --- CONFIGURATION --- */
:root {
    --bg-light: #E8EBE0;
    --accent-green: #84A98C;
    --text-mid: #52796F;
    --text-dark: #354F52;
    --text-ultra: #2F3E46;
    --font-title: 'Montserrat', sans-serif;
    --font-main: 'Inter', sans-serif;
}

.exp-container {
    max-width: 1200px;
    margin: 40px auto 100px;
    padding: 0 20px;
}

.exp-header {
    text-align: center;
    margin-bottom: 80px;
}

.exp-header h1 {
    font-family: var(--font-title);
    font-size: 42px;
    color: var(--text-ultra);
    margin-bottom: 10px;
}

.exp-header p {
    color: var(--text-mid);
    font-size: 18px;
}

/* --- TIMELINE (La Structure) --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* La ligne verticale centrale */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

/* Positionnement Gauche / Droite */
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

/* Le Rond central sur la ligne */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px; /* Pour item left, rond à droite */
    background-color: var(--bg-light);
    border: 4px solid var(--text-dark);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.right::after {
    left: -10px; /* Pour item right, rond à gauche */
}

/* Hover : le rond grossit */
.timeline-item:hover::after {
    background-color: var(--text-dark);
    transform: scale(1.3);
    border-color: var(--accent-green);
}

/* Date flottante à l'opposé */
.timeline-date {
    position: absolute;
    top: 30px;
    width: 150px;
    text-align: right;
    right: -210px; /* Pour item left, date à droite */
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--text-mid);
    font-size: 1.1rem;
}

.timeline-item.right .timeline-date {
    left: -210px; /* Pour item right, date à gauche */
    text-align: left;
    right: auto;
}

/* --- CARTE CONTENU (Lien cliquable) --- */
a.timeline-content {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(47, 62, 70, 0.05);
    border: 1px solid rgba(132, 169, 140, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(47, 62, 70, 0.15);
    border-color: var(--accent-green);
}

/* Petite flèche qui pointe vers la ligne centrale */
a.timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    border: medium solid white;
    right: -10px; /* Flèche à droite pour item left */
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-item.right a.timeline-content::before {
    left: -10px; /* Flèche à gauche pour item right */
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* --- TYPOGRAPHIE --- */
.exp-badge {
    display: inline-block;
    background-color: var(--text-ultra);
    color: var(--bg-light);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.timeline-content h2 {
    margin: 0;
    font-family: var(--font-title);
    color: var(--text-ultra);
    font-size: 22px;
    transition: color 0.3s;
}

a.timeline-content:hover h2 { color: var(--accent-green); }

.timeline-content h3 {
    margin: 5px 0 15px 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-mid);
}

.location {
    font-size: 14px;
    font-style: italic;
    color: #888;
    margin-bottom: 15px;
}

.description {
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.task-list {
    margin: 0;
    padding-left: 20px;
}

.task-list li {
    margin-bottom: 6px;
    color: #666;
    font-size: 0.95rem;
}

/* --- RESPONSIVITÉ (Mobile) --- */
@media screen and (max-width: 768px) {
    /* La ligne se déplace à gauche */
    .timeline::after { left: 31px; }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 10px;
    }

    /* Tout s'aligne comme si c'était "right" (mais à droite de la ligne gauche) */
    .timeline-item.right { left: 0; }

    /* Ronds alignés à gauche */
    .timeline-item::after, .timeline-item.right::after {
        left: 21px;
    }

    /* Flèches toutes à gauche */
    a.timeline-content::before, .timeline-item.right a.timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Date : passe au dessus de la carte */
    .timeline-date, .timeline-item.right .timeline-date {
        position: relative;
        top: auto; left: auto; right: auto;
        text-align: left;
        width: 100%;
        margin-bottom: 5px;
        font-size: 14px;
        color: var(--text-mid);
    }
}