/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #050505;       /* Noir quasi pur */
    --bg-panel: #0f1115;      /* Gris très sombre */
    
    /* Couleurs Tech (Orange/Rouge inspiré de votre demande) */
    --primary: #ff5e3a;       
    --primary-glow: rgba(255, 94, 58, 0.4);
    
    --text-white: #ededed;
    --text-gray: #8892b0;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Lueur d'ambiance en fond (bas de page) */
.global-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3 { font-weight: 800; letter-spacing: 0.05em; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.mono-label {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.85); /* Un peu plus opaque pour lisibilité */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.dot { color: var(--primary); }

.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-gray);
}
.nav-links a:hover { color: var(--text-white); }

.btn-nav {
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 4px;
}
.btn-nav:hover {
    border-color: var(--primary);
    background: rgba(255, 94, 58, 0.1);
    color: var(--primary);
}

/* --- HERO SECTION (AVEC IMAGE BACK2.JPG) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    /* Intégration de l'image de fond */
    background-image: linear-gradient(rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.1)), url('back2.jpg');
    background-size: cover; /* L'image couvre tout l'écran */
    background-position: center center; /* Centrée */
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2; /* Assure que le texte passe au dessus de l'image */
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Ombre pour lisibilité sur l'image */
}

.slogan {
    font-size: 1.2rem;
    color: #d1d5db; /* Blanc gris plus clair pour contraster avec le fond */
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-btns { display: flex; gap: 20px; justify-content: center; }

.btn-primary {
    background: var(--primary);
    color: black;
    padding: 15px 30px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 94, 58, 0.2);
}
.btn-primary:hover {
    background: white;
    box-shadow: 0 0 30px rgba(255,255,255,0.4);
}

.btn-secondary {
    background: rgba(0,0,0,0.5); /* Fond semi-transparent pour lisibilité */
    color: var(--text-white);
    padding: 15px 30px;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover { border-color: var(--text-white); background: rgba(0,0,0,0.8); }

/* --- SERVICES --- */
.services {
    padding: 120px 0;
    /* Ajout de l'image de fond sur la section services */
    background-image: url('back3.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 2.5rem; color: var(--text-white); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
}

/* CARTE TECH STYLE */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Style au survol uniquement : bordure et lueur orange */
.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255, 94, 58, 0.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-gray);
}

.card-tag {
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    transition: all 0.3s ease;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

/* Le titre devient blanc au survol pour contraster */
.card:hover h3 {
    color: white;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-features li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.card-features li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 10px;
}

/* Styles spécifiques pour la carte "featured" (IA) */
/* Par défaut, elle est sobre comme les autres */
.card.featured {
    /* border-color: var(--primary);  <-- Supprimé */
    /* background: rgba(15, 23, 42, 0.6); <-- Supprimé */
    /* box-shadow: 0 0 50px rgba(0,0,0,0.5); <-- Supprimé */
    /* transform: scale(1.05); <-- Supprimé */
    z-index: 10;
}

/* Au survol de la carte "featured", on applique l'effet orangé plus intense */
.card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 30px var(--primary-glow);
    border-color: var(--primary); /* S'assure que la bordure est orange */
}

/* Style du tag "RECOMMANDÉ" par défaut : discret */
.card-tag.recommended {
    /* background: var(--primary); <-- Supprimé */
    /* color: black; <-- Supprimé */
    /* border: none; <-- Supprimé */
    font-weight: 700;
    color: var(--primary);
    border-color: var(--primary);
}

/* Au survol de la carte, le tag "RECOMMANDÉ" devient orange plein */
.card:hover .card-tag.recommended {
    background: var(--primary);
    color: black;
}

/* Style du bouton par défaut : discret */
.btn-card {
    margin-top: 30px;
    display: block;
    width: 100%;
    text-align: center;
    /* background: var(--primary); <-- Supprimé */
    /* color: black; <-- Supprimé */
    padding: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

/* Au survol de la carte, le bouton devient orange plein */
.card:hover .btn-card {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- ABOUT (TERMINAL STYLE) --- */
.about { padding: 100px 0; background: #080808; }

.terminal-window {
    max-width: 800px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.terminal-header {
    background: #ff5e3a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.red { background: #000000; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.terminal-body { padding: 40px; font-family: var(--font-mono); font-size: 0.95rem; }
.mono-text { color: var(--primary); margin-bottom: 10px; opacity: 0.8; }
.highlight { color: white; font-size: 1.2rem; margin-bottom: 20px; display: block; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero {
        background-position: center top; /* Ajuste l'image sur mobile pour qu'on voit bien le cercle */
    }
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    /* On garde la carte featured sobre sur mobile aussi, sauf au survol (si applicable) */
    .card.featured { transform: scale(1); margin-top: 20px; }
    .hero-btns { flex-direction: column; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
footer { padding: 80px 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-gray); }
footer .logo { margin-bottom: 20px; display: block; color: white; }
