@font-face {
    font-family: 'Baskerville Local';
    src: url('assets/fonts/Baskervville-Regular.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: url("assets/Cursor.svg") 4 4, auto;
    margin: 0;
    overflow-x: hidden;
    background-color: #F1F0EE;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15)
    );
}
body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active .item_projet,
body.custom-cursor-active .item_projet * {
    cursor: none !important;
}
a,
button {
    cursor: url("assets/Cursor.svg") 6 6, pointer;
}

/* =========================================================
   INTRO
   ========================================================= */

.intro {
    position: relative;
    height: 94vh;
    background-color: #6C792A;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6vh;
    overflow: hidden;
}
/* .intro::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15)
    );
} */
.intro::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;

    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15)
    );

    transform: scaleY(0);
    transform-origin: top;
    /* animation: drawVerticalLines 2s cubic-bezier(0.22, 1, 0.36, 1) forwards; */
    animation: drawVerticalLines 1s linear forwards;
}
@keyframes drawVerticalLines {
    0% {
        transform: scaleY(0);
        opacity: 0.2;
    }
    100% {
        transform: scaleY(1);
        opacity: 0.2;
    }
}

.intro_content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro_logo {
    top: 5vh;
    position: relative;
    z-index: 2;
    width: 39vw;
    max-width: 760px;
    min-width: 320px;
}
/* .intro_logo {
    top: 5vh;
    position: relative;
    z-index: 2;
    width: 39vw;
    max-width: 760px;
    min-width: 320px;

    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
    animation: logoPopRotate 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes logoPopRotate {
    0% {
        opacity: 0;
        transform: scale(0.6) rotate(-8deg);
    }
    55% {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
    }
    75% {
        transform: scale(0.98) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
} */



.intro_text {
    position: relative;
    z-index: 2;
    margin-top: 14vh;
    font-family: 'Baskerville Local', serif;
    font-size: 3vw;
    letter-spacing: -0.05em;
    color: #F1F0EE;
    text-align: center;
    line-height: 1;
}

.intro_footer {
    position: relative;
    z-index: 2;
    margin-top: 0.1vh;
    text-align: center;
    color: #F1F0EE;
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -1px;
    font-weight: 300;
    font-size: small;
}

.tag_footer {
    display: inline-block;
    margin: 0 2px;
    padding: 4px 7px;
    border-radius: 5px;
    background: #CCD35A;
    color: #6C792A;
}

.intro_side_image {
    position: absolute;
    z-index: 1;
    width: 14.5vw;
    max-width: 320px;
    min-width: 180px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    left: 68vw;
    top: 44vh;

    transform: translate3d(0, -50%, 0);
    will-change: transform;
    pointer-events: none;
}
/* =========================================================
   btn magnet
   ========================================================= */

   .magnetic-btn {
    white-space: nowrap;
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -5%;
    font-size: 14px;
    padding: 18px 28px;
    border-radius: 999px;
    border: 1px solid #141414;
    background: transparent;
    color: #141414;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, color 0.3s ease;
}

.magnetic-btn:hover {
    color: #F1F0EE;
}

/* uniquement le span principal, pas arrow_wrap */
.magnetic-btn > span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    transition: color 0.3s ease;
}

/* fond animé */
.magnetic-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #141414;
    z-index: 1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.magnetic-btn:hover::before {
    transform: scaleY(1);
}

.magnetic-btn:not(:hover)::before {
    transform-origin: top;
}

/* wrapper fixe des flèches */
.arrow_wrap {
    position: relative;
    width: 0.7em;
    height: 0.7em;
    display: block;
    flex-shrink: 0;
    overflow: hidden;
}

/* les deux flèches superposées */
.arrow_btn,
.arrow-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

/* flèche noire visible par défaut */
.arrow_btn_default {
    opacity: 1;
}

/* flèche blanche cachée par défaut */
.arrow-hover {
    opacity: 0;
}

/* inversion au hover */
.magnetic-btn:hover .arrow_btn_default {
    opacity: 0;
}

.magnetic-btn:hover .arrow-hover {
    opacity: 1;
}



/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 10vh;
    background-color: #F1F0EE;
    transition: background-color 0.001s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
    transition: opacity 0.001s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #949494 calc(100% / 15 - 1px),
        #F1F0EE calc(100% / 15)
    );
}

.navbar.is-sticky {
    background-color: transparent;
    backdrop-filter: none;
}

.navbar.is-sticky::before {
    opacity: 0;
}

.navbar > * {
    position: relative;
    z-index: 1;
}

.navbar_hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn_proj_header {
    margin-top: 40px;
    font-family: 'Bricolage Grotesque', sans-serif;
    background-color: #F1F0EE;
    color: #161616;
    font-size: 13px;
    border-radius: 2px;
    border: none;
    transition: all 0.3s ease;
}

.btn_proj_header span {
    font-family: 'Kode Mono', monospace;
    font-size: 8px;
    font-weight: bold;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    gap: 0; /* supprime l’espace */
    line-height: 1;
}

.btn_proj_header:hover {
    color: #4D0015;
    transform: translateY(-2px);
}

.btn_proj_arrow {
    width: 0.5em;
    height: 0.5em;
    margin: 0;
    display: block;
}
.proj_header {
    padding-top: 2vh;
    margin-left: 1vw;
    margin-right: 1vw;
    display: flex;
    justify-content: space-between;
}

/* =========================================================
   SECTION PROJETS HOME
   ========================================================= */

.projets {
    position: relative;
    background-color: #F1F0EE;
    min-height: 100vh;
    padding-bottom: 15vw;
}

.projets::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #949494 calc(100% / 15 - 1px),
        #F1F0EE calc(100% / 15)
    );
}


.liste_projets {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
    padding-top: 5vh;
    overflow: visible;
}

/* 
.item_projet {
    width: 28%;
    position: relative;
    transition: transform 3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.item_projet:hover {
    transform: scale(1.06);
    z-index: 5;
}

.item_projet:not(.item_more):hover {
    z-index: 5;
}

.item_projet:not(.item_more):hover img {
    animation: floatRandom 5s ease-in-out infinite;
}

@keyframes floatRandom {
    0%   { transform: translate(0px, -8px); }
    20%  { transform: translate(2px, -10px); }
    40%  { transform: translate(-3px, -12px); }
    60%  { transform: translate(1px, -9px); }
    80%  { transform: translate(-2px, -11px); }
    100% { transform: translate(0px, -8px); }
}

.item_projet img {
    width: 100%;
    display: block;
} */
 
.item_projet {
    width: 28%;
    position: relative;
}

.project_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project_media {
    width: 100%;
    overflow: hidden;
}

.project_media img {
    width: 100%;
    display: block;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.item_projet:hover .project_media img {
    transform: scale(1.08);
}



.tags_projet {
    position: absolute;
    top: -1vh;
    left: 0.5vw;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1vw;
    z-index: 2;
}

.tags_projet span {
    background: #F1F0EE;
    color: #161616;
    font-family: 'Bricolage Grotesque', sans-serif;
    padding: 4px 4px;
    border-radius: 15px;
    font-size: 0.7vw;
}

.titre_projet {
    font-family: 'Kode Mono', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.numero {
    font-size: 14px;
    font-weight: 500;    
}

.titre {
    font-family: 'Baskerville Local', serif;
    font-size: 4vh;
    letter-spacing: -0.05em;
}

.arrow {
    font-family: 'Kode Mono', monospace;
    font-size: 3vh;
    margin-top: 1.5vh;
}

.item_more {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.more_button {
    white-space: nowrap; /* 🔥 clé */
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -5%;
    font-size: 16px;
    padding: 18px 28px;
    border: none;
    border-radius: 999px;
    background: #141414;
    color: #F1F0EE;
    display: inline-flex;
    align-items: center;
}



.more_button:hover {
    opacity: 0.9;
}

/* =========================================================
   CURSEUR CUSTOM PROJETS
   ========================================================= */

   .custom_cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 130px;
    height: 130px;
    background: black;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column; /* 🔥 */
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-family: 'Bricolage Grotesque', sans-serif;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease, top 0.05s linear, left 0.05s linear;
}
.arrow_custom_cursor {
    font-family: 'Kode Mono', monospace;
    margin-top: 4px;
    font-size: 5px;
    transform: rotate(-12deg);
}
.cursor_text {
    margin-top: 15px;
}

/* =========================================================
   GALERIE PROJETS + FILTRES
   ========================================================= */

.project_filter_content .item_projet {
    width: 30%; /* ou 34% si tu veux encore plus gros */
}

.project_filter_shell {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3vw;
    padding: 0 4vw 8vh 4vw;
    box-sizing: border-box;
}

.project_filter_panel {
    position: sticky;
    top: 60vh;
    align-self: flex-start;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 3vw;
}

.project_filter_title {
    margin: 0 0 8px 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #161616;
}

.project_filter_btn {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1vw;
    color: #161616;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.project_filter_btn:hover {
    opacity: 0.7;
    transform: translateX(2px);
}

.project_filter_btn.is-active {
    color: #4D0015;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project_filter_content {
    flex: 1;
    min-width: 0;
}

.project_filter_content .liste_projets {
    /* justify-content: flex-start; */
    gap: 2vw;
}

.project_filter_content .item_projet {
    cursor: none;
}

.liste_projets .item_projet.project_filtered_out {
    display: none !important;
}

/* =========================================================
   CARROUSEL
   ========================================================= */

   .carrousel_wrap {
    position: relative;
    height: 200vh;
}

.carrousel_fixed_btn {
    position: fixed;
    z-index: 2000;
    top: 2vh;
    right: 4vw;
    color: #141414;
    background-color: #E5E5E5;
    border: none;
    font-size: 2vh;
    border-radius: 1px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


.carrousel_fixed_btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.carrousel {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    perspective: 1200px;

    background-image: url("assets/carrousel/bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carrousel_track {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.carrousel_item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.carrousel_item.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
}

.carrousel_item.is-entering {
    opacity: 1;
    pointer-events: none;
    z-index: 3;
}

.carrousel_item.is-exiting {
    opacity: 1;
    pointer-events: none;
    z-index: 4;
}

.carrousel_item,
.carrousel_item .carrousel_image img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carrousel_image {
    position: relative;
    overflow: hidden;
}

.carrousel_image img {
    width: 30vw;
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.carrousel_item.is-exiting.is-direction-down .carrousel_image img {
    animation: photoExitUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.carrousel_item.is-entering.is-direction-down .carrousel_image img {
    animation: photoEnterFromBottom 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.carrousel_item.is-exiting.is-direction-up .carrousel_image img {
    animation: photoExitDown 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.carrousel_item.is-entering.is-direction-up .carrousel_image img {
    animation: photoEnterFromTop 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes photoExitUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-140%);
    }
}

@keyframes photoEnterFromBottom {
    0% {
        transform: translateY(140%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes photoExitDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(140%);
    }
}

@keyframes photoEnterFromTop {
    0% {
        transform: translateY(-140%);
    }
    100% {
        transform: translateY(0);
    }
}

/* =========================================================
   TEXTE : APPARITION LIGNE PAR LIGNE
   ========================================================= */

.carrousel_text p {
    overflow: hidden;
}

.line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: transform, opacity;
}

.carrousel_item.is-active .line.is-visible,
.carrousel_item.is-entering .line.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.carrousel_item.is-exiting.is-direction-down .line {
    opacity: 0;
    transform: translateY(-14px);
}

.carrousel_item.is-exiting.is-direction-up .line {
    opacity: 0;
    transform: translateY(14px);
}

.carrousel_container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 3vw;
    padding: 0 4vw;
    box-sizing: border-box;
}

.carrousel_index_title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5vh;
    color: #F1F0EE;
}

.carrousel_image,
.carrousel_text {
    width: auto;
}

.carrousel_index {
    width: auto;
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -0.05em;
    color: #F1F0EE;
    font-size: 2vh;
}

/* .carrousel_index p,
.carrousel_image_selector p {
    cursor: pointer;
} */

.underline {
    text-decoration: underline;
    transition: color 0.3s ease;

}
.underline:hover {
    text-decoration: underline;
    color: #FF9B8E;
}

.no_underline,
.carrousel_item_selected {
    width: fit-content;
    padding: 2px;
    border-radius: 2px;
    text-decoration: none;
    background-color: #FF9B8E;
    color: #4D0015;
}

.carrousel_image_selector {
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #FF9B8E;
    font-weight: lighter;
}

.carrousel_image_selector_disabled {
    white-space: nowrap;
    color: #784653;
    cursor: default;
}

.carrousel_text_title {
    font-family: 'Baskerville Local', serif;
    font-size: 2vh;
    font-weight: lighter;
    letter-spacing: -8%;
}

.carrousel_text {
    /* margin-left: 2vw; */
    color: #F1F0EE;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: lighter;
}

.carrousel_image_selector {
    transition: opacity 0.25s ease;
}

/* cacher pendant transition */
.carrousel_item.is-entering .carrousel_image_selector,
.carrousel_item.is-exiting .carrousel_image_selector {
    opacity: 0;
}

/* visible uniquement sur le slide actif */
.carrousel_item.is-active .carrousel_image_selector {
    opacity: 1;
}

.span_carrousel {
    font-family: 'Kode Mono', monospace;
    font-size: 1.3vh;
    margin-right: 0.4vw;
    font-weight: bold;
    text-decoration: none;
}


/* =========================================================
   IMAGE TIKTOK
   ========================================================= */

.img_tiktok_wrap {
    position: absolute;
    right: 5vw;
    bottom: -50vh;
    z-index: 4;
    pointer-events: none;
    will-change: transform;
}

.img_tiktok {
    height: 60vh;
    display: block;
    animation: floatTikTok 4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes floatTikTok {
    0% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}

/* =========================================================
   SECTION PICTURES
   ========================================================= */

.pictures {
    position: relative;
    height: 100vh;
    background-color: #F1F0EE;
    overflow: hidden;
    scroll-behavior:smooth;
}

.pictures::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #949494 calc(100% / 15 - 1px),
        #F1F0EE calc(100% / 15)
    );
}


.btn_pictures {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    white-space: nowrap; /* 🔥 clé */
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -5%;
    font-size: 16px;
    padding: 18px 28px;
    border: none;
    border-radius: 999px;
    background: #141414;
    color: #F1F0EE;
    display: inline-flex;
    align-items: center;
    z-index: 10;
}

.btn_pictures:hover {
    opacity: 0.9;
}
/* 
.btn_pictures {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 12px 24px;
    border-radius: 999px;
    background: #141414;
    color: #E4E3E1;
    border: none;
    font-family: 'Bricolage Grotesque', sans-serif;
} */

.photo-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.photo-track {
    position: absolute;
    inset: 0;
    transform: translateX(0);
    will-change: transform;
}

.photo-track-2 {
    display: none;
}

.photo {
    position: absolute;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.photo1  { width: 15vw; left: 4%;   top: 10%; }
.photo2  { width: 27vw; left: 8%;   top: 60%; }
.photo3  { width: 20vw; left: 30%;  top: 20%; }
.photo4  { width: 15vw; left: 58%;  top: 25%; }
.photo5  { width: 30vw; left: 70%;  top: 5%; }
.photo6  { width: 28vw; left: 63%;  top: 60%; }
.photo7  { width: 29vw; left: 98%;  top: 10%; }
.photo8  { width: 15vw; left: 102%; top: 55%; }
.photo9  { width: 23vw; left: 124%; top: 67%; }
.photo10 { width: 18vw; left: 130%; top: 8%; }
.photo11 { width: 12vw; left: 150%; top: 25%; }

/* =========================================================
   FOOTER homepage
   ========================================================= */


.footer {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
}

.footer_inner {
    transform: translateY(120px);
    will-change: transform;
    position: relative;
    background-color: #7D8A39;
    min-height: 50vh;
    background-image: url("assets/footer/LOGO.svg");
    background-size: 35vw;
    background-repeat: no-repeat;
    background-position: center 100%;
    display: flex;
    will-change: transform;
    transform: translateY(180px);
}

.footer_inner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #949494 calc(100% / 15 - 1px),
        #F1F0EE calc(100% / 15)
    );
}

/* pour que le contenu passe au-dessus du ::before */
.footer_inner > * {
    position: relative;
    z-index: 2;
}

.contact {
    margin-left: 1vw;
    margin-bottom: 1vh;
}

.network {
    margin-left: 36vw;
}

.sections {
    margin-left: 10vw;
}

.last_projects {
    margin-left: 10vw;
}

.contact p,
.network p,
.sections p,
.last_projects p {
    color: #FF9B8E;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5vh;
    margin-top: 6vh;
    margin-bottom: 1vh;
}

.contact a {
    text-decoration: transparent;
    color: #F1F0EE;
    font-weight: 1;
    letter-spacing: -5%;
}

.network a,
.sections a,
.last_projects a {
    text-decoration: underline;
    color: #F1F0EE;
    /* font-weight: ; */
    letter-spacing: -5%;
}

.contact {
    font-family: 'Baskerville Local', serif;
    color: #F1F0EE;
    font-size: 5vh;
}

.network,
.sections,
.last_projects {
    line-height: 2.5vh;
    font-size: 1.5vh;
    display: flex;
    flex-direction: column;
    color: #F1F0EE;
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* bouton */
.scrollTopBtn {
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #F1F0EE;
    color: #6C792A;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 3;
}

.scrollTopBtn:hover {
    transform: scale(1.1);
}

.scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   FOOTER projets
   ========================================================= */


.footer_projects {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
}

.footer_projects_inner {
    transform: translateY(120px);
    will-change: transform;
    position: relative;
    background-color: #4D0015;
    min-height: 50vh;
    background-image: url("assets/footer/LOGO2.svg");
    background-size: 35vw;
    background-repeat: no-repeat;
    background-position: center 100%;
    display: flex;
    will-change: transform;
    transform: translateY(180px);
}

.footer_projects_inner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #949494 calc(100% / 15 - 1px),
        #F1F0EE calc(100% / 15)
    );
}

/* pour que le contenu passe au-dessus du ::before */
.footer_projects_inner > * {
    position: relative;
    z-index: 2;
}

/* bouton */
.scrollTopBtn_footer_projects {
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #F1F0EE;
    color: #4D0015;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 3;
}

.scrollTopBtn_footer_projects:hover {
    transform: scale(1.1);
}

.scrollTopBtn_footer_projects.show {
    opacity: 1;
    pointer-events: auto;
}



/* .footer_projects {
    position: relative;
    background-color: #4D0015;
    min-height: 50vh;
    background-image: url("assets/footer/LOGO2.svg");
    background-size: 30vw;
    background-repeat: no-repeat;
    background-position: center calc(100%);
    display: flex;
    justify-content: space-around;
}

.footer_projects::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #949494 calc(100% / 15 - 1px),
        #F1F0EE calc(100% / 15)
    );
}

.contact_projects p,
.network_projects p,
.sections_projects p,
.last_projects_projects p {
    color: #FF9B8E;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2vh;
    margin-top: 2vh;
    margin-bottom: 0;
}

.contact_projects a,
.network_projects a,
.sections_projects a,
.last_projects_projects a {
    color: #F1F0EE;
}

.contact_projects {
    font-family: 'Baskerville Local', serif;
    color: #F1F0EE;
    font-size: 5vh;
}

.network_projects,
.sections_projects,
.last_projects_projects {
    display: flex;
    flex-direction: column;
    color: #F1F0EE;
    font-family: 'Bricolage Grotesque', sans-serif;
} */

/* =========================================================
   footer détaikl projets 
   ========================================================= */

.detail_footer_projects {
    position: relative;
    background-color: #4D0015;
    min-height: 20vh;
    background-size: 30vw;
    background-repeat: no-repeat;
    background-position: center calc(100%);
    display: flex;
    justify-content: space-around;
}
.detail_footer_projects::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #949494 calc(100% / 15 - 1px),
        #F1F0EE calc(100% / 15)
    );
}

/* =========================================================
   BOUTON RETOUR EN HAUT footer
   ========================================================= */

.scrollTopBtn {
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #F1F0EE;
    color: #6C792A;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.scrollTopBtn:hover {
    transform: scale(1.1);
}

.scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .carrousel_container {
        flex-direction: column;
        justify-content: center;
        gap: 4vh;
        padding: 6vh 6vw;
    }

    .carrousel_index,
    .carrousel_image,
    .carrousel_text {
        width: 100%;
        margin-left: 0;
    }

    .carrousel_image img {
        width: 70vw;
    }

    .carrousel_text {
        margin-left: 0;
    }

    .voice-player {
        width: 70vw;
        left: 50%;
        transform: translateX(-50%);
        bottom: 8vh;
    }

    .item_projet {
        width: 44%;
    }

    .project_filter_shell {
        flex-direction: column;
        gap: 3vh;
    }

    .project_filter_panel {
        position: static;
        top: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 18px;
        min-width: 0;
    }

    .project_filter_content .liste_projets {
        gap: 4vw;
    }

    .project_filter_content .item_projet {
        width: 40%;
    }
}

@media (max-width: 640px) {
    .project_filter_content .item_projet {
        width: 100%;
    }

    .titre {
        font-size: 32px;
    }

    .arrow {
        font-size: 10px;
    }
}



/* =========================================================
   détails des projets dymanique
   ========================================================= */
   .project_detail_banner {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.project_banner_title {
    letter-spacing: -5px;
    margin: 0;
    display: flex;
    justify-content: center;
}

.banner_title_wrap {
    position: relative;
    display: inline-block;
}

.banner_title {
    display: block;
    font-family: 'Baskerville Local', serif;
    font-size: 6vw;
    text-align: center;
    line-height: 1;
}

.banner_year {
    position: absolute;
    font-weight: normal;
    right: 100%;
    top: 0;
    margin-right: 12px;
    font-family: 'Baskerville Local', serif;
    font-size: 1.2vw;
    white-space: nowrap;
    transform: translateY(10%);
    letter-spacing: 0px;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.project_banner_description {
    margin-top: 1rem;
    text-align: center;
    font-family: 'Bricolage Grotesque', sans-serif;
}
.project_link {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   navbar projets
   ========================================================= */


.navbar_detail {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 10vh;
    z-index: 1000;
    background: transparent;
}


.detail_proj_header {
    padding-top: 2vh;
    margin-left: 4vw;
    margin-right: 4vw;
    display: flex;
    justify-content: space-between;
}


/* =========================================================
section de navigation détail projet
========================================================= */


.nav_detail_project {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    height: 30vh;
    align-items: center;
}


.nav_link_detail {
    font-family: 'Bricolage Grotesque', sans-serif;
    margin: 2vw;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 95%;
    font-size: 2vh;
}

.nav_link_detail a {
    color: #161616;
    /* background-color: #E4E3E1; */
    text-decoration: none;
}

.nav_detail_project_title {
    font-family: 'Baskerville Local', serif;
    letter-spacing: -5px;
    color: #161616;
    font-size: 7vh;
    text-decoration: underline transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}



.detail_nav_prev {
    margin-top: 40px;
    background-color: #c0c0c0;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #161616;
    font-size: 13px;
    border-radius: 2px;
    border: none;
    transition: all 0.3s ease;
    padding: 0.2%;
}



.detail_nav_prev span {
    font-family: 'Kode Mono', monospace;
    font-size: 8px;
    font-weight: bold;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0; /* supprime l’espace */
    line-height: 1;
}

.detail_nav_prev:hover {
    color: #4D0015;
    transform: translateY(-2px);
}

/* =========================================================
blocs de textes auto détail projets
========================================================= */


/* .project_dynamic_text {
    max-width: 800px;
    margin: 80px auto;
    text-align: center;
} */

.project_dynamic_text p {
    position: relative;
    z-index: 2;
    margin-top: 4vh;
    margin-bottom: 4vh;
    text-align: center;
    color: #161616;
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -1px;
    font-weight: 300;
    font-size: small;
}

/* =========================================================
images centrées détail projets
========================================================= */

.project_dynamic_image_centered {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 80px 0; /* espace vertical */
}

.project_dynamic_image_centered img {
    max-width: 60%;       /* 🔥 ajuste ici (40% / 50% / 70%) */
    max-width: 900px; /* sécurité */
    height: 70%;
    height: auto;
    display: block;
}





/* =========================================================
moasique de photos
========================================================= */

.mosaic-section {
    width: 100%;
    padding: 6vh 4vw;
    box-sizing: border-box;
    background: #F1F0EE;
}

.mosaic-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mosaic-gallery img {
    height: 59vh;
    flex-grow: 1;
    min-width: 160px;
    object-fit: cover;
    display: block;
}



/* =========================================================
visionneuse de photos
========================================================= */


.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 20, 20, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
}

.photo-lightbox.is-open {
    display: flex;
}

.photo-lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
}

.photo-lightbox-close,
.photo-lightbox-prev,
.photo-lightbox-next {
    position: absolute;
    border: none;
    background: transparent;
    color: #F1F0EE;
    cursor: pointer;
    font-size: 48px;
    line-height: 1;
}

.photo-lightbox-close {
    top: 24px;
    right: 32px;
}

.photo-lightbox-prev {
    left: 32px;
}

.photo-lightbox-next {
    right: 32px;
}



/* =========================================================
   INTRO ANIM
   ========================================================= */

   body.introAnim-lock {
    overflow: hidden;
    height: 100vh;
}

.introAnim {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    background-color: #F1F0EE;
    will-change: transform, opacity;

    /* 0.5 = animation 2x plus petite */
    --introAnim-scale: 0.5;
}

/* Grille de fond, identique à ta section .intro */
.introAnim::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;

    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15 - 1px),
        #E5E5E5 calc(100% / 15)
    );

    transform: scaleY(0);
    transform-origin: top;
    animation: drawVerticalLines 1s linear forwards;
}

/* =========================
   IMAGES
   ========================= */

.introAnim-images {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/*
   Wrapper qui réduit tout le groupe d'images
   sans casser les transforms GSAP des .introAnim-card.
*/
.introAnim-imagesScale {
    position: absolute;
    inset: 0;
    transform: scale(var(--introAnim-scale));
    transform-origin: center center;
}

.introAnim-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(220px, 28vw, 430px);
    margin: 0;
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity;
    overflow: visible;
}

.introAnim-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transform-origin: center center;
}

/* =========================
   LOGO
   ========================= */

.introAnim-logoStage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(76vw, 775px);
    aspect-ratio: 775 / 496;

    /*
       On garde le centrage d'origine,
       puis on réduit tout le logo d'un coup.
    */
    transform: translate(-50%, -50%) scale(var(--introAnim-scale));
    transform-origin: center center;

    z-index: 3;
    pointer-events: none;
}

.introAnim-logoPiece {
    position: absolute;
    display: block;
    object-fit: contain;
    opacity: 0;
    will-change: transform, opacity, clip-path;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .introAnim {
        --introAnim-scale: 0.65;
    }

    .introAnim-logoStage {
        width: min(92vw, 775px);
    }

    .introAnim-card {
        width: clamp(180px, 40vw, 340px);
    }
}

@media (max-width: 640px) {
    .introAnim {
        --introAnim-scale: 0.75;
    }

    .introAnim-card {
        width: clamp(150px, 54vw, 260px);
    }
}