@media (max-width: 767px) {
    .horizontal-section.small-horizontal-section  {
        display: block;
    }
    .horizontal-section.large-horizontal-section  {
        display: none;
    }
}
@media (min-width: 768px) {
    .horizontal-section.small-horizontal-section  {
        display: none;
    }
    .horizontal-section.large-horizontal-section  {
        display: block;
    }
}
.another-trigger{
    cursor: pointer;
}
.another-trigger:hover{
    text-shadow: #5cf7f1ff 0 0 5px;
}
.horizontal-section {
    margin: 25px 0;
    width: 100%;
}

.horizontal-section .engrenage {
    fill: rgb(45, 45, 45);
}

.horizontal-section .engrenage .engrenage-will {
    transform-origin: 236.35353px 141.22678px; /* Spécifie les coordonnées exactes du centre */
}

.horizontal-section .engrenage.active-engrenage .engrenage-will {
    animation: rotateEngrenage1 5s linear normal; /* Durée de 5 secondes, rotation continue */
}

.horizontal-section .engrenage.inactive-engrenage .engrenage-will {
    animation: rotateEngrenage2 5s linear normal; /* Durée de 5 secondes, rotation inverse */

}

.horizontal-section .engrenage .engrenage-circle {
    cursor: pointer;
    transform-origin: 236.35353px 141.22678px;
}
.horizontal-section .engrenage.engrenage:not(.active-engrenage) .engrenage-circle {
    animation: bounceCircle 3s linear infinite; /* Durée de 5 secondes, rotation infinie */

}

.horizontal-section .engrenage .engrenage-circle:active {
    fill: rgb(67, 67, 67);
    transform: scale(0.8);
    filter: drop-shadow(0 0 3px red);
}

.horizontal-section .engrenage.active-engrenage .engrenage-circle {
    fill: rgb(91, 28, 28);
}

.horizontal-section .engrenage.active-engrenage .engrenage-circle:active {
    fill: rgb(91, 28, 28);
    transform: scale(0.8);
    filter: drop-shadow(0 0 3px red);
}

.horizontal-section .section-left {
    fill: rgb(45, 45, 45);
}

.horizontal-section .section-right {
    fill: rgb(45, 45, 45);
}

/* Animation pour faire tourner l'engrenage */
@keyframes rotateEngrenage1 {
    from {
        transform: rotate(0deg); /* Départ à 0 degrés */
    }
    to {
        transform: rotate(360deg); /* Rotation complète à 360 degrés */
    }
}
@keyframes rotateEngrenage2 {
    from {
        transform: rotate(360deg); /* Départ à 0 degrés */
    }
    to {
        transform: rotate(0deg); /* Rotation complète à 360 degrés */
    }
}

@keyframes bounceCircle {
    from {
        filter: drop-shadow(0 0 0px rgba(92, 247, 242, 1));
    }
    to {
        filter: drop-shadow(0 0 3px rgba(92, 247, 242, 1));
    }
}
.screen{
    width: 100%;
    height: auto;
    max-height: 0;
    background: linear-gradient(0deg, rgba(2,0,36,0.5) 0%, rgba(30,128,128,0.2) 50%, rgba(2,0,36,0.5) 100%), linear-gradient(90deg, rgba(2,0,36,0.5) 0%, rgba(30,128,128,0.2) 50%, rgba(2,0,36,0.5) 100%);
    transition: 5s;
    overflow: hidden;
    background: transparent;/* Test */
}
.screen.active-screen{
    max-height: 80vh;
    transition: 5s;
    overflow: auto;
}
.screen-layer-1{
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,rgba(255, 0, 0, 0.2) 0px, rgba(255, 0, 0, 0.2) 1px, rgba(0, 128, 0, 0.2) 1px, rgba(0, 128, 0, 0.2) 2px, rgba(0, 0, 255, 0.2) 2px, rgba(0, 0, 255, 0.2) 3px);
    box-sizing: border-box;

}
.screen-layer-2{
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, rgba(255, 255, 255, 0.2) 2px, rgba(255, 255, 255, 0.2) 3px);
    box-sizing: border-box;
}
.screen-layer-3{
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid rgb(45, 45, 45);
    box-sizing: border-box;
    background: transparent;
	animation-duration: 20s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;

    overflow: hidden;
}

.screen-layer-3::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 2px,
        transparent 3px,
        transparent 300px
    );
    background-size: 100% 400px;
    animation: slide 20s linear infinite;
    will-change: transform;
    opacity: 0.3;
    pointer-events: none;
}

.screen-content{
    width: 100%;
    height: 100%;
    padding: 25px;
    box-sizing: border-box;
}


@keyframes slide {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(50%);
    }
    55% {
        transform: translateY(40%);
    }
    75% {
        transform: translateY(100%);
    }
    76% {
        transform: translateY(95%);
    }
    99% {
        transform: translateY(90%);
    }
    100% {
        transform: translateY(100%);
    }
}