/* ============================================
   PORTFOLIO BTS SIO – DA SILVA TORRES Henrique
   Style principal
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* NAVIGATION */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 70px; transition: var(--transition); }
#navbar.scrolled { box-shadow: var(--shadow); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.nav-name { font-weight: 600; font-size: 1rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--text-light); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(37,99,235,0.08); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--text); cursor: pointer; padding: 8px; }

/* DROPDOWN NAVIGATION */
.nav-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dropdown-toggle i.fa-chevron-down { font-size: 0.6rem; transition: var(--transition); opacity: 0.6; }
.nav-dropdown:hover .dropdown-toggle i.fa-chevron-down { transform: rotate(180deg); opacity: 1; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: white; border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04); min-width: 220px; padding: 10px; z-index: 1001; animation: dropdownFade 0.18s ease; }
@keyframes dropdownFade { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--text-light); font-size: 0.88rem; font-weight: 500; transition: var(--transition); border-radius: var(--radius-sm); white-space: nowrap; }
.dropdown-menu a i { font-size: 0.82rem; width: 18px; text-align: center; color: var(--text-lighter); transition: var(--transition); }
.dropdown-menu a:hover, .dropdown-menu a.active { color: var(--primary); background: rgba(37,99,235,0.07); }
.dropdown-menu a:hover i, .dropdown-menu a.active i { color: var(--primary); }
.dropdown-header { padding: 8px 14px 4px; font-size: 0.7rem; font-weight: 700; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 1px; }
.dropdown-divider { height: 1px; margin: 6px 8px; background: var(--border); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 2rem 60px; background: linear-gradient(135deg, #f0f4ff 0%, #e8f4f8 50%, #f5f0ff 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%); border-radius: 50%; }
.hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-subtitle { font-size: 1rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.hero-text h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 24px; color: var(--text); }
.highlight { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-description { font-size: 1.15rem; color: var(--text-light); line-height: 1.8; margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); color: white; }
.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-small { padding: 8px 18px; font-size: 0.85rem; background: var(--primary); color: white; border-radius: var(--radius-sm); }
.btn-small:hover { background: var(--primary-dark); color: white; }

/* HERO CARDS */
.hero-visual { display: flex; flex-direction: column; gap: 20px; }
.hero-card { background: white; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px; transition: var(--transition); border: 1px solid var(--border); }
.hero-card:hover { transform: translateX(-8px); box-shadow: var(--shadow-xl); }
.hero-card-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.hero-card p { font-weight: 600; color: var(--text); font-size: 0.95rem; }

/* SECTIONS */
.section { padding: 80px 2rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 40px; display: flex; align-items: center; gap: 12px; }
.section-title i { color: var(--primary); font-size: 1.6rem; }
.section-intro { font-size: 1.05rem; color: var(--text-light); margin-bottom: 40px; max-width: 700px; }

/* PRÉSENTATION */
.presentation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.presentation-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.presentation-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.presentation-card h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.presentation-card h3 i { color: var(--primary); }
.presentation-card ul { list-style: disc; padding-left: 20px; }
.presentation-card li { margin-bottom: 8px; color: var(--text-light); font-size: 0.95rem; }
.cv-placeholder { text-align: center; padding: 20px; border: 2px dashed var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.hint { font-size: 0.85rem; color: var(--text-lighter); margin: 8px 0; }
.hint code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; }
.portfolio-structure { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1)); color: var(--primary-dark); padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }

/* FILTRES PROJETS */
.filter-bar { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn { padding: 10px 24px; border: 2px solid var(--border); border-radius: 30px; background: white; font-weight: 600; font-size: 0.9rem; color: var(--text-light); cursor: pointer; transition: var(--transition); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* PROJECT CARDS - COMPACT LINK STYLE */
.project-card-link { text-decoration: none; color: inherit; display: block; margin-bottom: 24px; }
.project-card-link .project-card { cursor: pointer; }
.project-card-link:hover .project-card { box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.project-card-link .project-header { justify-content: flex-start; }
.project-card-link .project-header h3 { flex: 1; }
.project-card-link .project-header h3 small { display: block; font-size: 0.85rem; color: var(--text-light); font-weight: 500; margin-top: 2px; }
.project-card-link .project-header h3 i { margin-right: 8px; color: var(--primary); }
.project-arrow { color: var(--primary); font-size: 1.2rem; transition: var(--transition); }
.project-card-link:hover .project-arrow { transform: translateX(5px); }
.project-body-compact { padding: 20px 28px; }
.project-body-compact p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }

/* PAGE HEADER */
.page-header { padding: 120px 2rem 50px; background: linear-gradient(135deg, #f0f4ff 0%, #e8f4f8 50%, #f5f0ff 100%); position: relative; }
.page-header-ap1 { background: linear-gradient(135deg, #f0f4ff 0%, #e8f8f0 50%, #f0f4ff 100%); }
.page-header-ap2 { background: linear-gradient(135deg, #f5f0ff 0%, #f0f4ff 50%, #fff0f5 100%); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb i { font-size: 0.6rem; color: var(--text-lighter); }
.page-badge { display: inline-block; background: var(--primary); color: white; padding: 6px 18px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.page-badge.badge-year2 { background: var(--secondary); }
.page-header h1 { font-size: 2.4rem; font-weight: 800; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.page-header h1 i { color: var(--primary); margin-right: 10px; }
.page-subtitle { font-size: 1.15rem; color: var(--text-light); font-weight: 500; }

/* PROJECT DETAIL BLOCKS */
.project-detail-block { margin-bottom: 36px; }
.project-detail-block h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--primary); }
.project-detail-block h2 i { color: var(--primary); font-size: 1.2rem; }
.detail-content { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.detail-content p { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.detail-content p:last-child { margin-bottom: 0; }
.detail-content ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.detail-content li { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 6px; }
.detail-content code { background: var(--bg-alt); padding: 2px 8px; border-radius: 4px; font-size: 0.88rem; color: var(--primary-dark); }
.intro-highlight { border-left: 5px solid var(--primary); background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(124,58,237,0.04)); }
.intro-wip { display: flex; align-items: flex-start; gap: 20px; border-left-color: var(--warning); }
.intro-wip > i { font-size: 2rem; color: var(--warning); flex-shrink: 0; padding-top: 4px; }
.intro-wip h3 { font-size: 1.15rem; color: var(--warning); margin-bottom: 8px; }

/* INFO NOTE */
.info-note { display: flex; align-items: flex-start; gap: 12px; background: rgba(37,99,235,0.05); padding: 16px 20px; border-radius: var(--radius-sm); margin-top: 16px; border: 1px solid rgba(37,99,235,0.1); }
.info-note > i { color: var(--primary); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.info-note p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* DATABASE SCHEMA */
.db-schema { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.db-table { border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.db-table-new { border-color: var(--success); }
.db-table-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 10px 16px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: space-between; }
.db-table-new .db-table-header { background: linear-gradient(135deg, var(--success), #059669); }
.db-table-body { padding: 12px 16px; }
.db-table-body p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.badge-new { background: white; color: var(--success); padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; }

/* ARCHITECTURE */
.archi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0; }
.archi-item { text-align: center; padding: 24px 16px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.archi-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 12px; }
.archi-item h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 6px; }
.archi-item p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.archi-schema { margin: 24px 0; overflow-x: auto; }
.archi-flow { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; flex-wrap: wrap; }
.archi-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 20px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: white; min-width: 120px; text-align: center; }
.archi-node i { font-size: 1.6rem; }
.archi-node span { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.archi-node small { font-weight: 400; color: var(--text-light); }
.archi-client { border-color: var(--secondary); }
.archi-client i { color: var(--secondary); }
.archi-server { border-color: var(--primary); }
.archi-server i { color: var(--primary); }
.archi-web { border-color: var(--accent); }
.archi-web i { color: var(--accent); }
.archi-user { border-color: var(--success); }
.archi-user i { color: var(--success); }
.archi-arrow { color: var(--text-lighter); font-size: 1rem; }

/* USER STORIES */
.user-stories { display: flex; flex-direction: column; gap: 16px; }
.user-story { display: flex; gap: 16px; background: var(--bg); border-radius: var(--radius-sm); padding: 20px; border-left: 4px solid var(--primary); transition: var(--transition); }
.user-story:hover { box-shadow: var(--shadow); }
.us-number { background: var(--primary); color: white; padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; height: fit-content; }
.us-content h4 { font-size: 1.05rem; color: var(--text); margin-bottom: 8px; font-weight: 700; }
.us-content p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.us-cancelled { opacity: 0.6; border-left-color: var(--danger); }
.us-number-cancelled { background: var(--danger); }
.badge-cancelled { background: var(--danger); color: white; padding: 2px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 700; margin-left: 8px; }

/* TECH TAGS LARGE */
.tech-tags-large { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tags-large .tech-tag { font-size: 0.88rem; padding: 8px 18px; }

/* MODALITÉS */
.modalites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.modalite-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.modalite-item > i { font-size: 1.4rem; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.modalite-item h4 { font-size: 1rem; color: var(--text); margin-bottom: 6px; font-weight: 700; }
.modalite-item p { font-size: 0.92rem; color: var(--text-light); margin: 0; }
.modalite-item ul { list-style: disc; padding-left: 18px; margin: 4px 0 0; }
.modalite-item li { font-size: 0.88rem; color: var(--text-light); margin-bottom: 4px; }

/* STEPS GRID */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0; }
.step-item { text-align: center; padding: 20px 12px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.step-number { width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; margin: 0 auto 10px; }
.step-item p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* COMPETENCES DETAIL */
.competences-detail-block .detail-content { border-left: 5px solid var(--success); background: rgba(16,185,129,0.03); }
.competences-list-detail { list-style: none !important; padding-left: 0 !important; }
.competences-list-detail li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }
.competences-list-detail li:last-child { border-bottom: none; }
.competences-list-detail li strong { color: var(--text); }

/* TÉLÉCHARGEMENTS */
.download-links { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-download { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 700; font-size: 0.97rem; text-decoration: none; transition: background 0.2s, transform 0.15s; box-shadow: var(--shadow); }
.btn-download:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }
.btn-download i { font-size: 1.15rem; }
.btn-download-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-download-outline:hover { background: var(--primary); color: #fff; }

/* PHASE NAVIGATION */
.phase-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }

/* CV PAGE STYLES */
.cv-actions { display: flex; gap: 16px; margin-bottom: 32px; justify-content: center; }
.cv-a4 { max-width: 210mm; margin: 0 auto; background: white; box-shadow: var(--shadow-xl); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.cv-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 32px 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cv-identity h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.cv-title { font-size: 1.1rem; font-weight: 600; opacity: 0.95; }
.cv-subtitle { font-size: 0.9rem; opacity: 0.8; }
.cv-contact-info p { font-size: 0.85rem; margin-bottom: 4px; opacity: 0.9; display: flex; align-items: center; gap: 8px; }
.cv-contact-info i { width: 16px; text-align: center; }
.cv-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; }
.cv-left { padding: 28px 24px 28px 36px; border-right: 1px solid var(--border); }
.cv-right { padding: 28px 36px 28px 24px; background: var(--bg); }
.cv-section { margin-bottom: 24px; }
.cv-section:last-child { margin-bottom: 0; }
.cv-section h2 { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.cv-section h2 i { font-size: 0.85rem; }
.cv-item { display: flex; gap: 14px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.cv-item:last-child { border-bottom: none; margin-bottom: 0; }
.cv-date { font-size: 0.8rem; font-weight: 700; color: var(--primary); white-space: nowrap; min-width: 70px; padding-top: 2px; }
.cv-detail h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cv-detail p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 2px; }
.cv-detail ul { list-style: disc; padding-left: 16px; margin-top: 4px; }
.cv-detail li { font-size: 0.82rem; color: var(--text-light); margin-bottom: 2px; }
.cv-location { font-size: 0.8rem; color: var(--text-lighter); font-style: italic; }
.cv-skill { margin-bottom: 10px; }
.cv-skill-name { font-size: 0.85rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 4px; }
.cv-skill-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.cv-skill-fill { height: 100%; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 3px; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tag { background: white; color: var(--primary); padding: 4px 12px; border-radius: 14px; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--primary); }
.cv-list { list-style: none; padding: 0; }
.cv-list li { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; padding-left: 12px; position: relative; }
.cv-list li::before { content: ''; width: 5px; height: 5px; background: var(--primary); border-radius: 50%; position: absolute; left: 0; top: 8px; }

/* IMAGE GALLERY */
.project-images { margin-bottom: 28px; }
.image-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.image-slot { aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; }
.image-placeholder { width: 100%; height: 100%; border: 2px dashed var(--border); border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: var(--transition); background: var(--bg); position: relative; }
.image-placeholder:hover { border-color: var(--primary); background: rgba(37,99,235,0.04); }
.image-placeholder i { font-size: 2rem; color: var(--text-lighter); transition: var(--transition); }
.image-placeholder:hover i { color: var(--primary); }
.image-placeholder p { font-size: 0.82rem; color: var(--text-lighter); font-weight: 500; }
.file-input { display: none; }
.image-placeholder img.preview { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; border-radius: var(--radius-sm); cursor: pointer; }

/* PROJECT CARD BASE (used in stage section) */
.project-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 32px; transition: var(--transition); }
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-card.hidden { display: none; }
.project-header { padding: 24px 28px; background: linear-gradient(135deg, #f0f4ff, #f5f0ff); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.project-header h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.project-header h3 small { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.project-badge { background: var(--primary); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-year2 { background: var(--secondary); }
.badge-stage { background: var(--accent); }
.project-body { padding: 28px; }

/* PROJECT INFO */
.project-info { display: grid; gap: 20px; }
.info-block { padding: 20px; background: var(--bg); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.info-block h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-block h4 i { color: var(--primary); font-size: 0.9rem; }
.info-block p, .info-block li { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }
.info-block ul { list-style: disc; padding-left: 20px; }
.info-block li { margin-bottom: 6px; }
.info-block em { color: var(--text-lighter); font-style: italic; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.competences-block { border-left-color: var(--success); background: rgba(16,185,129,0.04); }
.competences-list { list-style: none !important; padding-left: 0 !important; }
.competences-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.competences-list li:last-child { border-bottom: none; }
.competences-list li strong { color: var(--text); }

/* STAGE */
.stage-intro { margin-bottom: 32px; }
.stage-company { background: var(--card-bg); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); border-left: 5px solid var(--accent); }
.stage-company h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.stage-company p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 4px; }

/* COMPÉTENCES GRID */
.competences-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.competence-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.competence-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.competence-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.competence-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.competence-card ul { list-style: disc; padding-left: 18px; margin-bottom: 16px; flex: 1; }
.competence-card li { font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }
.competence-projects { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.project-ref { background: rgba(37,99,235,0.08); color: var(--primary); padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.competence-status { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.status-ok { background: rgba(16,185,129,0.1); color: var(--success); }

/* VEILLE */
.veille-block { margin-bottom: 40px; }
.veille-block h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.veille-block h3 i { color: var(--primary); }
.veille-content { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.veille-method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.method-item h4 { font-size: 1rem; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.method-item p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }
.method-item ul { list-style: disc; padding-left: 20px; }
.method-item li { font-size: 0.9rem; color: var(--text-light); margin-bottom: 4px; }
.diffusion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.diffusion-item { padding: 20px; background: var(--bg); border-radius: var(--radius-sm); }
.diffusion-item h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.diffusion-item h4 i { color: var(--primary); }
.diffusion-item p { font-size: 0.9rem; color: var(--text-light); }

/* ARBRE DE VEILLE */
.tree-container { overflow-x: auto; padding: 20px 0; }
.tree { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.tree-root { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 16px 40px; border-radius: 30px; font-size: 1.2rem; font-weight: 800; box-shadow: 0 4px 20px rgba(37,99,235,0.3); position: relative; }
.tree-root::after { content: ''; position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); width: 3px; height: 32px; background: var(--primary); }
.tree-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; position: relative; }
.tree-branches::before { content: ''; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 3px; background: var(--primary); }
.tree-branch { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.tree-branch::before { content: ''; width: 3px; height: 20px; background: var(--primary); }
.branch-title { background: var(--primary); color: white; padding: 10px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; text-align: center; white-space: nowrap; }
.branch-items { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.branch-items span { background: var(--bg); padding: 6px 16px; border-radius: 16px; font-size: 0.82rem; color: var(--text-light); font-weight: 500; border: 1px solid var(--border); text-align: center; transition: var(--transition); }
.branch-items span:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }

/* TABLE ARTICLES */
.articles-table-container { overflow-x: auto; margin-top: 16px; }
.articles-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.articles-table thead { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.articles-table th { padding: 14px 16px; text-align: left; font-weight: 700; white-space: nowrap; }
.articles-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-light); }
.articles-table tbody tr:hover { background: rgba(37,99,235,0.04); }
.articles-table tbody tr:nth-child(even) { background: var(--bg); }
.articles-table tbody tr:nth-child(even):hover { background: rgba(37,99,235,0.06); }
.articles-table tbody tr.article-old { background: rgba(255,165,0,0.06); border-left: 3px solid #f59e0b; }
.articles-table tbody tr.article-old:hover { background: rgba(255,165,0,0.1); }
.articles-table tbody tr.article-old em { color: #b45309; font-size: 0.82rem; }
.synthese-content p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 12px; }
.synthese-content ul { list-style: disc; padding-left: 24px; }
.synthese-content li { font-size: 0.95rem; color: var(--text-light); margin-bottom: 8px; }

/* DEV PROFESSIONNEL */
.dev-pro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dev-pro-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.dev-pro-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.dev-pro-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.dev-pro-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.dev-pro-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

/* CONTACT */
.contact-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: 12px; background: var(--card-bg); padding: 20px 32px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.contact-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.contact-item i { font-size: 1.5rem; color: var(--primary); }
.contact-item p { font-size: 0.95rem; color: var(--text-light); }

/* FOOTER */
footer { background: var(--text); color: var(--text-lighter); text-align: center; padding: 24px; font-size: 0.85rem; }

/* MODAL */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); cursor: pointer; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { max-width: 90%; max-height: 90vh; border-radius: var(--radius); box-shadow: var(--shadow-xl); }
.modal-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2.5rem; font-weight: 300; cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; opacity: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 2.4rem; }
    .competences-grid { grid-template-columns: repeat(2, 1fr); }
    .tree-branches { grid-template-columns: repeat(2, 1fr); }
    .archi-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .cv-body { grid-template-columns: 1fr; }
    .cv-left { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--border); }
    .nav-links.show { display: flex; }
    .nav-toggle { display: block; }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; position: static; box-shadow: none; border: none; padding: 4px 0 4px 12px; min-width: auto; background: transparent; border-radius: 0; border-left: 2px solid var(--primary); margin: 4px 0 4px 16px; transform: none; animation: none; }
    .nav-dropdown.open .dropdown-menu a { padding: 7px 12px; font-size: 0.85rem; }
    .hero { padding: 100px 1.5rem 40px; }
    .hero-text h1 { font-size: 2rem; }
    .section { padding: 60px 1.5rem; }
    .page-header { padding: 100px 1.5rem 40px; }
    .page-header h1 { font-size: 1.6rem; }
    .presentation-grid { grid-template-columns: 1fr; }
    .image-gallery { grid-template-columns: repeat(2, 1fr); }
    .competences-grid { grid-template-columns: 1fr; }
    .veille-method-grid, .diffusion-grid { grid-template-columns: 1fr; }
    .tree-branches { grid-template-columns: 1fr; }
    .tree-branches::before { display: none; }
    .dev-pro-grid { grid-template-columns: 1fr; }
    .project-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .articles-table { font-size: 0.78rem; }
    .articles-table th, .articles-table td { padding: 8px 10px; }
    .archi-flow { flex-direction: column; }
    .archi-arrow { transform: rotate(90deg); }
    .archi-grid { grid-template-columns: 1fr; }
    .user-story { flex-direction: column; gap: 10px; }
    .steps-grid { grid-template-columns: 1fr; }
    .phase-nav { flex-direction: column; gap: 12px; }
    .cv-header { flex-direction: column; text-align: center; }
    .cv-a4 { max-width: 100%; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .image-gallery { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-btn { width: 100%; text-align: center; }
}

/* ======================================
   AP PAGES – CONDENSED LAYOUT
   ====================================== */

/* AP FICHE PROJET (intro card) */
.ap-card { display: flex; gap: 0; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; margin-bottom: 36px; }
.ap-card-body { flex: 1; padding: 28px 32px; border-left: 5px solid var(--primary); }
.ap-card-body p { font-size: 1rem; color: var(--text-light); line-height: 1.8; margin: 0; }
.ap-card-sidebar { display: flex; flex-direction: column; gap: 0; background: var(--bg-alt); padding: 20px 24px; min-width: 200px; justify-content: center; border-left: 1px solid var(--border); }
.ap-meta { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 0.88rem; color: var(--text-light); font-weight: 500; border-bottom: 1px solid var(--border); }
.ap-meta:last-child { border-bottom: none; }
.ap-meta i { color: var(--primary); width: 18px; text-align: center; font-size: 0.85rem; }

/* AP SECTIONS */
.ap-section { margin-bottom: 32px; }
.ap-section h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); }
.ap-section h2 i { color: var(--primary); font-size: 1.1rem; }

/* AP TECH GRID */
.ap-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ap-tech-card { background: var(--card-bg); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.ap-tech-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ap-tech-card h3 i { color: var(--primary); font-size: 0.85rem; }
.ap-tech-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.ap-tech-card code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; color: var(--primary-dark); }
.tech-tags-compact { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tags-compact .tech-tag { font-size: 0.78rem; padding: 5px 12px; }

/* US TABLE */
.us-table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.us-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.us-table thead { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.us-table th { padding: 12px 16px; text-align: left; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
.us-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-light); vertical-align: middle; }
.us-table tbody tr { background: white; transition: var(--transition); }
.us-table tbody tr:nth-child(even) { background: var(--bg); }
.us-table tbody tr:hover { background: rgba(37,99,235,0.04); }
.us-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; font-size: 0.78rem; font-weight: 700; }
.us-badge-cancelled { background: var(--danger); opacity: 0.6; }
.us-row-cancelled { opacity: 0.5; }
.us-row-cancelled td { text-decoration: line-through; text-decoration-color: var(--danger); }
.us-row-cancelled td:first-child { text-decoration: none; }

/* COMPETENCES TAGS */
.competences-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.comp-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--card-bg); border: 1px solid var(--border); padding: 10px 18px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; color: var(--text-light); box-shadow: var(--shadow-sm); transition: var(--transition); }
.comp-tag:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-1px); }
.comp-tag i { color: var(--primary); font-size: 0.82rem; }

/* HOSTING STEPS (horizontal) */
.ap-hosting-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--card-bg); padding: 20px 24px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.ap-step { background: var(--bg); padding: 10px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-light); border: 1px solid var(--border); }
.ap-step strong { color: var(--primary); }
.ap-step-arrow { color: var(--primary); font-size: 0.75rem; }

/* RESPONSIVE AP */
@media (max-width: 768px) {
    .ap-card { flex-direction: column; }
    .ap-card-sidebar { flex-direction: row; flex-wrap: wrap; min-width: auto; border-left: none; border-top: 1px solid var(--border); }
    .ap-meta { border-bottom: none; padding: 8px 16px 8px 0; }
    .ap-tech-grid { grid-template-columns: 1fr; }
    .us-table { font-size: 0.82rem; }
    .us-table th, .us-table td { padding: 8px 10px; }
    .ap-hosting-steps { flex-direction: column; align-items: flex-start; }
    .ap-step-arrow { transform: rotate(90deg); align-self: center; }
}

@media print {
    #navbar { display: none; }
    .hero { min-height: auto; padding: 20px; }
    .section { padding: 20px; page-break-inside: avoid; }
    .project-card { page-break-inside: avoid; }
    .btn { display: none; }
    .image-placeholder { border: 1px solid #ccc; }
    .page-header { padding: 20px; }
    .cv-a4 { box-shadow: none; border: none; max-width: 100%; }
    .cv-actions { display: none; }
    .breadcrumb { display: none; }
    footer { display: none; }
}

/* ======================================
   BTS SIO SECTION
   ====================================== */
.bts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bts-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); }
.bts-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bts-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.bts-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.bts-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }
@media (max-width: 768px) { .bts-grid { grid-template-columns: 1fr; } }

/* ======================================
   CV MINI (in presentation card)
   ====================================== */
.cv-mini { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.cv-mini-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cv-mini-header strong { font-size: 1rem; }
.cv-mini-header span { font-size: 0.85rem; opacity: 0.9; }
.cv-mini-contact { display: flex; flex-direction: column; gap: 4px; }
.cv-mini-contact span { font-size: 0.8rem; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.cv-mini-contact i { width: 14px; text-align: center; font-size: 0.75rem; }
.cv-mini-body { padding: 16px 20px; }
.cv-mini-section { margin-bottom: 14px; }
.cv-mini-section:last-child { margin-bottom: 0; }
.cv-mini-section h4 { font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.cv-mini-section ul { list-style: disc; padding-left: 18px; }
.cv-mini-section li { font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }
.cv-mini-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg); text-align: center; }

/* ======================================
   GLOSSARY TOOLTIPS
   ====================================== */
.glossary-term { text-decoration: underline dotted var(--primary); text-underline-offset: 3px; cursor: help; position: relative; color: inherit; font-style: normal; }
.glossary-term:hover::after, .glossary-term:focus::after {
    content: attr(data-definition);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.5;
    width: max-content;
    max-width: 320px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    animation: tooltipFade 0.15s ease;
}
.glossary-term:hover::before, .glossary-term:focus::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text);
    z-index: 101;
}
@keyframes tooltipFade { from { opacity: 0; transform: translateX(-50%) translateY(4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ======================================
   CODE BLOCKS
   ====================================== */
.code-block { background: #1e293b; color: #e2e8f0; padding: 16px 20px; border-radius: var(--radius-sm); overflow-x: auto; font-family: 'Consolas', 'Courier New', monospace; font-size: 0.85rem; line-height: 1.6; margin-top: 12px; white-space: pre; }

/* ======================================
   ANALYSE BLOCK
   ====================================== */
.analyse-block { border-left-color: var(--warning); background: rgba(245,158,11,0.04); }

/* ======================================
   CERTIFICATIONS / TRAVAIL PERSONNEL
   ====================================== */
.certif-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.certif-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); text-align: center; }
.certif-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.certif-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 16px; }
.certif-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.certif-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.certif-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.certif-pending { background: rgba(245,158,11,0.1); color: var(--warning); }
.certif-done { background: rgba(16,185,129,0.1); color: var(--success); }
@media (max-width: 1024px) { .certif-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .certif-grid { grid-template-columns: 1fr; } }
