/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: 16rem;
    gap: 3rem;
    justify-content: center;
}

.timeline > article {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 17rem;
    padding: 0.7rem;
    background: #fff;
    border: 1px solid black;
    border-radius: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline article img {
    width: calc(100% / 1.678);
}

.timeline h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-accent-secondary-dark);
}

.timeline figure {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 11rem;
}

.timeline figcaption {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

@media (min-width: 64rem) {
    .timeline {
        grid-template-columns: repeat(3, 16rem);
        grid-auto-flow: dense;
    }

    .timeline > article {
        position: relative;
    }

    .timeline > :nth-child(6n+4) { grid-column: 3; justify-self: right; }
    .timeline > :nth-child(6n+5) { grid-column: 2; }
    .timeline > :nth-child(6n+6) { grid-column: 1; }

    .timeline > ::after {
        position: absolute;
        font-size: 1.7rem;
        animation: 3s ease-in-out infinite;
    }

    .timeline .move-lr,
    .timeline .move-rl {
        width: calc(0.93 * 16rem);
    }

    .timeline .move-ud {
        height: calc(0.93 * 17rem);
    }

    .timeline .move-lr::after {
        --shift: 0.5rem;
        content: "→";
        top: 50%;
        right: -2.4rem;
        color: var(--black);
        animation-name: wiggle-x;
    }

    .timeline .move-ud::after {
        --shift: 0.5rem;
        content: "↓";
        right: 50%;
        bottom: -3rem;
        animation-name: wiggle-y;
    }

    .timeline .move-rl::after {
        --shift: -0.5rem;
        content: "←";
        top: 50%;
        left: -2.4rem;
        animation-name: wiggle-x;
    }

    @keyframes wiggle-x {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(var(--shift, 0.5rem)); }
    }

    @keyframes wiggle-y {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(var(--shift, 0.5rem)); }
    }
}

/* Timeline Flip Cards */
.flip-inner {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.flip-front {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: white;
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.timeline-item.is-flipped .flip-front {
    transform: translateX(-105%);
    opacity: 0;
    pointer-events: none;
}

.flip-back {
    position: relative;
    z-index: 1;
}

.timeline-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .flip-front {
        transition: none;
    }
}

/* Gouvernance */
.gouvernance {
    display: flex;
    gap: 3rem;
}

.gouvernance > div {
    display: flex;
    flex-direction:column;
    justify-content:space-between;
}

/* OA Section */
.oa {
    margin: 3rem 0;
    padding: 3rem 2rem;
    background: var(--color-accent-primary-light);
    border-radius: 0.5rem;
    text-align: center;
}

.gouvernance h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--color-text);
}

.gouvernance p {
    max-width: 60ch;
    margin: 1rem auto;
    color: var(--color-text);
    line-height: 1.6;
}


.gouvernance .btn {
    background: var(--color-accent-primary-dark);
    color: #fff;
    font-weight: 700;
}
.chaire-logo { margin: 1rem; text-align: center; }
.chaire-logo img { max-width: 260px; height: auto; }

.chaire-kicker { margin: 0 0 .5rem;  font-size: 1.7rem;}
    
.chaire-kicker__title { font-weight: 800; letter-spacing: .02em;}
.chaire-kicker__tag { margin-left: .5rem; opacity: .85; }