/* ==========================================================================
   1. BASE & TYPOGRAPHIE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #121212; z-index: 9999; display: flex; 
    align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.progress-bar {
    width: 200px; height: 4px; background: #333; 
    border-radius: 2px; overflow: hidden;
}
.progress-bar::after {
    content: ''; display: block; width: 0%; height: 100%; 
    background: #00bcd4; /* Ta couleur bleu cyan */
    animation: load 2s ease-out forwards;
}
@keyframes load { to { width: 100%; } }

body {
    background-color: #121212;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

body.scrollable-page {
    overflow-y: auto;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-align: center;
}

h1 sup {
    font-size: 1.5rem;
}

p {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.9);
    text-align: center;
    max-width: 60%;
}

[data-key] { 
    opacity: 1 !important; 
}

/* ==========================================================================
   2. EN-TÊTE (HEADER) & NAVIGATION
   ========================================================================== */
.top-banner {
    height: 110px;
    width: 100%;
    background-color: #000000;
    border-bottom: 1px solid #252525;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body.scrollable-page .top-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.banner-logo {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

#lang-switch {
    position: absolute;
    right: 20px;
    background: transparent;
    color: white;
    border: 1px solid #444;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#lang-switch:hover {
    background: white;
    color: #121212;
    border-color: white;
}

/* ==========================================================================
   3. PIED DE PAGE (FOOTER)
   ========================================================================== */
.bottom-banner {
    height: 60px;
    width: 100%;
    background-color: #000000;
    border-top: 1px solid #252525;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.footer-left {
    flex: 1;
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.contact-link {
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #ffffff;
}

.footer-right a {
    color: #888;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-right a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* ==========================================================================
   4. BOUTONS GLOBAUX
   ========================================================================== */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-small {
    padding: 12px 20px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

/* ==========================================================================
   5. PAGE ACCUEIL (SPLIT SCREEN)
   ========================================================================== */
.split-container {
    display: flex;
    flex: 1;
    width: 100vw;
}

.split {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 1s ease; 
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Empêche le débordement d'image */
    min-width: 0;     /* Force le rétrécissement correct */
}

.split.left {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--bg-tech) center/cover no-repeat;
    border-right: 1px solid #252525;
}

.split.left:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--bg-tech) center/cover no-repeat;
}

.split.right {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--bg-studio) center/cover no-repeat;
}

.split.right:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--bg-studio) center/cover no-repeat;
}

.split:hover {
    flex: 1.2;
}

.split-container:hover .split:not(:hover) {
    flex: 0.8;
}

.split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 1;
}

.split h1, .split p {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   6. PAGE TECH (SERVICES)
   ========================================================================== */
.tech-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #121212;
}

.tech-hero {
    height: 40vh;
    min-height: 200px;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.tech-hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

[data-key="tech_title"] {
    font-size: 1.5rem !important;
}

.tech-hero p {
    font-size: 1.4rem;
    color: #cccccc;
    max-width: 800px;
    text-shadow: none;
}

.tech-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0px 40px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.service-card {
    background-color: #1a1a1a;
    border: 1px solid #252525;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.media-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #252525;
}

.media-container img,
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.service-card:hover .media-container img,
.service-card:hover .media-container video {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    padding: 25px 25px 10px 25px;
    text-align: left;
}

.service-card p {
    font-size: 1rem;
    color: #888888;
    padding: 0 25px 30px 25px;
    line-height: 1.6;
    text-align: left;
    max-width: 100%;
    text-shadow: none;
}

.tech-rental {
    padding: 40px 20px;
    background-position: top; /* Centre l'image sur le haut */
    background-size: cover;
    /* background-attachment: fixed; Supprime cette ligne si tu veux que l'image défile normalement avec la page */
    text-align: center;
    border-top: 1px solid #252525;
}

.rental-content {
    max-width: 800px;
    margin: 0 auto;
}

.rental-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rental-content p,
.tech-rental p, 
[data-key="rental_desc"] {
    font-size: 1.2rem;
    color: #dddddd;
    margin: 0 auto 30px auto;
    text-shadow: none;
    text-align: center !important;
    max-width: 800px;
}

/* ==========================================================================
   7. PAGE STUDIO (GALERIE & MANIFESTO)
   ========================================================================== */
.studio-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #121212;
}

.studio-intro {
    padding: 50px 40px 100px 40px;
    background-color: #121212;
    display: flex;
    justify-content: center;
}

.intro-content {
    max-width: 1200px;
}

.intro-content h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.text-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.text-blocks p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #aaaaaa;
    text-align: justify;
    text-shadow: none;
    max-width: 100%;
}

.text-blocks [data-key="manifesto_p3"] {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #00bcd4;
    font-size: 1.4rem;
}

.studio-gallery {
    padding: 0 40px 100px 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    border: 1px solid #252525;
}

.item-large { grid-column: span 2; grid-row: span 2; }
.item-vertical { grid-column: span 1; grid-row: span 2; }
.item-horizontal { grid-column: span 2; grid-row: span 1; }

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(30%) brightness(0.8);
}

.focus-center { 
    object-position: bottom !important; 
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* Grilles Responsive (Spécifique Studio) */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.item-large, .gallery-item.item-horizontal {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .gallery-item.item-vertical {
        grid-row: span 2 !important;
    }
}

/* ==========================================================================
   8. PAGE LOCATION (RENTAL CATALOGUE)
   ========================================================================== */
.rental-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #121212;
}

[data-key="rental_hero_title"] {
    font-size: 2.2rem !important; 
}

.rental-catalog {
    padding: 30px 40px 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: transparent;
    color: #888;
    border: 1px solid #333;
    padding: 10px 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.filter-btn.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: bold;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #1a1a1a;
    border: 1px solid #252525;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.product-card.hide {
    display: none;
}

.product-img-container {
    width: 100%;
    height: 250px;
    background-color: #0a0a0a;
    border-bottom: 1px solid #252525;
    overflow: hidden;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.product-info p {
    font-size: 0.95rem;
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
    text-shadow: none;
    max-width: 100%;
}

.product-price {
    display: inline-block;
    padding: 10px 15px;
    background-color: #252525;
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #333;
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}

.rental-conditions {
    display: flex;
    align-items: flex-start;
    background-color: #1a1a1a;
    border: 1px solid #252525;
    border-left: 3px solid #888888;
    padding: 20px 25px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.condition-icon {
    color: #888888;
    margin-right: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.condition-text p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    text-shadow: none;
    text-align: left;
}

.condition-text p:last-child {
    margin-bottom: 0;
}

.condition-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   9. PAGE CONTACT
   ========================================================================== */
.contact-section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
    color: #ffffff;
}

.contact-section p {
    max-width: 100%;
}
.contact-container {
    display: flex;
    gap: 50px;
    background: #111;
    padding: 40px;
    border-radius: 8px;
}

.contact-info, .contact-form-wrapper {
    flex: 1;
}

.contact-info h1, 
.contact-info [data-key="contact_subtitle"], 
.contact-info p, 
.contact-info .info-block {
    text-align: left !important;
}

.contact-info h1 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #00bcd4;
}

.contact-info [data-key="contact_subtitle"] {
    margin-bottom: 40px;
}

.contact-info h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.contact-info .info-block {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.form-group input, .form-group textarea {
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
}

.mobile-location {
    display: none; 
}

/* ==========================================================================
   10. RESPONSIVE GLOBAUX (MOBILES)
   ========================================================================== */
@media (max-width: 768px) {
    /* Typographie */
    h1 { font-size: 1.8rem; }
    h1 sup { font-size: 1rem; }
    
    /* Layout Accueil Split */
    .split {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Layout Studio Text */
    .text-blocks {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Layout Contact */
    .contact-container {
        flex-direction: column;
    }

    .desktop-location {
        display: none !important; 
    }
    .mobile-location {
        display: block; 
        margin-top: 40px;
        text-align: center;
    }
    
    /* Fix Scroll Mobile */
    body { height: 100dvh; }
    body.scrollable-page {
        height: auto !important;
        min-height: 100dvh;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix défilement formulaire contact */
    .contact-section,
    .contact-container {
        height: auto !important;
        min-height: 100%;
        overflow: visible !important;
    }
    
    /* Footer Mobile */
    .bottom-banner {
        height: auto;
        min-height: 60px;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .footer-left, .footer-center, .footer-right {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    /* Correction du centrage du texte Accueil sur mobile */
    .split p {
        max-width: 90%; /* Utilise 90% de l'espace disponible au lieu de 60% */
        font-size: 0.95rem; /* Taille légèrement réduite pour les longs mots */
        padding: 0 5px; /* Évite que le texte touche le bord de l'écran */
        min-height: 130px; /* <-- Force les deux textes à avoir la même hauteur */
    }
}