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

/* --- HEADER --- */
.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 MENU --- */
.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); }

/* --- MENU LATÉRAL --- */
.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; }

/* --- BOUTON FIXE CONTACT --- */
.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); }

/* --- HERO --- */
.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.65rem; letter-spacing: 14px; color: rgba(255,255,255,0.4); margin-top: 30px; text-transform: uppercase; font-weight: 700; padding-left: 14px; }

/* --- MOUSE EXPLORER ANIMATION --- */
.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); } }

/* --- SECTION ABOUT --- */
.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 { color: var(--red-neon); }
.about-text p { font-size: 1.15rem; color: rgba(255,255,255,0.5); line-height: 1.9; margin-bottom: 25px; }
.about-img { width: 100%; height: 550px; background: url('https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?auto=format&fit=crop&q=80') center/cover; border-radius: 2px; filter: grayscale(0.5); transition: 0.5s; }

/* --- SECTION PROJETS ACCUEIL (RAFFINÉE) --- */
.projects { 
    padding: 120px 10%; 
    text-align: center; 
    /* Fond légèrement plus clair pour marquer la section */
    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; }

/* --- SECTION CONTACT ACCUEIL --- */
.contact { padding: 120px 10%; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.contact h2 { font-size: 3.5rem; text-transform: uppercase; line-height: 0.9; letter-spacing: -2px; }
.contact h2 span { color: var(--red-neon); }
.contact-form input, .contact-form textarea { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); padding: 22px; color: white; width: 100%; margin-bottom: 25px; }
.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; }
.btn-submit:hover { background: white; color: var(--red-neon); }

/* --- FOOTER --- */
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; }

/* --- PAGE EXPERTISES --- */
.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;
}
.hero-page h1 { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 900; line-height: 0.9; text-transform: uppercase; letter-spacing: -3px; }
.hero-page h1 span { background: linear-gradient(90deg, var(--red-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.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;
}
.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;
}
.sub-nav a:hover { opacity: 1; color: var(--red-neon); }

.service-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; border-bottom: 1px solid rgba(255,255,255,0.02); overflow: hidden;}
.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; }

.img-wrapper { overflow: hidden; background: #000; position: relative; }
.service-img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.4;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease; filter: grayscale(20%) contrast(110%);
}
.service-section:hover .service-img { opacity: 0.8; transform: scale(1.05); }

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

/* --- PAGE PORTFOLIO (STACKED) --- */
.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; filter: brightness(0.4);
    transition: 1.5s ease; z-index: 1;
}
.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; }
.portfolio-title { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 900; text-transform: uppercase; line-height: 0.85; letter-spacing: -4px; margin-bottom: 40px; }
.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; }
.btn-view:hover { background: white; color: black; border-color: white; }

/* --- PAGE PROJET SEUL (DESIGN XXL AVEC PROFONDEUR) --- */
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); }
.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); }

/* --- RESPONSIVE GLOBAL --- */
@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) {
    .about, .contact { grid-template-columns: 1fr; }
    .about-img { height: 350px; order: -1; }
    :root { --panel-width: 100%; }
    .top-nav { padding: 0 20px; }
    body.single-projet { overflow: auto; }
    .project-main-container { flex-direction: column; gap: 40px; filter: none; }
    .project-info-col { text-align: center; padding: 20px 5%; }
}