/* ========================================================= positionnement des éléments de la page */

.pagedegarde {
    margin-top: .5em;
    grid-column: 1/span 6;
    grid-row: 1;
}

/*=========================================================== placement des parties de l'article*/

.intro {
    grid-row: 2;
    grid-column: 1/span 5;
    margin-bottom: 4vw;
}

.medicament {
    grid-row: 3;
    grid-column: 1/span 5;
    margin-bottom: 4vw;
}

.chronologie {
    grid-row: 4;
    grid-column: 1/span 12;
    margin-bottom: 2vw;
    display: flex;
    flex: 1;
    flex-direction: row;
}
a {
    color: black;
}

.txt a {
    text-decoration: none;
    color: black;
}

.txt,
#truc {
    width: 45vw;
    flex: .5;
}

#truc {
    max-height: 10vh;
    max-width: 10vw;
    margin-top: 2vw;
}


/*============================================== Les titres des étapes  */

ol {
    margin-top: -3vw;
    padding-left: 17vw;
}

.annees {
    grid-column: 1/span 12;
    grid-row: 5;
    display: flex;
    flex-direction: row;
}



/*=========================================================== graphique */

.graph {
    display: flex;
    grid-row: 6;
    grid-column: 1/span 12;
    flex-direction: row;
    font-size: 1vw;
    background-color: #ddd;
}

#timeline {
    --percent: 100%;
    height: 100px;
    width: 100%;
    display: flex;
    clip-path: inset(0 var(--percent) 0 0);
    transition: all 150ms;
}

/*================================== design des periodes du graph */

.periode {
    height: 100px;
}

.periode1 {
    background-color: var(--orange);
}

.periode2 {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, gray 12px, gray 24px);
    background-color: var(--orange);
}

.periode3 {
    background-color: var(--orange);
}

.periode4 {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, gray 12px, gray 24px);
    background-color: var(--orange);
}

.periode5 {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, gray 12px, gray 24px);
    background-color: black;
}

.periode6 {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, var(--orange) 12px, var(--orange) 24px);
}

/*=========================================================== partie en savoir plus */
.Infos {
    display: flex;
    grid-row: 7;
    grid-column: 1/span 12;
    font-size: 1vw;
}

[id^="detail"] * {
    display: none;
}

[id^="detail"].active details,
[id^="detail"].active details * {
    display: revert;
}

[id^="detail"] h2,
[id^="detail"]:has(details[open])>h2 {
    display: none;
}

.current details {
    background-color: var(--orange);
    color: #fff;
}
.current details a {
    background-color: var(--orange);
    color: #fff!important;
}

.current summary {

    &::before,
    &::after {
        border-block-start: 3px solid #fff;
    }
}

/* [id^="detail"] h2 {
    margin-left: .2em;
} */

.titre-select,
.titre-select a {
    color: var(--orange);
}

/* TENTATIVE DE PLACER LES INFOS */


#detail-1 {
    flex: 10;
}

#detail-2 {
    flex: 8;
}

#detail-3 {
    flex: 12;
}

#detail-4 {
    flex: 8;
}

#detail-5 {
    flex: 40;
}

#detail-6 {
    flex: 22;
}



/* Light styling for presentation */
details {
    border: 2px solid var(--orange);
    margin-top: .5rem;
    padding: .5rem;
    width: 7vw;
    border-radius: 200em;
}

details[open] {
    width: 40vw;
    border-radius: .5em;
    padding-bottom: 1rem;

}

summary {
    font-size: 1em;
    font-weight: 300;
    /* Pin the custom marker to the container */
    position: relative;
    /* Register summary as an anchor element */
    anchor-name: --summary;

    &::marker {
        content: "";
    }

    &::before,
    &::after {
        /* Custom marker dimensions */
        content: "";
        border-block-start: 3px solid var(--orange);
        height: 0;
        width: 1rem;

        /* Positions the lines */
        inset-block-start: 50%;
        inset-inline-end: 0;

        /* Anchor the shape to the summary */
        position: absolute;
        position-anchor: --summary;
        position-area: top end;
    }

    /* Rotate just the ::after line to create a "+"" shape */
    &::after {
        transform: rotate(90deg);
        transform-origin: 50%;
    }
}

/* Rotate the line when open */
details[open] summary::after {
    transform: rotate(0deg);
}


/*=========================================================== schéma */

.schema {
    margin-top: 4vw;
    grid-row: 8;
    grid-column: 1/span 5;
}


.illu {
    margin-top: 4vw;
    grid-row: 8;
    grid-column: 7/span 6;
}