/*
Theme Name: Louis Cherqui V3.1 - Fix Light Mode & Spacing
Description: Thème Portfolio MMI (Mode Jour/Nuit Réparé + Espacements Corrigés)
Version: 3.1
*/






/* ==========================================================================
   1. VARIABLES & SYSTÈME DE COULEURS
   ========================================================================== */
:root {
    /* --- Typographie --- */
    --font-main: 'Futura PT', 'Inter', -apple-system, sans-serif;
    --font-title: 'Against', serif;

    /* --- Tailles --- */
    --text-base: clamp(1rem, 1.1vw, 1.15rem);
    --text-hero: clamp(3rem, 6vw, 6.5rem);
    --header-height: 90px;
    
    --container-width: 1400px;
    --radius-md: 16px;

    /* --- Couleurs Projets (Fixes) --- */
    --afm-yellow: #ffcc00;
    --gaming-purple: #9d00ff;
    --muscle-red: #ff6b6b;

    /* --- MODE SOMBRE (DÉFAUT) --- */
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.15);
    
    /* Variable spéciale pour le fond du header (Transparence) */
    --header-bg: rgba(10, 10, 10, 0.85); 

    --accent-color: #8b5cf6;
    --project-border: rgba(255, 255, 255, 0.1);
    
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.5);
    --grain-opacity: 0.07;
}

/* ==========================================================================
   MODE CLAIR (LIGHT THEME) - CORRECTIF PRIORITÉ
   ========================================================================== */
html[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f4f4f5;
    --text-color: #111827;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    
    /* Variable spéciale header blanc */
    --header-bg: rgba(255, 255, 255, 0.95);

    --accent-color: #7c3aed;
    --project-border: #e5e7eb;
    --grain-opacity: 0.04;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

/* Force la couleur des textes spécifiques en mode clair */
html[data-theme="light"] body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }


/* Grain texture overlay */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity); pointer-events: none; z-index: 9999; mix-blend-mode: overlay;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }


/* Boutons Globaux */
.btn-black {
    background: var(--text-color); color: var(--bg-color);
    padding: 12px 28px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
    display: inline-block; border: 2px solid var(--text-color); font-size: 0.9rem;
}
.btn-black:hover {
    background: transparent; color: var(--text-color); transform: translateY(-3px);
}

.btn-outline {
    background: transparent; color: var(--text-color);
    padding: 12px 28px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
    display: inline-block; border: 2px solid var(--text-color); font-size: 0.9rem;
}
.btn-outline:hover {
    background: var(--text-color); color: var(--bg-color); transform: translateY(-3px);
}
.btn-outline-small {
    font-size: 0.85rem; text-transform: uppercase; font-weight: 700;
    border-bottom: 2px solid var(--border-color); padding-bottom: 2px;
}
.btn-outline-small:hover { border-color: var(--accent-color); color: var(--accent-color); }


/* ==========================================================================
   3. HEADER FIXE (CORRIGÉ JOUR/NUIT)
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    /* Utilisation de la variable spécifique pour gérer la transparence selon le mode */
    background-color: var(--header-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}



.logo-text { font-size: 1.8rem; margin: 0; color: var(--text-color); line-height: 1; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    text-transform: uppercase; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
    position: relative; padding: 5px 0;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--accent-color); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.btn-cv {
    border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}
.btn-cv:hover { background: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }

#theme-toggle {
    background: transparent; border: 1px solid var(--border-color); border-radius: 50%;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-color); font-size: 1.2rem; transition: all 0.3s;
}
#theme-toggle:hover { background: var(--card-bg); transform: rotate(15deg); }


/* ==========================================================================
   4. ESPACEMENT & LAYOUT (CORRECTION PROBLÈME FILTRES)
   ========================================================================== */

/* Ajustement général pour compenser le header fixe */
.main-content {
    /* 90px (Header) + 70px (Espace vide) = 160px */
    padding-top: 160px; 
    padding-bottom: 80px;
    min-height: 80vh;
}

/* Espacement spécifique pour la page d'accueil (Hero) */
.hero-modern {
    padding-top: var(--header-height);
    min-height: 90vh;
    display: flex; align-items: center; justify-content: space-between; position: relative;
}


/* ==========================================================================
   5. HOMEPAGE CONTENT
   ========================================================================== */


.hero-title .star-icon { color: var(--accent-color); display: inline-block; font-size: 0.6em; animation: spinStar 10s linear infinite; }
@keyframes spinStar { 100% { transform: rotate(360deg); } }
.outlined-text { -webkit-text-stroke: 1px var(--text-color); color: transparent; }
.hero-subtitle { font-size: 1.2rem; max-width: 500px; margin-bottom: 3rem; color: var(--text-muted); }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-visual {
    flex: 1; display: flex; justify-content: flex-end; align-items: flex-end;
    position: relative; height: 85vh; pointer-events: none;
}

.blob-shape {
    position: absolute; bottom: 0; right: 0; width: 60vw; height: 60vw; max-width: 600px; max-height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(0,0,0,0) 70%);
    opacity: 0.3; border-radius: 50%; z-index: 1; filter: blur(60px);
}

/* Marquee */
.marquee-wrapper {
    width: 110vw; margin-left: -5vw; overflow: hidden; background: var(--text-color); color: var(--bg-color);
    padding: 20px 0; margin-bottom: 120px; transform: rotate(-2deg); box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.marquee-track { display: flex; width: fit-content; animation: scrollLoop 30s linear infinite; }
.marquee-item { white-space: nowrap; font-size: 2.5rem; font-weight: 800; text-transform: uppercase; padding-right: 40px; }
@keyframes scrollLoop { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* About Grid */
.about-modern { padding-bottom: 120px; }
.section-title { font-size: var(--text-xl); margin-bottom: 60px; line-height: 1.1; }

.about-card {
    background: var(--card-bg); padding: 40px 30px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: all 0.3s ease; display: flex; flex-direction: column;
}
.about-card:hover { transform: translateY(-8px); border-color: var(--accent-color); box-shadow: var(--shadow-soft); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }

.card-icon { font-size: 2rem; }
.about-card h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 800; text-transform: uppercase; }
.about-card p { color: var(--text-muted); font-size: 1rem; flex-grow: 1; }
.about-card strong { color: var(--text-color); }
.highlight-card { background: linear-gradient(145deg, var(--card-bg), rgba(139, 92, 246, 0.08)); border: 1px solid var(--accent-color); }


/* ==========================================================================
   6. PORTFOLIO & FILTRES
   ========================================================================== */
.portfolio-filters { 
    display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; 
    /* Espace généreux autour des filtres */
    margin-bottom: 80px; 
}
.filter-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
    padding: 10px 25px; border-radius: 50px; cursor: pointer;
    text-transform: uppercase; font-weight: 700; font-size: 0.8rem; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { background: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; margin-top: 50px; }
.project-card { display: block; position: relative; }
.card-image {
    position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10;
    background: #222; margin-bottom: 20px; border: 1px solid var(--project-border);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.project-card:hover .card-image img { transform: scale(1.08); }
.card-overlay {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.8); color: #fff;
    padding: 6px 14px; border-radius: 6px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
}
.card-title { font-size: 1.5rem; margin: 0 0 8px 0; color: var(--text-color); font-weight: 800; transition: color 0.3s; }
.project-card:hover .card-title { color: var(--accent-color); }
.card-cat { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }


/* ==========================================================================
   7. SINGLE PROJECT STYLES
   ========================================================================== */
.project-hero {
    height: 70vh; position: relative; display: flex; align-items: flex-end; padding-bottom: 80px; margin-bottom: 80px; margin-top: var(--header-height);
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg-color) 10%, rgba(0,0,0,0.3)); }

.project-cat { color: var(--accent-color); font-size: 1.2rem; display: block; margin-bottom: 10px; text-transform: uppercase; font-weight: 700; }
.project-title { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; margin: 0 0 20px 0; }
.project-role { font-size: 1.4rem; opacity: 0.9; margin-bottom: 30px; }
.project-tags span {
    border: 1px solid rgba(255,255,255,0.3); padding: 6px 18px; border-radius: 30px;
    font-size: 0.85rem; margin-right: 10px; text-transform: uppercase; background: rgba(0,0,0,0.3);
}
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.stat-box {
    background: var(--card-bg); padding: 30px; border: 1px solid var(--border-color); text-align: center; border-radius: var(--radius-md);
}
.stat-num { display: block; font-size: 3rem; color: var(--accent-color); font-weight: 800; line-height: 1; margin-bottom: 5px; }
.stat-label { text-transform: uppercase; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); }
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 120px; }
.detail-block.reverse .detail-text { order: 2; }
.detail-block.reverse .detail-img { order: 1; }
.detail-img img { border-radius: var(--radius-md); border: 1px solid var(--border-color); }

/* ==========================================================================
   PROJET SPÉCIFIQUE : TÉLÉTHON GAMING
   ========================================================================== */

/* --- 1. Hero & Stats --- */
.gaming-hero-style .overlay-gaming { 
    background: linear-gradient(to top, var(--bg-color) 5%, rgba(94, 23, 235, 0.25)); 
}

.gaming-stats .stat-box { 
    background: rgba(20, 20, 30, 0.8); 
    border-color: rgba(168, 85, 247, 0.4); 
}

.gaming-stats .stat-num { 
    color: #d8b4fe; 
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4); 
}

/* --- 2. Focus Box (Stratégie) --- */
.focus-box {
    background: linear-gradient(135deg, #101015 0%, #2e1065 100%); 
    border-radius: 20px; 
    overflow: hidden;
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4); 
    margin-bottom: 100px;
}

.focus-content { 
    padding: 60px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    color: #fff; 
}

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

/* --- 3. Section LinkedIn (Centrage & Longueur) --- */
.linkedin-proof {
    padding: 80px 0;
}

.linkedin-embeds-grid { 
    display: flex;             /* Aligne les posts sur une ligne */
    flex-direction: row; 
    justify-content: center;   /* Centre les posts horizontalement */
    align-items: flex-start;   /* Aligne les posts par le haut */
    gap: 30px; 
    margin: 40px auto; 
    flex-wrap: wrap;           /* Permet de passer l'un sous l'autre sur petit écran */
    max-width: 1200px;         /* Empêche les posts de trop s'écarter */
}

.linkedin-wrapper { 
    flex: 1;
    min-width: 320px;          /* Largeur minimale pour mobile */
    max-width: 500px;          /* Largeur maximale pour garder le format "longueur" */
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.linkedin-wrapper:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2); 
}

/* --- 4. Responsive --- */
@media (max-width: 900px) {
    .focus-box {
        grid-template-columns: 1fr;
    }
    
    .linkedin-embeds-grid {
        flex-direction: column; /* Empile les posts sur mobile */
        align-items: center;
    }
    
    .linkedin-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

/* Muscle Specifics */
.muscle-hero-style .overlay-muscle { background: linear-gradient(to top, var(--bg-color) 10%, rgba(255, 107, 107, 0.15)); }
.muscle-stats .stat-box { border-color: rgba(255, 107, 107, 0.3); background: rgba(255, 107, 107, 0.05); }
.muscle-stats .stat-num { color: var(--muscle-red); }
.transformation-grid { display: flex; align-items: center; justify-content: center; gap: 40px; margin-bottom: 80px; }
.transfo-step {
    text-align: center; background: var(--card-bg); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); min-width: 250px; transition: 0.3s;
}
.transfo-step:hover { border-color: var(--muscle-red); transform: translateY(-5px); }
.transfo-arrow { font-size: 2rem; color: var(--muscle-red); }
.social-cta-box {
    background: var(--card-bg); border: 2px solid var(--muscle-red); border-radius: 20px; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.btn-social-linktree { background: var(--muscle-red); color: #fff; padding: 18px 40px; border-radius: 50px; font-weight: 800; text-transform: uppercase; transition: 0.3s; }
.btn-social-linktree:hover { background: #ff4f4f; transform: scale(1.05); }

/* AFM Specifics */
.da-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.da-image { border-radius: 12px; overflow: hidden; margin-bottom: 15px; border: 1px solid var(--border-color); aspect-ratio: 4/5; }
.da-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.da-item:hover .da-image img { transform: scale(1.03); }


/* ==========================================================================
   8. FOOTER & UTILS
   ========================================================================== */
.site-footer { padding: 100px 0 40px; margin-top: 150px; border-top: 1px solid var(--border-color); background: var(--bg-color); }
.footer-top { text-align: center; margin-bottom: 80px; }
.footer-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; }
.footer-email {
    font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; padding-bottom: 5px; border-bottom: 2px solid transparent;
}
.footer-email:hover { color: var(--accent-color); border-color: var(--accent-color); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem;
}
.footer-socials a { margin-left: 20px; font-weight: 700; color: var(--text-color); text-transform: uppercase; }
.footer-socials a:hover { color: var(--accent-color); }
#contact { scroll-margin-top: 150px; }

/* ==========================================================================
   9. RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 900px) {
    .hero-modern { flex-direction: column; text-align: center; padding-top: 120px; }
    
    .hero-buttons { justify-content: center; }
    .hero-visual { width: 100%; height: 50vh; justify-content: center; }
    .blob-shape { width: 90vw; height: 90vw; }
    .intro-grid, .detail-block, .focus-box, .social-cta-box, .linkedin-grid, .da-grid { 
        grid-template-columns: 1fr; flex-direction: column; gap: 40px; 
    }
    .detail-block.reverse .detail-text { order: 0; }
    .detail-block.reverse .detail-img { order: 1; }
    .transformation-grid { flex-direction: column; }
    .transfo-arrow { transform: rotate(90deg); }
    .nav-links { display: none; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* AJOUTE ÇA À LA FIN DE TON STYLE.CSS */

/* La priorité est forcée grâce à "html" devant */
html[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f4f4f5;
    --text-color: #111827;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    
    /* Variable spéciale header blanc */
    --header-bg: rgba(255, 255, 255, 0.95);

    --accent-color: #7c3aed;
    --project-border: #e5e7eb;
    --grain-opacity: 0.04;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

/* Force l'application des couleurs sur le body */
html[data-theme="light"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}
/* ==========================================================================
   PROJET SPÉCIFIQUE : SEMAINE DU MUSCLE
   ========================================================================== */

/* --- 1. Hero & Overlay --- */
.muscle-hero-style .overlay-muscle {
    background: linear-gradient(to top, var(--bg-color) 10%, rgba(255, 107, 107, 0.2));
}

/* --- 2. Statistiques (Thème Rouge) --- */
.muscle-stats .stat-box {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}
.muscle-stats .stat-num {
    color: var(--muscle-red);
}
.muscle-stats small {
    display: block; font-size: 0.7rem; color: var(--text-muted);
    margin-top: 5px; font-weight: normal;
}

/* --- 3. Grille Transformation (Avant -> Après) --- */
.transformation-grid {
    display: flex; align-items: center; justify-content: center; gap: 40px;
    margin-bottom: 80px;
}

.transfo-step {
    text-align: center; background: var(--card-bg); padding: 30px;
    border-radius: 16px; border: 1px solid var(--border-color);
    width: 280px; transition: transform 0.3s;
}
.transfo-step:hover {
    transform: translateY(-5px); border-color: var(--muscle-red);
}

.step-icon {
    font-size: 3.5rem; margin-bottom: 20px; display: block;
}
.transfo-arrow {
    font-size: 2.5rem; color: var(--muscle-red); font-weight: bold;
}

/* --- 4. Showcase Carousel (Images superposées) --- */
.carousel-showcase {
    display: flex; justify-content: center; align-items: flex-start; gap: 30px;
    margin-bottom: 80px; position: relative;
}

.showcase-img {
    position: relative; border-radius: 16px; overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); transition: transform 0.4s ease;
}
.showcase-img:hover {
    transform: translateY(-10px); z-index: 10;
}

.main-img {
    width: 450px; z-index: 2; border: 1px solid rgba(255,255,255,0.1);
}
.secondary-img {
    width: 380px; margin-top: 50px; opacity: 0.8; z-index: 1; filter: grayscale(30%);
}
.secondary-img:hover {
    opacity: 1; filter: grayscale(0%);
}

.img-caption {
    position: absolute; bottom: 15px; left: 15px;
    background: rgba(0,0,0,0.8); color: #fff;
    padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
}

/* --- 5. Boîte "Mon Rôle" --- */
.my-role-box {
    background: rgba(255, 107, 107, 0.08);
    border-left: 4px solid var(--muscle-red);
    padding: 40px; border-radius: 0 16px 16px 0;
    max-width: 850px; margin: 0 auto 100px;
}
.my-role-box h4 {
    margin-top: 0; color: var(--muscle-red);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.my-role-box ul { padding-left: 20px; margin-bottom: 0; }
.my-role-box li { margin-bottom: 12px; list-style-type: disc; }

/* --- 6. Social CTA (CORRIGÉ POUR ÉVITER LE BUG) --- */
.social-cta-box {
    background: var(--card-bg);
    border: 2px solid var(--muscle-red);
    border-radius: 20px;
    padding: 60px;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 40px;
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.15);
    /* Important : permet de passer à la ligne sur petit écran au lieu de casser */
    flex-wrap: wrap; 
}

.social-cta-content {
    flex: 1; /* Prend toute la place disponible */
    min-width: 300px; /* Évite d'être trop petit */
}

.btn-social-linktree {
    background: var(--muscle-red); color: #fff !important;
    padding: 18px 30px; border-radius: 50px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s ease;
    
    /* --- LE FIX EST ICI --- */
    white-space: nowrap; /* Interdit au texte de passer à la ligne */
    flex-shrink: 0;      /* Interdit au bouton de rétrécir */
}

.btn-social-linktree:hover {
    background: #ff4f4f; transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}
/* ==========================================================================
   NOUVEAU FOOTER "AGENCE STYLE"
   ========================================================================== */
.site-footer {
    margin-top: 150px;
    padding: 100px 0 40px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    position: relative;
}

/* --- Partie Haute : CTA --- */
.footer-cta {
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Le gros Email interactif */
.huge-email {
    font-size: clamp(1.8rem, 4vw, 4rem); /* S'adapte à l'écran */
    font-weight: 900;
    color: var(--text-muted); /* Gris par défaut */
    text-decoration: none;
    transition: all 0.4s ease;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.huge-email:hover {
    color: var(--accent-color); /* Devient violet au survol */
    transform: translateX(10px); /* Se décale légèrement */
}

.arrow-icon {
    font-size: 0.5em; /* La flèche est plus petite */
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.4s ease;
}

.huge-email:hover .arrow-icon {
    opacity: 1;
    transform: translate(0, 0); /* Apparition de la flèche */
}

/* --- Partie Basse : Infos --- */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand {
    font-size: 1.5rem;
    color: var(--text-color);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Liens Sociaux */
.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .site-footer { padding: 60px 0 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-direction: column; gap: 15px; }
    .huge-email { font-size: 1.5rem; word-break: break-all; } /* Évite que le mail dépasse */
}


/* --- NOUVEAU : Section Influenceurs --- */
.influencers-section {
    margin-bottom: 100px;
}

.influencers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
}

.influencer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.influencer-card:hover {
    transform: translateY(-10px);
    border-color: var(--muscle-red);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.15);
}

.influencer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--muscle-red);
    padding: 3px; /* Espace entre l'image et la bordure */
    background: var(--bg-color);
}

.influencer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.influencer-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.influencer-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.influencer-stats span {
    font-weight: 500;
}

/* ==========================================================================
   PROJET SPÉCIFIQUE : UPEC (ÉTUDIANT AMBASSADEUR)
   ========================================================================== */

/* --- 1. Hero & Statistiques (Thème Rouge UPEC) --- */
.upec-hero-style .overlay-upec {
    /* Dégradé montant utilisant la couleur de fond et le rouge UPEC */
    background: linear-gradient(to top, var(--bg-color) 10%, rgba(255, 77, 77, 0.25));
}

.upec-stats .stat-box {
    border-color: rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.05);
    transition: transform 0.3s ease;
}

.upec-stats .stat-box:hover {
    transform: translateY(-5px);
    border-color: #ff4d4d;
}

.upec-stats .stat-num { 
    color: #ff4d4d; 
}

/* --- 2. Timeline Expérience (Effet Alterné) --- */
.ambassador-timeline {
    margin: 100px 0;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.timeline-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Inversion pour le deuxième bloc (2024) */
.timeline-block.reverse .timeline-img { 
    order: 2; 
}

.timeline-block.reverse .timeline-content { 
    order: 1; 
    text-align: right; 
}

/* Ajustement de la liste pour le bloc inversé */
.timeline-block.reverse .role-list { 
    text-align: left; 
    direction: rtl; 
}

.timeline-block.reverse .role-list li { 
    direction: ltr; 
}

.timeline-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.timeline-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.year-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 5;
}

.year-badge.upec-red {
    background: #ff4d4d;
    color: #fff;
}

.timeline-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.role-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.role-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
    color: var(--text-muted);
}

.role-list li::before {
    content: '•';
    color: #ff4d4d;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- 3. Grille des Compétences (Soft Skills) --- */
.upec-skills {
    padding: 100px 0;
}

.skills-grid-upec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    background: var(--card-bg);
    padding: 45px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    border-color: #ff4d4d;
    box-shadow: 0 15px 35px rgba(255, 77, 77, 0.1);
}

.skill-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 25px;
}

.skill-item h4 {
    margin-bottom: 15px;
    color: #ff4d4d;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 4. Navigation vers les projets Print --- */
.upec-footer-nav {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.upec-next-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

.next-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.next-card:hover {
    border-color: #ff4d4d;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 77, 77, 0.15);
}

.next-card .year {
    color: #ff4d4d;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.next-card h3 {
    font-size: 2.4rem;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.next-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.fake-btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.next-card:hover .fake-btn {
    background: #ff4d4d;
    color: #fff;
}

/* --- 5. Responsive Mobile --- */
@media (max-width: 960px) {
    .timeline-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-block.reverse .timeline-img { order: 0; }
    .timeline-block.reverse .timeline-content { 
        order: 1; 
        text-align: left; 
    }
    
    .timeline-block.reverse .role-list { 
        direction: ltr; 
    }

    .upec-next-projects {
        grid-template-columns: 1fr;
    }
    
    .next-card {
        padding: 40px 20px;
    }
}


/* ==========================================================================
   PROJET SPÉCIFIQUE : TRIPTYQUE ORACCLE
   ========================================================================== */
/* --- 1. Hero Orange Spécifique --- */
.triptyque-hero-style {
    position: relative;
    overflow: hidden;
    background-color: #ee861b; /* Ta couleur exacte */
    padding: 120px 0 80px 0;
}

/* On utilise un grain léger pour texturer le fond orange */
.hero-bg-color::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* On ajuste les stats pour le mode clair si besoin */
[data-theme="light"] .triptyque-stats .stat-num {
    color: #ee861b;
}

/* Boutons et éléments actifs */
.triptyque-page .btn-black:hover {
    background-color: transparent !important;
    color: #ee861b !important;
    border-color: #ee861b !important;
}
/* --- 2. Showcase PDF --- */
.pdf-showcase {
    margin: 60px 0;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.pdf-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}
.pdf-actions {
    margin-top: 20px;
}

/* --- 3. Bloc Impact --- */
.impact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 100px 0;
    padding: 60px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}
.impact-img img {
    border-radius: 16px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

/* --- 4. LinkedIn Integration --- */
.linkedin-proof {
    margin: 100px 0;
}
.linkedin-wrapper {
    max-width: 600px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 900px) {
    .impact-box {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}


/* ==========================================================================
   PROJET SPÉCIFIQUE : QUADRIPTYQUE ORACCLE 2025
   ========================================================================== */

/* --- 1. Hero Gradient Oraccle --- */
.quad-hero-style {
    position: relative;
    padding: 120px 0 80px 0;
    /* Dégradé primaire Oraccle de Rose à Orange */
    background: linear-gradient(45deg, #EB6591 0%, #F08819 100%);
}

.hero-bg-gradient::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* --- 2. Stats & Couleurs Secondaires --- */
.quad-stats .stat-box {
    /* Utilisation du Bleu OCC pour les bordures de stats */
    border-color: rgba(40, 40, 91, 0.2);
    background: rgba(40, 40, 91, 0.05);
}

.quad-stats .stat-num { 
    color: #28285B; /* Bleu OCC */
}

/* --- 3. Preview Document --- */
.quadriptyque-page .pdf-container {
    border: 3px solid #28285B;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(40, 40, 91, 0.2);
}

.quadriptyque-page .img-caption {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* --- 4. Hover interactif sur les liens de fin --- */
.quadriptyque-page .next-card:hover {
    border-color: #EB6591;
    box-shadow: 0 15px 40px rgba(235, 101, 145, 0.15);
}

.quadriptyque-page .fake-btn {
    background: rgba(235, 101, 145, 0.1);
    color: #EB6591;
}

/* Responsive */
@media (max-width: 768px) {
    .quad-hero-style {
        padding: 100px 0 60px 0;
    }
}

.cv-skills-list li {
    position: relative;
    padding-left: 25px;
}

/* Animation au survol du bloc CV */
.cv-skills-box {
    transition: all 0.3s ease;
}
.cv-skills-box:hover {
    transform: translateX(10px);
    background: rgba(40, 40, 91, 0.05) !important;
}

@media (max-width: 768px) {
    .stats-highlight .quad-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }
}

/* Grille pour les posts LinkedIn */
.linkedin-embeds-grid {
    margin-bottom: 60px;
}

.linkedin-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

/* Hover sur le bouton Linktree */
.btn-social-linktree:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    filter: brightness(1.1);
}

/* Adaptabilité mobile pour les posts */
@media (max-width: 900px) {
    .linkedin-embeds-grid {
        grid-template-columns: 1fr !important;
    }
}

.linkedin-embeds-grid {
    display: flex; /* Aligne les éléments sur une ligne */
    flex-direction: row; /* Direction horizontale */
    justify-content: center; /* Centre les publications */
    gap: 30px; /* Espace entre les deux publications */
    margin-top: 40px;
    width: 100%;
}

.linkedin-wrapper {
    flex: 1; /* Permet aux publications d'occuper un espace égal */
    max-width: 550px; /* Limite la largeur pour éviter qu'elles ne soient trop larges */
    min-width: 300px; /* Assure une largeur minimum */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive : repasser l'un sous l'autre sur mobile */
@media (max-width: 900px) {
    .linkedin-embeds-grid {
        flex-direction: column;
        align-items: center;
    }
}


/* --- Yerres AC Style --- */
.yac-hero-style {
    position: relative;
    padding: 120px 0 80px 0;
    overflow: hidden;
}

.yac-hero-style .hero-bg-color::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

.yac-page .mission-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

@media (max-width: 900px) {
    .yac-page .intro-grid {
        grid-template-columns: 1fr !important;
    }
}


/* --- YAC Page Specifics --- */
.yac-hero-style {
    position: relative;
    padding: 120px 0 80px 0;
    overflow: hidden;
}

/* Fix pour la lisibilité en mode sombre */
.yac-missions-inner {
    background: var(--card-bg); /* S'adapte au mode sombre */
    padding: 80px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin: 60px auto;
}

.yac-missions .section-main-title {
    color: var(--text-color);
}

.yac-missions .section-subtitle {
    color: var(--text-muted);
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.yac-page .mission-card {
    background: var(--bg-color); /* Fond de la carte */
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    border-top: 4px solid #e6312e;
    transition: all 0.3s ease;
}

.yac-page .mission-card h3 {
    color: #e6312e;
    margin-bottom: 15px;
}

.yac-page .mission-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.yac-page .mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .yac-missions-inner {
        padding: 40px 20px;
    }
}


.yac-missions-inner {
    background: var(--card-bg, #f9f9f9);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color, #e0e0e0);
}

.yac-page .mission-card {
    background: var(--bg-color, #ffffff);
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #e6312e;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* En mode sombre (si tu as une classe .dark-mode sur le body) */
body.dark-mode .yac-missions-inner {
    background: #1a1a1a;
    border-color: #333;
}
body.dark-mode .yac-page .mission-card {
    background: #252525;
    border-color: #333;
}


/* --- Forest'Yerres Specifics --- */
.forest-hero-style {
    position: relative;
    padding: 120px 0 80px 0;
}

.forest-hero-style .hero-bg-color::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.missions-grid-forest .mission-item {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.missions-grid-forest .mission-item:hover {
    transform: translateY(-5px);
    border-color: #2d5a27;
}

.missions-grid-forest .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.forest-table-wrapper table th, 
.forest-table-wrapper table td {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .forest-table-wrapper {
        overflow-x: auto;
    }
}

/* --- Global Portfolio Spacing --- */
.section-spacing {
    padding: 100px 0;
}

/* --- Forest Page Styles --- */


.forest-page .sticky-content {
    position: sticky;
    top: 120px;
}

/* Expertise Cards */
.forest-expertise-bg {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.expertise-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card-expert {
    padding: 40px;
    background: var(--bg-color);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card-expert:hover {
    transform: translateY(-10px);
    border-color: #2d5a27;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-expert h3 {
    color: #2d5a27;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card-expert p {
    color: var(--text-color); /* S'adapte au mode sombre */
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Boutons */
.btn-forest:hover {
    background: #1b3d18 !important;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2-cols {
        grid-template-columns: 1fr !important;
    }
    
}


/* --- Correction Affichage PDF --- */
.grid-2-cols-expert {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.affiche-viewer-container {
    position: relative;
    width: 100%;
    /* Ratio A4 pour éviter les déformations */
    aspect-ratio: 1 / 1.414; 
    background: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.pdf-wrapper-custom {
    width: 100%;
    height: 100%;
}

.pdf-wrapper-custom embed {
    /* Évite que le PDF ne dépasse */
    display: block; 
}

/* --- Style des éléments YAC --- */
.exp-item-yac {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #a3e635;
    color: var(--text-color);
}

.btn-forest-download {
    display: inline-block;
    margin-top: 30px;
    background: #2d5a27;
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-forest-download:hover {
    background: #1b3d18;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2-cols-expert { grid-template-columns: 1fr; }
    .affiche-viewer-container { aspect-ratio: auto; height: 600px; }
}




/* ==========================================================================
   PROJET : PSYCHÉ (Version Finale - Cohérence Portfolio)
   ========================================================================== */

/* Variables de couleurs adaptatives (Jour/Nuit) */
:root {
    --psy-bg: #ffffff;
    --psy-text: #111111;
    --psy-gray: #f4f4f4;
    --psy-border: #e0e0e0;
}

[data-theme="dark"] {
    --psy-bg: #0a0a0a;
    --psy-text: #ffffff;
    --psy-gray: #1a1a1a;
    --psy-border: #333333;
}

.psyche-page {
    background-color: var(--psy-bg);
    color: var(--psy-text);
    transition: background 0.3s ease, color 0.3s ease;
}

/* --- HERO SECTION (Alignement Gauche & Overlay) --- */
.psyche-hero-style {
    position: relative;
    padding: 140px 0 100px 0;
    background: #000;
    color: #fff;
    text-align: left; /* Alignement standard du portfolio */
    overflow: hidden;
}

/* Image de fond en filigrane */
.psyche-hero-style::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.louis-cherqui.fr/wp-content/uploads/2026/01/affichebiereamour-scaled.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}


.psyche-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin: 15px 0;
}

.header-logo-img {
    width: 70px;
    height: auto;
    filter: invert(1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 10px;
    background: rgba(0,0,0,0.5);
}

.project-title {
    font-size: 4.5rem;
    margin: 0;
    color: #fff;
    line-height: 1;
}

.project-role {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* --- SECTIONS & GRILLES --- */
.grid-2-cols, 
.grid-2-cols-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-spacing {
    padding: 100px 0;
}

.rounded-shadow-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.caption {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Liste de stratégie (Social Media) */
.strategy-list {
    margin-top: 40px;
    border-left: 3px solid var(--psy-text);
    padding-left: 30px;
}

.strategy-item {
    margin-bottom: 30px;
}

.strategy-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--psy-text);
}

/* --- VIDÉO WRAPPER --- */
.video-section {
    background-color: var(--psy-gray);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

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

/* --- CHARTE & LOGO (Fin de page) --- */
.grid-charte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.charte-block {
    text-align: center;
}

.logo-display {
    background: #000;
    padding: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-clean {
    width: 120px;
    filter: invert(1);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .grid-2-cols, 
    .grid-2-cols-reverse, 
    .grid-charte {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .grid-2-cols-reverse {
        display: flex;
        flex-direction: column;
    }

    .psyche-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-title {
        font-size: 3rem;
    }
}


.btn-download-psy {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background-color: var(--psy-text);
    color: var(--psy-bg) !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--psy-text);
}

.btn-download-psy:hover {
    background-color: transparent;
    color: var(--psy-text) !important;
    transform: translateY(-2px);
}
/* ==========================================================================
   PROJET : LES SALETÉS STÉRÉOTYPÉES
   ========================================================================== */

:root {
    --sale-yellow: #FFD100;
    --sale-pink: #FF0A46;
    --sale-blue: #24A3FF;
    --sale-green: #8DEF00;
    --sale-bg: #ffffff;
    --sale-text: #1d1d1b;
}

[data-theme="dark"] {
    --sale-bg: #121212;
    --sale-text: #ffffff;
}

.saletes-page {
    background-color: var(--sale-bg);
    color: var(--sale-text);
}

.saletes-hero-style {
    position: relative;
    padding: 140px 0 100px 0;
    background-color: #1d1d1b;
    color: #fff;
    text-align: left;
}

.project-title {
    font-size: 4.5rem;
    margin: 0;
    color: #fff;
    line-height: 1.1;
}

.border-pop {
    border: 3px solid #000;
    box-shadow: 8px 8px 0px var(--sale-blue);
}

.grid-3-cols-flat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.card-strategy-flat {
    background: var(--sale-bg);
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

[data-theme="dark"] .card-strategy-flat {
    background: #1a1a1a;
    border-color: #333;
}

.icon-small {
    font-size: 2rem;
    margin-bottom: 15px;
}

.btn-download-saletes {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background-color: #1d1d1b;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

[data-theme="dark"] .btn-download-saletes {
    background-color: var(--sale-yellow);
    color: #000 !important;
}

@media (max-width: 900px) {
    .grid-3-cols-flat { grid-template-columns: 1fr; }
    .project-title { font-size: 3rem; }
}


/* ==========================================================================
   ANIMATIONS ET EFFETS (Les Saletés Stéréotypées)
   ========================================================================== */

/* --- Effet Parallaxe Subtil sur le Hero --- */
.saletes-hero-style::before {
    animation: slowPan 20s infinite alternate ease-in-out;
}

@keyframes slowPan {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.1) translate(-2%, -2%); }
}

/* --- Effets sur les Images --- */
.rounded-shadow-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.rounded-shadow-img:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* --- Effet Brutaliste sur les bordures Pop --- */
.border-pop {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.border-pop:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--sale-pink);
}

/* --- Bouton Download (Interaction Hover) --- */
.btn-download-saletes {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-download-saletes::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: height 0.3s ease;
    z-index: -1;
}

.btn-download-saletes:hover::after {
    height: 100%;
}

.btn-download-saletes svg {
    transition: transform 0.3s ease;
}

.btn-download-saletes:hover svg {
    transform: translateY(3px);
}

/* --- Cartes de Stratégie (Effet d'émergence) --- */
.card-strategy-flat {
    position: relative;
    top: 0;
    transition: all 0.4s ease;
}

.card-strategy-flat:hover {
    top: -10px;
    background-color: var(--sale-gray);
    border-color: var(--sale-blue);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.icon-small {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-strategy-flat:hover .icon-small {
    transform: scale(1.3) rotate(10deg);
}



/* ==========================================================================
   PROJET : THIEN / ANAMNÈSE
   ========================================================================== */

:root {
    --thien-bg: #ffffff;
    --thien-text: #111111;
    --thien-gray: #f9f9f9;
}

[data-theme="dark"] {
    --thien-bg: #0a0a0a;
    --thien-text: #ffffff;
    --thien-gray: #1a1a1a;
}

.thien-page {
    background-color: var(--thien-bg);
    color: var(--thien-text);
}

/* --- Hero Section --- */
.thien-hero-style {
    position: relative;
    padding: 160px 0 100px 0;
    text-align: left;
}

/* --- Narrative Steps --- */
.narrative-steps {
    margin-top: 30px;
}

.step {
    padding: 15px;
    border-left: 3px solid var(--thien-text);
    margin-bottom: 10px;
    background: var(--thien-gray);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.step strong {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* --- Vidéo Wrapper --- */
.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

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

/* --- Images & Grilles --- */
.thien-concept-section {
    background-color: var(--thien-gray);
}

.rounded-shadow-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.caption {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .grid-2-cols, .grid-2-cols-reverse {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    .thien-hero-style {
        padding: 120px 0 60px 0;
    }
}



/* =========================================
   RESPONSIVE : SECTION À PROPOS
   ========================================= */


@media (max-width: 768px) {
    /* Ajustement des espacements internes sur mobile */
    .about-modern {
        padding: 60px 0 !important;
    }

    .about-card {
        padding: 20px !important;
    }

    .about-intro .section-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 30px !important;
    }

    /* Optionnel : Ajuster la taille des icônes pour gagner de la place */
    .card-icon {
        font-size: 1.5rem !important;
    }
}

/* Fix pour s'assurer que les cartes ne dépassent jamais de l'écran */
.about-card {
    width: 100% !important;
    box-sizing: border-box !important;
}


/* Conteneur parent des cartes */


/* Force les cartes à faire environ 23% de la largeur (pour en avoir 4 sur une ligne) */
.about-card {
    flex: 1 1 calc(25% - 20px) !important; /* 25% moins le gap */
    min-width: 250px !important; /* Si l'écran rétrécit, elles passeront à la ligne proprement */
    display: flex !important;
    flex-direction: column !important;
}

/* Cas particulier de la carte "Highlight" (Avenir) */
.highlight-card {
    border: 2px solid #000;
}

/* RESPONSIVE : Si l'écran est petit (Mobile/Tablette) */
@media (max-width: 1100px) {
    .about-card {
        flex: 1 1 calc(50% - 20px) !important; /* 2 cartes par ligne */
    }
}

@media (max-width: 700px) {
    .about-card {
        flex: 1 1 100% !important; /* 1 seule carte par ligne sur mobile */
    }
}



/* 1. On force le conteneur à utiliser Grid pour aligner les cartes sur une ligne */


/* 2. On empêche le texte de sortir des cartes */
.about-card {
    width: 100% !important;
    box-sizing: border-box !important; /* Inclut le padding dans la largeur */
    display: flex !important;
    flex-direction: column !important;
    padding: 30px 20px !important; /* Ajuste l'espace intérieur */
    overflow: hidden !important; /* Coupe tout ce qui dépasse par sécurité */
}

/* 3. On force les paragraphes à respecter la largeur de la carte */
.about-card p {
    width: 100% !important;
    word-wrap: break-word !important; /* Coupe les mots trop longs si besoin */
    overflow-wrap: break-word !important;
    hyphens: auto !important; /* Ajoute des tirets si le texte est trop serré */
    margin-bottom: 15px !important;
}





/* Conteneur global de la section About */
.about-modern {
    position: relative;
    padding: 100px 0;
    /* Intégration de l'image derrière les cartes */
    background-image: url('https://www.louis-cherqui.fr/wp-content/uploads/2026/01/{08BA8834-1FD2-43DA-B57B-CAB4C53FC7DC}.png');
    background-repeat: no-repeat;
    background-position: center 20%; /* Ajustez le pourcentage pour monter/descendre l'image */
    background-size: 100% auto;
    overflow: hidden;
}

/* Style des cartes pour la lisibilité */
.about-card {
    background: rgba(18, 18, 18, 0.95) !important; /* Fond sombre légèrement transparent */
    backdrop-filter: blur(10px); /* Effet de flou derrière la carte pour la lisibilité */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 25px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Forcer le texte à rester dans la carte */
.about-card p, .about-card h3 {
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}






.about-modern {
    position: relative;
    padding: 100px 0;
    /* Remplacez par le bon chemin d'image */
    background-image: url('URL_DE_VOTRE_IMAGE_BANDEAU'); 
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}



/* --- NETTOYAGE ET REMPLACEMENT DE LA GRILLE ABOUT --- */

/* 1. La section parente (Pour l'image de fond et la largeur totale) */
.about-modern {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 100px 0 !important;
    background-image: url('https://www.louis-cherqui.fr/wp-content/uploads/2026/01/08BA8834-1FD2-43DA-B57B-CAB4C53FC7DC.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

/* 2. La grille (On force 4 colonnes sur PC avec 100% de largeur) */
.about-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Force les 4 colonnes */
    gap: 15px !important;
    width: 95% !important; 
    max-width: 1600px !important; /* Largeur max pour pas que ce soit trop étiré sur très gros écrans */
    margin: 0 auto !important;
    align-items: stretch !important;
}

/* 3. Les cartes (Sécurité anti-débordement) */
.about-card {
    background: rgba(18, 18, 18, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 25px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important; /* TRÈS IMPORTANT : garde le texte dedans */
    overflow: hidden !important;
}

/* 4. Le texte (Force le retour à la ligne) */
.about-card h3, 
.about-card p {
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* 5. LE RESPONSIVE (Propre et ordonné) */

/* Tablettes : on passe à 2 colonnes */
@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobiles : on passe à 1 colonne */
@media (max-width: 700px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        width: 90% !important;
    }
    .about-modern {
        padding: 50px 0 !important;
    }
}



/* ==========================================================================
   🚨 PATCH FINAL : CORRECTIF ALIGNEMENT & COULEURS (A PLACER A LA FIN)
   ========================================================================== */

/* --- ÉTAPE 1 : RÉPARER L'ALIGNEMENT DE LA FRONT PAGE --- */
/* On annule les marges négatives qui décalent tout sur le côté */
.about-modern {
    width: 100% !important;
    max-width: 1400px !important; /* On garde la même largeur que le reste du site */
    margin: 0 auto !important;    /* On centre le bloc automatiquement */
    padding: 80px 20px !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    background-size: cover !important; /* L'image de fond s'adapte proprement */
}

/* On s'assure que la grille de cartes est bien centrée aussi */
.about-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 auto !important;
    left: auto !important;
    transform: none !important;
}

/* --- ÉTAPE 2 : RENDRE LE TEXTE LISIBLE EN MODE CLAIR --- */
/* Quand le site est en mode Light, on force le texte en noir */
html[data-theme="light"] .about-card h3,
html[data-theme="light"] .about-card p,
html[data-theme="light"] .about-card strong,
html[data-theme="light"] .card-header,
/* Correctifs pour les projets (Gaming, UPEC) */
html[data-theme="light"] .project-role,
html[data-theme="light"] .project-cat,
html[data-theme="light"] .project-tags span,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .influencer-name,
html[data-theme="light"] .influencer-stats {
    color: #111827 !important; /* Noir foncé */
}

/* On garde l'année en couleur accentuée */
html[data-theme="light"] .about-card .card-year {
    color: var(--accent-color) !important;
}

/* On s'assure que les cartes ont un fond blanc et une bordure visible en mode clair */
html[data-theme="light"] .about-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

/* Exception : Les titres sur les Hero (fonds images/sombres) restent blancs */
.gaming-hero-style .project-title,
.gaming-hero-style .project-role,
.thien-hero-style .project-title,
.thien-hero-style .project-role,
.upec-hero-style .project-title,
.upec-hero-style .project-role {
    color: #ffffff !important;
}

/* --- ÉTAPE 3 : CENTRER LA PAGE UPEC --- */
.upec-page, 
.project-template-default {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden; /* Empêche le scroll horizontal */
}

/* --- ÉTAPE 4 : RESTAURER LA GRILLE INFLUENCEURS (SEMAINE DU MUSCLE) --- */
.influencers-section { margin: 60px 0; }
.influencers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.influencer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    transition: transform 0.3s ease;
}
.influencer-card:hover {
    transform: translateY(-10px);
    border-color: var(--muscle-red);
}
.influencer-avatar {
    width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
    margin-bottom: 20px; border: 3px solid var(--muscle-red);
}
.influencer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.influencer-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; color: var(--text-color); }
.influencer-stats { font-size: 0.9rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 5px; }

/* Responsive Mobile pour ce correctif */
@media (max-width: 900px) {
    .about-grid, 
    .influencers-grid { 
        grid-template-columns: 1fr !important; 
    }
    .about-modern {
        padding: 40px 20px !important;
    }
}


/* ==========================================================================
   SECTION "SUITE LOGIQUE" (PROJET SUIVANT)
   ========================================================================== */

.next-project-cta {
    padding: 80px 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gaming-link {
    display: block;
    position: relative;
    height: 450px; /* Hauteur de la bannière */
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate; /* Pour bien gérer les superpositions */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Image de fond */
.gaming-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Filtre sombre pour que le texte soit lisible */
.gaming-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 2;
    transition: background 0.3s ease;
}

.gaming-link:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
}

/* Contenu Texte */
.gaming-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff; /* Force le blanc */
}

.sub-cta {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: 600;
}

.gaming-content h2 {
    font-size: 4rem; /* Très gros titre */
    margin: 0 0 20px 0;
    color: #fff;
    line-height: 1;
}

.arrow-cta {
    font-size: 3rem;
    transition: transform 0.3s ease;
    display: block;
}

/* --- ANIMATIONS HOVER --- */
.gaming-link:hover .gaming-bg {
    transform: scale(1.05); /* Zoom lent sur l'image */
}

.gaming-link:hover .arrow-cta {
    transform: translateX(15px); /* La flèche bouge */
    color: #9d00ff; /* Couleur violet gaming au survol */
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .gaming-link { height: 350px; }
    .gaming-content h2 { font-size: 2.5rem; }
}









/* ==========================================================================
   FIX FINAL PHOTO HERO : POSITION & ÉTAGES (Z-INDEX)
   ========================================================================== */

/* 1. On gère l'empilement pour que la photo passe SOUS le bandeau */
.hero-modern {
    z-index: 1 !important; /* La section hero est à l'étage 1 */
}

.marquee-wrapper {
    position: relative !important;
    z-index: 10 !important; /* Le bandeau passe à l'étage 10 (au-dessus) */
}

/* 2. Positionnement de la photo */
.hero-visual .louis-photo {
    transform-origin: bottom right !important;
    /* On décale vers la droite et on baisse légèrement pour éviter que ça coupe en haut */
    transform: scale(1.0) translateX(10%) translateY(5%) !important;
    
    /* On limite la hauteur pour que la tête ne sorte pas du cadre en haut */
    max-height: 85vh !important; 
    width: auto !important;
    max-width: 90% !important;
    
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
}

/* 3. Ajustements pour les écrans de PC portables (1200px - 1440px) */
@media (max-width: 1440px) {
    .hero-visual .louis-photo {
        max-width: 80% !important;
        max-height: 80vh !important;
        transform: scale(1.0) translateX(12%) translateY(2%) !important;
    }
}

/* 4. Ajustements pour les petits PC (900px - 1200px) */
@media (max-width: 1200px) {
    .hero-visual .louis-photo {
        max-width: 70% !important;
        max-height: 75vh !important;
        transform: scale(1.0) translateX(15%) translateY(0%) !important;
    }
}

/* 5. Sécurité pour le texte */

.hero-visual {
    flex-basis: 40% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    overflow: visible !important; /* Permet à la photo de descendre sous le bandeau */
}


/* ==========================================================================
   2. RESET & TYPOGRAPHIE GLOBALE (FIX POLICES)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    /* 1. Règle d'or : Futura PT pour tout le site par défaut */
    font-family: var(--font-main); 
    font-size: var(--text-base);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Liens et Images */
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilitaires de structure (Restaurés) */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.center-text { text-align: center; }

/* ==========================================================================
   2. RESET & TYPOGRAPHIE (STRATÉGIE FUTURA DOMINANT)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* 1. BASE : TOUT LE SITE EN FUTURA */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main) !important; /* Futura PT partout */
    font-size: var(--text-base);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* On force Futura sur tous les textes par défaut */
p, li, a, span, div, input, button {
    font-family: var(--font-main) !important;
    font-weight: 400; /* Version normale pour la lecture */
}

/* 2. TITRES : FUTURA EN "GRAS" (HIÉRARCHIE) */
h1, h2, h3, h4, 
.section-title, 
.project-title, 
.hero-title,
.about-card h3 {
    font-family: var(--font-main) !important; /* Toujours Futura */
    font-weight: 800 !important; /* Très Gras (Heavy/Bold) */
    text-transform: uppercase;   /* Majuscules pour l'impact */
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Réglage des tailles pour la hiérarchie */
.hero-title, .project-title { font-size: clamp(3rem, 7vw, 6rem); } /* Énorme */
.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); } /* Gros */
.about-card h3 { font-size: 1.6rem; font-weight: 700 !important; } /* Moyen */

/* 3. L'EXCEPTION "AGAINST" (JUSTE POUR LE STYLE/LOGO) */
/* Uniquement pour le Logo Header et les éléments marqués "spéciaux" */
.logo-text, 
.font-against, 
.card-year { 
    font-family: var(--font-title) !important; /* Against */
    font-weight: normal !important;
    text-transform: none; /* On laisse la police gérer ses majuscules */
}

/* 4. UTILITAIRES DE STRUCTURE (NE PAS TOUCHER) */
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.center-text { text-align: center; }

/* Boutons en Futura Gras */
.btn-black, .btn-outline, .project-tags span {
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}





/* ==========================================================================
   GESTION DES TAILLES & HIÉRARCHIE (FUTURA DOMINANT)
   ========================================================================== */

/* 1. Règle Générale pour tous les titres (H1 à H6) */
h1, h2, h3, h4, h5, h6,
.hero-title,
.project-title,
.section-title {
    font-family: var(--font-main) !important; /* Futura PT */
    font-weight: 800 !important; /* Ultra Gras (Heavy/Bold) pour l'impact */
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* 2. TAILLES RESPONSIVES (Du plus grand au plus petit) */

/* Niveau 1 : Le Titre Héro & Noms de Projets (XXL) */
h1, .hero-title, .project-title {
    /* Minimum 40px (mobile) -> Idéal 6% écran -> Max 90px (PC) */
    font-size: clamp(2.5rem, 6vw, 5.5rem) !important;
}

/* Niveau 2 : Titres de Sections (XL) */
h2, .section-title {
    /* Minimum 32px -> Max 56px */
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

/* Niveau 3 : Titres de Cartes & Sous-sections (L) */
h3, .about-card h3, .card-title {
    /* Minimum 24px -> Max 32px */
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important; /* Un peu moins lourd pour la lisibilité */
}

/* Niveau 4 : Sous-titres & Rôles (M) */
h4, .project-role, .sub-cta {
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* 3. Texte Courant (Corps de texte) */
p, li, .about-card p {
    font-family: var(--font-main) !important;
    font-weight: 400 !important; /* Normal */
    font-size: 1rem !important;   /* 16px standard */
    line-height: 1.6 !important;
    text-transform: none;
}

/* 4. EXCEPTIONS : Éléments "Spéciaux" en Police Against */
.logo-text, 
.card-year, 
.font-against {
    font-family: var(--font-title) !important; /* Against */
    font-weight: normal !important;
    text-transform: none; /* On laisse la police artistique gérer */
}

/* Ajustement spécifique pour l'année (About) */
.card-year {
    font-size: 1.5rem !important;
    color: var(--accent-color);
    margin-bottom: 5px;
    display: block;
}



/* 3. Petit ajustement pour les bordures ou cartes si besoin */
.action-item-v {
    border-color: var(--border-color);
}


/* ==========================================================================
   1. VARIABLES & SYSTÈME DE COULEURS
   ========================================================================== */
:root {
    --font-main: 'Futura PT', 'Inter', sans-serif;
    --font-title: 'Against', serif;
    --header-height: 90px;
    --container-width: 1400px;
    --radius-md: 16px;

    /* Couleurs Thème Sombre (Défaut) */
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #8b5cf6;
    --header-bg: rgba(10, 10, 10, 0.9);
}

html[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f4f4f5;
    --text-color: #111827;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   2. TYPOGRAPHIE GLOBALE (FUTURA DOMINANT)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* --- Hiérarchie des Titres --- */
h1, h2, h3, h4, .section-title, .project-title, .hero-title {
    font-family: var(--font-main);
    font-weight: 800; /* Extra-Gras Futura */
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1, .hero-title, .project-title { font-size: clamp(3rem, 7vw, 6rem); }
h2, .section-title { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* --- L'Exception Artistique (Against) --- */
.logo-text, .font-against, .card-year {
    font-family: var(--font-title) !important;
    text-transform: none;
    font-weight: normal;
}

p, li {
    font-weight: 400;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   3. STRUCTURE & LAYOUT
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.main-content { padding-top: 160px; }

/* ==========================================================================
   4. PAGES PROJETS ( AFM, UPEC)
   ========================================================================== */


.action-item-v {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: var(--radius-md);
    border-left: 6px solid #a3e635; /* Vert DA */
    margin-bottom: 40px;
}

html[data-theme="light"] .action-item-v { background: rgba(0, 0, 0, 0.03); }

.action-item-v h3 { 
    color: #a3e635 !important; 
    margin-bottom: 10px;
}

/* Grilles Projets */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .grid-2-cols { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   5. CTA BAS DE PAGE (VOIR LE GAMING)
   ========================================================================== */
.next-project-cta {
    padding: 100px 0;
}

.gaming-link {
    display: block;
    position: relative;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
}

.gaming-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.gaming-link:hover .gaming-bg { transform: scale(1.05); }

.gaming-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.gaming-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.gaming-content h2 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; }
.sub-cta { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; opacity: 0.8; }
.arrow-cta { font-size: 3rem; margin-top: 15px; transition: transform 0.3s ease; }
.gaming-link:hover .arrow-cta { transform: translateX(15px); }

/* ==========================================================================
   6. SECTION TRAJECTOIRE (FRONT PAGE)
   ========================================================================== */
.about-modern {
    padding: 100px 0;
    max-width: var(--container-width);
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.about-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    height: 100%;
}

.about-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 15px; 
    color: var(--text-color);
}

.about-card p { font-size: 1rem; color: var(--text-muted); }

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





/* ==========================================================================
   HEADER : RESTAURATION & TAILLE LOGO
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Regle la taille du nom Louis Cherqui */
.logo-text {
    font-family: var(--font-title) !important; /* Against */
    font-weight: normal;
    color: var(--text-color);
    line-height: 1;
    text-transform: none; /* Respecte le style Against */
}



/* ==========================================================================
   TYPOGRAPHIE GLOBALE (FUTURA PT DOMINANT)
   ========================================================================== */

/* 1. Base : Tout en Futura PT */
body, p, li, a, span, button, .project-role {
    font-family: var(--font-main) !important; 
    font-weight: 400;
}

/* 2. Titres : Futura PT en Heavy (Gras) */
h1, h2, h3, .section-title, .project-title, .hero-title {
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

/* 3. Exceptions : Against uniquement pour le Logo et les Années */
.logo-text, .card-year, .font-against {
    font-family: var(--font-title) !important;
}

/* Taille de l'année dans les cartes */
.card-year {
    font-size: 1.5rem !important;
    color: var(--accent-color);
}

/* ==========================================================================
   1. HEADER : RESTAURATION & DESIGN
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}


/* Taille et Police du nom Louis Cherqui */
.logo-text {
    font-family: var(--font-title) !important; /* Against */
    font-weight: normal;
    color: var(--text-color);
    line-height: 1;
    text-transform: none;
}

/* ==========================================================================
   2. TYPOGRAPHIE GLOBALE (STRICTEMENT 2 POLICES)
   ========================================================================== */

/* --- RÈGLE 1 : FUTURA PT (Lecture & Boutons) --- */
body, p, li, a, span, button, .project-role, .hero-subtitle, .hero-greeting {
    font-family: var(--font-main) !important; 
    font-weight: 400;
}

/* --- RÈGLE 2 : FUTURA PT HEAVY (Titres) --- */
/* On utilise Futura en Extra-Gras pour tous les titres */
h1, h2, h3, .section-title, .project-title, .hero-title {
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: var(--text-color);
}

/* --- RÈGLE 3 : AGAINST (Signature & Accents) --- */
/* Uniquement pour le Logo, les années et les éléments décoratifs */
.logo-text, .card-year, .font-against {
    font-family: var(--font-title) !important;
    text-transform: none;
}

/* ==========================================================================
   3. GESTION DES TAILLES & STRUCTURE HERO
   ========================================================================== */

/* Titres XXL (Hero & Projets) */
h1, .hero-title, .project-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem) !important;
    line-height: 1.05;
    margin-bottom: 2rem !important;
}

/* Titres de Sections (XL) */
h2, .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

/* Titres de Cartes (L) - Plus gros que le texte */
h3, .about-card h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
    margin-bottom: 15px !important;
}

/* Alignement Hero (60% texte / 40% photo) */
.hero-content {
    flex-basis: 60% !important;
    max-width: 650px;
    z-index: 5 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ==========================================================================
   HEADER : TAILLES ET DISPOSITION FINALE
   ========================================================================== */

/* 1. Conteneur principal du Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* On définit une hauteur minimale pour éviter les éléments coupés */
    min-height: 90px; 
    padding: 10px 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center; /* Centre tout verticalement */
}

/* 2. Flexbox pour séparer Logo et Navigation */

/* 3. Réglage précis du Logo "Louis Cherqui" */
.logo-text {
    font-family: var(--font-title) !important; /* Against */
    /* Taille responsive : ne dépasse pas du bandeau */
    font-size: clamp(1.4rem, 2.5vw, 2.1rem) !important; 
    line-height: 1.2 !important;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap; /* Empêche le nom de passer sur deux lignes */
}

/* 4. Menu de Navigation (PROJETS, CV, etc.) */
.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 40px); /* Espace flexible entre les éléments */
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-family: var(--font-main) !important; /* Futura PT */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 5. Bouton CV et Toggle Thème */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle {
    font-size: 1.1rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive : On cache les liens inutiles sur petit mobile pour éviter le chevauchement */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Cache les liens textes, garde le CV et le thème */
    }
}



/* ==========================================================================
   FIX HEADER : TAILLE ET ALIGNEMENT VERTICAL
   ========================================================================== */

/* 1. On force le centrage vertical de tous les éléments du header */


.main-nav {
    display: flex;
    align-items: center; /* Centrage vertical interne au menu */
    height: 100%;
}

/* 2. Réglage du lien "PROJETS" */
.nav-links a {
    font-family: var(--font-main) !important; /* Futura PT */
    font-weight: 800 !important; /* On le met en gras pour la visibilité */
    font-size: 1.1rem !important; /* Taille augmentée pour ne plus être "tout petit" */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center; /* Centre le texte dans son propre espace cliquable */
    padding: 10px 0;
}

/* 3. Réglage des actions (CV et Toggle Thème) */
.nav-actions {
    display: flex;
    align-items: center; /* Aligne le bouton CV et l'icône Soleil/Lune */
    gap: 20px;
}

/* On s'assure que le bouton CV est aussi bien proportionné */
.btn-cv {
    font-family: var(--font-main) !important;
    font-weight: 800;
    font-size: 0.9rem !important;
    padding: 10px 22px !important;
    display: flex;
    align-items: center;
}

/* 4. On s'assure que le Logo ne décale rien */
.logo-text {
    line-height: 1 !important;
    display: flex;
    align-items: center;
}



/* ==========================================================================
   HEADER : STRUCTURE PARFAITE
   ========================================================================== */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligne parfaitement le logo et le menu sur la même ligne */
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%; /* Utilise toute la hauteur du bandeau header */
}

/* On s'assure que la nav et les liens utilisent aussi le centrage flex */
.main-nav {
    display: flex;
    align-items: center; 
    gap: clamp(20px, 3vw, 40px);
}

.nav-links {
    display: flex;
    align-items: center; /* Centrage vertical du texte "PROJETS" */
    gap: 25px;
}

/* Réglage spécifique pour que "PROJETS" ne soit pas trop petit */
.nav-links a {
    font-family: var(--font-main) !important; /* Futura PT */
    font-weight: 800 !important;
    font-size: 1.1rem !important; /* Taille ajustée pour être lisible */
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

/* Correction du Logo pour qu'il soit bien calé */
.logo-text {
    display: flex;
    align-items: center;
    line-height: 1 !important;
    padding: 5px 0;
}



/* ==========================================================================
   FIX HEADER : ALIGNEMENT VERTICAL LOGO & MENU
   ========================================================================== */

.site-header {
    /* On définit une hauteur minimale pour stabiliser le bandeau */
    min-height: 80px; 
    display: flex;
    align-items: center; /* Aligne tout le contenu au centre verticalement */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligne le logo (gauche) et le menu (droite) sur le même axe */
    width: 90%;
    margin: 0 auto;
    height: 100%;
}

/* Correction spécifique pour le h1 logo-text */
.logo-text {
    /* Dans ton code, le h1 a souvent des marges par défaut qui décalent tout */
    margin: 0 !important; 
    line-height: 1 !important; /* Réduit l'espace invisible autour des lettres Against */
    display: flex;
    align-items: center;
    /* Ajuste la taille pour qu'il ne dépasse pas du header */
    font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important; 
}

/* Centrage du bloc Projets / CV / Theme */
.main-nav, .nav-links, .nav-actions {
    display: flex;
    align-items: center; /* Force l'alignement vertical de chaque sous-élément */
    height: 100%;
}

/* On s'assure que le lien PROJETS n'est pas décalé par son propre padding */
.nav-links a {
    display: flex;
    align-items: center;
    padding: 0; 
    margin: 0;
}



/* ==========================================================================
   HEADER : ALIGNEMENT PARFAIT LOGO & PROJETS
   ========================================================================== */

/* 1. On stabilise le container pour que les deux côtés soient sur la même ligne */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligne le logo (gauche) et le menu (droite) au centre vertical */
    height: 100%;
    width: 90%;
    margin: 0 auto;
}

/* 2. On s'assure que le menu de navigation est lui aussi un flex centré */
.main-nav, .nav-links, .nav-actions {
    display: flex;
    align-items: center; /* Centre verticalement le texte "PROJETS", le bouton CV et le Toggle */
    gap: 25px;
    height: 100%; /* Important pour que l'alignement se fasse sur toute la hauteur */
}

/* 3. Réglage précis du lien PROJETS */
.nav-links a {
    display: flex;
    align-items: center; /* Centre le texte dans sa propre boîte */
    font-family: var(--font-main) !important; /* Futura PT */
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    line-height: 1 !important; /* Supprime les décalages dus à l'interligne */
    padding: 0; 
    margin: 0;
    transition: color 0.3s ease;
}

/* 4. On réinitialise les marges du h1 (logo) qui décalent souvent tout */
.logo-text {
    margin: 0 !important;
    display: flex;
    align-items: center;
    line-height: 1 !important;
}



/* ==========================================================================
   FORCE LE CENTRAGE VERTICAL : LOGO & NAV
   ========================================================================== */

/* 1. Le conteneur parent doit aligner ses enfants au centre */
.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important; /* Centre verticalement le logo et la nav */
    height: 90px; /* Ajuste selon la hauteur souhaitée de ton header */
}

/* 2. On aligne la navigation et la liste */
.main-nav, 
.nav-links {
    display: flex !important;
    align-items: center !important; /* Centre verticalement les LI */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 3. On aligne le LI et le lien A */
.nav-links li {
    display: flex !important;
    align-items: center !important;
}

.nav-links a {
    display: flex !important;
    align-items: center !important; /* Centre le texte "Projets" dans le lien */
    line-height: 1 !important; /* Supprime l'espace vide sous les lettres */
    height: auto !important;
    padding: 0 15px !important;
    
    /* Tes polices */
    font-family: var(--font-main) !important; /* Futura PT */
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* 4. Fix du Logo (h1) pour qu'il n'ait pas de marges invisibles */
.logo-text {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* 5. Aligner aussi les actions (CV et Toggle) */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
}




/* ==========================================================================
   CENTRAGE PRÉCIS DU TEXTE DANS LE LI
   ========================================================================== */

/* 1. On force le LI à être un conteneur flexible centré */
.nav-links li {
    display: flex !important;
    align-items: center !important;   /* Centrage Vertical */
    justify-content: center !important; /* Centrage Horizontal */
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. On ajuste le lien <a> pour qu'il n'ait pas de décalage interne */
.nav-links li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* CRUCIAL : Supprime les interlignes qui poussent le texte vers le bas */
    line-height: 1 !important; 
    height: auto !important;
    
    /* Padding symétrique pour ne pas décentrer */
    padding: 10px 15px !important; 
    
    font-family: var(--font-main) !important;
    font-weight: 800;
    text-decoration: none;
}

/* 3. Reset du UL pour éviter les marges invisibles de WordPress */
.nav-links {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

/* ==========================================================================
   VERDESOI : CODE COMPLET ET UNIFIÉ (À COLLER EN PREMIER)
   ========================================================================== */

/* ----------------------------------------------------------
   1. BASES DE LA PAGE & THÈMES (SÉCURITÉ MAXIMALE)
   ---------------------------------------------------------- */
.verdesoi-page {
    /* On force les variables de base */
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: var(--font-main) !important; /* Futura PT */
    line-height: 1.6 !important;
    transition: background 0.3s ease, color 0.3s ease;
    width: 100%;
    overflow-x: hidden;
}

/* Force explicitement les couleurs selon le mode pour éviter les bugs */
[data-theme="dark"] .verdesoi-page {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    --text-color: #ffffff;
    --card-bg: #141414;
    --border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .verdesoi-page {
    background-color: #ffffff !important;
    color: #000000 !important;
    --text-color: #000000;
    --card-bg: #f4f4f5;
    --border-color: #e5e7eb;
}

/* ----------------------------------------------------------
   2. TYPOGRAPHIE & HIÉRARCHIE (FUTURA PT)
   ---------------------------------------------------------- */
/* Gros Titres (H1, H2, Titres de projet) */
.verdesoi-page h1, 
.verdesoi-page h2, 
.verdesoi-page .section-title, 
.verdesoi-page .project-title {
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: var(--text-color) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
}

/* Taille spécifique H1 */
.verdesoi-page h1, 
.verdesoi-page .project-title {
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
}

/* Corps de texte (Paragraphes et Listes) */
.verdesoi-page p, 
.verdesoi-page li {
    font-family: var(--font-main) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: var(--text-color) !important;
    opacity: 1 !important; /* Vital pour la lisibilité */
}

/* ----------------------------------------------------------
   3. BLOCS "ACTION ITEM" (MONITORING PMO, ETC.)
   ---------------------------------------------------------- */
.action-item-v {
    /* Utilise le fond défini dans la section 1 (clair ou sombre) */
    background-color: var(--card-bg) !important; 
    padding: 40px !important;
    border-radius: 16px !important;
    border-left: 6px solid #a3e635 !important; /* Vert Verdesoi */
    border-top: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    margin-bottom: 30px !important;
}

/* Le titre à l'intérieur du bloc (en vert) */
.action-item-v h3 {
    color: #a3e635 !important;
    font-family: var(--font-main) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 1.6rem !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

/* Le texte à l'intérieur du bloc (force la couleur du thème) */
.action-item-v p,
.action-item-v li {
    color: var(--text-color) !important;
    font-size: 1.05rem !important;
    opacity: 1 !important;
}

/* Style des listes dans les cartes */
.action-item-v ul {
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.action-item-v li {
    margin-bottom: 10px !important;
    padding-left: 0 !important;
    display: flex;
    align-items: baseline;
}

/* Ajoute une petite étoile ou puce si besoin devant les li */
.action-item-v li::before {
    content: "★";
    color: #a3e635;
    margin-right: 10px;
    font-size: 0.9em;
}

/* ----------------------------------------------------------
   4. TAGS & BADGES (BUDGET, PLANNING...)
   ---------------------------------------------------------- */
.verdesoi-page .tag, 
.verdesoi-page .tools-list span {
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    background-color: var(--border-color) !important; /* S'adapte au thème */
    color: var(--text-color) !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    display: inline-block !important;
    margin-right: 10px !important;
    margin-bottom: 10px !important;
}

/* ----------------------------------------------------------
   5. MISE EN PAGE (GRID)
   ---------------------------------------------------------- */
.grid-2-cols {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    align-items: center !important;
    margin: 60px 0 !important;
    width: 100% !important;
}

@media (max-width: 900px) {
    .grid-2-cols {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}


/* ==========================================================================
   FIX URGENT : LISIBILITÉ VERDESOI (TEXTE BLANC SUR BLANC)
   ========================================================================== */

/* 1. CAS : MODE CLAIR (Fond Blanc -> Texte Noir) */
html[data-theme="light"] .verdesoi-page,
html[data-theme="light"] .action-item-v {
    background-color: #ffffff !important;
}

html[data-theme="light"] .verdesoi-page h1,
html[data-theme="light"] .verdesoi-page h2,
html[data-theme="light"] .verdesoi-page p,
html[data-theme="light"] .verdesoi-page li,
html[data-theme="light"] .action-item-v p,
html[data-theme="light"] .action-item-v li {
    color: #000000 !important; /* On force le NOIR pur */
    opacity: 1 !important;
}

/* Le titre "Monitoring PMO" reste vert, mais on assure sa visibilité */
html[data-theme="light"] .action-item-v h3 {
    color: #a3e635 !important; 
    text-shadow: 0px 1px 1px rgba(0,0,0,0.1); /* Petit ombrage pour le détacher */
}


/* 2. CAS : MODE SOMBRE (Fond Noir -> Texte Blanc) */
html[data-theme="dark"] .verdesoi-page,
html[data-theme="dark"] .action-item-v {
    background-color: #0a0a0a !important;
    border-color: rgba(255,255,255,0.1) !important;
}

html[data-theme="dark"] .verdesoi-page h1,
html[data-theme="dark"] .verdesoi-page h2,
html[data-theme="dark"] .verdesoi-page p,
html[data-theme="dark"] .verdesoi-page li,
html[data-theme="dark"] .action-item-v p,
html[data-theme="dark"] .action-item-v li {
    color: #ffffff !important; /* On force le BLANC pur */
}

/* 3. FICHIER DE SECOURS (Si le thème n'est pas détecté) */
/* Par défaut, on force le texte en gris très foncé pour être sûr qu'il se voit sur du blanc */
.action-item-v p, 
.action-item-v li {
    color: #111827 !important; 
}



/* --- Compléments CSS pour Verdesoi --- */

/* La boîte Bilan en vert */
.verdesoi-result-box {
    margin-top: 40px;
    padding: 25px;
    background: #1A4D2E; /* Fond Vert foncé */
    color: #ffffff !important; /* Texte toujours blanc */
    border-radius: 12px;
}
.verdesoi-result-box p {
    color: #ffffff !important;
    margin: 0;
}

/* Images Preuves */
.proof-img-wrapper, .proof-img-full {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}
.proof-img-wrapper img, .proof-img-full img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    font-size: 0.85rem !important;
    margin-top: 10px;
    color: var(--text-muted) !important;
    font-style: italic;
}

.project-cat {
    color: #a3e635 !important; /* Vert fluo pour le surtitre */
    display: block;
    margin-bottom: 10px;
}




/* ==========================================================================
   FIX HEADER PROJETS (AFM, GAMING, ETC.)
   ========================================================================== */

.project-hero {
    position: relative;
    padding: 160px 0 80px 0; /* Espace pour ne pas être caché par le menu fixe */
    color: #ffffff;
    background-color: var(--bg-color);
    overflow: hidden;
    min-height: 60vh; /* Hauteur minimum pour l'impact visuel */
    display: flex;
    align-items: center;
}

/* Gestion de l'image de fond (Spécifique AFM / Gaming) */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

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

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Assombrit l'image pour lire le texte */
    z-index: 2;
}

/* Le contenu texte passe par-dessus l'image */
.hero-content-project {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

/* Typographie du Hero */
.project-cat {
    color: var(--accent-color);
    font-family: var(--font-title) !important; /* Against */
    font-size: 1.5rem;
    display: block;
    margin-bottom: 15px;
}

.project-title {
    font-size: clamp(3rem, 6vw, 5.5rem) !important;
    margin-bottom: 20px;
    color: #ffffff !important; /* Force le blanc sur l'image sombre */
}

.project-role {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* Tags (Compétences) */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(5px);
}



/* ==========================================================================
   PAGE PROJET : TÉLÉTHON GAMING
   ========================================================================== */

/* --- 1. Header Hero Spécifique --- */
.gaming-hero-style .hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.gaming-hero-style .overlay-gaming {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Dégradé violet sombre pour l'ambiance Twitch */
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(168, 85, 247, 0.2));
    z-index: 2;
}

.gaming-hero-style .project-tags span {
    border-color: #a855f7 !important; /* Bordure violette */
    color: #ffffff !important;
    background: rgba(168, 85, 247, 0.1); /* Fond légèrement violet */
}

/* --- 2. Statistiques (Style Gaming) --- */
.gaming-stats .stat-box {
    border-left: 3px solid #a855f7 !important; /* Barre violette à gauche */
    background: var(--card-bg);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

.gaming-stats .stat-num {
    color: #a855f7 !important; /* Chiffres en violet */
    font-size: 2.5rem;
    display: block;
    margin-bottom: 5px;
}

/* --- 3. Section Focus (Montée en Puissance) --- */
.project-focus {
    padding: 80px 0;
}

.focus-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.focus-label {
    display: inline-block;
    background: #a855f7;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.focus-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15); /* Ombre portée violette */
    transition: transform 0.3s ease;
}

.focus-img img:hover {
    transform: scale(1.02);
}

/* --- 4. Intégration LinkedIn (Responsive) --- */
.linkedin-proof {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.linkedin-embeds-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.linkedin-wrapper {
    background: white; /* LinkedIn est blanc, on garde un fond propre */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- 5. CTA Social (Linktree) --- */
.social-cta-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
}

.btn-social-linktree {
    transition: background 0.3s ease;
}

.btn-social-linktree:hover {
    background: #9333ea !important; /* Violet plus foncé au survol */
}

/* --- 6. Responsive Mobile --- */
@media (max-width: 900px) {
    .focus-box {
        grid-template-columns: 1fr;
        padding: 30px;
        text-align: center;
    }

    .linkedin-embeds-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .linkedin-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .intro-stats {
        margin-top: 40px;
    }
}



/* ==========================================================================
   HERO GAMING : ALIGNEMENT GAUCHE
   ========================================================================== */

/* 1. Aligne le texte (Titre, Rôle, Catégorie) à gauche */
.gaming-hero-style .hero-content-project {
    text-align: left !important;
    align-items: flex-start !important; /* Cale tout à gauche si c'est du flex */
    margin-left: 0 !important;          /* Enlève le centrage automatique */
    margin-right: auto !important;      /* Laisse l'espace vide à droite */
}

/* 2. Aligne les tags (les bulles) à gauche */
.gaming-hero-style .project-tags {
    justify-content: flex-start !important;
}


/* ==========================================================================
   HERO GAMING : ALIGNEMENT GAUCHE + ESPACE
   ========================================================================== */

.gaming-hero-style .hero-content-project {
    text-align: left !important;
    align-items: flex-start !important;
    
    /* C'est ici qu'on gère l'espace */
    margin-left: 8% !important;    /* Décolle le texte du bord gauche */
    margin-right: auto !important; /* Laisse le vide à droite */
    
    max-width: 800px !important;   /* Empêche le texte de faire toute la largeur */
}

/* On aligne aussi les tags à gauche */
.gaming-hero-style .project-tags {
    justify-content: flex-start !important;
}

/* Petit ajustement pour Mobile (pour ne pas perdre trop de place) */
@media (max-width: 768px) {
    .gaming-hero-style .hero-content-project {
        margin-left: 5% !important; /* Marge plus petite sur téléphone */
        width: 90% !important;
    }
}




/* ==========================================================================
   HERO AFM-TÉLÉTHON : ALIGNEMENT GAUCHE
   ========================================================================== */

/* 1. Aligne le texte à gauche avec une marge de respiration */
.telethon-page .hero-content-project {
    text-align: left !important;
    align-items: flex-start !important;
    
    /* Espace pour ne pas coller au bord (comme pour Gaming) */
    margin-left: 8% !important;    
    margin-right: auto !important; 
    
    max-width: 800px !important;
}

/* 2. Aligne les tags (puces) au début de la ligne */
.telethon-page .project-tags {
    justify-content: flex-start !important;
}

/* 3. Ajustement pour mobile (un peu moins de marge) */
@media (max-width: 768px) {
    .telethon-page .hero-content-project {
        margin-left: 5% !important;
        width: 90% !important;
    }
}



/* ==========================================================================
   GLOBAL PROJECT HERO (STYLE UNIFIÉ POUR TOUTES LES PAGES)
   ========================================================================== */

/* 1. Le Conteneur Principal (Hauteur & Position) */
.project-hero {
    position: relative;
    display: flex;
    align-items: center; /* Centre verticalement */
    min-height: 60vh;    /* Hauteur imposante */
    padding: 160px 0 80px 0; /* Espace pour le menu fixe */
    background-color: var(--bg-color);
    overflow: hidden;
    color: #ffffff !important; /* Force le texte en blanc sur les images */
}

/* 2. Gestion de l'Image de Fond & Overlay */
.hero-bg {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Remplit tout l'écran sans déformer */
}

.overlay, .overlay-gaming {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Filtre noir pour lire le texte */
    z-index: 2;
}

/* 3. Le Contenu Texte (Alignement Gauche + Espace 8%) */
.hero-content-project {
    position: relative;
    z-index: 10;
    
    /* ALIGNEMENT GAUCHE FORCÉ */
    text-align: left !important;
    align-items: flex-start !important;
    
    /* ESPACEMENT LATÉRAL (RESPIRATION) */
    margin-left: 8% !important;   
    margin-right: auto !important;
    
    max-width: 900px;
    width: 90%;
}

/* 4. Typographie du Hero */
.project-cat {
    display: block;
    font-family: var(--font-title) !important; /* Against */
    font-size: 1.5rem;
    color: var(--accent-color, #a3e635); /* Utilise la couleur d'accent ou vert par défaut */
    margin-bottom: 15px;
}

.project-title {
    font-family: var(--font-title) !important;
    font-size: clamp(3rem, 6vw, 5.5rem) !important;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.project-role {
    font-size: 1.3rem;
    color: #e0e0e0 !important; /* Gris très clair */
    margin-bottom: 30px;
    font-weight: 400;
}

/* 5. Les Tags (Bulles de compétences) alignés à gauche */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start !important; /* Cale les tags à gauche */
}

.tag, .project-tags span {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
}

/* 6. Adaptation Mobile */
@media (max-width: 768px) {
    .hero-content-project {
        margin-left: 5% !important; /* Réduit un peu la marge sur petit écran */
        width: 90% !important;
    }
    
    .project-title {
        font-size: 2.8rem !important;
    }
}


/* Suppression radicale des puces par défaut pour les listes UPEC */
.role-list li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Tue le petit point si le thème l'ajoute via ::before */
.role-list li::before {
    content: none !important;
    display: none !important;
}