/* Style global modifier */
.content {
    margin-top: 30% !important;
}


/* Image en fond fixe sur une zone réduite */
#container-background-image {
    position: relative;
    padding-left: 0px;
    padding-right: 0px;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 1%;
    background-position: center center;
    width: 100%;
}
/* filter colorer */
#container-background-image::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: var(--color-primary);
    opacity: 75%;
    z-index: 1;
}
/* position texte sur image */
#container-background-image > div{
    position: relative;
    z-index: 2;
    padding: 20px;
}
/* coleur du texte */
#container-background-image > div *{
    color: var(--color-text-secondary);
}

/* grille d'élément avec fond coloré */
.colored-parti {
    width: auto;
    padding: 0%;
    background-color: var(--color-background);
    margin: 1% 0;

    display: grid;
    gap: 10px 10px;
    
    grid-template-columns: repeat(2, 50%);
}

.colored-parti div {
    display: flex;
    width: calc( 100% - 10px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

div.box{
    margin: 10px 25%;
    width: 50%;
    box-sizing: border-box;
    display: flex;
    gap: 2%;
}

.box1,
.box2 {
    padding: 1%;
    color: white;
    box-sizing: border-box;
    text-align: left;
}

.box1 {
    background-color: var(--color-background);
}

.box2 {
    background-color: var(--color-background-secondary);
}

@media (min-width: 900px) {
    .box1,
    .box2 {
        width: 50%;
    }
}

/* Animation gauche */
.animate-left {
    opacity: 0;
    transform: translateX(-25%);
}

/* Animation droite */
.animate-right {
    opacity: 0;
    transform: translateX(25%);
}

/* animation à ajouter quand visible */
.visible {
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
