/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO V2 — Liquid Glass Design System (Apple iOS 26 inspired)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────────────────────── */
:root {
    /* Couleurs de fond */
    --bg-primary:   #07090f;
    --bg-secondary: #0d1117;

    /* Blobs dynamiques */
    --blob-a: #5b21b6;
    --blob-b: #1d4ed8;
    --blob-c: #0e7490;

    /* Texte */
    --text:       #f0f4ff;
    --text-muted: #8b96b3;
    --text-dim:   #4a5680;

    /* Accent */
    --accent:       #6366f1;
    --accent-light: #818cf8;
    --accent-glow:  rgba(99, 102, 241, 0.45);

    /* Liquid Glass surfaces */
    --glass-bg:       rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border:   rgba(255, 255, 255, 0.10);
    --glass-border-h: rgba(255, 255, 255, 0.22);
    --glass-shine:    rgba(255, 255, 255, 0.55);
    --glass-blur:     saturate(200%) blur(40px);
    --glass-blur-sm:  saturate(180%) blur(20px);

    /* Ombres */
    --shadow-glass: 0 8px 48px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255,255,255,0.06) inset;
    --shadow-float: 0 20px 80px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255,255,255,0.08) inset;

    /* Transitions */
    --ease-glass: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font: 'Poppins', sans-serif;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;
}

[data-theme="light"] {
    --bg-primary:   #e8eaf6;
    --bg-secondary: #dde1f0;
    --blob-a: #a5b4fc;
    --blob-b: #93c5fd;
    --blob-c: #6ee7b7;
    --text:       #0f172a;
    --text-muted: #475569;
    --text-dim:   #94a3b8;
    --accent:       #4f46e5;
    --accent-light: #6366f1;
    --accent-glow:  rgba(79, 70, 229, 0.25);
    --glass-bg:       rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border:   rgba(255, 255, 255, 0.70);
    --glass-border-h: rgba(255, 255, 255, 0.95);
    --glass-shine:    rgba(255, 255, 255, 0.90);
    --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.9) inset;
}

/* ── RESET & BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
    min-height: 100vh;
}

/* ── SCÈNE DE FOND (blobs organiques animés) ────────────────────────────────── */
.scene-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.16;
    will-change: transform, border-radius;
}

.blob-a {
    width: 700px; height: 700px;
    top: -15%; left: -10%;
    background: var(--blob-a);
    animation: morphBlob 25s infinite alternate var(--ease-glass);
}

.blob-b {
    width: 600px; height: 600px;
    bottom: -10%; right: -5%;
    background: var(--blob-b);
    animation: morphBlob 30s 5s infinite alternate-reverse var(--ease-glass);
}

.blob-c {
    width: 450px; height: 450px;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--blob-c);
    animation: morphBlob 20s 10s infinite alternate var(--ease-glass);
}

@keyframes morphBlob {
    0%   { transform: translate(0, 0) scale(1);    border-radius: 40% 60% 70% 30% / 30% 40% 70% 60%; }
    25%  { transform: translate(5%, -8%) scale(1.05); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%  { transform: translate(-3%, 6%) scale(0.95); border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    75%  { transform: translate(8%, 3%) scale(1.08); border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    100% { transform: translate(-5%, -5%) scale(1); border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%; }
}

/* ── LIQUID GLASS — Composant Central ──────────────────────────────────────── */
.lg-surface {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    transition: background 0.4s var(--ease-glass),
                border-color 0.4s var(--ease-glass),
                box-shadow 0.4s var(--ease-glass),
                transform 0.4s var(--ease-spring);
    isolation: isolate;
    overflow: hidden;
}

/* Specular highlight (reflet de lumière sur le bord supérieur) */
.lg-surface::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--glass-shine) 30%,
        var(--glass-shine) 70%,
        transparent 100%);
    pointer-events: none;
}

/* Shimmer animé sur hover */
.lg-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255,255,255,0.06) 50%,
        transparent 70%
    );
    background-size: 300% 100%;
    background-position: 200% 0;
    pointer-events: none;
    transition: background-position 0s;
    opacity: 0;
}

.lg-surface:hover::after {
    opacity: 1;
    background-position: -100% 0;
    transition: background-position 0.8s var(--ease-glass), opacity 0.2s;
}

.lg-surface:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-h);
    box-shadow: var(--shadow-float);
    transform: translateY(-4px);
}

/* Variantes de rayon */
.lg-surface.r-lg  { border-radius: var(--radius-lg); }
.lg-surface.r-xl  { border-radius: var(--radius-xl); }
.lg-surface.r-pill{ border-radius: var(--radius-pill); }

/* ── NAVIGATION ─────────────────────────────────────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.6rem 0.75rem 0.6rem 1.5rem;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.nav-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent-light); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.07);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-round {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 0.9rem;
}

.btn-icon-round:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text);
    border-color: var(--glass-border-h);
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }

section {
    padding: 7rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: var(--radius-pill);
    background: rgba(99, 102, 241, 0.1);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-title em {
    font-style: normal;
    color: var(--accent-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 4rem;
}

/* ── HERO ───────────────────────────────────────────────────────────────────── */
#accueil {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    max-width: 1100px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-text { flex: 1; }

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-pill);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.25);
}

.hero-greeting .dot {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.hero-role {
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
    font-weight: 500;
    color: var(--accent-light);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.hero-subrole {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hero-poste {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card {
    flex: 0 0 360px;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

.hero-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border-h);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 6px rgba(99,102,241,0.15), 0 4px 20px rgba(0,0,0,0.4);
}

.hero-card-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.hero-card-title { font-size: 0.88rem; color: var(--accent-light); margin-bottom: 1rem; font-weight: 500; }
.hero-card-location {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.hero-card-location a { color: inherit; text-decoration: none; }

.hero-socials { display: flex; gap: 0.6rem; margin-top: 0.95rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.hero-stat {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
}

.hero-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.hero-stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ── BOUTONS ─────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-glass);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-h);
    transform: translateY(-2px);
}

/* ── PASSIONS ────────────────────────────────────────────────────────────────── */
.passions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.passion-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.passion-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-light);
    flex-shrink: 0;
}

.passion-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.passion-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── PROJETS ─────────────────────────────────────────────────────────────────── */
.projects-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 0.4rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    width: fit-content;
    backdrop-filter: blur(10px);
}

.tab-btn {
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.projects-panel { display: none; }
.projects-panel.active { display: grid; }

.projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

#tab-pro.projects-grid .project-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 1.4fr;
}

#tab-pro.projects-grid .project-card:first-child .project-thumb {
    height: 100%;
    min-height: 240px;
}

.project-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-card:hover { transform: translateY(-6px); }

.project-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.5s var(--ease-glass);
}

.project-card:hover .project-thumb { transform: scale(1.04); }

.project-type-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-pro { background: rgba(99,102,241,0.6); color: #e0e7ff; }
.badge-perso { background: rgba(16,185,129,0.6); color: #d1fae5; }

.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 1.2rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }

.tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    color: var(--accent-light);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: gap 0.25s;
}

.project-link:hover { gap: 0.7rem; }

/* ── ÉTUDES DE CAS ──────────────────────────────────────────────────────────── */
.etude {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.75rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
    align-items: start;
}

.etude-visuels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.etude-visuels img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--bg-secondary);
}

.etude-visuels img:first-child {
    grid-column: 1 / -1;
    height: 240px;
}

.etude-titre {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0.7rem 0 0.5rem;
}

.etude-intro {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.etude-dl {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.etude-dl dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.2rem;
}

.etude-dl dd {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.skill-item {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.skill-item-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.skill-item-name i { color: var(--accent-light); }

.skill-item-usage {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

a.contact-detail {
    text-decoration: none;
    color: inherit;
}

a.contact-detail:hover {
    color: var(--text);
}

/* ── PARCOURS (Timeline) ─────────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-node {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-h);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    color: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
    position: relative;
    z-index: 1;
}

.timeline-card {
    flex: 1;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
}

.timeline-period {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.timeline-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.timeline-company { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.timeline-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; white-space: pre-line; }

.timeline-item-featured .timeline-card {
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.timeline-item-featured .timeline-node {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
}

/* ── COMPÉTENCES (Chips) ─────────────────────────────────────────────────────── */
.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.skill-category-block {}

.skill-cat-header {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-cat-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s var(--ease-glass);
    cursor: default;
    position: relative;
}

.skill-chip i { font-size: 0.95rem; color: var(--accent-light); }

.skill-chip:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-h);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Pastille de niveau */
.skill-level {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--radius-pill);
    padding: 0.05rem 0.45rem;
    margin-left: 0.2rem;
}

/* ── CONTACT ──────────────────────────────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info { padding: 2.5rem; border-radius: var(--radius-xl); }
.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-info p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 0.9rem; }

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.contact-detail i {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-light);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.contact-form-wrap { padding: 2.5rem; border-radius: var(--radius-xl); }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--accent);
    background: rgba(99,102,241,0.05);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

textarea.form-input { resize: vertical; }

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy { font-size: 0.82rem; color: var(--text-dim); }

.footer-socials { display: flex; gap: 0.6rem; }

/* ── BOUTON THÈME FLOTTANT ─────────────────────────────────────────────────── */
.theme-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--glass-border-h);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-float);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.3s, background 0.3s;
}


.theme-fab:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35), 0 4px 16px rgba(0,0,0,0.4);
    background: var(--glass-bg-hover);
}

.theme-fab:active {
    transform: scale(0.95);
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-glass), transform 0.7s var(--ease-glass);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-row { flex-direction: column; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-card { flex: none; width: 100%; max-width: 380px; }
    .hero-stats { grid-template-columns: 1fr; }
    .etude { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    section { padding: 5rem 1.25rem; }
    .hero-name { font-size: 2.4rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .passions-grid { grid-template-columns: 1fr; }
    .etude-visuels img,
    .etude-visuels img:first-child { height: 160px; }
}
