/* Styles Généraux */
:root {
    --primary-color: #2563eb;
    --dark-bg: #0f172a;
    --light-text: #f8fafc;
    --card-bg: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { background-color: var(--dark-bg); color: var(--light-text); line-height: 1.6; overflow-x: hidden; }

/* =========================================
   NAVIGATION (LA "PILULE FLOTTANTE")
   ========================================= */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: white; 
    letter-spacing: 1px; 
}

.logo span { color: var(--primary-color); }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 10px; 
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* =========================================
   ACCUEIL : ANIMÉ ET INTERACTIF
   ========================================= */
header#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 6rem 5% 2rem 5%;
    text-align: center;
    overflow: hidden;
}

#network-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hero-minimal { width: 100%; max-width: 900px; z-index: 2; position: relative; }
.hero-text-center { display: flex; flex-direction: column; align-items: center; }

.hero-badge-inline {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; color: #94a3b8; margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.pulse-dot {
    width: 10px; height: 10px; background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 10px #22c55e; animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-text-center h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 0.8rem; color: white; }
.gradient-text { background: linear-gradient(135deg, #60a5fa, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text-center h2 { font-size: 2rem; color: #94a3b8; margin-bottom: 1.5rem; font-weight: 500; }
.hero-description { font-size: 1.15rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 2rem; max-width: 650px; line-height: 1.7; }

.hero-action-buttons { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.btn { padding: 0.8rem 2rem; background: var(--primary-color); color: white; text-decoration: none; border-radius: 8px; font-weight: bold; transition: 0.3s; border: 2px solid var(--primary-color); cursor: pointer; }
.btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); }
.btn-outline { background: rgba(15, 23, 42, 0.5); border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: white; box-shadow: none; }

.hero-social-links-minimal { display: flex; gap: 2rem; margin-bottom: 3rem; }
.hero-social-links-minimal a { color: rgba(255, 255, 255, 0.5); font-size: 1.8rem; transition: 0.3s; }
.hero-social-links-minimal a:hover { color: var(--primary-color); transform: scale(1.1); }

/* MODULES INTERACTIFS DE COMPÉTENCES */
.expertise-map { display: flex; justify-content: center; gap: 1.5rem; width: 100%; }
.expertise-node { background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1rem; min-width: 250px; cursor: default; transition: 0.4s ease; backdrop-filter: blur(5px); overflow: hidden; }
.expertise-node:hover { border-color: var(--primary-color); background: rgba(30, 41, 59, 0.9); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2); transform: translateY(-5px); }
.node-header { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.1rem; font-weight: bold; color: white; }
.node-header i { color: var(--primary-color); font-size: 1.3rem; transition: 0.3s;}
.expertise-node:hover .node-header i { transform: scale(1.2); }
.node-details { max-height: 0; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease; }
.expertise-node:hover .node-details { max-height: 150px; opacity: 1; margin-top: 1rem; }
.node-details ul { list-style: none; text-align: left; }
.node-details li { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 5px; padding-left: 15px; position: relative; }
.node-details li::before { content: '>'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }


/* =========================================
   SECTIONS (TITRES STYLÉS)
   ========================================= */
section { padding: 5rem 10%; }

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--primary-color);
}


/* Parcours Académique */
.academic-timeline { display: flex; justify-content: space-between; align-items: flex-start; position: relative; max-width: 1000px; margin: 0 auto 3rem auto; padding-top: 2rem; }
.academic-timeline::before { content: ''; position: absolute; top: 50px; left: 0; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); z-index: 1; border-radius: 10px; }
.academic-step { flex: 1; text-align: center; position: relative; z-index: 2; padding: 0 15px; }
.step-icon { width: 60px; height: 60px; background: var(--dark-bg); border: 3px solid var(--primary-color); color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin: 0 auto 1.5rem auto; box-shadow: 0 0 15px rgba(37, 99, 235, 0.3); transition: 0.4s ease; }
.academic-step:hover .step-icon { background: var(--primary-color); color: white; transform: scale(1.15) rotate(10deg); box-shadow: 0 0 25px rgba(37, 99, 235, 0.6); }
.step-content { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 15px; padding: 1.5rem; transition: 0.3s; border-top: 3px solid transparent; }
.academic-step:hover .step-content { transform: translateY(-5px); background: rgba(30, 41, 59, 0.7); border-top: 3px solid var(--primary-color); }
.step-content h3 { font-size: 1.2rem; color: white; margin-bottom: 0.5rem; }
.step-content .date { color: #60a5fa; font-size: 0.9rem; font-weight: bold; margin-bottom: 1rem; display: block; }
.step-content p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* Carrousels */
.carousel-container { display: flex; flex-direction: column; align-items: center; width: 100%; }
.scroller-wrapper { max-width: 100%; overflow-x: auto; scroll-behavior: smooth; padding: 1rem 0; -ms-overflow-style: none; scrollbar-width: none; }
.scroller-wrapper::-webkit-scrollbar { display: none; }
.scroller-inner { display: flex; gap: 1.5rem; width: max-content; }
.carousel-controls { display: flex; gap: 1.5rem; margin-top: 2rem; }
.scroll-btn { background: var(--card-bg); color: var(--primary-color); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.scroll-btn:hover { background: var(--primary-color); color: white; transform: scale(1.1); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); }
.skill-tag { background: rgba(30, 41, 59, 0.5); padding: 1rem 2rem; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: bold; color: var(--light-text); white-space: nowrap; transition: 0.3s; }
.skill-tag:hover { background: rgba(30, 41, 59, 0.9); border-color: var(--primary-color); transform: translateY(-3px); }
.skill-tag i { color: var(--primary-color); font-size: 1.5rem; }

/* PROJETS : GRILLE 3x2 */
.modern-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; min-height: 850px; align-content: start; }
.modern-project-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.modern-project-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); }
.card-img { height: 180px; background-size: cover; background-position: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: white; }
.card-body p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.5rem; flex-grow: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags .tag { font-size: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.2); padding: 4px 12px; border-radius: 50px; color: rgba(255, 255, 255, 0.8); }
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 2rem; }
.page-num, .page-arrow { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: white; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.page-num:hover, .page-arrow:hover, .page-num.active { background: var(--primary-color); border-color: var(--primary-color); }
.page-arrow:disabled { opacity: 0.3; cursor: not-allowed; background: transparent; border-color: rgba(255, 255, 255, 0.2); }
.pagination-info { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin-top: 1rem; }

/* LIGNE DU TEMPS VERTICALE (STAGES) */
.vertical-timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.vertical-timeline::before { content: ''; position: absolute; top: 0; left: 40px; height: 100%; width: 4px; background: linear-gradient(to bottom, var(--primary-color), transparent); border-radius: 50px; }
.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 100px; }
.timeline-dot { position: absolute; left: 22px; top: 0; width: 40px; height: 40px; background: var(--dark-bg); border: 3px solid var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--primary-color); font-size: 1.2rem; z-index: 2; box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); transition: 0.3s; }
.timeline-item:hover .timeline-dot { background: var(--primary-color); color: white; transform: scale(1.1); box-shadow: 0 0 25px rgba(37, 99, 235, 0.7); }
.timeline-content { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 15px; padding: 2rem; position: relative; transition: 0.3s; }
.timeline-content:hover { transform: translateX(10px); background: rgba(30, 41, 59, 0.7); border-color: rgba(37, 99, 235, 0.3); }
.timeline-content::before { content: ''; position: absolute; left: -10px; top: 15px; border-width: 10px 10px 10px 0; border-style: solid; border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent; }
.timeline-date { display: inline-block; padding: 5px 15px; background: rgba(37, 99, 235, 0.2); color: #60a5fa; border-radius: 50px; font-size: 0.85rem; font-weight: bold; margin-bottom: 1rem; border: 1px solid rgba(37, 99, 235, 0.3); }
.timeline-content h3 { font-size: 1.4rem; color: white; margin-bottom: 0.2rem; }
.timeline-content .company { font-size: 1rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1.5rem; font-weight: normal; }
.task-list { margin-top: 1rem; padding-left: 1.5rem; color: rgba(255, 255, 255, 0.85); }
.task-list li { margin-bottom: 0.8rem; }

/* CONTACT À DEUX COLONNES */
.contact-wrapper { display: flex; gap: 3rem; background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 4rem 3rem; max-width: 1100px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info h3 { font-size: 1.8rem; color: var(--light-text); margin-bottom: 0.5rem; }
.contact-info p { color: rgba(255, 255, 255, 0.7); margin-bottom: 1rem; }
.info-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; color: var(--light-text); }
.info-item i { width: 40px; height: 40px; background: rgba(37, 99, 235, 0.2); color: var(--primary-color); display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 1.2rem; }
.info-item a { color: var(--light-text); text-decoration: none; transition: 0.3s; }
.info-item a:hover { color: var(--primary-color); }
.contact-form-container { flex: 1.5; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group { display: flex; gap: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem 1.2rem; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: var(--light-text); font-size: 1rem; transition: 0.3s; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); background: rgba(15, 23, 42, 0.9); box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); }
.contact-form button { cursor: pointer; border: none; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 1.2rem; border-radius: 10px; margin-top: 0.5rem; transition: 0.3s; }

footer { text-align: center; padding: 3rem; background: #020617; opacity: 0.7; }

/* =========================================
   RESPONSIVE (MOBILES ET TABLETTES)
   ========================================= */
@media (max-width: 1024px) {
    .modern-project-grid { grid-template-columns: repeat(2, 1fr); min-height: auto; }
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); flex-direction: column; padding: 1rem 0; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); margin-top: 15px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links li { text-align: center; margin: 0; }
    .nav-links a { display: block; padding: 15px; font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero-text-center h1 { font-size: 3rem; }
    .hero-text-center h2 { font-size: 1.6rem; }
    .hero-description { font-size: 1rem; }
    .hero-action-buttons { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-action-buttons .btn { width: 100%; text-align: center; }
    
    .expertise-map { flex-direction: column; gap: 1rem; }
    .expertise-node { width: 100%; min-width: auto; }
    
    section { padding: 4rem 5%; }
    .carousel-controls { display: none; }
    
    .academic-timeline { flex-direction: column; align-items: center; }
    .academic-timeline::before { display: none; }
    .academic-step { margin-bottom: 2rem; width: 100%; }

    .modern-project-grid { grid-template-columns: 1fr; min-height: auto; }
    
    .vertical-timeline::before { left: 20px; }
    .timeline-item { padding-left: 60px; }
    .timeline-dot { left: 2px; width: 35px; height: 35px; font-size: 1rem; }

    .contact-wrapper { flex-direction: column; padding: 2rem; }
    .input-group { flex-direction: column; gap: 1.5rem; }
}