/* =========================================
   1. IMPORTATION DES POLICES
   ========================================= */

/* Montserrat */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* Inter */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/inter-v20-latin-800.woff2') format('woff2');
}

/* =========================================
   2. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #2997ff; /* Apple Blue */
    --accent-glow: rgba(41, 151, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   3. ANIMATIONS BACKGROUND (BLOBS)
   ========================================= */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 { width: 400px; height: 400px; background: #4c1d95; top: -10%; left: -10%; }
.blob-2 { width: 300px; height: 300px; background: #005fcc; bottom: 20%; right: -5%; animation-delay: -5s; }
.blob-3 { width: 250px; height: 250px; background: #be185d; bottom: -10%; left: 30%; animation-delay: -10s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, -50px) scale(1.1); }
}

/* =========================================
   4. COMPOSANTS UTILITAIRES
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: box-shadow 0.3s;
}
.btn-primary:hover { box-shadow: 0 0 20px var(--accent-glow); }

.glass-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* =========================================
   5. NAVIGATION (DESKTOP PAR DÉFAUT)
   ========================================= */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px; 
}

.logo-container img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: 1.5px;
}

.logo-container:hover img { transform: scale(1.05); }
.logo-container:hover .logo-text { color: var(--accent); transition: color 0.3s ease; }

/* Liens Nav Desktop */
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Burger (Caché sur Desktop) */
.burger {
    display: none;
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* =========================================
   6. SÉLECTEUR DE LANGUE (DESKTOP)
   ========================================= */
.language-dropdown {
    position: relative;
    margin-left: 20px;
    list-style: none;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: auto;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.fi {
    font-size: 1.1rem;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Menu Desktop (Flottant) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    max-height: 50vh; 
    overflow-y: auto;
    
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    
    display: none; 
    flex-direction: column;
    gap: 2px;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.dropdown-menu.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ccc;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 20px;
}

/* Scrollbar */
.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* =========================================
   7. SECTIONS PRINCIPALES (Hero, Services, etc.)
   ========================================= */
section { padding: 5rem 10%; scroll-margin-top: 80px;}
.section-title { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    text-align: center;
}
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grids */
.services-grid, .apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }

/* Portfolio */
.app-image-placeholder {
    width: 100%;
    height: 180px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    margin-right: 0.5rem;
}

/* Support Tabs */
.full-width { width: 100%; max-width: 900px; margin: 0 auto; }
.tabs { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--text-main); border-bottom: 2px solid var(--accent); }

.tab-content { display: none; animation: fadeIn 0.5s; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

footer { text-align: center; padding: 2rem; margin-top: 3rem; border-top: 1px solid var(--glass-border); }


/* =======================================================
   8. RESPONSIVE MOBILE & TABLETTE (Menu Unifié)
   ======================================================= */

@media screen and (max-width: 768px) {
    
    /* Global Mobile */
    body { overflow-x: hidden; }
    .hero h1 { font-size: 2.5rem; }
    section { padding: 3rem 5%; }

    /* BURGER MENU */
    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001; /* Au-dessus du menu déroulant */
    }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* CONTENEUR DU MENU MOBILE */
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        padding-top: 80px; /* Espace sous le header */
        
        background-color: #000000; /* FOND NOIR SOLIDE */
        
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        
        transform: translateX(100%); /* Caché à droite */
        transition: transform 0.4s ease-in-out;
        
        overflow-y: auto; /* Scroll possible */
        z-index: 998;
    }

    .nav-links-mobile {
        transform: translateX(0%);
    }

    /* LIENS DU MENU */
    .nav-links li {
        margin: 1.5rem 0;
        opacity: 1 !important; /* VISIBILITÉ FORCÉE */
    }

    .nav-links a {
        color: white !important;
        font-size: 1.3rem;
        font-weight: 500;
        display: block;
    }

    /* SÉLECTEUR LANGUE MOBILE (Accordéon) */
    .language-dropdown {
        width: 80%;
        margin: 20px auto 50px auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .dropdown-toggle {
        width: 100%; 
        padding: 15px;
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
        justify-content: space-between;
        border: 1px solid rgba(255,255,255,0.2);
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static; /* Pas de flottement */
        width: 100%;
        margin-top: 5px;
        transform: none;
        
        background-color: #1a1a1a !important; /* GRIS FONCÉ SOLIDE */
        backdrop-filter: none !important;
        
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: none;
        max-height: 300px;
        
        display: none; 
    }

    .dropdown-menu.show {
        display: flex;
        opacity: 1 !important;
    }

    .dropdown-item {
        color: #ffffff !important;
        padding: 15px;
        font-size: 1rem;
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-item:active, .dropdown-item:hover {
        background-color: var(--accent);
    }
}