/* ========================================= */
/* 1. VARIABLES & AMBIANCE (PREMIUM DARK)    */
/* ========================================= */
:root {
    --bg-color: #0a0a0b;       /* Fond presque noir */
    --card-bg: #161618;        /* Gris anthracite cartes */
    --card-border: rgba(255, 255, 255, 0.08);
    
    --primary: #3b82f6;        /* Bleu roi */
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #64748b;      /* Bleu Ardoise */
    
    --text-main: #f1f5f9;      
    --text-muted: #94a3b8;
    
    --radius: 20px;
    --font-family: 'Inter', sans-serif;
    
    --terminal-bg: #0f1014;
    --terminal-green: #00ff41;
    --terminal-yellow: #ffcc00;
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-main);
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4, h5 { font-weight: 700; margin-bottom: 0.8em; color: var(--text-main); }
h1 { 
    font-size: 3em; text-align: center; 
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
h2 { font-size: 1.2em; font-weight: 400; color: var(--text-muted); text-align: center; margin-top: 0; }
h3 { font-size: 2.2em; text-align: center; margin-bottom: 50px; }
h3::after {
    content: ""; display: block; width: 40px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto 0; border-radius: 2px;
}
p { color: var(--text-muted); margin-bottom: 1.2em; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* ========================================= */
/* --- HEADER & NAVIGATION ---               */
/* ========================================= */
header {
    background-color: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }

/* Identité */
.logo-group h1 { font-size: 1.6em; margin: 0; text-align: left; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-group h2 { font-size: 0.85em; margin: 0; text-align: left; color: var(--primary); font-weight: 500; }

/* Menu PC */

nav ul { 
    display: flex; 
    gap: 20px; /* J'ai réduit un peu l'écart (de 25px à 20px) pour que tout rentre bien */
    list-style: none; 
    margin: 0; 
    padding: 0; 
    align-items: center; /* Assure que tout est bien aligné verticalement */
}

nav ul li a { 
    color: var(--text-muted); 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-weight: 500; 
    transition: color 0.3s; 
    
    /* LA CORRECTION EST ICI : */
    white-space: nowrap; /* Interdit le retour à la ligne */
}

nav ul li a:hover { 
    color: white; 
    background: rgba(255,255,255,0.05); 
}

.hamburger { display: none; } /* Caché PC */

/* --- MENU MOBILE (< 900px) --- */
@media (max-width: 900px) {
    .logo-group h1 { font-size: 1.3em; }
    .logo-group h2 { display: none; }
    
    .hamburger { display: block; font-size: 1.6em; color: white; cursor: pointer; }

    nav ul {
        display: none; flex-direction: column; width: 100%; position: absolute;
        top: 100%; left: 0;
        background-color: #050505; /* Noir Opaque */
        border-top: 1px solid #222; border-bottom: 2px solid var(--primary);
        box-shadow: 0 20px 40px rgba(0,0,0,0.9);
        padding: 10px 0; gap: 0;
    }
    nav ul li { width: 100%; text-align: center; }
    nav ul li a { display: block; padding: 15px; font-size: 1.1em; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    nav ul li a:hover { background-color: rgba(59, 130, 246, 0.1); color: var(--primary); }
    nav ul.active { display: flex; animation: slideDown 0.3s ease-out; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================= */
/* --- CONTENU, SECTIONS & ANIMATIONS ---    */
/* ========================================= */
.section-padding { padding: 80px 0; }

/* Animation fluide (Cubic Bezier) */
.content-box, .projet-card, .about-text, .about-formations, .comp-item {
    background: var(--card-bg); 
    border: 1px solid var(--card-border);
    border-radius: var(--radius); 
    padding: 30px; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    height: 100%; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* EFFET AU SURVOL (HOVER) - Contour bleu roi + lueur */
.content-box:hover, 
.projet-card:hover, 
.about-formations:hover,
.comp-item-link:hover .comp-item {
    transform: translateY(-6px);
    border-color: var(--primary); 
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

/* Accueil Terminal */
.accueil-hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 0; }
.terminal-box { width: 100%; max-width: 900px; background-color: var(--terminal-bg); border: 1px solid #333; border-radius: 12px; overflow: hidden; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.terminal-body { padding: 40px; height: 400px; font-family: 'Courier New', monospace; font-size: 1.4em; text-align: left; color: var(--terminal-green); }

/* À Propos */
.about-flex { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 30px; align-items: start; }
.about-formations h4 { color: var(--text-muted); font-size: 0.9em; text-transform: uppercase; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; margin-bottom: 20px; }
.about-formations ul { list-style: none; padding: 0; }
.about-formations li { margin-bottom: 15px; padding-left: 15px; border-left: 2px solid var(--secondary); }
.about-cv-btn { 
    color: var(--primary) !important; 
    text-decoration: underline; 
    font-weight: bold; 
    background: none; 
    margin-top: 15px; 
    display: inline-block; 
    transition: 0.3s;
}
.about-cv-btn:hover { color: white !important; text-shadow: 0 0 10px var(--primary-glow); }

/* Compétences */
.competences-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.comp-item-link { display: block; height: 100%; }
.comp-item { 
    background: linear-gradient(145deg, #1c1c1f, #161618); 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; 
    padding: 40px 20px; 
}
.comp-item strong { color: white; font-size: 1.2em; margin-bottom: 5px; }

/* Projets & BTS Block */
.bts-info-block { margin-top: 30px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px; border-left: 4px solid var(--primary); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.bts-info-block:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.bts-info-block h4 { color: white; margin-bottom: 10px; }


/* =================================================================== */
/* --- NOUVEAUX BOUTONS BLOCS (Style Gélule - Alignés Gauche) --- */
/* =================================================================== */
.blocs-container {
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    width: 100%; /* PREND TOUTE LA LARGEUR */
    margin: 0;   /* ALIGNÉ À GAUCHE (Plus de centrage auto) */
}

.bloc-btn-premium {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px; /* Forme Gélule */
    padding: 25px 40px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animation fluide */
}

/* LE TITRE EN BLANC PUR */
.bloc-btn-premium h4 {
    margin: 0; font-size: 1.3em; font-weight: 700;
    color: #ffffff !important; /* BLANC */
    background: none !important; -webkit-text-fill-color: #ffffff !important;
}

/* La flèche */
.bloc-btn-premium .arrow-icon {
    color: var(--primary); font-size: 1.5em; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Effet Survol */
.bloc-btn-premium:hover {
    border-color: var(--primary); /* Contour Bleu Roi */
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}
.bloc-btn-premium:hover .arrow-icon { transform: translateX(10px); color: white; }


/* Liens Stage */
.stage-link { color: var(--text-muted); border-bottom: 1px dotted transparent; }
.stage-link:hover { color: var(--primary); border-bottom-color: var(--primary); padding-left: 5px; }

/* Contact Form (Champs Blancs) */
.clean-form label { display: block; margin-bottom: 8px; font-weight: bold; color: #ddd; }
.clean-form input, .clean-form textarea { width: 100%; padding: 12px; background-color: #ffffff; border: 1px solid #ccc; border-radius: 4px; color: #000; margin-bottom: 20px; font-family: inherit; }
.btn-envoyer { background-color: #111827; color: white; padding: 12px 25px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-envoyer:hover { background-color: var(--primary); }
.contact-split-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }
.direct-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.direct-item i { font-size: 1.8em; color: #ccc; width: 30px; text-align: center; }

/* Footer & Divers */
footer { margin-top: 100px; padding: 80px 0; background: #050505; border-top: 1px solid var(--card-border); text-align: center; }
.contact-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.contact-link:hover { color: white; }
hr { margin: 50px 0; border-color: var(--card-border); }
.veille-link { color: var(--primary); font-weight: bold; }

@media (max-width: 768px) {
    .about-flex, .contact-split-layout { grid-template-columns: 1fr; }
    .accueil-hero { padding-top: 80px; }
    .terminal-box { width: 100%; }
}
/* ========================================= */
/* --- PAGE CONTACT (MISE EN PAGE)       --- */
/* ========================================= */

.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% gauche, 50% droite */
    gap: 40px;
}

@media (max-width: 800px) {
    .contact-split-layout {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}

.direct-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- LE FORMULAIRE --- */
.clean-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-main);
}

.clean-form input, 
.clean-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #ffffff; /* Fond blanc */
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #000;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1em;
}

.clean-form input:focus, 
.clean-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-envoyer {
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1em;
    width: 100%; /* Bouton pleine largeur */
}

.btn-envoyer:hover {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}
/* Fin style.css : Correction terminal + compteur */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
nav ul.active { animation: slideDown 0.3s ease-out; }

/* Compétences : badge niveau */
.comp-item small { font-size: 0.8em; color: var(--secondary); }
