/* ═══════════════════════════════════════════════════════════════
   lorys-oxore.css — Thème Lorys Oxore / LSPD × Violet #8A2BE2
   Police : Chakra Petch (same que fivem.css)
   Palette : Violet #8A2BE2 + Bleu LSPD #0a1a2f / #1a3a5c + Or #D4AF37
═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --color-primary: #8A2BE2;
    --color-primary-dark: #6B1FB8;
    --color-primary-glow: rgba(138, 43, 226, 0.5);

    /* LSPD Police Colors */
    --color-lspd-deep: #0a1a2f;
    --color-lspd-mid: #1a3a5c;
    --color-lspd-light: #243f6a;

    /* Accents */
    --color-gold: #D4AF37;
    --color-gold-light: #E8C84A;
    --color-gold-glow: rgba(212, 175, 55, 0.4);

    /* Neutres */
    --bg-dark: #060910;
    --bg-card: #0d1320;
    --text-primary: #e8eaf0;
    --text-secondary: #9aa3b8;
    --text-muted: #5a6380;
    --border: rgba(138, 43, 226, 0.25);
    --border-gold: rgba(212, 175, 55, 0.3);

    /* Typographie */
    --font-main: 'Chakra Petch', system-ui, sans-serif;
    --font-size-base: 16px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.hero-banner-video,
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section communes ────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

/* ── Section Tag / Title / Header ─────────────────────────────── */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    margin-bottom: 48px;
}

/* ══════════════════════════════════════════════════════════════
   HERO — LSPD Banner
══════════════════════════════════════════════════════════════ */
.hero-lspd {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-lspd-deep);
}

/* Image ou placeholder de la bannière horizontale */
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* garde le visage bien visible */
    display: block;
}

.hero-banner-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 60% 50%, rgba(26, 58, 92, 0.8) 0%, transparent 70%),
        linear-gradient(180deg, var(--color-lspd-deep) 0%, #030608 100%);
    z-index: 0;
}

/* Overlay sombre + degrade violet */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(6, 9, 16, 0.3) 0%,
            rgba(10, 26, 47, 0.6) 40%,
            rgba(138, 43, 226, 0.2) 80%,
            rgba(6, 9, 16, 0.95) 100%),
        linear-gradient(90deg,
            rgba(138, 43, 226, 0.15) 0%,
            transparent 50%);
    z-index: 1;
}

/* Contenu centré */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 860px;
}

.hero-lspd-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 24px;
    animation: fadeDown 0.8s ease forwards;
    opacity: 0;
}

.hero-lspd-name {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 0 60px rgba(138, 43, 226, 0.6), 0 2px 40px rgba(0, 0, 0, 0.8);
    animation: fadeUp 0.9s 0.15s ease forwards;
    opacity: 0;
}

.hero-lspd-grade {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    animation: fadeUp 0.9s 0.3s ease forwards;
    opacity: 0;
}

.hero-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    border: 1px solid var(--border);
    background: rgba(138, 43, 226, 0.1);
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeUp 0.9s 0.45s ease forwards;
    opacity: 0;
    backdrop-filter: blur(8px);
}

.hero-back-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s 1s ease forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* ══════════════════════════════════════════════════════════════
   BADGE SECTION — Carte d'identité / Fiche
══════════════════════════════════════════════════════════════ */
.badge-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--color-lspd-deep) 50%, var(--bg-dark) 100%);
}

.badge-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 860px) {
    .badge-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Colonne gauche : Badge Card ────────────────────────────── */
.badge-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #D4AF37;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
}

.badge-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.badge-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-gold);
    background: linear-gradient(145deg, var(--color-lspd-mid) 0%, var(--color-lspd-deep) 100%);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.badge-card-inner:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow:
        0 20px 60px rgba(138, 43, 226, 0.25),
        0 0 40px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Photo — remplis tout le conteneur badge */
.badge-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.badge-photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.badge-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 6, 40, 0.9) 0%, rgba(138, 43, 226, 0.35) 45%, transparent 75%);
    pointer-events: none;
}

.badge-photo-placeholder {
    background:
        linear-gradient(135deg, var(--color-lspd-mid) 25%, transparent 25%) -20px 0,
        linear-gradient(225deg, var(--color-lspd-mid) 25%, transparent 25%) -20px 0,
        linear-gradient(315deg, var(--color-lspd-deep) 25%, transparent 25%),
        linear-gradient(45deg, var(--color-lspd-deep) 25%, transparent 25%);
    background-size: 40px 40px;
    background-color: #0e1f38;
    min-height: 380px;
}

.badge-badge-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--color-gold);
    filter: drop-shadow(0 0 8px var(--color-gold-glow));
}

.badge-number {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(6, 9, 16, 0.95) 0%, transparent 100%);
    padding: 24px 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-gold);
}

.badge-number span {
    font-size: 0.65rem;
    opacity: 0.6;
}

.badge-number-label {
    font-size: 0.85rem;
    color: #b8a8d8;
    display: block;
}

.badge-number-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4AF37;
}

/* ── Colonne droite : Fiche identité ────────────────────────── */
.identity-table {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--bg-card);
}

.identity-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.identity-row:last-child {
    border-bottom: none;
}

.identity-row:hover {
    background: rgba(138, 43, 226, 0.05);
}

.identity-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.badge-seal-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.identity-value {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Statut actif */
.status-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: statusPulse 2s ease infinite;
}

/* Sceau LSPD */
.badge-seal {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.7;
    padding: 16px 0;
}

.badge-star {
    color: #D4AF37;
    font-size: 1.8rem;
}

.badge-seal span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   BIO SECTION
══════════════════════════════════════════════════════════════ */
.bio-section {
    background: var(--bg-dark);
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}

@media (max-width: 900px) {
    .bio-content {
        grid-template-columns: 1fr;
    }
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Cartes traits */
.bio-traits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trait-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.trait-card:hover {
    border-color: var(--color-primary);
    background: rgba(138, 43, 226, 0.06);
    transform: translateX(6px);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
}

.trait-icon {
    color: var(--color-primary);
    margin-bottom: 12px;
}

.trait-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.trait-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════════════ */
.timeline-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 26, 47, 0.5) 100%);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-gold) 100%);
    opacity: 0.4;
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding: 0 0 40px 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 2px;
    width: 14px;
    height: 14px;
    background: var(--color-lspd-mid);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.timeline-dot-active {
    border-color: var(--color-gold);
    background: var(--color-gold);
    box-shadow: 0 0 16px var(--color-gold-glow);
    animation: statusPulse 2s ease infinite;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--color-primary);
    transform: translateX(6px);
    box-shadow: 0 0 24px rgba(138, 43, 226, 0.15);
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section {
    background: var(--bg-dark);
}

.cta-card {
    position: relative;
    text-align: center;
    background: linear-gradient(145deg, var(--color-lspd-mid) 0%, var(--color-lspd-deep) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 64px 40px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.cta-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 40px rgba(138, 43, 226, 0.6);
}

/* ══════════════════════════════════════════════════════════════
   REVEAL — Fade in au scroll (JS-driven)
══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ══════════════════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════════════════ */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.4;
        transform: scaleY(1.3);
    }
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px currentColor;
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 4px currentColor;
    }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .hero-content {
        padding: 100px 20px 60px;
    }

    .identity-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .identity-label {
        font-size: 0.65rem;
    }

    .section {
        padding: 60px 0;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline::before {
        left: 4px;
    }

    .timeline-dot {
        left: -24px;
    }

    .timeline-item {
        padding-left: 24px;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .character-hero {
        position: relative;
        width: 100%;
        aspect-ratio: 1792 / 1024;
        /* respecte le ratio natif de la photo */
        max-height: 85vh;
        min-height: 400px;
        overflow: hidden;
    }

    .hero-banner-bg {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
    }
}