/* Styles pour les écrans de chargement */
.js .loading:after,
.js .loading:before {
    content: "";
    position: fixed;
    z-index: 1000;
}

.js .loading:before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading:after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}

/* Styles de base pour les boutons sans bordures */
.unbutton {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
}

.unbutton:focus {
    outline: none;
}

/* Mise en page principale et éléments internes */
.cursor {
    display: none;
}

.content {
    padding: 1rem;
    display: flex;
    flex-wrap: nowrap; /* Empêche les éléments de se replier */
    width: 100%;
    height: auto;
    min-height: 500px;
    /*max-width: 760px; remove gsap scroll*/ 
    margin: auto;
    overflow: hidden; /* Cache le scrollbar natif */
    cursor: grab; /* Indique que l'élément peut être déplacé */
}

.item {
    flex: none;
    padding: 1rem;
    margin: 0 10px;
    transform: rotate(10deg);
}

.item__meta {
    font-size: 0.85rem;
    margin-top: 30px;
    padding-bottom: 1rem;
}

.item__meta-counter {
	font-family: 'blockberthold';
	font-size: 22px;
	text-transform: uppercase;
}

.item__meta-counter span{
	padding-top: 20px;
	border-top: 1px solid  #FCDCC9;
}

.item__meta-counter,
.item__meta-title{
    text-align: center;
    color: #FF9300;
}

.item__meta-title {
    font-weight: 400;
    font-size: 1.75rem;
    margin: 0;
}

.item__meta-detail {
    font-size: 12px;
    text-align: center;
    color: transparent;
}

.item:hover .item__meta-detail {
    color: #FF9300;
}

.item__meta > * {
    will-change: transform, opacity;
}

.thumb {
    position: relative;
    margin: 0;
    width: 200px;
    height: 300px;
    overflow: hidden;
}

.thumb__caption {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    font-size: 11px;
    padding: 1rem;
    background: #FA7216;
    border-radius: 10px;
    transform: translate3d(0, 100%, 0);
}

.thumb__caption-link {
    display: block;
    cursor: pointer;
    color: #FF9300;
}

.thumb__caption-link:hover {
    color: #FF9300;
}

.thumb__caption-title {
    color: #FFFFFF;
}

.distort__img{
	height: 280px;
}

.distort {
    pointer-events: none;
    margin: -75px 0 0 -75px;
}

@media screen and (min-width: 74em) {
    .content {
        z-index: 1000;
        padding-top: 0;
        justify-content: space-between;
        max-width: none;
    }
}



@media (max-width: 768px) {
    .content {
        overflow-x: hidden; /* Désactive le défilement horizontal sur les grands écrans */
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory; /* Assure que le contenu se positionne correctement après un swipe */
    	-webkit-overflow-scrolling: touch; /* Permet un défilement fluide sur iOS */
    }
    .item {
    	flex: 0 0 auto;
        width: auto; /* Permet à chaque élément d'avoir sa propre largeur basée sur son contenu */
        scroll-snap-align: start; /* Alignement pour le snap */
    }
}

/* Désactivation du cursor rose
@media (any-pointer: fine) {
    .cursor {
        position: fixed;
        top: 0;
        left: 0;
        display: block;
        pointer-events: none;
        z-index: 10000;
    }

    .cursor__inner {
        fill: #EC4899;
    }

    .no-js .cursor {
        display: none;
    }
} */
