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

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

html { scroll-behavior: smooth; }

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; }

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

/* =========================================
   2. ANIMATIONS & LOADER
   ========================================= */
/* Loader */
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); }
}

/* Animations Scroll & Highlight */
.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; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@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 & MENU
   ========================================= */
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; transition: transform 0.3s; }
.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; transition: color 0.3s ease; }
.nav-item:hover { color: #fff; }

/* Menu Burger & Fullscreen */
.burger-btn { display: none; cursor: pointer; z-index: 102; width: 24px; height: 24px; }
.burger-icon { stroke: var(--text-muted); stroke-width: 2; transition: 0.3s; }

.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; transition: 0.3s; 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: EDITORIAL 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; text-decoration: none;
    border-bottom: 1px solid #fff; padding-bottom: 2px;
    color: #fff; width: fit-content; margin-top: 5px; transition: 0.3s;
    display: inline-flex; align-items: center;
}
.contact-link-arrow:hover { opacity: 0.8; transform: translateX(5px); }

.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; text-justify: inter-word; }
.subtitle-box { text-align: right; margin-bottom: -8px; }
.job-subtitle { font-size: 1.1rem; font-style: italic; color: #fff; font-weight: 300; }

.giant-name-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 0; line-height: 0.8; }
.giant-name-flex span { font-size: 13.5vw; font-weight: 800; color: #be1515; text-transform: uppercase; display: block; transform: translateY(2px); }
.footnote { display: block; margin-top: 10px; font-size: 0.75rem; color: #666; font-style: italic; }

.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 affichage */
.mobile-only { display: none; }
.desktop-only { display: inline-block; }
.mobile-view { display: none; }
.desktop-view { display: block; }

/* =========================================
   5. GRID, CARDS & UTILITIES
   ========================================= */
#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; }

/* Tags & Buttons */
.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); }

.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; }

/* =========================================
   6. PAGE PROJETS (Détails)
   ========================================= */
.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; }

/* Section Gear */
.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 Video */
#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; border: none; 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; }

/* Video Stack (Youtube) */
.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); }

/* =========================================
   7. STICKY WRAPPER & MOCKUPS
   ========================================= */
.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;
}
.mockup-img { width: 100%; height: auto; display: block; box-shadow: none; }
.mockuptel { background-color: unset; }

/* Reverse Logic */
.sticky-wrapper.reverse { flex-direction: row; }
.sticky-wrapper.reverse .sticky-content { padding-left: 5vw; padding-right: 40px; }

/* =========================================
   8. FOOTER & MODALS
   ========================================= */
.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; }

/* Navigation Bas de page */
.project-navigation {
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 0; margin-top: 60px; border-top: 1px solid var(--border-color);
}
.nav-project-link {
    font-size: 1rem; font-weight: 500; color: var(--text-muted);
    transition: 0.3s; display: flex; align-items: center; gap: 10px;
}
.nav-project-link:hover { color: #fff; }
.nav-project-link.next { text-align: right; flex-direction: row-reverse; }

/* FIX: Footer Spacing si Navigation présente */
.project-navigation + .footer-spacing { margin-top: 0 !important; border-top: none !important; padding-top: 40px; }

/* CV Modal */
.cv-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 9999;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.cv-modal.active { opacity: 1; visibility: visible; }
.cv-header { height: 60px; display: flex; justify-content: flex-end; align-items: center; padding: 0 30px; gap: 20px; background: #111; border-bottom: 1px solid #333; }
.cv-content { flex: 1; width: 100%; height: 100%; }
.cv-iframe { width: 100%; height: 100%; border: none; }

.cv-action-btn {
    padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: 0.2s; border: 1px solid var(--border-color);
    background: transparent; color: #fff; text-decoration: none;
}
.cv-action-btn:hover { background: #fff; color: #000; }
.cv-action-btn.close { background: #333; border-color: #333; }
.cv-action-btn.close:hover { background: #ff4444; color: #fff; border-color: #ff4444; }

/* =========================================
   9. RESPONSIVE UNIFIÉ
   ========================================= */

/* --- TABLETTES & PETITS ÉCRANS (Max 1024px) --- */
@media (max-width: 1024px) {
    /* Home */
    .editorial-wrapper { flex-direction: column; gap: 30px; }
    .col-left { width: 100%; max-width: 400px; margin: 0 auto; }
    .col-right { display: flex; flex-direction: column; gap: 20px; }
    .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; }
    
    .footer-spacing { margin-top: 80px; padding-bottom: 40px; }

    /* Pages Projets */
    .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; }
    .gear-visuals { justify-content: center; width: 100%; height: auto; margin-top: 10px; }
    .gear-img { max-width: 80%; margin: 0 auto; }
    
    .carousel-view { height: 400px; }
    .video-item { min-width: 220px; height: 350px; }

    /* Sticky & Mockups */
    .sticky-wrapper, .sticky-wrapper.reverse { flex-direction: column; padding-top: 40px; }
    .sticky-content, .sticky-wrapper.reverse .sticky-content { width: 100%; position: relative; top: 0; padding: 0 20px; margin-bottom: 40px; }
    .sticky-visuals { width: 100%; margin: 0; padding: 20px; }
    .mobile-mockup-fit { max-width: 100%; }
    
    /* Layout général */
    .grid { grid-template-columns: 1fr !important; gap: 50px !important; }
    .card { padding: 20px !important; }
}

/* --- 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; }
    
    /* Global */
    .hero h1 { font-size: 2.5rem; }
    .grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 60px; }
    .mobile-view { display: block; width: 100%; height: 100%; object-fit: cover; }
    .desktop-view { display: none; }
    
    /* Pages Projets */
 /* Pages Projets (MODIFIÉ pour agrandir l'image) */
    .project-hero { 
        height: 50vh !important;       /* Prend 60% de la hauteur de l'écran */
        min-height: 200px !important;  /* Minimum 500px pour ne pas être trop petit */
        aspect-ratio: unset !important; /* On retire le format 16/9 forcé */
    }

       /* On s'assure que l'image remplit bien tout le cadre */
    .hero-video-bg {
        height: 100% !important;
        object-fit: cover !important;
    }
    .project-details { padding: 0; }
    .project-navigation { flex-direction: column; gap: 20px; }
}


    
 /* =========================================
   12. SECTION CHARTE GRAPHIQUE (ARITO)
   ========================================= */

.branding-section {
    margin-bottom: 100px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.branding-intro {
    margin-bottom: 50px;
    max-width: 800px;
}
.branding-intro h3 { font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.branding-intro p { color: var(--text-muted); line-height: 1.6; }

/* Grille du Brand Board */
.brand-board {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes par défaut */
    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;
}

/* CARTE 1 : LOGO (Prend toute la largeur en haut) */
.logo-card {
    grid-column: 1 / -1; /* S'étend sur les 2 colonnes */
    align-items: center;
    justify-content: center;
    background: #111; /* Un peu plus sombre pour faire ressortir le logo */
}
.logo-display img {
    max-width: 300px; /* Taille max du logo */
    width: 100%;
    height: auto;
}

/* CARTE 2 : COULEURS */
.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%; /* Cercles parfaits */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.swatch:hover { transform: scale(1.1); }
.hex {
    font-family: monospace;
    color: #fff;
    font-size: 0.85rem;
}

/* CARTE 3 : TYPO */
.typo-preview {
    font-family: 'Poppins', sans-serif; /* Important: il faut que Poppins soit chargé */
    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-details p { font-size: 0.9rem; margin-bottom: 5px; color: #ccc; }
.typo-alphabet {
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    line-height: 1.8;
    word-break: break-all;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .brand-board {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .logo-card {
        grid-column: auto; /* Revient à une taille normale */
    }
}

/* =========================================
   13. SECTION ARITO (VISUELS & MOTION)
   ========================================= */

/* --- Noms des couleurs --- */
.color-name {
    font-size: 0.9rem; font-weight: 500; color: #fff;
    margin-top: 10px; margin-bottom: 2px; text-align: center;
}

/* --- SECTION VISUELS --- */
.visuals-section {
    margin-bottom: 60px; /* Réduit pour rapprocher la vidéo */
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

/* Titre centré */
.visuals-header-centered {
    text-align: center;
    margin-bottom: 40px;
}
.visuals-header-centered h3 {
    font-size: 1.8rem;
    color: #fff;
}

/* Grille */
.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);
    /* CORRECTION : Ratio 1/1 pour images carrées 1000x1000 */
    aspect-ratio: 1 / 1; 
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.visual-item:hover { transform: scale(1.02); border-color: #555; }

/* Texte descriptif en bas */
.visuals-description-bottom {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.visuals-description-bottom p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- SECTION MOTION DESIGN --- */
.motion-section {
    margin-top: 40px; /* Peu d'espace avec la section précédente */
    margin-bottom: 100px;
    border-color: unset;
}

.full-width video {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.motion-caption {
    margin-top: 20px;
}
.motion-caption h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.motion-caption p {
    color: var(--text-muted);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .visuals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .visuals-grid { grid-template-columns: repeat(2, 1fr); }
}



/* --- Correctif pour enlever la bordure de la vidéo Motion --- */
.motion-section .video-wrapper {
    border: none !important;
    background: transparent !important;
}


/* =========================================
   14. SECTION CRITIQUE & FOOTER UPDATE
   ========================================= */

/* Section Analyse Critique */
.critique-section {
    margin-bottom: 80px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.critique-content {
    max-width: 800px;
    margin: 0 auto; /* Centré comme les autres intros */
}

.critique-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.critique-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mise à jour du Footer (Colonne Droite) */
.footer-info {
    text-align: right;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espace entre les lignes */
}

.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; /* Espace avant le copyright */
    font-size: 0.85rem;
    opacity: 0.6;
}



/* =========================================
   15. SECTION CARAMBAR (Mascottes & Print)
   ========================================= */

/* Intro centrée pour les sections */
.section-intro-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}
.section-intro-center h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}
.section-intro-center p {
    color: var(--text-muted);
}

/* --- Mascottes (Grille 2x2) --- */
.mascots-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.mascots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.mascot-item {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
    /* Optionnel : si tes images n'ont pas de fond, on peut en ajouter un ici */
    /* background-color: #1a1a1a; */ 
}

.mascot-item:hover {
    transform: scale(1.03) rotate(1deg); /* Petit effet ludique pour Carambar */
}

/* --- Affiches (Print) --- */
.posters-section {
    margin-top: 100px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 100px; /* Espace entre les deux types d'affiches */
}

.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); }

/* Conteneur A4 */
.a4-container {
    width: 100%;
    max-width: 500px; /* Largeur max pour pas que l'A4 soit géant sur desktop */
    margin: 0 auto;
}
.poster-img-a4 {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Ombre pour détacher du fond */
}

/* Conteneur Bus (Large) */
.wide-block {
    width: 100%;
}
.bus-container {
    width: 100%;
    /* On laisse l'image prendre toute la largeur dispo */
}
.poster-img-bus {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mascots-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        gap: 20px;
    }
    
    .poster-block {
        gap: 20px;
    }
}


/* =========================================
   16. SECTION LOGICIELS (HOME)
   ========================================= */

.software-section {
    padding: 40px 0 60px 0; /* Marges réduites */
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.software-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px; /* Moins d'espace sous le titre */
    opacity: 0.6;
}

.software-header h3 {
    font-size: 0.85rem; /* Titre un peu plus petit */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.software-header .line {
    height: 1px;
    width: 40px;
    background-color: var(--border-color);
}

/* Grille flexible */
.software-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px; /* Espacement réduit entre les icônes */
    max-width: 600px; /* Conteneur plus compact */
    margin: 0 auto;
}

/* Le conteneur de l'icône */
.software-item {
    position: relative;
    width: 40px;  /* TAILLE RÉDUITE (était 60px) */
    height: 40px; /* TAILLE RÉDUITE */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

/* L'image de l'icône */
.soft-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    
    /* Icône en gris par défaut */
    filter: grayscale(100%) opacity(0.5); 
    transition: all 0.4s ease;
}

/* --- ANIMATION AU SURVOL --- */
.software-item:hover {
    transform: translateY(-5px);
}

.software-item:hover .soft-icon {
    /* Révèle la couleur originale */
    filter: grayscale(0%) opacity(1);
    drop-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Tooltip (Nom du logiciel) */
.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;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .software-grid {
        gap: 20px;
    }
    .software-item {
        width: 35px; /* Encore plus petit sur mobile */
        height: 35px;
    }
}