/* ============================================
   Victor CCM — Three.js Portfolio
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Variables ── */
:root {
    --bg:        #060912;
    --bg2:       #0A0F1E;
    --bg3:       #0D1527;
    --glass:     rgba(255,255,255,0.055);
    --glass-b:   rgba(255,255,255,0.10);
    --text:      #E2E8F0;
    --muted:     #64748B;
    --muted2:    #94A3B8;
    --blue:      #2563EB;
    --blue-l:    #3B82F6;
    --cyan:      #06B6D4;
    --purple:    #7C3AED;
    --purple-l:  #A78BFA;
    --emerald:   #10B981;
    --emerald-l: #34D399;
    --orange:    #F97316;
    --gold:      #F59E0B;
    --r:         16px;
    --rl:        24px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { font-family: inherit; background: none; border: none; cursor: none; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; }

/* ── Background canvas ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Custom Cursor ── */
#cursor-ring {
    position: fixed;
    width: 38px; height: 38px;
    border: 1.5px solid rgba(59,130,246,0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform 0.15s ease, border-color 0.2s, background 0.2s;
    mix-blend-mode: screen;
}
#cursor-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%,-50%);
}
.hovering #cursor-ring {
    transform: translate(-50%,-50%) scale(1.7);
    background: rgba(59,130,246,0.12);
    border-color: var(--cyan);
}
.clicking #cursor-ring {
    transform: translate(-50%,-50%) scale(0.75);
}
@media (pointer: coarse) {
    body, a, button, .nav-brand, .btn-primary, .btn-ghost,
    .xcard, .real-card, .formation-card, .contact-info-item,
    .skill-group, .tl-card, .pill, .mentions-close,
    #mentions-btn, .footer-nav ul button { cursor: auto; }
    #cursor-ring, #cursor-dot { display: none; }
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section {
    position: relative;
    z-index: 10;
    padding: 7rem 0;
}
.section-alt { background: rgba(255,255,255,0.018); }

/* ── Navbar ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s ease;
}
#navbar.scrolled {
    background: rgba(6, 9, 18, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-b);
    padding: 0.7rem 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: none;
    transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.85; }
.brand-star {
    color: var(--blue-l);
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px rgba(59,130,246,0.6));
    animation: starPulse 3s ease-in-out infinite;
}
.brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.01em;
}
.brand-accent { color: var(--blue-l); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nl {
    color: var(--muted2);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0.875rem;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}
.nl::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 1.5px;
    background: var(--blue-l);
    border-radius: 2px;
    transition: width 0.25s ease;
}
.nl:hover { color: white; }
.nl:hover::after { width: 55%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-left: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 0 18px rgba(37,99,235,0.35);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(37,99,235,0.55);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.burger span {
    display: block;
    width: 22px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 2rem 1.5rem;
    background: rgba(6,9,18,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-b);
}
.mobile-menu.open { display: flex; }
.mm-link {
    color: var(--muted2);
    font-weight: 500;
    padding: 0.7rem 1rem;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9375rem;
}
.mm-link:hover { color: white; background: var(--glass); }
.mm-cta {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9375rem;
    display: block;
}

/* ── Hero ── */
.section-hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(37,99,235,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--blue-l);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.badge-dot {
    width: 7px; height: 7px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-name {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 1rem;
}
.name-gradient {
    background: linear-gradient(135deg, var(--blue-l) 0%, var(--cyan) 40%, var(--purple-l) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--muted2);
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.pill {
    background: var(--glass);
    border: 1px solid var(--glass-b);
    color: var(--muted2);
    padding: 0.3rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.pill:hover {
    border-color: var(--blue-l);
    color: var(--blue-l);
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #0A0F1E;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: none;
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    border: 1px solid var(--glass-b);
    transition: all 0.3s ease;
    cursor: none;
}
.btn-ghost:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-b);
}
.hstat { text-align: center; }
.hstat-val {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-l), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.hstat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}
.hstat-sep {
    width: 1px;
    height: 40px;
    background: var(--glass-b);
}

/* Hero canvas */
.hero-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 520px;
    justify-self: end;
}
#network-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.hero-canvas-glow {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 20;
}
.scroll-mouse {
    width: 22px; height: 34px;
    border: 1.5px solid var(--muted);
    border-radius: 12px;
    position: relative;
}
.scroll-wheel {
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 5px;
    background: var(--muted);
    border-radius: 2px;
    animation: scrollBounce 2.2s ease-in-out infinite;
}

/* ── Section headers ── */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.stag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.875rem;
}
.stag-blue   { background: rgba(37,99,235,0.15);  color: var(--blue-l);    border: 1px solid rgba(59,130,246,0.3); }
.stag-purple { background: rgba(124,58,237,0.15); color: var(--purple-l);  border: 1px solid rgba(167,139,250,0.3); }
.stag-emerald{ background: rgba(16,185,129,0.15); color: var(--emerald-l); border: 1px solid rgba(52,211,153,0.3); }
.stag-orange { background: rgba(249,115,22,0.15); color: var(--orange);    border: 1px solid rgba(249,115,22,0.3); }

.stitle {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.875rem;
}
.sdesc {
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* ── Expertise cards ── */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.xcard {
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--rl);
    padding: 2rem;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    transform-style: preserve-3d;
    will-change: transform;
    transition-delay: var(--delay, 0s);
}
.xcard:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.xcard-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s;
}
.xcard:hover .xcard-icon { transform: scale(1.1) rotate(-5deg); }
.xcard-blue    { background: rgba(37,99,235,0.2);  color: var(--blue-l); }
.xcard-purple  { background: rgba(124,58,237,0.2); color: var(--purple-l); }
.xcard-emerald { background: rgba(16,185,129,0.2); color: var(--emerald-l); }
.xcard h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}
.xcard p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.xcard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.xcard-list li {
    font-size: 0.875rem;
    color: var(--muted2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.xcard-list li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.xcard-blue    .xcard-list li::before { background: var(--blue-l); }
.xcard-purple  .xcard-list li::before { background: var(--purple-l); }
.xcard-emerald .xcard-list li::before { background: var(--emerald-l); }
.xcard-glow {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 150px; height: 150px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.xcard:hover .xcard-glow { opacity: 0.25; }
.xcard-glow-blue    { background: var(--blue); }
.xcard-glow-purple  { background: var(--purple); }
.xcard-glow-emerald { background: var(--emerald); }

/* ── Skills ── */
.skills-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
}
.skills-canvas-wrap {
    position: sticky;
    top: 120px;
    aspect-ratio: 1;
    border-radius: var(--rl);
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--glass-b);
}
#skills-canvas { width: 100%; height: 100%; }

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.skill-group {
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--r);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.skill-group:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateX(4px);
}
.skill-group-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.875rem;
}
.skill-group[data-color="blue"] .skill-group-head    { color: var(--blue-l); }
.skill-group[data-color="purple"] .skill-group-head  { color: var(--purple-l); }
.skill-group[data-color="emerald"] .skill-group-head { color: var(--emerald-l); }
.skill-group[data-color="orange"] .skill-group-head  { color: var(--orange); }
.skill-group[data-color="indigo"] .skill-group-head  { color: #818CF8; }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.skill-tags span {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.2s;
}
.skill-group[data-color="blue"] .skill-tags span    { background: rgba(37,99,235,0.12);  color: var(--blue-l);    border-color: rgba(59,130,246,0.25); }
.skill-group[data-color="purple"] .skill-tags span  { background: rgba(124,58,237,0.12); color: var(--purple-l);  border-color: rgba(167,139,250,0.25); }
.skill-group[data-color="emerald"] .skill-tags span { background: rgba(16,185,129,0.12); color: var(--emerald-l); border-color: rgba(52,211,153,0.25); }
.skill-group[data-color="orange"] .skill-tags span  { background: rgba(249,115,22,0.12); color: var(--orange);    border-color: rgba(249,115,22,0.25); }
.skill-group[data-color="indigo"] .skill-tags span  { background: rgba(99,102,241,0.12); color: #818CF8;           border-color: rgba(129,140,248,0.25); }
.skill-tags span:hover { transform: scale(1.06); }

/* ── Timeline ── */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    left: 18px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), var(--purple), transparent);
    opacity: 0.4;
}
.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-left: 0;
    transition-delay: var(--delay, 0s);
}
.tl-dot {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: 2px;
}
.tl-dot::after {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
}
.tl-dot-blue   { border-color: var(--blue-l); }
.tl-dot-blue::after { background: var(--blue-l); box-shadow: 0 0 8px var(--blue-l); }
.tl-dot-orange { border-color: var(--orange); }
.tl-dot-orange::after { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.tl-dot-emerald{ border-color: var(--emerald-l); }
.tl-dot-emerald::after { background: var(--emerald-l); box-shadow: 0 0 8px var(--emerald-l); }
.tl-dot-purple { border-color: var(--purple-l); }
.tl-dot-purple::after { background: var(--purple-l); box-shadow: 0 0 8px var(--purple-l); }

.tl-card {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--r);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.tl-card:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.tl-date {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.tl-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}
.tl-company {
    font-size: 0.875rem;
    color: var(--blue-l);
    font-weight: 600;
    margin-bottom: 0.875rem;
}
.tl-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1rem;
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tt {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    border: 1px solid;
}
.tt-blue   { background: rgba(37,99,235,0.15);  color: var(--blue-l);    border-color: rgba(59,130,246,0.3); }
.tt-orange { background: rgba(249,115,22,0.15); color: var(--orange);    border-color: rgba(249,115,22,0.3); }
.tt-emerald{ background: rgba(16,185,129,0.15); color: var(--emerald-l); border-color: rgba(52,211,153,0.3); }
.tt-purple { background: rgba(124,58,237,0.15); color: var(--purple-l);  border-color: rgba(167,139,250,0.3); }

/* ── Formations ── */
.formations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.formation-card {
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--rl);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    transition-delay: var(--delay, 0s);
    transform-style: preserve-3d;
}
.formation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.fc-highlight {
    border-color: rgba(59,130,246,0.35);
    background: rgba(37,99,235,0.08);
}
.fc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.875rem;
    border-radius: 50px;
    margin-bottom: 0.875rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.fc-badge-gold   { background: linear-gradient(135deg, var(--gold), var(--orange)); }
.fc-badge-green  { background: linear-gradient(135deg, var(--emerald), #059669); }
.fc-badge-indigo { background: linear-gradient(135deg, #6366F1, var(--purple)); }

/* Badge positionné en haut à droite + effet shimmer */
.fc-badge-status {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
    z-index: 2;
}
/* Trait de lumière qui traverse le badge au hover */
.fc-badge-status::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}
.formation-card:hover .fc-badge-status::after {
    transform: translateX(120%);
}
.formation-card:hover .fc-badge-status {
    transform: scale(1.07) translateY(-1px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.45);
}

.formation-card { position: relative; }
.fc-year {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.formation-card h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.fc-school {
    font-size: 0.875rem;
    color: var(--blue-l);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.formation-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.fc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fc-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: rgba(37,99,235,0.15);
    color: var(--blue-l);
    border: 1px solid rgba(59,130,246,0.3);
}
.fc-tags-gold span {
    background: rgba(245,158,11,0.15);
    color: var(--gold);
    border-color: rgba(245,158,11,0.3);
}
.fc-tags-gray span {
    background: var(--glass);
    color: var(--muted2);
    border-color: var(--glass-b);
}

/* ── Réalisations ── */
.real-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.real-card {
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--rl);
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    transition-delay: var(--delay, 0s);
    transform-style: preserve-3d;
    will-change: transform;
}
.real-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.real-card-lg { grid-column: span 2; }
.real-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
}
.real-card h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.6rem;
}
.real-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.real-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.real-tools span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    color: var(--muted2);
    border: 1px solid var(--glass-b);
}
.real-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--rl) var(--rl) 0 0;
}

/* ── Contact ── */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}
.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--r);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    cursor: none;
}
.contact-info-item:hover {
    border-color: rgba(59,130,246,0.4);
    transform: translateX(4px);
}
.ci-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(37,99,235,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-l);
}
.ci-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.ci-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.contact-form-wrap {
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--rl);
    padding: 2.5rem;
    backdrop-filter: blur(16px);
}
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.cf-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.cf-field input,
.cf-field textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-b);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(100,116,139,0.6); }
.cf-field input:focus,
.cf-field textarea:focus {
    border-color: var(--blue-l);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(37,99,235,0.35);
    margin-top: 0.5rem;
}
.cf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.55);
}
.cf-status {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1rem;
    min-height: 1.5rem;
    color: var(--emerald-l);
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 10;
    background: rgba(3, 6, 15, 0.9);
    border-top: 1px solid var(--glass-b);
    backdrop-filter: blur(20px);
    padding: 5rem 0 2rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}
.footer-brand p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-sub {
    color: var(--muted) !important;
    font-style: italic;
    margin-top: 0.25rem;
}
.footer-nav h4,
.footer-contact h4 {
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}
.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-nav ul button {
    color: var(--muted);
    font-size: 0.875rem;
    transition: color 0.2s;
    text-align: left;
    cursor: none;
}
.footer-nav ul button:hover { color: var(--blue-l); }
.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}
.footer-contact ul svg { color: var(--blue-l); flex-shrink: 0; margin-top: 2px; }
.footer-contact ul a:hover { color: var(--blue-l); }
.footer-bottom {
    border-top: 1px solid var(--glass-b);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: 1rem;
}
#mentions-btn { color: var(--muted); transition: color 0.2s; cursor: none; }
#mentions-btn:hover { color: var(--blue-l); }

/* ── Mentions overlay ── */
.mentions-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.mentions-overlay.hidden { display: none; }
.mentions-panel {
    background: var(--bg2);
    border: 1px solid var(--glass-b);
    border-radius: var(--rl);
    padding: 3rem;
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.mentions-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    color: var(--muted);
    font-size: 1.25rem;
    cursor: none;
    transition: color 0.2s;
}
.mentions-close:hover { color: white; }
.mentions-panel h2 { color: white; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.mentions-panel h3 { color: white; font-size: 1rem; font-weight: 700; margin: 1.25rem 0 0.5rem; }
.mentions-panel p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.mentions-panel a { color: var(--blue-l); }

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Tilt ── */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ── Page enter ── */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Keyframes ── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}
@keyframes starPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(59,130,246,0.6)); }
    50%       { filter: drop-shadow(0 0 16px rgba(59,130,246,0.9)); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 0.9; transform: scale(1.04); }
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    65%       { transform: translateX(-50%) translateY(9px); opacity: 0; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-l); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .section-hero { grid-template-columns: 1fr; }
    .hero-canvas-wrap { display: none; }
    .scroll-hint { position: relative; bottom: 0; left: 0; transform: none; margin-top: 2rem; }
    .skills-wrap { grid-template-columns: 1fr; }
    .skills-canvas-wrap { display: none; }
    .expertise-grid { grid-template-columns: 1fr 1fr; }
    .real-grid { grid-template-columns: 1fr 1fr; }
    .real-card-lg { grid-column: span 2; }
    .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .expertise-grid { grid-template-columns: 1fr; }
    .real-grid { grid-template-columns: 1fr; }
    .real-card-lg { grid-column: span 1; }
    .formations-grid { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .hero-stats { gap: 1rem; }
    .hstat-val { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.25rem; }
    .container { padding: 0 1.25rem; }
    .contact-form-wrap { padding: 1.5rem; }
}

.hide-mobile { display: block; }
@media (max-width: 640px) { .hide-mobile { display: none; } }
