/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #080808;      
    --card-bg: #111111;       
    --border-color: #2a2a2a;  
    --text-main: #ededed;     
    --text-muted: #888888;    
    --accent-red: #be1515;
    --radius: 6px;           
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }

.container-fluid { width: 100%; max-width: 100%; padding: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.spacer { height: 100px; }

/* =========================================
   2. LOADER & ANIMATIONS
   ========================================= */
body.is-loading { overflow-y: hidden; }
body.loaded { overflow-y: auto; }
body.loaded #loader-wrapper { transform: translateY(-100%); }

#loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1); will-change: transform;
}

#loader-text {
    font-size: 3rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
    opacity: 0; filter: blur(15px); transform: scale(0.9);
    animation: textFocusIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

@keyframes textFocusIn {
    0% { filter: blur(15px); opacity: 0; transform: scale(0.9); }
    100% { filter: blur(0px); opacity: 1; transform: scale(1); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }

/* Contact Highlight */
@keyframes highlightEmail {
    0%, 100% { transform: scale(1); color: var(--text-main); }
    50% { transform: scale(1.1); color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
}
.highlight-anim { animation: highlightEmail 0.8s ease-in-out; }

/* =========================================
   3. NAVIGATION
   ========================================= */
header {
    position: fixed; top: 24px; left: 50%; transform: translate(-50%, 0); z-index: 100;
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px; padding: 12px 30px;
    width: max-content; max-width: 90%;
    display: flex; align-items: center; justify-content: space-between; gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0; animation: slideDownNav 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.4s;
}

@keyframes slideDownNav { 
    from { opacity: 0; transform: translate(-50%, -100%); } 
    to { opacity: 1; transform: translate(-50%, 0); } 
}

.nav-logo { font-weight: 700; font-size: 0.95rem; color: #fff; letter-spacing: 0.5px; }
.nav-logo:hover { transform: scale(1.05); }
.nav-logo span { color: var(--text-muted); font-weight: 400; }

.desktop-nav ul { display: flex; align-items: center; gap: 25px; }
.nav-item { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.nav-item:hover { color: #fff; }

/* Menu Mobile & Fullscreen */
.burger-btn { display: none; cursor: pointer; z-index: 102; width: 24px; height: 24px; color: #fff; }

.fullscreen-menu {
    position: fixed; inset: 0; width: 100%; height: 100vh;
    background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px); z-index: 101;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease-in-out;
}
.fullscreen-menu.active { opacity: 1; visibility: visible; }
.fullscreen-menu ul { text-align: center; display: flex; flex-direction: column; gap: 30px; }
.fullscreen-menu a { font-size: 2.5rem; font-weight: 600; color: #ffffff; opacity: 0.9; }
.fullscreen-menu a:hover { opacity: 1; transform: scale(1.05); }

.menu-close-btn {
    position: absolute; top: 30px; right: 30px;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; padding: 10px 20px; border-radius: 100px;
    cursor: pointer; font-size: 0.9rem; transition: 0.3s;
}
.menu-close-btn:hover { background: #fff; color: #000; }

/* =========================================
   4. HOME & HERO
   ========================================= */
.editorial-hero {
    width: 90%; margin: 0 auto;
    padding-top: 140px; padding-bottom: 60px;
    display: flex; flex-direction: column; gap: 50px;
}
.editorial-wrapper { display: flex; gap: 40px; align-items: stretch; }

.col-left { width: 25%; min-width: 280px; display: flex; flex-direction: column; gap: 15px; }
.col-right { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.photo-container { width: 100%; aspect-ratio: 4/5; background: #151515; overflow: hidden; }
.photo-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.editorial-wrapper:hover .photo-img { filter: grayscale(0%); }

.contact-link-arrow {
    font-size: 1.1rem; font-weight: 500;
    border-bottom: 1px solid #fff; padding-bottom: 2px;
    color: #fff; width: fit-content; margin-top: 5px;
    display: inline-flex; align-items: center;
}
.contact-link-arrow:hover { opacity: 0.8; transform: translateX(5px); }

/* Text Layout */
.row-top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 5px; width: 100%; }
.row-bottom { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 10px; width: 100%; }
.row-title { width: 100%; margin: 5px 0; }

.narrow-text { width: 100%; max-width: 200px; }
.narrow-text p { font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); margin: 0; text-align: justify; text-align-last: left; }
.subtitle-box { text-align: right; margin-bottom: -8px; overflow: hidden; }

/* Anim Titre & Sous-titre */
.giant-name-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 0; line-height: 0.8; overflow: hidden; padding-bottom: 10px; }
.giant-name-flex span { 
    font-size: 13.5vw; font-weight: 800; color: var(--accent-red); text-transform: uppercase; 
    display: block; transform: translateY(110%); opacity: 0;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}
.job-subtitle { 
    font-size: 1.1rem; font-style: italic; color: #fff; font-weight: 300; 
    display: block; transform: translateY(120%); opacity: 0;
    transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
}
.footnote { display: block; margin-top: 10px; font-size: 0.75rem; color: #666; font-style: italic; }

/* Déclenchement anim Hero */
body.loaded .giant-name-flex span { transform: translateY(0); opacity: 1; }
body.loaded .job-subtitle { transform: translateY(0); opacity: 1; transition-delay: 1.1s; }
body.loaded .giant-name-flex span:nth-child(1) { transition-delay: 0.6s; }
body.loaded .giant-name-flex span:nth-child(2) { transition-delay: 0.65s; }
body.loaded .giant-name-flex span:nth-child(3) { transition-delay: 0.7s; }
body.loaded .giant-name-flex span:nth-child(4) { transition-delay: 0.75s; }
body.loaded .giant-name-flex span:nth-child(5) { transition-delay: 0.8s; }
body.loaded .giant-name-flex span:nth-child(6) { transition-delay: 0.85s; }
body.loaded .giant-name-flex span:nth-child(7) { transition-delay: 0.9s; }

.skills-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 40px; }
.skill-pill { background: #111; color: var(--text-muted); padding: 10px 25px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; border: 1px solid #222; transition: 0.3s; }
.skill-pill:hover { background: #222; color: #fff; border-color: #444; transform: scale(1.05); }

/* Helpers */
.mobile-only, .mobile-view { display: none; }
.desktop-only, .desktop-view { display: block; }

/* =========================================
   5. SECTION LOGICIELS
   ========================================= */
.software-section { padding: 40px 0 60px 0; text-align: center; margin-top: 40px; }

.software-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px; opacity: 0.6; }
.software-header h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }
.software-header .line { height: 1px; width: 40px; background-color: var(--border-color); }

.software-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; max-width: 600px; margin: 0 auto; }
.software-item { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.soft-icon { width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%) opacity(0.5); transition: all 0.4s ease; }
.software-item:hover { transform: translateY(-5px); }
.software-item:hover .soft-icon { filter: grayscale(0%) opacity(1); drop-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.tooltip {
    position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
    font-size: 0.7rem; color: var(--text-muted); opacity: 0; transition: 0.3s;
    white-space: nowrap; pointer-events: none; background: #111; padding: 3px 6px; border-radius: 4px; border: 1px solid #333;
}
.software-item:hover .tooltip { opacity: 1; bottom: -35px; }

/* =========================================
   6. GRID PROJETS (HOME)
   ========================================= */
#work { padding: 40px 0 100px; }
.section-header { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }

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

.card {
    background-color: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 24px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
    cursor: pointer; display: flex; flex-direction: column; gap: 20px;
}
.card:hover { transform: translateY(-4px); border-color: #444; }

.card-visual { background: #1a1a1a; border-radius: 8px; aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--border-color); }
.card-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.5s ease; }
.card:hover .card-img { opacity: 1; transform: scale(1.05); }

.card-top { display: flex; justify-content: space-between; align-items: center; }
.project-title { font-size: 1.1rem; font-weight: 500; }
.project-year { font-size: 0.85rem; color: var(--text-muted); background: #1a1a1a; padding: 4px 8px; border-radius: 6px; }
.project-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.4; }

/* =========================================
   7. SPLIT SCREEN (Autres Réalisations)
   ========================================= */
.split-screen-wrapper { display: flex; width: 100%; position: relative; }

.left-nav {
    width: 40%; height: 100vh; position: sticky; top: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    padding-right: 60px; background-color: var(--bg-color); z-index: 10;
}

.p-nav-item {
    font-size: clamp(3rem, 5vw, 8rem); font-weight: 900; text-transform: uppercase;
    color: #333; margin: 5px 0; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none; display: block; text-align: right; line-height: 0.95; letter-spacing: -2px;
}
.p-nav-item:hover { color: #666; }
.p-nav-item.active { color: var(--accent-red); transform: translateX(20px); }
.p-nav-num { font-size: 0.3em; font-weight: 400; color: var(--text-muted); vertical-align: top; margin-right: 15px; letter-spacing: 0; transition: color 0.3s ease; }
.p-nav-item.active .p-nav-num { color: var(--accent-red); }

.right-content { width: 60%; }

/* MODIFICATION : Espacement réduit ici */
.project-section { 
    min-height: 80vh; /* Réduit de 100vh pour moins d'espace vide */
    padding: 100px 10% 60px; 
    display: flex; flex-direction: column; justify-content: center; 
}

.project-category { font-size: 14px; color: var(--text-main); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.project-description { font-size: .9rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 40px; }

.gallery { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; }
.gallery img, .gallery video { width: 100%; height: auto; border-radius: var(--radius); background-color: #1a1a1a; object-fit: cover; border: 1px solid var(--border-color); }
.video-placeholder { width: 100%; height: 400px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; color: #555; border-radius: var(--radius); border: 1px solid var(--border-color); text-transform: uppercase; font-weight: bold; }

/* =========================================
   8. FOOTER
   ========================================= */
.footer-spacing { border-top: 1px solid var(--border-color); padding-top: 80px; padding-bottom: 80px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-cta h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }
.email-link { font-size: 1.2rem; border-bottom: 1px solid #444; padding-bottom: 5px; display: inline-block; margin-top: 20px; transition: 0.3s; }
.email-link:hover { color: #fff; border-color: #fff; }

.footer-info { text-align: right; color: #444; display: flex; flex-direction: column; gap: 10px; }
.footer-info p { margin: 0; font-size: 0.95rem; }
.footer-social-link { color: #444; text-decoration: none; transition: color 0.3s ease; border-bottom: 1px solid transparent; }
.footer-social-link:hover { color: #fff; border-bottom: 1px solid #fff; }
.copyright { margin-top: 20px !important; font-size: 0.85rem; opacity: 0.6; }

/* =========================================
   9. MODALES (PROJETS & CV)
   ========================================= */

/* --- STYLE MODALE CV (Refait pour ressembler aux projets) --- */
.cv-modal {
    position: fixed; top: 50%; left: 50%; 
    transform: translate(-50%, -45%) scale(0.95);
    width: 90vw; max-width: 1200px; height: 85vh;
    background-color: #080808; 
    border: 1px solid #333; 
    border-radius: 12px;
    z-index: 2000; 
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8); 
    display: flex; flex-direction: column; overflow: hidden;
}

.cv-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

/* Header de la CV Modal (Style sombre) */
.cv-header { 
    height: 48px; 
    background: #111; 
    border-bottom: 1px solid #222; 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 15px; 
}

.cv-content { flex: 1; width: 100%; height: 100%; }
.cv-iframe { width: 100%; height: 100%; border: none; }

/* Boutons Header CV */
.cv-action-btn {
    padding: 6px 12px; 
    border-radius: 4px; 
    font-size: 0.85rem; 
    font-weight: 500;
    cursor: pointer; 
    transition: 0.2s; 
    background: transparent; 
    color: var(--text-muted); 
    text-decoration: none;
    border: 1px solid transparent;
}
.cv-action-btn:hover { color: #fff; background: #222; }

/* Bouton Fermer CV (Rouge comme les projets) */
.cv-action-btn.close {
    width: 26px; height: 26px; 
    background-color: #ff4444; 
    border: 1px solid #cc0000; 
    border-radius: 50%;
    color: #222; 
    font-size: 14px; font-weight: 800; 
    display: flex; justify-content: center; align-items: center;
    padding: 0; margin-left: 10px;
}
.cv-action-btn.close:hover { background-color: #ff2222; color: #222; }


/* --- STYLE MODALES PROJETS --- */
.project-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%) scale(0.95);
    width: 90vw; max-width: 1200px; height: 85vh;
    background-color: #080808; border: 1px solid #333; border-radius: 12px;
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8); overflow: hidden; 
}
.project-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.project-modal.is-dragging { transition: none; transform: none; }

.modal-header-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 48px;
    background: #111; border-bottom: 1px solid #222; z-index: 10;
    display: flex; justify-content: flex-end; align-items: center; padding: 0 15px; cursor: grab;
}
.modal-header-bar:active { cursor: grabbing; }

.modal-close-red {
    width: 26px; height: 26px; background-color: #ff4444; border: 1px solid #cc0000; border-radius: 50%;
    color: #222; font-size: 14px; font-weight: 800; display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: background-color 0.2s; line-height: 1; padding-bottom: 1px;
}
.modal-close-red:hover { background-color: #ff2222; }

.modal-scrollable-content { width: 100%; height: 100%; overflow-y: auto; padding-top: 48px; }

/* Contenu Interne des Modales */
.project-hero { position: relative; width: 100%; height: 100vh; overflow: hidden; margin-bottom: 60px; }
.hero-video-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: 1; }
.project-hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; background: linear-gradient(to top, var(--bg-color), transparent); z-index: 2; }

.project-details { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; margin-bottom: 80px; padding: 0 20px; }
.project-col h2 { font-size: 1.5rem; margin-bottom: 20px; color: #fff; line-height: 1.3; }
.project-col h3 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 10px; color: #fff; }
.project-col p { color: var(--text-muted); margin-bottom: 15px; line-height: 1.6; }

.tags-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag { background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 100px; font-size: 0.85rem; color: var(--text-main); }

/* Gear & Tools */
.gear-section { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; margin-bottom: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.gear-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 15px; }
.gear-content p { color: var(--text-muted); line-height: 1.6; }
.gear-visuals { display: flex; justify-content: center; align-items: center; gap: 20px; position: relative; height: 300px; }
.gear-img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); transition: transform 0.3s ease; }
.gear-img:hover { transform: scale(1.05); }

/* Carrousel Vidéo */
#videos { padding: 50px 0 150px; position: relative; width: 100%; overflow: hidden; }
.carousel-view { width: 100%; height: 600px; display: flex; align-items: center; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.video-item { min-width: 300px; height: 533px; margin: 0 15px; border-radius: 16px; background: #000; overflow: hidden; opacity: 0.6; transform: scale(0.9); transition: all 0.5s ease; position: relative; pointer-events: auto; cursor: pointer; }
.video-item.active { opacity: 1; transform: scale(1.05); z-index: 10; cursor: default; }
.video-item video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.nav-btn { background: #1a1a1a; border: 1px solid var(--border-color); color: white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; font-size: 1.2rem; flex-shrink: 0; }
.nav-btn:hover { background: #333; border-color: #fff; }

/* Video Youtube Stack */
.video-stack { display: flex; flex-direction: column; gap: 80px; margin-bottom: 100px; }
.video-block { width: 100%; }
.video-wrapper { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); margin-bottom: 20px; }
.video-wrapper iframe, .video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.video-caption h3 { font-size: 1.4rem; color: #fff; margin-bottom: 5px; }
.video-caption p { color: var(--text-muted); }

/* Brand Board (Arito) */
.branding-section, .visuals-section, .critique-section, .mascots-section { margin-bottom: 100px; margin-top: 60px; border-top: 1px solid var(--border-color); padding-top: 60px; }
.branding-intro, .section-intro-center, .critique-content { max-width: 800px; margin-bottom: 50px; }
.branding-intro h3, .section-intro-center h3, .critique-content h3 { font-size: 1.5rem; color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.section-intro-center { text-align: center; margin: 0 auto 40px auto; }

.brand-board { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brand-card { background: #1a1a1a; border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; display: flex; flex-direction: column; }
.brand-card h4 { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; border-bottom: 1px solid #333; padding-bottom: 10px; }

.logo-card { grid-column: 1 / -1; align-items: center; justify-content: center; background: #111; }
.logo-display img { max-width: 300px; width: 100%; }

.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.swatch-container { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.swatch { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
.swatch:hover { transform: scale(1.1); }
.hex, .color-name { font-size: 0.85rem; color: #fff; font-family: monospace; }
.color-name { font-family: var(--font-main); margin-top: 10px; }

.typo-preview { color: #fff; }
.typo-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.big-aa { font-size: 4rem; font-weight: 700; line-height: 1; }
.font-name { font-size: 1.5rem; font-weight: 300; }
.typo-alphabet { margin-top: 20px; font-size: 0.9rem; letter-spacing: 2px; color: var(--text-muted); line-height: 1.8; word-break: break-all; }

/* Sticky Wrappers */
.sticky-wrapper { display: flex; align-items: flex-start; width: 100%; margin-bottom: 120px; padding-top: 60px; border-top: 1px solid var(--border-color); }
.sticky-content { width: 40%; position: sticky; top: 120px; padding-left: 5vw; padding-right: 40px; }
.sticky-content h3 { font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.sticky-content p { color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; text-align: justify; font-size: 14px; width: 300px; }
.sticky-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.sticky-visuals { width: 60%; background-color: #1a1a1a; padding: 60px; border-radius: 2px; margin: 20px; }
.sticky-wrapper.reverse { flex-direction: row; }
.sticky-wrapper.reverse .sticky-content { padding-left: 5vw; padding-right: 40px; }
.mockup-img { width: 100%; height: auto; display: block; }
.mockuptel { background-color: unset; }

/* Mascottes & Print */
.mascots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.mascot-item { width: 100%; height: auto; border-radius: var(--radius); transition: transform 0.3s ease; }
.mascot-item:hover { transform: scale(1.03) rotate(1deg); }

.posters-section { margin-top: 100px; margin-bottom: 80px; display: flex; flex-direction: column; gap: 100px; }
.poster-block { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.poster-text { text-align: center; max-width: 600px; }
.poster-text h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.poster-text p { color: var(--text-muted); }
.a4-container { width: 100%; max-width: 500px; margin: 0 auto; }
.bus-container { width: 100%; }
.poster-img-a4, .poster-img-bus { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.poster-img-bus { border: 1px solid var(--border-color); }

/* Visuels Grid (Arito) */
.visuals-header-centered { text-align: center; margin-bottom: 40px; }
.visuals-header-centered h3 { font-size: 1.8rem; color: #fff; }
.visuals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.visual-item { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border-color); aspect-ratio: 1 / 1; transition: transform 0.3s ease, border-color 0.3s ease; }
.visual-item:hover { transform: scale(1.02); border-color: #555; }
.motion-section { margin-top: 40px; margin-bottom: 100px; border-color: unset; }
.motion-section .video-wrapper { border: none !important; background: transparent !important; }
.motion-caption { margin-top: 20px; text-align: center; }
.motion-caption h3 { font-size: 1.2rem; color: #fff; margin-bottom: 5px; text-transform: uppercase; }
.motion-caption p { color: var(--text-muted); }

/* Correction Titre Split Screen */
.work-header-sticky {
    text-align: right;
    margin-bottom: 40px; /* Ajoute de l'espace avant la liste */
    padding-right: 5px;  /* Léger alignement avec la liste */
}

/* =========================================
   10. RESPONSIVE (Unified Media Queries)
   ========================================= */

/* --- TABLETTES & PETITS LAPTOPS (Max 1024px) --- */
@media (max-width: 1024px) {
    /* Editorial */
    .editorial-wrapper { flex-direction: column; gap: 30px; }
    .col-left { width: 100%; max-width: 400px; margin: 0 auto; }
    .row-top, .row-bottom { display: contents; }
    .row-title { order: 1; margin-bottom: 10px; }
    .subtitle-box { order: 2; text-align: left; align-self: flex-start; }
    .text-block-1 { order: 3; max-width: 100%; }
    .text-block-2 { order: 4; max-width: 100%; }
    .text-block-3 { order: 5; max-width: 100%; }
    .giant-name-flex span { font-size: 20vw; }
    .mobile-only { display: block; order: 6; margin-top: 20px; align-self: flex-start; }
    .desktop-only { display: none; }
    
    /* Layout */
    .grid { grid-template-columns: 1fr !important; gap: 50px !important; }
    .card { padding: 20px !important; }

    /* Projets Detail */
    .project-details { display: flex !important; flex-direction: column !important; gap: 40px !important; padding: 0 20px; }
    .project-col { width: 100% !important; }
    .gear-section { grid-template-columns: 1fr; text-align: center; height: auto; gap: 30px; }
    .carousel-view { height: 400px; }
    .video-item { min-width: 220px; height: 350px; }
    
    /* CORRECTION : Sticky desactivé sur Mobile/Tablette */
    .sticky-wrapper, .sticky-wrapper.reverse { 
        display: flex;
        flex-direction: column; 
        padding-top: 40px; 
    }
    .sticky-content, .sticky-wrapper.reverse .sticky-content { 
        width: 100%; 
        position: static !important; /* Force le mode normal (pas de sticky) */
        top: auto; 
        padding: 0 20px; 
        margin-bottom: 40px; 
    }
    .sticky-visuals { width: 100%; margin: 0; padding: 20px; }
    .mobile-mockup-fit { max-width: 100%; }

    /* Split Screen */
    .split-screen-wrapper { flex-direction: column; }
    .left-nav { display: none; }
    .right-content { width: 100%; }
    
    /* MODIFICATION : Marges réduites sur tablette */
    .project-section { padding: 60px 20px; min-height: auto; margin-bottom: 40px; }
    
    /* Arito Grid */
    .visuals-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- MOBILES (Max 768px) --- */
@media (max-width: 768px) {
    /* Header & Nav */
    header { justify-content: space-between; width: 90%; padding: 12px 24px; }
    .desktop-nav { display: none; }
    .burger-btn { display: block; }
    
    /* Marges & Padding forcés */
    .container { padding-left: 25px !important; padding-right: 25px !important; }
    .card { margin: 0 auto; width: 100%; }
    .footer-spacing { margin-top: 80px; padding-bottom: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 60px; }

    /* Views */
    .mobile-view { display: block; width: 100%; height: 100%; object-fit: cover; }
    .desktop-view { display: none; }

    /* Section Logiciels */
    .software-grid { padding: 0 10px; gap: 20px; }
    .software-item { width: 35px; height: 35px; }

    /* Volets Projets (Modale Flottante) */
    .project-modal, .cv-modal {
        width: 90% !important;
        height: 80vh !important;
        top: 50% !important; left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 16px !important;
        border: 1px solid #333 !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.9);
        overflow: hidden;
    }
    .modal-header-bar, .cv-header { border-radius: 16px 16px 0 0; cursor: default; }
    
    /* Image Cover Modale Mobile */
    .project-hero { height: 250px !important; min-height: auto !important; aspect-ratio: unset !important; }
    .hero-video-bg { height: 100% !important; object-fit: cover !important; }

    /* Grilles Internes */
    .brand-board, .mascots-grid { grid-template-columns: 1fr; }
    .visuals-grid { grid-template-columns: repeat(2, 1fr); }

    /* Passe la grille 2x2 en 1 seule colonne sur mobile */
    .brand-board {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
    
    /* Ajuste la hauteur de la grande image sur mobile */
    .visual-item[style*="grid-column: 1 / -1"] {
        height: 200px !important;
    }

    /* MODIFICATION : Marges drastiquement réduites sur mobile entre les projets */
    .project-section {
        padding: 40px 20px !important;
        margin-bottom: 40px !important;
        min-height: auto !important;
        border-bottom: 1px solid #222; /* Petit séparateur visuel */
    }
}

#poster img{
    width: 50%;
}