/* ═══════════════════════════════════════════════════
   JJKA Portfolio · style.css
   Thème : Light (principal) / Dark (secondaire)
   Indigo-Violet/Teal · Syne & DM Sans
═══════════════════════════════════════════════════ */

/* ── LIGHT THEME (principal) ── */
:root {
    --bg:            #f5f7ff;
    --bg-card:       #ffffff;
    --bg-elevated:   #eef1fb;
    --bg-surface:    #e3e8f5;
    --ink:           #0e1529;
    --ink-soft:      #4a5470;
    --ink-muted:     #a8b2c8;
    --primary:       #4060e8;
    --primary-dark:  #2d4bd4;
    --primary-light: #6c8dff;
    --primary-glow:  rgba(64, 96, 232, 0.18);
    --accent:        #009e88;
    --accent-dark:   #007a6a;
    --accent-light:  #00b89c;
    --accent-glow:   rgba(0, 158, 136, 0.18);
    --gold:          #d97706;
    --border:        rgba(14, 21, 41, 0.08);
    --border-light:  rgba(64, 96, 232, 0.22);
    --shadow-sm:     0 4px 16px rgba(14, 21, 41, 0.08);
    --shadow-md:     0 10px 36px rgba(14, 21, 41, 0.12);
    --shadow-lg:     0 24px 60px rgba(14, 21, 41, 0.16);
    --shadow-glow:   0 0 28px var(--primary-glow);
    --radius:        14px;
    --radius-lg:     20px;
    --radius-xl:     28px;
    --transition:    all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width:     1200px;
    color-scheme: light;
}

/* ── DARK THEME ── */
[data-theme="dark"] {
    --bg:            #0b0f1a;
    --bg-card:       #12182a;
    --bg-elevated:   #1a2236;
    --bg-surface:    #202840;
    --ink:           #eef1f8;
    --ink-soft:      #8892aa;
    --ink-muted:     #3d4a62;
    --primary:       #6c8dff;
    --primary-dark:  #4d6fef;
    --primary-light: #94abff;
    --primary-glow:  rgba(108, 141, 255, 0.22);
    --accent:        #00d4b4;
    --accent-dark:   #00a88f;
    --accent-light:  #2ce5c8;
    --accent-glow:   rgba(0, 212, 180, 0.2);
    --gold:          #ffb547;
    --border:        rgba(255, 255, 255, 0.07);
    --border-light:  rgba(108, 141, 255, 0.28);
    --shadow-sm:     0 4px 18px rgba(0, 0, 0, 0.45);
    --shadow-md:     0 12px 42px rgba(0, 0, 0, 0.55);
    --shadow-lg:     0 28px 64px rgba(0, 0, 0, 0.65);
    --shadow-glow:   0 0 32px var(--primary-glow);
    color-scheme: dark;
}

/* ════════════════ RESET ════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }
.highlight { color: var(--primary); }

/* ════════════════ SCROLL PROGRESS ════════════════ */
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1200; box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s linear;
}

/* ════════════════ NAVBAR ════════════════ */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(245, 247, 255, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, box-shadow 0.32s ease;
}
[data-theme="dark"] .navbar { background: rgba(11, 15, 26, 0.85); }
.navbar.is-scrolled { box-shadow: var(--shadow-md); }
[data-theme="dark"] .navbar.is-scrolled { background: rgba(11, 15, 26, 0.97); }

.navbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }

.logo {
    font-family: 'Syne', sans-serif; font-size: 1.55rem; font-weight: 800;
    color: var(--ink); letter-spacing: 1px; transition: color 0.2s; flex-shrink: 0;
}
.logo:hover { color: var(--primary); }
.logo-dot { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
    color: var(--ink-soft); font-weight: 500; font-size: 0.88rem;
    padding: 6px 12px; border-radius: var(--radius);
    position: relative; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: rgba(64,96,232,0.08); }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.is-active { background: rgba(108,141,255,0.1); }
.nav-links a::after {
    content: ''; position: absolute;
    bottom: 2px; left: 12px; right: 12px;
    height: 1.5px; background: var(--primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.24s ease; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

/* navbar right side */
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── THEME TOGGLE ── */
.theme-toggle {
    display: flex; align-items: center; gap: 7px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
    padding: 5px 10px 5px 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--ink-soft); flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 14px var(--primary-glow);
}

.theme-icon { display: flex; align-items: center; transition: opacity 0.3s ease, transform 0.4s ease; }
.theme-icon-sun  { display: flex; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun  { display: none; }
[data-theme="dark"] .theme-icon-moon { display: flex; }

/* toggle pill */
.theme-track {
    width: 34px; height: 18px;
    background: var(--bg-surface);
    border-radius: 999px; border: 1px solid var(--border-light);
    display: flex; align-items: center; padding: 2px;
    transition: background 0.3s ease; flex-shrink: 0;
}
[data-theme="dark"] .theme-track { background: var(--primary); border-color: var(--primary); }
.theme-thumb {
    width: 12px; height: 12px;
    background: var(--ink-soft); border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s ease;
    flex-shrink: 0;
}
[data-theme="dark"] .theme-thumb { transform: translateX(16px); background: #fff; }

/* burger */
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
    border-radius: var(--radius); transition: background var(--transition);
}
.menu-toggle:hover { background: rgba(64,96,232,0.08); }
[data-theme="dark"] .menu-toggle:hover { background: rgba(108,141,255,0.1); }
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--ink); border-radius: 2px; transition: var(--transition);
}

/* ════════════════ BUTTONS ════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.9rem;
    border: 2px solid transparent; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 28px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 14px 36px rgba(64,96,232,0.4); }
[data-theme="dark"] .btn-primary:hover { box-shadow: 0 14px 36px rgba(108,141,255,0.4); }

.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: rgba(64,96,232,0.08); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(108,141,255,0.1); }

.btn-ghost { background: var(--bg-elevated); color: var(--ink-soft); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-surface); color: var(--ink); }

/* ════════════════ HERO ════════════════ */
.hero {
    padding: 150px 0 100px; position: relative;
    overflow: hidden; min-height: 100svh;
    display: flex; align-items: center;
    background: linear-gradient(180deg, #e8ecfc 0%, var(--bg) 100%);
}
[data-theme="dark"] .hero { background: linear-gradient(180deg, #070b15 0%, var(--bg) 100%); }

.hero-ornaments { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; }
.orb-1 {
    width: 600px; height: 600px; top: -200px; left: -180px;
    background: radial-gradient(circle, rgba(64,96,232,0.12) 0%, transparent 65%);
    animation: floatSlow 13s ease-in-out infinite;
}
[data-theme="dark"] .orb-1 { background: radial-gradient(circle, rgba(108,141,255,0.14) 0%, transparent 65%); }
.orb-2 {
    width: 700px; height: 700px; bottom: -280px; right: -220px;
    background: radial-gradient(circle, rgba(0,158,136,0.1) 0%, transparent 65%);
    animation: floatSlow 18s ease-in-out infinite reverse;
}
[data-theme="dark"] .orb-2 { background: radial-gradient(circle, rgba(0,212,180,0.12) 0%, transparent 65%); }
.orb-3 {
    width: 340px; height: 340px; top: 20%; right: 6%;
    background: radial-gradient(circle, rgba(64,96,232,0.06) 0%, transparent 65%);
    animation: floatSlow 10s ease-in-out infinite;
}
[data-theme="dark"] .orb-3 { background: radial-gradient(circle, rgba(108,141,255,0.08) 0%, transparent 65%); }
.grid-sheen {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(transparent 0 96%, rgba(64,96,232,0.05) 97% 100%),
        linear-gradient(90deg, transparent 0 96%, rgba(0,158,136,0.04) 97% 100%);
    background-size: 80px 80px;
    animation: sheenShift 24s linear infinite;
}
[data-theme="dark"] .grid-sheen {
    background-image:
        linear-gradient(transparent 0 96%, rgba(108,141,255,0.04) 97% 100%),
        linear-gradient(90deg, transparent 0 96%, rgba(0,212,180,0.03) 97% 100%);
}
.hero-scan-line {
    position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(64,96,232,0.25), transparent);
    animation: scanDown 9s ease-in-out infinite; pointer-events: none;
}
[data-theme="dark"] .hero-scan-line { background: linear-gradient(90deg, transparent, rgba(108,141,255,0.25), transparent); }
@keyframes scanDown {
    0% { top: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; }
}
.hero .container { position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; }

.hero-eyebrow {
    display: flex; align-items: center; gap: 8px;
    color: var(--ink-soft); font-size: 0.88rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow-dot {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800;
    color: var(--ink); margin-bottom: 14px; letter-spacing: -0.5px; line-height: 1.1;
}
.hero-name-accent {
    display: block;
    background: linear-gradient(100deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-role {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 400;
    color: var(--ink-soft); margin-bottom: 20px; letter-spacing: 0.3px;
}
.role-bracket { color: var(--accent); font-family: 'Syne', monospace; font-weight: 700; }
.hero-desc { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 22px; max-width: 560px; line-height: 1.8; }

.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags span {
    background: rgba(64,96,232,0.08); border: 1px solid rgba(64,96,232,0.2);
    color: var(--primary); padding: 5px 14px; border-radius: 999px;
    font-size: 0.84rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px; transition: var(--transition);
}
[data-theme="dark"] .hero-tags span { background: rgba(108,141,255,0.1); color: var(--primary-light); }
.hero-tags span:hover { background: rgba(64,96,232,0.15); }
[data-theme="dark"] .hero-tags span:hover { background: rgba(108,141,255,0.18); }

.hero-buttons { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--ink-soft); transition: var(--transition); font-size: 1rem;
}
.social-link:hover {
    background: rgba(64,96,232,0.1); border-color: var(--primary);
    color: var(--primary); transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--primary-glow);
}
[data-theme="dark"] .social-link:hover { background: rgba(108,141,255,0.15); }

.hero-image { position: relative; display: grid; place-items: center; }
.profile-frame {
    width: 320px; height: 320px; padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    margin: 0 auto; animation: morphing 14s infinite ease-in-out;
    box-shadow: 0 30px 70px var(--primary-glow), var(--shadow-glow);
    position: relative; z-index: 2;
}
.profile-photo {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    border-radius: inherit; border: 2px solid rgba(255,255,255,0.25);
}
.profile-badge {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-card); color: var(--ink);
    border: 1px solid var(--border-light); border-radius: 999px;
    padding: 7px 14px; font-size: 0.82rem; font-weight: 600;
    backdrop-filter: blur(12px); box-shadow: var(--shadow-md); z-index: 3; white-space: nowrap;
}
.profile-badge i { color: var(--primary); }

.orbit { position: absolute; inset: -44px; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid; }
.ring-outer { width: 420px; height: 420px; border-color: rgba(64,96,232,0.25); border-style: dashed; animation: spin 22s linear infinite; }
[data-theme="dark"] .ring-outer { border-color: rgba(108,141,255,0.25); }
.ring-mid   { width: 360px; height: 360px; border-color: rgba(0,158,136,0.22); animation: spinReverse 17s linear infinite; }
[data-theme="dark"] .ring-mid { border-color: rgba(0,212,180,0.22); }
.ring-inner { width: 295px; height: 295px; border-color: rgba(64,96,232,0.45); animation: targetPulse 3.5s ease-in-out infinite; }
[data-theme="dark"] .ring-inner { border-color: rgba(108,141,255,0.45); }
.orbit::before {
    content: ''; position: absolute; width: 430px; height: 430px; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(64,96,232,0) 0deg, rgba(64,96,232,0.2) 40deg, rgba(64,96,232,0) 110deg);
    animation: spin 9s linear infinite;
}
[data-theme="dark"] .orbit::before { background: conic-gradient(from 0deg, rgba(108,141,255,0) 0deg, rgba(108,141,255,0.2) 40deg, rgba(108,141,255,0) 110deg); }
.target-crosshair { position: absolute; background: rgba(64,96,232,0.35); box-shadow: 0 0 6px rgba(64,96,232,0.3); }
[data-theme="dark"] .target-crosshair { background: rgba(108,141,255,0.35); box-shadow: 0 0 6px rgba(108,141,255,0.3); }
.crosshair-h { width: 295px; height: 1px; }
.crosshair-v { width: 1px; height: 295px; }
.orbit-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid rgba(255,255,255,0.55); box-shadow: 0 0 14px var(--primary-glow); }
.dot-1 { top:9%; left:50%; transform:translateX(-50%); animation:targetTrack1 8s linear infinite; }
.dot-2 { top:50%; right:9%; transform:translateY(-50%); animation:targetTrack2 10s linear infinite; }
.dot-3 { bottom:10%; left:24%; animation:targetTrack3 12s linear infinite; }

.floating-elements { position: absolute; inset: 0; z-index: 3; }
.floating-element {
    position: absolute; width: 52px; height: 52px;
    background: var(--bg-elevated); border: 1px solid var(--border-light);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--primary); box-shadow: var(--shadow-md);
    animation: float 6s infinite ease-in-out; backdrop-filter: blur(8px);
}
.element1 { top: 14px; left: 8px; }
.element2 { top: 14px; right: 4px; animation-delay: 2s; }
.element3 { bottom: 8px; right: 32px; animation-delay: 4s; }

.hero-scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.scroll-mouse {
    width: 24px; height: 38px; border: 2px solid var(--border-light); border-radius: 12px;
    display: flex; align-items: flex-start; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
    width: 3px; height: 8px; background: var(--primary); border-radius: 2px;
    animation: scrollWheelMove 2.2s ease-in-out infinite;
}
@keyframes scrollWheelMove {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.35; }
}
.scroll-label { font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 2.5px; text-transform: uppercase; }

/* ════════════════ SECTIONS COMMON ════════════════ */
.section { padding: 96px 0; position: relative; scroll-margin-top: 80px; transition: background 0.4s ease; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; opacity: 0.9; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; color: var(--ink); position: relative; display: inline-block; }
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px;
}

/* ════════════════ STATS ════════════════ */
.stats { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stat-item {
    padding: 32px 20px; text-align: center;
    background: var(--bg-elevated); border: 1px solid var(--border);
    transition: var(--transition); position: relative; overflow: hidden;
}
.stat-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity var(--transition);
}
.stat-item:hover::before { opacity: 1; }
.stat-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat-item:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.stat-item:hover { background: var(--bg-surface); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-icon-wrap {
    width: 52px; height: 52px; background: rgba(64,96,232,0.08); border: 1px solid var(--border-light);
    border-radius: 12px; display: grid; place-items: center; margin: 0 auto 16px;
    font-size: 1.35rem; color: var(--primary); transition: var(--transition);
}
[data-theme="dark"] .stat-icon-wrap { background: rgba(108,141,255,0.1); }
.stat-item:hover .stat-icon-wrap { background: rgba(64,96,232,0.15); box-shadow: 0 0 18px var(--primary-glow); }
[data-theme="dark"] .stat-item:hover .stat-icon-wrap { background: rgba(108,141,255,0.2); }
.stat-number { font-family: 'Syne', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; line-height: 1; }
.stat-item p { color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ════════════════ ABOUT ════════════════ */
.about { background: var(--bg); overflow: hidden; }
.about::before {
    content: ''; position: absolute; width: 440px; height: 440px; top: -140px; right: -100px;
    background: radial-gradient(circle, rgba(0,158,136,0.06), transparent 70%); pointer-events: none;
}
[data-theme="dark"] .about::before { background: radial-gradient(circle, rgba(0,212,180,0.07), transparent 70%); }
.about .container { position: relative; z-index: 1; }
.about-content { max-width: 1000px; margin: 0 auto; }
.about-text h3 { font-size: 1.55rem; margin-bottom: 16px; color: var(--ink); }
.about-text > p { color: var(--ink-soft); margin-bottom: 28px; font-size: 1.03rem; line-height: 1.82; }
.about-info { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 28px; }
.info-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
    background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
    transition: var(--transition);
}
.info-item:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 0.88rem; flex-shrink: 0; }
.info-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); opacity: 0.85; }
.info-value { font-weight: 600; color: var(--ink); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; }
.info-note { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.4; }
.qualities h4 { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: rgba(0,158,136,0.06); border: 1px solid rgba(0,158,136,0.2); padding: 5px 14px; border-radius: 999px; font-size: 0.84rem; color: var(--accent); font-weight: 600; transition: var(--transition); cursor: default; }
[data-theme="dark"] .tag { background: rgba(0,212,180,0.08); border-color: rgba(0,212,180,0.22); }
.tag:hover { background: rgba(0,158,136,0.12); border-color: var(--accent); }
[data-theme="dark"] .tag:hover { background: rgba(0,212,180,0.18); }
.about-actions { margin-top: 24px; }

/* ════════════════ SKILLS ════════════════ */
.skills { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.skill-category { background: var(--bg-elevated); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; }
.skill-category::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity var(--transition); }
.skill-category:hover::before { opacity: 1; }
.skill-category:hover { border-color: var(--border-light); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.skill-cat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.skill-cat-icon { width: 44px; height: 44px; background: rgba(64,96,232,0.08); border: 1px solid var(--border-light); border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; color: var(--primary); }
[data-theme="dark"] .skill-cat-icon { background: rgba(108,141,255,0.1); }
.skill-cat-header h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.skill-item { margin-bottom: 18px; }
.skill-item:last-child { margin-bottom: 0; }
.skill-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.skill-name { font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }
.skill-pct { font-size: 0.8rem; font-weight: 700; color: var(--primary); font-family: 'Syne', sans-serif; }
.skill-bar { height: 6px; background: var(--bg-surface); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.skill-level { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; width: 0; transition: width 1.4s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 0 8px var(--primary-glow); }

/* ════════════════ PROJECTS ════════════════ */
.projects { background: var(--bg); }
.project-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
    cursor: pointer; transition: var(--transition); font-family: 'DM Sans', sans-serif;
    font-weight: 600; font-size: 0.87rem; color: var(--ink-soft);
}
.filter-btn.active { background: rgba(64,96,232,0.1); color: var(--primary); border-color: var(--primary); box-shadow: 0 0 14px var(--primary-glow); }
[data-theme="dark"] .filter-btn.active { background: rgba(108,141,255,0.14); color: var(--primary-light); }
.filter-btn:hover:not(.active) { background: var(--bg-elevated); color: var(--ink); }

.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.project-card { background: var(--bg-card); padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.project-card:hover { border-color: var(--border-light); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(64,96,232,0.04), transparent 55%); opacity: 0; transition: opacity var(--transition); pointer-events: none; }
[data-theme="dark"] .project-card::before { background: linear-gradient(130deg, rgba(108,141,255,0.05), transparent 55%); }
.project-card:hover::before { opacity: 1; }
.project-card.featured { border-color: rgba(64,96,232,0.3); background: linear-gradient(145deg, rgba(64,96,232,0.04), var(--bg-card)); }
[data-theme="dark"] .project-card.featured { border-color: rgba(108,141,255,0.3); background: linear-gradient(145deg, rgba(108,141,255,0.05), var(--bg-card)); }
.featured-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; }
.project-card.is-fading { opacity: 0; transform: translateY(8px); pointer-events: none; }
.project-card.is-hidden { display: none; }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.project-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; box-shadow: 0 8px 18px var(--primary-glow); }
.project-cat-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; background: rgba(64,96,232,0.08); color: var(--primary); border: 1px solid rgba(64,96,232,0.2); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
[data-theme="dark"] .project-cat-badge { background: rgba(108,141,255,0.1); color: var(--primary-light); border-color: rgba(108,141,255,0.25); }
.security-badge { background: rgba(0,158,136,0.08); color: var(--accent); border-color: rgba(0,158,136,0.2); }
[data-theme="dark"] .security-badge { background: rgba(0,212,180,0.1); color: var(--accent); border-color: rgba(0,212,180,0.25); }
.cloud-badge { background: rgba(217,119,6,0.08); color: var(--gold); border-color: rgba(217,119,6,0.2); }
[data-theme="dark"] .cloud-badge { background: rgba(255,181,71,0.1); color: var(--gold); border-color: rgba(255,181,71,0.25); }
.project-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.project-card > p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.65; margin-bottom: 14px; flex: 1; }
.project-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.project-tech span { background: rgba(64,96,232,0.06); border: 1px solid rgba(64,96,232,0.15); padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; color: var(--primary); font-weight: 600; }
[data-theme="dark"] .project-tech span { background: rgba(108,141,255,0.08); border-color: rgba(108,141,255,0.18); color: var(--primary-light); }
.project-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.project-details h4 { font-size: 0.78rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; }
[data-theme="dark"] .project-details h4 { color: var(--ink-muted); }
.project-details ul { list-style: none; margin-bottom: 14px; }
.project-details li { color: var(--ink-soft); font-size: 0.84rem; padding: 2px 0 2px 18px; position: relative; line-height: 1.5; }
.project-details li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.project-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.project-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; transition: var(--transition); }
.project-link:hover { background: rgba(64,96,232,0.08); border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .project-link:hover { background: rgba(108,141,255,0.1); }
.project-link.is-disabled { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
.project-link.is-disabled:hover { background: var(--bg-elevated); border-color: var(--border); color: var(--ink-soft); }
.project-stats { display: flex; justify-content: space-around; padding: 12px; background: rgba(64,96,232,0.04); border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 12px; }
[data-theme="dark"] .project-stats { background: rgba(108,141,255,0.06); }
.project-stats .stat { text-align: center; }
.project-stats .stat-number { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.project-stats .stat-label { font-size: 0.72rem; color: var(--ink-soft); display: block; margin-top: 2px; }
.project-categories { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.category { text-align: center; padding: 28px 20px; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); }
.category:hover { border-color: var(--border-light); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cat-icon-wrap { width: 58px; height: 58px; background: rgba(64,96,232,0.08); border: 1px solid var(--border-light); border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.35rem; color: var(--primary); transition: var(--transition); }
[data-theme="dark"] .cat-icon-wrap { background: rgba(108,141,255,0.1); }
.category:hover .cat-icon-wrap { background: rgba(64,96,232,0.15); box-shadow: 0 0 18px var(--primary-glow); }
[data-theme="dark"] .category:hover .cat-icon-wrap { background: rgba(108,141,255,0.2); }
.category h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.category p { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; }

/* ════════════════ TIMELINE ════════════════ */
.timeline { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline-container { position: relative; max-width: 860px; margin: 0 auto; }
.timeline-container::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--accent), transparent); opacity: 0.35; border-radius: 999px; }
.timeline-item { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: start; margin-bottom: 40px; }

/* Colonne date : toujours à sa place dans le flux HTML */
.timeline-date { padding: 18px 24px 14px 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
/* Quand la date est en 3e colonne (items impairs), on ajuste l'alignement */
.timeline-item > .timeline-date:last-child { padding: 18px 0 14px 24px; text-align: left; align-items: flex-start; }

.tl-year { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--primary); font-size: 0.93rem; }
.tl-status { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(0,158,136,0.08); color: var(--accent); border: 1px solid rgba(0,158,136,0.2); padding: 2px 8px; border-radius: 999px; }
[data-theme="dark"] .tl-status { background: rgba(0,212,180,0.1); border-color: rgba(0,212,180,0.3); }
.timeline-dot { width: 14px; height: 14px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; margin: 22px auto 0; box-shadow: 0 0 0 4px rgba(64,96,232,0.12), 0 0 14px var(--primary-glow); position: relative; z-index: 1; }
[data-theme="dark"] .timeline-dot { box-shadow: 0 0 0 4px rgba(108,141,255,0.15), 0 0 14px var(--primary-glow); }
/* Contenu à droite (1re colonne = date) */
.timeline-item > .timeline-content:last-child { margin: 6px 0 6px 24px; }
/* Contenu à gauche (1re colonne = contenu) */
.timeline-item > .timeline-content:first-child { margin: 6px 24px 6px 0; }
.timeline-content { padding: 18px 22px; background: var(--bg-elevated); border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.timeline-content:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.timeline-content h3 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.timeline-content p { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; margin-bottom: 4px; }

/* ════════════════ CERTIFICATIONS ════════════════ */
.certifications { background: var(--bg); }
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex; flex-direction: column; gap: 10px;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.cert-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity var(--transition);
}
.cert-card:hover::before { opacity: 1; }
.cert-card:hover { border-color: var(--border-light); transform: translateY(-5px); box-shadow: var(--shadow-md); }

.cert-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cert-logo {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(64,96,232,0.12), rgba(0,158,136,0.08));
    border: 1px solid var(--border-light);
    border-radius: 12px; display: grid; place-items: center;
    font-size: 1.2rem; color: var(--primary);
}
[data-theme="dark"] .cert-logo { background: linear-gradient(135deg, rgba(108,141,255,0.14), rgba(0,212,180,0.1)); }
.cert-logo--pending { color: #f59e0b; background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }

.cert-badge-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
    background: rgba(64,96,232,0.08); color: var(--primary);
    border: 1px solid rgba(64,96,232,0.2);
}
[data-theme="dark"] .cert-badge-label { background: rgba(108,141,255,0.1); border-color: rgba(108,141,255,0.25); color: var(--primary-light); }
.cert-badge-label--pending { background: rgba(245,158,11,0.08); color: #d97706; border-color: rgba(245,158,11,0.25); }
[data-theme="dark"] .cert-badge-label--pending { color: #fbbf24; }

.cert-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cert-issuer { font-size: 0.8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.cert-date { font-size: 0.8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.cert-date strong { color: var(--ink); font-weight: 600; }
.cert-date--pending { color: #d97706; }
[data-theme="dark"] .cert-date--pending { color: #fbbf24; }

.cert-link {
    margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(64,96,232,0.06); border: 1px solid rgba(64,96,232,0.18);
    color: var(--primary); font-size: 0.8rem; font-weight: 600;
    transition: var(--transition); width: fit-content;
}
[data-theme="dark"] .cert-link { background: rgba(108,141,255,0.08); border-color: rgba(108,141,255,0.22); color: var(--primary-light); }
.cert-link:hover { background: rgba(64,96,232,0.14); border-color: var(--primary); transform: translateX(3px); }
[data-theme="dark"] .cert-link:hover { background: rgba(108,141,255,0.16); }
.cert-link--pending { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.18); color: #d97706; cursor: default; }
[data-theme="dark"] .cert-link--pending { background: rgba(245,158,11,0.08); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.cert-link--pending:hover { transform: none; }

.cert-card--pending { border-style: dashed; border-color: rgba(245,158,11,0.3); }
[data-theme="dark"] .cert-card--pending { border-color: rgba(245,158,11,0.2); }
.cert-card--pending:hover { border-color: rgba(245,158,11,0.5); box-shadow: 0 10px 36px rgba(245,158,11,0.1); }
.cert-card--pending::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.institution { color: var(--primary) !important; font-weight: 600; font-size: 0.83rem !important; display: flex; align-items: center; gap: 5px; margin-top: 4px; }

/* ════════════════ CONTACT ════════════════ */
.contact { background: var(--bg); }
.contact-content { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-intro { color: var(--ink-soft); font-size: 1rem; line-height: 1.78; margin-bottom: 28px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.contact-item:hover { border-color: var(--border-light); transform: translateX(4px); }
.contact-icon-wrap { width: 42px; height: 42px; background: rgba(0,158,136,0.08); border: 1px solid rgba(0,158,136,0.2); border-radius: 10px; display: grid; place-items: center; color: var(--accent); font-size: 1rem; flex-shrink: 0; }
[data-theme="dark"] .contact-icon-wrap { background: rgba(0,212,180,0.1); border-color: rgba(0,212,180,0.22); }
.contact-item h3 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin-bottom: 3px; font-family: 'DM Sans', sans-serif; }
.contact-item p, .contact-item a { color: var(--ink); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.contact-item a:hover { color: var(--primary); }
.contact-socials { display: flex; gap: 10px; margin-top: 6px; }
.contact-form { background: var(--bg-card); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.form-title { font-family: 'Syne', sans-serif; font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 22px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; background: var(--bg-elevated); border: 1.5px solid var(--border); border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 0.93rem; color: var(--ink); transition: var(--transition); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: var(--bg-card); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-help { color: var(--ink-soft); font-size: 0.8rem; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.contact-help i { color: var(--primary); }
.btn-submit { width: 100%; justify-content: center; }

/* ════════════════ FOOTER ════════════════ */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 40px 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.footer-logo { font-family: 'Syne', sans-serif; font-size: 1.45rem; font-weight: 800; color: var(--ink); display: block; margin-bottom: 8px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.86rem; }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-soft); font-size: 0.86rem; font-weight: 500; padding: 5px 12px; border-radius: var(--radius); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); background: rgba(64,96,232,0.08); }
[data-theme="dark"] .footer-links a:hover { background: rgba(108,141,255,0.08); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: var(--ink-muted); font-size: 0.8rem; }
.footer-credit { display: flex; align-items: center; gap: 5px; }

/* ════════════════ BACK TO TOP / TOAST ════════════════ */
.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-light); display: grid; place-items: center; background: var(--bg-elevated); color: var(--primary); box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: var(--transition); z-index: 1100; font-size: 0.9rem; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: rgba(64,96,232,0.1); border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 26px var(--primary-glow); }
[data-theme="dark"] .back-to-top:hover { background: rgba(108,141,255,0.15); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); background: var(--bg-elevated); color: var(--ink); border: 1px solid var(--border-light); padding: 10px 20px; border-radius: var(--radius); box-shadow: var(--shadow-md); font-size: 0.9rem; font-weight: 500; opacity: 0; pointer-events: none; transition: var(--transition); z-index: 1300; white-space: normal; max-width: calc(100vw - 48px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════ KEYFRAMES ════════════════ */
@keyframes morphing {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%  { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50%  { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75%  { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}
@keyframes float        { 0%, 100% { transform: translateY(0); }   50% { transform: translateY(-16px); } }
@keyframes spin         { from { transform: rotate(0deg); }         to { transform: rotate(360deg); } }
@keyframes spinReverse  { from { transform: rotate(360deg); }       to { transform: rotate(0deg); } }
@keyframes targetPulse  { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 0.6; } }
@keyframes targetTrack1 { 0%,100%{top:9%;left:50%} 33%{top:50%;left:91%} 66%{top:87%;left:50%} }
@keyframes targetTrack2 { 0%,100%{top:50%;right:9%} 33%{top:84%;right:48%} 66%{top:16%;right:48%} }
@keyframes targetTrack3 { 0%,100%{bottom:10%;left:23%} 33%{bottom:49%;left:8%} 66%{bottom:83%;left:49%} }
@keyframes sheenShift   { from { transform: translateX(0); } to { transform: translateX(80px); } }
@keyframes floatSlow    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ════════════════ RESPONSIVE ════════════════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 56px; text-align: center; }
    .hero-buttons, .social-links, .hero-tags, .hero-eyebrow { justify-content: center; }
    .hero-desc { margin: 0 auto 22px; }
    .hero-image { order: -1; }
    .skills-grid, .projects-grid { grid-template-columns: repeat(2,1fr); }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
    .stat-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
    .about-info { grid-template-columns: 1fr; }
    .project-categories { grid-template-columns: 1fr; }
    .timeline-container::before { left: 20px; }
    .timeline-item { grid-template-columns: 20px 1fr; grid-template-rows: auto; gap: 0 16px; }
    /* En mobile, toujours : dot en col1, contenu en col2 */
    .timeline-item > .timeline-date,
    .timeline-item > .timeline-date:last-child { display: none; }
    .timeline-item > .timeline-dot { grid-column: 1; grid-row: 1; margin: 6px auto 0; }
    .timeline-item > .timeline-content:last-child,
    .timeline-item > .timeline-content:first-child { grid-column: 2; grid-row: 1; margin: 0; }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-content { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: rgba(245,247,255,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; backdrop-filter: blur(20px); z-index: 999; }
    [data-theme="dark"] .nav-links { background: rgba(11,15,26,0.98); }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.1rem; padding: 10px 20px; width: 100%; text-align: center; }
    .menu-toggle { display: flex; }
    .theme-track { display: none; }
    .skills-grid, .projects-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: 1fr; }
    .project-categories { grid-template-columns: repeat(3,1fr); }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(1) { border-radius: var(--radius) 0 0 0; }
    .stat-item:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
    .stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius); }
    .stat-item:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
    .profile-frame { width: 268px; height: 268px; }
    .ring-outer { width: 338px; height: 338px; } .ring-mid { width: 288px; height: 288px; } .ring-inner { width: 236px; height: 236px; }
    .crosshair-h { width: 236px; } .crosshair-v { height: 236px; }
    .orbit::before { width: 346px; height: 346px; }
    .contact-form { padding: 22px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    section { padding: 72px 0; }
}

@media (max-width: 520px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-radius: 0 !important; }
    .stat-item:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
    .stat-item:last-child  { border-radius: 0 0 var(--radius) var(--radius) !important; }
    .project-categories { grid-template-columns: 1fr; }
    .filter-btn { font-size: 0.82rem; padding: 6px 12px; }
    .profile-frame { width: 228px; height: 228px; }
    .ring-outer { width: 288px; height: 288px; } .ring-mid { width: 246px; height: 246px; } .ring-inner { width: 202px; height: 202px; }
    .crosshair-h { width: 202px; } .crosshair-v { height: 202px; }
    .orbit::before { width: 295px; height: 295px; }
}
/* ════════════════ TYPING CURSOR ════════════════ */
.typing-cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink 0.75s step-end infinite;
    font-weight: 300;
    margin-left: 1px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ════════════════ CTF SECTION ════════════════ */
.ctf-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.ctf-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.ctf-intro > p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; margin-bottom: 28px; }

.ctf-platforms { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ctf-platform-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: var(--transition); text-decoration: none; color: var(--ink);
    min-width: 220px; flex: 1; max-width: 280px;
}
.ctf-platform-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ctf-platform-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: rgba(64,96,232,0.1); border: 1px solid var(--border-light);
    display: grid; place-items: center; font-size: 1.2rem; color: var(--primary);
}
.ctf-platform-icon.thm-icon { background: rgba(0,158,136,0.1); color: var(--accent); border-color: rgba(0,158,136,0.2); }
.ctf-platform-icon.pico-icon { background: rgba(217,119,6,0.1); color: var(--gold); border-color: rgba(217,119,6,0.2); }
[data-theme="dark"] .ctf-platform-icon { background: rgba(108,141,255,0.12); }
[data-theme="dark"] .ctf-platform-icon.thm-icon { background: rgba(0,212,180,0.12); border-color: rgba(0,212,180,0.25); }
[data-theme="dark"] .ctf-platform-icon.pico-icon { background: rgba(255,181,71,0.1); border-color: rgba(255,181,71,0.2); }
.ctf-platform-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ctf-platform-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.ctf-platform-sub { font-size: 0.78rem; color: var(--ink-soft); }
.ctf-platform-arrow { color: var(--ink-muted); font-size: 0.8rem; flex-shrink: 0; }

.ctf-categories-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 48px; }
.ctf-cat-card {
    background: var(--bg-elevated); padding: 24px 20px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    transition: var(--transition); position: relative; overflow: hidden;
}
.ctf-cat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity var(--transition);
}
.ctf-cat-card:hover::before { opacity: 1; }
.ctf-cat-card:hover { border-color: var(--border-light); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ctf-cat-icon {
    width: 50px; height: 50px; background: rgba(64,96,232,0.08);
    border: 1px solid var(--border-light); border-radius: 12px;
    display: grid; place-items: center; font-size: 1.2rem; color: var(--primary);
    margin-bottom: 16px; transition: var(--transition);
}
[data-theme="dark"] .ctf-cat-icon { background: rgba(108,141,255,0.1); }
.ctf-cat-card:hover .ctf-cat-icon { background: rgba(64,96,232,0.15); box-shadow: 0 0 18px var(--primary-glow); }
.ctf-cat-card h3 { font-size: 0.96rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ctf-cat-card p { color: var(--ink-soft); font-size: 0.84rem; line-height: 1.6; margin-bottom: 14px; }
.ctf-cat-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ctf-cat-tags span {
    font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    background: rgba(0,158,136,0.07); border: 1px solid rgba(0,158,136,0.2); color: var(--accent);
}
[data-theme="dark"] .ctf-cat-tags span { background: rgba(0,212,180,0.09); border-color: rgba(0,212,180,0.22); }

/* Cisco Track */
.cisco-track {
    background: var(--bg-elevated); border: 1px solid var(--border-light);
    border-radius: var(--radius-xl); padding: 32px 36px;
    position: relative; overflow: hidden;
}
.cisco-track::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.cisco-track-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.cisco-track-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px; display: grid; place-items: center;
    color: #fff; font-size: 1.3rem; box-shadow: 0 8px 20px var(--primary-glow);
}
.cisco-track-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cisco-track-header p { color: var(--ink-soft); font-size: 0.86rem; }
.cisco-track-badge {
    margin-left: auto; padding: 5px 14px; border-radius: 999px; font-size: 0.75rem;
    font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
    background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.3);
}
[data-theme="dark"] .cisco-track-badge { color: #fbbf24; border-color: rgba(245,158,11,0.25); }

.cisco-track-modules { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.cisco-module {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg-card); transition: var(--transition);
}
.cisco-module:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.cisco-module-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    background: var(--ink-muted);
}
.cisco-module--done .cisco-module-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.cisco-module--active .cisco-module-dot { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); animation: pulse 2s ease-in-out infinite; }
.cisco-module--pending .cisco-module-dot { background: var(--ink-muted); }
.cisco-module-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cisco-module-name { font-size: 0.84rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cisco-module-status { font-size: 0.72rem; font-weight: 700; }
.cisco-module-status.done { color: var(--accent); }
.cisco-module-status.active { color: var(--primary); }
.cisco-module-status.pending { color: var(--ink-muted); }

/* ════════════════ PRINT STYLES ════════════════ */
@media print {
    .navbar, .back-to-top, .toast, .scroll-progress, .hero-ornaments,
    .orbit, .floating-elements, .hero-scroll-hint, .project-filter,
    .ctf-platforms, .cisco-track, .contact-form { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .hero { min-height: auto; padding: 40px 0 20px; background: none; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
    section { padding: 24px 0; page-break-inside: avoid; }
    .section-title { font-size: 18pt; }
}

/* ════════════════ RESPONSIVE — MOBILE FIXES ════════════════ */
@media (max-width: 1024px) {
    .ctf-categories-grid { grid-template-columns: repeat(2,1fr); }
    .cisco-track-modules { grid-template-columns: repeat(2,1fr); }
    .ctf-platforms { flex-direction: column; align-items: center; }
    .ctf-platform-card { max-width: 100%; width: 100%; }
}

@media (max-width: 768px) {
    .ctf-categories-grid { grid-template-columns: repeat(2,1fr); }
    .cisco-track { padding: 24px 20px; }
    .cisco-track-modules { grid-template-columns: 1fr; }
    .cisco-track-badge { margin-left: 0; }
    /* Footer tap targets */
    .footer-links { justify-content: center; }
    .footer-links a { padding: 8px 14px; min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 520px) {
    .ctf-categories-grid { grid-template-columns: 1fr; }
    .ctf-intro { text-align: left; }
    .ctf-platforms { align-items: stretch; }
    .cisco-track-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cisco-track-badge { margin-left: 0; }
}

/* ════════════════ BADGES MOBILE & IOT ════════════════ */
.mobile-badge {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
[data-theme="dark"] .mobile-badge {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.25);
}
.iot-badge {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.25);
}
[data-theme="dark"] .iot-badge {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.25);
}
