@import url("https://use.typekit.net/ipo7arx.css");


/* ==================================================
   PALETTE DE COULEURS GLOBALE (SOURCE UNIQUE)
   Changer --color-accent modifie l'orange partout.
================================================== */

:root {
    /* 1. Accent unique (Orange) + 4 transparences dérivées */
    --color-accent: #ff6f10;
    --color-accent-subtle: color-mix(in srgb, var(--color-accent) 5%, transparent);
    --color-accent-soft: color-mix(in srgb, var(--color-accent) 11%, transparent);
    --color-accent-border: color-mix(in srgb, var(--color-accent) 30%, transparent);
    --color-accent-glow: color-mix(in srgb, var(--color-accent) 45%, transparent);

    /* 2. Fonds & Surfaces */
    --color-white: #ffffff;
    --color-surface: #fbfbfb;
    --color-surface-code: #efefef;
    --color-dark: #0d0d0f;
    --color-black: #000000;

    /* 3. Textes (4 niveaux neutres cohérents) */
    --color-text: #222222;
    --color-text-body: #4a4a4a;
    --color-text-muted: #666666;
    --color-text-subtle: #888888;

    /* 4. Voiles blancs (sur fonds sombres & footer) */
    --color-white-soft: color-mix(in srgb, var(--color-white) 85%, transparent);
    --color-white-border: color-mix(in srgb, var(--color-white) 35%, transparent);
    --color-white-glass: color-mix(in srgb, var(--color-white) 16%, transparent);

    /* 5. Voiles sombres & Ombres */
    --color-overlay-soft: color-mix(in srgb, var(--color-black) 24%, transparent);
    --color-overlay-medium: color-mix(in srgb, var(--color-black) 35%, transparent);
    --color-overlay-strong: color-mix(in srgb, var(--color-black) 65%, transparent);
    --color-overlay-heavy: color-mix(in srgb, var(--color-black) 88%, transparent);
    --color-lightbox-backdrop: color-mix(in srgb, var(--color-dark) 92%, transparent);

    --color-shadow-sm: color-mix(in srgb, var(--color-black) 6%, transparent);
    --color-shadow-md: color-mix(in srgb, var(--color-black) 10%, transparent);
    --color-shadow-lg: color-mix(in srgb, var(--color-black) 14%, transparent);
    --color-shadow-xl: color-mix(in srgb, var(--color-black) 45%, transparent);
}


/* ==================================================
   RESET & BASE
================================================== */

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

body {
    width: 100%;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background-color: var(--color-white);
    color: var(--color-text);
    font-family: nexa-text, sans-serif;
}

/* Grille indépendante déplacée au parallax par GSAP */
body::before {
    content: "";
    position: fixed;
    inset: -35px;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(0deg,
            transparent 24%,
            var(--color-accent-soft) 25%,
            var(--color-accent-soft) 26%,
            transparent 27%,
            transparent 74%,
            var(--color-accent-soft) 75%,
            var(--color-accent-soft) 76%,
            transparent 77%,
            transparent),
        linear-gradient(90deg,
            transparent 24%,
            var(--color-accent-soft) 25%,
            var(--color-accent-soft) 26%,
            transparent 27%,
            transparent 74%,
            var(--color-accent-soft) 75%,
            var(--color-accent-soft) 76%,
            transparent 77%,
            transparent);
    background-size: 60px 60px;
    transform: translate(var(--parallax-grid-x, 0px), var(--parallax-grid-y, 0px));
    will-change: transform;
    opacity: 0;
    animation: gridFadeIn 1.6s ease-out 0.15s forwards;
}

@keyframes gridFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* ==================================================
   SITE & HEADER ACCUEIL
================================================== */

.site {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 35px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 48px;
}


/* ==================================================
   LOGO (ACCUEIL & PAGES PROJETS)
================================================== */

.logo {
    display: block;
    width: min(78vw, 510px);
    margin-top: 35vh;
    margin-bottom: 40vh;
    color: var(--color-accent);
    transform-origin: center center;
    transition: none;
    line-height: 0;
}

.project-detail-logo {
    display: block;
    width: min(22vw, 150px);
    margin: 0;
    color: var(--color-accent);
    line-height: 0;
    transform: none;
}

.logo-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.logo-draw-path {
    fill: var(--color-accent);
    stroke: var(--color-accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==================================================
   NAVIGATION & HANDWRITTEN HOVER LINK
================================================== */

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 10vh;
}

.navigation a {
    display: inline-block;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 5px;
    color: var(--color-text);
}

.navigation a > span {
    position: relative;
    z-index: 1;
}

.navigation a,
.more,
.moi-cv-btn {
    position: relative;
    isolation: isolate;
}

.back-link-svg {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: calc(100% + 34px);
    height: calc(100% + 22px);
    overflow: visible;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.back-link-path {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 32px;
    stroke-linecap: round;
    stroke-miterlimit: 10;
}

.back-link-text {
    position: relative;
    display: inline-block;
    isolation: isolate;
}


/* ==================================================
   TITRES DE SECTION & GRILLE PROJETS (ACCUEIL)
================================================== */

.section-label {
    margin-bottom: clamp(35px, 5vw, 55px);
    text-align: center;
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--color-text);
    text-transform: none;
}

.section-label span {
    color: var(--color-accent);
}

.projects {
    scroll-margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 65px;
    row-gap: 100px;
    margin-top: 20px;
}

.project {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.project-image {
    position: relative;
    width: 100%;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-overlay-soft);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-overlay span {
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 13px 20px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.project:hover .project-overlay {
    opacity: 1;
}

.project:hover .project-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.project:hover .project-image img {
    transform: scale(1.06);
}

.project-name {
    margin-top: 22px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--color-text-body);
}

/* Vignettes carrées des projets sur l'accueil */
.project-image--move-together,
.project-image--malickgg,
.project-image--isaac-cordal {
    width: 225px;
    height: 225px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.project-image--move-together,
.project-image--isaac-cordal {
    border-radius: 0;
}

.project-image--move-together {
    background: var(--color-dark);
}

.project-thumb-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.project-image--isaac-cordal img {
    object-fit: contain;
    border-radius: 0;
}

.project-image--move-together .project-overlay,
.project-image--isaac-cordal .project-overlay {
    border-radius: 0;
}

.project-image--malickgg {
    border-radius: 50%;
    background: var(--color-dark);
    box-shadow: 0 10px 28px var(--color-shadow-md);
}

.project-image--malickgg img {
    object-fit: cover;
    border-radius: 50%;
}

.project-image--malickgg .project-overlay {
    border-radius: 50%;
}

/* Boutons hand-drawn (.more & .moi-cv-btn) */
.more,
.moi-cv-btn {
    display: block;
    width: max-content;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
}

.more {
    max-width: max-content;
    margin: 40px auto 0;
}

.moi-cv-btn {
    max-width: 100%;
    margin: 12px auto 0;
    color: var(--color-text);
    text-align: center;
}

.more > span,
.moi-cv-btn > span {
    position: relative;
    display: inline-block;
    width: max-content;
    padding: 5px 12px;
    white-space: nowrap;
    border: 0;
    background: transparent;
    transition: none;
}

.moi-cv-btn > span {
    max-width: 100%;
}

.more .back-link-svg,
.moi-cv-btn .back-link-svg {
    width: calc(100% + 26px);
    height: calc(100% + 18px);
}


/* ==================================================
   MOI — PRÉSENTATION
================================================== */

.moi {
    scroll-margin-top: 100px;
    margin-top: 90px;
    padding: 0 0 130px;
}

.moi .section-label {
    margin-bottom: 55px;
}

.moi-content {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(38px, 7vw, 105px);
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.moi-left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.moi-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.moi-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.moi-text {
    padding-top: 8px;
}

.moi-intro {
    max-width: 610px;
    margin-bottom: 38px;
    font-size: clamp(15px, 1.25vw, 17px);
    line-height: 1.75;
    color: var(--color-text-body);
}

.moi-intro h3 {
    color: var(--color-accent);
}

.moi-details {
    display: grid;
    gap: 24px;
}


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

.contact-footer {
    width: 100vw;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    padding: 24px max(35px, calc((100vw - 1200px) / 2 + 35px));
    background: var(--color-accent);
    color: var(--color-white);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 38px;
    align-items: center;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-intro p {
    max-width: 270px;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.footer-intro p span {
    display: inline;
    color: var(--color-white-soft);
}

.contact-email {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--color-white-soft);
    color: var(--color-white);
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.25s ease;
}

.contact-email span {
    display: inline-block;
    margin-left: 3px;
    color: var(--color-white);
    transition: transform 0.25s ease;
}

.contact-email:hover {
    opacity: 0.75;
}

.contact-email:hover span {
    transform: translate(2px, -2px);
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 17px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: var(--color-white);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}


/* ==================================================
   PAGES PROJETS — STRUCTURE COMMUNE
================================================== */

.project-detail-site {
    max-width: 1320px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 35px;
}

.project-page-move-together,
.project-page-malickgg,
.project-page-isaac-cordal {
    position: relative;
}

.project-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 34px 0 28px;
}

.project-detail-back {
    font-size: 12px;
    letter-spacing: 1.4px;
    color: var(--color-black) !important;
}

.project-detail-back:hover {
    color: var(--color-black) !important;
    opacity: 1 !important;
}

.project-hero {
    padding: clamp(35px, 6vw, 70px) 0 45px;
    text-align: center;
}

.project-hero-title {
    margin: 0 0 35px;
    font-size: clamp(48px, 9vw, 110px);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: -3px;
    color: var(--color-text);
}

.project-hero-title span {
    color: var(--color-accent);
}

.project-hero-video-wrapper {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.project-section {
    padding: clamp(55px, 8vw, 95px) 0;
    border: none;
}

.project-section-heading {
    margin: 0 0 34px;
    font-size: clamp(28px, 3.8vw, 48px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--color-text);
}

.project-section-heading span {
    color: var(--color-accent);
}

/* Section 01 : Présentation générale */
.project-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 65px);
    align-items: start;
    margin-top: 15px;
}

.project-overview-col p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-text-body);
    margin-bottom: 18px;
}

.project-overview-col p strong {
    color: var(--color-text);
    font-weight: 600;
}

.project-highlight-quote {
    padding: 26px 28px;
    background: var(--color-accent-subtle);
    border-radius: 8px;
    margin-top: 10px;
}

.project-highlight-quote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    font-style: italic;
}

/* Section 02 & 04 : Cartes grilles (Dispositif & Contributions) */
.device-grid,
.contribution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.device-grid {
    margin-bottom: 45px;
}

.contribution-grid {
    margin-top: 15px;
}

.device-card,
.contribution-card {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.device-card:hover,
.contribution-card:hover {
    box-shadow: 0 14px 35px var(--color-shadow-sm);
}

.device-card-num,
.contribution-icon {
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.device-card-num {
    font-size: 13px;
}

.contribution-icon {
    font-size: 12px;
}

.device-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-accent);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.contribution-title {
    font-size: 19px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 12px;
    letter-spacing: -0.2px;
}

.device-card-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0;
}

.contribution-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0;
}

/* Grille 7 cartes équilibrée (Malickgg) */
.contribution-grid--malickgg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.contribution-grid--malickgg .contribution-card {
    flex: 0 1 calc((100% - 66px) / 4);
    min-width: 0;
}


/* ==================================================
   LECTEURS VIDÉO & SLOTS
================================================== */

.project-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px var(--color-shadow-lg);
}

.project-video-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--color-dark);
}

.project-square-video-wrapper {
    max-width: 440px;
    margin: 45px auto 0;
    width: 100%;
}

.project-square-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--color-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 45px var(--color-shadow-md);
}

.project-video-player--square {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-short-video-wrapper {
    max-width: 340px;
    margin: 45px auto 0;
    width: 100%;
}

.project-short-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--color-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 45px var(--color-shadow-lg);
}

.project-demo-video-wrapper {
    max-width: 960px;
    margin: 45px auto 0;
    width: 100%;
}

/* Emplacement vidéo en attente de fichier local */
.project-video-container--slot {
    background: var(--color-surface);
    box-shadow: 0 14px 40px var(--color-shadow-sm);
}

.project-video-container--slot .project-video-player {
    position: relative;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.project-video-container--slot.has-video {
    background: var(--color-dark);
}

.project-video-container--slot.has-video .project-video-player {
    opacity: 1;
    pointer-events: auto;
}

.video-slot-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    background: var(--color-surface);
    border: 1.5px dashed var(--color-accent-border);
    border-radius: 12px;
    transition: opacity 0.35s ease;
}

.project-video-container--slot.has-video .video-slot-placeholder {
    opacity: 0;
    pointer-events: none;
}

.video-slot-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.video-slot-title {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

.video-slot-path {
    display: inline-block;
    font-size: 12px;
    color: var(--color-text-muted);
    background: var(--color-surface-code);
    padding: 5px 12px;
    border-radius: 4px;
    word-break: break-all;
}


/* ==================================================
   GALERIE INFINIE AU SWIPE
================================================== */

.project-section--gallery {
    padding-bottom: clamp(60px, 8vw, 105px);
}

.gallery-heading-wrap {
    margin-bottom: 25px;
}

.gallery-infinite-viewport {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    padding: 15px 0 35px;
}

.gallery-infinite-viewport.is-grabbing {
    cursor: grabbing;
}

.gallery-infinite-viewport img,
.gallery-infinite-viewport video {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.gallery-infinite-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    pointer-events: auto;
}

.gallery-item {
    flex: 0 0 clamp(290px, 34vw, 420px);
    margin: 0;
}

.gallery-item--short {
    flex: 0 0 clamp(210px, 22vw, 270px);
}

.gallery-media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--color-shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-media-frame--short {
    aspect-ratio: 9 / 16;
    background: var(--color-dark);
}

.gallery-media-frame:hover {
    box-shadow: 0 16px 35px var(--color-shadow-md);
}

.gallery-image,
.gallery-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.gallery-image {
    opacity: 0;
}

.gallery-video {
    background: var(--color-black);
    pointer-events: none;
}

.gallery-media-frame.is-loaded .gallery-image,
.gallery-media-frame.is-loaded .gallery-video {
    opacity: 1;
}

.gallery-media-frame:hover .gallery-image,
.gallery-media-frame:hover .gallery-video {
    transform: scale(1.05);
}

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: var(--color-surface);
    transition: opacity 0.3s ease;
}

.gallery-media-frame.is-loaded .gallery-placeholder {
    opacity: 0;
    pointer-events: none;
}

.gallery-placeholder-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.gallery-placeholder-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.gallery-placeholder-path {
    display: block;
    font-size: 10px;
    color: var(--color-text-subtle);
    background: var(--color-surface-code);
    padding: 2px 6px;
    border-radius: 3px;
    word-break: break-all;
}

.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-overlay-medium);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-media-frame.is-loaded:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-zoom-badge {
    color: var(--color-white);
    background: var(--color-overlay-strong);
    border: none;
    box-shadow: 0 4px 14px var(--color-overlay-medium);
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.gallery-short-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 44px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--color-overlay-strong) 55%,
        var(--color-overlay-heavy) 100%
    );
    pointer-events: none;
}

.gallery-short-views {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.gallery-short-title {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==================================================
   VIDÉOS YOUTUBE & FORMATS LONGS (MALICKGG)
================================================== */

.yt-embed-facade {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-embed-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease;
}

.yt-embed-facade:hover .yt-embed-thumb {
    transform: scale(1.04);
    filter: brightness(0.88);
}

.yt-embed-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    background: var(--color-overlay-soft);
    transition: background 0.3s ease;
}

.yt-embed-facade:hover .yt-embed-overlay {
    background: var(--color-overlay-medium);
}

.yt-embed-facade--short .gallery-short-info {
    z-index: 3;
}

.yt-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 4px;
    box-shadow: 0 12px 32px var(--color-accent-glow);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.yt-embed-facade:hover .yt-play-btn {
    transform: scale(1.08);
    filter: brightness(0.92);
}

.yt-embed-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--color-dark);
}

.long-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.long-video-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.long-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 32px var(--color-shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.long-video-card:hover .long-video-frame {
    box-shadow: 0 18px 40px var(--color-shadow-lg);
}

.long-video-frame--upcoming {
    background: var(--color-surface);
    box-shadow: 0 6px 20px var(--color-shadow-sm);
}

.long-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: var(--color-surface);
    border: 1.5px dashed var(--color-accent-border);
    border-radius: 10px;
}

.long-video-placeholder-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.2px;
}

.long-video-placeholder-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 280px;
}

.long-video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
}

.long-video-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.long-video-title {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.35;
    letter-spacing: -0.2px;
}


/* ==================================================
   COLLECTIONS (LOGOS & MINIATURES / MAQUETTE)
================================================== */

.logo-collection-box,
.thumbnails-collection-box {
    margin-top: 55px;
}

.logo-collection-title {
    font-size: 19px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.logo-collection-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px;
}

.logo-collection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.logo-slot-card {
    aspect-ratio: 1 / 1;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 6px 20px var(--color-shadow-sm);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-slot-card:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 30px var(--color-accent-soft);
}

.logo-slot-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnails-collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.thumbnail-slot-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--color-shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.thumbnail-slot-card:hover {
    box-shadow: 0 16px 34px var(--color-accent-soft);
}

.thumbnail-slot-img,
.thumbnail-slot-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.55s ease;
}

.thumbnail-slot-video {
    background: var(--color-dark);
    pointer-events: none;
}

.thumbnail-slot-card[data-lightbox-group] {
    cursor: pointer;
}

.thumbnail-slot-card.is-loaded .thumbnail-slot-img,
.thumbnail-slot-card.is-loaded .thumbnail-slot-video {
    opacity: 1;
}

.thumbnail-slot-card.is-loaded:hover .thumbnail-slot-img,
.thumbnail-slot-card.is-loaded:hover .thumbnail-slot-video {
    transform: scale(1.04);
}

.thumbnail-slot-card.is-loaded:hover .gallery-hover-overlay {
    opacity: 1;
}

.thumbnail-slot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    background: var(--color-surface);
    border: 1.5px dashed var(--color-accent-border);
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.thumbnail-slot-card.is-loaded .thumbnail-slot-placeholder {
    opacity: 0;
    pointer-events: none;
}

.thumbnail-slot-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.thumbnail-slot-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.thumbnail-slot-path {
    display: inline-block;
    font-size: 11px;
    color: var(--color-text-muted);
    background: var(--color-surface-code);
    padding: 4px 10px;
    border-radius: 4px;
    word-break: break-all;
}


/* ==================================================
   INFORMATIONS, CRÉDITS & NAVIGATION RETOUR
================================================== */

.project-info-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(35px, 6vw, 75px);
    align-items: start;
}

.project-meta-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-meta-row {
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta-row small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.project-meta-row strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.project-site-card {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 34px 28px;
    box-shadow: 0 8px 24px var(--color-shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-site-badge {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-site-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 500;
    color: var(--color-text);
}

.project-site-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--color-text-body);
    margin: 0 0 24px;
}

.project-site-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.project-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--color-text);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.project-site-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.project-site-btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-text);
}

.project-site-btn--secondary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.project-nav-bar {
    padding: 40px 0 65px;
    margin-top: 45px;
    border: none;
    display: flex;
    justify-content: flex-start;
}

.project-nav-link,
.project-nav-link--all {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-black) !important;
}

.project-nav-link:hover,
.project-nav-link--all:hover {
    color: var(--color-black) !important;
    opacity: 1 !important;
}


/* ==================================================
   VISIONNEUSE LIGHTBOX (PHOTOS, VIDÉOS & YOUTUBE)
================================================== */

.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: var(--color-lightbox-backdrop);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: transparent;
    border: 0;
    color: var(--color-white);
    font-size: 34px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover {
    color: var(--color-accent);
    transform: scale(1.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white-glass);
    border: none;
    box-shadow: 0 4px 14px var(--color-shadow-xl);
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 3;
}

.lightbox-nav:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 84vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px var(--color-shadow-xl);
}

.lightbox-video {
    display: none;
    max-width: 100%;
    max-height: 76vh;
    border-radius: 4px;
    background: var(--color-black);
    box-shadow: 0 20px 60px var(--color-shadow-xl);
}

.lightbox-modal.is-video .lightbox-video {
    display: block;
}

.lightbox-modal.is-video .lightbox-img {
    display: none;
}

.lightbox-youtube-wrap {
    position: relative;
    display: none;
    height: min(74vh, 640px);
    aspect-ratio: 9 / 16;
    max-width: 86vw;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-dark);
    box-shadow: 0 20px 60px var(--color-overlay-strong);
}

.lightbox-youtube-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.lightbox-youtube-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.lightbox-youtube-fallback[hidden] {
    display: none;
}

.lightbox-youtube-fallback-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62);
}

.lightbox-youtube-fallback-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-overlay-soft), var(--color-overlay-strong));
}

.lightbox-youtube-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 6px;
    background: var(--color-accent);
    color: var(--color-white) !important;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    box-shadow: 0 10px 28px var(--color-accent-glow);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.lightbox-youtube-cta:hover {
    filter: brightness(0.92);
}

.lightbox-youtube-hint {
    margin: 0;
    max-width: 240px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-white-soft);
}

.lightbox-modal.is-youtube .lightbox-youtube-wrap {
    display: block;
}

.lightbox-modal.is-youtube .lightbox-img,
.lightbox-modal.is-youtube .lightbox-video {
    display: none !important;
}

.lightbox-meta {
    margin-top: 14px;
    text-align: center;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.lightbox-counter {
    font-size: 12px;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    font-weight: 500;
}

.lightbox-title {
    font-size: 13.5px;
    color: var(--color-white-soft);
    max-width: min(520px, 85vw);
    line-height: 1.4;
}

.lightbox-external-link {
    display: none;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-white-soft);
    border-bottom: 1px solid var(--color-white-border);
    padding-bottom: 2px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.lightbox-modal.is-youtube .lightbox-external-link {
    display: inline-block;
}

.lightbox-external-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}


/* ==================================================
   PAGE PROJETS À VENIR (VOIR PLUS)
================================================== */

.upcoming-projects-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(60px, 12vh, 130px) 24px clamp(70px, 14vh, 140px);
}

.upcoming-title {
    font-size: clamp(34px, 5.5vw, 62px);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 22px;
}

.upcoming-title span {
    color: var(--color-accent);
}

.upcoming-description {
    max-width: 540px;
    margin: 0 auto 42px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.upcoming-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--color-text);
    color: var(--color-white) !important;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.upcoming-back-btn:hover {
    background: var(--color-black);
    color: var(--color-white) !important;
}


/* ==================================================
   RESPONSIVE — TABLETTE (<= 900px)
================================================== */

@media (max-width: 900px) {
    .site {
        padding: 0 25px;
    }

    .navigation {
        gap: 30px;
    }

    .navigation a {
        font-size: 18px;
        letter-spacing: 3.5px;
    }

    .projects {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 65px;
    }

    .project-image {
        height: 200px;
    }

    .project-image--move-together,
    .project-image--malickgg,
    .project-image--isaac-cordal {
        width: 200px;
        height: 200px;
    }

    .moi-content {
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
        gap: 32px;
    }

    .device-grid,
    .contribution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .contribution-grid--malickgg .contribution-card {
        flex: 0 1 calc((100% - 18px) / 2);
    }

    .logo-collection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .project-overview-grid,
    .project-info-grid,
    .long-videos-grid,
    .thumbnails-collection-grid {
        grid-template-columns: 1fr;
    }

    .project-overview-grid {
        gap: 25px;
    }

    .project-info-grid {
        gap: 35px;
    }

    .long-videos-grid {
        gap: 24px;
    }

    .thumbnails-collection-grid {
        gap: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}


/* ==================================================
   RESPONSIVE — PETITE TABLETTE (<= 700px)
================================================== */

@media (max-width: 700px) {
    .project-detail-site {
        padding: 0 22px;
    }

    .project-detail-header {
        padding-top: 24px;
    }

    .project-detail-logo {
        width: 112px;
    }
}


/* ==================================================
   RESPONSIVE — MOBILE (<= 650px)
================================================== */

@media (max-width: 650px) {
    .site {
        padding: 0 20px;
    }

    .header {
        padding-top: 30px;
    }

    .logo {
        width: min(78vw, 510px);
        margin-top: 22vh;
        margin-bottom: 26vh;
    }

    .navigation {
        gap: 18px;
        margin-bottom: 6vh;
    }

    .navigation a {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .projects {
        grid-template-columns: 1fr;
        row-gap: 50px;
        margin-top: 35px;
        padding-bottom: 40px;
    }

    .project-image {
        height: 225px;
    }

    .project-image--move-together,
    .project-image--malickgg,
    .project-image--isaac-cordal {
        width: 225px;
        height: 225px;
    }

    .project-name {
        margin-top: 14px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .more {
        margin-top: 30px;
    }

    .moi {
        margin-top: 60px;
        padding-bottom: 60px;
    }

    .section-label,
    .moi .section-label {
        margin-bottom: 28px;
    }

    .section-label {
        font-size: clamp(26px, 7vw, 36px);
        letter-spacing: -1px;
    }

    .moi-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .moi-left-column {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        gap: 14px;
    }

    .moi-photo {
        width: 100%;
        aspect-ratio: 4 / 5;
        border-radius: 6px;
    }

    .moi-cv-btn {
        font-size: 15px;
        margin: 8px auto 0;
    }

    .moi-text {
        padding-top: 0;
    }

    .moi-intro {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .moi-details {
        gap: 18px;
    }

    .contact-footer {
        width: 100%;
        margin-left: 0;
        padding: 38px 20px 48px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-intro p {
        max-width: 100%;
        margin: 0 auto;
        font-size: 13px;
    }

    .contact-email {
        margin: 0 auto;
    }

    .footer-links {
        justify-content: center;
    }

    .device-grid,
    .contribution-grid {
        grid-template-columns: 1fr;
    }

    .contribution-grid--malickgg .contribution-card {
        flex: 1 1 100%;
    }

    .logo-collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .project-hero-title {
        letter-spacing: -1.5px;
    }

    .gallery-item {
        flex: 0 0 clamp(260px, 76vw, 320px);
    }

    .gallery-item--short {
        flex: 0 0 clamp(195px, 60vw, 240px);
    }

    .project-short-video-wrapper {
        max-width: 290px;
    }

    .yt-play-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .lightbox-container {
        max-width: 96vw;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
        font-size: 28px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .lightbox-youtube-wrap {
        height: min(68vh, 540px);
    }
}
