/* ==========================================================================
   STYLE GLOBAL - PORTFOLIO GEII
   Thème : Hybride (Structure Dashboard + Contenu Aventure)
   ========================================================================== */

/* 1. POLICES & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
    /* --- PALETTE DE COULEURS --- */
    --bg-body: #ffffff;
    --bg-sidebar: #0f172a;    /* Bleu nuit profond (Slate 900) */
    --bg-light: #f8fafc;      /* Gris très clair (Slate 50) */
    
    --text-main: #334155;     /* Gris anthracite (Slate 700) */
    --text-muted: #64748b;    /* Gris moyen (Slate 500) */
    --text-sidebar: #cbd5e1;  /* Blanc cassé pour le menu */
    
    /* --- ACCENTS --- */
    --primary: #0f172a;       /* Bleu Nuit (Sérieux) */
    --accent: #10b981;        /* Vert Émeraude (Nature/Sûreté) */
    --highlight: #f59e0b;     /* Jaune (Focus/Alerte) */
    
    /* --- DIMENSIONS --- */
    --sidebar-width: 260px;
    --radius: 16px;           /* Arrondi standard */
    --radius-sm: 8px;         /* Petit arrondi */
    
    /* --- OMBRES --- */
    --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* 2. RESET & BASES */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 3. SIDEBAR (NAVIGATION) */
.sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: white;
    z-index: 1000;
    padding: 0;
    display: flex; flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
}

/* Liens du menu */
.nav-link {
    color: var(--text-sidebar);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex; align-items: center;
    font-size: 0.95rem;
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5); /* Icône discrète par défaut */
    transition: color 0.2s;
}

/* État Survol & Actif */
.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent);
}
.nav-link:hover i, .nav-link.active i {
    color: white; /* Icône blanche quand actif */
}

/* 4. CONTENU PRINCIPAL */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: 100vh;
}

/* 5. HERO SECTION (ACCUEIL & PAGES) */
.hero-adventure {
    position: relative;
    padding: 100px 60px;
    background-color: var(--bg-light);
    min-height: 85vh;
    display: flex; align-items: center;
    border-bottom: 1px solid #e2e8f0;
    /* Grille technique subtile */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-bg-shape {
    position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
    background: var(--primary);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; padding-right: 40px; }

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 15px; display: block;
}

.hero-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; }
.hero-text {
    font-size: 1.15rem; color: var(--text-muted);
    line-height: 1.7; margin-bottom: 35px; max-width: 600px;
    border-left: 3px solid #cbd5e1; padding-left: 20px;
}

/* Photo Profil (Style Carte) */
.profile-card-hero {
    position: relative; z-index: 2;
    background: white; padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transform: rotate(2deg);
    transition: transform 0.3s;
    max-width: 360px; margin: 0 auto;
}
.profile-card-hero:hover { transform: rotate(0deg); box-shadow: var(--shadow-hover); }
.profile-card-hero img { border-radius: var(--radius-sm); width: 100%; display: block; }


/* 6. CARTES & ÉLÉMENTS GRAPHIQUES */

/* Cartes génériques (Projets, Passions, Timeline) */
.passion-card, .project-card, .step-card, .certif-card, .value-card, .teaser-card, .status-panel {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 30px;
    height: 100%;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.passion-card:hover, .project-card:hover, .teaser-card:hover, .certif-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* Icônes Carrées */
.passion-icon, .icon-box, .icon-circle {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Thèmes Couleurs */
.bg-climb, .theme-radio { background: #ecfdf5; color: #059669; border-color: #a7f3d0; } /* Vert */
.bg-game, .theme-ventil { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; } /* Bleu */
.bg-team, .theme-elec, .theme-human { background: #fff7ed; color: #ea580c; border-color: #fed7aa; } /* Orange */
.theme-default { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }


/* 7. SECTION TEASER (Pied de page accueil) */
.section-teaser {
    background: var(--primary); color: white;
    padding: 80px 60px;
}
.teaser-card {
    background: rgba(255,255,255,0.05) !important; /* Force la transparence sur fond sombre */
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white; text-decoration: none;
    box-shadow: none;
}
.teaser-card:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.3) !important;
    transform: translateY(-4px);
}
.teaser-title { color: white; margin-bottom: 5px; font-weight: 700; }
.teaser-desc { color: #94a3b8; font-size: 0.85rem; }


/* 8. BOUTONS & BADGES */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    font-size: 0.85rem;
}
.btn-primary, .btn-dark {
    background-color: var(--primary); border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2);
}
.btn-primary:hover, .btn-dark:hover {
    background-color: #1e293b; border-color: #1e293b;
    transform: translateY(-1px);
}
.btn-outline-dark, .btn-outline-light { border-width: 2px; }

/* Badges & Tags */
.badge, .tech-pill, .skill-tag, .card-badge {
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    text-transform: uppercase;
    font-size: 0.7rem;
}
.skill-tag, .tech-pill {
    background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569;
    display: inline-block; margin-right: 4px; margin-bottom: 4px;
}
.badge-pro { background-color: var(--primary); color: white; }
.badge-ecole { background-color: var(--secondary); color: white; }


/* 9. MODALES & CARROUSEL */
.modal-content { border-radius: var(--radius); border: none; overflow: hidden; }
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 1.5rem 2rem; }
.modal-body { padding: 2rem; }

.carousel-item img {
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}
.carousel-placeholder {
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #e2e8f0;
    border-radius: var(--radius-sm);
    color: #adb5bd;
}


/* 10. RESPONSIVE (Mobile) */
.navbar-mobile { display: none; background: var(--primary); }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .main-content { margin-left: 0; padding-top: 60px; } /* Espace pour la navbar mobile */
    .navbar-mobile { display: flex; }
    
    .hero-section, .hero-adventure {
        flex-direction: column-reverse;
        padding: 60px 20px;
        text-align: center;
    }
    .hero-bg-shape { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-text { border-left: none; padding-left: 0; margin-bottom: 30px; }
    
    .profile-card-hero { width: 100%; margin-bottom: 40px; transform: rotate(0); }
    
    .section-adn, .section-teaser { padding: 60px 20px; }
}
/* DANS css/style.css */

body {
    /* On force la même police partout */
    font-family: 'Segoe UI', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #334155;
    overflow-x: hidden;
}

/* On s'assure que le titre de la sidebar utilise bien cette police et le bon gras */
.sidebar-brand-text {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 800; /* Le gras très fort */
    letter-spacing: 2px;
}