/* Blog & Bio Styles - Premium Dark Theme */

:root {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.4);
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --bg-dark: #050505;
    --bg-card: rgba(31, 40, 51, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #e8e8e8;
    --text-light: #66fcf1;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #45a29e;

    /* Video Player Vars */
    --ctl-bg: rgba(0, 0, 0, .6);
    --ctl-bg-hover: rgba(0, 0, 0, .8);
    --ctl-accent: #ffd66e;
    --ctl-radius: 30px;
    --ctl-h: 44px;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #bf953f, #aa771c);
    border-radius: 5px;
}

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

::selection {
    background: var(--primary);
    color: #000;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header - Premium Style */
.site-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 52px;
    color: #d4af37;
    /* Couleur or solide par défaut (fallback) */
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    line-height: 1.1;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2));
    text-decoration: none;
}

/* Appliquer le gradient UNIQUEMENT si le clipping est supporté */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .brand-title {
        background: var(--gold-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        background-size: 200% auto;
        animation: shimmer 3s ease-in-out infinite;
    }
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.site-header nav {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Responsive header - ecrans moyens */
@media (max-width: 1000px) {
    .brand-title {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .site-header nav {
        right: 10px;
    }
}

/* Responsive header */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 20px;
    }

    .site-header nav {
        position: static;
        transform: none;
    }

    .brand-title {
        font-size: 36px;
    }
}

/* Bio Profile Header */
.profile-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

.profile-image-container {
    position: relative;
    width: 100%;
}

.profile-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-glow);
}

.rank-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.5px;
    z-index: 2;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    margin: 0 0 12px 0;
    color: #fff;
    letter-spacing: -1px;
}

.profession {
    font-size: 16px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
    order: -1;
}

.bio-intro {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Stats Grid - Glassmorphism */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px var(--primary-glow);
    background: rgba(255, 255, 255, 0.08);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.fact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fact-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-main);
}

.fact-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
}

/* Video Integration */
.video-showcase {
    margin-top: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Featured Video Player */
.video-featured-container {
    max-width: 340px;
    margin: 30px auto;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-featured-container .vid-wrap {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    aspect-ratio: 9/16;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-header {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .profile-image {
        width: 220px;
        margin: 0 auto;
    }

    .profile-image-container {
        max-width: 220px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-info h1 {
        font-size: 36px;
    }
}

/* =========================================
   CUSTOM VIDEO PLAYER STYLES (Refined)
   ========================================= */

.vid-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 9/16;
    background: #000;
    overflow: hidden;
    border-radius: 0;
}

.vid-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0 !important;
    z-index: 1;
}

/* Fond flou qui apparaît en plein écran */
.vid-wrap .fs-bg {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    background-size: cover;
    background-position: center center;
    filter: blur(24px) brightness(.65);
    opacity: 0;
    display: none;
    pointer-events: none;
    z-index: 0;
}

/* Plein écran sur le WRAP */
.vid-wrap:fullscreen,
.vid-wrap:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    min-width: 100vw !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: default;
    overflow: hidden !important;
    transform: none !important;
    z-index: 999999 !important;
}

.vid-wrap:fullscreen .fs-bg,
.vid-wrap:-webkit-full-screen .fs-bg {
    opacity: 1 !important;
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: blur(24px) brightness(0.65) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.vid-wrap:fullscreen video,
.vid-wrap:-webkit-full-screen video {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-width: auto !important;
    min-height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border: 0;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn:hover {
    background: rgba(255, 255, 255, .15);
}

.btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Bouton plein écran - espacement supplémentaire */
.btn.fs-btn {
    margin-left: 4px;
}

/* Temps */
.time {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    min-width: 65px;
    text-align: center;
    cursor: default;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Barre de progression */
.bar {
    position: relative;
    height: 4px;
    flex: 1 1 auto;
    min-width: 76px;
    margin: 0 8px;
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 10;
    transition: height 0.2s;
}

.bar:hover {
    height: 6px;
}

.bar .buf,
.bar .prog {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    pointer-events: none;
}

.bar .buf {
    background: rgba(255, 255, 255, .3);
    width: 0%;
}

.bar .prog {
    background: var(--ctl-accent);
    width: 0%;
    box-shadow: 0 0 10px rgba(255, 214, 110, 0.5);
}

/* Volume - Cleaner Slider */
.vol-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vol {
    width: 60px;
    height: 4px;
    appearance: none;
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
    outline: none;
    flex-shrink: 0;
    cursor: pointer;
}

.vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.vol:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.vol::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}


/* =========================================
   LIGHTBOX STYLES
   ========================================= */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1000001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments for video player */
@media (max-width: 768px) {
    .vol-wrap {
        display: none !important;
    }

    .controls {
        padding: 0 10px !important;
        justify-content: space-between;
    }

    .time {
        font-size: 12px;
        margin: 0 8px;
    }

    .btn {
        width: 32px;
        height: 32px;
    }
}

/* =========================================
   MISSING CONTROLS STYLES
   ========================================= */

/* UI des contrôles */
.controls {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 100;
    height: var(--ctl-h);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px 4px;
    background: var(--ctl-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ctl-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    cursor: default;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}

.controls * {
    pointer-events: auto !important;
}

/* Contrôles adaptés pour mobile */
@media (max-width: 768px) {
    .controls {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 10px 8px;
        gap: 10px;
        z-index: 200 !important;
        background: rgba(0, 0, 0, 0.75);
    }
}

/* Règle universelle pour montrer les contrôles */
.controls.fs-show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Big Play Button */
.big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    pointer-events: none;
}

.big-play-btn svg {
    width: 40px;
    height: 40px;
    fill: #fff;
    margin-left: 4px;
    /* Center visual alignment */
}

.big-play-btn:hover {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: transparent;
}

.big-play-btn:hover svg {
    fill: #000;
}