/* ==========================================================================
   MATHIEU DALMAS — PORTFOLIO CINÉMA
   Design responsive Desktop & Mobile, haute performance GPU
   ========================================================================== */

:root {
    --bg-base: #090a0f;
    --bg-elevated: #0f1119;
    --bg-card: #13141c;
    --blue: #2898d9;
    --accent: #4cb4ed;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    border: 0 solid var(--line);
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    scrollbar-width: thin;
    scrollbar-color: #2a2d3c var(--bg-base);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    position: relative;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #2a2d3c;
    border-radius: 99px;
}

img,
video,
iframe,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
}

button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 10px;
}

::selection {
    background: var(--blue);
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============ TYPOGRAPHIE ============ */
.font-sans { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.font-brand { font-family: 'Outfit', sans-serif; }
.font-title { font-family: 'Syne', sans-serif; }
.font-script { font-family: 'Caveat', cursive; }
.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

/* ============ ARRIÈRE-PLAN ATMOSPHÉRIQUE ============ */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1.1px, transparent 1.1px);
    background-size: 28px 28px;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.glow-orb--primary {
    top: 30%;
    left: 50%;
    width: min(680px, 120vw);
    height: min(680px, 120vw);
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(40, 152, 217, 0.13) 0%, transparent 70%);
}

.glow-orb--secondary {
    bottom: 15%;
    right: 2.5rem;
    width: min(460px, 95vw);
    height: min(460px, 95vw);
    background: radial-gradient(circle, rgba(12, 74, 110, 0.12) 0%, transparent 70%);
}

/* ============ BARRE DE PROGRESSION & CONTENEURS ============ */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 70;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--blue), #7fd4ff);
}

.container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3.5vw, 2rem);
}

.container--narrow {
    max-width: 68rem;
}

/* ============ SURFACES GLASS CINÉMA ============ */
.glass-panel {
    background: linear-gradient(180deg, rgba(24, 26, 37, 0.94), rgba(15, 16, 23, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 45px -20px rgba(0, 0, 0, 0.75);
}

/* ============ BOUTONS & INTERACTIONS ============ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.4rem;
    border-radius: 0.75rem;
    background: var(--blue);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 0 25px rgba(40, 152, 217, 0.35);
    transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 30px rgba(40, 152, 217, 0.55);
    transform: scale(1.01);
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border-radius: 0.75rem;
    background: #27272a;
    border: 1px solid rgba(63, 63, 70, 0.8);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background-color 0.2s, transform 0.2s var(--ease);
    min-height: 42px;
}

.btn-secondary:hover {
    background: #3f3f46;
    transform: scale(1.03);
}

.btn-secondary:active {
    transform: scale(0.96);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translate3d(-130%, 0, 0) skewX(-18deg);
    transition: transform 0.8s var(--ease);
}

.btn-shine:hover::after {
    transform: translate3d(260%, 0, 0) skewX(-18deg);
}

/* ============ HEADER & NAVIGATION (FIDÈLE À L'ORIGINAL) ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 1rem;
    transition: transform 0.5s var(--ease);
    will-change: transform;
}

@media (min-width: 768px) {
    .site-header {
        padding: calc(1rem + env(safe-area-inset-top, 0px)) 2rem 1rem;
    }
}

.site-header.is-hidden {
    transform: translate3d(0, -130%, 0);
}

.header-bar {
    max-width: 80rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 1rem;
    padding: 0.875rem 1.5rem;
    background: rgba(15, 16, 23, 0.95);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled .header-bar {
    background: rgba(9, 10, 15, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.9);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.brand-logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .brand-logo { height: 2.75rem; }
}

@media (min-width: 768px) {
    .brand-logo { height: 3rem; }
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.brand-name {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    line-height: 1;
}

.brand-first {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: #fff;
    transition: color 0.15s;
}

.brand-link:hover .brand-first {
    color: #e4e4e7;
}

.brand-last {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blue);
    display: inline-block;
    transform: rotate(-1deg);
    filter: drop-shadow(0 0 12px rgba(40, 152, 217, 0.4));
}

@media (min-width: 640px) {
    .brand-first { font-size: 1.25rem; }
    .brand-last { font-size: 1.875rem; }
}

.brand-role {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1aa;
    font-weight: 600;
    margin-top: 0.25rem;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
}

.desktop-nav a {
    position: relative;
    padding: 0.35rem 0;
    color: #d4d4d8;
    transition: color 0.15s;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--blue);
}

.desktop-nav a.is-active {
    color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta-wrap {
    display: none;
    align-items: center;
}

@media (min-width: 640px) {
    .header-cta-wrap { display: flex; }
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.68rem 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(40, 152, 217, 0.35);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cta i {
    font-size: 10px;
}

.header-cta:hover {
    background-color: var(--accent);
    box-shadow: 0 0 30px rgba(40, 152, 217, 0.6);
    transform: scale(1.05);
}

.header-cta:active {
    transform: scale(0.95);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d8;
    padding: 0.5rem;
    font-size: 1.25rem;
    min-width: 44px;
    min-height: 44px;
    transition: color 0.15s;
}

.menu-toggle:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

/* Menu Mobile dropdown intégré dans le header */
.mobile-menu {
    margin-top: 0.75rem;
    max-width: 80rem;
    margin-inline: auto;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #27272a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

.mobile-menu-link {
    color: #e4e4e7;
    font-size: 1rem;
    padding-block: 0.5rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(39, 39, 42, 0.6);
    transition: color 0.15s;
}

.mobile-menu-link:hover {
    color: var(--blue);
}

.mobile-menu-cta-wrap {
    padding-top: 0.5rem;
}

.mobile-menu-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding-block: 0.75rem;
    background-color: var(--blue);
    color: #fff;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ============ HERO SECTION (PLEIN ÉCRAN DESKTOP & TÉLÉPHONE) ============ */
.hero-section {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout paint;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    pointer-events: none;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(180deg, rgba(9, 10, 15, 0.38) 0%, transparent 20%, transparent 82%, #090a0f 100%);
}

.scroll-cue {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font: 600 10px/1 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.scroll-cue i {
    width: 1px;
    height: 44px;
    background: linear-gradient(var(--accent), transparent);
    transform-origin: top;
    animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
    0% { transform: scaleY(0); opacity: 0.25; }
    55% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ============ SECTIONS COMMUNES ============ */
.page-section {
    position: relative;
    z-index: 10;
    padding-block: clamp(3.75rem, 8vw, 7rem);
}

.page-section--bordered {
    border-top: 1px solid rgba(39, 39, 42, 0.6);
}

.section-index-bg {
    position: absolute;
    top: clamp(1.25rem, 3vw, 2.5rem);
    right: clamp(1rem, 4vw, 2.5rem);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3.75rem, 10vw, 8.5rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 900;
    font-size: clamp(1.48rem, 4.7vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    overflow-wrap: break-word;
    background: linear-gradient(180deg, #ffffff 35%, #9aa6bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ SECTION 01 — RÉALISATIONS ============ */
.projects-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

@media (min-width: 1280px) {
    .projects-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.5rem 2rem;
        margin-bottom: 3rem;
    }
}

.filter-strip-wrap {
    position: relative;
    max-width: 100%;
    min-width: 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn {
    flex-shrink: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.52rem 0.85rem;
    border-radius: 0.75rem;
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-height: 40px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

@media (min-width: 640px) {
    .filter-btn {
        padding: 0.56rem 0.95rem;
        font-size: 0.72rem;
        letter-spacing: 0.05em;
    }
}

.filter-btn:hover {
    color: #fff;
    transform: translate3d(0, -2px, 0);
}

.filter-btn:active {
    transform: scale(0.96);
}

.filter-btn .filter-count {
    font-family: ui-monospace, monospace;
    font-size: 0.65rem;
    padding: 0.1rem 0.38rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    color: inherit;
}

.filter-btn.is-active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.filter-btn.is-active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Grille Projets */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Cartes Projets */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24, 26, 37, 0.94), rgba(15, 16, 23, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 45px -20px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    contain: layout style;
    transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.project-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: rgba(76, 180, 237, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 25px 50px -20px rgba(40, 152, 217, 0.35);
}

.spot {
    position: absolute;
    left: 0;
    top: 0;
    width: 680px;
    height: 680px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    background: radial-gradient(circle 340px at 50% 50%, rgba(76, 180, 237, 0.14), transparent 65%);
}

.project-card:hover .spot {
    opacity: 1;
    will-change: transform;
}

.project-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: #09090b;
}

.project-thumb::before,
.project-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 11%;
    background: #000;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.5s var(--ease);
}

.project-thumb::before {
    top: 0;
    transform: translate3d(0, -100%, 0);
}

.project-thumb::after {
    bottom: 0;
    transform: translate3d(0, 100%, 0);
}

.project-card:hover .project-thumb::before,
.project-card:hover .project-thumb::after {
    transform: none;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), filter 0.4s;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.project-thumb-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(19, 20, 28, 0.88) 100%);
    pointer-events: none;
    z-index: 1;
}

.project-index-pill {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    padding: 0.25rem 0.55rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    color: #d4d4d8;
}

.project-duration-pill {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(63, 63, 70, 0.5);
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
}

.project-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.25s;
}

.project-play-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 99px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(40, 152, 217, 0.7);
    transition: transform 0.25s var(--ease);
}

.project-play-circle i {
    margin-left: 3px;
    font-size: 1rem;
}

@media (hover: hover) and (pointer: fine) {
    .project-play-overlay { opacity: 0; }
    .project-play-circle { transform: scale(0.75); }
    .project-card:hover .project-play-overlay { opacity: 1; }
    .project-card:hover .project-play-circle { transform: scale(1); }
}

@media (hover: none), (pointer: coarse), (max-width: 819px) {
    .project-play-overlay {
        inset: auto 0.75rem 0.75rem auto;
        opacity: 1;
    }
    .project-play-circle {
        width: 2.5rem;
        height: 2.5rem;
        transform: none !important;
        background: rgba(9, 10, 15, 0.84);
        border: 1px solid rgba(76, 180, 237, 0.55);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    }
    .project-play-circle i {
        color: var(--accent);
        font-size: 0.8rem;
    }
}

.project-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.2rem 0.75rem;
    border-radius: 99px;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.55rem;
}

.cat-badge--brand {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

.cat-badge--social {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.cat-badge--fiction {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.2);
}

.color-brand { color: #fbbf24; }
.color-social { color: #38bdf8; }
.color-fiction { color: #fb7185; }

.project-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #fff;
    transition: color 0.15s;
}

.project-card:hover .project-title {
    color: var(--blue);
}

.project-desc {
    color: #a1a1aa;
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.project-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 11px;
    color: #a1a1aa;
}

.project-specs {
    font-family: ui-monospace, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-watch-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: #e4e4e7;
    transition: transform 0.2s var(--ease);
}

.project-watch-cta i {
    color: var(--blue);
    font-size: 10px;
}

.project-card:hover .project-watch-cta {
    transform: translateX(4px);
}

/* ============ SECTION 02 — À PROPOS ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 3rem;
    }
    .about-media-col { grid-column: span 5 / span 5; }
    .about-copy-col { grid-column: span 7 / span 7; }
}

.about-frame {
    position: relative;
    max-width: 24rem;
    margin-inline: auto;
}

@media (min-width: 900px) {
    .about-frame {
        max-width: none;
    }
}

.about-frame::before {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    z-index: -1;
    border: 1px solid rgba(76, 180, 237, 0.35);
    border-radius: 1rem;
    transition: transform 0.6s var(--ease);
}

.about-frame:hover::before {
    transform: translate3d(-6px, -6px, 0);
}

.about-portrait-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(63, 63, 70, 0.6);
    background: var(--bg-card);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.about-portrait-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.about-frame:hover .about-portrait-card img {
    transform: scale(1.03);
}

.about-portrait-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.3) 45%, transparent 100%);
    opacity: 0.85;
    pointer-events: none;
}

.about-portrait-caption {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
}

.about-portrait-tag {
    font-family: ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
}

.about-portrait-name {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.about-portrait-name span:first-child {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.about-portrait-name span:last-child {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.875rem;
    color: var(--blue);
}

.about-lead {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.65;
    color: #d4d4d8;
    margin-top: 1.5rem;
}

.about-sub {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #a1a1aa;
    margin-top: 1rem;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #27272a;
}

@media (min-width: 640px) {
    .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pillar-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(40, 152, 217, 0.1);
    border: 1px solid rgba(40, 152, 217, 0.2);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.pillar-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #e4e4e7;
}

.pillar-card p {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 0.15rem;
}

/* ============ SECTION 03 — CONTACT ============ */
.contact-intro {
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-intro .section-eyebrow {
    justify-content: center;
}

.contact-intro p {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-top: 0.65rem;
}

.contact-panel {
    border-radius: 1.5rem;
    padding: clamp(1.35rem, 4vw, 3rem);
    border: 1px solid rgba(63, 63, 70, 0.6);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 960px) {
    .contact-panel {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 3rem;
        align-items: start;
    }
}

.contact-card-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #27272a;
}

@media (min-width: 960px) {
    .contact-card-aside {
        padding-bottom: 0;
        padding-right: 2rem;
        border-bottom: 0;
        border-right: 1px solid #27272a;
    }
}

.contact-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(40, 152, 217, 0.4);
    flex-shrink: 0;
    background: #18181b;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-identity-name {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    line-height: 1;
}

.contact-identity-name span:first-child {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    color: #fff;
}

.contact-identity-name span:last-child {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--blue);
}

.contact-identity-role {
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-top: 0.25rem;
}

.contact-email-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(9, 10, 15, 0.65);
    border: 1px solid var(--line);
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #d4d4d8;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-email-link i {
    color: var(--blue);
    flex-shrink: 0;
}

.copy-email-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    font-weight: 600;
    color: #d4d4d8;
    min-height: 32px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.copy-email-btn:hover,
.copy-email-btn.is-copied {
    background: rgba(40, 152, 217, 0.2);
    border-color: var(--accent);
    color: #fff;
}

.social-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.75rem;
    background: rgba(24, 24, 27, 0.9);
    border: 1px solid #27272a;
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 42px;
    transition: border-color 0.2s, color 0.2s;
}

.social-pill:hover {
    color: var(--blue);
    border-color: rgba(40, 152, 217, 0.5);
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field-label {
    display: block;
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d4d4d8;
    margin-bottom: 0.5rem;
}

.field-input {
    width: 100%;
    padding: 0.78rem 1rem;
    border-radius: 0.75rem;
    background: rgba(24, 24, 27, 0.9);
    border: 1px solid #27272a;
    color: #e4e4e7;
    font-size: 1rem;
    transition: border-color 0.2s;
}

@media (min-width: 768px) {
    .field-input { font-size: 0.875rem; }
}

.field-input::placeholder {
    color: #52525b;
}

.field-input:focus {
    outline: none;
    border-color: var(--blue);
}

textarea.field-input {
    resize: none;
    min-height: 112px;
}

.form-error {
    padding: 0.75rem 0.95rem;
    border-radius: 0.75rem;
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: #fda4af;
    font-size: 0.82rem;
}

.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success-icon {
    width: 4rem;
    height: 4rem;
    margin-inline: auto;
    margin-bottom: 1rem;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.form-success h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.form-success p {
    color: #a1a1aa;
    font-size: 0.875rem;
    margin: 0.5rem auto 1.5rem;
    max-width: 24rem;
}

.is-hidden-el {
    display: none !important;
}

/* ============ FOOTER ============ */
.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(39, 39, 42, 0.8);
    background: rgba(9, 9, 11, 0.8);
    padding: 2.25rem 0 calc(2.25rem + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        text-align: left;
        padding-right: 4.75rem;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: #71717a;
}

/* ============ BOUTON RETOUR EN HAUT ============ */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 99px;
    background: rgba(15, 17, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease), background-color 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--blue);
}

/* ============ MODALE PROJET (ADAPTATIVE 16:9 & 9:16 VERTICAL) ============ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

@media (min-width: 640px) {
    .project-modal {
        align-items: center;
        padding: 1.5rem;
    }
}

.project-modal.is-open {
    opacity: 1;
}

.modal-card {
    width: 100%;
    max-width: 56rem;
    max-height: 92dvh;
    background: var(--bg-card);
    border: 1px solid #27272a;
    border-radius: 1rem 1rem 0 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translate3d(0, 20px, 0);
    transition: transform 0.35s var(--ease);
}

@media (min-width: 640px) {
    .modal-card {
        border-radius: 1rem;
        transform: translate3d(0, 16px, 0);
    }
}

.project-modal.is-open .modal-card {
    transform: translate3d(0, 0, 0);
}

.modal-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(19, 20, 28, 0.96);
    border-bottom: 1px solid rgba(39, 39, 42, 0.8);
}

.modal-nav-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.modal-counter {
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-inline: 0.35rem;
}

.modal-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.modal-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background: #fff;
    color: #000;
}

.modal-stage {
    position: relative;
    width: 100%;
    background: #09090b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(39, 39, 42, 0.8);
    flex-shrink: 0;
}

.modal-player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.modal-stage.is-vertical {
    padding: 1rem;
    background: radial-gradient(circle at 50% 45%, rgba(40, 152, 217, 0.14), #040508 72%);
}

.modal-stage.is-vertical .modal-player-box {
    aspect-ratio: 9 / 16;
    width: auto;
    height: min(62dvh, 520px);
    max-width: 100%;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.modal-player-box iframe,
.modal-player-box img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-video-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.modal-poster-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.modal-player-box img {
    object-fit: cover;
}

.modal-content {
    padding: clamp(1.25rem, 3.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(39, 39, 42, 0.8);
}

@media (min-width: 640px) {
    .modal-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.modal-desc-label {
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1aa;
    margin-bottom: 0.45rem;
}

.modal-desc {
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1.625;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 1rem;
    border-block: 1px solid #27272a;
}

@media (min-width: 640px) {
    .modal-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.modal-spec-box {
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid #27272a;
}

.modal-spec-box span {
    display: block;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: #a1a1aa;
}

.modal-spec-box strong {
    display: block;
    font-size: 0.75rem;
    color: #fff;
    margin-top: 0.25rem;
}

.modal-spec-box strong.is-accent {
    color: var(--accent);
}

.modal-cta-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 640px) {
    .modal-cta-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ============ ANIMATIONS REVEAL & CURSEUR CUSTOM ============ */
.js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 25px, 0);
}

.reveal.is-visible {
    animation: revealUp 0.8s var(--ease) var(--d, 0ms) backwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translate3d(0, 25px, 0);
    }
}

.project-card.card-in {
    animation: revealUp 0.6s var(--ease) var(--d, 0ms) backwards;
}

.cur-dot,
.cur-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 80;
    opacity: 0;
    will-change: transform;
    transition: opacity 0.25s ease;
}

.has-cursor .cur-dot,
.has-cursor .cur-ring {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .has-cursor,
    .has-cursor * {
        cursor: none !important;
    }
}

.cur-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #fff;
}

.cur-dot.is-card {
    opacity: 0;
}

.cur-ring {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    transition: transform 0.09s var(--ease), opacity 0.2s ease;
}

.cur-ring i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s;
}

.cur-ring.is-link i {
    transform: scale(1.45);
    background: rgba(76, 180, 237, 0.15);
    border-color: var(--accent);
}

.cur-ring.is-card i {
    transform: scale(1.8);
    background: rgba(40, 152, 217, 0.75);
    border-color: transparent;
}

@media (hover: none), (pointer: coarse), (max-width: 819px) {
    .cur-dot,
    .cur-ring {
        display: none !important;
    }
    .has-cursor,
    .has-cursor * {
        cursor: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .js .reveal:not(.is-visible) {
        opacity: 1;
        transform: none;
    }
}
