﻿/* ============================================
   HYVYS STUDIO — Branche créative
   ============================================ */

:root {
    /* Graphite / anthracite */
    --graphite-900: #0A0A0A;
    --graphite-800: #111111;
    --graphite-700: #1A1A1A;
    --graphite-600: #27272A;
    --graphite-500: #3F3F46;

    /* Surfaces lumineuses */
    --light-100: #F3F4F6;
    --light-200: #E5E7EB;
    --light-300: #D1D5DB;

    /* Violet HYVYS */
    --violet: #8B5CF6;
    --violet-dark: #7C3AED;
    --violet-light: #A78BFA;

    /* Typographie */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--graphite-900);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    color: var(--violet);
    font-weight: 900;
}

.logo-branch {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--violet);
    color: var(--violet);
    margin-left: 0.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

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

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--graphite-800);
        padding: var(--space-md);
        gap: var(--space-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        var(--graphite-900);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-xl) 0;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-light);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.4rem 0.8rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.hero h1 span {
    color: var(--violet);
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--violet);
    background: transparent;
    color: var(--violet);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--violet);
    color: var(--graphite-900);
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text);
}

.btn-light:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--graphite-900);
}

/* Sections */
.section {
    padding: var(--space-2xl) 0;
}

.section-light {
    background: var(--light-100);
    color: var(--graphite-900);
}

.section-header {
    margin-bottom: var(--space-xl);
    max-width: 720px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.section-light .section-header p {
    color: var(--graphite-500);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-md);
    background: var(--graphite-800);
    border: 1px solid var(--graphite-600);
    transition: all 0.3s ease;
}

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

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.service-card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card li::before {
    content: '—';
    color: var(--violet);
    margin-right: 0.5rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Réalisations */
#realisations {
    background:
        linear-gradient(180deg, var(--graphite-900) 0%, var(--graphite-800) 100%);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.realisation-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--graphite-700);
    cursor: pointer;
}

.realisation-card.featured-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.realisation-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.realisation-card:hover img {
    transform: scale(1.05);
    opacity: 0.55;
}

.realisation-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
}

.realisation-category {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--violet-light);
    margin-bottom: 0.25rem;
}

.realisation-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.realisation-client {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.realisation-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--violet);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.realisation-link:hover {
    border-color: var(--violet);
    color: var(--violet-light);
}

@media (max-width: 1024px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .realisation-card.featured-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 640px) {
    .realisations-grid {
        grid-template-columns: 1fr;
    }

    .realisation-card.featured-large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* À propos */
.about-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    line-height: 1.8;
}

/* Contact */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

/* Footer */
.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--graphite-600);
    background: var(--graphite-900);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

/* Loading state */
.realisations-loading {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl) 0;
}

/* Utilities */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ============================================
   NOUVELLES SECTIONS — CLIPS, EXTRAITS, IDENTITÉS
   ============================================ */

/* Clips & films */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.clip-card {
    position: relative;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--graphite-700);
    cursor: pointer;
}

.clip-card:nth-child(-n+3) {
    aspect-ratio: 16 / 9;
}

.clip-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.clip-card:hover img {
    transform: scale(1.05);
    opacity: 0.55;
}

.clip-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.clip-card:hover .clip-overlay {
    opacity: 1;
}

.clip-category {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--violet-light);
    margin-bottom: 0.25rem;
}

.clip-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.clip-client {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.clip-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--violet);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.clip-link:hover {
    border-color: var(--violet);
    color: var(--violet-light);
}

/* Extraits */
.extraits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
}

.extrait-card {
    background: var(--graphite-800);
    border: 1px solid var(--graphite-600);
    overflow: hidden;
}

.extrait-card video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--graphite-900);
}



/* Identités visuelles */
.identites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.identite-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--graphite-700);
    cursor: pointer;
}

.identite-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.identite-card:hover img {
    transform: scale(1.05);
    opacity: 0.55;
}

.identite-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.identite-card:hover .identite-overlay {
    opacity: 1;
}

.identite-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.identite-client {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.identite-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--violet);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.identite-link:hover {
    border-color: var(--violet);
    color: var(--violet-light);
}

@media (max-width: 1024px) {
    .clips-grid,
    .identites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .extraits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .clip-card,
    .clip-card:nth-child(-n+3) {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .clips-grid,
    .extraits-grid,
    .identites-grid {
        grid-template-columns: 1fr;
    }

    .clip-card,
    .clip-card:nth-child(-n+3) {
        aspect-ratio: 16 / 9;
    }
}

/* Formulaire de contact Studio */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 720px;
    margin: 0 auto var(--space-md);
    text-align: left;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--graphite-800);
    border: 1px solid var(--graphite-600);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input {
    min-height: 48px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--violet);
    background-color: var(--graphite-700);
}
