*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root,
[data-theme="dark"] {
    --bg: #080c10;
    --surface: #111820;
    --border: rgba(0, 255, 204, 0.12);
    --text: #e8f4f0;
    --text-muted: #7a9090;
    --accent: #00ffcc;
    --accent-dim: rgba(0, 255, 204, 0.08);
    --card-bg: #111820;
    --nav-bg: rgba(8, 12, 16, 0.85);
    --gradient: linear-gradient(135deg, #00ffcc, #ff00ff);
    --blob1: rgba(0, 255, 204, 0.15);
    --blob2: rgba(255, 0, 255, 0.12);
    --skill-track: #1a2332;
    --terminal-bg: #0a0e14;
    --cursor-color: #00ffcc;
}

[data-theme="light"] {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --border: rgba(0, 150, 120, 0.18);
    --text: #0d1520;
    --text-muted: #5a7080;
    --accent: #008866;
    --accent-dim: rgba(0, 136, 102, 0.08);
    --card-bg: #ffffff;
    --nav-bg: rgba(240, 244, 248, 0.88);
    --gradient: linear-gradient(135deg, #008866, #cc00aa);
    --blob1: rgba(0, 200, 150, 0.18);
    --blob2: rgba(200, 0, 170, 0.12);
    --skill-track: #dde6f0;
    --terminal-bg: #0a0e14;
    --cursor-color: #008866;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Mono', monospace; background: var(--bg); color: var(--text); transition: background 0.4s ease, color 0.4s ease; overflow-x: hidden; cursor: none; }
h1, h2, h3, .logo { font-family: 'Syne', sans-serif; }
.accent { color: var(--accent); }

/* SECTION BG NUMBER */
.section { position: relative; padding: 100px 20px; }
.section-bg-num { position: absolute; top: 40px; right: 40px; font-family: 'Syne', sans-serif; font-size: clamp(6rem, 15vw, 14rem); font-weight: 800; line-height: 1; pointer-events: none; user-select: none; letter-spacing: -4px; filter: blur(1px); }
[data-theme="dark"] .section-bg-num { color: rgba(0,255,204,0.04); }
[data-theme="light"] .section-bg-num { color: rgba(0,136,102,0.05); }

/* SECTION SEPARATOR */
.section-sep { display: flex; align-items: center; padding: 0 60px; gap: 20px; overflow: hidden; }
.section-sep::before, .section-sep::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.section-sep span { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--accent); letter-spacing: 0.2em; opacity: 0.4; white-space: nowrap; }

/* SCANLINES */
#scanlines { position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px); }
body.scanlines-on #scanlines { opacity: 1; }
body.scanlines-on { animation: flicker 8s infinite; }
@keyframes flicker { 0%, 95%, 100% { filter: brightness(1); } 96% { filter: brightness(0.92); } 97% { filter: brightness(1.02); } 98% { filter: brightness(0.95); } }

/* CURSEUR */
#cursor { position: fixed; width: 12px; height: 12px; z-index: 9999; pointer-events: none; transform: translate(-50%, -50%); }
#cursor::before, #cursor::after { content: ''; position: absolute; background: var(--cursor-color); }
#cursor::before { width: 12px; height: 2px; top: 5px; left: 0; }
#cursor::after  { width: 2px; height: 12px; top: 0; left: 5px; }
#cursor-ring { position: fixed; width: 32px; height: 32px; border: 1px solid var(--cursor-color); border-radius: 50%; z-index: 9998; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, opacity 0.2s; opacity: 0.5; }

/* PROGRESS BAR */
#progressBar { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--gradient); z-index: 200; transition: width 0.1s linear; }

/* NAVBAR */
nav { position: fixed; top: 0; width: 100%; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: background 0.4s, border-color 0.4s, padding 0.3s; }
nav.scrolled { padding: 10px 40px; }
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); flex-shrink: 0; }
.logo-dot { color: var(--accent); }
nav ul { display: flex; gap: 20px; list-style: none; }
nav ul a { font-family: 'DM Mono', monospace; font-size: 0.68rem; text-decoration: none; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
nav ul a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.badge-dispo { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.08em; color: #00ffcc; background: rgba(0,255,204,0.08); border: 1px solid rgba(0,255,204,0.25); padding: 5px 12px; border-radius: 50px; white-space: nowrap; }
.badge-dispo::first-letter { animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
[data-theme="light"] .badge-dispo { color: #008866; background: rgba(0,136,102,0.08); border-color: rgba(0,136,102,0.25); }
#themeToggle, #scanlineToggle, #ambianceToggle { background: var(--accent-dim); border: 1px solid var(--border); border-radius: 50px; padding: 7px 10px; cursor: none; font-size: 14px; transition: background 0.3s, border-color 0.3s; }
#themeToggle { padding: 7px 12px; display: flex; align-items: center; gap: 4px; }
#themeToggle:hover, #scanlineToggle:hover, #ambianceToggle:hover { background: var(--border); }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: inline; }
body.scanlines-on #scanlineToggle { border-color: var(--accent); background: rgba(0,255,204,0.15); }
body.ambiance-on #ambianceToggle  { border-color: var(--accent); background: rgba(0,255,204,0.15); animation: ambiance-pulse 2s infinite; }
@keyframes ambiance-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,204,0.3); } 50% { box-shadow: 0 0 0 4px rgba(0,255,204,0); } }
#hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
#hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* TOAST */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.82rem; padding: 14px 24px; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; max-width: 360px; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--accent); }
.toast.error   { border-color: #ff5f57; }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; padding: 120px 20px 80px; }
#particlesCanvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 8s ease-in-out infinite; }
.blob-1 { width: 500px; height: 500px; background: var(--blob1); top: -100px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--blob2); bottom: -80px; right: -80px; animation-delay: 4s; }
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-30px) scale(1.05); } }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%); }
.hero-content { position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--border); padding: 6px 16px; border-radius: 50px; margin-bottom: 32px; }
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.hero h1 { font-family: 'DM Mono', monospace; font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 400; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; text-transform: uppercase; }
.hero h1 .line, .hero h1 .accent { display: block; }
.hero h1:hover { text-shadow: -3px 0 #ff00ff, 3px 0 #00ffcc; transition: text-shadow 0.1s; }
.hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 40px; line-height: 1.7; min-height: 2.4em; }
.typing-cursor { color: var(--accent); animation: blink-cursor 0.8s infinite; }
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); z-index: 1; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrolldown 2s ease-in-out infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* BUTTONS — NEON HOVER */
.btn { font-family: 'DM Mono', monospace; font-size: 0.82rem; letter-spacing: 0.05em; text-decoration: none; padding: 12px 24px; border-radius: 8px; border: none; cursor: none; transition: transform 0.2s, box-shadow 0.2s, text-shadow 0.2s; display: inline-block; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; border-radius: inherit; }
.btn-primary { background: var(--gradient); color: #080c10; font-weight: 600; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(0,255,204,0.6), 0 0 40px rgba(0,255,204,0.3), 0 8px 30px rgba(0,255,204,0.4); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 16px rgba(0,255,204,0.4), 0 0 32px rgba(0,255,204,0.2), inset 0 0 16px rgba(0,255,204,0.05); text-shadow: 0 0 8px rgba(0,255,204,0.8); }
.btn-cv { background: transparent; color: var(--accent); border: 1px dashed var(--accent); }
.btn-cv:hover { background: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 0 16px rgba(0,255,204,0.4), 0 0 32px rgba(0,255,204,0.15); text-shadow: 0 0 8px rgba(0,255,204,0.6); }

/* SECTIONS */
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 48px; }

/* SCROLL REVEAL */
.reveal-fade  { opacity: 0; transform: translateY(50px);  transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-left  { opacity: 0; transform: translateX(-60px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-right { opacity: 0; transform: translateX(60px);  transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-zoom  { opacity: 0; transform: scale(0.92);       transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-fade.visible, .reveal-left.visible, .reveal-right.visible, .reveal-zoom.visible { opacity: 1; transform: none; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; margin-bottom: 64px; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-top: 16px; font-size: 0.9rem; }
.about-text strong { color: var(--accent); }
.about-text h2 { margin-bottom: 0; }
.about-right { display: flex; flex-direction: column; gap: 28px; align-items: center; }

/* PHOTO */
.about-photo-wrapper { position: relative; width: 260px; margin-top: 20px; }
.about-photo { width: 260px; height: 320px; object-fit: cover; object-position: center top; border-radius: 20px; display: block; position: relative; z-index: 1; filter: grayscale(15%) contrast(1.05); transition: filter 0.3s, transform 0.3s; cursor: none; }
.about-photo:hover { filter: grayscale(0%) contrast(1.1); transform: scale(1.02); }
.about-photo-wrapper::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); z-index: 3; top: -3px; opacity: 0; border-radius: 2px; pointer-events: none; }
.about-photo-wrapper:hover::after { opacity: 1; animation: scan-line 1.5s ease-in-out infinite; }
@keyframes scan-line { 0% { top: 0%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.about-photo-border { position: absolute; inset: -3px; border-radius: 22px; background: var(--gradient); z-index: 0; opacity: 0.5; transition: opacity 0.3s; }
.about-photo-wrapper:hover .about-photo-border { opacity: 1; }
.about-photo-tag { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.08em; padding: 6px 16px; border-radius: 20px; white-space: nowrap; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.about-photo-tag span:first-child { color: var(--accent); font-weight: 600; }
.about-photo-permis { color: var(--text-muted); font-size: 0.6rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 40px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: border-color 0.3s, box-shadow 0.3s; }
.stat:hover { border-color: var(--accent); box-shadow: 0 0 12px rgba(0,255,204,0.15); }
.stat-number { display: block; font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* MODAL PHOTO */
.photo-modal { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.photo-modal.open { opacity: 1; pointer-events: all; }
.photo-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); cursor: none; }
.photo-modal-img { position: relative; z-index: 1; width: min(400px, 90vw); height: auto; border-radius: 20px; border: 2px solid var(--border); box-shadow: 0 0 60px rgba(0,255,204,0.15); transform: scale(0.9); transition: transform 0.3s; }
.photo-modal.open .photo-modal-img { transform: scale(1); }
.photo-modal-close { position: absolute; top: 20px; right: 24px; z-index: 2; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 1rem; width: 36px; height: 36px; border-radius: 50%; cursor: none; transition: border-color 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; }
.photo-modal-close:hover { border-color: var(--accent); color: var(--accent); }

/* TERMINAL */
.terminal-wrapper { margin-top: 16px; }
.terminal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.terminal { background: var(--terminal-bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-family: 'DM Mono', monospace; font-size: 0.82rem; box-shadow: 0 20px 60px rgba(0,0,0,0.4); cursor: text; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border); }
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; } .t-dot.yellow { background: #febc2e; } .t-dot.green { background: #28c840; }
.t-title { margin-left: 8px; color: var(--text-muted); font-size: 0.72rem; }
.terminal-body { padding: 16px; min-height: 180px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.t-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.t-prompt { color: var(--accent); flex-shrink: 0; }
.t-cmd { color: #e8f4f0; }
.t-output { color: #7a9090; line-height: 1.8; padding: 2px 0 10px; white-space: pre-wrap; font-size: 0.8rem; }
.t-output .highlight { color: var(--accent); }
.t-output .error { color: #ff5f57; }
.terminal-input-line { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }
#termInput { flex: 1; background: none; border: none; outline: none; color: #e8f4f0; font-family: 'DM Mono', monospace; font-size: 0.82rem; caret-color: var(--accent); cursor: text; }
.t-hint { padding: 6px 16px 12px; font-size: 0.63rem; color: rgba(122,144,144,0.45); letter-spacing: 0.05em; }

/* SKILLS */
.skills-list { display: flex; flex-direction: column; gap: 28px; }
.skill-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.skill-name { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; }
.skill-pct { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.05em; }
.skill-bar { background: var(--skill-track); border-radius: 4px; height: 6px; overflow: hidden; }
.skill-level { height: 100%; width: 0; border-radius: 4px; background: var(--gradient); transition: width 1.2s cubic-bezier(0.16,1,0.3,1); }

/* OUTILS */
.outils-grid { display: flex; flex-direction: column; gap: 40px; }
.outil-category-label { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.outil-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.outil-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.outil-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 12px rgba(0,255,204,0.2), 0 8px 24px rgba(0,255,204,0.08); }
.outil-svg { width: 22px; height: 22px; flex-shrink: 0; }
[data-theme="light"] .outil-svg { filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(500%) hue-rotate(120deg); }
.outil-name { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.outil-level { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.outil-level.expert   { background: rgba(0,255,204,0.12); color: #00ffcc; border: 1px solid rgba(0,255,204,0.2); }
.outil-level.inter    { background: rgba(255,200,0,0.1);  color: #ffc800; border: 1px solid rgba(255,200,0,0.2); }
.outil-level.debutant { background: rgba(255,95,87,0.1);  color: #ff5f57; border: 1px solid rgba(255,95,87,0.2); }
[data-theme="light"] .outil-level.expert { background: rgba(0,136,102,0.1); color: #008866; border-color: rgba(0,136,102,0.2); }

/* CERTIFICATIONS */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; gap: 20px; align-items: flex-start; transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s; }
.cert-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 0 16px rgba(0,255,204,0.15); }
.cert-card:nth-child(1), .cert-card:nth-child(2), .cert-card:nth-child(3) { border-color: var(--accent); background: var(--accent-dim); }
.cert-coming { opacity: 0.6; border-color: var(--border) !important; background: var(--surface) !important; }
.cert-coming:hover { transform: none; box-shadow: none; }
.cert-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.cert-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.cert-info p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.cert-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cert-tags span { font-size: 0.65rem; letter-spacing: 0.08em; background: var(--accent-dim); border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; color: var(--accent); }
.cert-link { font-size: 0.78rem; color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.cert-link:hover { opacity: 0.7; }

/* TIMELINE */
.timeline { display: flex; flex-direction: column; position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 0 24px; align-items: start; position: relative; padding-bottom: 40px; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); position: absolute; left: -28px; top: 4px; transition: background 0.3s, box-shadow 0.3s; }
.tl-item:hover .tl-dot { background: var(--accent); box-shadow: 0 0 10px rgba(0,255,204,0.6); }
.tl-date { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.tl-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.tl-content p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.tl-tag { display: inline-block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; background: var(--accent-dim); border: 1px solid var(--border); color: var(--accent); }
.tl-tag.upcoming { background: rgba(255,0,255,0.08); border-color: rgba(255,0,255,0.2); color: #ff00ff; }

/* TILT CARDS */
.tilt-card { transform-style: preserve-3d; transform: perspective(1000px); transition: transform 0.1s ease, border-color 0.3s, box-shadow 0.3s; will-change: transform; overflow: hidden; }
.tilt-card:hover { box-shadow: 0 0 20px rgba(0,255,204,0.2), 0 20px 60px rgba(0,255,204,0.1); border-color: var(--accent); }
.card-shine { position: absolute; inset: 0; z-index: 10; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 60%); opacity: 0; pointer-events: none; transition: opacity 0.3s; border-radius: inherit; }
.tilt-card:hover .card-shine { opacity: 1; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.card-featured { border-color: var(--accent); background: var(--accent-dim); }
.card-num { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: var(--border); line-height: 1; }
.card-tag { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }
.card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.card-stack { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.card-stack span { font-size: 0.65rem; letter-spacing: 0.08em; background: var(--accent-dim); border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; color: var(--accent); }
.card-link { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; margin-top: 4px; }
.card-link:hover { color: var(--accent); }

/* TEMOIGNAGES */
.temoignages-grid { display: grid; gap: 24px; }
.temoignage-card { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 20px; padding: 40px; }
.temo-quote { font-family: 'Syne', sans-serif; font-size: 5rem; line-height: 0.6; color: var(--accent); opacity: 0.3; margin-bottom: 16px; }
.temoignage-card > p { font-size: 0.92rem; color: var(--text); line-height: 1.8; margin-bottom: 28px; font-style: italic; }
.temo-author { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.temo-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: #080c10; flex-shrink: 0; }
.temo-info { display: flex; flex-direction: column; gap: 2px; }
.temo-info strong { font-size: 0.9rem; color: var(--text); }
.temo-info span { font-size: 0.75rem; color: var(--text-muted); }
.temo-date { font-size: 0.68rem !important; color: var(--accent) !important; }
.temo-pdf-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--accent); text-decoration: none; border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; background: rgba(0,255,204,0.05); transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.temo-pdf-link:hover { background: var(--accent-dim); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 12px rgba(0,255,204,0.2); }

/* CONTACT LINKS — ICÔNES ANIMÉES */
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.85rem; color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative; overflow: hidden;
}
.contact-link-item::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,255,204,0.04), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.contact-link-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(6px);
    box-shadow: 0 0 16px rgba(0,255,204,0.15), 0 4px 20px rgba(0,255,204,0.06);
}
.contact-link-item:hover::before { opacity: 1; }

.contact-icon-wrap {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contact-link-item:hover .contact-icon-wrap {
    background: rgba(0,255,204,0.15);
    border-color: var(--accent);
    transform: rotate(8deg) scale(1.1);
    box-shadow: 0 0 10px rgba(0,255,204,0.3);
}
.contact-svg-icon {
    width: 16px; height: 16px;
    color: var(--accent);
    transition: transform 0.25s;
}
.contact-link-item:hover .contact-svg-icon { transform: scale(1.1); }

/* COPY BTN */
.copy-btn { margin-left: auto; background: var(--accent-dim); border: 1px solid var(--border); border-radius: 6px; color: var(--accent); font-size: 0.9rem; padding: 4px 8px; cursor: none; transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s; flex-shrink: 0; }
.copy-btn:hover { background: rgba(0,255,204,0.2); border-color: var(--accent); transform: scale(1.1); box-shadow: 0 0 8px rgba(0,255,204,0.3); }
.copy-btn.copied { background: rgba(0,255,204,0.25); border-color: var(--accent); }

/* CONTACT FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-intro p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin: 20px 0 32px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { position: relative; }
.input-group input, .input-group textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px 8px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.88rem; outline: none; transition: border-color 0.2s, background 0.4s, box-shadow 0.2s; resize: none; cursor: text; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 12px rgba(0,255,204,0.1); }
.input-group label { position: absolute; left: 16px; top: 14px; font-size: 0.78rem; color: var(--text-muted); pointer-events: none; transition: 0.2s; text-transform: uppercase; letter-spacing: 0.06em; }
.input-group input:not(:placeholder-shown) ~ label,
.input-group input:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label { top: 6px; font-size: 0.6rem; color: var(--accent); }

/* POURQUOI ME RECRUTER */
.why-hire { margin-top: 60px; padding-top: 48px; border-top: 1px solid var(--border); }
.why-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 32px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: border-color 0.3s, transform 0.2s, box-shadow 0.2s; }
.why-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 0 16px rgba(0,255,204,0.12), 0 12px 40px rgba(0,255,204,0.06); }
.why-icon { width: 44px; height: 44px; background: var(--accent-dim); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.why-card:hover .why-icon { background: rgba(0,255,204,0.15); border-color: var(--accent); box-shadow: 0 0 8px rgba(0,255,204,0.3); }
.why-icon svg { width: 20px; height: 20px; color: var(--accent); }
.why-card strong { display: block; font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.why-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* SIGNATURE */
.signature-wrapper { margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px; border-top: 1px solid var(--border); }
.signature-text { font-family: 'Syne', sans-serif; font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; color: var(--accent); letter-spacing: 2px; min-height: 1.2em; display: flex; align-items: center; gap: 2px; }
.signature-text .sig-char { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 0.08s ease, transform 0.08s ease; }
.signature-text .sig-char.visible { opacity: 1; transform: translateY(0); }
.signature-text .sig-cursor { display: inline-block; width: 3px; height: 0.85em; background: var(--accent); margin-left: 4px; border-radius: 2px; animation: blink-cursor 0.8s infinite; vertical-align: middle; flex-shrink: 0; }
.signature-tagline { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.08em; }

/* SCROLL TOP */
#scrollTop { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--accent); font-size: 1.1rem; cursor: none; display: none; align-items: center; justify-content: center; z-index: 99; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
#scrollTop:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 12px rgba(0,255,204,0.3); }
/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 48px 40px 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 40px; align-items: start; padding-bottom: 40px; }
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }
.footer-location { font-size: 0.68rem; color: var(--text-muted); opacity: 0.6; }
.footer-center { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--text-muted); text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-badge { font-size: 0.62rem; color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; letter-spacing: 0.05em; white-space: nowrap; }
.footer-right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-made { font-size: 0.7rem; color: var(--text-muted); opacity: 0.7; }
.footer-tech { font-size: 0.62rem; color: var(--text-muted); opacity: 0.4; letter-spacing: 0.08em; }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--border); padding: 16px 0; font-family: 'DM Mono', monospace; font-size: 0.65rem; color: rgba(122,144,144,0.35); }
.footer-cmd { color: var(--accent); opacity: 0.5; }

/* CARD SHINE — brillance traversante */
.card-shine { position: absolute; inset: 0; z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.3s; border-radius: inherit; overflow: hidden; }
.card-shine::after { content: ''; position: absolute; top: -50%; left: -75%; width: 50%; height: 200%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%); transform: skewX(-15deg); transition: left 0.6s ease; }
.tilt-card:hover .card-shine { opacity: 1; }
.tilt-card:hover .card-shine::after { left: 125%; }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-right { align-items: center; }
    .footer-nav { justify-content: center; }
}

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s forwards; }
.delay  { animation-delay: 0.2s; }
.delay2 { animation-delay: 0.4s; }
.delay3 { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 900px) {
    #hamburger { display: flex; }
    nav ul { position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
    nav ul.open { max-height: 500px; padding: 12px 0; }
    nav ul li a { display: block; padding: 14px 32px; font-size: 0.82rem; border-bottom: 1px solid var(--border); }
    nav ul li:last-child a { border-bottom: none; }
    .badge-dispo { display: none; }
    .section-bg-num { font-size: 6rem; right: 20px; }
}
@media (max-width: 768px) {
    nav { padding: 12px 16px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .tl-item { grid-template-columns: 1fr; }
    .hero-scroll { display: none; }
    body { cursor: auto; }
    #cursor, #cursor-ring { display: none; }
    .section-sep { padding: 0 20px; }
    .why-grid { grid-template-columns: 1fr; }
    .about-photo-wrapper { width: 200px; }
    .about-photo { width: 200px; height: 240px; }
}