html {
    margin: 0 -1em;
    padding: 0;
    font: inherit;
    box-sizing: border-box;
    overflow: hidden;
}

/* j'efface le fond de base pour eviter des bug visuel avec les proprieté Difference dans cette page*/
/* body{
    background-color: rgba(255, 0, 0, 0)!important;
} */

#overlay-light {
    position: absolute;
    width: 100vw;
    height: 200vh;
    background-color: var(--background);
    z-index: 1;
}

#overlay-dark {
    position: absolute;
    width: 100vw;
    height: 200vh;
    background-color: var(--text);
    z-index: 2;
}

.content {
    /* width: 100vw; */
    font-size: var(--fs-400);
    padding: 1em;
}

.menu {
    position: fixed;
    padding: 1em 1em 2em 1em;
    display: flex;
    width: 100vw;
    gap: 4em;
    justify-content: flex-end;
    z-index: 4;
}

.half1 {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.half1 .demi {
    width: 50%;
    flex: 1 0 40%;
}

.half1 .demi2 {
    width: 50%;
    flex: 1 0 40%;
}

@media (prefers-color-scheme: light) {
    .content>* {
        position: relative;
        z-index: 3;
        mix-blend-mode: difference;
        color: var(--background);
    }

    .demi>* {
        position: relative;
        z-index: 3;
        color: var(--background);
    }

    .divider {
        width: 100%;
        height: 1px;
        background: var(--background);
        margin: 0.2em 0;
    }

    a {
        color: var(--background);
        z-index: 5;
    }
}

@media (prefers-color-scheme: dark) {
    
    .menu a{
        mix-blend-mode: difference;
        color: var(--text);
        z-index: 6;

    }
    .content>* {
        position: relative;
        z-index: 3;
        mix-blend-mode: difference;
        color: var(--text);
    }

    .demi>* {
        position: relative;
        z-index: 3;
        color: var(--text);
    }

    .divider {
        width: 100%;
        height: 1px;
        background: var(--text);
        margin: 0.2em 0;
    }

    a {
        color: var(--text);
        z-index: 5;
    }

}

.last-divider {
    /* background-color: red; */
    height: 2em;
}

.nav {
    text-transform: uppercase;
}

.nav-divider {
    margin-top: 1em;
}

.row {
    width: 100%;
    height: 25px;
    display: flex;
    padding: 0 2em;
    align-items: center;
}

.row>.col {
    position: relative;
    flex: 1;
}

.row>.col:first-child {
    flex: 2;
    /* border: 2px solid red; */

}

.row>.col:nth-child(2) {
    flex: 2;
}

/* custom regle pour logitiels */
.demi2>.row>.col:nth-child(2) {
    flex: 4;
}

.row>.col:last-child {
    text-align: end;
}

.marquee {
    position: fixed;
    bottom: -10%;
    width: 100%;
    padding-top: 4em;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    z-index: 3;
    /* border: 3px solid red; */
}

.marquee span {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: normal;
    letter-spacing: -10px;
    color: var(--text);
    mix-blend-mode: normal !important;
    font-size: var(--fs-900);
    text-transform: uppercase;
    display: inline-block;
    margin-left: -10%;
    animation: marquee-animation 80s linear infinite;
}

@keyframes marquee-animation {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%)
    }
}

/* message */


.message {
    display: block;
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 0 1em;
 
    font-size: var(--fs--1);
    color: var(--primary);

    z-index: 9;
}


.texte a {
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 0 1em;
    color: var(--primary);
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    /* Empêche le retour à la ligne car ca arrive sur les iphone 12... */

}

.texte a:hover {
    border: 1px solid var(--primary);
    background-color: var(--primary);
    border-radius: 15px;
    padding: 0 1em;
    color: var(--background)
}

#small {
    font-size: var(--fs--1);
}

/* ordi petit scroll */
@media (max-height: 900px) {
    html {
        overflow-y: auto;
        overflow-x: hidden !important;
    }
}

/* mobile */
@media (max-width: 925px) {

    html {
        margin: 0 -1em;
        padding: 0;
        font: inherit;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
    }

    #overlay-light {
        height: 280vh;
    }
    
    #overlay-dark {
        height: 280vh;

       
    }

    /* menu */
    .menu {
        font-size: var(--fs-400);
        position: relative;
        display: flex;
        justify-content: space-between;
        gap: auto;
        padding: 1em 3em;
        width: 100%;
        z-index: 4;
    }

    .menu a {
        color: var(--text);
    }
    @media (prefers-color-scheme: dark) {
        .menu a{
            mix-blend-mode: difference;
            color: var(--text);
            z-index: 6;
        }
    }

    /* sim.display colum */
    .half1 {
        display: flex;
        flex-wrap: wrap;
        gap: 2%;
    }

    .half1 .demi {
        width: 100%;
        flex: 1 0 100%;
    }

    .half1 .demi2 {
        width: 100%;
        flex: 1 0 100%;
    }

    .row>#titre {
        flex: 10;
    }

    .row {
        /* border: 2px solid cyan; */
        line-height: 0.7rem;
    }

    .marquee {
        display: none;

    }

    .message{
        bottom: -175vh;
    }


}

@media (max-width: 430px) {

    .row {
        height: 2.5rem;
        line-height: 0.9rem;
    }
    .last-divider {
        height: 3.5em;
    }
}


/* Styles pour le popup et le fond flouté */
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    width: 20vw;
    text-align: center;
}

#popup h2 {
    margin-bottom: 20px;
}

#popup a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #007bff;
}

#popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
