/* #region STRUCTURE ----------------------------------------------------------------------------------------------------- */

/* =========================================
   Modern CSS Reset — Blanc Mistral
   ========================================= */

   

/* 1. Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Improve text rendering */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* 4. Body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-bg);
    color: var(--color-dark);
}

/* 5. Media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 6. Remove built-in form typography styles */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* 7. Buttons reset */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* 8. Remove list styles only when needed */
ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
}

/* 9. Headings balance */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    overflow-wrap: break-word;
}

/* 10. Paragraphs */
p {
    overflow-wrap: break-word;
}

/* 11. Links */
a {
    color: inherit;
    text-decoration-skip-ink: auto;
}

/* 12. Focus styles (accessible) */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* 13. Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ///////////////////////////////////////////////////////////////////////////////////////////
                        GENERAL
/////////////////////////////////////////////////////////////////////////////////////////// */

/* --------------------------- Typographies --------------------------- */

/* ------ Noir et Blanc ------ */

@font-face {
    font-family: "noiretblanc";
    src: url("/assets/fonts/noiretblanc.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "noiretblanc-medium";
    src: url("/assets/fonts/noiretblanc-medium.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "noiretblanc-med-italic";
    src: url("/assets/fonts/noiretblanc-med-italic.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "noiretblanc-bold.";
    src: url("/assets/fonts/noiretblanc-bold.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "noiretblanc-bold-italic";
    src: url("/assets/fonts/noiretblanc-bold-italic.woff2") format("woff2");
    font-display: swap;
}

/* ------ Bricolage ------ */

@font-face {
    font-family: "bricolage-light";
    src: url("/assets/fonts/bricolage-light.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "bricolage";
    src: url("/assets/fonts/bricolage-regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "bricolage-bold";
    src: url("/assets/fonts/bricolage-bold.woff2") format("woff2");
    font-display: swap;
}

/* ------ Lato ------ */

@font-face {
    font-family: "lato-light";
    src: url("/assets/fonts/lato-light.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "lato-regular";
    src: url("/assets/fonts/lato-regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "lato-bold";
    src: url("/assets/fonts/lato-bold.woff2") format("woff2");
    font-display: swap;
}

/* --------------------------- Variables --------------------------- */

/* ------ Typos ------ */

:root {
    --font-primary: "bricolage", sans-serif;
    --font-secondary: "lato-regular", sans-serif;
    --font-special: "noiretblanc-bold-italic", serif;

    --font-size-xs: clamp(0.75rem, 0.72rem + 0.20vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.84rem + 0.25vw, 1rem);
    --font-size-base: clamp(1rem, 0.96rem + 0.30vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1.06rem + 0.40vw, 1.25rem);

    --font-size-xl: clamp(1.25rem, 1.12rem + 0.85vw, 1.75rem);
    --font-size-2xl: clamp(1.5rem, 1.28rem + 1.10vw, 2.1rem);
    --font-size-3xl: clamp(1.875rem, 1.58rem + 1.60vw, 2.75rem);
    --font-size-4xl: clamp(2.25rem, 1.85rem + 2.40vw, 3.75rem);
    --font-size-5xl: clamp(3rem, 2.35rem + 3.60vw, 5rem);
    --font-size-hero: clamp(2rem, 1.6rem + 2.2vw, 4.5rem);



    --font-size-xl-s: clamp(1.15rem, 1.04rem + 0.75vw, 1.6rem);
    --font-size-2xl-s: clamp(1.35rem, 1.16rem + 1.0vw, 1.9rem);
    --font-size-3xl-s: clamp(1.7rem, 1.45rem + 1.4vw, 2.45rem);
    --font-size-4xl-s: clamp(2.05rem, 1.7rem + 2.1vw, 3.4rem);

    --font-size-special: clamp(1.75rem, 1.48rem + 1.8vw, 3.6rem);



    /* Display extra (optionnel, à utiliser rarement) */
    --font-size-big: clamp(3rem, 2.4rem + 5vw, 6rem);

}


/* ------ Couleurs ------ */

:root {
    --color-dark: #333333;
    --color-light: #f7f3eb;
    --color-jaune: #f4c542;
    --color-lavande: #9b59b6;
    --color-ocre: #f26419;
    --color-bg: #f7f3eb;

}

/* ------ Espacements ------ */

:root {
    --space-xs: clamp(0.25rem, 0.22rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.45rem + 0.35vw, 0.9rem);
    --space-md: clamp(0.9rem, 0.8rem + 0.55vw, 1.5rem);
    --space-lg: clamp(1.25rem, 1.1rem + 0.9vw, 2.25rem);
    --space-xl: clamp(1.75rem, 1.5rem + 1.4vw, 3.25rem);
    --space-2xl: clamp(2.5rem, 2.1rem + 2vw, 4.5rem);
    --space-3xl: clamp(3.25rem, 2.8rem + 2.6vw, 6rem);
    --space-4xl: clamp(4.25rem, 3.6rem + 3.4vw, 8rem);
    --space-5xl: clamp(5.5rem, 4.6rem + 4.5vw, 11rem);
    --space-6xl: clamp(6.8rem, 5.8rem + 6.5vw, 16rem);
}


/* --------------------  Arrière plan du site -------------------- */

:root {
    --grain-opacity: 0.95;
    /* 0.08 à 0.16 */
    --grain-scale: 1.2;
}

.grain-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    /* grain background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.40'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 240px 240px;

    opacity: var(--grain-opacity);
    mix-blend-mode: multiply;
    /* top sur fond clair */
    transform: translate3d(0, 0, 0) scale(var(--grain-scale));
    will-change: transform;

    animation: grainMove 1.6s steps(6) infinite;
}

/* animation en “sauts” pour un grain naturel */
@keyframes grainMove {
    0% {
        transform: translate3d(0, 0, 0) scale(var(--grain-scale));
    }

    10% {
        transform: translate3d(-2%, -3%, 0) scale(var(--grain-scale));
    }

    20% {
        transform: translate3d(-4%, 2%, 0) scale(var(--grain-scale));
    }

    30% {
        transform: translate3d(3%, -4%, 0) scale(var(--grain-scale));
    }

    40% {
        transform: translate3d(-3%, 3%, 0) scale(var(--grain-scale));
    }

    50% {
        transform: translate3d(4%, 1%, 0) scale(var(--grain-scale));
    }

    60% {
        transform: translate3d(2%, -2%, 0) scale(var(--grain-scale));
    }

    70% {
        transform: translate3d(-1%, 4%, 0) scale(var(--grain-scale));
    }

    80% {
        transform: translate3d(-4%, -1%, 0) scale(var(--grain-scale));
    }

    90% {
        transform: translate3d(3%, 2%, 0) scale(var(--grain-scale));
    }

    100% {
        transform: translate3d(0, 0, 0) scale(var(--grain-scale));
    }
}

/* accessibilité */
@media (prefers-reduced-motion: reduce) {
    .grain-bg {
        animation: none;
    }
}

/* assure que le contenu passe au-dessus */
header,
main,
footer {
    position: relative;
    z-index: 1;
}


/* --------------------  Curseur -------------------- */


@media (width >=1200px) {



/* Curseur original adapté au comportement halo */
.cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000000;
}

.cursor-point {
  position: absolute;
  top: 0;
  left: 0;
 width: 17px;
height: 14px;
border-radius: 50% 50% 45% 55%;
  background-color: var(--color-ocre); /* couleur originale */
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.cursor-halo {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background-color: var(--color-ocre); /* couleur originale */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cursor-wrapper.active .cursor-point {
  opacity: 0;
}

.cursor-wrapper.active .cursor-halo {
  opacity: 1;
}

.cursor-wrapper.is-hidden {
  opacity: 0;
  pointer-events: none;
}


/* -------------------- Animation au chargement -------------------- */

/* Fade + translateY pour les deux premiers éléments */
.fade-translate {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out; /* plus long et doux */
}

/* Fade simple pour le troisième élément */
.fade {
  opacity: 0;
  transition: opacity 1.5s ease-out; /* plus long pour un fondu discret */
}

/* Fade + translateX pour le dernier élément */
.fade-right {
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out; /* plus long et doux */
}

/* État visible */
.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}


/* -------------------- Animation au scroll -------------------- */

.fade-simple {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-simple.is-visible {
  opacity: 1;
}


/* Fade-in original (ton effet de base) */
.fade-in {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 1️⃣ Fade + Slide Up */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2️⃣ Fade + Slide Left */
.fade-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 3️⃣ Fade + Scale */
.fade-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}


}
/* -------------------- Titres -------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
}

h1 {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-5xl);
    line-height: normal;
}

h2 {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-4xl);
    font-weight: bold;
    line-height: 1.2;
}

h3 {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-3xl);
    font-weight: bold;
    line-height: 1.2;
}

h4 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-2xl);
}

h5 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xl);
}

h6 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
    letter-spacing: 0.04em;
}

[class^="texte-noir-blanc-"] {
    font-family: var(--font-special);
    color: var(--color-ocre);
}

.texte-noir-blanc-h1 {
    font-size: var(--font-size-special);
}

.texte-noir-blanc-h2 {
    font-size: var(--font-size-4xl-s);
    font-weight: normal;
}

.texte-noir-blanc-h3 {
    font-size: var(--font-size-3xl-s);
    font-weight: normal;
}

.texte-noir-blanc-h4 {
    font-size: var(--font-size-2xl-s);
    font-weight: normal;
}



/* -------------------- Textes -------------------- */

p {
    font-size: var(--font-size-lg);
    font-family: var(--font-secondary);
}

blockquote {
    font-size: var(--font-size-lg);
    font-family: var(--font-special);
}

/* -------------------- Listes -------------------- */

ul {
    margin: var(--space-sm) 0;
}

ul li {
    font-size: var(--font-size-base);
    font-family: var(--font-secondary);
}

/* -------------------- Liens -------------------- */

a {
    display: inline-block;
    width: fit-content;
    text-decoration: none !important;
    cursor: pointer;
    color: var(--color-ocre);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: color 0.5s ease-in-out;
    position: relative;
    z-index: 10;
    margin-bottom: var(--space-xs);
    transition: color 0.3s ease;
}



a:hover {
    color: var(--color-secondary);
}


.hover-word {
    display: inline-block;
    overflow: hidden;
}

.hover-word .word {
    display: inline-flex;
}

.hover-word .word span {
    display: inline-block;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* mot clone */
.hover-word .word.clone {
    position: absolute;
    left: 0;
    top: 0;
}

.hover-word .word.clone span {
    transform: translateY(120%);
}

.hover-word .word span {
    white-space: pre;
}

/* hover */
.hover-word:hover .word:not(.clone) span {
    transform: translateY(-120%);
}

.hover-word:hover .word.clone span {
    transform: translateY(0);
}

/* -------------------- Boutons -------------------- */

/* ==========================================================
   BOUTON — MOBILE FIRST
========================================================== */

a.btn-primary {
    height: 40px;
    border: 1px solid var(--color-ocre);
    border-radius: 99px;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
    box-sizing: border-box;

    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.2;

    color: var(--color-ocre);

    /* fond animé */
    background-image: linear-gradient(
        to right,
        var(--color-ocre) 50%,
        transparent 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;

    padding: var(--space-xs) var(--space-sm);
    width: fit-content;
    text-align: center;
    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

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

    position: relative;
    z-index: 60;

    transition:
        background-position 0.35s cubic-bezier(.16, 1, .3, 1),
        color 0.3s ease-in-out,
        border-color 0.3s ease-in-out,
        transform 0.2s ease-in-out;
}

/* ==========================================================
   MOBILE / TABLETTE — PAS DE +
========================================================== */

.btn-arrow {
    display: none;
}

/* ==========================================================
   SVG
========================================================== */

.btn-arrow svg {
    width: 15px;
}

.st0 {
    stroke-width: 3px;
    stroke: var(--color-ocre);
    transition: stroke 0.3s ease-in-out;
}

/* ==========================================================
   HOVER GÉNÉRAL (safe partout)
========================================================== */

a.btn-primary:hover {
    background-position: 0 0;
    border-color: var(--color-ocre);
    color: var(--color-light);
    transform: scale(1.05);
}

/* ==========================================================
   DESKTOP — HOVER RÉEL UNIQUEMENT
========================================================== */

@media (hover: hover) and (pointer: fine) {

    .btn-arrow {
        display: flex;

        position: absolute;
        top: 50%;
        right: 0;

        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--color-ocre);

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

        transform: translate(0, -50%) rotate(0deg);
        opacity: 0;
        visibility: hidden;

        transition:
            transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
            opacity 0.3s ease-in-out,
            visibility 0.3s ease-in-out;
    }

    a.btn-primary:hover .btn-arrow {
        transform: translate(50px, -50%) rotate(180deg);
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================
   BONUS — PAS DE SCALE SUR TACTILE
========================================================== */

@media (hover: none) {
    a.btn-primary:hover {
        transform: none;
    }
}

/* #endregion */

/* #region STYLE ----------------------------------------------------------------------------------------------------- */


/* ============================================================================================================================================
===============================================================================================================================================
                        ACCUEIL
===============================================================================================================================================
============================================================================================================================================ */


/* ///////////////////////////////////////////////////////////////////////////////////////////
                        LOGO HEADER
/////////////////////////////////////////////////////////////////////////////////////////// */


.logo-header a{
    display: block;
    width: fit-content;
}

.logo-header img {
    width: clamp(80px, 5vw, 120px);
    margin: var(--space-sm);
}



/* ///////////////////////////////////////////////////////////////////////////////////////////
                        HERO ACCUEIL
/////////////////////////////////////////////////////////////////////////////////////////// */

.hero {
    max-width: calc(100% - var(--space-xl) * 2);
    margin: var(--space-2xl) auto var(--space-2xl) auto;
    align-content: center;
}

.logo-hero-max {
    position: absolute;
    width: 80%;
    top: 0;
    right: 0;
}

.titre-page {
    font-size: var(--font-size-hero);
    margin-bottom: var(--space-lg);
}

.intro-page {
    margin-bottom: var(--space-md);
}


@media (width >=1200px) {
    .hero {
        max-width: 80%;
    }

    .intro-accueil {
        max-width: 60%;
    }
}

/* ///////////////////////////////////////////////////////////////////////////////////////////
                        EXPERTISE
/////////////////////////////////////////////////////////////////////////////////////////// */

/* -------------------- Introduction - expertise -------------------- */

.intro-expertise {
    min-height: 30dvh;
    background-image: linear-gradient(rgba(243, 241, 236, 0.85), rgba(243, 241, 236, 0.85)),
        url("/assets/img/oculus-new-york.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-content: center;
    padding: var(--space-xl);
}

.intro-expertise-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.texte-noir-blanc-h2 {
    font-family: var(--font-special);
    font-size: var(--font-size-4xl-s);
    font-weight: normal;
}

@media (width >=1200px) {
    .intro-expertise {
        background-attachment: fixed;
    }

    .intro-expertise-content {
        flex-direction: row;
        max-width: 900px;
        margin: auto;
    }

    .intro-expertise h2 {
        width: 50%;
    }

    .intro-expertise p {
        width: 50%;
    }
}

/* -------------------- Les domaines d'expertise -------------------- */

#domaine-expertise {
    padding-top: var(--space-5xl);
}

.stacking-cards {
    position: relative;
    z-index: 0;
    --stack-top: var(--space-5xl);
    --stack-gap: var(--space-lg);
    --numcards: 4;
    min-height: calc(var(--numcards) * 85dvh);

}

#cards {
    --numcards: 4;
    --stack-top: var(--space-lg);
    --stack-gap: var(--space-md);

    list-style: none;
    margin: 0;
    padding: 0;

    view-timeline-name: --cards-scroll;
    view-timeline-axis: block;
}

#card_1 {
    --index: 1;
}

#card_2 {
    --index: 2;
}

#card_3 {
    --index: 3;
}

#card_4 {
    --index: 4;
}

.card {
    --index0: calc(var(--index) - 1);
    --reverse-index: calc(var(--numcards) - var(--index0));

    position: sticky;
    top: var(--stack-top);
    min-height: 80dvh;
    display: grid;
    align-items: start;
    z-index: var(--index);
}


.card__content {
    transform: translateY(calc(var(--index0) * var(--stack-gap)));
    transform-origin: 50% 0%;
    margin: 0 auto;
    max-width: 80%;
    width: min(80%, calc(100% - var(--space-2xl)));
    min-height: 80dvh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    background: #f3f1ec;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .10);
    overflow: hidden;
    animation: scale linear forwards;
    animation-timeline: --cards-scroll;
    --start-range: calc(var(--index0) / var(--numcards) * 100%);
    --end-range: calc(var(--index) / var(--numcards) * 100%);
    animation-range: exit-crossing var(--start-range) exit-crossing var(--end-range);
}

.card__content .text-card {
    padding: var(--space-2xl);
}

.card__content .text-card p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
}

.texte-noir-blanc-h3 {
    font-family: var(--font-special);
    font-size: var(--font-size-3xl-s);
    font-weight: normal;
}


.card__content figure {
    height: 100%;
    overflow: hidden;
}

.card__content figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

@media (width >=1200px) {
    .card__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* -------------------- Processus de mon expertise -------------------- */



@keyframes horizontal-scroll {
    to {
        transform: translateX(calc(-100% + 100vw));
    }
}

#section-fix {
    height: 500vh;
    overflow: visible;
    view-timeline-name: --section-fix-tl;
    view-timeline-axis: block;
}

.section-fix-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.section-fix-wrap {
    height: 100vh;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    width: max-content;
    padding: var(--space-xl);
    will-change: transform;
    transform: translateX(0);
    animation: horizontal-scroll linear forwards;
    animation-timeline: --section-fix-tl;
    animation-range: contain 0% contain 100%;
}


.card-process-intro .card-content-intro {
    max-width: 330px;
    align-content: center;
    margin-right: var(--space-3xl);
}

.cards-process {
    background-color: var(--color-dark);
    color: var(--color-light);
    width: clamp(260px, 85vw, 420px);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 10px;
    padding: var(--space-xl);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 16px);
}


.card-process-livraison {
    min-height: 70dvh;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
}

.livraison-card-media {
    background: url("/assets/img/livraison.jpg") center / cover no-repeat;
    min-height: 50dvh;
}

.livraison-card-content {
    max-width: 80%;
    margin: auto;
}

.livraison-card-content a.btn-primary {
    margin-top: var(--space-lg);
}


@media (width >=768px) {
    .card-process-intro .card-content-intro {
        max-width: 500px;
    }

    .card-process-livraison {
        grid-template-columns: 1fr 1fr;
    }

    .livraison-card-content {
        max-width: 70%;
        margin: auto;
    }

    .livraison-card-media {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .section-fix-wrap {
        padding: 0 var(--space-3xl);
    }
}


/* -------------------- Collaboration & valeurs -------------------- */

.collab-valeurs {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
    padding: 0 var(--space-xl);
}

@media (width >=768px) {
    .collab-valeurs {
        grid-template-columns: 1fr 1fr;
    }

    .collab-valeurs {
        padding: 0 var(--space-3xl);
    }
}


/* ============================================================================================================================================
===============================================================================================================================================
                        PROJETS
===============================================================================================================================================
============================================================================================================================================ */
#projets {
    padding: var(--space-xl) 0;
}

/* === DESKTOP + TABLETTE (comportement identique) === */
.columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 var(--space-3xl);
    column-gap: var(--space-lg);
    overflow-y: hidden;
}

.column {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-5xl);
}

/* Reverse + animation (desktop/tablette) */
.column-reverse {
    transform: translateY(calc(-100% + 100vh));
    flex-direction: column-reverse;
    animation: adjust-position linear forwards;
    animation-timeline: scroll(root block);
}

.column__item {
    padding-bottom: var(--space-lg);
    cursor: pointer;
}

.column__item img {
    border-radius: 10px;
}

.column__item-caption {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    margin-top: var(--space-xs);
}

/* Animation */
@keyframes adjust-position {
    from {
        transform: translateY(calc(-100% + 100vh));
    }

    to {
        transform: translateY(calc(100% - 100vh));
    }
}

/* === MOBILE : 1 colonne === */
@media (width < 600px) {
    .columns {
        grid-template-columns: 1fr;
        padding: 0 var(--space-xl);
        column-gap: 0;
        overflow-y: visible;
        /* évite de couper du contenu */
    }

    .column {
        padding-top: var(--space-3xl);
    }

    /* On coupe reverse + animation en mobile */
    .column-reverse {
        transform: none;
        flex-direction: column;
        animation: none;
    }

    .column__item {
        padding-bottom: var(--space-lg);
    }
}


.lightbox {

    position: fixed;
    inset: 0;
    z-index: 2147483647;
    /* max 32-bit (classique) */
    isolation: isolate;
    /* crée un stacking context propre */
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    /* autorise scroll vertical, garde swipe horizontal pour nous */
    isolation: isolate;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
}

/* Croix fixée au viewport (ne dépend pas du header) */
.lightbox-close {

    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    /* ← clé du fix */
    width: 40px;
    height: 40px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    z-index: 10000;
    background: var(--color-light);
}

.lightbox-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transform-origin: center;
}

.lightbox-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close .croix-lightbox-d {
    transform: rotate(45deg);
}

.lightbox-close .croix-lightbox-g {
    transform: rotate(-45deg);
}

.lightbox-counter {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    z-index: 10000;
    font-size: 0.9rem;
}


@media (width >=1200px) {

    /* Navigation */
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: 0;
        color: var(--color-light);
        font-size: 52px;
        cursor: pointer;
        z-index: 10000;
        padding: 0 12px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

}

/* ///////////////////////////////////////////////////////////////////////////////////////////
                        DESCRIPTION DES PROJETS
/////////////////////////////////////////////////////////////////////////////////////////// */

.description-projet,
.images-projet {
    padding: var(--space-xl);
}

.hero-projet,
.desktop-projet {
    margin-bottom: var(--space-2xl);
}

.hero-projet .intro-accueil {
    max-width: 100%;
}

.info-projet {
    align-items: center;
}

.info-projet ul {
    list-style: none;
    max-width: 400px;
    padding-left: 0px;
}

.info-projet ul li {
    margin-bottom: var(--space-md);
}

.info-projet ul h6 {
    margin-bottom: 0;
    line-height: normal;
    font-weight: bold;
}

.desktop-projet,
.mobile-projet {
    align-content: center;
}

.desktop-projet img,
.mobile-projet img {
    border-radius: 10px;
}

@media (width >=768px) {

    .hero-projet,
    .desktop-projet {
        margin-bottom: 0;
    }

    .description-projet {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: var(--space-3xl);
    }


    .images-projet {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: var(--space-5xl);
    }
}

@media (width >=1200px) {

    .description-projet,
    .images-projet {
        padding: var(--space-2xl) var(--space-3xl);
    }
}



/* ============================================================================================================================================
===============================================================================================================================================
                        À propos
===============================================================================================================================================
============================================================================================================================================ */

.deux-btn a:nth-child(1) {
    margin-bottom: var(--space-md);
    margin-top: var(--space-md);
}



/* ============================================================================================================================================
===============================================================================================================================================
                        FAQ
===============================================================================================================================================
============================================================================================================================================ */

#faq {

    padding: var(--space-xl);
}

.hero {
    align-content: center;
}

@media (width >=768px) {
    #faq {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: var(--space-lg);
    }
}

@media (width >=1200px) {
    #faq {

        padding: var(--space-2xl) var(--space-3xl);
    }
}



.faq-title {
    margin: 0;
}

.faq-trigger {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-light);
    margin-bottom: var(--space-md);
    border-radius: 10px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: var(--font-size-xl);
    color: var(--color-text);
    transition: background .2s ease-in-out, color .2s ease-in-out;
}

.faq-item.is-open .faq-trigger {
    background: var(--color-ocre);
    color: var(--color-light);
}

.faq-question {
    flex: 1;
}


.faq-icon {
    width: 14px;
    height: 14px;
    position: relative;
    flex: 0 0 14px;
    opacity: 0.9;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--color-ocre);
    transition: transform 240ms ease, opacity 240ms ease, background .2s ease-in-out;
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
    background: var(--color-light);
}

.faq-icon::before {
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
}


.faq-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;

    transition:
        max-height 520ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 220ms ease,
        transform 320ms ease;
}

.faq-item.is-open .faq-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.faq-panel-inner {
    padding: var(--space-md);
    background-color: var(--color-light);
    border-radius: 10px;
    margin: 0 0 var(--space-md) 0;
}

.faq-panel-inner p {
    margin: 0;
}


@media (prefers-reduced-motion: reduce) {
    .faq-panel {
        transition: none;
        transform: none;
    }

    .faq-icon::before,
    .faq-icon::after {
        transition: none;
    }
}


/* ============================================================================================================================================
===============================================================================================================================================
                        CONTACT
===============================================================================================================================================
============================================================================================================================================ */



.contact {
    padding: var(--space-xl);
}

.coordo-contact a {
    display: block;
}

.hero-intro {
    align-content: center;
}

.portrait {
    background: url("/assets/img/romain-color.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    min-height: 50dvh;
    margin-top: var(--space-2xl);
}

@media (width >=768px) {
    .contact {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: var(--space-2xl);
    }
}

@media (width >=1200px) {
    .contact {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: var(--space-2xl);
        padding: var(--space-2xl) var(--space-3xl);
    }

    .portrait {
        background: url("/assets/img/romain-color.jpg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 10px;
        min-height: 50dvh;
        margin-top: 0;
    }

}


/* ///////////////////////////////////////////////////////////////////////////////////////////
                        FOOTER
/////////////////////////////////////////////////////////////////////////////////////////// */




footer {
    position: relative;
}

.bg-copy-footer {
    padding: 0 var(--space-xl);
}

.copyright {
    text-align: right;
    padding: var(--space-xs) var(--space-xs) var(--space-xs) 0;
}

.copyright p {
    font-size: 10px;
}

.copyright p a {
    font-size: 10px;
}

.footer-bg {
    min-height: 25dvh;
    background-image: linear-gradient(rgba(243, 241, 236, 0.3), rgba(243, 241, 236, 0.6)),
        url("/assets/img/paysage-soleil.jpg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    margin: auto;
    border-radius: var(--space-lg);
    filter: sepia(.4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    column-gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-2xl) var(--space-3xl) var(--space-2xl);
}

.phrase-footer {
    grid-area: 1 / 1 / 2 / 3;
    padding-bottom: var(--space-2xl);
}

.menu-footer {
    grid-area: 2 / 1 / 3 / 2;
}

.coordonnees-footer {
    grid-area: 2 / 2 / 3 / 3;
}

.titre-phrase-footer {
    font-family: var(--font-primary);
    font-size: var(--font-size-3xl);
    line-height: normal;
}

.menu-footer ul {
    list-style: none;
    padding: 0px;

}

.titre-footer {
    display: block;
    margin-bottom: var(--space-sm) !important;
    font-size: var(--font-size-xl);
    font-family: var(--font-primary);
}

.menu-footer ul li a {
    color: var(--color-dark);
}

.footer-lien-coord {
    display: block;
    margin-bottom: var(--space-md);
}


.footer-ms a:nth-child(1) {
    padding-right: var(--space-sm);
}

.blancmistral {
    position: absolute;
    z-index: -1;
    bottom: 0;          /* toujours collé au bas du body */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(100% - var(--space-3xl) * 2);
    overflow-y: hidden;
}


@media (width >=1200px) {

    .bg-copy-footer {
        padding: 0 var(--space-3xl);
    }

    .footer-bg {
        min-height: 45dvh;
        background-attachment: fixed;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        column-gap: var(--space-lg);
        padding: var(--space-2xl) var(--space-3xl) var(--space-5xl) var(--space-3xl);
    }

    .phrase-footer,
    .menu-footer,
    .coordonnees-footer {
        grid-column: auto;
        grid-row: auto;
    }


}


/* #endregion */


/* #region MENU ----------------------------------------------------------------------------------------------------- */


/* ==============================
   HEADER
================================ */
.header {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 100000;
}

.header .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ==============================
   MENU NORMAL (TOP DE PAGE)
   MOBILE FIRST: caché en mobile
================================ */
.nav-links {
    list-style: none;
    display: none;
    /* ✅ mobile-first */
    justify-content: flex-end;
    column-gap: var(--space-md);
    margin: 0;
    padding: var(--space-md);
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-primary);
    color: var(--color-dark);
    position: relative;
    z-index: 1;
    /* pour le curseur custom */
}

/* ==============================
   BURGER
   MOBILE FIRST: visible en mobile
================================ */
.nav-toggle {
    display: inline-flex;
    /* ✅ mobile-first */
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--color-dark);
    background: transparent;
    cursor: pointer;
    color: var(--color-dark);
    align-items: center;
    justify-content: center;
}

.nav-toggle-icon {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background-color .2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform .25s ease, top .25s ease;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    top: 6px;
}

/* Burger → croix */
.header.is-open .nav-toggle-icon {
    background: transparent;
}

.header.is-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.header.is-open .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==============================
   ÉTAT SCROLL
   Mobile: burger toujours visible + liens toujours cachés
================================ */
.header.is-scrolled .nav-links {
    display: none;
}

.header.is-scrolled .nav-toggle {
    display: inline-flex;
}

/* ==============================
   OVERLAY
================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    /* ✅ pas d'assombrissement */
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 99990;
}

.header.is-open .nav-overlay {
    opacity: 1;
    /* ✅ active la zone cliquable */
}

.header:not(.is-open) .nav-overlay {
    pointer-events: none;
}

/* ==============================
   DRAWER (à côté du burger)
================================ */
.nav-drawer {
    position: fixed;
    top: var(--space-md);
    /* ✅ même hauteur que le header */
    right: calc(var(--space-md) + 48px);
    /* ✅ collé à gauche du burger */

    width: auto;
    /* ✅ s'adapte au contenu */
    height: 40px;
    /* ✅ aligné comme le burger */
    display: flex;
    align-items: center;

    background: var(--color-light);
    border-radius: 999px;

    transform: translateX(20px);
    /* ✅ petit slide */
    opacity: 0;
    pointer-events: none;

    transition:
        transform .25s cubic-bezier(.16, 1, .3, 1),
        opacity .2s ease;

    z-index: 100000;
    padding: 0 clamp(14px, 2vw, 18px);

    box-shadow: -20px 18px 60px rgba(0, 0, 0, .10);
    overflow: hidden;
}

.header.is-open .nav-drawer {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==============================
   LIENS DU DRAWER (HORIZONTAL)
================================ */
.nav-drawer-links {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: var(--space-md);
    white-space: nowrap;
    /* ✅ reste sur une ligne */
}

.nav-drawer-links li {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-drawer-links a {
    text-decoration: none;
    font-family: var(--font-primary);
    color: var(--color-dark);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* ==============================
   DESKTOP ONLY: menu normal en haut, burger seulement après scroll
================================ */
@media (min-width: 901px) {
    .nav-links {
        display: flex;
        /* ✅ visible en haut */
    }

    .nav-toggle {
        display: none;
        /* ✅ caché tant qu'on n'a pas scroll */
    }

    /* Au scroll: on cache les liens et on montre le burger */
    .header.is-scrolled .nav-links {
        display: none;
    }

    .header.is-scrolled .nav-toggle {
        display: inline-flex;
    }
}

/* ==============================
   ACCESSIBILITÉ
================================ */
@media (prefers-reduced-motion: reduce) {

    .nav-drawer,
    .nav-overlay {
        transition: none;
    }
}




/* #endregion */