/* ============================================
   Portfolio Lucas AUTRAN — SAE 2.03
   Dark purple / luxury aesthetic
   ============================================ */

@import url('https://api.fontshare.com/v2/css?f[]=monument-extended@400,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
    --purple-deep:   #1c0f2d;
    --purple-mid:    #2d1854;
    --purple-glow:   #7b2fff;
    --purple-accent: #9d4edd;
    --purple-light:  #c77dff;
    --off-white:     #e5e5e5;
    --white:         #f5f5f5;
    --dark:          #0a0612;
    --gray-muted:    #8a8a9a;
    --card-bg:       rgba(29, 16, 45, 0.85);
    --border-color:  rgba(155, 78, 221, 0.2);
    --font-gothic:   'MonumentExtended', 'Monument Extended', sans-serif;
    --font-wide:     'MonumentExtended', 'Monument Extended', sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--dark);
    color: var(--off-white);
    font-family: var(--font-body);
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── Typography ── */
.brand-gothic {
    font-family: var(--font-gothic);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--white);
    text-transform: uppercase;
}

.brand-thin {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--gray-muted);
    text-transform: uppercase;
    font-size: 0.75em;
}

h1, h2, h3 {
    font-family: var(--font-gothic);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.05;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--purple-light);
}

/* ── Navbar ── */
#mainNav {
    background: rgba(10, 6, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#mainNav .navbar-brand {
    font-size: 1.1rem;
    text-decoration: none;
}

#mainNav .nav-link {
    font-family: var(--font-gothic);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gray-muted);
    padding: 0.4rem 0.75rem;
    transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--white);
}

.btn-nav-outline {
    border: 1px solid var(--border-color) !important;
    border-radius: 2px !important;
    color: var(--purple-light) !important;
    padding: 0.35rem 1rem !important;
}

.btn-nav-outline:hover {
    background: var(--purple-mid) !important;
    border-color: var(--purple-accent) !important;
    color: var(--white) !important;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(123, 47, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(28, 15, 45, 0.8) 0%, transparent 60%),
        linear-gradient(135deg, var(--dark) 0%, var(--purple-deep) 50%, var(--dark) 100%);
    z-index: -1;
}

.hero-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--purple-accent), transparent);
    margin: 1.5rem 0;
}

.hero-title {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1rem;
    color: var(--gray-muted);
    max-width: 420px;
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hero-tag {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    color: var(--gray-muted);
    padding: 0.3rem 0.75rem;
    border-radius: 1px;
}

.hero-number {
    font-family: var(--font-wide);
    font-weight: 900;
    font-size: clamp(8rem, 20vw, 18rem);
    color: rgba(123, 47, 255, 0.05);
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* ── Buttons ── */
.btn-purple {
    background: var(--purple-glow);
    color: var(--white);
    border: none;
    border-radius: 2px;
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-purple:hover {
    background: var(--purple-accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 47, 255, 0.4);
}

.btn-outline-purple {
    background: transparent;
    color: var(--purple-light);
    border: 1px solid var(--purple-light);
    border-radius: 2px;
    font-family: var(--font-gothic);
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-purple:hover {
    background: var(--purple-mid);
    color: var(--white);
    border-color: var(--purple-accent);
}

/* ── Section générique ── */
.section-dark {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

.section-divider {
    width: 40px;
    height: 2px;
    background: var(--purple-glow);
    margin: 1rem 0;
}

/* ── Cards traces ── */
.trace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.trace-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.trace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-glow), var(--purple-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.trace-card:hover {
    border-color: rgba(155, 78, 221, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(123, 47, 255, 0.1);
    color: inherit;
}

.trace-card:hover::before {
    transform: scaleX(1);
}

.trace-card-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trace-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.trace-card-thumb-placeholder {
    font-size: 2.5rem;
    color: var(--purple-light);
    opacity: 0.5;
}

.trace-card-body {
    padding: 1.25rem;
}

.trace-type-badge {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(123, 47, 255, 0.2);
    color: var(--purple-light);
    border: 1px solid rgba(123, 47, 255, 0.3);
    padding: 0.22rem 0.65rem;
    border-radius: 1px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.trace-card-title {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.trace-card-desc {
    font-size: 0.82rem;
    color: var(--gray-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trace-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.68rem;
    color: var(--gray-muted);
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Filtres ── */
.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.filter-bar .form-select,
.filter-bar .form-control {
    background: rgba(10, 6, 18, 0.8);
    border: 1px solid var(--border-color);
    color: var(--off-white);
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.filter-bar .form-select:focus,
.filter-bar .form-control:focus {
    border-color: var(--purple-accent);
    box-shadow: 0 0 0 0.2rem rgba(123, 47, 255, 0.15);
    background: rgba(10, 6, 18, 0.9);
    color: var(--white);
}

.filter-bar .form-select option {
    background: var(--dark);
}

.filter-bar label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

/* ── Detail trace ── */
.trace-detail-header {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.trace-detail-body {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.trace-detail-section {
    margin-bottom: 2rem;
}

.trace-detail-section h5 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

.trace-detail-section p {
    color: var(--off-white);
    font-weight: 300;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ── Commentaires ── */
.comments-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
}

.comment-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.comment-item:last-of-type { border-bottom: none; }

.comment-author {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--purple-light);
}

.comment-date {
    font-size: 0.72rem;
    color: var(--gray-muted);
    margin-left: 0.75rem;
}

.comment-content {
    font-size: 0.9rem;
    color: var(--off-white);
    margin-top: 0.5rem;
    line-height: 1.7;
}

/* ── Forms ── */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
}

.form-card .form-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

.form-card .form-control,
.form-card .form-select,
.form-card textarea {
    background: rgba(10, 6, 18, 0.8);
    border: 1px solid var(--border-color);
    color: var(--off-white);
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 300;
}

.form-card .form-control:focus,
.form-card .form-select:focus,
.form-card textarea:focus {
    border-color: var(--purple-accent);
    box-shadow: 0 0 0 0.2rem rgba(123, 47, 255, 0.15);
    background: rgba(10, 6, 18, 0.95);
    color: var(--white);
}

.form-card .form-control::placeholder { color: rgba(138, 138, 154, 0.6); }
.form-card .form-select option { background: var(--dark); }

/* ── Auth pages ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 50% 70% at 50% 50%, rgba(123, 47, 255, 0.1) 0%, transparent 70%),
        var(--dark);
    padding: 2rem 1rem;
}

.auth-box {
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.auth-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-bottom: 2rem;
}

/* ── About section ── */
.about-section {
    background: linear-gradient(135deg, rgba(28, 15, 45, 0.8) 0%, rgba(10, 6, 18, 0.9) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-stat {
    text-align: center;
    padding: 1.5rem;
}

.about-stat-number {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -0.03em;
    color: var(--purple-light);
    line-height: 1;
}

.about-stat-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-top: 0.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    color: var(--off-white);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    background: rgba(123, 47, 255, 0.08);
}

/* ── Admin ── */
.admin-sidebar {
    background: rgba(10, 6, 18, 0.9);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 65px);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 65px;
}

.admin-sidebar .nav-link {
    font-family: var(--font-gothic);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-muted);
    padding: 0.6rem 0.75rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white);
    background: rgba(123, 47, 255, 0.15);
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
}

.admin-stat-card .stat-num {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    color: var(--purple-light);
}

.admin-stat-card .stat-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

/* ── Tables admin ── */
.table-dark-custom {
    background: transparent;
    color: var(--off-white);
    font-size: 0.85rem;
}

.table-dark-custom thead th {
    background: rgba(123, 47, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--purple-light);
    padding: 1rem 0.75rem;
}

.table-dark-custom tbody tr {
    border-bottom: 1px solid rgba(155, 78, 221, 0.08);
    transition: background 0.2s;
}

.table-dark-custom tbody tr:hover {
    background: rgba(123, 47, 255, 0.06);
}

.table-dark-custom td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    color: var(--off-white);
}

/* ── Alert ── */
.alert-dark-purple {
    background: rgba(123, 47, 255, 0.12);
    border: 1px solid rgba(155, 78, 221, 0.3);
    color: var(--purple-light);
    border-radius: 2px;
    font-size: 0.9rem;
}

.alert-dark-success {
    background: rgba(0, 200, 100, 0.1);
    border: 1px solid rgba(0, 200, 100, 0.3);
    color: #5af0a0;
    border-radius: 2px;
}

.alert-dark-danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f87e8a;
    border-radius: 2px;
}

/* ── Footer ── */
.site-footer {
    background: rgba(10, 6, 18, 0.95);
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
}

.footer-name {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.footer-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

.footer-contact a {
    color: var(--gray-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover { color: var(--purple-light); }

.footer-legal {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(138, 138, 154, 0.5);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
    background: var(--purple-mid);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-glow); }

/* ── Utilities ── */
.text-purple { color: var(--purple-light) !important; }
.text-muted-custom { color: var(--gray-muted) !important; }
.border-purple { border-color: var(--border-color) !important; }

.glow-purple {
    box-shadow: 0 0 20px rgba(123, 47, 255, 0.3);
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up-2 { animation-delay: 0.15s; opacity: 0; }
.fade-in-up-3 { animation-delay: 0.3s;  opacity: 0; }
.fade-in-up-4 { animation-delay: 0.45s; opacity: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 4rem 0 3rem; }
    .hero-number { display: none; }
    .trace-grid { grid-template-columns: 1fr; }
    .admin-sidebar { min-height: auto; position: static; }
}

/* ══════════════════════════════════════════
   REDESIGN ORIGINAL — Nouvelles sections
══════════════════════════════════════════ */

/* ── Cursor custom ── */
*, *::before, *::after { cursor: none !important; }
@media (hover: none) { *, *::before, *::after { cursor: auto !important; } }

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: #f5f5f5;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: background 0.15s ease;
    will-change: transform;
}

.cursor-dot.hovered {
    background: #c77dff !important;
}

.cursor-ring { display: none !important; }

/* ── Scroll progress bar ── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--purple-glow), var(--purple-light));
    z-index: 9997;
    transition: width 0.05s linear;
}

/* ── Ticker marquee ── */
.ticker-wrap {
    background: var(--purple-deep);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.4rem 0;
}

.ticker-track {
    display: inline-flex;
    gap: 0;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(199, 125, 255, 0.7);
    padding: 0 2rem;
}

.ticker-item:not(:last-child)::after {
    content: '';
}

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}

/* ── Navbar scrolled ── */
#mainNav.scrolled {
    background: rgba(10, 6, 18, 0.99) !important;
    box-shadow: 0 1px 30px rgba(123,47,255,0.08);
}

/* ── Hero redesign ── */
.hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.min-vh-hero { min-height: 80vh; align-items: center; }

/* Lignes de grille verticales */
.hero-grid-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(123,47,255,0.08) 20%, rgba(123,47,255,0.08) 80%, transparent);
    pointer-events: none;
}

/* Label vertical rotaté */
.hero-vert-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray-muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.hero-vert-line {
    width: 1px;
    flex: 1;
    min-height: 80px;
    background: linear-gradient(to bottom, transparent, var(--purple-mid), transparent);
    margin: 0.6rem 0;
}

/* Eyebrow avec croix ── */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-bottom: 1.2rem;
}

.hero-cross {
    color: var(--purple-glow);
    font-size: 0.7rem;
}

/* Titre avec outline */
.hero-title {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--white);
    margin: 0 0 0 0;
    text-transform: uppercase;
}

.hero-title-line { display: block; }

.hero-title-outline {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
    color: transparent;
    transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.hero-title:hover .hero-title-outline {
    color: var(--white);
    -webkit-text-stroke: 0px transparent;
}

/* Glitch animation */
.hero-title.glitch {
    animation: glitch 0.4s steps(2) forwards;
}

@keyframes glitch {
    0%  { clip-path: inset(0 0 85% 0); transform: translate(-3px, 0); }
    20% { clip-path: inset(30% 0 50% 0); transform: translate(3px, 0); }
    40% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(80% 0 5%  0); transform: translate(-1px, 0); }
    100%{ clip-path: inset(0 0 0 0);     transform: translate(0, 0); }
}

/* Ligne horizontale + index */
.hero-divider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

.hero-line-h {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--purple-glow), transparent);
    max-width: 120px;
}

.hero-index {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--purple-light);
}

/* Bloc stats héro */
.hero-stat-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.hero-stat-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.hero-stat-num {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.03em;
    color: var(--purple-light);
    line-height: 1;
}

.hero-stat-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-muted);
    text-align: right;
    line-height: 1.6;
}

/* Coordonnées déco */
.hero-coords {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(138,138,154,0.35);
    text-transform: uppercase;
    margin-top: 0.75rem;
    text-align: center;
}

/* Grand texte fond */
.hero-bg-text {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: clamp(5rem, 18vw, 16rem);
    letter-spacing: -0.04em;
    color: rgba(123,47,255,0.035);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
    line-height: 1;
}

/* Bouton arrow */
.btn-arrow {
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform 0.2s;
}
.btn-purple:hover .btn-arrow { transform: translateX(4px); }

/* ── Bande séparatrice ── */
.band-separator {
    background: rgba(28, 15, 45, 0.6);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-muted);
    overflow: hidden;
}

.band-dot {
    color: var(--purple-glow);
    font-size: 0.5rem;
}

/* ── Grille éditoriale traces ── */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

/* La première carte prend 2 colonnes */
.trace-card--featured {
    grid-column: span 2;
    grid-row: span 1;
}

.trace-card--featured .trace-card-thumb { height: 220px; }

/* Numéro indexé sur la carte */
.trace-card-index {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    background: rgba(10,6,18,0.6);
    padding: 0.15rem 0.45rem;
    border-radius: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Override card thumb pour position relative */
.trace-card-thumb { position: relative; }

/* ── Section About redesign ── */
.about-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.about-header-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.about-header-title {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--purple-light);
    white-space: nowrap;
    margin: 0;
    line-height: 1;
}

/* ── Big stats row ── */
.big-stats-row {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.big-stat {
    flex: 1;
    padding: 1.5rem;
    text-align: center;
}

.big-stat-sep {
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

.big-stat-num {
    display: block;
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    color: var(--purple-light);
    line-height: 1;
}

.big-stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-top: 0.4rem;
}

/* ── Barres compétences ── */
.comp-bars { display: flex; flex-direction: column; gap: 0.9rem; }

.comp-bar-item {}

.comp-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.comp-bar-name {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--off-white);
}

.comp-bar-ue {
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    color: var(--purple-light);
    text-transform: uppercase;
}

.comp-bar-track {
    height: 3px;
    background: rgba(123,47,255,0.12);
    border-radius: 99px;
    overflow: hidden;
}

.comp-bar-fill {
    height: 100%;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, var(--purple-glow), var(--purple-light));
    border-radius: 99px;
    animation: barGrow 1.2s cubic-bezier(.22,1,.36,1) forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes barGrow {
    to { transform: scaleX(1); }
}

/* ── Reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive grille éditoriale ── */
@media (max-width: 992px) {
    .editorial-grid { grid-template-columns: 1fr 1fr; }
    .trace-card--featured { grid-column: span 2; }
}

@media (max-width: 576px) {
    .editorial-grid { grid-template-columns: 1fr; }
    .trace-card--featured { grid-column: span 1; }
    .band-separator { gap: 0.75rem; }
    .big-stats-row { flex-direction: column; }
    .big-stat-sep { width: 60px; height: 1px; }
}

/* ══════════════════════════════════════════════════════
   V2 — REDESIGN COMPLET
   Bracket cursor · Navbar éditoriale · Hero split-char
   Traces en liste · About stats
══════════════════════════════════════════════════════ */

/* ── Body padding pour navbar fixe ── */
body { padding-top: 72px; }
.hero-v2 { margin-top: -72px; padding-top: 72px; } /* hero plein écran compense */

/* ── Masquer l'anneau curseur ── */
.cursor-ring { display: none !important; }

/* ── Bracket cursor (4 coins en L) ── */
.c-tl, .c-tr, .c-bl, .c-br {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transition: width .18s, height .18s, border-color .18s;
}
.c-tl { border-top:  1.5px solid var(--off-white); border-left:  1.5px solid var(--off-white); }
.c-tr { border-top:  1.5px solid var(--off-white); border-right: 1.5px solid var(--off-white); }
.c-bl { border-bottom: 1.5px solid var(--off-white); border-left:  1.5px solid var(--off-white); }
.c-br { border-bottom: 1.5px solid var(--off-white); border-right: 1.5px solid var(--off-white); }

.c-tl.expanded, .c-tr.expanded,
.c-bl.expanded, .c-br.expanded {
    width: 18px; height: 18px;
    border-color: var(--purple-light);
}

/* ── Navbar v2 ── */
#mainNav {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(229,229,229,0.07);
    padding: 1.1rem 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background .3s;
}

#mainNav.nav-solid {
    background: rgba(10,6,18,0.96) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom-color: rgba(229,229,229,0.11);
}

.nav-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(229,229,229,0.5);
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    color: var(--white);
    flex-shrink: 0;
}

.nav-logo-full {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
}

.nav-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-muted);
    border: 1px solid rgba(229,229,229,0.1);
    padding: 0.22rem 0.7rem;
    border-radius: 99px;
}

.nav-status-dot {
    width: 5px; height: 5px;
    background: #5af0a0;
    border-radius: 50%;
    animation: statusBlink 2.2s ease infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* Liens navbar v2 */
.nav-lnk {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-muted);
    text-decoration: none !important;
    padding: 0.4rem 0.8rem;
    transition: color .2s;
}

.nav-lnk::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0.8rem; right: 0.8rem;
    height: 1px;
    background: var(--off-white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}

.nav-lnk:hover,
.nav-lnk.active           { color: var(--white); }
.nav-lnk:hover::after,
.nav-lnk.active::after    { transform: scaleX(1); }

.nav-lnk-num {
    font-family: var(--font-gothic);
    font-size: 0.48rem;
    letter-spacing: 0.05em;
    color: var(--purple-glow);
    opacity: 0.65;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(229,229,229,0.15);
    color: var(--gray-muted);
    text-decoration: none !important;
    font-size: 1rem;
    transition: color .2s, border-color .2s;
}

.btn-ghost:hover {
    color: var(--white);
    border-color: rgba(229,229,229,0.5);
}

/* ── Hero v2 ── */
.hero-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Numéro décoratif vertical */
.h2-section-num {
    position: absolute;
    top: 6rem; right: 2rem;
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.52rem;
    letter-spacing: 0.3em;
    color: rgba(229,229,229,0.15);
    writing-mode: vertical-rl;
    user-select: none;
}

/* Eyebrow crochet */
.h2-eyebrow {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.h2-bracket { color: var(--purple-glow); }

/* Titre hero — override règle v1 */
.hero-v2 .hero-title {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: clamp(4rem, 10vw, 9.5rem);
    line-height: 0.87;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
    color: var(--white);
}

.hero-name {
    display: block;
    color: var(--white);
}

.hero-name--stroke {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.45);
    color: transparent;
}

/* Animation lettre par lettre */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) rotate(2deg);
    animation: charReveal .55s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes charReveal {
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* Ligne de méta sous le titre */
.h2-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.h2-meta-item {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

.h2-sep {
    color: var(--purple-glow);
    opacity: 0.5;
}

/* Boîte d'infos droite */
.h2-info-box {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    width: 100%;
    max-width: 300px;
}

.h2-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.h2-info-row:last-child { border-bottom: none; }

.h2-info-key {
    font-family: var(--font-body);
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

.h2-info-val {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
}

/* Bouton v2 */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.8rem 1.4rem;
    transition: background .2s, border-color .2s, gap .2s;
}

.btn-v2:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    gap: 0.8rem;
}

.btn-v2-arrow { transition: transform .2s; }
.btn-v2:hover .btn-v2-arrow { transform: translate(2px,-2px); }

/* Barre de bas hero */
.h2-bottom-bar {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 0.7rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(229,229,229,0.25);
}

.h2-bottom-sep {
    color: rgba(123,47,255,0.3);
    letter-spacing: 0.04em;
}

/* ── Sections v2 ── */
.section-v2 {
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.section-v2-header {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sv2-num {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.52rem;
    letter-spacing: 0.3em;
    color: var(--purple-glow);
    opacity: 0.55;
}

.sv2-title {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    flex: 1;
    line-height: 1;
}

.sv2-link {
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-muted);
    text-decoration: none !important;
    transition: color .2s;
    white-space: nowrap;
}
.sv2-link:hover { color: var(--white); }

/* ── Traces liste v2 ── */
.traces-list-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-size: 0.52rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(229,229,229,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 0.25rem;
}

.traces-list {
    display: flex;
    flex-direction: column;
}

.trace-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem;
    text-decoration: none !important;
    color: var(--off-white);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    opacity: 0;
    transform: translateX(-10px);
    transition:
        opacity   .4s ease,
        transform .4s ease,
        background .2s,
        padding-left .2s;
}

.trace-row.in {
    opacity: 1;
    transform: translateX(0);
}

.trace-row:hover {
    background: rgba(255,255,255,0.025);
    color: var(--white);
    padding-left: 1.75rem;
}

.tr-num {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    color: rgba(229,229,229,0.18);
    width: 3rem;
    flex-shrink: 0;
    transition: color .2s;
}
.trace-row:hover .tr-num { color: var(--purple-light); }

.tr-title {
    flex: 2;
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.25;
}

.tr-type {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 7rem;
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

.tr-icon {
    color: var(--purple-light);
    font-size: 0.68rem;
    flex-shrink: 0;
}

.tr-comp {
    width: 6rem;
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-muted);
}

.tr-date {
    width: 5rem;
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(229,229,229,0.2);
}

.tr-arrow {
    width: 2rem;
    text-align: right;
    font-size: 0.85rem;
    color: rgba(229,229,229,0.15);
    transition: color .2s, transform .2s;
}
.trace-row:hover .tr-arrow {
    color: var(--white);
    transform: translate(2px,-2px);
}

/* ── About v2 ── */
.about-v2-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--off-white);
    margin-bottom: 1rem;
}

.about-v2-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.84rem;
    line-height: 1.8;
    color: var(--gray-muted);
}

.about-v2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.av2-tag {
    font-family: var(--font-body);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-muted);
    padding: 0.28rem 0.6rem;
    transition: border-color .2s, color .2s;
}
.av2-tag:hover {
    border-color: var(--purple-light);
    color: var(--white);
}

/* Stats block */
.av2-stats-row {
    display: flex;
    border: 1px solid rgba(255,255,255,0.07);
}

.av2-stat {
    flex: 1;
    padding: 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}
.av2-stat:last-child { border-right: none; }

.av2-stat-n {
    display: block;
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: -0.04em;
    color: var(--white);
    line-height: 1;
}

.av2-stat-l {
    display: block;
    font-family: var(--font-body);
    font-size: 0.56rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray-muted);
    margin-top: 0.4rem;
}

/* ── Photo de profil + CV (section Profil) ── */
.profile-photo-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    height: 100%;
}

.profile-photo-frame {
    position: relative;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle, rgba(123,47,255,0.16) 1px, transparent 1px) 0 0 / 16px 16px,
        linear-gradient(135deg, var(--purple-deep), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(25%) contrast(1.05);
    transition: filter .4s ease, transform .6s ease;
}
.profile-photo-frame:hover .profile-photo-img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.profile-photo-placeholder {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: 0.05em;
    color: rgba(199,125,255,0.22);
}

.profile-photo-tag {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(10,5,18,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.4rem 0.75rem;
    z-index: 1;
}

.profile-cv-btn--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* ── Reveal v2 : classe 'in' ── */
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive v2 ── */
@media (max-width: 992px) {
    .h2-info-box { max-width: 100%; }
    .hero-v2 .hero-title { font-size: clamp(3rem, 13vw, 7rem); }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .h2-bottom-bar { display: none; }
    .traces-list-head { display: none; }
    .tr-num { display: none; }
    .h2-section-num { display: none; }
    .av2-stats-row { flex-direction: column; }
    .av2-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .av2-stat:last-child { border-bottom: none; }
    .tr-comp, .tr-date { display: none; }
    .section-v2 { padding: 3.5rem 0; }
    .profile-photo-card { align-items: center; }
    .profile-photo-frame { max-width: 200px; }
}

@media (max-width: 576px) {
    .nav-logo-full { display: none; }
    .hero-v2 .hero-title { font-size: clamp(2.8rem, 14vw, 5rem); }
    .h2-meta-row { display: none; }
}


/* ══════════════════════════════════════════════════════
   CHAINZOKU ATMOSPHERE — Visual Enhancement Layer
   Ambient orbs · Glassmorphism · Glow accents · Depth
══════════════════════════════════════════════════════ */

/* ── Global ambient background glow ──────────────────
   Deux orbes fixes qui persistent au scroll, créant
   une profondeur atmosphérique façon Chainzoku.       */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 8% 0%,   rgba(123,47,255,0.09) 0%, transparent 55%),
        radial-gradient(ellipse 60%  60% at 92% 100%, rgba(157,78,221,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── Hero — profondeur atmosphérique multicouche ─────
   ::before : grandes sphères lumineuses pourpres
   ::after  : grille de points (dot grid)               */
.hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 90% at 22% 40%, rgba(123,47,255,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 82% 14%, rgba(157,78,221,0.11) 0%, transparent 50%),
        radial-gradient(ellipse 35% 40% at 60% 88%, rgba(44,24,84,0.55)   0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.hero-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(123,47,255,0.14) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 75%);
    mask-image:         radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 75%);
    opacity: 0.45;
}

/* Tous les enfants directs du hero au-dessus des couches pseudo */
.hero-v2 > * { position: relative; z-index: 1; }

/* ── Eyebrow brackets — halo néon ── */
.h2-bracket {
    text-shadow:
        0 0 10px rgba(123,47,255,0.8),
        0 0 24px rgba(123,47,255,0.35);
}

/* ── Titre outline — plus lumineux, filtré ── */
.hero-name--stroke {
    -webkit-text-stroke: 1.5px rgba(199,125,255,0.62) !important;
    filter: drop-shadow(0 0 24px rgba(123,47,255,0.2));
}

/* ── Logo box navbar — halo ambiant ── */
.nav-logo-box {
    box-shadow:
        0 0 0 1px rgba(229,229,229,0.5),
        0 0 14px rgba(123,47,255,0.2),
        inset 0 0 8px rgba(123,47,255,0.06);
    transition: box-shadow 0.35s ease !important;
}
.nav-logo-box:hover {
    box-shadow:
        0 0 0 1px rgba(229,229,229,0.9),
        0 0 28px rgba(123,47,255,0.45),
        inset 0 0 14px rgba(123,47,255,0.12);
}

/* Lien actif navbar : léger glow texte */
.nav-lnk.active {
    text-shadow: 0 0 16px rgba(199,125,255,0.35);
}

/* ── Info box droite — glassmorphism ── */
.h2-info-box {
    background:              rgba(10,5,18,0.76)           !important;
    backdrop-filter:         blur(28px) saturate(1.5)     !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.5)     !important;
    border:                  1px solid rgba(123,47,255,0.28) !important;
    box-shadow:
        0 28px 64px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.07),
        0 0 0 1px rgba(255,255,255,0.02),
        0 0 45px rgba(123,47,255,0.08)                    !important;
}

.h2-info-row                { transition: background 0.2s; }
.h2-info-row:hover          { background: rgba(123,47,255,0.09); }
.h2-info-val                { color: var(--purple-light) !important; }

/* ── Bouton v2 — glass avec glow au hover ── */
.btn-v2 {
    background: rgba(123,47,255,0.08)        !important;
    border:     1px solid rgba(199,125,255,0.24) !important;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, gap 0.2s !important;
}
.btn-v2:hover {
    background:   rgba(123,47,255,0.16)      !important;
    border-color: rgba(199,125,255,0.55)     !important;
    box-shadow:   0 0 28px rgba(123,47,255,0.25), 0 0 60px rgba(123,47,255,0.1) !important;
    color: var(--white)                      !important;
}

/* ── Orbes ambiants par section ─────────────────────
   Chaque section a son propre foyer lumineux.         */
.section-v2 { overflow: hidden; }

#traces::before {
    content: '';
    position: absolute;
    top: -12%; right: -6%;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(123,47,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
#traces > .container-fluid  { position: relative; z-index: 1; }

#about::before {
    content: '';
    position: absolute;
    bottom: -10%; left: -6%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(157,78,221,0.065) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
#about > .container-fluid   { position: relative; z-index: 1; }

/* ── Numéro de section — halo néon ── */
.sv2-num {
    text-shadow: 0 0 18px rgba(123,47,255,0.55) !important;
    opacity:     0.78 !important;
}

/* ── Section header — ligne dégradée accent ── */
.section-v2-header { position: relative; }

.section-v2-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 64px; height: 1px;
    background: linear-gradient(to right, var(--purple-glow), transparent);
    z-index: 1;
}

/* ── Lignes de trace — inset glow au hover ── */
.trace-row {
    box-shadow: inset 3px 0 0 transparent;
    transition:
        opacity      0.4s ease,
        transform    0.4s ease,
        background   0.2s,
        padding-left 0.2s,
        box-shadow   0.25s !important;
}
.trace-row:hover {
    background: rgba(123,47,255,0.055) !important;
    box-shadow: inset 3px 0 0 var(--purple-glow) !important;
}
.trace-row:hover .tr-title {
    text-shadow: 0 0 18px rgba(255,255,255,0.12);
}

/* ── Stats row — glassmorphism ── */
.av2-stats-row {
    background:              rgba(10,5,18,0.62)            !important;
    backdrop-filter:         blur(18px)                    !important;
    -webkit-backdrop-filter: blur(18px)                    !important;
    border:                  1px solid rgba(123,47,255,0.13) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.02);
}
.av2-stat-n {
    text-shadow: 0 0 24px rgba(123,47,255,0.25);
}

/* ── Barres compétences — fill lumineux ── */
.comp-bar-track {
    background: rgba(123,47,255,0.1) !important;
}
.comp-bar-fill {
    box-shadow: 0 0 8px rgba(123,47,255,0.5), 0 0 20px rgba(123,47,255,0.22);
}

/* ── Section about — fond dégradé subtil ── */
.about-v2 {
    background: linear-gradient(180deg, transparent 0%, rgba(20,10,36,0.45) 50%, transparent 100%);
}

/* ── Barre de progression scroll ── */
#scroll-progress {
    height: 1.5px !important;
    box-shadow: 0 0 8px rgba(123,47,255,0.65), 0 0 18px rgba(123,47,255,0.3);
}

/* ── Ticker marquee — fond gradient ── */
.ticker-wrap {
    background: linear-gradient(90deg,
        rgba(18,9,32,0.96),
        rgba(35,18,64,0.96),
        rgba(18,9,32,0.96)) !important;
    border-top:    1px solid rgba(123,47,255,0.1);
    border-bottom: 1px solid rgba(123,47,255,0.18) !important;
}

/* ── Footer — ligne accent centrale + fond profond ── */
.site-footer {
    background: rgba(4,2,9,0.99) !important;
    box-shadow: 0 -1px 0 rgba(123,47,255,0.12);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123,47,255,0.5), transparent);
    z-index: 1;
}

/* ── Cartes de formulaire — glass ── */
.form-card {
    background:              rgba(10,5,18,0.82)            !important;
    backdrop-filter:         blur(18px)                    !important;
    -webkit-backdrop-filter: blur(18px)                    !important;
    border:                  1px solid rgba(123,47,255,0.2) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* ── Cartes admin — glass ── */
.admin-card, .admin-stat-card {
    background:              rgba(10,5,18,0.78)             !important;
    backdrop-filter:         blur(14px)                     !important;
    -webkit-backdrop-filter: blur(14px)                     !important;
    border:                  1px solid rgba(123,47,255,0.15) !important;
    box-shadow: 0 8px 26px rgba(0,0,0,0.32)                 !important;
}

/* ── Trace cards (page traces.php) — elevation ── */
.trace-card {
    box-shadow: 0 4px 22px rgba(0,0,0,0.42);
}
.trace-card:hover {
    box-shadow:
        0 22px 52px rgba(0,0,0,0.62),
        0 0  42px rgba(123,47,255,0.15) !important;
}

/* ── Bracket cursor — désactivé ── */
.c-tl, .c-tr, .c-bl, .c-br { display: none !important; }

/* ── Curseur simple : point unique ── */
.cursor-ring { display: none !important; }

.cursor-dot {
    display: block !important;
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: #f5f5f5;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transition: background .15s ease;
}

.cursor-dot.hovered {
    background: #c77dff !important;
}

/* ── Scrollbar — dégradé violet ── */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple-mid), var(--purple-glow)) !important;
    box-shadow: 0 0 6px rgba(123,47,255,0.3);
}

/* ── Barre séparatrice entre sections ── */
.band-separator {
    background: rgba(16,8,28,0.9) !important;
}

/* ── Bottom bar hero — léger fond lumineux ── */
.h2-bottom-bar {
    border-top: 1px solid rgba(123,47,255,0.08) !important;
    background: linear-gradient(90deg, transparent, rgba(123,47,255,0.03), transparent);
}

/* ── Numéro sectionnel vertical ── */
.h2-section-num {
    color: rgba(199,125,255,0.12) !important;
    letter-spacing: 0.35em;
}

/* ── Tags compétences ── */
.av2-tag:hover {
    border-color: var(--purple-light);
    color: var(--white);
    box-shadow: 0 0 10px rgba(123,47,255,0.2);
}

/* ── Nom de marque navbar — override Bootstrap vars + hover violet ── */
#mainNav .navbar-brand.nav-brand-link {
    --bs-navbar-brand-color:       var(--white);
    --bs-navbar-brand-hover-color: var(--purple-light);
    color: var(--white);
    text-decoration: none !important;
    transition: color .25s ease;
}
#mainNav .navbar-brand.nav-brand-link:hover,
#mainNav .navbar-brand.nav-brand-link:focus {
    color: var(--purple-light);
    text-decoration: none !important;
}

/* ── Navbar v3 — classes éditoriales ── */

/* Brand "AUTRAN" */
.nav-brand-text {
    font-family: var(--font-gothic);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none !important;
}

/* Pill statut */
.nav-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-muted);
    border: 1px solid rgba(229,229,229,0.1);
    padding: 0.22rem 0.75rem;
    border-radius: 99px;
}

/* Point animé du statut */
.nav-pulse {
    width: 5px; height: 5px;
    background: #5af0a0;
    border-radius: 50%;
    flex-shrink: 0;
    animation: navPulse 2.2s ease infinite;
}
@keyframes navPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* Liens numérotés */
.nav-link-v3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(229,229,229,0.45);
    text-decoration: none !important;
    padding: 0.4rem 0.85rem;
    transition: color .2s;
}
.nav-link-v3:hover,
.nav-link-v3.active {
    color: #f2f2fa;
}
.nav-link-v3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0.85rem; right: 0.85rem;
    height: 1px;
    background: var(--purple-glow);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity .2s, transform .2s;
}
.nav-link-v3:hover::after,
.nav-link-v3.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Numéro préfixe */
.nav-num {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    opacity: 0.4;
    font-family: var(--font-body);
}

/* Bouton auth (connexion / déconnexion) */
.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light) !important;
    text-decoration: none !important;
    border: 1px solid rgba(199,125,255,0.3);
    padding: 0.3rem 0.9rem;
    border-radius: 2px;
    transition: border-color .2s, box-shadow .2s;
}
.nav-auth-btn:hover {
    border-color: var(--purple-light);
    box-shadow: 0 0 10px rgba(123,47,255,0.18);
}

/* Burger mobile */
.nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px !important;
}
.nav-burger span {
    display: block;
    width: 22px; height: 1.5px;
    background: #f2f2fa;
    border-radius: 1px;
    transition: opacity .2s;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .hero-v2::after { opacity: 0.25; background-size: 36px 36px; }
    #traces::before, #about::before { width: 300px; height: 300px; }
}
