/* ============================================================
   PORTFOLIO NEHLA BOUFAL
   Design : dark rose/pink, Inter Tight + Instrument Serif, Inter Tight + Instrument Serif
   Esthétique inspirée du site 1 (hhdwbnk)
   ============================================================ */

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

:root {
    --bg:            oklch(0.10 0.015 340);
    --bg2:           oklch(0.14 0.02 340);
    --bg3:           oklch(0.18 0.025 340);
    --fg:            oklch(0.97 0.01 240);
    --fg-muted:      oklch(0.7 0.04 250);
    --accent:        oklch(0.55 0.22 340);
    --accent-l:      oklch(0.65 0.2 340);
    --border:        oklch(0.6 0.18 340 / 14%);
    --border-hover:  oklch(0.6 0.18 340 / 40%);
    --radius:        0.75rem;
    --radius-lg:     1.25rem;
    --radius-xl:     1.5rem;
    --font-sans:     'Inter Tight', ui-sans-serif, system-ui, sans-serif;
    --font-serif:    'Instrument Serif', ui-serif, Georgia, serif;
    --shadow-glow:   0 0 40px oklch(0.55 0.22 340 / 0.55), 0 0 80px oklch(0.45 0.2 340 / 0.35);
    --shadow-elev:   0 20px 60px -20px oklch(0.45 0.2 255 / 0.45);
    --shadow-soft:   0 1px 2px oklch(0.1 0.05 340 / 0.2), 0 8px 24px oklch(0.1 0.05 340 / 0.3);
}

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

html { scroll-behavior: smooth; }

html.has-cursor, html.has-cursor * { cursor: none !important; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

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

::selection {
    background: oklch(0.55 0.22 340 / 0.35);
    color: oklch(0.98 0.01 240);
}

img { max-width: 100%; display: block; }

/* ── CUSTOM CURSOR ── */
.cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}
.cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 28px; height: 28px;
    border-radius: 9999px;
    background: radial-gradient(circle, oklch(0.98 0.01 240 / 0.95) 0%, oklch(0.98 0.01 240 / 0.6) 40%, transparent 70%);
    box-shadow: 0 0 14px 2px oklch(0.45 0.25 340 / 0.95), 0 0 38px 8px oklch(0.4 0.22 340 / 0.7);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, background 0.2s;
}
.cursor-ring.hover {
    width: 54px; height: 54px;
    background: radial-gradient(circle, oklch(0.55 0.25 340 / 0.4) 0%, transparent 75%);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ── LAYOUT ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAVBAR ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    background: oklch(0.12 0.015 340 / 0.85);
    backdrop-filter: blur(20px);
    padding: 0.7rem 0;
    border-color: var(--border);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.navbar-brand {
    display: flex; align-items: center; gap: 0.5rem;
}
.brand-icon {
    display: inline-flex;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    border-radius: 0.5rem;
    background: var(--fg);
    color: oklch(0.12 0.02 340);
    font-family: var(--font-serif);
    font-size: 1.1rem;
}
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.brand-dot { color: var(--accent-l); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: oklch(0.7 0.04 250);
    border-radius: 9999px;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }

.nav-cta {
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: var(--fg);
    color: oklch(0.12 0.02 340) !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; color: oklch(0.12 0.02 340) !important; }
.nav-admin-link { color: var(--accent-l) !important; }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 0.55rem;
    cursor: pointer;
    gap: 4px; flex-direction: column;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--fg); transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links, .nav-cta-wrap { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: oklch(0.14 0.02 340 / 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
    }
    .nav-links.open a { padding: 0.6rem 0; display: block; }
}

/* ── HERO ── */
.hero {
    min-height: 92vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding-top: 80px;
}
.hero-grid {
    position: absolute; inset: 0; z-index: 0; opacity: 0.4;
    background-image:
        linear-gradient(oklch(0.55 0.22 340 / 0.08) 1px, transparent 1px),
        linear-gradient(90deg, oklch(0.55 0.22 340 / 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-pan 20s linear infinite;
}
.hero-glow {
    position: absolute; top: 25%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    border-radius: 9999px;
    background: oklch(0.5 0.22 340 / 0.25);
    filter: blur(160px);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1px solid oklch(0.5 0.22 340 / 0.3);
    background: oklch(0.16 0.025 340 / 0.4);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--fg-muted);
    margin-bottom: 2.5rem;
    box-shadow: 0 0 40px oklch(0.5 0.22 340 / 0.3);
    animation: fade-in 0.7s ease both;
}
.eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-l);
    animation: glow-pulse 4s ease-in-out infinite;
}
.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    animation: blur-in 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 .italic {
    font-style: italic;
    color: var(--accent-l);
    text-shadow: 0 0 60px oklch(0.5 0.25 340 / 0.8);
    display: block;
    margin-top: 0.2em;
    animation: blur-in 1.1s cubic-bezier(.2,.8,.2,1) 0.3s both;
}
.hero-sub {
    margin-top: 2rem;
    font-size: 1.05rem;
    color: var(--fg-muted);
    max-width: 560px;
    margin-left: auto; margin-right: auto;
    line-height: 1.7;
    animation: fade-up 0.9s cubic-bezier(.2,.8,.2,1) 0.5s both;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; align-items: center;
    margin-top: 3rem;
    animation: fade-up 0.9s cubic-bezier(.2,.8,.2,1) 0.7s both;
}
.hero-socials {
    display: flex; justify-content: center; gap: 0.75rem;
    margin-top: 3rem;
    animation: fade-up 0.9s cubic-bezier(.2,.8,.2,1) 0.9s both;
}
.hero-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fade-up 0.9s cubic-bezier(.2,.8,.2,1) 1s both;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, opacity 0.2s;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -20px oklch(0.45 0.22 340 / 0.55);
}
.btn-primary {
    background: var(--accent-l);
    color: oklch(0.98 0.01 240);
}
.btn-primary:hover { color: oklch(0.98 0.01 240); }
.btn-ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid oklch(0.5 0.22 340 / 0.4);
}
.btn-ghost:hover {
    border-color: var(--accent-l);
    color: var(--fg);
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── ICON BUTTON ── */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 9999px;
    border: 1px solid oklch(0.5 0.22 340 / 0.3);
    background: oklch(0.16 0.025 340 / 0.4);
    backdrop-filter: blur(8px);
    color: var(--fg);
    transition: background 0.2s, border-color 0.2s, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.icon-btn:hover {
    background: var(--accent-l);
    border-color: var(--accent-l);
    transform: translateY(-3px);
}
.icon-btn svg { width: 16px; height: 16px; }

/* ── TAG / BADGE ── */
.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    background: oklch(0.16 0.025 340 / 0.6);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fg-muted);
}
.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.badge-type     { background: oklch(0.14 0.02 340); border: 1px solid var(--border); color: var(--fg-muted); }
.badge-comp     { background: oklch(0.5 0.22 340 / 0.2); border: 1px solid oklch(0.5 0.22 340 / 0.4); color: var(--accent-l); }
.badge-annee    { background: transparent; border: 1px solid var(--border); color: var(--fg-muted); }

/* ── EYEBROW ── */
.eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fg-muted);
    margin-bottom: 0.75rem;
}

/* ── SECTION ── */
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-header h2 .italic { font-style: italic; color: var(--accent-l); }
.section-header p { margin-top: 1rem; color: var(--fg-muted); max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── CARDS ── */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
    backdrop-filter: blur(8px);
    height: 100%;
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

.card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.card h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--fg); }
.card p { font-size: 0.875rem; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { font-size: 0.75rem; color: oklch(0.6 0.04 250); margin-top: 1rem; }

.card-image {
    width: 100%; height: 180px; object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
    margin-bottom: 1.25rem;
}
.card-image-placeholder {
    width: 100%; height: 160px;
    background: var(--bg3);
    border-radius: calc(var(--radius-lg) - 4px);
    margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-muted);
    border: 1px solid var(--border);
}

/* ── TECH PILLS ── */
.tech-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tech-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: oklch(0.14 0.02 340);
    border: 1px solid var(--border);
    font-size: 0.7rem; color: var(--fg-muted);
}

/* ── GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── PAGE HEADER ── */
.page-header {
    padding: 7rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, oklch(0.5 0.22 340 / 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.page-header h1 .italic { font-style: italic; color: var(--accent-l); }
.page-header p { margin-top: 1rem; color: var(--fg-muted); max-width: 480px; margin: 1rem auto 0; }

/* ── FILTERS ── */
.filters-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.filter-select {
    padding: 0.4rem 0.9rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--fg-muted);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 1.8rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}
.filter-select:focus { outline: none; border-color: var(--accent-l); color: var(--fg); }
.filter-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--fg-muted);
}
.filter-reset {
    background: none; border: none;
    font-family: var(--font-sans);
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--fg-muted); cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: color 0.2s;
}
.filter-reset:hover { color: var(--fg); }

/* ── TRACE DETAIL ── */
.trace-detail-header {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
}

/* ── SECTION LINK ── */
.section-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.875rem; font-weight: 500;
    color: var(--accent-l);
    border-bottom: 1px solid oklch(0.5 0.22 340 / 0.4);
    padding-bottom: 2px;
    transition: border-color 0.2s;
    margin-top: 2rem;
}
.section-link:hover { border-color: var(--accent-l); color: var(--accent-l); }

/* ── HERO CTA BLOCK ── */
.cta-block {
    position: relative; overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid oklch(0.5 0.22 340 / 0.3);
    background: oklch(0.16 0.025 340 / 0.6);
    backdrop-filter: blur(8px);
    padding: 4rem 3rem;
    box-shadow: 0 0 80px oklch(0.5 0.22 340 / 0.25);
}
.cta-block::before {
    content: '';
    position: absolute; top: -6rem; right: -6rem;
    width: 16rem; height: 16rem;
    border-radius: 9999px;
    background: oklch(0.5 0.22 340 / 0.25);
    filter: blur(3rem);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

/* ── ABOUT SKILLS ── */
.skill-bar { margin-bottom: 1.25rem; }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.875rem; }
.skill-bar-track {
    height: 4px; background: var(--bg3); border-radius: 9999px; overflow: hidden;
}
.skill-bar-fill {
    height: 100%; width: 0; background: var(--accent-l); border-radius: 9999px;
    transition: width 1.2s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 0 12px oklch(0.55 0.22 340 / 0.6);
}

/* ── CONTACT ── */
.contact-info-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid oklch(0.5 0.22 340 / 0.2);
    background: oklch(0.16 0.025 340 / 0.6);
    transition: border-color 0.2s;
}
.contact-info-item:hover { border-color: oklch(0.5 0.22 340 / 0.6); }
.contact-info-icon {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 0.75rem;
    background: oklch(0.5 0.22 340 / 0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-l);
    box-shadow: 0 0 20px oklch(0.5 0.25 340 / 0.4);
}
.contact-info-icon svg { width: 16px; height: 16px; }
.contact-info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-muted); }
.contact-info-value { font-size: 0.875rem; font-weight: 500; margin-top: 0.2rem; }

.form-card {
    background: oklch(0.16 0.025 340 / 0.6);
    border: 1px solid oklch(0.5 0.22 340 / 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(8px);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--fg-muted); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: oklch(0.12 0.015 340 / 0.5);
    border: 1px solid oklch(0.6 0.18 340 / 18%);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-l);
    box-shadow: 0 0 0 3px oklch(0.5 0.22 340 / 0.2);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--fg-muted); }

/* ── ALERTS ── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.alert-success {
    background: oklch(0.3 0.1 145 / 0.3);
    border: 1px solid oklch(0.5 0.15 145 / 0.5);
    color: oklch(0.8 0.1 145);
}
.alert-error {
    background: oklch(0.2 0.08 25 / 0.3);
    border: 1px solid oklch(0.4 0.15 25 / 0.5);
    color: oklch(0.75 0.15 25);
}

/* ── ADMIN LAYOUT ── */
.admin-layout { display: flex; min-height: 100vh; padding-top: 0; }
.admin-sidebar {
    width: 220px; min-width: 220px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 2rem 1.25rem;
    display: flex; flex-direction: column; gap: 0.25rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand {
    font-family: var(--font-serif);
    font-size: 1.2rem; letter-spacing: -0.01em;
    margin-bottom: 2rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.admin-sidebar a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem; color: var(--fg-muted);
    transition: color 0.2s, background 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--fg); background: var(--bg3);
}
.admin-content {
    flex: 1; padding: 2.5rem;
    overflow-x: hidden;
}
.admin-content h1 { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.stat-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; font-family: var(--font-serif); color: var(--accent-l); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--fg-muted); margin-top: 0.25rem; }

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; min-width: 0; height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
    .admin-content { padding: 1.5rem; }
}

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { border-bottom: 1px solid var(--border); }
thead th { padding: 0.75rem 1rem; text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-muted); font-weight: 500; }
tbody tr { border-bottom: 1px solid oklch(0.6 0.18 340 / 8%); transition: background 0.15s; }
tbody tr:hover { background: var(--bg2); }
tbody td { padding: 0.85rem 1rem; color: var(--fg); }
.table-actions { display: flex; gap: 0.5rem; }

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    border: 1px dashed var(--border); border-radius: var(--radius-lg);
    color: var(--fg-muted);
}
.empty-state h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }

/* ── CONNEXION / INSCRIPTION ── */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    position: relative;
}
.auth-wrap::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 500px; height: 500px;
    border-radius: 9999px;
    background: radial-gradient(circle, oklch(0.5 0.22 340 / 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.auth-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 440px;
    background: oklch(0.16 0.025 340 / 0.6);
    border: 1px solid oklch(0.5 0.22 340 / 0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
}
.auth-card h1 { font-size: 1.75rem; text-align: center; margin-bottom: 0.5rem; }
.auth-card .auth-sub { text-align: center; color: var(--fg-muted); font-size: 0.875rem; margin-bottom: 2rem; }

/* ── PASSIONS ── */
.passion-card {
    background: oklch(0.16 0.025 340 / 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
    backdrop-filter: blur(8px);
}
.passion-card:hover {
    border-color: oklch(0.5 0.22 340 / 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}
.passion-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: var(--bg3);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.2s, box-shadow 0.2s;
}
.passion-card:hover .passion-icon {
    background: var(--accent-l);
    box-shadow: 0 0 30px oklch(0.5 0.25 340 / 0.7);
}
.passion-icon svg { width: 20px; height: 20px; }
.passion-card h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.5rem; }
.passion-card p { font-size: 0.875rem; color: var(--fg-muted); }

/* ── COMMENT ── */
.comment {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem;
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--fg-muted); }
.comment p { font-size: 0.875rem; }

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 6rem;
}
.footer-inner {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 1.5rem;
}
.footer-brand {
    font-family: var(--font-serif); font-size: 1.1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-copy { font-size: 0.8rem; color: var(--fg-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--fg-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1), filter 0.9s ease;
    will-change: opacity, transform, filter;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.93); }
.reveal-blur  { transform: translateY(30px); filter: blur(12px); }
.reveal.in { opacity: 1; transform: translate(0,0) scale(1); filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ── KEYFRAMES ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes fade-in {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes blur-in {
    from { opacity: 0; filter: blur(20px); letter-spacing: 0.2em; }
    to   { opacity: 1; filter: blur(0);    letter-spacing: 0; }
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.12); }
}
@keyframes grid-pan {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}
@keyframes skill-grow {
    from { width: 0; } to { /* set via JS */ }
}

/* ── BACK LINK ── */
.back-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.875rem; color: var(--fg-muted);
    margin-bottom: 1.5rem; transition: color 0.2s;
}
.back-link:hover { color: var(--fg); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── ABOUT PAGE GRID ── */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.about-photo {
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    border: 1px solid oklch(0.5 0.22 340 / 0.3);
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--fg-muted);
    box-shadow: 0 0 60px oklch(0.5 0.22 340 / 0.25);
}
.about-intro { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.about-body p { color: var(--fg-muted); margin-bottom: 1.25rem; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }

/* ── CONTACT GRID ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-infos { display: flex; flex-direction: column; gap: 1rem; }

/* ── CAROUSEL 3D ── */
@keyframes spin-y {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(-360deg); }
}
.carousel-3d {
    perspective: 1400px;
    perspective-origin: 50% 50%;
}
.carousel-3d-track {
    transform-style: preserve-3d;
    animation: spin-y 36s linear infinite;
    position: relative;
    margin: 0 auto;
}
.carousel-3d-track:hover {
    animation-play-state: paused;
}
.carousel-card {
    position: absolute;
    inset: 0;
}
.carousel-card-inner {
    height: 360px;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-elev);
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.carousel-card:hover .carousel-card-inner {
    transform: scale(1.05);
}
.carousel-card-img {
    height: 176px;
    width: 100%;
    overflow: hidden;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-muted);
}
.carousel-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.carousel-card-body {
    padding: 1.25rem;
    text-align: left;
}
.carousel-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.carousel-card-body p {
    font-size: 0.8rem;
    color: var(--fg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.carousel-card-label {
    margin-top: 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-l);
}

/* Section carrousel — fond légèrement distinct */
.carousel-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.carousel-section::before,
.carousel-section::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    border: 1px solid;
    pointer-events: none;
}
.carousel-section::before {
    width: 600px; height: 600px;
    border-color: oklch(0.97 0.01 240 / 0.05);
}
.carousel-section::after {
    width: 800px; height: 800px;
    border-color: oklch(0.97 0.01 240 / 0.03);
}

/* ── CV SECTION ── */
.cv-section {
    background: oklch(0.16 0.025 340 / 0.6);
    border: 1px solid oklch(0.5 0.22 340 / 0.2);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    box-shadow: 0 0 60px oklch(0.5 0.22 340 / 0.2);
    backdrop-filter: blur(8px);
}
.cv-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cv-section h2 .italic { font-style: italic; color: var(--accent-l); }

/* ── ABOUT PREVIEW (homepage) ── */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 700px) { .about-preview-grid { grid-template-columns: 1fr; } }
.about-preview-photo {
    aspect-ratio: 4/5;
    max-width: 340px;
    border-radius: var(--radius-xl);
    border: 1px solid oklch(0.5 0.22 340 / 0.3);
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-muted);
    box-shadow: 0 0 60px oklch(0.5 0.22 340 / 0.3);
}

/* ── ONGLETS sur la page réalisations ── */
.tabs {
    display: flex; gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.tab-btn {
    padding: 0.6rem 1.25rem;
    background: none; border: none;
    font-family: var(--font-sans);
    font-size: 0.875rem; font-weight: 500;
    color: var(--fg-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active { color: var(--fg); border-color: var(--accent-l); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
