/*
Theme Name: Mon Portfolio
Theme URI: https://github.com/Roxoz37
Author: Romain Vincent
Author URI: https://linkedin.com/in/romain-vincent37
Description: Portfolio professionnel moderne avec design glassmorphism et effets de parallaxe. Optimisé pour la performance et l'accessibilité.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mon-portfolio
Tags: portfolio, one-page, custom-menu, custom-logo, responsive-layout, accessibility-ready, dark-mode, performance
*/

/* ==========================================================================
   1. VARIABLES & CONFIGURATION (ROOT)
   ========================================================================== */
:root {
    /* Palette de couleurs raffinée */
    --bg-primary: #080d15;
    --bg-glass: rgba(18, 26, 46, 0.55);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-primary: #a78bfa;
    --accent-secondary: #38bdf8;
    --accent-green: #4ade80;
    --border-color: rgba(167, 139, 250, 0.15);
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Classe pour l'accessibilité (screen readers only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   2. BASE & RÉINITIALISATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   3. COMPOSANTS RÉUTILISABLES (BOUTONS, TAGS, TYPO)
   ========================================================================== */

/* Textes Spéciaux */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--accent-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

.text-primary { color: var(--accent-primary); }
.text-secondary { color: var(--accent-secondary); }

/* Boutons Génériques */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.btn i {
    margin-right: 0.6rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: 2px solid var(--accent-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
}

.btn-secondary:hover {
    background-color: var(--accent-secondary);
    color: var(--bg-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn:hover, .btn-ghost:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(167, 139, 250, 0.25);
    background: rgba(167, 139, 250, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-full { width: 100%; margin-top: 1rem; }

/* Tags & Badges */
.tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-secondary);
    padding: .5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: .95rem;
}

.tag i { color: var(--accent-secondary); }

.tag-status {
    background: rgba(167, 139, 250, 0.1) !important;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary) !important;
}

.status-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
}

.status-tag.available { color: var(--accent-green); border: 1px solid rgba(74, 222, 128, 0.2); }
.status-tag.current { color: var(--accent-secondary); border: 1px solid rgba(56, 189, 248, 0.2); }

/* Cartes Glassmorphism */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   4. NAVIGATION (NAVBAR)
   ========================================================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; padding: 1.25rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: var(--transition);
}

.navbar.scrolled {
    padding: .75rem 2rem;
    background: rgba(8, 13, 21, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.08);
    box-shadow: var(--shadow-sm);
}

.logo { font-weight: 700; font-size: 1.5rem; }
.logo span { background: linear-gradient(135deg,var(--accent-primary),var(--accent-secondary)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-nav-img { height: 40px; width: auto; vertical-align: middle; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: var(--text-secondary); font-weight: 500; position: relative; padding: .25rem 0; transition: color .3s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
    background: linear-gradient(90deg,var(--accent-primary),var(--accent-secondary));
    transition: width .3s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after { width: 100%; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; gap: 6px; flex-direction: column; }
.burger span { display: block; width: 28px; height: 3px; background: var(--text-primary); border-radius: 3px; transition: var(--transition); }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
/* Server.lua accueil */
.code-compact{position: relative; padding:1.2rem;font-family:'JetBrains Mono',monospace;font-size:.9rem; line-height:1.6;overflow:auto;white-space:pre; }
.code-compact .ln{color:rgba(148, 163, 184, 0.4); display:inline-block;width:3ch;margin-right:1rem;text-align:right;user-select:none; position: static; }
.code-compact .keyword{color:#c678dd} 
.code-compact .method{color:#61afef} 
.code-compact .string{color:#98c379} 
.code-compact .property{color:#e5c07b}

.hero { min-height: 100vh; display: flex; align-items: center; padding: 12rem 2rem 6rem; position: relative; overflow: hidden; }

.hero-bg, .hero-bg-2 { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: .3; transition: transform 0.1s linear; }
.hero-bg { top: 5%; left: -10%; background: var(--accent-primary); }
.hero-bg-2 { bottom: 5%; right: -10%; background: var(--accent-secondary); }

.hero-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; width: 100%; }

.hero-title {
    font-size: clamp(3rem, 6vw, 4.0rem);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    line-height: 1.1;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    min-width: 0;
}

.hero-title > span { min-width: 0; }
.cursor { color: var(--accent-primary); animation: blink 1s infinite; margin-left: 8px; font-weight: 300; }
@keyframes blink { 0%, 50% { opacity: 1 } 51%, 100% { opacity: 0 } }

.hero-description { color: var(--text-secondary); max-width: 560px; margin-bottom: 2rem; font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: var(--accent-primary); font-size: 1.5rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%) } 40% { transform: translateY(-10px) translateX(-50%) } 60% { transform: translateY(-5px) translateX(-50%) } }

@media (prefers-reduced-motion: reduce) {
    .scroll-indicator { animation: none; }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   6. SECTIONS STANDARDS (ABOUT, SKILLS, PROJECTS)
   ========================================================================== */
.section { padding: 10rem 2rem; }
.section-title { text-align: center; font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: .75rem; font-weight: 700; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 4rem; font-size: 1.1rem; }

/* About */
.about-card { max-width: 800px; margin: 0 auto; text-align: left; }
.about-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.about-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--bg-primary);
    box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.1);
}
.about-header h3 { font-size: 1.8rem; }
.about-subtitle { color: var(--accent-primary); font-weight: 500; }
.about-text p { margin-bottom: 1.2rem; color: var(--text-secondary); font-size: 1.05rem; }
.about-tags { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Recherche PDF */
.search-page { padding-top: 6rem; }
.pdf-search-section { min-height: calc(100vh - 6rem); display: flex; align-items: center; }
.pdf-search-card { max-width: 980px; margin: 0 auto; }
.pdf-search-form { display: grid; gap: 1rem; }
.pdf-search-row { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.pdf-search-row input,
.pdf-search-form input,
.pdf-search-form textarea {
    width: 100%;
    padding: .95rem 1rem;
    border-radius: var(--radius);
    background: rgba(167, 139, 250, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.pdf-search-row input:focus,
.pdf-search-form input:focus,
.pdf-search-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-primary), 0 0 0 6px rgba(167, 139, 250, 0.12);
}
.pdf-search-status {
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border-radius: var(--radius);
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent-secondary);
    text-align: center;
}
.pdf-results-list {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}
.pdf-result-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(167, 139, 250, 0.12);
    box-shadow: var(--shadow-sm);
}
.pdf-result-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.pdf-result-meta { font-size: .85rem; color: var(--accent-secondary); margin-bottom: .6rem; }
.pdf-result-card p { color: var(--text-secondary); margin: 0; }
.pdf-search-login-grid { display: grid; gap: 1rem; }
.pdf-login-note { font-size: .92rem; color: var(--text-secondary); line-height: 1.6; }


/* Skills / Competences */
.competences-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; }

/* Nouveau design moderne pour les compétences */
.skills-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.skill-card-modern {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skill-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-card-modern:hover::before {
    opacity: 1;
}

.skill-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(167, 139, 250, 0.3);
}

.skill-icon-modern {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius);
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.skill-content-modern {
    flex: 1;
    position: relative;
    z-index: 1;
}

.skill-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-progress-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-modern {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.progress-fill-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-percent-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-secondary);
    min-width: 50px;
    text-align: right;
}

.skill {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    padding: 25px; width: 250px; text-align: center; transition: .3s; backdrop-filter: blur(12px);
    margin-left: 0; margin-right: 0;
}

.skills-container {display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 20px; }

.skill:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(123,92,255,0.3); }
.skill p { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: #7b5cff; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.skill-percent { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--accent-secondary); 
    background: rgba(56, 189, 248, 0.1); 
    padding: 4px 12px; 
    border-radius: 20px; 
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.skill ul { list-style: none; text-align: left; padding-left: 1rem; margin: 0; width: 100%; }
.skill ul li { margin: 12px 0; padding-left: 20px; position: relative; font-size: 16px; opacity: 0.9; line-height: 1.6; }
.skill ul li::before { content: "✓"; position: absolute; left: 0; color: #7b5cff; font-weight: bold; }

/* Cercles de compétences */
.skill .circle-skill { position: relative; width: 140px; height: 140px; margin: 0 auto 10px; transition: transform .3s; }
.skill .circle-skill:hover { transform: scale(1.05); }
.skill .circle-skill svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); }
.skill .circle-skill svg circle { width: 100%; height: 100%; fill: none; stroke-width: 10px; stroke-linecap: round; stroke-dasharray: 408.4; }
.skill .circle-skill svg circle:first-child { stroke: #333; opacity: 0.15; }
.skill .circle-skill svg circle:last-child {
    stroke: var(--accent-primary);
    stroke-dashoffset: 408.4;
    transition: none;
}

/* État initial des compétences - cercles vides (par défaut) */
.skill:not(.animated) .circle-skill svg circle:last-child {
    stroke-dashoffset: 408.4 !important;
    transition: none !important;
}

/* État animé - permettre la transition */
.skill.animated .circle-skill svg circle:last-child {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.65, 0, 0.35, 1) !important;
}
.skill .circle-skill .number { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--text-primary);
}

/* Animation state pour les compétences */
.skill.inactive { 
    opacity: 1; 
    transform: none; 
}

.skill.animated { 
    opacity: 1; 
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.project-card {
    background: rgba(18, 26, 46, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
    box-shadow: var(--shadow-sm);
}

.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(167, 139, 250, 0.2); }

.project-image {
    height: auto; aspect-ratio: 16/9; min-height: 160px;
    background-size: cover; background-position: center;
    display: block; position: relative; overflow: hidden; border-radius: 8px;
}

.project-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-image i { font-size: 5rem; color: rgba(255,255,255,.12); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.red-gradient { background: linear-gradient(135deg, #f87171, #ef4444) }
.purple-gradient { background: linear-gradient(135deg, #a78bfa, #8b5cf6) }
.cyan-gradient { background: linear-gradient(135deg, #38bdf8, #0ea5e9) }

.project-overlay {
    position: absolute; inset: 0; background: rgba(8, 13, 21, 0.9);
    display: flex; align-items: center; justify-content: center; gap: 1.5rem;
    opacity: 0; transition: opacity .3s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 1.2rem;
    backdrop-filter: blur(4px); border: none; cursor: pointer;
}

.overlay-btn:hover { background: var(--accent-primary); transform: scale(1.1); }

.project-content { padding: 1.5rem; }
.project-content h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.project-content p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1rem; }
.project-description { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 1.2rem; font-style: italic; padding-left: 12px; border-left: 2px solid var(--accent-primary); }
.project-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.project-tags span { background: rgba(167, 139, 250, 0.08); color: var(--accent-primary); padding: .3rem .75rem; border-radius: 4px; font-size: .85rem; }
.no-image-text { height: 200px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); letter-spacing: 2px; opacity: 0.5; }

/* ==========================================================================
   7. CV SECTION
   ========================================================================== */
.cv-card { display: flex; max-width: 900px; margin: 0 auto; text-align: left; gap: 2rem; }
.cv-content { flex: 1; }
.cv-card h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.cv-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.cv-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(167, 139, 250, 0.1); color: var(--accent-primary);
    padding: .35rem 1rem; border-radius: 30px; font-weight: 600; font-size: .9rem; margin-bottom: 1rem;
}

.cv-buttons { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.cv-buttons .btn { min-width: 160px; flex: 0 1 auto; }

.cv-buttons .btn-primary {
    background: linear-gradient(135deg,var(--accent-primary),#7c3aed);
    color: white; box-shadow: 0 6px 15px rgba(167, 139, 250, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cv-buttons .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(167, 139, 250, 0.6); }

.cv-preview {
    position: relative; display: inline-block; line-height: 0; border-radius: var(--radius);
    overflow: hidden; border: 3px solid var(--accent-primary); width: 200px; height: 280px;
    box-shadow: var(--shadow-lg); flex-shrink: 0; transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.cv-preview:hover { transform: translateY(-4px); }
.cv-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cv-preview:hover .cv-image { transform: scale(1.05); }

.cv-update-date {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(8, 13, 21, 0.75); backdrop-filter: blur(4px);
    color: var(--text-secondary); text-align: center; padding: 5px 0;
    font-size: 0.65rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px; z-index: 5;
}

/* ==========================================================================
   8. ACADÉMIQUE & BULLETINS
   ========================================================================== */
.academic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-top: 3rem; }

.academic-card {
    background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 2rem; position: relative; transition: var(--transition); display: flex; flex-direction: column; gap: 1.5rem;
}
.academic-card.clickable { cursor: pointer; }
.academic-card.clickable:hover { border-color: var(--accent-primary); transform: translateY(-5px); background: rgba(167, 139, 250, 0.05); }
.academic-card.locked { opacity: 0.6; filter: grayscale(0.8); cursor: not-allowed; }

.card-status-badge { font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.card-main-content { display: flex; align-items: center; gap: 1.5rem; }
.card-icon-box { width: 60px; height: 60px; background: rgba(167, 139, 250, 0.1); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent-primary); }
.card-text h3 { font-size: 1.25rem; margin-bottom: 5px; }
.card-text p { color: var(--text-secondary); font-size: 0.9rem; }
.card-footer-info { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.arrow-icon { margin-left: auto; color: var(--text-secondary); opacity: 0.5; }
.badge-year { font-size: 0.7rem; background: rgba(167, 139, 250, 0.1); color: var(--accent-primary); padding: 2px 8px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; }

/* Documents Portrait */
.bulletins-portrait-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; padding: 1rem 0; }
.document-card { width: 280px; background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-lg); border: 1px solid var(--border-color); text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: var(--transition); }
.document-card:hover { transform: translateY(-8px); border-color: var(--accent-primary); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); }

.document-preview.portrait { position: relative; width: 100%; aspect-ratio: 1 / 1.414; overflow: hidden; background: #000; }
.document-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: 0.5s ease; }
.document-card:hover .document-preview img { transform: scale(1.05); }

.document-hover-overlay { position: absolute; inset: 0; background: rgba(8, 13, 21, 0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; opacity: 0; transition: 0.3s ease; backdrop-filter: blur(4px); }
.document-card:hover .document-hover-overlay { opacity: 1; }
.overlay-btn-circle { width: 60px; height: 60px; background: var(--accent-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-size: 1.5rem; }

.document-tag { position: absolute; top: 15px; right: 15px; z-index: 5; font-size: 0.7rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; }
.tag-done { background: var(--accent-green); color: #000; }
.tag-wait { background: var(--accent-secondary); color: #000; }

.document-info { padding: 1.5rem; }
.document-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.document-info p { font-size: 0.85rem; color: var(--text-secondary); }

.is-locked { cursor: default; }
.blurred-preview { filter: blur(15px); opacity: 0.3; }
.lock-overlay { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-secondary); }
.lock-overlay i { font-size: 2.5rem; margin-bottom: 10px; }

/* ==========================================================================
   9. CODE & SYNTAX HIGHLIGHTING
   ========================================================================== */
.code-card {
    background: rgba(14, 20, 32, 0.95); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    max-width: 550px; margin: 0 auto;
}

.code-card-animate {
    /* État initial géré par JavaScript */
    opacity: 0;
    transform: translateX(100vw);
}

.code-header {
    display: flex; align-items: center; padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03);
    border-radius: 20px 20px 0 0;
}

.dot { height: 12px; width: 12px; border-radius: 50%; margin-right: 8px; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.filename { margin-left: 15px; color: #dcdcdc; }

pre.code { padding: 20px; color: #c8b6ff; font-family: "Fira Code", monospace; font-size: 14px; white-space: pre; word-break: normal; line-height: 1.8; }

.code-content { background: #0d1117; padding: 0.8rem; font-size: 0.65rem; line-height: 1.4; font-family: 'JetBrains Mono', monospace; overflow-x: auto; position: relative; display: block; } 
.code-content .ln { display: inline-block; width: 2ch; margin-right: 0.4rem; color: #484f58; text-align: right; user-select: none; border-right: 1px solid rgba(255,255,255,0.05); padding-right: 0.3rem; }

/* Coloration syntaxique */
.code-content .keyword { color: #c678dd }
.code-content .method { color: #61afef }
.code-content .string { color: #98c379 }
.code-content .property { color: #e5c07b }

/* Scrollbar Custom pour le code */
.code-content::-webkit-scrollbar { width: 9px; height: 9px; }
.code-content::-webkit-scrollbar-thumb { background-color: var(--accent-primary) !important; border-radius: 10px; border: 1px solid #080d15; }
.code-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }

/* Personnalisation de la barre de défilement globale */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, 0.3); border-radius: 10px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* Version spécifique pour Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--accent-primary) var(--bg-primary); }

/* ==========================================================================
   10. CONTACT & ROUTING TABLES
   ========================================================================== */
/* Contact Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; max-width: 1000px; margin: 0 auto; align-items: center; }
.contact-info h3 { font-size: 2rem; margin-bottom: 1rem; font-weight: 700; }
.contact-info p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; color: var(--text-primary); transition: color .3s ease; }
.contact-link:hover { color: var(--accent-primary); }
.contact-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: rgba(167, 139, 250, 0.08); border: 1px solid rgba(167, 139, 250, 0.15);
    color: var(--accent-primary); font-size: 1.2rem;
}

.contact-form { padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 600; color: var(--text-primary); }
.form-group input, .form-group textarea {
    width: 100%; padding: .9rem; border-radius: var(--radius);
    background: rgba(167, 139, 250, 0.03); border: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--text-primary); font-family: inherit; font-size: 1rem;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 2px var(--accent-primary), 0 0 0 6px rgba(167, 139, 250, 0.15); }

/* Routing Tables */
.route-tables { margin-top: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.router-title { color: var(--accent-secondary); font-size: 1.4rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.router-title::before { content: "\f233"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent-primary); }

.route-table { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(255, 255, 255, 0.03); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); }
.route-table th { background: rgba(167, 139, 250, 0.1); color: var(--accent-primary); text-align: left; padding: 1rem; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; border-bottom: 1px solid var(--border-color); }
.route-table td { padding: 1rem; color: var(--text-secondary); border-bottom: 1px solid rgba(167, 139, 250, 0.05); font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; }
.route-table tr:last-child td { border-bottom: none; }
.route-table tr:hover td { background: rgba(167, 139, 250, 0.05); color: var(--text-primary); transition: var(--transition); }

/* AP Missions Table */
.ap-section .glass-card { margin-bottom: 2.5rem; }
.ap-context-header { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.5rem; }
.ap-context-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; color: var(--bg-primary); font-size: 1.4rem; box-shadow: 0 10px 24px rgba(167, 139, 250, 0.35); }
.ap-context-subtitle { color: var(--text-secondary); margin-top: .25rem; }
.ap-context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.ap-context-grid h4 { color: var(--accent-primary); margin-bottom: .5rem; }
.ap-context-grid ul { list-style: none; padding-left: 0; display: grid; gap: .5rem; color: var(--text-secondary); }
.ap-context-grid li { position: relative; padding-left: 1.3rem; }
.ap-context-grid li::before { content: "•"; position: absolute; left: 0; color: var(--accent-secondary); }
.ap-context-actions { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.ap-context-actions .btn { min-width: 220px; }

.ap-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.ap-table { min-width: 820px; }
.ap-table td ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.ap-table td ul li { color: var(--text-secondary); }
.ap-table td:nth-child(1) { width: 22%; font-weight: 600; color: var(--text-primary); }
.ap-table td:nth-child(3) { width: 18%; }
.ap-table-btn { justify-content: center; width: 100%; }

.ap-trello { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.ap-trello h3 { margin-bottom: .5rem; }
.ap-trello p { color: var(--text-secondary); margin: 0; }
.ap-trello-actions .btn { min-width: 200px; justify-content: center; }

@media (max-width: 900px) {
    .ap-table { min-width: 720px; }
    .ap-trello { flex-direction: column; align-items: flex-start; }
    .ap-trello-actions { width: 100%; }
    .ap-trello-actions .btn { width: 100%; }
}

/* ==========================================================================
   11. MODALES (OVERLAYS & CONTENTS)
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(8, 13, 21, 0.9); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    width: 90%; max-width: 1000px; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1); position: relative; padding: 2.5rem;
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; background: var(--bg-glass);
    border: 1px solid var(--border-color); color: var(--text-primary);
    width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    font-size: 1.2rem; transition: var(--transition); z-index: 2010;
}
.modal-close:hover { background: var(--accent-primary); color: var(--bg-primary); transform: rotate(90deg); border-color: var(--accent-primary); }

.modal-header-centered { text-align: center; margin-bottom: 3rem; }
.modal-content .section-title { text-align: left; margin-bottom: 2rem; }
.modal-content .section-title:first-child { text-align: center; }

/* Modal PDF spécifique */
.modal-content.modal-pdf-wide { max-width: 1200px; width: 95%; max-height: 90vh; }
.pdf-grid { display: flex; gap: 20px; margin-top: 20px; }
.pdf-column { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.pdf-label { font-family: 'JetBrains Mono', monospace; color: var(--accent-primary); font-weight: 600; text-align: center; padding: 10px; background: rgba(167, 139, 250, 0.05); border-radius: var(--radius); border: 1px solid var(--border-color); }
.pdf-frame { width: 100%; height: 600px; border-radius: var(--radius); border: 1px solid var(--border-color); background: white; }
.pdf-placeholder { height: 600px; border: 2px dashed var(--border-color); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-secondary); padding: 20px; }
.pdf-placeholder i { font-size: 3rem; color: var(--accent-primary); margin-bottom: 15px; }
.pdf-placeholder .sub-text { font-size: 0.8rem; margin-top: 10px; opacity: 0.6; }

/* Boutons de fermeture de modale */
.btn-modal-close { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.25rem; padding: 12px 24px; border-radius: 12px; margin: 2rem auto 0; width: 250px; }
.btn-modal-close i { font-size: 1.4rem; }

/* Vidéos et Images dans modale */
.video-container { width: 100%; max-width: 720px; margin: 2rem auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(167, 139, 250, 0.15); }
.video-container iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: none; }
.preview-image { width: 100%; max-width: 550px; height: auto; border-radius: var(--radius-lg); margin: 2rem auto; display: block; box-shadow: var(--shadow-lg); border: 1px solid rgba(167, 139, 250, 0.15); }

/* Code Toggle dans modale */
.code-toggle { max-width: 100%; margin: 3rem auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease; }
.code-toggle .code-header { cursor: pointer; transition: background .3s ease; }
.code-toggle:hover { box-shadow: 0 10px 30px rgba(167, 139, 250, 0.1); }
.code-toggle .code-content { max-height: 0; overflow: hidden; background: rgba(0, 0, 0, 0.2); transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; padding: 0 1.2rem; }
.code-toggle.active .code-content { max-height: 450px; overflow-y: auto !important; overflow-x: auto !important; padding: 1.2rem; display: block; }
.code-toggle .code-content pre { margin: 0; white-space: pre !important; display: inline-block; min-width: 100%; }
.code-toggle.active { box-shadow: var(--shadow-lg); }

/* ==========================================================================
   12. FOOTER & ANIMATIONS
   ========================================================================== */
.footer { padding: 3rem 2rem; border-top: 1px solid rgba(167, 139, 250, 0.1); text-align: center; }
.footer .container { max-width: 1200px; margin: 0 auto; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-content p, .footer p { color: var(--text-secondary); margin: 0.5rem 0; }
.footer-content i { color: #f87171; }
.footer-links { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }
.footer-links a { color: var(--text-secondary); font-size: 1.4rem; transition: color .3s ease; }
.footer-links a:hover { color: var(--accent-primary); }
.footer-tech { font-size: .9rem; color: var(--text-secondary); font-weight: 500; }

/* AOS & Utils */
[data-aos] { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
[data-aos="fade-up"] { transform: translateY(30px) }
[data-aos="fade-left"] { transform: translateX(30px) }
[data-aos="fade-right"] { transform: translateX(-30px) }
[data-aos].aos-animate { opacity: 1; transform: none; }

.notification-success { background-color: #4ade80; color: #080d15 !important; }

/* ==========================================================================
   13. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* Tablettes / PC Portables (< 1050px) */
@media(max-width:1050px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { justify-content: center; margin: 0 auto 1.5rem auto; }
    .code-card { max-width: 550px; margin: 0 auto; }
    .hero-description { max-width: none; }
    .hero-buttons { justify-content: center; }
    .contact_grid { grid-template-columns: 1fr; text-align: center; }
    .contact-links { align-items: center; }
    .cv-card { flex-direction: column; text-align: center; align-items: center; gap: 1rem; padding: 1.5rem; }
    .cv-preview { margin-bottom: 1.5rem; order: -1; max-width: 260px; width: 100%; }
    .cv-content { width: 100%; }
    .cv-content p { font-size: clamp(.95rem, 2.6vw, 1.05rem); }
    .cv-buttons { justify-content: center; }
    .cv-buttons .btn { min-width: 180px; }
}

/* Écrans Larges (> 769px) */
@media (min-width: 769px) {
    .close-nav { display: none !important; }
}

/* Mobile Standard (< 768px) */
@media(max-width:768px) {
    .nav-links {
        position: fixed; top: 12px; right: 12px; bottom: 12px;
        width: min(360px, 92%); height: calc(100vh - 24px);
        background: linear-gradient(180deg, rgba(9,12,20,1), rgba(8,11,18,1));
        border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
        border-radius: 12px 0 0 12px; display: flex; flex-direction: column;
        align-items: flex-start; justify-content: flex-start; gap: 0.6rem;
        transform: translateX(110%); transition: transform .36s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
        opacity: 0; z-index: 1500; padding: 1.1rem 1rem 1.2rem 1rem; overflow: auto;
        pointer-events: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    }
    .nav-links.active { transform: translateX(0); opacity: 1; pointer-events: auto; }
    .nav-links a { font-size: 1rem; color: var(--text-primary); opacity: 0; padding: 12px 10px; border-radius: 8px; width: 100%; text-align: left; font-weight: 600; }
    .nav-links.active a { opacity: 1; }
    .nav-links a + a { margin-top: 4px; }
    .nav-links a[tabindex='-1'] { pointer-events: none; opacity: 0.6; }
    .nav-links .close-nav { position: absolute; top: 0.8rem; right: 0.8rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); color: var(--text-primary); font-size: 1.2rem; padding: .45rem; border-radius: 8px; cursor: pointer; }
    .nav-links .nav-footer { position: absolute; bottom: 20px; right: 20px; display: flex; flex-direction: row; gap: 10px; }
    .nav-links .nav-footer a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; }
    .burger { display: flex; }
    .logo { font-size: 1.25rem; }
    .logo-nav-img { max-height: 30px; }
    .section { padding: 8rem 2rem; }
    .hero-bg, .hero-bg-2 { width: 360px; height: 360px; filter: blur(80px); opacity: .28; }
    .hero-bg { left: -20% }
    .hero-bg-2 { right: -20% }
    .footer-content { justify-content: center; text-align: center; }
    .footer-links { margin-top: .5rem; margin-left: 0; }
    .footer-links a { margin: 0 .75rem; }
    .modal-content { padding: 1.5rem; width: 95%; }
    .modal-close { top: 0.75rem; right: 0.75rem; width: 35px; height: 35px; }
    .pdf-grid { flex-direction: column; }
    .pdf-frame, .pdf-placeholder { height: 450px; }
    .route-table { display: block; overflow-x: auto; white-space: nowrap; }

    .code-card { margin: 0; width: 100%; }
    .code-content { padding: 0.3rem; font-size: 0.52rem; line-height: 1.1; } 
    .code-content .ln { position: static; display: inline-block; width: 1.5ch; margin-right: 0.2rem; text-align: right; font-size: 0.48rem; }

    .code-compact {padding-left: 0 !important; }
    .code-compact code {padding-left: 3.2ch !important; position: relative; display: block; }
    .code-compact .ln {position: absolute; left: 0; width: 2.8ch; text-align: right; padding-right: 0.6rem; margin: 0; color: rgba(148, 163, 184, 0.5); user-select: none; }
}

/* Mobile Petit (< 480px) */
@media(max-width:480px) {
    .section { padding: 5rem 0.75rem; }
    .hero-title { font-size: clamp(1.8rem, 7.5vw, 2.6rem); line-height: 1.05; text-align: center; min-height: calc(2 * 1.05em); display: block; }
    .hero-bg, .hero-bg-2 { width: 240px; height: 240px; filter: blur(60px); opacity: .25; }
    .hero-bg { left: -30% }
    .hero-bg-2 { right: -30% }
    .competences-container { justify-content: center; gap: 20px; }
    .skill { width: 100%; max-width: 250px; margin: 0 auto; padding: 20px; }
    .skills-grid-modern { grid-template-columns: 1fr; gap: 1.5rem; }
    .skill-card-modern { flex-direction: column; text-align: center; padding: 1.5rem; }
    .skill-icon-modern { width: 60px; height: 60px; font-size: 1.5rem; }
    .skill-title-modern { font-size: 1.25rem; }
    .skill-progress-modern { flex-direction: column; gap: 0.5rem; align-items: stretch; }
    .skill-percent-modern { text-align: center; font-size: 1.1rem; }
    .code-card { margin: 0; width: 100%; }
    .code-content { padding: 0.2rem; font-size: 0.45rem; line-height: 1.1; } 
    .code-content .ln { position: static; display: inline-block; width: 1.2ch; margin-right: 0.15rem; text-align: right; font-size: 0.42rem; color: #484f58; border: none; }

    .code-card {margin: 10px 0; width: 100%; }
    .code-compact {position: relative; padding: 1rem 0.5rem 1rem 0 !important; font-size: 0.8rem;line-height: 1.5; overflow-x: auto;}
    .code-compact code {position: relative; display: block; padding-left: 3ch !important;}
    .code-compact .ln {position: absolute; left: 0; width: 2.4ch; margin: 0; padding-right: 0.4rem; font-size: 0.65rem; text-align: right; color: rgba(148,163,184,0.5); border-right: none; user-select: none;}
    
    .overlay-btn { width: 64px; height: 64px; font-size: 1.25rem; }
    .hero-buttons { flex-direction: column; gap: .75rem; }
    .btn { width: 100% }
    .cv-card { padding: 3rem 1.5rem; }
    .about-card { padding: 1.5rem; }
    .about-header { flex-direction: column; text-align: center; gap: 1rem; }
    .about-tags { justify-content: center; }
    .contact-form { padding: 1.5rem; }
    .cv-preview { height: 320px; }
    .cv-preview .cv-image { object-position: top center; }
    .btn-modal-close { width: auto; font-size: 1rem; padding: 8px 16px; gap: 8px; }
    .btn-modal-close i { font-size: 1.1rem; }
    .cv-buttons { flex-direction: column; gap: .75rem; align-items: stretch; }
    .cv-buttons .btn { width: 100%; min-width: 0; }
}

