.gsap-hide-before-anim {
    opacity: 0 !important;
}
:root {
    --primary: #000;
    --secondary: #5e5f5f;
    --accent: #999;
    --light: #f5f5f5;
    --dark: #000;
    --border: #e5e5e5;
    --grid-size: 60px;
    --grid-opacity: 0.08;
    --grid-thickness: 1px;
    --border-radius-img: 1rem;
    --border-radius-btn: 1rem;
    --font-main: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    /* La hauteur navbar est calculée dynamiquement par JS, 90px est la valeur par défaut */
    --navbar-height: 90px;
}

/* Mona Sans - Font Variable (Local) */
@font-face {
    font-family: 'Mona Sans';
    src: url('../fonts/MonaSans[wdth,wght].ttf') format('truetype-variations');
    font-weight: 200 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mona Sans';
    src: url('../fonts/MonaSans-Italic[wdth,wght].ttf') format('truetype-variations');
    font-weight: 200 900;
    font-stretch: 75% 125%;
    font-style: italic;
    font-display: swap;
}

/* Fade-in effect for lazy-loaded images */
img[lazy-fade],
img.lazy-fade {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1);
}
img[lazy-fade].is-loaded,
img.lazy-fade.is-loaded {
    opacity: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: #000;
    background-color: #fff;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    font-weight: 400;
    
    /* Optimisations fonts variables */
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* Mona Sans - largeur étendue */
    font-variation-settings: 'wdth' 125;
    
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, var(--grid-opacity)) 0,
            rgba(0, 0, 0, var(--grid-opacity)) var(--grid-thickness),
            transparent var(--grid-thickness),
            transparent var(--grid-size)
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, var(--grid-opacity)) 0,
            rgba(0, 0, 0, var(--grid-opacity)) var(--grid-thickness),
            transparent var(--grid-thickness),
            transparent var(--grid-size)
        );
    background-size: var(--grid-size) var(--grid-size);
    background-position: 0 0, 0 0;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    visibility: visible;
}

html.has-seen-loader-this-30m .site-loader {
    display: none;
}

.site-loader.is-hidden {
    pointer-events: none;
}

.site-loader-inner {
    width: min(90vw, 920px);
    text-align: center;
    padding: 0 1rem;
}

.site-loader-picto {
    display: block;
    width: clamp(32px, 5vw, 56px);
    height: auto;
    margin: 0 auto 1.1rem;
    filter: brightness(0) invert(1);
    transform-origin: 50% 50%;
    animation: making-of-hammer 1.28s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.site-loader-phrase {
    display: none;
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2.55rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.site-loader-phrase.is-active {
    display: block;
}

.site-loader-phrase.is-gradient {
    --cta-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background: var(--cta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.site-loader-phrase .split-word,
.site-loader-phrase .split-char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Paragraphes */
p {
    color: var(--secondary);
}

/* Navigation */
.navbar {
    background: transparent !important;
    border-bottom: 1px solid transparent;
    padding: 1rem 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease, border-color 0.25s ease;
}

.navbar.is-scrolled {
    background: #fff !important;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    color: #000 !important;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 560;
    letter-spacing: 0.5px;
    color: #000 !important;
    padding: 0.5rem 1.2rem !important;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-cta {
    background: #000 !important;
    color: white !important;
    border-radius: var(--border-radius-btn);
    padding: 0.5rem 1.5rem !important;
    margin-left: 0.5rem;
    transition: all 0.25s ease;
    font-weight: 600;
}

.nav-cta:hover {
    opacity: 0.8;
}

.site-shell {
    padding-top: var(--navbar-height);
    transition: transform 0.32s ease;
}

/* Hero Section */
.hero {
    color: #000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero {
    min-height: calc(100vh - var(--navbar-height));
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 0 14px 14px;
    border-top-left-radius: var(--border-radius-img);
    border-top-right-radius: var(--border-radius-img);
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero-organic {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.55) 88%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.55) 88%, rgba(0, 0, 0, 0) 100%);
}

.home-hero-organic .organic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.78;
    transform: translateZ(0);
}

.home-hero-organic .organic-shape-1 {
    width: clamp(280px, 34vw, 520px);
    height: clamp(280px, 34vw, 520px);
    top: -18%;
    right: -16%;
    background: radial-gradient(circle at 30% 30%, rgba(47, 0, 255, 0.98) 0%, rgba(131, 0, 254, 0.78) 44%, rgba(131, 0, 254, 0) 78%);
}

.home-hero-organic .organic-shape-2 {
    width: clamp(250px, 30vw, 460px);
    height: clamp(250px, 30vw, 460px);
    bottom: -20%;
    left: -14%;
    background: radial-gradient(circle at 42% 42%, rgba(0, 255, 194, 0.95) 0%, rgba(47, 255, 0, 0.72) 50%, rgba(47, 255, 0, 0) 78%);
}

.home-hero-organic .organic-shape-3 {
    width: clamp(220px, 26vw, 390px);
    height: clamp(220px, 26vw, 390px);
    top: 34%;
    left: -14%;
    background: radial-gradient(circle at 50% 40%, rgba(251, 255, 0, 0.9) 0%, rgba(47, 255, 0, 0.62) 52%, rgba(47, 255, 0, 0) 80%);
}

.home-hero-organic .organic-shape-4 {
    width: clamp(220px, 24vw, 380px);
    height: clamp(220px, 24vw, 380px);
    bottom: 28%;
    right: -16%;
    background: radial-gradient(circle at 48% 52%, rgba(131, 0, 254, 0.92) 0%, rgba(47, 0, 255, 0.66) 54%, rgba(47, 0, 255, 0) 80%);
}

.home-hero-organic .organic-shape-5 {
    width: clamp(130px, 14vw, 230px);
    height: clamp(130px, 14vw, 230px);
    top: -8%;
    left: 6%;
    background: radial-gradient(circle at 40% 40%, rgba(0, 255, 194, 0.96) 0%, rgba(0, 255, 194, 0) 74%);
}

.home-hero-organic .organic-shape-6 {
    width: clamp(120px, 13vw, 210px);
    height: clamp(120px, 13vw, 210px);
    right: 8%;
    top: -10%;
    background: radial-gradient(circle at 45% 45%, rgba(251, 255, 0, 0.94) 0%, rgba(251, 255, 0, 0) 72%);
}

.home-hero-organic .organic-shape-7 {
    width: clamp(120px, 13vw, 210px);
    height: clamp(120px, 13vw, 210px);
    left: -10%;
    bottom: 8%;
    background: radial-gradient(circle at 50% 40%, rgba(47, 255, 0, 0.95) 0%, rgba(47, 255, 0, 0) 74%);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 6.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.12;
}

.home-hero h1 {
    font-weight: 300;
}

.hero-title-emphasis {
    font-weight: 650;
}

.hero-title {
    position: relative;
    display: inline-block;
    opacity: 0;
}

.hero-title.is-ready {
    opacity: 1;
}

.hero-title-text {
    display: inline-block;
}

.hero-picto {
    position: absolute;
    top: -0.55em;
    right: 0.1em;
    transform: translateX(0);
    width: 0.64em;
    height: 0.64em;
    pointer-events: none;
}

.hero-picto-img {
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: 50% 50%;
}

.hero-picto-img.is-hammering {
    animation: making-of-hammer 1.28s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

/* GSAP word split for hero title */
.hero h1.gsap-split {
    opacity: 1;
    transform: none;
}

.hero h1 .split-word {
    display: inline-block;
    will-change: transform, opacity;
}

.hero h1 .split-char {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* Gradient text pour les mots clés */
.gradient-text,
.gradient-text .split-word {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.7;
    font-weight: 400;
}

.disciplines-section {
    padding: 26px 0 70px;
    overflow-x: hidden;
    overflow-y: visible;
    perspective: 2200px;
}

.disciplines-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    transform-style: preserve-3d;
    gap: 0;
    width: max-content;
    min-width: 100%;
    padding: 10px 3px;
}

.discipline-card {
    --tilt: 0deg;
    --card-offset-y: 0px;
    flex: 0 0 clamp(210px, 18.5vw, 270px);
    min-height: 178px;
    position: relative;
    background: #fff;
    border: 1px solid #000;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 4px 4px 0 #000;
    transform: rotate(var(--tilt)) translateY(var(--card-offset-y));
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    contain: paint;
    opacity: 0;
}

.discipline-card + .discipline-card {
    margin-left: -16px;
}

.discipline-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: #000;
    letter-spacing: 0.01em;
}

.discipline-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #2b2b2b;
    opacity: 1;
}

.discipline-card:nth-child(2n) {
    background: #000;
    border-color: #000;
    box-shadow: 4px 4px 0 #1a1a1a;
}

.discipline-card:nth-child(2n) h3,
.discipline-card:nth-child(2n) p {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #fff;
    background-clip: border-box;
    color: #fff;
}

.home-clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    align-items: center;
}

.home-client-logo-item {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-client-logo-item img {
    max-width: 100%;
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.9;
}

.home-client-logo-item img[src$=".svg" i] {
    width: clamp(96px, 12vw, 180px);
}

@media (max-width: 767.98px) {
    .home-hero-organic .organic-shape {
        filter: blur(70px);
        opacity: 0.68;
    }

    .home-hero-organic .organic-shape-1 {
        top: -22%;
        right: -24%;
    }

    .home-hero-organic .organic-shape-2 {
        left: -26%;
        bottom: -24%;
    }

    .home-hero-organic .organic-shape-3 {
        top: 26%;
        left: -24%;
    }

    .home-hero-organic .organic-shape-4 {
        right: -24%;
        bottom: 30%;
    }

    .home-hero-organic .organic-shape-5 {
        left: -8%;
        top: -12%;
    }

    .home-hero-organic .organic-shape-6 {
        right: -6%;
        top: -14%;
    }

    .home-hero-organic .organic-shape-7 {
        left: -18%;
        bottom: 4%;
    }

    .disciplines-section {
        padding: 20px 0 56px;
    }

    .home-clients-logos {
        gap: 12px;
    }

    .home-client-logo-item {
        padding: 6px 10px;
    }

    .home-client-logo-item img {
        max-height: 68px;
    }

    .home-client-logo-item img[src$=".svg" i] {
        width: clamp(84px, 34vw, 140px);
    }

    .disciplines-grid {
        gap: 0;
    }

    .discipline-card {
        flex-basis: clamp(200px, 68vw, 240px);
        min-height: 170px;
        padding: 16px;
        box-shadow: 4px 4px 0 #000;
    }

    .discipline-card + .discipline-card {
        margin-left: -10px;
    }

}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .home-clients-logos {
        gap: 16px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pas d'animation pour les slides du swiper */
.swiper-slide {
    opacity: 1 !important;
    transform: none !important;
}

/* Portfolio Grid */
.portfolio-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--border-radius-btn);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.contact-form.is-hidden {
    display: none;
}

.contact-success {
    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
}

.contact-success.is-visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card:hover {
    border-color: #000;
    transform: none;
}

.portfolio-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 470px;
    background-color: var(--light);
    transition: transform 0.4s ease;
    border-radius: var(--border-radius-img);
    margin: 14px 0px;
    display: block;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-card:hover .portfolio-card-image {
    transform: none;
}

.portfolio-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.5px;
}

.portfolio-card-description {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.portfolio-card-title a {
    color: inherit;
}

.portfolio-card-title a:hover {
    opacity: 0.6;
}

.portfolio-card-client {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.portfolio-card-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag {
    display: inline-block;
    background: var(--light);
    color: #666;
    padding: 4px 12px;
    border: none;
    border-radius: var(--border-radius-btn);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Project Single */
.project-hero {
    background: transparent;
    color: #000;
    padding: 80px 0 50px;
    text-align: left;
}

.project-hero h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}


.project-hero h1 .split-word {
    display: inline-block;
    will-change: transform, opacity;
}

.project-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.project-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-breadcrumb a:hover {
    opacity: 0.7;
}

.project-breadcrumb-sep {
    color: #999;
}

.project-breadcrumb-current {
    color: #000;
    font-weight: 600;
}

.project-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.project-hero-description {
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 0;
}

.project-hero-description .split-line {
    display: block;
    overflow: hidden;
}

.project-hero-description .split-word {
    display: inline-block;
}

.project-content {
    padding-top: 0;
}

.project-hero-meta {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 20px;
}

.project-hero-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.project-hero-meta-item:last-child {
    border-bottom: none;
}

.project-hero-meta-label {
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-hero-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .project-hero {
        padding: 60px 0 40px;
    }

    .project-hero h1 {
        font-size: 3.2rem;
    }

    .project-hero-picto {
        top: -0.45em;
        right: -0.2em;
        width: 0.75em;
    }

    .project-hero-description {
        font-size: 1rem;
        margin-top: 18px;
    }

    .project-hero-meta-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-hero-meta-value {
        text-align: left;
    }
}

.project-gallery {
    margin: 40px 0;
}

.project-gallery .row {
    align-items: flex-start;
}

.gallery-item {
    position: relative;
    margin-bottom: 0;
}

.gallery-item.has-making-of {
    overflow: hidden;
}

.gallery-item.has-coulisse {
    overflow: hidden;
    padding-top: clamp(14px, 2vw, 28px);
    padding-bottom: clamp(14px, 2vw, 28px);
}

.gallery-item.has-coulisse > img,
.gallery-item.has-coulisse > .ratio,
.gallery-item.has-coulisse > .gallery-video-autoplay-wrap,
.gallery-item.has-coulisse > .video-player-preview {
    width: 70%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform: rotate(var(--coulisse-rotation, -2.4deg));
    transform-origin: 50% 50%;
}

.gallery-item.has-coulisse .making-of-badge {
    right: calc(10% + clamp(8px, 1.8vw, 16px));
}

.gallery-item .making-of-badge {
    position: absolute;
    top: clamp(12px, 2.4vw, 22px);
    right: clamp(12px, 2.4vw, 22px);
    width: clamp(18px, 3.5vw, 40px);
    height: auto;
    max-width: none;
    border: 0;
    pointer-events: none;
    transform-origin: 50% 50%;
    animation: making-of-hammer 1.28s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.gallery-item img.making-of-badge {
    width: clamp(18px, 3.5vw, 40px);
    height: auto;
    border: 0;
    box-shadow: none;
}

@keyframes making-of-hammer {
    0% {
        transform: rotate(-16deg) translateY(0);
    }
    14% {
        transform: rotate(-32deg) translateY(0);
    }
    27% {
        transform: rotate(34deg) translateY(2px);
    }
    35% {
        transform: rotate(20deg) translateY(1px);
    }
    52% {
        transform: rotate(-7deg) translateY(0);
    }
    72% {
        transform: rotate(-15deg) translateY(0);
    }
    100% {
        transform: rotate(-16deg) translateY(0);
    }
}

@media (max-width: 767.98px) {
    .gallery-item .making-of-badge {
        width: clamp(24px, 8vw, 48px);
    }

    .gallery-item.has-coulisse > img,
    .gallery-item.has-coulisse > .ratio,
    .gallery-item.has-coulisse > .gallery-video-autoplay-wrap,
    .gallery-item.has-coulisse > .video-player-preview {
        width: 70%;
        transform: rotate(var(--coulisse-rotation, -2deg));
    }

    .gallery-item.has-coulisse {
        padding-top: clamp(10px, 3.2vw, 20px);
        padding-bottom: clamp(10px, 3.2vw, 20px);
    }

    .gallery-item.has-coulisse .making-of-badge {
        right: calc(10% + clamp(8px, 1.8vw, 16px));
    }
}

.gallery-item img {
    width: 100%;
    border-radius: var(--border-radius-img);
    box-shadow: none;
    border: 1px solid var(--border);
    display: block;
}

.gallery-item video {
    width: 100%;
    border-radius: var(--border-radius-img);
    box-shadow: none;
    border: 1px solid var(--border);
    display: block;
}

.gallery-video-autoplay-wrap {
    overflow: hidden;
}

.gallery-video-autoplay-wrap .gallery-video-autoplay {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item iframe {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-img);
    display: block;
}

.video-player-preview {
    position: relative;
}

.video-player-preview .video-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.video-player-preview .video-play-overlay::before {
    content: '';
    width: clamp(56px, 8vw, 84px);
    height: clamp(56px, 8vw, 84px);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-player-preview .video-play-overlay:hover::before,
.video-player-preview .video-play-overlay:focus-visible::before {
    transform: scale(1.06);
    background: rgba(0, 0, 0, 0.65);
}

.video-player-preview .video-play-overlay:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -6px;
}

.video-player-preview .video-play-overlay-icon {
    position: absolute;
    width: 0;
    height: 0;
    border-top: clamp(9px, 1.2vw, 13px) solid transparent;
    border-bottom: clamp(9px, 1.2vw, 13px) solid transparent;
    border-left: clamp(14px, 1.8vw, 20px) solid #fff;
    margin-left: clamp(3px, 0.4vw, 6px);
}

.video-player-preview.is-playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

.gallery-filler {
    border-radius: var(--border-radius-img);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 36px 30px;
}

.cta-section.bg-black,
footer.bg-black,
.gallery-filler {
    --grid-opacity-dark: 0.11;
    background-color: #000;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, var(--grid-opacity-dark)) 0,
            rgba(255, 255, 255, var(--grid-opacity-dark)) var(--grid-thickness),
            transparent var(--grid-thickness),
            transparent var(--grid-size)
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, var(--grid-opacity-dark)) 0,
            rgba(255, 255, 255, var(--grid-opacity-dark)) var(--grid-thickness),
            transparent var(--grid-thickness),
            transparent var(--grid-size)
        );
    background-size: var(--grid-size) var(--grid-size);
    background-position: 0 0, 0 0;
    background-attachment: scroll, scroll;
    background-origin: border-box;
}

.gallery-filler-text {
    --cta-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.gallery-filler-emoji {
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    line-height: 1;
    margin: 0 0 12px;
}

.gallery-filler-text .split-char {
    display: inline-block;
    will-change: transform, opacity;
    background-repeat: no-repeat;
}

.gallery-filler-text .split-word {
    display: inline-block;
}


/* Formulaires */
.form-control, .form-select {
    border-radius: 0;
    border: 1px solid var(--border);
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: 'Mona Sans', inherit;
}

.form-control:focus, .form-select:focus {
    border-color: #000;
    box-shadow: none;
    outline: none;
}

.btn {
    border-radius: var(--border-radius-btn);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    border: 1px solid #000;
    font-family: 'Mona Sans', inherit;
}

.btn-primary {
    background: #000;
    border-color: #000;
    color: white;
}

.btn-primary:hover {
    background: white;
    color: #000;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid #000;
    color: #000;
}

.btn-outline-primary:hover {
    background: #000;
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: #000;
}

.btn-outline-secondary:hover {
    background: var(--light);
    border-color: #000;
}

.btn-light {
    background: white;
    border: 1px solid #000;
    color: #000;
}

.btn-light:hover {
    background: var(--light);
}

/* Classes de boutons personnalisés */
.bouton-principal {
    background-color: #000;
    border-color: #000;
    color: white;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.bouton-principal:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

.bouton-principal:focus-visible {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

.bg-black .bouton-principal {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.bg-black .bouton-principal:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.bouton-secondaire {
    background: transparent;
    border: none;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: color 0.25s ease;
    text-decoration: none;
    line-height: 1;
}

.bouton-secondaire::after {
    content: '';
    width: 2rem;
    height: 2rem;
    background: url('../img/fleche-bouton.svg') no-repeat center / 100% 100%;
    display: inline-block;
    flex: 0 0 auto;
}

.bouton-secondaire:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Conteneur pour les boutons du hero */
.hero-buttons {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin-bottom: 0.5rem;
}

/* CTA */
.cta-section.bg-black,
footer.bg-black {
    border-radius: var(--border-radius-img);
    margin: 14px;
    overflow: hidden;
}

.cta-section {
    padding: 140px 0;
}

.cta-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
}

.cta-text {
    --cta-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    font-size: clamp(2.1rem, 5.6vw, 5.6rem);
    line-height: 1.05;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: #fff;
}

.cta-text .split-char {
    display: inline-block;
    will-change: transform, opacity;
    background-repeat: no-repeat;
}

.cta-text .split-word {
    display: inline-block;
}

/* Project text blocks */
.project-text-block {
    padding: 30px 0;
}

.project-text {
    font-size: clamp(2.1rem, 5.6vw, 5.6rem);
    line-height: 1.05;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.project-text .split-char {
    display: inline-block;
    will-change: transform, opacity;
}

.project-text .split-word {
    display: inline-block;
}


/* Contact Form */
.contact-form {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-btn);
    box-shadow: none;
    border: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-label {
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero-picto {
        top: -0.45em;
        right: 0;
        transform: translateX(6%);
        width: 0.58em;
        height: 0.58em;
    }
}

/* En-têtes */
h1, h2, h3, h4, h5, h6 {
    color: #000;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: var(--font-main);
}

h1 { font-size: 2.5rem; line-height: 1; }
h2 { font-size: 2rem; margin-bottom: 30px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Section */
section {
    padding: 50px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 0;
    letter-spacing: -0.5px;
}

/* Messages d'alerte */
.alert {
    border-radius: var(--border-radius-btn);
    border: 1px solid var(--border);
}

.alert-success {
    background: #f0fdf4;
    border-color: #dbeafe;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #f0f9ff;
    border-color: #bfdbfe;
    color: #0c2d6b;
}

/* Footer */
footer {
    background: #000;
    color: white;
    border-top: none;
    margin-top: 0;
}

.footer-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    width: clamp(180px, 24vw, 290px);
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 560;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.2rem;
    opacity: 0.92;
}

.footer-nav a:hover {
    color: #fff;
    opacity: 0.72;
}

.footer-picto-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-picto-btn {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #9b9b9b;
    background: #000;
    color: #9b9b9b;
    font-size: 1.45rem;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.footer-picto-btn:hover {
    background: #000;
    border-color: #fff;
    color: #fff;
}

.footer-picto-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.footer-copyright {
    margin: 8px 0 0;
    color: #a8a8a8;
    opacity: 0.8;
    font-size: 0.86rem;
    letter-spacing: 0.3px;
    text-align: center;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: white;
}

footer h5 {
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer ul li {
    margin-bottom: 10px;
    color: #999;
    font-size: 0.95rem;
}

footer .text-muted {
    color: #666 !important;
}

footer hr {
    border-color: #222;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 84px 1.25rem;
    }

    .cta-section .row,
    .cta-section .col-12,
    .cta-section h2,
    .cta-section .cta-text {
        text-align: center !important;
    }

    .cta-section .container,
    footer .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .cta-section .btn {
        margin-left: auto;
        margin-right: auto;
    }

    footer .footer-logo-wrap {
        text-align: center;
    }

    footer .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-nav-wrap {
        gap: 18px;
    }

    .footer-nav {
        gap: 16px;
    }

    .footer-picto-btn {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
}

/* Titres sur fond noir */
.bg-black h1,
.bg-black h2,
.bg-black h3,
.bg-black h4,
.bg-black h5,
.bg-black h6 {
    color: white;
}

/* Utilities */
.bg-light {
    background: var(--light) !important;
}

.text-muted {
    color: #666 !important;
}

.card {
    border: 1px solid var(--border) !important;
    border-radius: 0;
    box-shadow: none;
}

.card-header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.badge {
    border-radius: 0;
    padding: 5px 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: #000 !important;
}

.badge.bg-warning {
    background: #999 !important;
}

.badge.bg-primary {
    background: #000 !important;
}

.badge.bg-danger {
    background: #e74c3c !important;
}

/* Responsive */
.mobile-drawer-picto {
    display: none;
}

@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }

    .navbar-brand,
    .navbar-toggler {
        transition: transform 0.32s ease;
    }

    .navbar-toggler {
        border: none !important;
        padding: 0.25rem 0.15rem !important;
        margin-right: 0.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

    .navbar-toggler-icon {
        background-image: none !important;
        width: 30px;
        height: 22px;
        position: relative;
        display: block;
        top: 0;
    }

    .navbar-toggler-icon,
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        background-color: #000;
        border-radius: 999px;
        height: 4px;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        left: 0;
        width: 30px;
    }

    .navbar-toggler-icon::before {
        top: -8px;
    }

    .navbar-toggler-icon::after {
        top: 8px;
        width: 22px;
        left: auto;
        right: 0;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 360px);
        height: 100vh;
        padding: calc(var(--navbar-height) + 1.4rem) 1.5rem 1.8rem;
        background: #000;
        z-index: 1200;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.32s ease;
        display: block !important;
        visibility: hidden;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        transform: translateX(0);
        visibility: visible;
    }

    .navbar-collapse.is-closing {
        transform: translateX(100%);
        visibility: visible;
    }

    .navbar-collapse.collapsing {
        height: 100vh !important;
    }

    .navbar-collapse .navbar-nav {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mobile-drawer-picto {
        display: block;
        margin-bottom: 1.2rem;
    }

    .mobile-drawer-picto img {
        width: 28px;
        height: auto;
        display: block;
        filter: brightness(0) invert(1);
    }

    .navbar-collapse .nav-item {
        width: 100%;
    }

    .navbar-collapse .nav-item.ms-3 {
        margin-left: 0 !important;
    }

    .navbar-collapse .nav-link,
    .navbar-collapse .nav-cta {
        color: #fff !important;
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        font-weight: 650;
        line-height: 1.1;
        padding: 0.2rem 0 !important;
        margin-left: 0 !important;
        border: 0 !important;
        background: transparent !important;
        border-radius: 0;
    }

    body.is-mobile-nav-open .site-shell {
        transform: translateX(calc(-1 * min(82vw, 360px)));
    }

    body.is-mobile-nav-open .navbar-brand,
    body.is-mobile-nav-open .navbar-toggler {
        transform: translateX(calc(-1 * min(82vw, 360px)));
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 3.6rem);
        line-height: 1.05;
    }

    .hero-picto {
        top: -0.4em;
        right: 0;
        transform: translateX(5%);
        width: 0.52em;
        height: 0.52em;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    section {
        padding: 40px 0;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}

/* Hiérarchie typographique - Système de poids Mona Sans */
.font-light    { font-weight: 300; }
.font-regular  { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

/* Système de largeur - Font Stretch via font-variation-settings */
.font-ultra-condensed { font-variation-settings: 'wdth' 75; }
.font-extra-condensed { font-variation-settings: 'wdth' 80; }
.font-condensed       { font-variation-settings: 'wdth' 87.5; }
.font-semi-condensed  { font-variation-settings: 'wdth' 93.75; }
.font-normal          { font-variation-settings: 'wdth' 100; }
.font-semi-expanded   { font-variation-settings: 'wdth' 112.5; }
.font-expanded        { font-variation-settings: 'wdth' 125; }

/* Combinaisons courantes */
.title-wide {
    font-weight: 700;
    font-variation-settings: 'wdth' 110;
    letter-spacing: -0.5px;
}

.subtitle-compact {
    font-weight: 500;
    font-variation-settings: 'wdth' 85;
    letter-spacing: 0.5px;
}

.dense-text {
    font-weight: 400;
    font-variation-settings: 'wdth' 80;
}

/* Budget réel après FAQ */
.section-faq {
    background-color: transparent;
}

/* Swiper Slider - Portfolio */
.portfolio-slider {
    width: calc(100% + (100vw - 100%) / 2);
    margin-left: 0;
    margin-right: calc(-1 * (100vw - 100%) / 2);
    padding: 0;
    overflow: visible !important;
}

.portfolio-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.portfolio-slider .swiper-slide {
    opacity: 1;
    transition: opacity 0.3s ease;
    width: clamp(260px, 70vw, 680px);
    height: auto;
    display: flex;
    box-sizing: border-box;
    margin-right: 15px;
}

.portfolio-slider .swiper-slide .portfolio-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-slider .swiper-slide .portfolio-card-content {
    flex: 1;
}

.portfolio-slider .swiper-slide-active {
    opacity: 1;
}

.swiper-pagination {
    display: none;
}

.swiper-pagination-bullet {
    background: #ddd;
    width: 12px;
    height: 12px;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #000;
    width: 30px;
    border-radius: 6px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #000;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 0;
    top: auto;
    bottom: auto;
    left: auto !important;
    right: auto;
    transform: none;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 54px 54px;
}

.swiper-button-prev {
    background-image: url('../img/fleche-gauche.svg');
    background-position: left;
}

.swiper-button-next {
    background-image: url('../img/fleche-droite.svg');
    background-position: right;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none;
}


.portfolio-slider .text-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    width: calc(100% - (100vw - 100%) / 2);
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 768px) {
    .portfolio-slider {
        width: calc(100% + var(--bs-gutter-x, 1.5rem));
        margin-left: calc(var(--bs-gutter-x, 1.5rem) / -2);
        margin-right: calc(var(--bs-gutter-x, 1.5rem) / -2);
        padding: 0;
        overflow: hidden !important;
    }

    .portfolio-slider .swiper-slide {
        width: 85vw !important;
    }

    .portfolio-slider .swiper-slide:first-child {
        margin-left: calc(var(--bs-gutter-x, 1.5rem) / 2);
    }
    
    .portfolio-card-image {
        height: 350px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

.faq-accordion {
    border: none;
}

.faq-accordion .accordion-item {
    border: 1px solid #000;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-btn);
    overflow: hidden;
    background-color: #fff;
    box-shadow: none;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
    border-color: #000;
    box-shadow: none;
}

/* Annule les exceptions bootstrap first/last pour garder 4 cartes identiques. */
.faq-accordion .accordion-item:first-of-type,
.faq-accordion .accordion-item:last-of-type,
.faq-accordion .accordion-item:not(:first-of-type) {
    border-radius: var(--border-radius-btn);
    border-top: 1px solid #000;
}

.accordion-header {
    padding: 0;
}

.faq-accordion .accordion-button {
    padding: 1.5rem;
    background-color: #fff;
    border: none;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.faq-accordion .accordion-item .accordion-button,
.faq-accordion .accordion-item .accordion-button.collapsed {
    border-radius: var(--border-radius-btn);
}

.accordion-button:not(.collapsed) {
    background-color: #f5f5f5;
    color: #000;
    box-shadow: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-button:focus {
    box-shadow: none;
    background-color: #f5f5f5;
    border-color: transparent;
}

.accordion-button::after {
    position: absolute;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.faq-number {
    display: inline-block;
    min-width: 2.5rem;
    font-weight: 800;
    font-size: 0.9rem;
    opacity: 1;
    letter-spacing: 1px;
    color: #000;
}

.accordion-collapse {
    transition: all 0.3s ease;
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    color: var(--secondary);
    line-height: 1.8;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

/* FAQ visible par defaut: animation geree par GSAP uniquement ailleurs si besoin */
.section-faq {
    opacity: 1;
    transform: none;
}

