@charset "UTF-8";

/* Déclaration de la police */
@font-face {
    font-family: 'IS-Plasma';
    src: url('../fonts/IS-PlasmaVF.ttf') format('truetype-variations');
    font-weight: 400 900;
    font-style: normal;
    font-variation-settings: "wght" 400;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* S'assurer que l'alignement du texte est correct sur tous les navigateurs */
body, html {
    text-align: left;
}

body {
    font-family: 'IS-Plasma', sans-serif;
    font-variation-settings: "wght" 400;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

/* Style du menu avec état caché */
.menu {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    padding: 0 60px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: translateY(-50%);
    z-index: 1000;
}

.menu.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Styles pour la page d'accueil */
#accueil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background: #ffffff;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#showreel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    mix-blend-mode: difference;
    z-index: 2;
}

/* Style du titre principal */
.overlay h1 {
    font-size: 4rem;
    font-variation-settings: "wght" 800;
    letter-spacing: 0.02em;
    color: white;
}

@media screen and (max-width: 768px) {


    .element {
        width: 100% !important;
        margin-bottom: var(--margin-size);
    }
    
    .element img,
    .element video {
        height: auto;
        width: 100%;
    }

    .categorie {
        font-size: 0.9rem;
        padding: 6px 12px;
        bottom: 15px;
        left: 20px;
    }

    /* Ajustement du titre ELIOT DÜBI */
    .projet-info h2 {
        padding: 6px 12px;
    }


    /* Ajustement de la page About */
    .about-page {
        padding: 15px;
        max-width: calc(100vw - 30px);
        width: calc(100vw - 30px);
    }

    .about-grid {
        gap: 5px;
    }

    .about-row {
        gap: 5px;
    }

    .about-spacer-large {
        height: 20px;
    }

    .about-spacer-small {
        height: 10px;
    }

    .about-grid h2,
    .about-grid p,
    .about-grid div {
        font-size: 0.9rem;
    }

    .contact-buttons-external .about-button:first-child {
        left: 10px;
    }

    .contact-buttons-external .about-button:last-child {
        right: 10px;
    }


 

    .grid-row img, .suzuki-row img, .hook-row img, .abri-row img, .ilan-row img,
    .grid-row video, .suzuki-row video, .hook-row video {
        width: 100% !important;
        height: auto;
    }

    /* Style pour les boutons de la liste des projets */
    #projets-liste button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* Style unifié pour tous les boutons du scroller */
    .projet-info .description,
    .date,
    .categorie {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

   

    /* Ajustement de la taille de la flèche sur mobile */
    .projet-item-titre::after {
        width: 4px;
        height: 4px;
        right: 12px;
        margin-top: -3px;
    }

    /* Ajustement du padding pour la flèche sur mobile */
    .projet-item-titre.active:hover {
        padding-right: 25px;
    }

    .galerie-titre,
    .galerie-projet-titre,
    .galerie-date,
    .galerie-categorie,
    .galerie-close {
        font-size: 0.9rem;
        padding: 6px 12px;
    }


    .galerie-header {
        padding: 40px 20px 20px 20px;
    }
    
    .galerie-header h1 {
        font-size: 5vh;
        margin-bottom: 2vh;
        margin-top: 5vh;
        line-height: 1.2;
    }
    
    .galerie-header {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .galerie-header .metadata {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }
    
    .galerie-header .metadata-item {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
    
    .galerie-header .metadata-item.has-visible-value {
        margin-bottom: 35px;
        margin-right: 0;
    }
    
    .galerie-header .metadata-label {
        text-align: center;
        transform: none !important;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .galerie-header .metadata-label:hover {
        transform: none !important;
        background-color: #ffffff;
        color: #000000;
    }
    
    .galerie-header .metadata-value {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) !important;
        margin-top: 5px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        white-space: nowrap;
        text-align: center;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .galerie-header .metadata-value.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) !important;
    }

    .overlay h1 {
        font-size: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }
}

/* Gestion de la visibilité */
#accueil.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Style du bouton dans l'overlay */
#start-exploration {
    display: none;
}

/* Scroller des projets */
#projets-scroller {
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 50vh;
    pointer-events: all !important;
}

#projets-scroller.visible {
    opacity: 1;
    transition-delay: 0.3s;
}

#projets-scroller::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari et Opera */
}

.projet {
    width: 100%;
    height: 200vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin-top: 50vh;
    pointer-events: all !important;
}

.projet:first-child {
    margin-top: 0; /* Enlever le margin-top du premier projet */
}

.projet:last-child {
    margin-bottom: 50vh;
}

/* Activer les pointer-events spécifiquement pour les éléments interactifs */
.projet-thumbnail,
.projet-info h2,
.projet-info .description,
.date,
.categorie,
.projet-info-bottom {
    pointer-events: auto !important;
}

.projet-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    max-width: 100%;
}

.projet-thumbnail {
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    cursor: pointer;
    max-width: 70vw !important;
    max-height: 80vh !important;
    position: relative;
    z-index: 50;
    background: transparent;
}

/* Style pour toutes les vidéos en thumbnail */
video.projet-thumbnail {
    background: transparent;
    object-fit: contain;
    border-radius: 5px;
}

.projet-info {
    position: fixed;
    width: 100vw;
    opacity: 0;
    z-index: 10;
    color: #000000;
    height: 100vh;
    top: 0;
    pointer-events: none;
}

.projet-info.active {
    opacity: 1;
    pointer-events: none;
}

.projet-info.active .date,
.projet-info.active .categorie,
.projet-info.active h2,
.projet-info.active .description {
    pointer-events: auto;
}

.projet-info h2 {
    position: fixed;
    top: 15px;
    left: 20px;
    text-align: left;
    color: #ffffff;
    font-variation-settings: "wght" 400;
    cursor: pointer;
    background-color: #000000;
    padding: 8px 15px;
    border-radius: 25px;
    z-index: 1100;
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.projet-info h2:hover {
    transform: translateX(10px) !important;
    transition: transform 0.3s ease, padding-right 0.3s ease;
    /* padding-left: -30px; */
    background-color: #000000;
    color: #fefefe;
}

.projet-info .description {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    cursor: pointer;
    background-color: #000000;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 25px;
    border-width: 2px;
    display: block;
    width: 100%;
    pointer-events: auto !important;
    z-index: 1100;
}

.projet-info .description.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#projets-liste.visible ~ .projet .projet-info .description,
#projets-liste.visible ~ .projet-info .description,
#projets-liste.visible + .projet .projet-info .description,
#projets-liste.visible + .projet-info .description {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Style pour la réapparition du titre uniquement */
.projet-info .description:not(.hidden) {
    display: block;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Style pour la date */
.date {
    position: fixed;
    bottom: 15px;
    right: 20px;
    font-size: 1rem;
    text-align: right;
    color: #ffffff;
    font-variation-settings: "wght" 400;
    background-color: #000000;
    padding: 8px 15px;
    border-radius: 25px;
    border-width: 2px;
    z-index: 2000;
    cursor: not-allowed;
    pointer-events: auto !important;
}

.projet-info-bottom {
    position: fixed;
    top: 15px;
    right: 20px;
    width: fit-content;
    text-align: right;
}

.projet-info.active {
    opacity: 1;
}

.projet-thumbnail:hover {
    transform: scale(1.02);
}


/* Forcer le border-radius sur toutes les vidéos thumbnail */
.projet .projet-thumbnail {
    border-radius: 5px;
}

/* Ajustement des tailles de texte */
h1, h2 {
    font-size: 1rem;
    line-height: 1.2;
    font-variation-settings: "wght" 400;
}

p, .date, .description {
    font-size: 1rem;
    line-height: 1.2;
    font-variation-settings: "wght" 400;
    text-align: left !important;
}

/* Animation de transition */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Styles pour la galerie - version minimaliste */
.galerie {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: scroll;
    overflow-x: hidden; /* Empêcher le défilement horizontal */
}

.galerie.visible {
    opacity: 1;
    pointer-events: auto;
}

.galerie.hidden {
    opacity: 0;
    pointer-events: none;
}

:root{
    --margin-size: 1%;
}

.container {
    width: calc(100vw - var(--margin-size));
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--margin-size);
    margin: 0 auto;
    padding-bottom: 7vh; /* Ajouter de l'espace en bas pour le défilement */
}   

.element {
    box-sizing: border-box;
    margin-bottom: calc(var(--margin-size) / 2);
    overflow: hidden;
    position: relative;
    height: auto;
}

.element img,
.element video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.full {
    width: 100%;
}

.half {
    width: calc(50% - var(--margin-size) / 4);
}

.third {
    width: calc(100% / 3 - var(--margin-size) / 3);
}

.quarter {
    width: calc(100% / 4 - var(--margin-size) / 4);
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
    line-height: 1.2;
    text-transform: capitalize;
    color: #000000;
}

.metadata-label {
    font-variation-settings: "wght" 400;
    text-transform: none;
}

.galerie-grid {
    padding: 0 5px 5px 5px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    background-color: #000000;
}

.grid-row {
    display: flex;
    width: 100%;
    background: #000000;
    margin-bottom: 5px;
}

.grid-row.full {
    height: 80vh;
    background: #000000;
}

.grid-row.split {
    height: 35vh;
    justify-content: space-between;
    background: #000000;
}

.grid-row.split img {
    width: calc(50% - 2.5px);
    height: 100%;
    object-fit: cover;
    margin-right: 5px;
}

.grid-row.split img:last-child {
    margin-right: 0;
}

.grid-row.full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-row video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    display: block;
}

.grid-row.split video {
    width: calc(50% - 1.5px);
    height: 100%;
    object-fit: contain;
    background: #000000;
    display: block;
}

/* Style pour la catégorie */
.categorie {
    position: fixed;
    bottom: 15px;
    left: 20px;
    font-size: 1rem;
    text-align: left;
    color: #ffffff;
    font-variation-settings: "wght" 400;
    background-color: #000000;
    padding: 8px 15px;
    border-radius: 25px;
    border-width: 2px;
    width: fit-content;
    z-index: 2000;
    cursor: not-allowed;
    pointer-events: auto !important;
}


/* Ajouter un conteneur pour l'effet d'éclairage */
.background-lighting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.background-lighting.active {
    opacity: 0.8;
}

.galerie::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Masquer la barre de défilement mais garder la fonctionnalité */
.galerie {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer et Edge */
}

/* Ajouter les styles pour la liste des projets */
.projets-liste {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    z-index: 1900;
    padding: 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-right: 20px;
}

.projets-liste.visible {
    transform: translateX(0);
    opacity: 1;
}

.projet-item {
    margin-bottom: 10px;
    text-align: right;
}

.projet-item-titre {
    font-size: 1rem;
    font-variation-settings: "wght" 400;
    cursor: pointer;
    transform: translateX(0);
    transition: transform 0.3s ease;
    color: #000000;
    background-color: white;
    border: 2px solid #000000;
    padding: 8px 15px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 10px;
}

.projet-item-titre::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    right: 15px;
    top: 50%;
    margin-top: -4px;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    pointer-events: none;
    visibility: hidden;
}

.projet-item-titre.active:hover::after {
    opacity: 1;
    visibility: visible;
}

.projet-item-titre:hover {
    transform: translateX(-10px);
}

.projet-item-titre.active:hover {
    padding-right: 30px;
    transform: translateX(-10px);
    transition: transform 0.3s ease, padding-right 0.3s ease;
}

.projet-item-titre.active {
    color: #ffffff;
    background-color: #000000;
    border-color: #000000;
}

.project-thumbnail img,
.project-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    overflow: hidden;
}


/* Styles pour la page About */
.about-page {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 150vh;
    max-height: 90vh;
    background-color: #ffffff !important;
    color: #000000;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease, height 0.3s ease;
    border-radius: 15px;
    border-width: 2px;
    padding: 35px 40px 45px 40px;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    height: auto;
}

/* Grille en 4 colonnes */
.about-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.about-row {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: flex-start;
}

.about-col-1 {
    width: 25%;
    text-align: left;
}

.about-col-2 {
    width: 25%;
    text-align: left;
}

.about-col-3-4 {
    width: 50%;
    text-align: left;
}

.about-col-2-3-4 {
    width: 75%;
    text-align: left;
    display: flex;
    align-items: flex-start;
}

.about-col-1-2-3-4 {
    width: 100%;
    text-align: left;
}

.about-spacer-large {
    height: 40px;
}

.about-spacer-small {
    height: 20px;
}

/* Boutons de contact externes */
.contact-buttons-external {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3001;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.contact-buttons-external.visible {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

.contact-buttons-external .about-button:first-child {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}

.contact-buttons-external .about-button:last-child {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}

/* Version mobile pour les boutons de contact */
@media screen and (max-width: 768px) {
    .contact-buttons-external {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: center;
        width: auto;
    }

    .contact-buttons-external .about-button:first-child,
    .contact-buttons-external .about-button:last-child {
        position: static;
        transform: none;
        left: auto;
        right: auto;
        top: auto;
    }
}

/* Styles pour les titres et textes dans la grille */
.about-grid h2 {
    font-variation-settings: "wght" 400;
    margin: 0;
    padding: 0;
    color: #000000;
    text-align: left !important;
    font-size: 1rem;
    line-height: 1.2;
    text-transform: none;
}

.about-grid p {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: #000000;
    text-align: left !important;
    font-size: 1rem;
    width: 100%;
}

.about-grid div {
    font-size: 1rem;
    line-height: 1.2;
    color: #000000;
    text-align: left !important;
}

/* Ajouter un overlay flouté pour l'arrière-plan */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.about-page.visible {
    opacity: 1;
    pointer-events: auto;
}


.formation-item {
    margin-bottom: 10px;
}

.formation-item:last-child {
    margin-bottom: 0;
}

.formation-item:first-child {
    margin-top: 10px;
}

.formation-item p {
    margin: 0;
    padding: 0;
    line-height: 1.2rem;
}

/* Style pour le bouton de fermeture */
.close-about {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 1000;
    color: #000000;
}

.close-about:hover {
    transform: scale(1.2);
    color: #000000;
}

/* Style spécifique pour le bouton ELIOT DÜBI dans le menu déroulant */
.menu-deroulant button:first-child {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.menu-deroulant button:first-child:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateX(10px);
}

/* Ajouter une classe pour la disparition instantanée */
#projets-liste.instant-hide {
    transition: none;
    opacity: 0;
}



/* Modification du background des galeries */
.galerie-grid {
    padding: 0 5px 5px 5px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    background-color: #000000;
}

/* Désactiver toutes les interactions système */
* {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
}

/* S'assurer que seul le conteneur principal de la galerie a un fond noir */
.galerie {
    background: #000000;
}

/* Rétablir le fond blanc pour les boutons */
.galerie-header-button,
.site-link-button,
.galerie button[class*="button"] {
    background: #ffffff !important;
}

/* Forcer la transparence uniquement sur les médias */
.galerie img,
.galerie video,
.galerie-grid,
.grid-row,
.dead-man-row-1, .dead-man-row-2, .dead-man-row-3, .dead-man-row-4,
.range-row, .range-row-triple,
.ilan-row,
.amant-row,
.hook-row,
.suzuki-row,
.litho-row,
.litho-row-triple,
.grid-row.full,
.grid-row.split {
    background: transparent !important;
    background-color: transparent !important;
}

.about {
    background-color: #ffffff;  /* Changement du fond en blanc */
    color: #000000;            /* Changement du texte en noir */
}

/* Styles communs pour les éléments d'information de la galerie */
.galerie-titre,
.galerie-projet-titre,
.galerie-date,
.galerie-categorie,
.galerie-close {
    position: fixed;
    background-color: #ffffff;
    color: #000000;
    padding: 8px 15px;
    border-radius: 25px;
    border-width: 2px;
    line-height: 1.2;
    font-size: 1rem;
    z-index: 2100;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet hover sur les boutons */
.galerie-titre:hover,
.galerie-projet-titre:hover,
.galerie-close:hover {
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Style spécifique pour les boutons date et catégorie */
.galerie-date,
.galerie-categorie {
    cursor: not-allowed;
}

.galerie-date:hover,
.galerie-categorie:hover {
    transform: none;
}

/* Position pour chaque élément */
.galerie-titre {
    top: 15px;
    left: 20px;
}

.galerie-projet-titre {
    top: 15px;
    right: 20px;
}

.galerie-date {
    bottom: 15px;
    right: 20px;
}

.galerie-categorie {
    bottom: 15px;
    left: 20px;
}

.galerie-close {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    border: none;
    font-family: 'IS-Plasma', sans-serif;
    font-variation-settings: "wght" 400;
}

.galerie-close:hover {
    transform: translate(-50%, -2px);
}



/* Styles pour l'en-tête de la galerie */
.galerie-header {
    width: 100%;
    padding: 10vh 5vw 5vh 5vw;
    color: #ffffff;
    text-align: left;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.galerie-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10vh;
    width: 100%;
    height: 10vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.galerie-header h1 {
    font-size: 3.5rem;
    font-variation-settings: "wght" 600;
    margin-bottom: 3vh;
    line-height: 0.9;
    text-align: center;
    width: 100%;
}

.galerie-header .description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 0 3vh 0;
    padding-left: 100px;
    padding-right: 90px;
    line-height: 1.2;
    font-variation-settings: "wght" 400;
    text-align: left;
    width: 100%;
}

@media screen and (max-width: 890px) {
    .galerie-header .description {
        padding-left: 0;
        padding-right: 0;
    }
}

.galerie-header .metadata {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 3vh;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.galerie-header .metadata-item {
    display: flex;
    gap: 0;
    align-items: center;
    margin: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.galerie-header .metadata-item.has-visible-value {
    margin-right: calc(var(--value-width, 0px) - 10px);
}

.galerie-header .metadata-label {
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 8px 15px;
    border-radius: 25px;
    border-width: 2px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
    background-color: transparent;
    text-transform: none;
}

/* Style spécifique pour les liens externes dans les métadonnées */
.galerie-header .metadata-item a.metadata-label {
    display: inline-block;
    color: #ffffff;
    border: 2px solid #ffffff;
    background-color: transparent;
    text-decoration: none;
}

.galerie-header .metadata-item a.metadata-label:hover {
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
}

.galerie-header .metadata-label:hover {
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
}

.galerie-header .metadata-item.has-visible-value .metadata-label {
    background-color: #ffffff;
    color: #000000;
}

.galerie-header .metadata-value {
    background-color: #ffffff;
    color: #000000;
    padding: 8px 15px;
    border-radius: 25px;
    border-width: 2px;
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: calc(100% + 10px);
    white-space: nowrap;
    z-index: 2;
}

.galerie-header .metadata-value.visible {
    opacity: 1;
    transform: translateX(0);
    border: 2px solid white;
    pointer-events: auto;
}

.galerie-header .metadata-item:last-child .metadata-label {
    margin-right: 0;
}


@keyframes scrollHint {
    0% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    45% {
        transform: translateY(-45px);
        animation-timing-function: cubic-bezier(0.8, 0, 0.2, 1);
    }
    90% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    100% {
        transform: translateY(0);
    }
}

.projet:first-child .projet-thumbnail.animate-scroll {
    animation: scrollHint 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    50% {
        transform: translateX(4px);
    }
    75% {
        transform: translateX(-4px);
    }
}

.shake-animation {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Assurer que les éléments inactifs n'interfèrent pas */
.projet-info:not(.active) {
    visibility: hidden;
    pointer-events: none;
}

.projet-info:not(.active) .date,
.projet-info:not(.active) .categorie {
    visibility: hidden;
    pointer-events: none;
}

/* Styles pour l'overlay d'agrandissement des médias */
.media-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.media-overlay.visible {
    opacity: 1;
}

.media-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.media-overlay.visible .media-container {
    transform: scale(1);
}

.media-element {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    cursor: pointer;
    border-radius: 5px;
}

.media-close {
    display: none;
}



/* Curseur pointer sur les images et vidéos de la galerie */
.galerie .element img,
.galerie .element video {
    cursor: pointer;
}

/* Ajouter des règles spécifiques pour mobile */
@media screen and (max-width: 768px) {
    .galerie {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        width: 100%;
        overflow-x: hidden;
    }

    .element {
        width: 100% !important;
        overflow-x: hidden;
    }

    .element img,
    .element video {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .grid-row {
        overflow-x: hidden;
    }

    .grid-row img,
    .grid-row video {
        width: 100%;
        max-width: 100%;
    }

    /* Styles spécifiques pour les métadonnées sur mobile */
    .galerie-header .metadata {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }
    
    .galerie-header .metadata-item {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
    
    .galerie-header .metadata-item.has-visible-value {
        margin-bottom: 35px;
        margin-right: 0;
    }
    
    .galerie-header .metadata-label {
        text-align: center;
        transform: none !important;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .galerie-header .metadata-label:hover {
        transform: none !important;
        background-color: #ffffff;
        color: #000000;
    }
    
    .galerie-header .metadata-value {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) !important;
        margin-top: 5px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        white-space: nowrap;
        text-align: center;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .galerie-header .metadata-value.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) !important;
    }
}

.about-title {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    font-variation-settings: "wght" 400;
    margin: 0;
    padding: 0;
    color: #000000;
}

.about-button {
    padding: 8px 15px;
    border-radius: 25px;
    border-width: 2px;
    background: #000000;
    color: #ffffff;
    font-family: 'IS-Plasma', sans-serif;
    font-variation-settings: "wght" 400;
    font-size: 1rem;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
    cursor: default;
    width: auto;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0;
}

.about-button[href] {
    cursor: pointer;
}

.about-button[href]:hover {
    background: #ffffff;
    color: #000000;
}

