/* --- Variables & Reset --- */
:root {
    --bg-color: #050a14;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-main: linear-gradient(135deg, #00C6FF 0%, #BD34FE 50%, #FF4B2B 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: none; /* Firefox */
}

html, body {
    scrollbar-width: none; /* Firefox */
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}


h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* Image responsive par défaut */
img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.logo img {
    width: 40%;
    max-width: 500px;
    height: 100px;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00C6FF;
}

.btn-nav {
    background: var(--gradient-main);
    padding: 8px 20px;
    border-radius: 50px;
    color: white !important;
}

/* Burger Menu (Hidden on Desktop) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh; /* Utilise min-height au lieu de height fixe */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 60px; /* Padding haut pour compenser la navbar */
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Taille adaptative : clamp(min, ideal, max) */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne si besoin */
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    font-size: 1rem;
    display: inline-block;
}

.btn2 {
    padding: 9px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 5px 15px rgba(189, 52, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(189, 52, 254, 0.5);
}

.btn-secondary {
    border: 2px solid #BD34FE;
    color: white;
}

.btn-secondary:hover {
    background: rgba(189, 52, 254, 0.1);
}

/* Glow Effect */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.15) 0%, rgba(5, 10, 20, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- Services --- */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    /* Grid 100% responsive automatique */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #BD34FE;
    background: rgba(255, 255, 255, 0.08);
}

.icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
}

.contact-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.contact-form input, 
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: white;
    font-family: inherit;
    width: 100%;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #00C6FF;
}

/* --- Footer --- */
footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permet le stacking sur mobile */
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-left: 15px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #BD34FE;
}

/* =========================================
   MEDIA QUERIES (LE COEUR DU RESPONSIVE)
   ========================================= */

/* Tablettes et écrans moyens (max 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

/* Mobiles (max 768px) */
@media screen and (max-width: 768px) {
    
    /* Navigation Mobile */
    body {
        overflow-x: hidden;
        
    }
    
    .nav-links {
        position: fixed;
        right: 0px;
        height: calc(100vh - var(--nav-height));
        top: var(--nav-height);
        background-color: #050a14;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        border-top: 1px solid rgba(255,255,255,0.1);
        gap: 40px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0; /* Pour l'animation JS */
    }

    .burger {
        display: block;
    }

    /* Burger Animation Classes */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero */
    .hero-content {
        padding-top: 0;
    }

    .hero h1 {
        font-size: 2.2rem; /* Plus petit sur mobile */
    }

    .hero-btns {
        flex-direction: column; /* Boutons l'un sous l'autre */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%; /* Boutons pleine largeur */
        text-align: center;
    }

    /* Contact */
    .contact-box {
        padding: 25px 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icons a {
        margin: 0 10px; /* Espace autour des icônes quand centré */
    }
}

/* Très petits écrans (max 400px) */
@media screen and (max-width: 400px) {
    .logo span {
        font-size: 0.9rem; /* Réduire la taille du logo si le nom est long */
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Animation Keyframes pour le menu */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Legal Page --- */
.legal-section {
    padding: 140px 0 80px;
}

.legal-section h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.legal-block {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 35px 30px;
    margin-bottom: 30px;
}

.legal-block h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-back {
    display: block;
    margin: 50px auto 0;
    max-width: 260px;
    text-align: center;
}
