/* ====================================================================
   TRAFIC — Feuille de style globale (thème sombre)
   Source unique pour toutes les surfaces (public, auth, studio, admin).
   ==================================================================== */

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

:root {
    /* ─── Linear-style design tokens (charte logo Nest Of Trends) ─── */
    --bg:            #08090a;
    --bg-elev:       #0c0d10;
    --bg-elev-2:     #111317;
    --border:        rgba(255,255,255,0.08);
    --border-soft:   rgba(255,255,255,0.05);
    --border-hover:  rgba(255,255,255,0.18);
    --text:          #f7f8f8;
    --text-dim:      #b4bcd0;
    --text-muted:    #8a8f98;
    --text-faint:    #5d6370;

    /* Charte logo */
    --gold:          #c89b3e;
    --gold-light:    #e0b85a;
    --gold-dark:     #9d7a2e;
    --green:         #3ec070;
    --green-soft:    #5fd58b;
    --teal:          #2bb8d0;
    --teal-soft:     #58cee0;

    --accent:        #3ec070;       /* vert (charte) — anciennement #4a9 */
    --accent-dark:   #2da55a;
    --gradient-brand: linear-gradient(135deg, #3ec070 0%, #2bb8d0 100%);
    --gradient-gold:  linear-gradient(135deg, #c89b3e 0%, #9d7a2e 100%);
    --gradient-full:  linear-gradient(135deg, #c89b3e 0%, #3ec070 50%, #2bb8d0 100%);

    --danger:        #f89;
    --danger-bg:     #3a1a1a;
    --warn:          #fc8;
    --warn-bg:       #3a2a0a;
    --success:       #5fd58b;
    --success-bg:    #0a3a2a;
}

/* Glow ambient (radial gradients en arrière-plan) */
body::before {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(62,192,112,0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(43,184,208,0.08), transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 60%, rgba(200,155,62,0.06), transparent 70%);
}
body > * { position: relative; z-index: 1; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}
a { color: var(--green-soft); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }

/* ───── Topbar TRAFIC (public) — Linear glassmorphism ───── */
.trafic-topbar {
    background: rgba(8,9,10,0.72);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.65rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    position: sticky;
    top: 0;
    z-index: 30;
}
.trafic-topbar .logo { display: flex; align-items: center; height: 70px; transition: opacity 0.2s; flex-shrink: 0; }
.trafic-topbar .logo:hover { opacity: 0.85; }
.trafic-topbar .logo img { height: 100%; width: auto; display: block; }
.trafic-topbar nav { display: flex; gap: 1.5rem; font-size: 0.9rem; flex-shrink: 0; }
.trafic-topbar nav a { color: var(--text-dim); font-weight: 500; padding: 0.5rem 0; }
.trafic-topbar nav a:hover { color: #fff; }

@media (max-width: 1024px) { .trafic-topbar .logo { height: 60px; } }
@media (max-width: 768px) {
    .trafic-topbar { padding: 0.5rem 0.85rem; gap: 0.5rem; flex-wrap: wrap; }
    .trafic-topbar .logo { height: 48px; }
    .trafic-topbar nav { gap: 0.85rem; font-size: 0.82rem; flex-wrap: wrap; }
}
@media (max-width: 380px) { .trafic-topbar .logo { height: 42px; } }

/* Topbar slim (page partenaire) — Linear glassmorphism */
.trafic-bar {
    background: rgba(8,9,10,0.72);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.4rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    gap: 1rem;
    flex-wrap: wrap;
}
.trafic-bar .home-link { display: flex; align-items: center; height: 50px; transition: opacity 0.2s; }
.trafic-bar .home-link:hover { opacity: 0.85; }
.trafic-bar .home-link img { height: 100%; width: auto; display: block; }
@media (max-width: 768px) {
    .trafic-bar { padding: 0.4rem 0.85rem; }
    .trafic-bar .home-link { height: 40px; }
}

/* ───── Containers ───── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 560px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* ───── Forms ───── */
.form-wrap {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
}
.form-wrap h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; color: #fff; }
.form-wrap h2 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #fff; }

.field { margin-bottom: 1.1rem; }
.field label, label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dim);
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field textarea, .field select,
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"],
textarea, select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
/* Checkbox/radio : taille naturelle, accent couleur marque */
.field input[type="checkbox"], .field input[type="radio"],
input[type="checkbox"], input[type="radio"] {
    width: auto;
    accent-color: var(--green, #3ec070);
    cursor: pointer;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(62,192,112,0.12);
    background: var(--bg-elev-2);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }

.hint { color: var(--text-faint); font-size: 0.8rem; margin-top: 0.35rem; }

/* ───── Boutons (Linear-style) ───── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 7px;
    border: 1px solid transparent;
    background: var(--bg-elev-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.btn-primary {
    background: var(--gradient-brand);
    color: #062b18;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 20px -6px rgba(62,192,112,0.5);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 10px 26px -8px rgba(43,184,208,0.6);
    color: #062b18;
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-hover); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(248,136,153,0.3); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-warn { background: transparent; color: var(--warn); border-color: rgba(252,200,136,0.3); }
.btn-warn:hover { background: var(--warn-bg); color: var(--warn); }

form.inline { display: inline; margin: 0; }

/* ───── Notices ───── */
.notice, .error, .success {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid;
    font-size: 0.9rem;
}
.notice, .success { background: rgba(74,153,136,0.1); color: var(--success); border-color: rgba(74,153,136,0.3); }
.error { background: rgba(248,136,153,0.08); color: var(--danger); border-color: rgba(248,136,153,0.3); }
.warn { background: rgba(252,200,136,0.08); color: var(--warn); border-color: rgba(252,200,136,0.3); padding: 0.75rem 1rem; border-radius: 6px; border: 1px solid; margin-bottom: 1rem; }

/* ───── Cards / Panels ───── */
.panel {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.panel:hover { border-color: var(--border-hover); }
.panel h2, .panel h3 { color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.015em; }

section.section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}
section.section:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }

/* ───── Tables ───── */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table th, table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
table th { background: var(--bg-elev-2); color: var(--text-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
table tr:hover td { background: rgba(255,255,255,0.02); }
table code { background: var(--bg-elev-2); padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.82rem; color: var(--accent); }

/* ───── Status pills ───── */
.status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.status-draft          { background: #2a2a36; color: #a0a0ab; }
.status-pending_review { background: #3a2a0a; color: var(--warn); }
.status-active         { background: rgba(74,153,136,0.15); color: var(--accent); }
.status-published      { background: rgba(74,153,136,0.15); color: var(--accent); }
.status-suspended      { background: rgba(248,136,153,0.15); color: var(--danger); }
.status-hidden         { background: rgba(248,136,153,0.15); color: var(--danger); }
.status-archived       { background: #2a2a36; color: var(--text-faint); }
.status-on             { background: rgba(74,153,136,0.15); color: var(--accent); }
.status-off            { background: #2a2a36; color: var(--text-faint); }
.status-system         { background: #1a2a4a; color: #9cf; }
.status-super_admin    { background: #2a1a4a; color: #c9f; }
.status-admin          { background: rgba(74,153,136,0.15); color: var(--accent); }
.status-partner        { background: #1a2a3a; color: #8cb; }

/* ───── Studio/Admin header ───── */
.app-header {
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.app-header h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.app-header .user {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.app-header a.back { color: var(--text-dim); font-size: 0.9rem; }

/* ───── Tiles (dashboards) ───── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; margin: 1.25rem 0; }
.tile {
    display: block;
    padding: 1.1rem 1.25rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, transform 0.15s;
}
.tile:hover { border-color: var(--border-hover); transform: translateY(-2px); color: var(--text); }
.tile .count { font-size: 2.2rem; font-weight: 800; color: #fff; }
.tile .label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }
.tile.warn .count   { color: var(--warn); }
.tile.danger .count { color: var(--danger); }
.tile.money .count  { color: var(--accent); }
.tile.ok .count     { color: var(--accent); }

/* ───── Nav-grid (boutons de navigation) ───── */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn .ic { font-size: 1.1rem; }

/* ───── Auth layout (login / signup / forgot / reset) ───── */
.auth-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 2rem;
}
.auth-box {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.auth-box h1 { font-size: 1.6rem; margin-bottom: 1.5rem; color: #fff; font-weight: 800; line-height: 1.2; }
.auth-box .auth-links { margin-top: 1.25rem; font-size: 0.88rem; color: var(--text-muted); }
.auth-box .auth-links a { color: var(--accent); }
.auth-box .field { margin-bottom: 1.1rem; }
.auth-box .field:last-of-type { margin-bottom: 1.5rem; }

@media (max-width: 600px) {
    .auth-wrap { padding: 1.75rem 1rem 1.5rem; min-height: auto; }
    .auth-box { padding: 1.75rem 1.4rem; border-radius: 10px; }
    .auth-box h1 { font-size: 1.4rem; margin-bottom: 1.25rem; }
}
@media (max-width: 380px) {
    .auth-wrap { padding: 1.25rem 0.75rem 1rem; }
    .auth-box { padding: 1.5rem 1.15rem; }
}

/* ───── Code inline ───── */
code {
    background: var(--bg-elev-2);
    color: var(--accent);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-family: ui-monospace, Menlo, 'Consolas', monospace;
    font-size: 0.85em;
}

/* ───── Empty states ───── */
.empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    text-align: center;
    background: var(--bg-elev);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

/* ───── Footer générique ───── */
.trafic-footer {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.82rem;
    text-align: center;
}
.trafic-footer a { color: var(--text-muted); margin: 0 0.5rem; }
.trafic-footer a:hover { color: #fff; }

/* ───── Responsive ───── */
@media (max-width: 640px) {
    .app-header { flex-direction: column; align-items: flex-start; }
    .tiles { grid-template-columns: 1fr 1fr; }
}

/* ───── Lite player NoT-branded (B4 — click-to-play) ───── */
.nt-video-player .nt-lite-player {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    outline: none;
}
.nt-video-player .nt-lite-player:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.6); }
.nt-video-player .nt-lite-player:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 3px; }

.nt-video-player .nt-lite-poster {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #000;
    transition: filter 0.4s, transform 0.6s;
}
.nt-video-player .nt-lite-player:hover .nt-lite-poster { filter: brightness(0.85); transform: scale(1.02); }
.nt-video-player .nt-lite-poster--nopost {
    background: linear-gradient(135deg, #14161a 0%, #0e0f12 50%, #1a1d28 100%);
}
.nt-video-player .nt-lite-poster--nopost::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(74,153,136,0.15), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(63,192,112,0.1), transparent 60%);
}

.nt-video-player .nt-lite-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
}

.nt-video-player .nt-lite-brand {
    position: absolute; top: 0.85rem; left: 0.95rem;
    display: inline-flex; align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem 0.4rem 0.5rem;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.nt-video-player .nt-lite-brand img { width: 18px; height: 18px; opacity: 0.9; }

.nt-video-player .nt-lite-play {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    width: 92px; height: 92px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}
.nt-video-player .nt-lite-player:hover .nt-lite-play { transform: scale(1.1); }
.nt-video-player .nt-lite-play:focus { outline: none; }
.nt-video-player .nt-lite-play svg { width: 100%; height: 100%; }

.nt-video-player .nt-lite-caption {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    pointer-events: none;
}
@media (max-width: 640px) {
    .nt-video-player .nt-lite-play { width: 64px; height: 64px; }
    .nt-video-player .nt-lite-brand { font-size: 0.7rem; padding: 0.3rem 0.65rem 0.3rem 0.4rem; }
    .nt-video-player .nt-lite-brand img { width: 14px; height: 14px; }
    .nt-video-player .nt-lite-caption { font-size: 0.85rem; }
}

/* ───── Lecteur vidéo Nest Of Trends — overlay branded (A8 robust) ───── */
figure.nt-video-player { position: relative !important; margin: 1.5rem 0; display: block; }
figure.nt-video-player .nt-video-overlay {
    position: absolute !important;
    top: 0.65rem; left: 0.65rem; right: 0.65rem;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.25s ease;
    margin: 0;
}
figure.nt-video-player:hover .nt-video-overlay { opacity: 1; }
figure.nt-video-player .nt-overlay-left {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
}
figure.nt-video-player .nt-video-tag {
    display: inline-block;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
    color: #5fd58b;
    padding: 0.3rem 0.7rem;
    margin-right: 0.4rem;
    border-radius: 14px;
    font-size: 0.72rem; font-weight: 600;
    border: 1px solid rgba(95,213,139,0.3);
    white-space: nowrap;
}
figure.nt-video-player .nt-video-title {
    display: inline-block;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 14px;
    font-size: 0.72rem; font-weight: 500;
    max-width: 40vw;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
figure.nt-video-player .nt-video-watermark {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 14px;
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
figure.nt-video-player .nt-video-watermark .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #5fd58b;
    box-shadow: 0 0 6px rgba(95,213,139,0.7);
    margin-right: 0.35rem;
    display: inline-block;
}
figure.nt-video-player .video-wrapper { box-shadow: 0 8px 28px rgba(0,0,0,0.5); }
figure.nt-video-player .video-wrapper iframe { transition: filter 0.3s; }
figure.nt-video-player:hover .video-wrapper iframe { filter: brightness(1.04); }
@media (max-width: 600px) {
    figure.nt-video-player .nt-video-title { max-width: 30vw; }
    figure.nt-video-player .nt-video-watermark { font-size: 0.62rem; padding: 0.2rem 0.5rem; }
}

/* ───── Comments (Phase 2) ───── */
.comments-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-section h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 1.25rem; letter-spacing: -0.015em; }
.comment {
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 0.6rem;
    transition: border-color 0.2s;
}
.comment:hover { border-color: var(--border-hover); }
.comment .author { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.comment .av-bubble {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gradient-brand); color: #062b18;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.78rem;
}
.comment .author-name { color: var(--text); font-weight: 600; font-size: 0.88rem; }
.comment .author-name .partner-tag { color: var(--gold-light); font-size: 0.72rem; margin-left: 0.4rem; font-weight: 500; }
.comment .author-date { color: var(--text-faint); font-size: 0.78rem; margin-left: auto; }
.comment .body { color: var(--text-mid); font-size: 0.92rem; line-height: 1.55; white-space: pre-wrap; }
.comment-form { margin-top: 1rem; }
.comment-form textarea { min-height: 90px; }
.comment-cta-locked {
    background: linear-gradient(135deg, rgba(200,155,62,0.08), rgba(62,192,112,0.05));
    border: 1px solid rgba(200,155,62,0.25);
    border-radius: 12px; padding: 1.5rem; text-align: center;
}
.comment-cta-locked h3 { color: var(--gold-light); font-size: 1rem; margin-bottom: 0.4rem; }
.comment-cta-locked p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 1rem; }

/* ───── Premium Paywall (Phase 2) ───── */
.paywall {
    background:
        linear-gradient(135deg, rgba(200,155,62,0.1), rgba(43,184,208,0.05)),
        var(--bg-elev);
    border: 1px solid rgba(200,155,62,0.25);
    border-radius: 14px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 24px 60px -24px rgba(200,155,62,0.25);
}
.paywall .lock-ic { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.85; }
.paywall h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; background: var(--gradient-full); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.paywall p { color: var(--text-dim); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.paywall-plans { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.paywall-plan {
    background: var(--bg); border: 1px solid var(--border);
    padding: 1rem 1.5rem; border-radius: 12px; min-width: 180px;
    transition: border-color 0.2s, transform 0.2s;
}
.paywall-plan:hover { border-color: var(--green); transform: translateY(-2px); }
.paywall-plan .price { color: var(--green-soft); font-size: 1.6rem; font-weight: 700; }
.paywall-plan .period { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.5rem; }
.paywall-plan .perks { color: var(--text-mid); font-size: 0.78rem; margin-bottom: 0.85rem; line-height: 1.5; }

/* ───── Anti-copy / Anti-download (A10 + A11) ───── */
/* Désactive sélection de texte sur les articles publics (les owners gardent l'accès via studio). */
.nt-protected-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS : pas de menu long-press */
}
/* Les inputs, formulaires et zones interactives restent sélectionnables (sinon UX cassée). */
.nt-protected-content input,
.nt-protected-content textarea,
.nt-protected-content select,
.nt-protected-content [contenteditable="true"],
.nt-protected-content .nt-allow-select,
.nt-protected-content .comment .body {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Anti-download / anti-drag sur images d'article + watermark filigrane CSS */
.nt-protected-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.nt-protected-img-wrap img,
.nt-protected-content article.content figure img,
.nt-protected-content .cover-hero img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none; /* bloque drag-to-desktop */
}
/* On garde le clic actif sur les zones cliquables (lightbox, lien) via .nt-img-clickable */
.nt-protected-content .nt-img-clickable img { pointer-events: auto; cursor: zoom-in; }

/* Filigrane DÉSACTIVÉ sur demande utilisateur — gardé en commentaire pour réactivation future.
.nt-protected-img-wrap::after { display: none; }
*/
/* Anti-download/drag/right-click reste ACTIF (suffisant pour décourager) */

/* ───── Galerie mode Carrousel horizontal (B3) ───── */
/* Le ratio --carousel-aspect est défini par JS au load (= ratio naturel de la 1ʳᵉ image) */
.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 1rem auto;
    background: transparent;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: var(--carousel-aspect, 16 / 10);
    max-height: 82vh;
}
.gallery-carousel .gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gallery-carousel .gallery-track::-webkit-scrollbar { display: none; }
.gallery-carousel .gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}
.gallery-carousel .gallery-slide .nt-protected-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.gallery-carousel .gallery-slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}
.gallery-carousel .gallery-slide figcaption {
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    text-align: center;
}
.gallery-carousel .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(6px);
}
.gallery-carousel .gallery-nav:hover { background: rgba(95,213,139,0.85); color: #000; transform: translateY(-50%) scale(1.05); }
.gallery-carousel .gallery-prev { left: 0.6rem; }
.gallery-carousel .gallery-next { right: 0.6rem; }
.gallery-carousel .gallery-counter {
    position: absolute;
    bottom: 0.6rem; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    z-index: 3;
    backdrop-filter: blur(6px);
}
.gallery-carousel .gallery-counter .gallery-current { color: var(--green-soft, #5fd58b); }

/* ───── Galerie mode BD séquentiel (B3) — stage ADAPTATIF ratio image ───── */
/* Le ratio --stage-aspect est défini par JS au load (= ratio naturel de la 1ʳᵉ image) */
.gallery-comic { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.gallery-comic .comic-stage {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: var(--stage-aspect, 16 / 10);
    max-height: 82vh;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    /* Permet au contenu d'imposer sa hauteur réelle (image portrait/paysage/carré) */
    display: flex; align-items: center; justify-content: center;
}
.gallery-comic .comic-page {
    position: absolute; inset: 0;
    margin: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.gallery-comic .comic-page.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.gallery-comic .comic-page.exit-left {
    opacity: 0;
    transform: translateX(-40px);
}
.gallery-comic .comic-page .nt-protected-img-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.gallery-comic .comic-page img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    background: transparent;
}
/* Champ de lecture sur la scène (optionnel) — overlay façon bande dessinée */
.gallery-comic .comic-page .scene-text {
    position: absolute;
    top: 1rem; left: 1rem; right: 1rem;
    background: rgba(255, 245, 200, 0.96);
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'Comic Sans MS', 'Comic Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    max-width: calc(100% - 2rem);
    z-index: 4;
    pointer-events: none;
}
.gallery-comic .comic-page .scene-text.bottom {
    top: auto;
    bottom: 1rem;
}
.gallery-comic .comic-page figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    color: #fff; padding: 1.5rem 1.25rem 1rem;
    font-size: 0.9rem; text-align: center;
    z-index: 3;
}
.gallery-comic .comic-controls {
    display: flex; align-items: center; gap: 1rem;
    justify-content: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.4rem 1rem;
}
.gallery-comic .comic-controls button {
    background: transparent;
    border: 0;
    color: var(--text-mid);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
}
.gallery-comic .comic-controls button:hover { background: rgba(95,213,139,0.12); color: var(--green-soft); }
.gallery-comic .comic-controls button:disabled { opacity: 0.4; cursor: not-allowed; }
.gallery-comic .comic-controls button:disabled:hover { background: transparent; color: var(--text-mid); }
.gallery-comic .comic-counter { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; min-width: 60px; text-align: center; }
.gallery-comic .comic-counter .comic-current { color: var(--green-soft); }

/* ───── Lightbox plein écran (B3) ───── */
.nt-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.nt-lightbox.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}
.nt-lightbox-img {
    max-width: 92vw; max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    background: #000;
}
.nt-lightbox-close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 44px; height: 44px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s ease;
    font-family: inherit;
}
.nt-lightbox-close:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }
.nt-lightbox-watermark {
    position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* ───── Like button (B1) ───── */
.nt-engagement-bar { margin: 1.5rem 0 0.75rem; }
.nt-like-form { margin: 0; }
.nt-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 100px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.nt-like-btn:hover { border-color: rgba(255,107,107,0.5); color: #ff6b9d; transform: translateY(-1px); }
.nt-like-btn.liked { background: rgba(255,107,157,0.12); border-color: rgba(255,107,157,0.5); color: #ff6b9d; }
.nt-like-btn.liked svg { animation: nt-heart-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nt-like-count { font-weight: 700; }
.nt-like-label { font-size: 0.85rem; }
@keyframes nt-heart-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
@media (max-width: 600px) {
    .nt-like-btn .nt-like-label { display: none; }
}

/* ───── Share buttons (B2) ───── */
.nt-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}
.nt-share-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}
.nt-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.nt-share-btn.nt-share-copy {
    width: auto; padding: 0 0.85rem 0 0.7rem;
    border-radius: 100px;
    gap: 0.45rem;
}
.nt-share-btn:hover {
    transform: translateY(-1px);
    border-color: var(--border-hover);
    color: #fff;
}
.nt-share-btn svg { flex-shrink: 0; }
.nt-share-x:hover    { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); color: #fff; }
.nt-share-fb:hover   { background: rgba(24,119,242,0.12); border-color: rgba(24,119,242,0.35); color: #4a90f0; }
.nt-share-wa:hover   { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.35); color: #25d366; }
.nt-share-tg:hover   { background: rgba(38,158,229,0.12); border-color: rgba(38,158,229,0.35); color: #269ee5; }
.nt-share-copy:hover { background: rgba(95,213,139,0.12); border-color: rgba(95,213,139,0.35); color: var(--green-soft); }
.nt-share-copy.copied { background: rgba(95,213,139,0.18); border-color: var(--green-soft); color: var(--green-soft); }
@media (max-width: 600px) {
    .nt-share-bar { padding: 0.75rem 0.85rem; gap: 0.4rem; }
    .nt-share-btn span { display: none; }
    .nt-share-btn { padding: 0.5rem 0.6rem; }
    .nt-share-copy span.nt-copy-label { display: inline; font-size: 0.75rem; }
}

/* ───── Back-to-top button (A12 redesigned) ───── */
.nt-back-top {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(63,192,112,0.92) 0%, rgba(43,184,208,0.92) 100%);
    border: 0;
    color: #062b18;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(63,192,112,0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.3s,
                box-shadow 0.25s,
                filter 0.25s;
    z-index: 999;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    font-family: inherit;
}
.nt-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s,
                filter 0.25s;
}
.nt-back-top:hover {
    box-shadow: 0 12px 32px rgba(63,192,112,0.55), 0 0 0 1px rgba(255,255,255,0.12) inset;
    filter: brightness(1.08);
    transform: translateY(-2px) scale(1.04);
}
.nt-back-top:active { transform: translateY(0) scale(0.94); }
.nt-back-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
    .nt-back-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}

/* ───── Mobile Nav (Header Variante A — hamburger + drawer) ───── */
.nt-mobile-hamburger {
    display: none;
    position: fixed; top: 0.6rem; right: 0.85rem; z-index: 50;
    width: 42px; height: 42px;
    background: rgba(14,15,18,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    align-items: center; justify-content: center;
    padding: 0;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}
.nt-mobile-hamburger:hover { background: rgba(63,192,112,0.15); border-color: rgba(95,213,139,0.4); }
.nt-mobile-hamburger svg { width: 20px; height: 20px; }

.nt-mobile-drawer {
    position: fixed; top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    background: var(--bg-elev);
    border-left: 1px solid var(--border);
    z-index: 51;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    overflow-y: auto;
    box-shadow: -16px 0 40px rgba(0,0,0,0.5);
}
.nt-mobile-drawer.open { transform: translateX(0); }
.nt-mobile-drawer-inner { padding: 1.25rem 1rem 2rem; }
.nt-mobile-brand {
    display: flex; align-items: center; gap: 0.55rem;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
}
.nt-mobile-brand img { width: 26px; height: 26px; }
.nt-mobile-brand span { color: #fff; font-weight: 700; font-size: 1rem; }
.nt-mobile-search {
    margin-bottom: 1.25rem;
}
.nt-mobile-search input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.nt-mobile-search input:focus { border-color: var(--green-soft); }
.nt-mobile-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.nt-mobile-nav a {
    display: block;
    padding: 0.85rem 0.7rem;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nt-mobile-nav a:hover, .nt-mobile-nav a:active { background: var(--bg-elev-2); color: #fff; }
.nt-mobile-nav a.nt-mobile-cta {
    background: var(--gradient-brand);
    color: #062b18 !important;
    font-weight: 700;
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.85rem 1rem;
}
.nt-mobile-nav a.nt-mobile-cta:hover { transform: scale(1.01); }

.nt-mobile-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0s linear 0.25s;
}
.nt-mobile-overlay.open {
    opacity: 1; visibility: visible;
    transition: opacity 0.25s;
}

/* Active uniquement sur mobile + masque le topbar nav existant */
@media (max-width: 768px) {
    .nt-mobile-hamburger { display: inline-flex; }
    .topbar nav,
    .trafic-topbar nav,
    .trafic-bar .bar-actions {
        display: none !important;
    }
    /* Sur mobile, on garde juste le logo dans le topbar (réduit) */
    .topbar { padding: 0.5rem 0.85rem !important; }
    .topbar .logo { height: 44px !important; }
    .topbar form.search { display: none !important; }
    .trafic-topbar { padding: 0.5rem 0.85rem !important; }
    .trafic-bar { padding: 0.4rem 0.85rem !important; }
}

/* ───── Footer minimal Variante B (avec branding style im2) ───── */
.nt-footer-minimal {
    max-width: 1280px; margin: 3rem auto 0;
    padding: 2rem 1.25rem 1.5rem;
    border-top: 1px solid var(--border-soft);
    text-align: center;
}
.nt-footer-minimal .ft-brand-row {
    display: inline-flex; align-items: center; gap: 0.55rem;
    margin-bottom: 0.4rem;
}
.nt-footer-minimal .ft-brand-row img { width: 24px; height: 24px; opacity: 0.95; }
.nt-footer-minimal .ft-brand-row span {
    color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.nt-footer-minimal .ft-tagline {
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.1rem;
}
.nt-footer-minimal .ft-tagline .accent { color: var(--gold-light); }
.nt-footer-minimal .ft-links {
    display: flex; justify-content: center;
    gap: 0.85rem; flex-wrap: wrap;
    margin-bottom: 0.85rem;
}
.nt-footer-minimal .ft-links a {
    color: var(--text-mid); font-size: 0.85rem;
    text-decoration: none;
}
.nt-footer-minimal .ft-links a:hover { color: var(--green-soft); }
.nt-footer-minimal .ft-links .sep { color: var(--text-faint); }
.nt-footer-minimal .ft-copyright {
    color: var(--text-faint);
    font-size: 0.72rem;
}
@media (max-width: 480px) {
    .nt-footer-minimal { padding: 1.5rem 1rem 1.25rem; }
    .nt-footer-minimal .ft-links { gap: 0.6rem; }
    .nt-footer-minimal .ft-links a { font-size: 0.82rem; }
}
