/* =========================================
   1. BASE, RESET & SCROLLBAR
   ========================================= */
/* Animation d'entrée de page douce (FADE IN) */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #111 #fff;
}

*, *:before, *:after { box-sizing: inherit; }

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb {
    background-color: #111;
    border-radius: 4px;
    border: 2px solid #fff;
}

::selection { background: #111111; color: #ffffff; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #111111;
    margin: 0; padding: 0;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Active l'animation d'ouverture de page */
    animation: pageFadeIn 0.8s ease-out forwards;
}

.slide, .scroll-indicator, .btn-contact, .btn-submit, .back-link a, .burger-menu {
    cursor: pointer;
}

/* TEXTURE GRAIN "PAPIER" */
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='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* VIGNETTAGE CINÉMA */
body::after {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.08) 100%);
    pointer-events: none; z-index: 9998;
}

/* =========================================
   2. TYPOGRAPHIE "SUISSE"
   ========================================= */
h1, h2, h3 {
    margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -1px;
    text-wrap: balance;
}

/* TITRES H2 AVEC SOULIGNEMENT "REVEAL" */
section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 60px; letter-spacing: -2px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 1px;
    background-color: #111;
    transition: width 1.5s cubic-bezier(0.2, 1, 0.2, 1);
}

/* L'effet se déclenche au survol de la section */
section:hover h2::after {
    width: 100%;
}

p { font-size: 1rem; color: #333; line-height: 1.6; text-wrap: balance; }

/* TEXTE OUTLINE AVEC REMPLISSAGE AU SURVOL */
.outline-text { 
    color: transparent; 
    -webkit-text-stroke: 1px #111; 
    font-weight: 800; 
    transition: all 0.6s ease;
}
.identite-section .outline-text { -webkit-text-stroke: 1px #fff; }

/* Remplissage automatique au survol de la section identité */
.identite-section:hover .outline-text {
    color: #fff;
    -webkit-text-stroke: 1px transparent;
}

p a { position: relative; text-decoration: none; color: #111; font-weight: 700; padding-bottom: 2px; }
p a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: #111; transition: width 0.3s ease-in-out;
}
p a:hover::after { width: 100%; }

/* =========================================
   3. ANIMATIONS GLOBALES
   ========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomOut { from { transform: scale(1.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* EFFET TEXT REVEAL SUR H1 */
@keyframes titleSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero, .slider-section, .identite-section, .contact-container, .project-hero, .project-content {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.2, 1) forwards; opacity: 0;
}
.slider-section { animation-delay: 0.2s; }
.identite-section { animation-delay: 0.4s; }
.contact-container { animation-delay: 0.6s; }

.project-hero h1 {
    animation: titleSlideUp 1.2s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 40px; 
    position: sticky; top: 0; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo a {
    text-decoration: none; color: #111; display: flex; align-items: center; gap: 15px;
    font-weight: 800; font-size: 1.2rem; letter-spacing: 1px;
}
.logo img { height: 40px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }

.menu-items { display: flex; align-items: center; gap: 30px; }
.menu-items a {
    text-decoration: none; color: #111; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding-bottom: 4px;
}

/* SOULIGNEMENT SUISSE */
.menu-items a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 50%; background-color: #111;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
    transform: translateX(-50%);
}
.menu-items a:hover::after { width: 100%; }

.burger-menu {
    display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001;
}
.burger-menu div {
    width: 25px; height: 2px; background-color: #111; transition: 0.3s;
}

.dropdown { position: relative; display: inline-block; }
.dropbtn { padding: 10px 0; cursor: pointer; }
.dropdown-content {
    display: none; position: absolute; background-color: #ffffff;
    min-width: 200px; box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    z-index: 100; top: 100%; left: -20px; border-radius: 8px; padding: 10px 0;
    border: 1px solid #eee;
}
.dropdown-content a::after { display: none; }
.dropdown-content a {
    color: #111; padding: 12px 20px; display: block;
    text-transform: none; font-weight: 500; border-bottom: 1px solid #f9f9f9;
}
.dropdown-content a:hover { background-color: #f5f5f5; color: #000; }
.dropdown:hover .dropdown-content { display: block; }

/* BOUTONS AVEC ISOLATION (Correction Expert) */
.btn-contact, .btn-submit, .back-link a {
    background-color: #111; color: #fff !important; border: 1px solid #111;
    padding: 12px 28px; border-radius: 6px; text-decoration: none !important;
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
    display: inline-block; cursor: pointer;
    position: relative; overflow: hidden; z-index: 1; transition: color 0.4s ease;
    /* Empêche le background de passer derrière le conteneur parent */
    isolation: isolate; 
}
.btn-contact::before, .btn-submit::before, .back-link a::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 0; height: 100%; background-color: #fff;
    z-index: -1; transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-contact:hover, .btn-submit:hover, .back-link a:hover {
    color: #000 !important; border-color: #111;
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.btn-contact:hover::before, .btn-submit:hover::before, .back-link a:hover::before { width: 100%; }

/* =========================================
   5. HERO & ÉLÉMENTS D'ACCUEIL
   ========================================= */
.hero {
    padding: 80px 40px; min-height: 50vh; display: flex; flex-direction: column; justify-content: center;
    position: relative;
}
.hero h1 { font-size: clamp(3.5rem, 9vw, 8rem); line-height: 0.9; letter-spacing: -3px; }
.hero p { font-size: 1.3rem; margin-top: 30px; max-width: 600px; font-weight: 300; color: #555; }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); animation: bounce 2s infinite;
    z-index: 10; cursor: pointer;
}
.scroll-indicator span { font-size: 2rem; font-weight: 300; color: #111; }

.marquee-container {
    background-color: #111; color: #fff; padding: 15px 0;
    overflow: hidden; white-space: nowrap; position: relative;
    border-top: 1px solid #111; border-bottom: 1px solid #111;
}
.marquee-content {
    display: inline-block; animation: scrollText 30s linear infinite;
    font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
}

/* =========================================
   6. SLIDER PROJETS (EFFET PARALLAXE AJOUTÉ)
   ========================================= */
.slider-section { padding: 80px 0 120px 40px; }
.slider-container {
    display: flex; gap: 30px; overflow-x: auto;
    padding-bottom: 40px; padding-right: 40px; scrollbar-width: none;
}
.slider-container::-webkit-scrollbar { display: none; }

.slide {
    width: 300px; min-width: 300px; height: 420px;
    background-color: #fff; border: 1px solid #eee; border-radius: 12px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 25px; position: relative;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.slider-container:has(.slide:hover) .slide {
    opacity: 0.4; filter: blur(4px); transform: scale(0.96);
}
.slide:hover {
    opacity: 1 !important; filter: blur(0px) !important;
    transform: translateY(-15px) scale(1) !important;
    z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}

/* Wrapper avec overflow hidden pour l'effet parallaxe */
.img-wrapper {
    position: relative; margin-top: auto; width: 100%; height: 220px;
    overflow: hidden; border-radius: 8px; background-color: #f9f9f9;
}

/* L'image est légèrement zoomée par défaut */
.project-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1), filter 0.5s ease;
    transform: scale(1.1);
    filter: grayscale(100%) contrast(1.1);
}

/* Au survol, l'image "glisse" (Effet Parallaxe Inversé) */
.slide:hover .project-img { 
    transform: scale(1) translateY(10px); 
    filter: grayscale(0%) contrast(1); 
}

.hover-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #000; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    opacity: 0; transition: 0.3s; pointer-events: none; z-index: 20; width: 100%; text-align: center;
}
.slide:hover .hover-text { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.global-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; cursor: pointer; }

/* =========================================
   7. IDENTITÉ & FORMULAIRES
   ========================================= */

/* --- PARTIE IDENTITÉ (NOIRE) --- */
.identite-section { 
    padding: 100px 40px; background-color: #050505; color: #fff; 
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.identite-container { display: flex; flex-wrap: wrap; gap: 80px; max-width: 1200px; margin: 0 auto; }
.identite-text, .identite-visual { flex: 1; min-width: 300px; }
.identite-text p { color: #ccc; }

.color-palette { display: flex; gap: 20px; margin-bottom: 40px; }
.color-swatch {
    width: 100px; height: 100px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2); font-size: 0.75rem;
}
.color-swatch.white { background: #fff; color: #000; }
.color-swatch.black { background: #000; color: #fff; border: 1px solid #333; }
.color-swatch.grey { background: #ccc; color: #000; }
.big-a { font-size: 6rem; font-weight: 800; line-height: 1; letter-spacing: -4px; }


/* --- PARTIE CONTACT (BLANCHE) --- */
.contact-section { padding: 100px 40px; background-color: #fff; }
.contact-container { display: flex; flex-wrap: wrap; gap: 80px; max-width: 1200px; margin: 0 auto; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }


/* --- NOUVEAU DESIGN DU FORMULAIRE (GRID) --- */

/* La grille principale du formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    column-gap: 40px; /* Espace horizontal entre Nom et Email */
    row-gap: 40px;    /* Espace vertical entre les lignes */
}

/* Positionnement des éléments dans la grille */
.area-name { grid-column: 1 / 2; }       /* Colonne de gauche */
.area-email { grid-column: 2 / 3; }      /* Colonne de droite */
.area-subject, 
.area-message, 
.area-button { grid-column: 1 / -1; }    /* Toute la largeur */

/* Style des champs (Labels et Inputs) */
.form-group {
    display: flex;
    flex-direction: column;
    margin: 0; /* On laisse le row-gap gérer l'espacement */
}

.form-group label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

input, textarea, .minimal-select {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: inherit;
    font-size: 1.1rem;
    color: #111;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

/* Focus : le trait devient noir */
input:focus, textarea:focus, .minimal-select:focus {
    outline: none;
    border-bottom: 1px solid #000;
}

/* Style du bouton "ENVOYER LA DEMANDE" (Bloc Noir) */
.btn-submit {
    width: 100%;
    background-color: #050505 !important;
    color: #fff !important;
    border: 1px solid #050505;
    padding: 25px 0; /* Hauteur importante comme sur la maquette */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.4s ease;
    isolation: isolate; /* Empêche les bugs d'affichage z-index */
}

.btn-submit:hover {
    background-color: #fff !important;
    color: #000 !important;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        column-gap: 0;
    }
    
    /* Sur mobile, tout prend toute la largeur */
    .area-name, .area-email {
        grid-column: 1 / -1;
    }
}
/* =========================================
   8. PAGES PROJETS, PROCESSUS & ÉQUIPE
   ========================================= */
.project-hero { text-align: center; padding: 60px 40px 40px 40px; }
.project-hero h1 { font-size: 5rem; letter-spacing: -3px; margin: 10px 0; }
.subtitle { color: #888; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; }
.project-content { max-width: 900px; margin: 0 auto; padding-bottom: 100px; }

.full-width-img { margin-bottom: 60px; text-align: center; }
.full-width-img img {
    max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.project-description { display: flex; gap: 60px; margin-bottom: 60px; }
.desc-col { flex: 1; }
.desc-col h3 { font-size: 1.5rem; letter-spacing: -1px; border-bottom: 2px solid #111; padding-bottom: 15px; margin-bottom: 20px; display: inline-block; }

/* GALERIE NOMADE */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 60px; }
.gallery-item {
    height: 300px; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    font-weight: 700; transition: 0.4s cubic-bezier(0.2, 1, 0.2, 1); text-decoration: none;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
}
.gallery-item:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }

.placeholder-grey { background-color: #eeeeee !important; color: #111 !important; background-image: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(0,0,0,0.02) 15px, rgba(0,0,0,0.02) 30px); }
.placeholder-black { background-color: #111 !important; color: #fff !important; background-image: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,255,255,0.05) 15px, rgba(255,255,255,0.05) 30px); }

/* STYLE PROCESSUS */
.process-container { max-width: 800px; margin: 60px auto 0; display: flex; flex-direction: column; gap: 80px; }
.process-step { display: flex; align-items: flex-start; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #eee; }
.process-step:last-child { border-bottom: none; }
.step-number { font-size: 5rem; line-height: 0.8; flex-shrink: 0; }
.step-content h3 { font-size: 1.8rem; margin-bottom: 15px; letter-spacing: -1px; }

/* STYLE ÉQUIPE */
.team-grid { display: flex; flex-direction: column; gap: 100px; margin-top: 60px; }
.team-member { display: flex; align-items: center; gap: 80px; }
.team-member:nth-child(even) { flex-direction: row-reverse; text-align: right; }

.member-photo-wrapper {
    flex: 1; min-width: 300px; max-width: 350px; aspect-ratio: 1/1;
    position: relative; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 1px solid #eee;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
}

.member-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center center;
    filter: grayscale(100%); transition: all 0.5s ease;
}

.team-member:hover .member-img { filter: grayscale(0%); transform: scale(1.1); }
.member-img.zoom-fix { transform: scale(1.25); }
.team-member:hover .member-img.zoom-fix { transform: scale(1.35); filter: grayscale(0%); }

.member-info { flex: 1; }
.member-info h2 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1; }
.member-info .role { 
    color: #888; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; 
    border-bottom: 1px solid #eee; padding-bottom: 10px; display: inline-block; margin-bottom: 25px; 
}
.team-member:nth-child(even) .description { margin-left: auto; }

/* =========================================
   9. MEGA FOOTER & CONFORMITÉ
   ========================================= */
footer {
    padding: 120px 40px 60px; background-color: #000;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}

footer h2 {
    font-size: clamp(4rem, 12vw, 10rem); line-height: 0.8;
    margin-bottom: 60px; color: #ffffff !important; letter-spacing: -5px; font-weight: 800;
}

.footer-email {
    color: #ffffff !important; text-decoration: none; font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4); padding: 20px 50px;
    border-radius: 60px; transition: 0.3s; margin-bottom: 100px;
    text-transform: uppercase; letter-spacing: 2px;
}

.footer-email:hover { background-color: #ffffff; color: #000 !important; transform: scale(1.05); }

.footer-bottom {
    width: 100%; max-width: 1200px; border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px; display: flex; flex-direction: column; gap: 10px;
    opacity: 0.4; transition: 0.3s;
}

.footer-bottom:hover { opacity: 1; }
.footer-bottom p, .footer-bottom a, .footer-bottom span {
    color: #ffffff !important; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
}

/* =========================================
   10. UTILITAIRES
   ========================================= */
section { scroll-margin-top: 120px; }

/* =========================================
   11. MOBILE & RESPONSIVE (OPTIMISATION EXPERTE)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Navigation & Burger Menu */
    nav { padding: 15px 20px; }
    .logo img { height: 35px; }

    .burger-menu { display: flex; flex-direction: column; gap: 6px; }
    
    /* État de base des barres du burger */
    .burger-menu div {
        width: 25px;
        height: 2px;
        background-color: #111;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Animation du burger en X (Activé via JS) */
    .burger-menu.open div:nth-child(1) { 
        transform: rotate(45deg) translate(5px, 6px); 
    }
    .burger-menu.open div:nth-child(2) { 
        opacity: 0; 
        transform: translateX(-10px);
    }
    .burger-menu.open div:nth-child(3) { 
        transform: rotate(-45deg) translate(5px, -6px); 
    }

    /* Menu mobile plein écran */
    .menu-items { 
        display: none; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh;
        background: rgba(255, 255, 255, 0.98); 
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        z-index: 999; 
        gap: 30px;
    }
    .menu-items.active { display: flex; }
    .menu-items a { font-size: 1.5rem; }

    /* 2. Typographies Hero */
    .hero h1, .project-hero h1 { 
        font-size: 3.2rem; 
        letter-spacing: -2px; 
        line-height: 1;
    }
    .hero p { font-size: 1.1rem; padding-right: 20px; }

    /* 3. Slider (Scroll horizontal fluide) */
    .slider-section { padding: 40px 0 60px 20px; }
    .slider-container { 
        gap: 15px; 
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch; 
    }
    .slide { 
        width: 85vw; 
        min-width: 85vw; 
        height: 400px;
        scroll-snap-align: center;
        padding: 20px;
    }
    
    /* Désactiver les effets gourmands en ressources sur mobile */
    .slider-container:has(.slide:hover) .slide { 
        opacity: 1; filter: none; transform: none; 
    }
    .slide:hover { transform: none !important; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

    /* 4. Grilles & Équipe */
    .team-grid { gap: 60px; padding: 0 20px; }
    .team-member, .team-member:nth-child(even) { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 25px; 
    }
    .member-photo-wrapper { 
        max-width: 260px; 
        width: 260px;
        height: 260px;
    }
    .member-info h2 { font-size: 2rem; }
    .member-info .description { margin: 0 auto; font-size: 0.95rem; }

    /* 5. Galerie Nomade */
    .gallery-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: 0 10px;
    }
    .gallery-item { height: 220px; }

    /* 6. Footer & Contact */
    footer h2 { font-size: 15vw; margin-bottom: 30px; letter-spacing: -2px; }
    .footer-email { 
        width: 90%; 
        padding: 15px 20px; 
        font-size: 0.9rem; 
        margin-bottom: 60px;
    }
    .footer-bottom { font-size: 0.6rem; padding-top: 30px; opacity: 0.7; }
    
    .contact-container { gap: 40px; padding: 0 20px; }
    .identite-container { padding: 0 20px; gap: 40px; }
}

/* =========================================
   12. LIGHTBOX ZOOM (AJOUT EXPERT)
   ========================================= */

/* Le conteneur plein écran */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fond noir semi-transparent + LE FLOU D'ARRIÈRE-PLAN */
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px); /* C'est ici que la magie du flou opère */
    -webkit-backdrop-filter: blur(15px); /* Pour Safari */
    z-index: 10000; /* Au-dessus de tout, même du menu */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Caché par défaut avec une transition fluide */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

/* État actif (ouvert) */
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* L'image zoomée au centre */
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    /* Petite animation d'entrée */
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

/* Bouton de fermeture (croix) */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover { transform: rotate(90deg); color: #ccc; }

/* Indique que l'image est cliquable sur la page */
.zoomable { cursor: zoom-in; }

/* =========================================
   13. PAGE MENTIONS LÉGALES (STYLE EXPERT)
   ========================================= */

/* Conteneur principal centré */
.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 40px 160px;
}

/* Le gros titre en haut */
.legal-header h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.legal-header .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 100px; /* Grand espace avant le début du texte */
    font-weight: 400;
}

/* Structure en grille (Desktop) */
.legal-row {
    display: grid;
    /* Colonne de gauche (titres) : 30%, Colonne de droite (texte) : 70% */
    grid-template-columns: 300px 1fr; 
    gap: 60px;
    padding: 60px 0;
    border-top: 1px solid #eee; /* Ligne de séparation très fine */
}

/* Les titres de section à gauche */
.legal-label h2 {
    font-size: 1rem;
    color: #888; /* Gris pour ne pas voler la vedette au contenu */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0;
    position: sticky; /* Le titre reste accroché en haut quand on scrolle le texte */
    top: 120px;
}

/* Le texte à droite */
.legal-content-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #111;
}

.legal-content-text strong {
    font-weight: 700;
    color: #000;
}

.legal-content-text a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Une petite boîte pour mettre en avant l'avertissement principal */
.highlight-box {
    background-color: #f5f5f5;
    padding: 30px;
    border-left: 4px solid #111;
    font-weight: 600;
}

/* --- Adaptation Mobile pour les mentions --- */
@media (max-width: 900px) {
    .legal-container { padding-top: 80px; }
    
    .legal-row {
        /* On passe en une seule colonne */
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .legal-label h2 {
        position: static; /* On enlève l'effet sticky sur mobile */
        font-size: 1.2rem;
        color: #111; /* Plus foncé sur mobile pour la lisibilité */
    }
    
    .legal-header .subtitle { margin-bottom: 60px; }
}

.back-home-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: #111;
    position: relative;
    padding-bottom: 4px;
}

.back-home-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #111;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.back-home-link:hover::after {
    width: 100%;
}

/* =========================================
   PAGE 404 (STYLE EXPERT)
   ========================================= */

.error-container {
    min-height: 70vh; /* Prend une bonne partie de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden; /* Évite les débordements du gros titre */
}

/* Le gros chiffre 404 */
.error-container h1 {
    font-size: clamp(8rem, 25vw, 20rem); /* Très gros, responsive */
    line-height: 0.8;
    margin: 0;
    /* On utilise votre style outline existant, mais on peut le forcer ici si besoin */
    color: transparent;
    -webkit-text-stroke: 2px #111; /* Trait un peu plus épais */
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

/* Le sous-titre */
.error-container h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

/* Le texte explicatif */
.error-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

/* Le bouton */
.error-container .btn-contact {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

/* Petit effet au survol du 404 pour le rendre interactif */
.error-container h1:hover {
    color: #111; /* Se remplit en noir */
    -webkit-text-stroke: 0px transparent;
    transition: all 0.5s ease;
    cursor: default;
}

/* Style du lien Retour Portfolio dans le menu */
.menu-items .back-link {
    text-decoration: none;
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 15px; /* Espace avec "À propos de nous" */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu-items .back-link:hover {
    opacity: 1;
}

/* Ajustement pour le menu burger sur mobile */
@media (max-width: 768px) {
    .menu-items .back-link {
        margin-right: 0;
        margin-bottom: 20px; /* Espace vertical sur mobile */
        font-size: 1.1rem; /* Plus lisible sur téléphone */
    }
}