/*
Theme Name: Favoriz Production
Theme URI: https://favoriz.fr
Author: Favoriz
Description: Thème sur-mesure pour Favoriz Production (Broadcast TV & Digital Media).
Version: 1.0
Text Domain: favoriz
*/

:root {
    --red-neon: #ff0055;
    --purple-neon: #8a2be2;
    --dark-bg: #030307;
    --panel-width: 450px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--dark-bg); color: white; font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* GLOBAL TEXT JUSTIFY */
p { text-align: justify; }

/* =========================================
   1. HEADER & NAVIGATION
   ========================================= */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100px;
    background: rgba(0, 0, 0, 0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.logo-container { position: relative; z-index: 1001; }
.brand-logo-svg { height: 55px; width: auto; display: block; object-fit: contain; }

.burger-btn {
    width: 55px; height: 55px; cursor: pointer; display: flex; flex-direction: column;
    justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.03);
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); transition: 0.3s; position: relative; z-index: 1010;
}
.burger-btn:hover { border-color: var(--red-neon); background: rgba(255, 255, 255, 0.1); }
.line { width: 22px; height: 2px; background: white; margin: 3px 0; transition: 0.4s; }
.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.active .line:nth-child(2) { opacity: 0; }
.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 900; visibility: hidden; opacity: 0; transition: 0.5s;
}
.nav-overlay.open { visibility: visible; opacity: 1; backdrop-filter: blur(15px); }
.side-panel {
    position: fixed; top: 0; right: 0; width: var(--panel-width); height: 100%;
    background: #08080c; border-left: 1px solid rgba(255,255,255,0.05); z-index: 950; display: flex; flex-direction: column;
    justify-content: center; padding: 60px; transform: translateX(100%); transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.open .side-panel { transform: translateX(0); }
.nav-links { list-style: none; }
.nav-links li { margin: 30px 0; }
.nav-links a { text-decoration: none; color: white; font-size: 2.2rem; font-weight: 700; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--red-neon); padding-left: 15px; }

.contact-fixed-btn {
    position: fixed; bottom: 30px; right: 40px; background: var(--red-neon); color: white;
    padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 800; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 1.5px; z-index: 800; box-shadow: 0 10px 40px rgba(255, 0, 85, 0.4);
    transition: 0.4s; display: flex; align-items: center; gap: 12px;
}
.contact-fixed-btn:hover { transform: translateY(-8px); background: white; color: var(--red-neon); }

/* =========================================
   2. ACCUEIL (FRONT-PAGE)
   ========================================= */
.hero { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
h1 { font-size: clamp(3rem, 12vw, 7.5rem); font-weight: 900; line-height: 0.85; letter-spacing: -5px; text-transform: uppercase; }
h1 span { background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.baseline { font-size: 0.85rem; letter-spacing: 8px; color: rgba(255, 255, 255, 0.9); margin-top: 30px; text-transform: uppercase; font-weight: 700; }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: 0.5s ease; z-index: 10; }
.mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.3); border-radius: 20px; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--red-neon); position: absolute; top: 8px; left: 50%; transform: translateX(-50%); border-radius: 2px; animation: scroll-wheel 1.6s infinite; }
.scroll-text { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,0.4); font-weight: 700; }
@keyframes scroll-wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 15px); } }

.about { min-height: 80vh; padding: 120px 10%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; text-transform: uppercase; margin-bottom: 35px; line-height: 1; }
.about-text h2 span { background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-text p { font-size: 1.15rem; color: rgba(255,255,255,0.5); line-height: 1.3; margin-bottom: 25px; text-align: justify;}
.about-img { width: 100%; height: 550px; border-radius: 2px; transition: 0.5s; }

.projects { padding: 120px 10%; text-align: center; background: #0a0a12; border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }
.projects h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; text-transform: uppercase; letter-spacing: -2px; line-height: 1; margin-bottom: 70px; }
.projects h2 span { background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 70px; }
.project-card { height: 520px; background: #000; overflow: hidden; position: relative; border-radius: 4px; text-decoration: none; display: block; transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.6); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 1s cubic-bezier(0.2, 1, 0.3, 1); opacity: 0.7; }
.project-card:hover img { transform: scale(1.08); opacity: 0.4; }
.project-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 30px; text-align: left; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); }
.project-info .category { color: var(--red-neon); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 900; display: block; margin-bottom: 10px; }
.project-info h3 { color: #ffffff !important; font-size: 1.7rem; text-transform: uppercase; font-weight: 900; letter-spacing: -1px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.project-card:hover h3 { color: var(--red-neon) !important; }
.btn-more { display: inline-block; padding: 18px 50px; border: 1px solid rgba(255,255,255,0.2); color: white; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; transition: 0.3s; font-size: 0.7rem; margin-top: 20px; }
.btn-more:hover { background: white; color: black; border-color: white; }

/* Bannière Contact (Accueil) */
.contact { 
    padding: 100px 10%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-top: 1px solid rgba(255,255,255,0.03); 
    background: radial-gradient(circle at right, #1a082e 0%, var(--dark-bg) 70%); 
}
.contact h2 { font-size: clamp(3rem, 6vw, 4.5rem); text-transform: uppercase; line-height: 0.9; letter-spacing: -2px; margin: 0; }
.contact h2 span { background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn-cta { 
    display: inline-block; 
    background: var(--red-neon); 
    color: white; 
    text-decoration: none; 
    padding: 22px 50px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: 0.3s; 
    border-radius: 4px; 
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.3); 
}
.btn-cta:hover { 
    background: white; 
    color: var(--red-neon); 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2); 
}

/* Bouton submit formulaire (Page Contact) */
.btn-submit { background: var(--red-neon); border: none; padding: 22px; color: white; font-weight: 900; text-transform: uppercase; cursor: pointer; width: 100%; letter-spacing: 2px; transition: 0.3s; border-radius: 4px; }
.btn-submit:hover { background: white; color: var(--red-neon); }

footer { padding: 100px 10% 50px; text-align: center; border-top: 1px solid rgba(255,255,255,0.03); }
.socials a { color: white; margin: 0 20px; font-size: 1.8rem; transition: 0.3s; text-decoration: none; }
.socials a:hover { color: var(--red-neon); }

/* Scrollbar Lenis fix */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* =========================================
   3. PAGE EXPERTISES
   ========================================= */
.page-app-layout { display: block; min-height: 100vh; }

.page-app-layout .hero-page {
    height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; background: radial-gradient(circle at center, #1a082e 0%, var(--dark-bg) 80%); padding-top: 80px;
}
.page-app-layout .hero-page h1 { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 900; line-height: 0.9; text-transform: uppercase; letter-spacing: -3px; margin: 0; }
.page-app-layout .hero-page h1 span { background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.page-app-layout .sub-nav {
    position: sticky; top: 100px; background: rgba(3, 3, 7, 0.98);
    z-index: 85; display: flex; justify-content: center; overflow-x: auto; gap: 30px; padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05); scrollbar-width: none;
}
.page-app-layout .sub-nav::-webkit-scrollbar { display: none; }
.page-app-layout .sub-nav a {
    color: white; text-decoration: none; font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; opacity: 0.4; transition: 0.3s; white-space: nowrap;
}
.page-app-layout .sub-nav a:hover { opacity: 1; color: var(--red-neon); }

.expertises-container { display: block; }

.service-section { 
    display: grid !important; grid-template-columns: 1fr 1fr; min-height: 70vh; border-bottom: 1px solid rgba(255,255,255,0.02); overflow: hidden; 
    opacity: 1 !important; visibility: visible !important; transform: none !important; position: relative !important;
}

.service-content { padding: 80px 10%; display: flex; flex-direction: column; justify-content: center; }
.service-content h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; text-transform: uppercase; margin-bottom: 25px; line-height: 0.95; }
.service-content h2 span { color: var(--red-neon); display: block; font-size: 1.2rem; letter-spacing: 4px; margin-top: 8px; opacity: 0.8; }
.service-content p { font-size: 1.1rem; color: rgba(255,255,255,0.6); line-height: 1.7; text-align: justify; }

.reverse .service-content { order: 2; }
.reverse .img-wrapper { order: 1; }

.img-wrapper { 
    position: relative; 
    overflow: hidden; 
    background-color: transparent; 
    background-size: cover; 
    background-position: center; 
}
.service-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 1;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1); filter: grayscale(20%) contrast(110%); z-index: 1;
}

.service-section:hover .service-video { transform: scale(1.05); }

/* =========================================
   4. PAGE PORTFOLIO (NOUVELLE UX/UI)
   ========================================= */
.portfolio-card { 
    height: 100vh;
    width: 100%; 
    position: sticky; top: 0; 
    display: flex; align-items: center; justify-content: center; 
    overflow: hidden; background: #000; 
}

.portfolio-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; 
    transition: transform 1.5s ease; z-index: 1; 
}

.portfolio-bg::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
}

.portfolio-card:hover .portfolio-bg { transform: scale(1.05); }

.portfolio-info-stacked { 
    position: relative; z-index: 10; text-align: center; max-width: 900px; padding: 0 20px; 
}
.portfolio-category { 
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 6px; color: var(--red-neon); 
    font-weight: 900; margin-bottom: 20px; display: block; text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.portfolio-title { 
    font-size: clamp(2.5rem, 8vw, 6rem); 
    font-weight: 900; 
    text-transform: uppercase; 
    line-height: 1; 
    letter-spacing: -1px; 
    margin-bottom: 40px; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.6); 
}

.btn-view { 
    display: inline-block; padding: 18px 45px; border: 1px solid rgba(255,255,255,0.3); color: white; 
    text-decoration: none; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; 
    transition: 0.3s; background: rgba(0,0,0,0.2); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); 
}
.btn-view:hover { background: white; color: black; border-color: white; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

/* =========================================
   5. SINGLE PROJET
   ========================================= */
body.single-projet { overflow: hidden; background: #030307; position: relative; }
.single-project-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 80px 4%; position: relative; background: transparent !important; }
.project-fullscreen-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.3; filter: blur(15px); z-index: -1; transform: scale(1.1); }
.project-main-container { display: flex; gap: 80px; max-width: 1800px; width: 100%; align-items: center; z-index: 10; filter: drop-shadow(0 15px 150px rgba(0,0,0,0.5)); }
.project-media-col { flex: 2; position: relative; }
.video-wrapper { width: 100%; aspect-ratio: 16 / 9; box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 15px rgba(255, 0, 85, 0.03); border-radius: 4px; overflow: hidden; background: #000; }
.video-wrapper iframe { width: 100%; height: 100%; border: none; }
.project-info-col { flex: 1; max-width: 650px; padding: 20px; }
.project-info-col .category { color: var(--red-neon); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 6px; font-weight: 900; margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.project-info-col h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; text-transform: uppercase; line-height: 0.85; margin-bottom: 30px; letter-spacing: -3px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.project-info-col .description { font-size: 1.2rem; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 50px; text-shadow: 0 2px 15px rgba(0,0,0,0.5); text-align: justify; }
.btn-back { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; opacity: 0.5; transition: 0.3s; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.btn-back:hover { opacity: 1; color: var(--red-neon); transform: translateX(-8px); }

/* =========================================
   6. PAGE CONTACT
   ========================================= */
.contact-hero { padding: 140px 10% 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at center, #1a082e 0%, var(--dark-bg) 80%); }
.contact-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; line-height: 0.9; text-transform: uppercase; letter-spacing: -3px; margin: 0; }
.contact-hero h1 span { background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 50px 10% 120px; align-items: start; }

.info-col { padding-top: 70px; }
.info-col h3 { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 50px; letter-spacing: -1px; }
.info-item { margin-bottom: 40px; }
.info-item h4 { color: var(--red-neon); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; font-weight: 800; }
.info-item p, .info-item a { color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; text-decoration: none; display: block; line-height: 1.6; transition: 0.3s; text-align: justify; }
.info-item a:hover { color: white; }
.info-item .social-links { display: flex; gap: 20px; margin-top: 15px; }
.info-item .social-links a { font-size: 1.5rem; color: white; background: rgba(255,255,255,0.05); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.4s; }
.info-item .social-links a:hover { color: white; background: var(--red-neon); transform: translateY(-5px); }

.form-col { 
    position: relative; 
    background: rgba(255, 255, 255, 0.02); 
    padding: 85px 50px 50px 50px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 4px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
}

.form-message-succes, .form-message-erreur {
    position: absolute; top: 15px; left: 50px; right: 50px; 
    padding: 15px; border-radius: 4px; text-align: center; font-weight: bold; font-size: 0.9rem; line-height: 1.4; z-index: 5; margin-bottom: 0;
}
.form-message-succes { background: rgba(0, 255, 136, 0.1); border: 1px solid #00ff88; color: #00ff88; }
.form-message-erreur { background: rgba(255, 0, 85, 0.1); border: 1px solid var(--red-neon); color: var(--red-neon); }

.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; font-weight: 700; }
.form-group input, .form-group textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: white; font-size: 1.1rem; padding: 10px 0 15px; font-family: inherit; transition: 0.3s; resize: none; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--red-neon); background: rgba(255,255,255,0.02); padding-left: 10px; }


/* =========================================
   7. RESPONSIVE GLOBAL (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1100px) {
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .project-grid { grid-template-columns: 1fr; }
    .projects h2 { font-size: 2.8rem; }
}

@media (max-width: 900px) {
    :root { --panel-width: 100%; }
    
    /* Header & Nav */
    .top-nav { height: 70px; padding: 0 20px; }
    .brand-logo-svg { height: 35px; }
    .burger-btn { width: 45px; height: 45px; }
    .side-panel { padding-top: 100px; }

    /* BOUTON CONTACT MOBILE (Rond avec Icône) */
    .contact-fixed-btn { 
        bottom: 20px; right: 20px; 
        width: 50px; height: 50px; 
        padding: 0; 
        border-radius: 50%; 
        justify-content: center; 
        font-size: 0; 
        gap: 0;
    }
    .contact-fixed-btn i { font-size: 1.2rem; margin: 0; }

    /* Accueil */
    .hero h1 { line-height: 0.9; letter-spacing: -2px; font-size: clamp(2.5rem, 10vw, 4rem); }
    .baseline { letter-spacing: 3px; font-size: 0.75rem; padding: 0 20px; margin-top: 15px; }
    .about { display: flex; flex-direction: column; padding: 60px 7%; gap: 40px; min-height: auto !important; justify-content: flex-start; }
    .about-text { display: contents; }
    .about h2 { order: 1; margin: 0 0 15px 0 !important; font-size: 1.8rem; text-align: center; }
    .about-img { order: 2; height: 200px !important; margin: 0 0 15px 0 !important; width: 100%; border-radius: 4px; background-position: center; background-size: cover; }
    .about p { order: 3; margin: 0 0 10px 0 !important; font-size: 1rem; line-height: 1.4; text-align: justify; }
    .about .btn-more { order: 4; align-self: center; margin-top: 10px !important; padding: 12px 25px; font-size: 0.65rem; }
    
    .projects { padding: 80px 5%; border-top: none; }
    .projects h2 { font-size: 1.6rem; margin-bottom: 40px; text-align: center; letter-spacing: 0px; }
    .project-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
    .project-card { height: 250px !important; border-radius: 6px; } 
    .project-info { padding: 15px 20px; display: flex; flex-direction: column; justify-content: flex-end; }
    .project-info h3 { font-size: 1.2rem; line-height: 1.2; margin: 0; } 
    .project-info .category { font-size: 0.55rem; margin-bottom: 4px; }
    .project-card img { opacity: 0.5; } 
    .projects .btn-more { padding: 12px 25px; font-size: 0.65rem; }
    
    /* ACCUEIL : BANNIÈRE CTA MOBILE */
    .contact { 
        flex-direction: column; 
        padding: 80px 5% 60px; gap: 40px; 
        text-align: center;
    }
    .contact h2 { 
        font-size: clamp(2.5rem, 10vw, 3.5rem); 
        margin: 0; line-height: 1;
    }
    .btn-cta {
        width: 100%;
        text-align: center;
        padding: 20px;
        font-size: 0.8rem;
    }
    
    /* Page Contact Mobile */
    body.page-template-page-contact, 
    body.page-template-page-contact-php { 
        overflow-y: auto !important; 
        overflow-x: hidden !important; 
    } 
    
    .contact-hero { padding: 120px 5% 30px; }
    .contact-grid { grid-template-columns: 1fr; padding: 30px 5% 80px; gap: 50px; }
    
    .info-col { padding-top: 0; text-align: center; }
    .info-col h3 { font-size: 1.6rem; margin-bottom: 30px; letter-spacing: -0.5px; }
    .info-item { margin-bottom: 25px; display: flex; flex-direction: column; align-items: center; }
    .info-item h4 { font-size: 0.75rem; margin-bottom: 6px; }
    .info-item p, .info-item a { font-size: 1rem; text-align: center !important; }
    .social-links { justify-content: center; margin-top: 10px; }

    .form-col { padding: 75px 20px 30px 20px; }
    .form-message-succes, .form-message-erreur { top: 15px; left: 20px; right: 20px; font-size: 0.8rem; padding: 12px; }
    .form-group { margin-bottom: 20px; }
    .form-group label { font-size: 0.7rem; margin-bottom: 6px; }
    .form-group input, .form-group textarea { font-size: 1rem; padding: 8px 0 12px; }
    
    footer { padding: 40px 5% 30px; }
    .socials a { font-size: 1.5rem; margin: 0 12px; }

    /* Portfolio Mobile UX */
    .portfolio-info-stacked { padding: 0 20px; width: 100%; }
    .portfolio-category { font-size: 0.6rem; letter-spacing: 4px; margin-bottom: 15px; }
    .portfolio-title { font-size: clamp(2.2rem, 10vw, 4rem); line-height: 1.1; letter-spacing: 0px; margin-bottom: 30px; }
    .btn-view { padding: 16px 35px; font-size: 0.65rem; }

    /* Single Projet */
    body.single-projet { 
        overflow-y: auto !important; 
        overflow-x: hidden !important; 
    } 
    
    .single-project-wrapper { display: block; padding: 100px 5% 60px; }
    
    .project-main-container { flex-direction: column; gap: 25px; filter: none; }
    
    .project-media-col { width: 100%; order: 1; }
    .video-wrapper { border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.7); }
    
    .project-info-col { width: 100%; order: 2; padding: 0; text-align: left; }
    .project-info-col .category { font-size: 0.65rem; margin-bottom: 10px; display: inline-block; }
    .project-info-col h1 { font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
    .project-info-col .description { font-size: 1rem; line-height: 1.6; margin-bottom: 30px; text-align: left; color: rgba(255,255,255,0.85); }
    
    .btn-back { display: inline-flex; padding: 12px 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; font-size: 0.7rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* =====================================
       PAGE EXPERTISES : APP & SWIPE FLUIDE AVEC SCROLL NATUREL
       ===================================== */
    body.page-template-page-expertises, 
    body.page-template-page-expertises-php { 
        overflow-y: auto !important; 
        overflow-x: hidden !important; 
    }
    
    body.page-template-page-expertises footer,
    body.page-template-page-expertises-php footer { display: none !important; }

    /* Conteneur principal qui empêche le décalage horizontal natif d'iOS */
    .page-app-layout { 
        min-height: 100vh; height: auto; 
        width: 100%; display: flex; flex-direction: column; 
        padding-top: 85px; 
        overflow-x: hidden; 
    }
    
    .page-app-layout .hero-page { 
        height: auto; flex-shrink: 0; 
        padding-top: 20px; padding-bottom: 25px; 
        background: none; display: flex; align-items: center; justify-content: center; 
    }
    .page-app-layout .hero-page h1 { 
        font-size: 2.2rem; 
        line-height: 1; text-transform: uppercase; letter-spacing: -1px; text-align: center; margin: 0; 
    }
    
    .page-app-layout .sub-nav { 
        flex-shrink: 0; position: relative; top: 0; z-index: 85; 
        display: flex; justify-content: flex-start; overflow-x: auto; 
        gap: 25px; padding: 5px 20px 20px; 
        border-bottom: 1px solid rgba(255,255,255,0.08); 
        background: transparent; 
        margin-bottom: 15px; 
    }
    .page-app-layout .sub-nav a { font-size: 0.75rem; letter-spacing: 1px; }
    .page-app-layout .sub-nav a.active { 
        opacity: 1; background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); 
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
        font-weight: 900; transform: scale(1.1); 
    }

    /* ASTUCE GRID : Empile les sections sans détruire la hauteur de la page */
    .expertises-container { 
        display: grid; position: relative; 
    }
    
    .service-section { 
        grid-area: 1 / 1; 
        position: relative !important; top: auto; left: auto; width: 100%; height: auto !important; 
        display: flex !important; flex-direction: column; border-bottom: none; 
        opacity: 0 !important; visibility: hidden !important; 
        transform: translateX(100%) !important; 
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease !important; 
        z-index: 1; 
    }
    .service-section.active-section { opacity: 1 !important; visibility: visible !important; transform: translateX(0) !important; z-index: 2; }
    .service-section.past-section { transform: translateX(-100%) !important; opacity: 0 !important; visibility: hidden !important; }
    
    .img-wrapper { order: 1 !important; height: 35vh; min-height: 250px; flex-shrink: 0; width: 100%; }
    .service-content { 
        order: 2 !important; height: auto; 
        padding: 35px 7% 60px; 
        justify-content: flex-start; overflow-y: visible; 
        display: flex; flex-direction: column; 
    }
    .service-content h2 { font-size: 2rem; margin-bottom: 12px; letter-spacing: -1px; }
    .service-content h2 span { font-size: 0.9rem; margin-top: 4px; letter-spacing: 3px; color: var(--red-neon); }
    .service-content p { font-size: 1rem; line-height: 1.6; text-align: left; color: rgba(255,255,255,0.85); } 

@media (max-width: 400px) {
    .hero h1 { font-size: 3.5rem; }
    .project-card { height: 220px !important; }
}