﻿/* --- 1. VARIABLES GLOBALES --- */
        :root {
            --bg-color: #bda2b6;
            --text-color: #ffffff;
            --safe-zone: 35px; 
            --line-pos: 60px;  
            --content-gap: 25px; 
            --sidebar-width: 220px;
        }

        @font-face {
            font-family: 'Britannic Bold';
            src: local('Britannic Bold'), local('BritannicBold-Regular');
        }

        /* --- 2. BASE & RESET --- */
        * { box-sizing: border-box; }
        body, html {
            margin: 0; padding: 0; width: 100%; height: 100%;
            background-color: var(--bg-color); color: var(--text-color);
            font-family: 'Calibri', sans-serif; overflow: hidden; 
        }

        /* --- MOTEUR DE LANGUE (CSS) TRILINGUE --- */
        .lang-en, .lang-de { display: none; }
        
        html[lang="en"] .lang-fr, html[lang="en"] .lang-de { display: none !important; }
        html[lang="en"] div.lang-en, html[lang="en"] p.lang-en, html[lang="en"] h1.lang-en, html[lang="en"] h2.lang-en, html[lang="en"] h3.lang-en { display: block; }
        html[lang="en"] span.lang-en, html[lang="en"] b.lang-en, html[lang="en"] strong.lang-en { display: inline; }
        html[lang="en"] form.lang-en { display: flex; }
        
        html[lang="de"] .lang-fr, html[lang="de"] .lang-en { display: none !important; }
        html[lang="de"] div.lang-de, html[lang="de"] p.lang-de, html[lang="de"] h1.lang-de, html[lang="de"] h2.lang-de, html[lang="de"] h3.lang-de { display: block; }
        html[lang="de"] span.lang-de, html[lang="de"] b.lang-de, html[lang="de"] strong.lang-de { display: inline; }
        html[lang="de"] form.lang-de { display: flex; }

        /* --- 3. CADRE FIXE & COPYRIGHT --- */
        .line-h { position: fixed; height: 1px; background-color: var(--text-color); top: var(--line-pos); left: var(--safe-zone); right: var(--safe-zone); z-index: 1000; }
        .line-v { position: fixed; width: 1px; background-color: var(--text-color); left: var(--line-pos); top: var(--safe-zone); bottom: var(--safe-zone); z-index: 1000; }

        .copyright {
            position: fixed; bottom: 10px; width: 100%; text-align: center;
            font-size: 0.75rem; opacity: 0.5; letter-spacing: 1px; z-index: 1000;
            pointer-events: none; 
        }

        /* --- CONTROLE HAUT DROITE (CONTACT + LANGUES) --- */
        .top-controls { 
            position: fixed; top: calc(var(--line-pos) + 10px); right: calc(var(--safe-zone) + 10px); 
            z-index: 1100; font-size: 0.8rem; letter-spacing: 2px; display: flex; align-items: center; gap: 12px; 
        }
        
        .contact-link { cursor: pointer; font-weight: bold; opacity: 0.9; transition: 0.3s ease; }
        .contact-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
        
        .control-sep { opacity: 0.4; font-size: 1rem; font-weight: normal; margin: 0 5px; pointer-events: none; }
        
        .lang-selector { display: flex; gap: 8px; align-items: center; }
        .lang-selector span { cursor: pointer; opacity: 0.5; transition: 0.3s ease; }
        .lang-selector span:hover, .lang-selector span.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
        .lang-sep { opacity: 0.3; pointer-events: none; }

        /* --- 4. VIEWPORT --- */
        .main-viewport {
            position: absolute; top: calc(var(--line-pos) + 1px); left: calc(var(--line-pos) + 1px); right: var(--safe-zone); bottom: var(--safe-zone);
            overflow-y: auto; overflow-x: hidden; padding: var(--content-gap) 20px 40px var(--content-gap);
        }
        .main-viewport::-webkit-scrollbar { width: 4px; }
        .main-viewport::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }

        /* --- 5. PAGES --- */
        .page { display: none; opacity: 0; width: 100%; transition: opacity 0.4s ease; }
        .page.active { display: flex; opacity: 1; }

        /* --- 6. ACCUEIL --- */
        #page-home { flex-direction: column; align-items: center; }
        .logo-box-home { width: 100%; max-width: 900px; display: flex; justify-content: center; }
        .logo-vid-res { width: 100%; height: auto; max-height: 35vh; object-fit: contain; }

        .hero-text { text-align: center; padding: 2vh 0; font-style: italic; max-width: 850px; }
        .hero-text h1 { font-size: 1.15rem; font-weight: normal; line-height: 1.4; margin: 0; }

        .columns-container { display: flex; justify-content: center; width: 100%; max-width: 1200px; margin-top: 20px;}
        
        .category-item {
            flex: 1; min-width: 260px; padding: 20px 40px; 
            display: flex; flex-direction: column; align-items: center; text-align: center;
            border-right: 2px solid rgba(255, 255, 255, 0.5); 
        }
        .category-item:last-child {
            border-right: none; 
        }
        
        .headline-nav-home {
            font-family: 'Britannic Bold', sans-serif;
            font-size: 3rem; 
            text-transform: uppercase;
            color: #ffffff;
            cursor: pointer;
            margin: 0 0 0.5rem 0;
            line-height: 1;
            letter-spacing: 1px;
            transition: opacity 0.3s, transform 0.3s;
        }
        .headline-nav-home:hover {
            opacity: 0.7;
            transform: scale(1.03);
        }

        .category-item p { font-size: 1rem; line-height: 1.5; margin: 0; width: 100%; opacity: 0.9;}

        /* --- 7. CARROUSEL MARQUES --- */
        .brands-section { width: 100%; max-width: 1200px; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; overflow: hidden; }
        .brands-title { font-family: 'Calibri', sans-serif; font-weight: normal; font-size: 1.5rem; margin-bottom: 25px; opacity: 0.9; text-transform: uppercase; letter-spacing: 2px;}
        
        .ticker-wrapper { display: flex; width: max-content; animation: ticker 30s linear infinite; }
        .ticker-track { display: flex; align-items: center; gap: 50px; padding: 0 25px; }
        .ticker-wrapper:hover { animation-play-state: paused; } 
        
        .brand-logo { height: 40px; width: auto; max-width: 130px; object-fit: contain; filter: brightness(0) invert(1) opacity(0.8); transition: opacity 0.3s ease, transform 0.3s ease; flex-shrink: 0; }
        .brand-logo:hover { opacity: 1; transform: scale(1.05); filter: brightness(0) invert(1) opacity(1); }
        @keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

        /* --- 8. PAGES SECONDAIRES & MENU TEXTE --- */
        .page-secondary { flex-direction: row; align-items: flex-start; gap: 40px; padding-bottom: 60px;}
        .sidebar { width: var(--sidebar-width); flex-shrink: 0; display: flex; flex-direction: column; gap: 30px; }
        .logo-nav { width: 100%; cursor: pointer; }
        
        .menu-sec { display: flex; flex-direction: column; gap: 15px; width: 100%; }
        
        .text-nav-sec {
            cursor: pointer; font-size: 1rem; font-weight: bold; text-transform: uppercase; letter-spacing: 2px;
            opacity: 0.5; transition: all 0.3s ease; padding: 5px 0; text-align: left;
        }
        .text-nav-sec:hover {
            opacity: 1; transform: translateX(8px); 
        }

        .content-area { flex-grow: 1; display: flex; flex-direction: column; max-width: 950px; width: 100%; overflow: hidden;}
        .header-sec { height: auto; min-height: 120px; display: flex; align-items: flex-end; padding-bottom: 10px; }
        .headline-sec { font-family: 'Britannic Bold', sans-serif; font-size: clamp(2.5rem, 4vw, 3.5rem); text-transform: uppercase; margin: 0; line-height: 1; color: #ffffff; }
        .subtext-sec { margin-top: 20px; font-size: 1.1rem; line-height: 1.7; opacity: 0.9; }
        .subtext-sec p { margin-bottom: 1.2em; }

        .contact-wrapper { display: flex; gap: 40px; margin-top: 30px; align-items: stretch; width: 100%; }
        .contact-left { flex: 1; display: flex; flex-direction: column; gap: 20px; }
        .contact-info-block { font-size: 1.15rem; line-height: 2; border-left: 2px solid rgba(255,255,255,0.4); padding-left: 20px; }
        .contact-info-block a { color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); transition: 0.3s; }
        .contact-info-block a:hover { border-bottom: 1px solid white; opacity: 0.8;}
        .contact-info-block i { opacity: 0.7; font-style: normal; display: inline-block; width: 25px; }

        .map-container iframe { width: 100%; height: 250px; border-radius: 15px; border: none; filter: grayscale(100%) invert(90%) contrast(1.2) opacity(0.8); transition: filter 0.4s ease; }
        .map-container iframe:hover { filter: grayscale(50%) invert(90%) contrast(1.2) opacity(1); }

        /* --- FORMULAIRE & NOTIFICATIONS --- */
        .contact-right { flex: 1; background: rgba(255,255,255,0.05); padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
        .contact-form { flex-direction: column; gap: 15px; }
        html[lang="fr"] form.lang-fr { display: flex; }
        
        .contact-form input, .contact-form textarea { width: 100%; background: rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 15px; color: white; font-family: 'Calibri', sans-serif; font-size: 1rem; transition: border 0.3s, background 0.3s; }
        .contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
        .contact-form input:focus, .contact-form textarea:focus { border-color: white; background: rgba(0,0,0,0.2); outline: none; }
        .contact-form textarea { resize: vertical; min-height: 120px; }
        
        .btn-submit { background: white; color: black; border: none; padding: 15px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: transform 0.2s, background 0.3s; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; width: 100%; margin-top: 10px; }
        .btn-submit:hover { transform: scale(1.02); background: #e0e0e0; }
        .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

        .form-status { padding: 15px; border-radius: 8px; text-align: center; font-weight: bold; font-size: 1rem; display: none; margin-top: 10px; animation: fadeIn 0.4s; }
        .form-status.success { display: block; background-color: rgba(76, 175, 80, 0.2); border: 1px solid rgba(76, 175, 80, 0.5); color: #fff; }
        .form-status.error { display: block; background-color: rgba(244, 67, 54, 0.2); border: 1px solid rgba(244, 67, 54, 0.5); color: #fff; }

        /* --- 9. ONGLETS & GALERIES --- */
        .tabs-nav { display: flex; gap: 30px; border-bottom: 1px solid rgba(255,255,255,0.3); margin-bottom: 30px; margin-top: 10px; flex-wrap: wrap;}
        .tab-btn { padding: 10px 0; font-size: 1.2rem; cursor: pointer; opacity: 0.4; transition: 0.3s; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; position: relative; }
        .tab-btn:hover { opacity: 0.8; }
        .tab-btn.active { opacity: 1; }
        .tab-btn.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background-color: white; }

        .tab-content { display: none; animation: fadeIn 0.5s ease; width: 100%; }
        .tab-content.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .project-theme { width: 100%; }
        .gallery-container { display: flex; width: 100%; height: 350px; gap: 10px; }
        .gallery-card { flex: 1; position: relative; border-radius: 20px; overflow: hidden; background-color: rgba(255,255,255,0.05); background-size: cover; background-position: center; transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.1); }
        .gallery-card::before { content: ""; position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%); z-index: 1; opacity: 0.8; transition: opacity 0.4s; }
        .gallery-card:hover { flex: 4; border-color: rgba(255,255,255,0.6); }
        .gallery-card:hover::before { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 70%);}
        
        .gallery-content { position: absolute; bottom: -20px; left: 20px; right: 20px; z-index: 2; opacity: 0; transition: all 0.5s ease; color: white; }
        .gallery-card:hover .gallery-content { bottom: 20px; opacity: 1; }
        .gallery-content h3 { margin: 0 0 5px 0; font-size: 1.2rem; white-space: nowrap; }
        .gallery-content p { margin: 0; font-size: 0.85rem; opacity: 0.8; display: none; }
        .gallery-card:hover .gallery-content p { display: block; }

        .gallery-title-vertical { position: absolute; bottom: 30px; left: 20px; z-index: 2; font-weight: bold; transform-origin: bottom left; transform: rotate(-90deg); white-space: nowrap; transition: opacity 0.3s; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }
        .gallery-card:hover .gallery-title-vertical { opacity: 0; }

        /* --- 10. LE LAB : ARTICLES --- */
        .tech-article { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; margin-top: 20px;}
        .tech-article:nth-child(even) { flex-direction: row-reverse; }
        .tech-text { flex: 1; }
        .tech-text h3 { font-family: 'Britannic Bold', sans-serif; font-size: 1.8rem; margin: 0 0 15px 0; color: white; letter-spacing: 1px; }
        .tech-text p { font-size: 1.05rem; line-height: 1.6; opacity: 0.85; margin: 0; text-align: justify; }
        .tech-img { width: 350px; height: 220px; border-radius: 20px; flex-shrink: 0; background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

        /* --- 11. RESPONSIVE --- */
        @media (max-width: 1000px) {
            .hero-text h1 { font-size: 1rem; }
            
            .columns-container { flex-direction: column; align-items: center; }
            .category-item { width: 100%; max-width: 500px; padding: 20px 10px; border-right: none; border-bottom: 2px solid rgba(255, 255, 255, 0.5); }
            .category-item:last-child { border-bottom: none; }
            
            .headline-nav-home { font-size: 2.2rem; }
            .category-item p { font-size: 0.9rem; }
            
            .page-secondary { flex-direction: column; gap: 20px; }
            .sidebar { width: 100%; max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 15px;}
            .logo-nav { width: 100%; margin-bottom: 15px; }
            
            .menu-sec { flex-direction: row; justify-content: space-around; flex-wrap: wrap; gap: 10px; width: 100%; }
            .text-nav-sec { text-align: center; }
            .text-nav-sec:hover { transform: translateY(-3px); }

            .header-sec { min-height: auto; align-items: flex-start; margin-top: 10px; }
            .gallery-container { flex-direction: column; height: auto; }
            .gallery-card { height: 120px; flex: none; }
            .gallery-card:hover { flex: none; height: 250px; }
            .gallery-title-vertical { transform: none; bottom: 20px; left: 20px; opacity: 1; }
            .tech-article, .tech-article:nth-child(even) { flex-direction: column; gap: 20px; text-align: left; }
            .tech-img { width: 100%; max-width: 400px; height: 200px; }
            .tabs-nav { justify-content: center; }
            .contact-wrapper { flex-direction: column; }
        }
