
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --ink: #0d1117;
    --ink2:      #1e2733;
    --muted:     #5a6a80;
    --muted2:    #8a9bb0;
    --accent:    #1e6fff;
    --accent2:   #0a4cd9;
    --gold:      #c9a84c;
    --gold-lt:   #f0d98a;
    --success:   #10b981;
    --bg: #eef2f5;
    --bg2: #e1e5ed;
    --white: #f9fbfd;
    --border:    rgba(0,0,0,0.08);
    --sidebar-w: 320px;
    --r:         16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

/* ===== SIDEBAR PREMIUM ===== */
.sidebar {
    width: var(--sidebar-w);
    position: fixed;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(135deg, #0a0f1a 0%, #141b28 50%, #0f1620 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(30,111,255,0.2);
    border-radius: 3px;
}

/* Logo / Profile Section Premium */
.sidebar-logo {
    padding: 1.5rem 2rem 1rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(30,111,255,0.12) 0%, rgba(201,168,76,0.06) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-container {
    position: relative;
    margin-bottom: 1.5rem;
}
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.logo-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--accent), var(--gold));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(30,111,255,0.35);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    object-fit: cover;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.logo-text span {
    color: var(--gold-lt);
    font-style: italic;
    display: block;
    margin-top: 4px;
}

/* Navigation Premium */
.sidebar-nav {
    flex: 1;
    padding: 0.6rem 0.1rem;
}

.nav-section-label {
    color: rgba(255,255,255,0.2);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0 1.2rem;
    margin-bottom: 1.2rem;
    margin-top: 1.2rem;
}

.nav-section-label:first-child {
    margin-top: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.5rem 1rem;
    margin: 0.35rem 0;
    border-radius: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.28s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(30,111,255,0.2), rgba(30,111,255,0.05));
    border-left: 3px solid var(--accent);
    padding-left: calc(1.2rem - 3px);
}

.nav-link.active .nav-icon {
    background: var(--accent);
    color: #fff;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.2rem 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent), #0a4cd9);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== MAIN ===== */
.main {
    margin-left: var(--sidebar-w);
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    background: var(--ink2);
    display: flex;
    align-items: center;
    padding: 80px 72px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
            radial-gradient(ellipse 60% 80% at 80% 50%, rgba(30,111,255,0.15), transparent),
            radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,0.1), transparent);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 750px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 111, 255, 0.07);
    border: 1px solid rgba(30,111,255,0.28);
    color: #7eb3ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 28px;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 16px;
}

.hero-name span {
    color: var(--gold-lt);
    font-style: italic;
}

.hero-title {
    font-size: 1.18rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--gold-lt);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
    align-self: stretch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0a4cd9);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30,111,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(30,111,255,0.45);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    padding: 14px 30px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 72px;
}

section:nth-child(even) { background: var(--white); }
section:nth-child(odd) { background: var(--bg); }

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sec-label::before {
    content: '';
    width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(30,111,255,0.3));
    border-radius: 2px;
    flex-shrink: 0;
}

.sec-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 60px;
    color: var(--ink);
}

/* ===== BIOGRAPHIE ===== */
.bio-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.bio-text p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 22px;
    text-align: justify;
}

.bio-text p strong { color: var(--ink); font-weight: 600; }

.bio-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg2);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.highlight-item .hi-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), #0a4cd9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.highlight-item h5 { font-size: 0.8rem; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.highlight-item p { font-size: 0.92rem; color: var(--ink); font-weight: 600; margin: 0; }

.bio-card {
    background: var(--ink2);
    border-radius: 24px;
    padding: 32px;
    color: #fff;
    position: sticky;
    top: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.bio-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.bio-info-list { list-style: none; }

.bio-info-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.86rem;
}

.bio-info-list li:last-child { border-bottom: none; }

.bio-info-list .bi-icon {
    width: 32px; height: 32px;
    background: rgba(30,111,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7eb3ff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.bio-info-list .bi-label { color: rgba(255,255,255,0.4); font-size: 0.72rem; display: block; font-weight: 500; }
.bio-info-list .bi-val { color: rgba(255,255,255,0.9); font-weight: 600; }

.interests-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.interest-tag {
    background: rgba(30,111,255,0.15);
    border: 1px solid rgba(30,111,255,0.25);
    color: #7eb3ff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 22px;
}

/* ===== EXPÉRIENCE ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(30,111,255,0.1));
}

.tl-item {
    position: relative;
    margin-bottom: 48px;
    padding: 32px 36px;
    background: var(--white);
    border-radius: 20px;
    border: 1.5px solid var(--border);
    transition: all 0.35s ease;
}

section:nth-child(even) .tl-item { background: var(--bg); }

.tl-dot {
    position: absolute;
    left: -47px; top: 40px;
    width: 16px; height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 4px rgba(30,111,255,0.25);
}

.tl-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30,111,255,0.12);
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 22px;
    margin-bottom: 14px;
}

.tl-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}

.tl-org {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tl-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

.tl-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tag {
    background: var(--bg2);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 22px;
    border: 1px solid var(--border);
}

/* ===== FORMATION ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.edu-card {
    background: rgba(229, 233, 239, 0.64) !important;

    border-radius: 22px;
    padding: 32px;
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

section:nth-child(even) .edu-card { background: var(--white); }

.edu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.edu-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--accent), #0a4cd9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(30,111,255,0.25);
}

.edu-degree {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.edu-school { font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.edu-years { font-size: 0.8rem; color: var(--muted2); margin-bottom: 14px; font-weight: 500; }
.edu-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7;text-align: justify }

.edu-mention {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 22px;
}

/* ===== CERTIFICATIONS ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.cert-card {
    background: var(--white);
    border-radius: 22px;
    padding: 32px;
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

section:nth-child(even) .cert-card { background: var(--white); }

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), #06b6d4);
}

.cert-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(6,182,212,0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    border: 1.5px solid rgba(16,185,129,0.2);
}

.cert-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}

.cert-issuer {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 12px;
}

.cert-date {
    font-size: 0.8rem;
    color: var(--muted2);
    margin-bottom: 14px;
}

.cert-id {
    font-size: 0.78rem;
    color: var(--muted);
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.02);
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: auto;
    word-break: break-all;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16,185,129,0.15);
    color: var(--success);
    font-size: 0.73rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 12px;
    width: fit-content;
}

/* ===== ENSEIGNEMENT ===== */
.teach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.teach-intro p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 18px;text-align: justify;
}

.teach-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.teach-stat {
    background: var(--ink2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

.teach-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--gold-lt);
    font-weight: 700;
    margin-bottom: 6px;
}

.teach-stat span { font-size: 0.76rem; color: rgba(255,255,255,0.4); font-weight: 600; }

.courses-list { display: flex; flex-direction: column; gap: 18px; }

.course-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
}

section:nth-child(even) .course-item { background: var(--bg); }

.course-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(30, 111, 255, 0.33);
    min-width: 40px;
    line-height: 1;
    margin-top: 2px;
}

.course-info h5 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.course-info p { font-size: 0.82rem; color: var(--muted); margin: 0; }

.course-level {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}


.lv-l1 { background: rgba(30,111,255,0.1); color: var(--accent); }
.lv-l2 { background: rgba(201,168,76,0.12); color: #b89030; }
.lv-l3 { background: rgba(34,197,94,0.12); color: #16a34a; }
.lv-m1 { background: rgba(168,85,247,0.12); color: #9333ea; }
.lv-m2 { background: rgba(239,68,68,0.12); color: #dc2626; }

/* ===== PUBLICATIONS ===== */
.pub-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn-enc{
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.filter-btn-enc.active, .filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.filter-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pub-list { display: flex; flex-direction: column; gap: 24px; }

.pub-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    border: 1.5px solid var(--border);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

section:nth-child(even) .pub-card { background: var(--bg); }

.pub-year-badge {
    min-width: 70px; height: 70px;
    background: var(--ink2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.pub-year-badge small { font-size: 0.62rem; opacity: 0.45; }

.pub-body { flex: 1; }

.pub-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.pt-journal { background: rgba(30,111,255,0.15); color: var(--accent); }
.pt-conf { background: rgba(34,197,94,0.15); color: #16a34a; }
.pt-chapter { background: rgba(239,68,68,0.15); color: #dc2626; }
.pt-book { background: rgba(168,85,247,0.15); color: #7c3aed; }

.pub-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.5;
}

.pub-authors { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.pub-authors strong { color: var(--accent); font-weight: 700; }

.pub-journal { font-size: 0.84rem; font-style: italic; color: var(--muted2); margin-bottom: 12px; }

.pub-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border: 1.5px solid rgba(30,111,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.25s;
}

.pub-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== CONTACT ===== */
#contact { background: var(--ink); }
#contact .sec-label { color: #7eb3ff; }
#contact .sec-label::before { background: #7eb3ff; }
#contact .sec-title { color: #fff; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 36px;
}

.contact-card h4 {
    font-family: 'Playfair Display', serif;
    color: rgba(255,255,255,0.95);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card > p {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-detail:last-of-type { border-bottom: none; }

.cd-icon {
    width: 44px; height: 44px;
    background: rgba(30,111,255,0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7eb3ff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cd-label { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-bottom: 2px; font-weight: 600; }
.cd-val { font-size: 0.9rem; color: rgba(255,255,255,0.88); font-weight: 600; }

.contact-form-wrap { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 0.76rem; font-weight: 700; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; }

.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.25s;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: rgba(30,111,255,0.6);
    background: rgba(30,111,255,0.08);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 28px; right: 28px;
    background: #fff;
    color: var(--ink);
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.15);
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ===== MOBILE TOGGLE ===== */
.mobile-btn {
    display: none;
    position: fixed;
    top: 18px; left: 18px;
    z-index: 1100;
    background: linear-gradient(135deg, var(--accent), #0a4cd9);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(30,111,255,0.4);
    transition: all 0.3s;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

footer {
    background: #1e2733;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 32px 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

footer p { color: rgb(162, 162, 162); font-size: 0.82rem; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main {
        margin-left: 0;
    }
    .mobile-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    #hero {
        padding: 100px 40px 60px;
    }
    section {
        padding: 80px 40px;
    }
    .bio-layout, .teach-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .bio-card {
        position: static;
    }
    .edu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    #hero {
        padding: 100px 24px 50px;
    }
    section {
        padding: 60px 24px;
    }
    .edu-grid, .cert-grid {
        grid-template-columns: 1fr;
    }
    .bio-highlights {
        grid-template-columns: 1fr;
    }
    .teach-stats {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .hero-stat strong {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 0.95rem;
    }
    .timeline {
        padding-left: 20px;
    }
    .tl-dot {
        left: -27px;
    }
    .tl-item {
        padding: 20px;
    }
    .pub-card {
        flex-direction: column;
    }
    .pub-year-badge {
        align-self: flex-start;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    .hero-actions .btn-primary, .hero-actions .btn-ghost {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

.pt-thesis { background: rgba(30,111,255,0.15); color: var(--accent); }
.pt-report { background: rgba(251,146,60,0.15); color: #c2410c; }
/* Encadrement avec hauteur fixe et scroll */
.encadrement-container {
    height: 900px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;

    padding: 4px;
}

.encadrement-container::-webkit-scrollbar {
    width: 6px;
}

.encadrement-container::-webkit-scrollbar-track {
    background: var(--bg2);
    border-radius: 10px;
}

.encadrement-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.encadrement-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.enc-card {
    margin-bottom: 0;
}

/* Ajuster la hauteur des cartes dans l'encadrement */
.encadrement-container .pub-card {
    padding: 24px;
}

.encadrement-container .pub-card .pub-body {
    max-height: none;
}

/* Pour mobile */
@media (max-width: 600px) {
    .encadrement-container {
        height: 900px;
    }
}
.sidebar {
    background: linear-gradient(160deg, #f8faff 0%, #eff0f8 100%);
    border-right: 1px solid #dde5f8;
    box-shadow: 2px 0 12px rgba(30,111,255,0.08);
}

.sidebar-logo {
    background: linear-gradient(135deg, rgba(30,111,255,0.06) 0%, rgba(201,168,76,0.04) 100%);
    border-bottom: 1px solid #dde5f8;
}

.logo-text {
    color: #1e2733;  /* texte sombre */
}

.logo-text span {
    color: var(--accent);  /* bleu au lieu de gold-lt */
}

.nav-section-label {
    color: #8a9bb0;
}

.nav-link {
    color: #4a5a7a;
}

.nav-link:hover, .nav-link.active {
    color: #1e6fff;
    background: rgba(30,111,255,0.08);
}

.nav-link.active {
    background: rgba(30,111,255,0.1);
}

.nav-icon {
    background: rgba(30,111,255,0.1);
    color: #1e6fff;
}

.nav-link.active .nav-icon {
    background: var(--accent);
    color: #fff;
}

.sidebar-footer {
    border-top: 1px solid #dde5f8;
}

.social-links a {
    background: rgba(30,111,255,0.08);
    color: #4a5a7a;
    border: 1px solid #dde5f8;
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
}
#hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 40%, #f5f8ff 100%);
}

#hero::before {
    background:
            radial-gradient(ellipse 60% 80% at 80% 50%, rgba(30,111,255,0.12), transparent),
            radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,0.08), transparent);
}

.hero-grid-pattern {
    background-image:
            linear-gradient(rgba(7, 93, 245, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(19, 102, 250, 0.04) 1px, transparent 1px);
}

.hero-eyebrow {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    color: #059669;
}

.hero-name {
    color: #1e2733;   /* titre sombre */
}

.hero-name span {
    color: var(--accent);  /* bleu vif */
}

.hero-title {
    color: #5a6a80;
}

.hero-stat strong {
    color: var(--accent);  /* bleu au lieu de gold-lt */
}

.hero-stat span {
    color: #8a9bb0;
}

.hero-divider {
    background: #dde5f8;
}

.btn-ghost {
    background: #fff;
    border: 1.5px solid #dde5f8;
    color: #1e2733;
    box-shadow: 0 2px 8px rgba(30,111,255,0.06);
}

.btn-ghost:hover {
    background: #f0f4ff;
}

#contact {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

#contact .sec-label { color: var(--accent); }
#contact .sec-label::before { background: var(--accent); }
#contact .sec-title { color: #1e2733; }

.contact-card {
    background: #fff;
    border: 1.5px solid #dde5f8;
    box-shadow: 0 8px 24px rgba(30,111,255,0.08);
}

.contact-card h4 { color: #1e2733; }
.contact-card > p { color: #5a6a80; }

.contact-detail { border-bottom: 1px solid #f0f4ff; }

.cd-icon {
    background: rgba(30,111,255,0.1);
    color: var(--accent);
}

.cd-label { color: #8a9bb0; }
.cd-val { color: #1e2733; }

.form-group label { color: #5a6a80; }

.form-group input, .form-group textarea {
    background: #fff;
    border: 1.5px solid #dde5f8;
    color: #1e2733;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: rgba(30,111,255,0.5);
    background: rgba(30,111,255,0.03);
}



