/* =========================================
   VARIABLES ET BASE
   ========================================= */
:root {
    --bg-dark: #09090b;
    --card-bg: #18181b;
    --border-color: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-1: #3b82f6; /* Bleu */
    --accent-2: #8b5cf6; /* Violet */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* =========================================
   TYPOGRAPHIE & BOUTONS
   ========================================= */
h1, h2, h3 {
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    padding: 16px 32px;
    border-radius: 50px; /* Style pilule très moderne */
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

#logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    margin-bottom: -6%;
}

/* =========================================
   NAVIGATION (GLASSMORPHISM)
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo .dot { color: var(--accent-1); }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-links a:not(.btn-primary) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:not(.btn-primary):hover {
    color: var(--text-main);
}

/* =========================================
   HERO SECTION (ACCUEIL)
   ========================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--accent-2);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 30px;
}

#hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Effets de lumière en arrière-plan */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.5;
}
.glow-1 {
    top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(59, 130, 246, 0.3);
}
.glow-2 {
    bottom: -10%; right: -10%; width: 600px; height: 600px; background: rgba(139, 92, 246, 0.2);
}

/* =========================================
   SECTIONS & CARTES
   ========================================= */
section { padding: 120px 5%; }

.section-header {
    text-align: center;
    margin-bottom: 80px;
}
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card .icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   ÉQUIPE
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(24,24,27,0.5) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.member-header h3 { font-size: 1.8rem; }

.team-member .role { display: block; color: var(--accent-2); font-weight: 600; margin-bottom: 20px; font-size: 0.9rem; }
.team-member p { color: var(--text-muted); font-style: italic; }

/* =========================================
   CONTACT
   ========================================= */
.contact-box {
    background-color: var(--card-bg);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-box h2 { margin-bottom: 15px; }
.contact-box > p { color: var(--text-muted); margin-bottom: 40px; }

#contact-form { display: flex; flex-direction: column; gap: 20px; align-content: center; }
.input-group { display: flex; gap: 20px; }

#contact-form input, #contact-form textarea {
    width: 100%; padding: 18px; border-radius: 12px;
    background-color: var(--bg-dark); border: 1px solid var(--border-color);
    color: var(--text-main); font-size: 1rem; transition: var(--transition);
}

#contact-form textarea { resize: vertical; min-height: 150px; }

#contact-form input:focus, #contact-form textarea:focus {
    border-color: var(--accent-1); outline: none; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.altcha-main {
    max-width: none !important;
    text-align: center;
    width: 100%;
}

.altcha-checkbox-wrap label {
    margin: 10px 0 0 20px;
}

.altcha-checkbox input:checked + svg {
    scale: 2 !important;
    margin: 7px 0 0 7px !important;
}


/* =========================================
   ANIMATIONS DE DÉFILEMENT (CLASSES)
   ========================================= */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal.active { opacity: 1; transform: translate(0); }

/* =========================================
   RESPONSIVE DESIGN AVANCÉ (Smartphones & Tablettes)
   ========================================= */

/* Affichage du bouton burger uniquement sur mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

@media screen and (max-width: 768px) {
    /* 1. Navigation et Menu Burger */
    .burger-menu {
        display: flex; /* Active le bouton burger */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        border-bottom: 1px solid var(--border-color);
        /* Animation d'apparition */
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* Classe ajoutée via JavaScript pour ouvrir le menu */
    .nav-links.nav-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* 2. Typographie et Espacements globaux */
    section { 
        padding: 80px 20px; 
    }
    
    .section-header { 
        margin-bottom: 40px; 
    }
    
    .section-header h2 { 
        font-size: 2.2rem; 
    }

    /* 3. Section Accueil (Hero) */
    #hero {
        padding: 120px 20px 60px;
    }
    
    #hero h1 { 
        font-size: 2.5rem; 
        margin-bottom: 20px; 
    }
    
    #hero p { 
        font-size: 1.05rem; 
        margin-bottom: 30px; 
    }
    
    .badge {
        font-size: 0.75rem;
    }

    /* 4. Cartes et Grilles */
    .services-grid, .team-grid { 
        gap: 20px; 
    }
    
    .service-card, .team-member, .contact-box { 
        padding: 25px 20px; 
    }

    .service-card .icon { 
        font-size: 2rem; 
    }
    
    .member-header {
        gap: 10px;
    }

    /* 5. Formulaire de contact */
    .input-group { 
        flex-direction: column; 
        gap: 15px; 
    }
    
    .btn-primary {
        width: 100%; /* Boutons pleine largeur sur mobile */
    }
}