@font-face {
    font-family: 'source-sans-proELI';
    src: url('/Police/SourceSansPro-ExtraLightIt.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'source-sans-proEL';
    src: url('/Police/SourceSansPro-ExtraLight.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'source-sans-proB';
    src: url('/Police/SourceSansPro-Black.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'source-sans-proL';
    src: url('/Police/SourceSansPro-Light.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'source-sans-proBI';
    src: url('/Police/SourceSansPro-BlackIt.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'source-sans-proR';
    src: url('/Police/SourceSansPro-Regular.woff2') format('woff2');
    font-display: swap;
}

html {
    font-size: 12.8px; 
    height: 100%;
}

body, html {
    height: 100%;
    margin: 0;
    background: white ;
    font-family: 'Source Sans Pro'; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 80%; 
}


.vertical-links {
    text-decoration: none !important;
    position: absolute;
    justify-content: left;
    left: 6%;
    transform: translateY(-50%);
    top: 48%;
}

.vertical-links a {
    width: 20%;
    cursor: none;
    display: block;
    color: #878787;
    text-decoration: none;
    margin: 0% 0;
}   

.vertical-links img{
    width: 3.7rem; 
    height: 3.7rem; 
    object-fit: contain;
    padding: 7px;
}

.vertical-links2 {
    text-decoration: none !important;
    position: absolute;
    display: flex; 
    justify-content: center;
    transform: translateY(-50%);
    top: 83.7%;
    gap: 0.5rem;
    z-index: 100000000;

}

.fleche-container {
    position: relative;
    width: 2rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fleche-container img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 3.5rem;
}

.frame-container {
    width: 65vw; 
    height: 60vh; 
    position: relative;
    overflow: hidden; 
    display: flex;
    justify-content: center; 
    align-items: center; 
}

.frame-container img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
}

.frame-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.horizontal-links {
    line-height: 3rem;
    position: absolute;
    display: flex;
    font-size: 1.9rem;
    justify-content: center;
    bottom: 2%;
    right: 0.3%;
    flex-wrap: wrap; 
    width: 100%; 
    gap: 6%; 
    line-height: 3rem;
}

.horizontal-links img {
    width: 3.5rem;
    cursor: pointer;
}

.horizontal-links a {
    margin: 0 3%; 
    text-decoration: none;
    cursor: pointer;
    font-family: 'source-sans-proELI';
}

.titreImage {
    width: 100%; 
    position: absolute;
    top: 5%;
    justify-content: center; 
    align-items: center; 
}

.titreImage img{
    width: 27%;
}

.couleurTexte{
    font-family: 'source-sans-proL';
}
.couleurTexteGras{
    color: black;
    font-family: 'source-sans-proB';
}

.couleur1{
    width: 8rem;
    color: var(--anaroze-color1) !important; 
}
.couleur2{
    width: 8rem;
    color: var(--anaroze-color2) !important; 
}
.couleur3{
    width: 8rem;
    color: var(--anaroze-color3) !important;  
}

#curseurTexte {
    position: absolute;
    color: #211F24;
    font-size: 2rem;
    pointer-events: none;
    will-change: transform;
    z-index: 100000;
    font-family: 'source-sans-proBI';

}

.fade-text span {
    opacity: 0;
    display: inline-block;
    animation: fadeInLetter 1.2s forwards;
}

@keyframes fadeInLetter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 37.5rem;
}

.carousel-controls {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    display: block;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: none; 
    transform: translateY(-50%); 
    display: block;
}

.carousel-control-prev, .carousel-control-next {
    width: 3rem; 
    height: 3rem; 
    color: black;
    font-family: 'source-sans-proR';
    cursor: pointer;
    display: block; 
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    pointer-events: all; 
    position: fixed; 
    z-index: 1001; 
    -webkit-user-select: none; 
    -moz-user-select: none;   
    -ms-user-select: none;    
    user-select: none;
}

.carousel-control-prev {
    position: absolute;
    left: 18%;
}

.carousel-control-next {
    position: absolute;
    right: 18%;
}

.carousel-control-prev:hover{
    font-family: 'source-sans-proB';
}

.carousel-control-next:hover{
    font-family: 'source-sans-proB';
}

.carousel-control-prev:active{
    font-family: 'source-sans-proB';
    color: white;
}

.carousel-control-next:active{
    font-family: 'source-sans-proB';
    color: white;
}

.carousel-text {
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    display: none; 
    z-index: 100000;
}

.fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: fixed;
    z-index: 1000;
}
.frame-container.expanded img:not(.fullscreen),
.frame-container.expanded .carousel-text {
    display: none;  
}

.frame-container.expanded {
    width: 70vw;
    height: 70vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.frame-container.expanded img {
    width: auto;
    height: auto; 
}

.frame-container.expanded .carousel-text {
    width: 80vw; 
    max-width: 100%; 
    height: auto; 
    max-height: 100%; 
    font-size: 1.5rem; 
    line-height: 1.6;
    text-align: center;
    margin: 0 auto; 
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.fullscreen-counter {
    position: fixed !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    font-size: 1.5rem !important; 
    color: #fff; 
}

@media (max-width: 768px) {
    html {
        font-size: 70%; 
    }

    .titreImage{
        position:absolute;  
        top: 10%;
       
    }

    .titreImage img {
        width: 70%;
        
    }

    .carousel-text{
        font-size: 1.1rem;
    }

    .carousel-controls{
        top: 45%;
    }

    .carousel-control-prev {
        position: absolute;
        left: 5%;
    }
    
    .carousel-control-next {
        position: absolute;
        right: 5%;
    }  

    .vertical-links {
        transform: none;
        display: flex;
        width: 90%;
        order: 3; 
        top: 87%; 
        left: 9%; 
        position: absolute; 
    }

    .vertical-links2{
        position:absolute;
        top: 74%;
        left: 48%;
    }
    
    .vertical-links img{
        margin: 8px 3%; 
        width: 2rem;
    }

    #curseurTexte{
        display: none;
    }

    .horizontal-links {
        font-size: 1.5rem;
        order: 2; 
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center; 
        bottom: 13%;
        left: -2%;
        gap: 5%;  

    }

    .horizontal-links img {
        width: 3rem;
    }

    .frame-container {
        width: 100%; 
        max-width: 90vw; 
        min-width: 90vw;
        height: auto;
        max-height: 50vh; 
        position: relative;
        overflow: hidden;
    }

    .frame-container img {
        max-width: 60%; 
        max-width: 60%;
        object-fit: contain;
    }

    .frame-container video {
        max-width: 50%; 
        max-height: 50%; 
        object-fit: contain;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    
}