.sr-only {
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    width: 1px;
    margin: -1px;
    position: absolute;
}

input[type="checkbox"] {
    appearance: none;
}

/* -- Label --- */
.label {
    position: relative;
    z-index: 10;
    display: inline-flex;
    cursor: pointer;
    width: 2rem;

}

/* - Burger -- */

.burger__line {
    /* Permet de placer l'origine des transformations au centre de l'élément SVG (par défaut 0,0 pour ses enfants) */
    transform-origin: center center;
}

/* On détermine l'origine des transformations : ici le centre des éléments notre svg (32x32) */
.burger__line:nth-child(1) {
    /* Transition  état final :checked > état initial | Retour */
    transition: y .3s, rotate .3s;
    transition-delay: .3s, 0s;
}

.burger__line:nth-child(3) {
    /* Transition  état final :checked > état initial | Retour */
    transition: y .3s, rotate .3s;
    transition-delay: .3s, 0s;
}

.burger__line:nth-child(2) {
    opacity: 1;
    transition: opacity .3s .3s;
    /* Transition  état final :checked > état initial | Retour */
}

/* - Checked ---- */

input[type="checkbox"]:checked~label .burger__line:nth-child(1) {
    y: 15px;
    rotate: 45deg;
    /* Transition état initial > état final :checked | Allé */
    /* transition: y .4s 0s, rotate .3s .5s; */
    transition-delay: 0s, .3s;
}

input[type="checkbox"]:checked~label .burger__line:nth-child(3) {
    y: 15px;
    rotate: -45deg;
    /* Transition état initial > état :checked | Allé */
    /* transition: y .4s 0s, rotate .3s .5s; */
    transition-delay: 0s, .3s;

}

input[type="checkbox"]:checked~label .burger__line:nth-child(2) {
    opacity: 0;
    transition-delay: 0s;
}

/* Nav */

.main-nav {
    position: fixed;
    inset: 0 0 0 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--menu-clr);
    z-index: 9;

    translate: 100% 0;
    /* Allé/Retour  */
    transition: translate .4s .5s;
}

input[type="checkbox"]:checked~.main-nav {
    translate: 0
}

.main-nav__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;

    font-size: 2rem;
    text-align: center;
    transition: all .3s ease-in-out;
    color: var(--secondary-clr);
}

.main-nav__list li:hover{
    cursor: pointer;
    color: #b3b3b3;
}