
    :root {
        --nb-acticles: 25;
        --taille-actif: 120px;
        --timeline-color-primary: #136b18;
        --timeline-color-hover: #2f9d36;
        --point-size-small: 10px;
        --point-gap: 5px;
    }


    input {
        margin-left: 0px;
        width: 40%;
        padding: 10px;
        border-radius: 4px;
        border: thin solid gray;
    }


    .timeline-window {
        position: relative;
        margin-bottom: 50px;
        background-color: white;
    }

    .arrow-container {
        height: 100%;
        width: 20px;
        cursor: pointer;
        background-color: #ffffffde;
        position: absolute;
        z-index: 3;
    }

    .arrow-container span {
        color: #136b18;
        font-size: 40px;
        font-weight: bold;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .arrow-container span:hover {
        color: #2f9d36;

    }

    #scroll-right {
        top: 0;
        right: 0;
    }

    .timeline-container {
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-behavior: smooth;
    }

    .timeline-container::-webkit-scrollbar {
        display: none;
    }

    .timeline-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .infos {
        text-align: center;
        margin-top: -55px;
        max-width: calc(var(--taille-actif) + 4px);
    }

    .timeline {
        width: calc((var(--nb-acticles) * (var(--taille-actif) + 4px)) + ((80 - var(--nb-acticles)) * 12px) + (78 * 3.7px));
        height: calc(var(--taille-actif) * 1.5);
        position: relative;
        padding: 0 25px;
    }

    .timeline .line {
        height: 3px;
        width: 100%;
        background-color: var(--timeline-color-primary);
        position: absolute;
        top: calc(50% - 1px);
        display: flex;
        gap: var(--point-gap);
    }

    .timeline .line .point-annee {
        border: 1px solid var(--timeline-color-primary);
        height: var(--point-size-small);
        width: var(--point-size-small);
        border-radius: 50%;
        transform: translateY(calc(-50% + 1px));
        background-color: white;
        opacity: 1;
    }

    .point-annee:first-child {
        margin-left: 8px;
    }

    .point-annee.active:first-child {
        margin-left: 0;
    }

    .timeline .line .point-annee.active {
        opacity: 1;
        width: var(--taille-actif);
        height: var(--taille-actif);
        background-size: cover;
        background-position: center;
        border: 2px solid var(--timeline-color-primary);
        background-color: var(--timeline-color-primary);
        transition: .3s;
    }

    .timeline .line .point-annee.active:hover {
        transform: translateY(-50%) scale(1.1);
        border-color: #2f9d36;
    }

    .annee-resume {
        display: none;
        position: absolute;
        text-align: left;
        top: calc(var(--taille-actif) * 1.9);
        background-color: #0F5713ee;
        font-family: 'Georgia Pro Cond';
        color: white;
        width: 400px;
        max-width: 400px;
        padding: 10px;
        border-radius: 5px;
        z-index: 4;
    }

    .annee-resume.disabled {
        display: none !important;
    }

    .annee-resume::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #136b18fe;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
    }


    p {
        text-align: justify;
        font-family: 'Georgia Pro Cond';
        line-height: 130%;
        font-size: 12pt;
    }

    .row {
        display: flex;
        padding-left: 80px;
        padding-right: 80px;
    }

    .column {
        flex: 50%;
        padding: 20px;
    }

    /* Permettre la navigation au clavier */
    .timeline .line .point-annee.active:focus {
        transform: translateY(-50%) scale(1.12);
        border-color: #2f9d36;
        outline: 3px solid #2f9d36;
        outline-offset: 2px;
    }

    @media (max-width: 600px) {
        .row {
            flex-wrap: wrap;
            padding: 0;
        }

        .column {
            flex: 100%;
        }
    }

    #listeBtn {
        font-weight: 100;
        text-decoration: underline;
        cursor: pointer;
    }

    #listeLien {
        position: absolute;
        top: 100vh;
        width: 90%;
        left: 50%;
        margin: 35px;
        transform: translateX(-50%);
        z-index: 2;
    }

    #listeBtn:hover {
        text-decoration: none;
    }

    .recherche {
        position: relative;
        color: #eee;
        padding: 0 80px 0 15px;
        border-radius: 35px;
        z-index: 3;
        opacity: 1;
        display: block;
        transition: .5s;
    }

    .recherche h3 {
        font-weight: 400;
        font-family: 'Roboto', Sans-serif;
        margin: 1em 0;
    }

    .recherche h2 {
        color: black;
        text-transform: none;
        font-weight: normal;
        font-family: 'Roboto', Sans-serif;
    }

    .recherche h3 a {
        color: black;
        text-decoration: none;
        transition: .2s;
        border-bottom: transparent;
    }

    .recherche h3 a:hover {
        color: #666;
        border-bottom: thin solid #aaaaaa;
    }

    .recherche input {
        width: calc(100% - 80px);
        padding: 5px 0;
        border: 0;
        border-radius: 0;
        outline: 0;
        -webkit-appearance: none;
        border-bottom: thin solid #999;
        background-color: transparent;
        color: black;
        font-size: 1.17em;
        font-weight: 300;
        font-family: 'Roboto', Sans-serif;
        max-width: 500px;
    }

    .dropdown-recherche {
        overflow: scroll;
        max-height: 310px;
        position: absolute;
        top: 43px;
        left: 15px;
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
        width: calc(100% - 160px);
        background-color: white;
        border: thin solid #eee;
        border-top: none;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
        display: none;
    }

    #close-modal {
        float: right;
        cursor: pointer;
        display: none;
    }

    ul {
        list-style-type: none;
    }

    .timeline-minimap {
        width: 100%;
        margin: 20px auto 0 auto;
        padding: 10px;
        background: #f5f5f5;
        border-radius: 8px;
        position: relative;
    }

    .minimap-track {
        position: relative;
        height: 50px;
        background: white;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Distribue automatiquement l'espace */
        padding: 0 10px;
    }

    .minimap-point {
        flex: 1; /* Chaque point prend un espace égal */
        max-width: 6px;
        min-width: 3px;
        height: 15px;
        background: #ccc;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.2s;
        margin: 0 0.5px; /* Petit espace entre les points */
    }

    .minimap-point.active {
        height: 30px;
        background: var(--timeline-color-primary);
    }

    .minimap-point.decenie::before {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
        content: attr(data-year);
        bottom: 43px;
        color: #666666;
        font-weight: normal;
        background-color: transparent;
        font-size: 13px;
        padding: 0;
        white-space: nowrap;
        pointer-events: none;
    }

    .minimap-point.decenie.active::before {
        bottom: 49px;
    }

    .minimap-point.active:hover {
        height: 35px;
        background: var(--timeline-color-hover);
    }

    .minimap-point:hover {
        height: 18px;
        background-color: var(--timeline-color-hover);
    }

    .minimap-point {
        position: relative;
    }

    .minimap-point.active::after {
        bottom: calc(50px - 8px);
    }

    .minimap-point::after {
        content: attr(data-content);
        position: absolute;
        bottom: calc(43px - 8px);
        left: 50%;
        transform: translateX(-50%);
        background: rgba(15, 87, 19, 0.95);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: bold;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        margin-bottom: 5px;
        z-index: 2;
    }

    .minimap-point:hover::after {
        opacity: 1;
    }

    .minimap-viewport {
        position: absolute;
        height: 100%;
        background: rgba(19, 107, 24, 0.15);
        border: 2px solid var(--timeline-color-primary);
        border-radius: 4px;
        pointer-events: none;
        transition: all 0.1s;
        z-index: 2;
    }

    /* AJUSTER LEFT SI IMPLÉMENTATION */
    /*
    .minimap-decade-line {
        border-left: thin dashed #666;
        height: 28px;
        top: -11px;
        transform: translateX(3px);
        position: absolute;
        z-index: 3;
        opacity: .5;
    }
    */

    .decade-markers {
        position: relative;
        height: 30px;
        margin-top: 40px;
    }

    .decade-marker {
        position: absolute;
        font-size: 12px;
        font-weight: bold;
        color: #136b18;
        transform: translateX(-50%);
    }

    .decade-line {
        position: absolute;
        width: 1px;
        border-left: 1px dashed var(--timeline-color-primary);
        height: 70px;
        top: 15px;
        opacity: 0.5;
        transition: .3s;
    }

    .timeline-reset {
        position: absolute;
        top: 0px;
        right: 20px;
        color: var(--timeline-color-primary);
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 5;
        font-size: 25px;
        transition: .5s;
    }

    .timeline-reset:hover {
        transform: rotate(-45deg);
    }

    @media screen and (max-width: 600px) {
        #listeLien {
            position: inherit;
            transform: translateX(0);
            left: 0;
        }

        .recherche {
            min-width: 80%;
            padding: 25px;
        }

        .recherche ul {
            margin: 0;
            padding: 0;
        }

        .recherche input {
            margin: 0;
            width: 100%;
        }
    }