/* LOGO IMAGE */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.loader-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    animation: logoFadeIn 1s ease 0.5s forwards;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }

    .loader-logo-img {
        height: 60px;
    }
}

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

:root {
    --black: #0a0a0a;
    --white: #f5f5f5;
    --red: #e63946;
    --red-dark: #b71c1c;
    --gray: #666;
    --gray-dark: #111;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

/* CURSEUR CRÉATIF - Cible de caméra */
/* CURSEUR - Point rouge simple */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, background 0.15s ease;
}

.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(2);
    background: var(--white);
}

/* ========== LOADER CINÉMATIQUE ========== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
}

/* Icônes cinéma */
.loader-icons {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.loader-icon {
    width: 50px;
    height: 50px;
    color: var(--red);
    opacity: 0;
    animation: iconPop 0.5s ease forwards, iconFloat 2s ease-in-out infinite;
}

.loader-icon:nth-child(1) {
    animation-delay: 0s, 0.5s;
}

.loader-icon:nth-child(2) {
    animation-delay: 0.15s, 0.65s;
}

.loader-icon:nth-child(3) {
    animation-delay: 0.3s, 0.8s;
}

.loader-icon:nth-child(4) {
    animation-delay: 0.45s, 0.95s;
}

.loader-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes iconPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }

    70% {
        transform: scale(1.2) rotate(5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Logo */
.loader-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    letter-spacing: 0.2em;
    display: flex;
    overflow: hidden;
}

.loader-logo span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: letterSlide 0.6s ease forwards;
}

.loader-logo span:nth-child(1) {
    animation-delay: 0.6s;
}

.loader-logo span:nth-child(2) {
    animation-delay: 0.65s;
}

.loader-logo span:nth-child(3) {
    animation-delay: 0.7s;
}

.loader-logo span:nth-child(4) {
    animation-delay: 0.75s;
}

.loader-logo span:nth-child(5) {
    animation-delay: 0.8s;
}

.loader-logo span:nth-child(6) {
    animation-delay: 0.9s;
}

.loader-logo span:nth-child(7) {
    animation-delay: 0.95s;
}

.loader-logo span:nth-child(8) {
    animation-delay: 1s;
}

.loader-logo .rec {
    color: var(--red);
}

@keyframes letterSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Si tu utilises une image logo */
.loader-logo-img {
    height: 80px;
    width: auto;
    opacity: 0;
    animation: logoFade 0.8s ease 0.6s forwards;
}

@keyframes logoFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Barre de chargement */
.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
    border-radius: 10px;
    animation: barFill 1.5s ease 0.8s forwards;
}

@keyframes barFill {
    to {
        width: 100%;
    }
}

/* Texte de chargement */
.loader-text {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
    opacity: 0;
    animation: fadeIn 0.5s ease 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .loader-icons {
        gap: 15px;
    }

    .loader-icon {
        width: 35px;
        height: 35px;
    }

    .loader-bar {
        width: 150px;
    }
}


/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.logo .rec {
    color: var(--red);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 99;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--red);
}

/* HERO - Design Cinématographique */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--black) 0%, transparent 20%, transparent 80%, var(--black) 100%),
        linear-gradient(180deg, transparent 60%, var(--black) 100%);
    z-index: 2;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video video,
.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.4);
}

/* Bandes de film sur les côtés */
.film-strip {
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    background: var(--black);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px 10px;
}

.film-strip.left {
    left: 0;
}

.film-strip.right {
    right: 0;
}

.film-strip .hole {
    width: 30px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 3px;
}

.hero-content {
    position: relative;
    z-index: 4;
    padding: 0 10%;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.8s forwards;
}

.hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--red);
}

.hero-title {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    /* légèrement resserré */
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .highlight {
    color: var(--red);
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease 2.2s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 2.4s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.3);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn svg {
    width: 18px;
    height: 18px;
}


/* Compteur de frames en bas à droite */
.frame-counter {
    position: absolute;
    bottom: 40px;
    right: 80px;
    z-index: 4;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeUp 0.8s ease 2.6s forwards;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 0.8s ease 2.8s forwards;
}

.scroll-hint .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* SECTIONS */
section {
    padding: 120px 5%;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 15px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--red);
}

.section-title {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.section-title span {
    color: var(--red);
}

/* ABOUT */
.about {
    background: var(--gray-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--red);
    z-index: -1;
}

.about-image .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.about-image:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 80px;
    height: 80px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.8);
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--red);
}

.play-btn svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
    margin-left: 5px;
}

.about-text p {
    color: var(--gray);
    line-height: 2;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.stats-row {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: 'Clash Display', sans-serif;
    font-size: 3.5rem;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 5px;
}

/* SERVICES - Cards créatives */
.services {
    background: var(--black);
}

.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--gray-dark);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid transparent;
}

.service-card::before {
    content: attr(data-num);
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    color: rgba(230, 57, 70, 0.08);
    line-height: 1;
    transition: all 0.5s ease;
}

.service-card:hover::before {
    color: rgba(230, 57, 70, 0.2);
    transform: scale(1.1);
}

.service-card:hover {
    border-color: var(--red);
    transform: translateY(-10px);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 30px;
    color: var(--red);
}

.service-card h3,
.process-step h3,
.footer-column h4 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* PORTFOLIO - Galerie immersive */
.portfolio {
    background: var(--gray-dark);
    padding: 120px 0;
}

.portfolio-header {
    padding: 0 5%;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 5%;
}

/* ===== ANIMATION HIGHLIGHT SHORTS ===== */
@keyframes highlightPulseShort {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }

    25% {
        box-shadow: 0 0 30px 10px rgba(230, 57, 70, 0.8);
    }

    50% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }

    75% {
        box-shadow: 0 0 30px 10px rgba(230, 57, 70, 0.8);
    }
}

.short-item.highlight {
    animation: highlightPulseShort 1.5s ease-in-out;
    z-index: 10;
}

.short-item.highlight .short-preview img {
    filter: grayscale(0%) !important;
}

.short-item.highlight .short-overlay {
    opacity: 1;
}

.short-item.highlight .short-info {
    opacity: 1;
}

.short-item.highlight::after {
    border-color: var(--red) !important;
}

/* Assombrir les autres shorts pendant le highlight */
.shorts-grid.filtering .short-item:not(.highlight) {
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.shorts-grid.filtering .short-item.highlight {
    opacity: 1;
}

/* ========== PORTFOLIO TOGGLE & SLIDER ========== */

/* Header avec toggle */
.portfolio-header {
    padding: 0 5%;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
}

.portfolio-toggle {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.toggle-btn svg {
    width: 18px;
    height: 18px;
}

.toggle-btn:hover {
    color: var(--white);
}

.toggle-btn.active {
    background: var(--red);
    color: var(--white);
}

/* Conteneur slider */
.portfolio-slider {
    position: relative;
    overflow: hidden;
}

.portfolio-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-view.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.portfolio-view.exit-left {
    transform: translateX(-100%);
    opacity: 0;
}

/* ========== SHORTS GRID - STYLE COHÉRENT ========== */
.shorts-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Même gap que portfolio-grid */
    padding: 0 5%;
    flex-wrap: wrap;
}

/* ========== SHORT ITEM - CORRECTION ========== */
.short-item {
    width: 280px;
    cursor: pointer;
    position: relative;
    /* Important ! */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.short-item.expanded {
    width: 400px;
}

.short-preview {
    position: relative;
    height: 530px;
    overflow: hidden;
    background: var(--gray-dark);
}

.short-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: grayscale(50%);
}

.short-item:hover .short-preview img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.short-item.expanded .short-preview {
    visibility: hidden;
    /* Cache la preview quand expanded */
}

.short-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(230, 57, 70, 0.6);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.short-item:hover .short-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.short-item.expanded .short-play-icon {
    display: none;
}

.short-play-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    margin-left: 4px;
}

.short-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.short-item.expanded .short-duration {
    display: none;
}

/* Overlay comme les projets */
.short-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.short-item:hover .short-overlay {
    opacity: 1;
}

.short-item.expanded .short-overlay {
    opacity: 0;
}

.short-info {
    padding: 0;
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: left;
}

.short-item:hover .short-info {
    opacity: 1;
}

.short-item.expanded .short-info {
    opacity: 0;
}

.short-tag {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
    display: block;
}

.short-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--white);
}

/* VIDEO EXPANDED */
.short-expanded video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
    display: block;
    /* Important */
}

.short-item.expanded .short-expanded {
    opacity: 1;
    visibility: visible;
}

.short-expanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 530px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 20;
    /* Plus haut z-index */
    background: var(--black);
}

.short-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 25;
}

.short-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.short-close svg {
    width: 20px;
    height: 20px;
}

/* ========== BOUTON PAUSE/PLAY ========== */
.short-play-pause {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 25;
}

.short-play-pause:hover {
    background: var(--red);
    border-color: var(--red);
}

.short-play-pause svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.short-play-pause .pause-icon {
    display: none;
}

.short-play-pause.playing .play-icon {
    display: none;
}

.short-play-pause.playing .pause-icon {
    display: block;
}

/* ========== BARRE DE PROGRESSION ========== */
.short-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 25;
    cursor: pointer;
}

.short-progress-bar {
    height: 100%;
    background: var(--red);
    width: 0%;
    transition: width 0.1s linear;
}

/* ========== BOUTON MUTE ========== */
.short-mute {
    position: absolute;
    bottom: 15px;
    left: 70px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 25;
}

.short-mute:hover {
    background: var(--red);
    border-color: var(--red);
}

.short-mute svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.short-mute .mute-icon {
    display: none;
}

.short-mute.muted .unmute-icon {
    display: none;
}

.short-mute.muted .mute-icon {
    display: block;
}

/* Bordure rouge au hover comme les service-cards */
.short-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.short-item:hover::after {
    border-color: var(--red);
}

.short-item.expanded::after {
    border-color: var(--red);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .short-item {
        width: 240px;
    }

    .short-item.expanded {
        width: 340px;
    }

    .short-preview,
    .short-expanded {
        height: 450px;
    }
}

@media (max-width: 900px) {
    .short-item {
        width: 200px;
    }

    .short-item.expanded {
        width: 300px;
    }

    .short-preview,
    .short-expanded {
        height: 380px;
    }
}

@media (max-width: 600px) {
    .portfolio-toggle {
        width: 100%;
        justify-content: center;
    }

    .shorts-grid {
        gap: 10px;
    }

    .short-item {
        width: 160px;
    }

    .short-item.expanded {
        width: 260px;
    }

    .short-preview,
    .short-expanded {
        height: 300px;
    }

    .short-info {
        padding: 20px;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .short-title {
        font-size: 1.2rem;
    }
}

/* PORTFOLIO - Galerie immersive */
.portfolio {
    background: var(--gray-dark);
    padding: 120px 0;
}

.portfolio-header {
    padding: 0 5%;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 5%;
}

/* IMPORTANT - Correction pour les liens */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: grayscale(50%);
}

.portfolio-item.large img {
    min-height: 530px;
}

.portfolio-item.medium {
    grid-column: span 2;
}

.portfolio-item.medium img {
    min-height: 250px;
    max-height: 300px;
    object-position: center;
}

/* CTA Card dans la grille portfolio */
.portfolio-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(230, 57, 70, 0.04));
    border: 1px solid rgba(230, 57, 70, 0.25);
    text-decoration: none;
    color: inherit;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-cta:hover {
    border-color: var(--red);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(230, 57, 70, 0.08));
    transform: translateY(-5px);
}

.portfolio-cta:hover::before {
    opacity: 1;
}

.portfolio-cta-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.portfolio-cta-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.portfolio-cta-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.portfolio-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(230, 57, 70, 0.5);
    border-radius: 50%;
    color: var(--red);
    transition: all 0.4s ease;
}

.portfolio-cta:hover .portfolio-cta-arrow {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: translateX(5px);
}

.portfolio-cta-arrow svg {
    width: 20px;
    height: 20px;
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.portfolio-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.portfolio-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    background: rgba(230, 57, 70, 0.6);
    pointer-events: none;
}

.portfolio-item:hover .portfolio-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-play svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    margin-left: 3px;
}

/* SHOWREEL */
.showreel {
    background: var(--black);
    text-align: center;
    padding: 150px 5%;
}

.showreel-container {
    max-width: 1000px;
    margin: 50px auto 0;
    position: relative;
}

.showreel-video {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--red);
}

.showreel-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showreel-video:hover img {
    transform: scale(1.05);
}

.showreel-video .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.showreel-video .play-btn svg {
    width: 40px;
    height: 40px;
}

/* PROCESSUS */
.process {
    background: var(--gray-dark);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(to right, var(--red), var(--red-dark));
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 100px;
    height: 100px;
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-family: 'Clash Display', sans-serif;
    font-size: 2rem;
    color: var(--red);
    background: var(--gray-dark);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    background: var(--red);
    color: var(--white);
    transform: scale(1.1);
}

.process-step h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* CONTACT */
.contact {
    background: var(--black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-info p {
    color: var(--gray);
    line-height: 2;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--red);
}

.contact-item a,
.contact-item span {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--red);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

.form-group label {
    position: absolute;
    top: 20px;
    left: 0;
    color: var(--gray);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--red);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 20px;
}

/* FOOTER */
footer {
    background: var(--gray-dark);
    padding: 80px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--red);
    background: var(--red);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-column h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--red);
    text-decoration: none;
}


/* ========== BEFORE / AFTER SLIDER ========== */
.before-after-section {
    background: var(--gray-dark);
    padding: 120px 5%;
}

.before-after-section .section-label,
.before-after-section .section-title {
    text-align: center;
}

.before-after-section .section-label {
    justify-content: center;
}

.before-after {
    max-width: 1000px;
    margin: 60px auto 0;
}

.ba-container {
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    /* EMPÊCHER LA SÉLECTION */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Les deux images */
.ba-image {
    width: 100%;
    height: auto;
    display: block;
    /* EMPÊCHER LE DRAG DES IMAGES */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

/* Image AVANT = fond, toujours visible */
.ba-before {
    position: relative;
    z-index: 1;
}

/* Image APRÈS = par-dessus, clippée par défaut à 50% */
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

/* Ligne du slider */
.ba-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--white);
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    /* EMPÊCHER LA SÉLECTION */
    user-select: none;
    -webkit-user-select: none;
}

/* Poignée du slider */
.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--red);
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    transition: transform 0.2s ease;
    /* EMPÊCHER LA SÉLECTION */
    user-select: none;
    -webkit-user-select: none;
}

.ba-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ba-slider-handle svg {
    width: 28px;
    height: 28px;
    color: var(--white);
    pointer-events: none;
}

/* Labels */
.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ba-slider-handle {
        width: 40px;
        height: 40px;
    }

    .ba-slider-handle svg {
        width: 22px;
        height: 22px;
    }

    .ba-label {
        padding: 8px 15px;
        font-size: 0.65rem;
        bottom: 15px;
    }

    .ba-label-before {
        left: 10px;
    }

    .ba-label-after {
        right: 10px;
    }
}

/* ===== ANIMATION HIGHLIGHT PORTFOLIO ===== */
@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
        transform: scale(1);
    }

    25% {
        box-shadow: 0 0 30px 10px rgba(230, 57, 70, 0.8);
        transform: scale(1.03);
    }

    50% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
        transform: scale(1);
    }

    75% {
        box-shadow: 0 0 30px 10px rgba(230, 57, 70, 0.8);
        transform: scale(1.03);
    }
}

.portfolio-item.highlight {
    animation: highlightPulse 1.5s ease-in-out;
    z-index: 10;
}

.portfolio-item.highlight img {
    filter: grayscale(0%) !important;
}

.portfolio-item.highlight .portfolio-overlay {
    opacity: 1;
}

/* Assombrir les autres projets pendant le highlight */
.portfolio-grid.filtering .portfolio-item:not(.highlight) {
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.portfolio-grid.filtering .portfolio-item.highlight {
    opacity: 1;
}

/* Style des cartes services cliquables */
.service-card {
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--red);
    transform: translateY(-10px);
}

.service-card:active {
    transform: translateY(-5px);
}

/* VIDEO MODAL */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: 1px solid var(--white);
    background: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    border-color: var(--red);
    color: var(--red);
}

.modal-video {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
}

.modal-video video {
    width: 100%;
    height: 100%;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-dark);
    padding: 20px 5%;
    z-index: 998;
    display: none;
    border-top: 1px solid var(--red);
}

.cookie-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner p {
    color: var(--gray);
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--red);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 12px 25px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: var(--red);
    color: var(--white);
}

.cookie-btn.decline {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--gray);
}

/* ANIMATIONS AU SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1200px) {

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .portfolio-item.large img {
        min-height: 250px;
    }

    .portfolio-item.medium {
        grid-column: 1 / -1;
    }

    .portfolio-item.medium img {
        max-height: 260px;
    }

    .portfolio-cta {
        min-height: 200px;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        order: -1;
    }

    .film-strip {
        display: none;
    }

    body {
        cursor: auto;
    }

    .cursor-ring,
    .cursor-dot {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-row {
        flex-direction: column;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .frame-counter {
        display: none;
    }

    .cookie-banner.show {
        flex-direction: column;
        text-align: center;
    }
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--red);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ADDED MISSING STYLES FOR PAGINATION DOTS */
.shorts-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    z-index: 10;
    position: relative;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--red);
    transform: scale(1.3);
}