/* =========================================
   VARIABLES CSS
   ========================================= */
:root {
    --bg-black: #000000;
    --accent-pink: #F0ABFC;
    --accent-red: #e91414;
    --accent-white: #ffffff;
    
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Permanent Marker', cursive;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: clip;
}

/* =========================================
   GRAINS & ANIMATION
   ========================================= */
/* Le calque de grain */
.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 99999;
  pointer-events: none; /* Indispensable pour pouvoir cliquer sur tes liens */
  background-image: url('../assets/images/ui/grain.png');
  opacity: 0.15; /* À ajuster selon l'intensité voulue */
  animation: grain-animation 0.8s steps(10) infinite;
}

/* L'animation saccadée pour l'effet pellicule */
@keyframes grain-animation {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(-15%, 0); }
  90% { transform: translate(10%, 5%); }
  100% { transform: translate(5%, 0); }
}

/* Effet Scanlines stable et indépendant */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99998; /* Juste en dessous du grain (99999) */
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05), /* Ligne sombre très transparente */
    rgba(0, 0, 0, 0.08) 3px,
    transparent 1px,
    transparent 2px
  );
}

/* L'animation de balayage (optionnelle) */
@keyframes scanline-creep {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

/* =========================================
   COMPORTEMENT DE DÉFILEMENT (SMOOTH SCROLL)
   ========================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; 
}

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

h3 {
    font-family: var(--font-main);
    font-weight: 700;
}

.text-light { color: #ffffff; }
.text-light p { color: #cccccc; }
.text-dark { color: #000000; }
.text-dark p { color: #333333; }

.highlight-white { color: var(--accent-blue); }
.highlight-red { color: var(--accent-red); }
.highlight-pink { color: var(--accent-pink); }

.title, .section-title {
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =========================================
   TIMELINE D'ANIMATIONS (CHARGEMENT DE PAGE)
   ========================================= */

/* État initial pour cacher les éléments avant leur apparition */
.nav-links li { opacity: 0; transform: translateY(15px); }
.hero-line { display: inline-block; opacity: 0; transform: perspective(600px) rotateX(-90deg); transform-origin: center top; }
.hero-cta { opacity: 0; transform: translateY(20px); }
.hero-marquee-wrapper { opacity: 0; }

/* 1. Apparition fondue avec glissement vers le haut (Menu & Boutons) */
@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* 2. Apparition avec rotation 3D (Titre) */
@keyframes flipIn3D {
    to { opacity: 1; transform: perspective(600px) rotateX(0deg); }
}

/* 3. Apparition simple (Marquee) */
@keyframes fadeInAnim {
    to { opacity: 1; }
}

/* 4. Moteur du défilement infini */
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } 
}

/* ORCHESTRATION TEMPORELLE */
/* ORCHESTRATION TEMPORELLE */
.nav-links li:nth-child(1) { animation: fadeUpAnim 0.5s ease forwards 0.1s; }
.nav-links li:nth-child(2) { animation: fadeUpAnim 0.5s ease forwards 0.2s; }
.nav-links li:nth-child(3) { animation: fadeUpAnim 0.5s ease forwards 0.3s; }
.nav-links li:nth-child(4) { animation: fadeUpAnim 0.5s ease forwards 0.4s; }
.nav-links li:nth-child(5) { animation: fadeUpAnim 0.5s ease forwards 0.5s; }
.nav-links li:nth-child(6) { animation: fadeUpAnim 0.5s ease forwards 0.6s; }

/* Les lignes du Hero combinent l'apparition 3D ET le glitch chaotique */
.hero-line-1 { 
    animation: 
        flipIn3D 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s,
        chaos-glitch 8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.5s; 
}
.hero-line-2 { 
    animation: 
        flipIn3D 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.0s,
        chaos-glitch 8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.5s; 
}

.hero-cta { animation: fadeUpAnim 0.6s ease forwards 1.5s; }
.hero-marquee-wrapper { animation: fadeInAnim 1s ease forwards 2.0s; }
/* =========================================
   NAVIGATION & EFFET CUBE 3D
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 1);
    border-bottom: none;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    flex-direction: row; 
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links li:not(:last-child)::after {
    content: "|";
    color: var(--accent-pink);
    font-size: 1.2rem;
    font-weight: 700;
    font-style: normal;
}

.nav-links a:not(.btn-outline) {
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: capitalize;
    display: inline-block;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: 50% 50% -12px; 
    transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.nav-links a:not(.btn-outline)::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-pink);
    transform: rotateX(-90deg);
    transform-origin: top;
}

/* RESTAURATION DE LA ROTATION 3D AU SURVOL */
.nav-links a:not(.btn-outline):hover {
    transform: rotateX(90deg);
    color: #ffffff;
}

.nav-links a.btn-outline { 
    border: 2px solid var(--accent-pink); 
    color: var(--accent-pink); 
    text-transform: capitalize; 
    border-radius: 50px; 
    padding: 0.5rem 1.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-links a.btn-outline:hover { 
    background-color: var(--accent-pink); 
    color: #000000; 
    /* Ajout de l'aberration chromatique */
    box-shadow: -4px 0px 0px rgba(255, 0, 0, 0.8), 4px 0px 0px rgba(0, 255, 255, 0.8);
}

/* =========================================
   BOUTONS GÉNÉRAUX
   ========================================= */
.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-main);
    border-radius: 50px; 
}

.btn-primary { 
    background-color: #ffffff; 
    color: #000000; 
    border: 2px solid #ffffff; 
}

.btn-primary:hover { 
    background-color: var(--accent-pink); 
    border-color: var(--accent-pink);
    color: #000000; 
    transform: translateY(-3px); 
    box-shadow: -4px 0px 0px rgba(255, 0, 0, 0.8), 4px 0px 0px rgba(0, 255, 255, 0.8);
}

.btn-secondary { 
    background-color: transparent; 
    border: 2px solid #ffffff; 
    color: #ffffff; 
}

/* CORRECTION DE LA TYPO ICI (1 seul point) */
.btn-secondary:hover { 
    background-color: #ffffff; 
    color: #000000; 
    transform: translateY(-3px);
    box-shadow: -4px 0px 0px rgba(255, 0, 0, 0.8), 4px 0px 0px rgba(0, 255, 255, 0.8);
}

/* SÉCURITÉ POUR LES FONDS ROSES (About & Contact)
   Assure que les boutons primaires ET secondaires passent en noir au survol pour être visibles */
.about-section .btn-primary:hover,
.contact-section .btn-primary:hover,
.about-section .btn-secondary:hover,
.contact-section .btn-secondary:hover {
    background-color: #000000;
    border-color: #000000;
    color: var(--accent-pink);
    box-shadow: -4px 0px 0px rgba(255, 0, 0, 0.8), 4px 0px 0px rgba(0, 255, 255, 0.8);
}
/* =========================================
   SECTION EXPÉRIENCE (CARROUSEL INFINI)
   ========================================= */
.experience-section {
    padding: 30px 0 100px 0;
    background-color: var(--accent-pink);
    position: relative;
    z-index: 5;
    overflow: hidden; /* Empêche la barre de défilement horizontale sur le site */
}
/* 2. Le grand titre de la section passe en noir */
.experience-section .section-title {
    color: var(--bg-black);
}
/* Le conteneur global du carrousel */
.marquee-wrapper {
    width: 100%;
    margin-top: 4rem;
    position: relative;
    overflow: hidden; /* Indispensable pour cacher ce qui sort de l'écran */
}

/* La piste contrôlée exclusivement par le JavaScript */
.marquee-track {
    display: flex;
    gap: 0; 
    width: max-content;
    will-change: transform;
    /* La fluidité matérielle */
    backface-visibility: hidden; 
    transform: translateZ(0); 
}

/* Mise en pause du défilement au survol */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* On utilise une animation qui déplace la piste sur sa PROPRE largeur */
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
/* Si le trou persiste, ajoute ceci en bas de ton CSS */
.marquee-track .xp-card:last-child {
    margin-right: 2rem; /* La valeur de ton gap */
}
/* =========================================
   DESIGN DES CARTES ET EFFETS HOVER
   ========================================= */
/* Tes cartes avec l'espacement strict */
.xp-card {
    width: 320px;
    margin-right: 32px; /* L'écart parfait entre tes cartes */
    flex-shrink: 0; /* Interdit la compression */
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Le conteneur d'image en format Portrait (Ratio 3/4) */
.xp-image-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    overflow: hidden; /* Masque ce qui dépasse pendant le zoom */
    border: 2px solid #333333;
    position: relative;
}

.xp-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* La transition douce pour le zoom */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Filtre gris par défaut pour l'ambiance sombre */
    filter: grayscale(80%) contrast(1.2); 
}

/* Texte sous la carte */
.xp-info h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--bg-black);
    margin: 0;
    line-height: 1.2;
}

.xp-info p {
    font-family: var(--font-main);
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* --- LES EFFETS AU SURVOL --- */

/* 1. L'effet sur l'image à l'intérieur (Le zoom et la couleur) */
.xp-card:hover .xp-image-container img {
    transform: scale(1.3); /* Le gros zoom de l'image */
    filter: grayscale(0%) contrast(1.1); /* Le retour de la couleur */
}
/* 1. Ajoute une transition douce au conteneur pour l'agrandissement */
.xp-image-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    overflow: hidden; 
    border: 2px solid #333333;
    position: relative;
    /* NOUVEAU : La transition pour le conteneur */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.2s;
}

/* 2. Ajoute l'agrandissement (scale) au survol du conteneur en plus du glitch */
.xp-card:hover .xp-image-container {
 /* L'effet reste actif sur le filtre sélectionné */
    box-shadow: -3px 0px 0px rgba(255, 0, 0, 0.8), 3px 0px 0px rgba(0, 255, 255, 0.8);
    border-color: var(--accent-pink);
    /* NOUVEAU : Fait grandir tout le conteneur (ajuste le 1.05 si tu veux plus gros) */
    transform: scale(1.08); 
}



/* L'animation spécifique pour le cadre de l'image (reprend le style du portfolio) */
@keyframes image-frame-glitch {
    0%   { translate: 0px 0px; box-shadow: none; }
    20%  { translate: -3px 1px; box-shadow: -5px 0 0 rgba(255, 0, 85, 0.8), 5px 0 0 rgba(0, 255, 255, 0.8); }
    40%  { translate: 3px -2px; box-shadow: 5px 0 0 rgba(255, 0, 85, 0.8), -5px 0 0 rgba(0, 255, 255, 0.8); }
    60%  { translate: 0px 0px; box-shadow: none; }
    80%  { translate: -2px 3px; box-shadow: -3px 0 0 rgba(255, 0, 85, 0.8); }
    100% { translate: 0px 0px; box-shadow: none; }
}

/* IMPORTANT : Assure-toi de supprimer l'ancienne règle `.xp-card:hover` 
   qui faisait trembler toute la carte (texte compris) ! */

/* Optionnel : Responsive pour mobile (cartes plus petites) */
@media (max-width: 768px) {
    .xp-card { width: 260px; }
    .xp-info h3 { font-size: 1.2rem; }
}
/* =========================================
   HERO SECTION (Fond Vidéo)
   ========================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden; /* Indispensable pour masquer le recadrage de la vidéo */
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    max-width: none !important; /* Annule de force un éventuel max-width: 100% global */
    object-fit: cover;         /* Force le remplissage complet sans déformation */
    object-position: center;   /* Centre la vidéo lors du recadrage adaptatif */
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-section .content-wrapper { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; }

/* Nouveau module Marquee pour le sous-titre */
.hero-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom: 2rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.hero-marquee {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.hero-marquee span {
    color: var(--accent-pink);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding-right: 1.5rem;
}

/* Structure du titre à double ligne pour animation d'écartement */
.title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 2.5rem; text-transform: uppercase; }
.hero-split-parent { display: block; will-change: transform; }
.hero-cta { display: flex; justify-content: center; gap: 1.5rem; }
/* =========================================
   INDICATEUR DE SCROLL (HERO)
   ========================================= */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff; /* Couleur de base du triangle */
    z-index: 10;
    /* L'animation de rebond perpétuel */
    animation: floatUpDown 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: all 0.3s ease;
}

.scroll-indicator svg {
    /* On grossit considérablement la taille du triangle */
    width: 80px; 
    height: 75px;
    transition: transform 0.3s ease;
}

/* L'effet au survol : Triangle rose + Aberration Chromatique */
.scroll-indicator:hover {
    color: var(--accent-pink);
    animation-play-state: paused;
    transform: translateX(-50%) translateY(-5px);
    /* L'aberration chromatique qui épouse la forme vectorielle */
    filter: drop-shadow(-4px 0px 0px rgba(255, 0, 0, 0.8)) 
            drop-shadow(4px 0px 0px rgba(0, 255, 255, 0.8));
}

/* Clé d'animation pour le rebond fluide */
@keyframes floatUpDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}
/* =========================================
   SOUS-TITRES SYNCHRONISÉS (POPPINS BOLD)
   ========================================= */
.section-subtitle {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.3rem; 
    color: #ffffff; /* MODIFIÉ : Blanc pur */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    
    margin-top: -2.5rem; /* MODIFIÉ : Remonte violemment vers le titre */
    margin-bottom: 3rem;
    
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.3s; 
}

/* LA MAGIE DU CSS : 
   Dès que le JS dit au titre "tu es arrivé" en lui donnant .is-glitching,
   le CSS cible l'élément .section-subtitle qui le suit (+) et l'allume ! */
.section-title.is-glitching + .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour Mobile */
@media (max-width: 900px) {
    .section-subtitle {
        font-size: 1rem;
        margin-top: -0.5rem;
        margin-bottom: 2rem;
    }
}
/* =========================================
   STRUCTURE DES SECTIONS PLATES (Couleurs)
   ========================================= */
.about-section, .contact-section { background-color: var(--accent-pink); padding: 6rem 5%; position: relative; z-index: 10; }
.portfolio-section { background-color: var(--bg-black); padding: 6rem 5%; position: relative; z-index: 1; }
.section-title { font-size: 3.5rem; margin-bottom: 3rem; text-align: center; text-transform: uppercase; will-change: transform; transform-origin: center; }

/* =========================================
   PORTFOLIO (Filtres & Grille sur fond noir)
   ========================================= */
.portfolio-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.filter-btn { background: transparent; border: 2px solid #ffffff; color: #ffffff; padding: 0.6rem 1.5rem; font-family: var(--font-main); font-weight: 700; cursor: pointer; text-transform: uppercase; border-radius: 50px; transition: all 0.3s ease; }
.filter-btn:hover { background-color: #ffffff; border-color: #ffffff; color: #000000; }
.filter-btn.active { background-color: var(--accent-pink); border-color: var(--accent-pink); color: #000000; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.portfolio-item { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background-color: #111111; border: 2px solid #333333; border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
/* INTÉGRATION ABERRATION CHROMATIQUE SUR LES CARTES */
.portfolio-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 
        -6px 0px 0px rgba(255, 0, 0, 0.7), /* Débordement rouge */
        6px 0px 0px rgba(0, 255, 255, 0.7), /* Débordement cyan */
        0 20px 40px rgba(240, 171, 252, 0.15); /* Ombre existante gardée */
    border-color: var(--accent-pink); 
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: grayscale(80%); }
.portfolio-item:hover img { transform: scale(1.05); filter: grayscale(0%); }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; border-bottom: 6px solid var(--accent-red); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.portfolio-overlay p { color: var(--accent-pink); font-weight: 700; }
.hide { display: none; }
.filter-btn:hover { 
    background-color: #ffffff; 
    border-color: #ffffff; 
    color: #000000; 
    /* Aberration plus subtile pour les petits boutons */
    box-shadow: -3px 0px 0px rgba(255, 0, 0, 0.8), 3px 0px 0px rgba(0, 255, 255, 0.8);
}

.filter-btn.active { 
    background-color: var(--accent-pink); 
    border-color: var(--accent-pink); 
    color: #000000; 
    /* L'effet reste actif sur le filtre sélectionné */
    box-shadow: -3px 0px 0px rgba(255, 0, 0, 0.8), 3px 0px 0px rgba(0, 255, 255, 0.8);
}
/* Centrage parfait du calque qui apparait au survol */
.portfolio-overlay {
    /* ...garde tes règles existantes de couleur de fond et d'opacité ici... */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    text-align: center;
    padding: 20px;
}

/* Réduction de la taille du titre */
.portfolio-overlay h3 {
    font-size: 1.2rem; /* Taille réduite, ajuste si nécessaire */
    font-family: var(--font-main);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0; /* Petit espace sous le titre */
    width: 100%;
}

/* Ajustement des tags sous le titre */
.portfolio-overlay p {
    font-size: 0.85rem;
    font-weight: 800;
    color: #F0ABFC;
    opacity: 0.8;
    margin: 0;
}
/* =========================================
   CUSTOMISATION GLIGHTBOX (TEXTE À DROITE)
   ========================================= */

/* Le panneau latéral droit */
.glightbox-clean .gslide-desc {
    background-color: #111111 !important; /* Fond sombre */
    color: #ffffff !important; 
    padding: 40px 30px !important; /* Espacement généreux autour du texte */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le texte verticalement dans la colonne */
}

/* Le grand titre du projet */
.glightbox-clean .gslide-title {
    color: #ffffff !important;
    font-family: var(--font-main); /* Utilise la police titre de ton site */
    font-weight: 700 !important;
    font-size: 1.8rem !important; /* Titre bien imposant */
    margin-bottom: 20px !important;
    border-bottom: 2px solid #333333; /* Petite ligne élégante sous le titre */
    padding-bottom: 15px;
    line-height: 1.2 !important;
}

/* Le texte de description */
.glightbox-clean .gslide-desc p {
    font-family: 'Poppins', sans-serif !important; /* Police de lecture */
    color: #cccccc !important; /* Gris clair pour un bon contraste sans éblouir */
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* Arrière-plan de la fenêtre (autour de l'image) */
.goverlay {
    background: rgba(0, 0, 0, 0.92) !important; /* Presque noir profond */
}
/* Supprimer le cadre blanc global de la fenêtre GLightbox */
.glightbox-clean .gslide-inner-content,
.glightbox-clean .gslide-description {
    background-color: #111111 !important; /* Applique le même fond sombre au conteneur principal */
}

/* Optionnel : adoucir l'ombre autour de la modale pour un rendu plus premium */
.glightbox-clean .gslide-inner-content {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}
/* Personnalisation du lien "See more" (généré par GLightbox) */
.gslide-desc .gslide-description .gslide-desc a {
    color: #e91e63 !important; /* Remplace par ton code couleur rose exact */
    font-weight: 700 !important;
    text-decoration: underline;
    cursor: pointer;
}

/* Style du bouton "Voir moins" que nous allons créer */
.btn-voir-moins {
    display: block;
    margin-top: 10px;
    color: #e91e63 !important;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}
/* =========================================
   GLIGHTBOX : CORRECTION COULEURS & MOBILE
   ========================================= */

/* 1. UNIFORMISATION DU NOIR : On force la même couleur sur tous les sous-calques */
.glightbox-clean .gslide-inner-content,
.glightbox-clean .gslide-description,
.glightbox-clean .gslide-desc,
.glightbox-clean .gdesc-inner {
    background-color: #111111 !important;
}

/* 2. RÉPARATION MOBILE ULTIME : Division de l'écran 50/50 */
@media (max-width: 768px) {
    /* Le conteneur principal de la slide */
    .gslide {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important; 
        justify-content: center !important;
    }

    /* La boîte globale (on détruit le positionnement absolu du JS) */
    .glightbox-clean .gslide-inner-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100vh !important; /* Prend toute la hauteur de l'écran */
        max-height: 100vh !important;
        transform: none !important; /* DÉTRUIT le décalage JS */
        top: 0 !important; /* FORCE l'alignement en haut */
        left: 0 !important;
        position: relative !important;
        margin: 0 !important;
    }

    .glightbox-clean .ginner-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* ZONE IMAGE : Exactement 50% de l'écran en haut */
    .glightbox-clean .gslide-media {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 50vh !important; 
        max-height: 50vh !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.95) !important;
    }

    .glightbox-clean .gslide-media img {
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 15px !important;
    }

    /* ZONE TEXTE : Exactement 50% de l'écran en bas */
    .glightbox-clean .gslide-description {
        position: relative !important;
        width: 100% !important;
        height: 50vh !important; 
        max-height: 50vh !important;
        overflow-y: auto !important; /* Permet de scroller le texte */
        background-color: #111111 !important;
        top: auto !important;
        bottom: auto !important;
        margin: 0 !important;
    }

    /* Esthétique du texte */
    .glightbox-clean .gslide-desc {
        padding: 25px 20px !important;
        background-color: transparent !important;
    }
    
    .glightbox-clean .gslide-title {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
}

/* =========================================
   CONTRÔLES DE RECHERCHE (PORTFOLIO)
   ========================================= */
.portfolio-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.portfolio-search-filters {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    /* On force une marge de 4rem en bas pour aérer le début de la grille */
    margin: 0 auto 4rem auto; 
    justify-content: center;
    flex-wrap: wrap;
}

.retro-search, .retro-select {
    background-color: #050505;
    /* Le filet gris sombre est conservé */
    border: 2px solid #333333; 
    color: var(--accent-pink);
    font-family: var(--font-main);
    /* J'ai légèrement augmenté le padding horizontal (1.5rem) pour que la forme pilule soit plus harmonieuse */
    padding: 0.8rem 1.5rem; 
    /* La bordure ronde style bouton */
    border-radius: 50px; 
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.retro-search {
    flex: 1; /* Prend le maximum de largeur disponible */
    min-width: 200px;
}

.retro-search::placeholder {
    color: #555555;
    font-weight: 500;
}

/* L'effet lumineux quand on clique dans le champ reste identique */
.retro-search:focus, .retro-select:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(240, 171, 252, 0.15);
}

.retro-select {
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}
/* =========================================
   GLIGHTBOX : CUSTOMISATION UI (FLÈCHES & MOBILE)
   ========================================= */

/* --- A. Flèches Desktop --- */
.gnext, .gprev {
    background: rgba(18, 18, 26, 0.8) !important; /* Fond sombre semi-transparent */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    width: 56px !important;
    height: 56px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    opacity: 1 !important; /* Force la visibilité */
}

/* Agrandissement des icônes SVG internes */
.gnext svg, .gprev svg {
    width: 28px !important;
    height: 28px !important;
    fill: #ffffff !important;
}

/* Effet Glitch au survol pour rester cohérent avec ta DA */
.gnext:hover, .gprev:hover {
    background: #000000 !important;
    border-color: transparent !important;
    transform: scale(1.05);
    box-shadow: 
        -3px 0 0 rgba(0, 255, 255, 0.8), 
        3px 0 0 rgba(255, 0, 255, 0.8),
        0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

/* --- B. Indicateur de Swipe Mobile --- */
.mobile-swipe-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 26, 0.85);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none; /* Empêche le badge de bloquer le tactile */
    z-index: 9999;
    
    /* Animation : apparaît en douceur, reste 3s, puis disparaît */
    opacity: 0;
    animation: showAndFadeSwipe 4s ease-in-out forwards;
}

@keyframes showAndFadeSwipe {
    0% { opacity: 0; bottom: 15px; }
    15% { opacity: 1; bottom: 25px; }
    80% { opacity: 1; bottom: 25px; }
    100% { opacity: 0; bottom: 25px; visibility: hidden; }
}
/* =========================================
   ABOUT & SKILLS SECTION (Fond Rose)
   ========================================= */
.about-container { display: flex; flex-wrap: wrap; gap: 4rem; }
.about-bio { flex: 1; min-width: 300px; }
.about-bio .section-title { text-align: left; transform-origin: left center; }
.about-skills { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 2.5rem; }
.skill-category h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #000000; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag { background-color: transparent; color: #000000; padding: 0.4rem 1.2rem; font-size: 0.85rem; border: 2px solid #000000; border-radius: 50px; transition: all 0.3s ease; text-transform: uppercase; font-weight: 700; }
.tag:hover { background-color: #000000; color: var(--accent-pink); transform: translateY(-3px); }
.tag.highlight-border-blue { border-color: var(--accent-blue); color: #000000; }
.tag.highlight-border-blue:hover { background-color: var(--accent-blue); color: #ffffff; }
.tag.highlight-border-white { border-color: #ffffff; color: #ffffff; }
.tag.highlight-border-white:hover { background-color: #ffffff; color: #000000; }
/* =========================================
   TEMPLATE DÉTAIL PROJET (PAGE SEULE)
   ========================================= */

/* La grille principale */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* ⚠️ Supprime la ligne align-items: start; d'ici si elle y est encore */
}

/* La colonne de gauche (C'est elle qui devient sticky !) */
.project-media-col {
    position: sticky;
    top: 120px;
    align-self: start; /* C'EST ICI qu'il faut le mettre. Ça dit à la colonne de ne pas s'étirer et de rester en haut */
}

/* Le conteneur vidéo au format 16:9 parfait */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

/* Le conteneur vidéo au format 16:9 parfait */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-black);
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Typographie spécifique au projet */
.project-detail-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--accent-pink);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.meta-tag {
    font-family: var(--font-main);
    background: transparent;
    border: 1px solid var(--accent-pink);
    color: var(--accent-white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description h2 {
    font-family: var(--font-main);
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.project-description p {
    font-family: var(--font-main);
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* =========================================
   RESPONSIVE : DÉTAIL PROJET MOBILE
   ========================================= */
@media (max-width: 992px) {
    /* On passe en 1 seule colonne */
    .project-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-detail-title {
        font-size: 2.5rem;
    }

    /* La vidéo se fixe en haut de l'écran sur mobile ! */
    .sticky-video {
        top: 80px; /* Plus proche de la navbar mobile */
        padding-bottom: 1rem;
        background-color: var(--bg-black); /* Cache le texte qui passe en dessous */
        border-bottom: 1px solid #333;
    }
}
/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-desc { text-align: center; font-size: 1.2rem; font-weight: 500; margin-bottom: 3rem; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1.2rem 1.5rem; background-color: #ffffff; border: none; border-radius: 20px; font-family: var(--font-main); font-weight: 400; font-size: 1rem; color: #000000; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.contact-form textarea { resize: vertical; border-radius: 25px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #888888; font-family: var(--font-main); font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.contact-split {
    display: grid;
    /* On force strictement les colonnes à respecter les espaces sans déborder */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); 
    gap: 4rem;
    align-items: center;
}

/* On s'assure que le conteneur de droite prend bien sa place */
.contact-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
}
.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-right {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Perspective optionnelle pour donner de la profondeur au pop */
    perspective: 1000px; 
}

.contact-pop-image {
    width: auto !important; /* Laisse l'image respirer */
    max-width: 100% !important; /* L'empêche juste de déborder */
    height: auto !important; /* Protège le ratio */
    object-fit: contain !important;
    display: block;
    
    /* Animation et style */
    opacity: 0;
    transform: scale(0.6) translateY(120px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); 
}

/* L'état "Popped" */
.contact-pop-image.reveal-active {
    opacity: 1 !important;
    transform: scale(1.0) translateY(0) !important; 
}

/* Ajustements de la section contact existante */
.contact-desc {
    text-align: left; /* Aligné à gauche pour correspondre à la colonne */
    margin-bottom: 2rem;
}

.contact-form {
    margin: 0; /* Retire le margin auto puisqu'on est dans une colonne */
    max-width: 100%;
}
/* Forme pilule parfaite pour les champs d'une seule ligne */
.contact-form input {
    border-radius: 100px; 
}

/* Angles très généreusement arrondis pour la grande zone de texte */
.contact-form textarea { 
    resize: vertical; 
    border-radius: 35px; 
}
/* =========================================
   FOOTER SECTION
   ========================================= */
.footer-section { background-color: var(--bg-black); padding: 5rem 5% 3rem; text-align: center; position: relative; z-index: 1; }
.footer-follow { font-family: var(--font-heading); color: #ffffff; font-size: 2.0rem; letter-spacing: 1px; margin-bottom: 1.2rem; }
.social-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.social-icon-link { display: block; width: 45px; height: 45px; opacity: 0; transform: translateY(30px); color: #ffffff; cursor: pointer; }
.social-svg { width: 100%; height: 100%; overflow: visible; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease; }
.social-svg, .social-svg * { fill: currentColor !important; }
.social-icon-link:hover { color: var(--accent-pink); }
.social-icon-link:hover .social-svg { transform: scale(1.2) translateY(-5px); filter: drop-shadow(0 10px 15px rgba(240, 171, 252, 0.5)); }

.social-links.reveal-active .social-icon-link { animation: bounceUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.social-links.reveal-active .social-icon-link:nth-child(1) { animation-delay: 0.1s; }
.social-links.reveal-active .social-icon-link:nth-child(2) { animation-delay: 0.2s; }
.social-links.reveal-active .social-icon-link:nth-child(3) { animation-delay: 0.3s; }
.social-links.reveal-active .social-icon-link:nth-child(4) { animation-delay: 0.4s; }
.social-links.reveal-active .social-icon-link:nth-child(5) { animation-delay: 0.5s; }
.social-links.reveal-active .social-icon-link:nth-child(6) { animation-delay: 0.6s; }

@keyframes bounceUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================
   SECTION SERVICES (PORTE COULISSANTE & ACCORDÉON)
   ========================================= */
.services-section { padding: 0 !important; overflow: hidden; background-color: var(--bg-black); }
.services-split { display: grid; grid-template-columns: 1fr 0fr; max-width: 100% !important; width: 100%; align-items: stretch; height: 100vh; will-change: grid-template-columns; }
.services-image { 
    position: relative; 
    overflow: hidden; 
    width: 100%; 
    height: 100%; 
    min-height: 40vh; /* La sécurité indispensable */
    background-color: #111111; /* Fond de secours */
}

.services-image img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}
.services-content { position: relative; overflow: hidden; background-color: var(--bg-black); }
.services-inner { width: 50vw; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 6vw 6rem 4vw; }
.services-inner .section-title { text-align: left; margin-bottom: 3rem; transform-origin: left center; }
.services-list { display: flex; flex-direction: column; width: 100%; }
.service-item { overflow: hidden; }
.service-title { font-family: var(--font-main); font-weight: 900; font-size: 3.5rem; text-transform: uppercase; color: #ffffff; margin: 0; padding: 1.5rem 0; cursor: pointer; transition: color 0.3s ease, padding-left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 0.3s ease; line-height: 1; }
.service-title::after { content: '+'; font-size: 0.5em; vertical-align: super; margin-left: 15px; color: var(--accent-pink); display: inline-block; transition: transform 0.3s ease; }

/* INTÉGRATION ABERRATION CHROMATIQUE SUR LES TITRES DE SERVICES */
.service-title:hover { 
    color: var(--accent-pink); 
    padding-left: 20px; 
    text-shadow: -4px 0px 0px rgba(255, 0, 0, 0.8), 4px 0px 0px rgba(0, 255, 255, 0.8);
}
.service-item.active .service-title { color: var(--accent-pink); padding-left: 0; }
.service-item.active .service-title::after { transform: rotate(45deg); }
.service-text { max-height: 0; opacity: 0; transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, padding 0.4s ease; }
.service-text p { font-size: 1.15rem; color: #cccccc; margin: 0; padding-bottom: 0; line-height: 1.6; max-width: 85%; }
.service-item.active .service-text { max-height: 300px; opacity: 1; padding-bottom: 2rem; }

/* =========================================
   EFFETS SPÉCIAUX (GLITCH)
   ========================================= */
/* Pour déclencher ce glitch, ajoute la classe "glitch-text" à ton texte 
   ET l'attribut data-text="Ton Texte" (ex: <h1 class="glitch-text" data-text="Bonjour">Bonjour</h1>) */

.glitch-text {
    position: relative;
    z-index: 1;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 rgba(255, 0, 0, 0.9);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 rgba(0, 255, 255, 0.9);
    clip: rect(100px, 450px, 120px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0%, 100% { clip: rect(0, 0, 0, 0); opacity: 0; }
    20%, 80% { clip: rect(0, 0, 0, 0); opacity: 0; }
    21% { clip: rect(44px, 450px, 56px, 0); opacity: 1; transform: translate(2px, -2px); }
    22% { clip: rect(12px, 450px, 88px, 0); opacity: 1; transform: translate(-2px, 2px); }
    23% { clip: rect(0, 0, 0, 0); opacity: 0; }
}

@keyframes glitch-anim-2 {
    0%, 100% { clip: rect(0, 0, 0, 0); opacity: 0; }
    30%, 70% { clip: rect(0, 0, 0, 0); opacity: 0; }
    31% { clip: rect(100px, 450px, 120px, 0); opacity: 1; transform: translate(-3px, 3px); }
    32% { clip: rect(20px, 450px, 140px, 0); opacity: 1; transform: translate(3px, -3px); }
    33% { clip: rect(0, 0, 0, 0); opacity: 0; }
}

/* =========================================
   MENU HAMBURGER (Bouton par défaut caché sur desktop)
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* =========================================
   TRESSAUTEMENT & GLITCH DES TITRES (Aléatoire & Puissant)
   ========================================= */
.is-glitching {
    /* Une longue boucle de 8 secondes pour simuler l'aléatoire */
    animation: chaos-glitch 8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.is-glitching span.line-1,
.is-glitching span.line-2 {
    animation: chaos-glitch 8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block; 
}

@keyframes chaos-glitch {
    /* Plages de calme plat (0% à 100%) */
    0%, 14%, 18%, 41%, 45%, 72%, 76%, 86%, 100% { 
        translate: 0px 0px; 
        text-shadow: none; 
        opacity: 1;
    }

    /* IMPACT 1 (Court et percutant) à 15% */
    15% { 
        translate: -6px 3px; 
        text-shadow: -8px 0px 0px rgba(255, 0, 0, 1), 8px 0px 0px rgba(0, 255, 255, 1); 
    }
    16% { 
        translate: 6px -3px; 
        text-shadow: 8px 0px 0px rgba(255, 0, 0, 1), -8px 0px 0px rgba(0, 255, 255, 1); 
    }
    17% { 
        translate: -2px 1px; 
        text-shadow: none; 
    }

    /* IMPACT 2 (Lourd et horizontal) à 42% */
    42% { 
        translate: 10px 0px; 
        text-shadow: -10px 0px 0px rgba(255, 0, 0, 1), 10px 0px 0px rgba(0, 255, 255, 1); 
    }
    43% { 
        translate: -10px 2px; 
        text-shadow: 10px 0px 0px rgba(255, 0, 0, 1), -10px 0px 0px rgba(0, 255, 255, 1); 
    }
    44% { 
        translate: 0px -2px; 
        text-shadow: -5px 0px 0px rgba(255, 0, 0, 1); 
    }

    /* IMPACT 3 (Micro-secousse) à 73% */
    73% { 
        translate: -3px -3px; 
        text-shadow: -4px 0px 0px rgba(255, 0, 0, 1), 4px 0px 0px rgba(0, 255, 255, 1); 
    }
    74% { 
        translate: 3px 3px; 
        text-shadow: 4px 0px 0px rgba(255, 0, 0, 1), -4px 0px 0px rgba(0, 255, 255, 1); 
    }
    75% { 
        translate: -1px -1px; 
        text-shadow: none; 
    }

    /* IMPACT 4 (La violente crise finale) à 87% */
    87% { 
        translate: -8px 5px; 
        text-shadow: -12px 0px 0px rgba(255, 0, 0, 1), 12px 0px 0px rgba(0, 255, 255, 1); 
        opacity: 0.8; /* Légère chute de tension lumineuse */
    }
    88% { 
        translate: 8px -5px; 
        text-shadow: 12px 0px 0px rgba(255, 0, 0, 1), -12px 0px 0px rgba(0, 255, 255, 1); 
    }
    89% { 
        translate: -8px -5px; 
        text-shadow: -12px 0px 0px rgba(255, 0, 0, 1), 12px 0px 0px rgba(0, 255, 255, 1); 
    }
    90% { 
        translate: 5px 5px; 
        text-shadow: 6px 0px 0px rgba(255, 0, 0, 1), -6px 0px 0px rgba(0, 255, 255, 1); 
        opacity: 1;
    }
}
/* =========================================
   PAGES UTILITAIRES (404, MERCI)
   ========================================= */
.utility-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-black);
    /* On passe de 100px à 180px pour être sûr que le menu ne cache rien */
    padding: 180px 5% 5% 5%; 
    position: relative;
    z-index: 10;
}

/* NOUVEAU : On force la couleur du gros 404 */
.utility-page .section-title {
    color: var(--accent-white); /* Le rend bien blanc et lisible */
    line-height: 1; /* Évite qu'il ne prenne trop de place en hauteur */
}

/* --- OPTIONNEL (Si tu préfères un look "contour uniquement") ---
.utility-page .section-title {
    color: transparent;
    -webkit-text-stroke: 3px var(--accent-pink);
}
---------------------------------------------------------------- */

.utility-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeUpAnim 0.8s ease forwards; 
}

/* La suite de ton code reste identique (.utility-subtitle, .utility-text...) */
.utility-subtitle {
    font-family: var(--font-main); 
    font-weight: 700; 
    font-size: 2rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--accent-pink);
    margin-top: -1rem; /* Rapproche le sous-titre du 404 */
    margin-bottom: 1.5rem;
}

.utility-text {
    color: #aaaaaa; 
    max-width: 500px; 
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}
/* =========================================
   FOOTER (INDEX)
   ========================================= */
.site-footer {
    background-color: var(--bg-black);
    border-top: 1px solid #333333;
    /* On divise l'espace interne (padding) par deux */
    padding: 2rem 5% 1rem 5%; 
    /* Cette marge négative "tire" le footer vers le haut pour effacer l'espace mort */
    margin-top: -3rem; 
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* On réduit l'espace entre le filet gris et les liens */
    padding-bottom: 1.5rem; 
}

/* Le style du titre et des liens reste identique... */
.footer-title { /* ... */ }
.footer-links { /* ... */ }
.footer-link { /* ... */ }

.footer-bottom {
    text-align: center;
    /* On réduit l'espace au-dessus du copyright */
    padding-top: 1rem; 
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: #555555;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* =========================================
   RESPONSIVE GLOBAL (Mobiles & Tablettes Portrait)
   ========================================= */
@media (max-width: 900px) {
    .title { font-size: 2.2rem !important; margin-bottom: 1rem; }
    .section-title { font-size: 2rem !important; margin-bottom: 2rem; }
    .hero-section .description { font-size: 1rem; }
    .portfolio-section, .about-section, .contact-section { padding: 4rem 5%; }
    .about-container { gap: 2rem; }

    .hero-split-left, .hero-split-right { transform: none !important; }
    .section-title, .section-title .line-1, .section-title .line-2 { transform: none !important; opacity: 1 !important; }

    .split-container { grid-template-columns: 1fr !important; height: auto !important; }
    .split-text { padding: 3rem 5% !important; text-align: center; }
    .split-text .section-title { text-align: center; margin-bottom: 1rem; }
    .split-buttons { justify-content: center !important; margin-top: 2rem; }
    .split-image { height: 40vh; order: -1; } 
    
    .split-container.reveal-active .split-text p,
    .split-container.reveal-active .btn-custom { opacity: 1 !important; transform: none !important; transition: none !important; }

    .services-split { grid-template-columns: 1fr !important; height: auto !important; }
    .services-image { height: 40vh; }
    .services-content { overflow: visible; padding: 3rem 5%; }
    .services-inner { width: 100%; height: auto; padding: 0; }
    .services-inner .section-title { text-align: center; }
    .service-title { font-size: 1.8rem; padding: 1rem 0; }
    .service-text p { max-width: 100%; font-size: 1rem; }

    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
    .filter-btn { padding: 0.4rem 1rem; font-size: 0.8rem; }

    .social-icon-link { width: 35px; height: 35px; }
    .footer-follow { font-size: 1.5rem; }

    /* MENU HAMBURGER : Apparaît sur mobile */
    .navbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem 5% !important;
        gap: 0 !important;
    }

    .hamburger { display: flex; } /* <-- C'est ici qu'il reprend le dessus sur le display: none */

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 260px;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column !important;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem;
        gap: 0.5rem !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 2px solid var(--accent-pink);
        backdrop-filter: blur(10px);
    }

    .nav-links.active { right: 0; }

    .nav-links .nav-logo {
        width: 100%;
        padding: 0 0 1.5rem 0 !important;
        border-bottom: 2px solid var(--accent-pink) !important;
        margin-bottom: 1rem;
    }

    .nav-panel-logo { height: 45px; width: auto; display: block; }
    .nav-links li:not(:last-child)::after { display: none; }
    .nav-links li { width: 100%; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }
    .nav-links a:not(.btn-outline) { font-size: 1rem; }
    .nav-links a.btn-outline { display: inline-block; margin-top: 0.5rem; }
    /* Contact Split Responsive */
    .contact-split {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .contact-left {
        order: 2; /* Formulaire en bas */
    }
    
    .contact-right {
        order: 1; /* Image en premier sur mobile */
    }
    
    .contact-desc {
        text-align: center;
    }
    /* =========================================
       RÉGLAGES MOBILE : RECHERCHE PORTFOLIO
       ========================================= */
    .portfolio-search-filters {
        flex-direction: column; /* On empile la barre et le menu l'un sur l'autre */
        gap: 0.8rem;
    }
    
    .retro-search, .retro-select {
        width: 100%; /* Prend toute la largeur disponible */
        font-size: 16px !important; /* CRUCIAL : Empêche le zoom auto sur smartphone */
        padding: 1rem; /* Zone de clic plus généreuse pour les doigts */
    }
}
.is-hidden-project {
    display: none !important;
}
/* =========================================
   RESPONSIVE : DÉTAIL PROJET MOBILE
   ========================================= */
@media (max-width: 992px) {
    /* 1. On casse la grille pour libérer la vidéo sur toute la hauteur de la page */
    .project-layout {
        display: block; 
    }
    
    /* 2. La colonne vidéo redevient pleine largeur et se colle au plafond */
    .project-media-col {
        position: sticky;
        top: 70px; /* À ajuster si ta barre de navigation mobile est plus haute/basse */
        z-index: 20; /* S'assure que la vidéo passe toujours au-dessus du texte */
        
        /* L'astuce pour étirer le fond noir de bord à bord et cacher le texte qui remonte */
        background-color: var(--bg-black);
        margin-left: -5vw; /* Compense le padding de ton conteneur global */
        margin-right: -5vw;
        padding-left: 5vw;
        padding-right: 5vw;
        padding-top: 1rem;
        padding-bottom: 1.5rem; /* Crée un petit espace avant que le texte ne disparaisse */
        margin-bottom: 2rem;
        border-bottom: 1px solid #222222; /* Un filet élégant pour marquer la limite */
    }

    /* Optionnel : on réduit un peu le titre pour les petits écrans */
    .project-detail-title {
        font-size: 2.2rem;
        margin-top: 0.5rem;
    }
}
/* =========================================
   CENTRAGE FORCÉ : PAGE SIDE-PROJECTS (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .split-text, 
    .split-text .section-title, 
    .split-text .section-subtitle, 
    .split-text p {
        text-align: center !important;
    }

    .split-text .section-title span.line-1,
    .split-text .section-title span.line-2 {
        display: inline-block;
        text-align: center;
    }

    .split-buttons {
        justify-content: center !important;
        margin-top: 2rem;
    }

    .side-section .section-title,
    .side-section .section-subtitle {
        text-align: center !important;
    }