/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #0d1117;
    --surface: #161b22;
    --primary-blue: #0072ff;
    --secondary-blue: #00c6ff;
    --gold: #e9c138;
    --gold-light: #ffeba7;
    --text: #c9d1d9;
    --border: #30363d;
    --grad-blue: linear-gradient(135deg, #0072ff, #00c6ff);
    --grad-gold: linear-gradient(135deg, #e9c138, #ffeba7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
/* 
html {
    scroll-behavior: smooth;
} */

::-webkit-scrollbar {
    width: 0.3em;
    height: 0.3em;
}

::-webkit-scrollbar-track {
    background: #101728;
    border-radius: 100px;
    margin-block: .5em;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(rgb(201, 168, 49), rgb(255, 217, 82), rgb(255, 248, 221));
    border-radius: 100px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. COMPOSANTS RÉUTILISABLES (Boutons, Inputs)
   ========================================= */
.btn-gold {
    background: var(--grad-gold);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-blue {
    background: var(--grad-blue);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-gold:hover, .btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 193, 56, 0.3);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    margin-bottom: 15px;
}

input:focus {
    outline: none;
    border-color: var(--gold);
}

/* =========================================
   3. NAVIGATION (Navbar)
   ========================================= */
.navbar, .dash-header {
    background: #0a0e14;
    border-bottom: 2px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 20px; }
.logo { height: 45px; }

.search-box {
    display: flex;
    background: var(--surface);
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid var(--border);
    width: 300px;
}

.search-box input { border: none; margin: 0; padding: 5px; background: transparent; width: 100%; }
.search-box button { background: transparent; border: none; color: var(--gold); cursor: pointer; }

/* --- REGLAGES HAMBURGER & RESPONSIVE NAV --- */
.nav-mobile-actions { display: none; align-items: center; gap: 15px; }
.mobile-only { display: none; }

.hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-toggle span {
    width: 30px;
    height: 3px;
    background: var(--gold);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.hamburger-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-toggle.active span:nth-child(2) { opacity: 0; }
.hamburger-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-content { display: flex; flex: 1; justify-content: space-between; align-items: center; margin-left: 20px; }

@media (max-width: 1024px) {
    .navbar { padding: 10px 3%; }
    .nav-content { margin-left: 10px; }
    .search-box { width: 200px; }
}

@media (max-width: 991px) {
    .nav-mobile-actions { display: flex; }
    .mobile-only { display: block; }
    .desktop-only { display: none; }

    .nav-content {
        display: none; /* Caché par défaut sur mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0e14;
        flex-direction: column;
        padding: 20px;
        margin-left: 0px;
        gap: 20px;
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-content.show { display: flex; animation: fadeInDown 0.3s ease; }

    .nav-left, .nav-right { flex-direction: column; width: 100%; gap: 15px; }
    .nav-center { width: 100%; order: -1; } /* Recherche en haut du menu mobile */
    .search-box { width: 100%; }
    
    .social-group { justify-content: center; gap: 30px; }
    .user-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }
    .btn-don, .btn-login, .btn-dash { width: 100%; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. ACCUEIL : SLIDER
   ========================================= */
/* .main-slider { height: 550px; position: relative; overflow: hidden; background: #000; }
.slide { 
    position: absolute; width: 100%; height: 100%; 
    opacity: 0; transition: opacity 1s ease-in-out; 
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

.slide-overlay {
    position: absolute;
    bottom: 15%;
    left: 5%;
    max-width: 600px;
}

.slide-title { font-size: 3.5rem; color: #fff; margin: 10px 0; text-transform: uppercase; font-weight: 900; } */
/* .subtitle-top { font-size: 1.75rem; color: var(--gold); font-weight: bold; } 
.subtitle-bottom { font-size: 1.15rem; color: var(--gold-light); font-weight: 300; }  */
 

/* =========================================
   6. ACCUEIL : GRILLE DES ŒUVRES
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 40px 5%;
}

.work-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.3s;
}

.work-card:hover { transform: translateY(-10px); border-color: var(--gold); }

.card-thumb { position: relative; height: 320px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.info-trigger {
    position: absolute; top: 10px; right: 10px;
    background: var(--gold); color: #000;
    border: none; border-radius: 50%; width: 35px; height: 35px;
    cursor: pointer; font-weight: bold; font-style: italic;
}

.card-body { padding: 15px; text-align: center; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-date { font-size: 0.75rem; color: #888; display: block; margin-bottom: 15px; }

.chapter-quick-links { display: flex; gap: 10px; justify-content: center; }
.chapter-quick-links a {
    background: var(--primary-blue);
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* =========================================
   7. AUTHENTIFICATION (Login / Register)
   ========================================= */
.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 20px; }
.auth-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.auth-tab { 
    flex: 1; padding: 15px; cursor: pointer; color: var(--text); font-weight: bold; 
    border-bottom: 3px solid transparent; transition: 0.3s;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* =========================================
   8. DASHBOARD & ADMIN
   ========================================= */
.container { width: 90%; max-width: 1200px; margin: 40px auto; }

.profile-section { 
    background: var(--surface); padding: 40px; border-radius: 20px; 
    text-align: center; border: 1px solid var(--border); 
}

.avatar-big { 
    width: 150px; height: 150px; border-radius: 50%; 
    border: 4px solid var(--gold); object-fit: cover; margin-bottom: 20px;
}

.badge-admin { 
    background: var(--grad-gold); color: #000; 
    padding: 5px 15px; border-radius: 20px; 
    font-weight: bold; font-size: 0.8rem; display: inline-block; margin: 10px 0;
}

/* Menu Déroulant Admin */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 20px 0; overflow: hidden; }
summary { padding: 20px; cursor: pointer; font-weight: bold; color: var(--gold); background: rgba(255,255,255,0.02); }
summary::-webkit-details-marker { display: none; }
summary:after { content: ' ▾'; float: right; }

/* Table Utilisateurs */
.user-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--surface); }
.user-table th, .user-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
.user-table th { color: var(--gold); text-transform: uppercase; font-size: 0.85rem; }

/* =========================================
   9. MODALS
   ========================================= */
.modal-entry, .modal-info {
    display: none; position: fixed; z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center; justify-content: center;
}

.modal-entry-content, .modal-info-content {
    background: var(--surface); border: 2px solid var(--gold);
    padding: 30px; border-radius: 20px; width: 90%; max-width: 600px;
    position: relative; animation: modalFade 0.4s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; color: var(--gold); cursor: pointer;
}

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .slide-title { font-size: 2rem; }
    .subtitle-top { font-size: 1.2rem; }
    .auth-card { padding: 20px; }
    .info-layout { flex-direction: column; align-items: center; padding: 20px; }
    .info-left { flex: none; width: 100%; max-width: 250px; }
}


.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    border: none !important; /* Enlève toute bordure de lien */
    outline: none;
}

.logo-link:hover {
    background: transparent !important; /* Évite un fond gris au survol */
    transform: scale(1.05); /* Petit effet de zoom sympa */
    transition: 0.2s;
}

.logo {
    display: block;
    height: 45px; /* Ajuste selon ton logo */
    width: auto;
}










/* ADMIN MANAGE V2 */
.admin-top-actions {
    background: #0a0e14;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-container-v2 { margin-top: 30px; }

/* GRAPH CARD */
.graph-card { padding: 25px; margin-bottom: 30px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header select { width: auto; margin: 0; background: var(--surface); color: var(--gold); border: 1px solid var(--gold); }
.chart-container { height: 300px; }

/* TABLE CONTROLS */
.search-filter-form {
    display: flex;
    gap: 15px;
    background: var(--surface);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    align-items: center;
}
.search-group { position: relative; flex: 1; }
.search-group i { position: absolute; left: 15px; top: 15px; color: var(--gold); }
.search-group input { padding-left: 45px; margin-bottom: 0; }

/* USER TABLE */
.user-admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 10px; overflow: hidden; }
.user-admin-table th { background: rgba(233, 193, 56, 0.1); color: var(--gold); padding: 15px; text-align: left; }
.user-admin-table td { padding: 12px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-avatar { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }

.btn-info-circle { background: none; border: none; color: var(--secondary-blue); font-size: 1.4rem; cursor: pointer; }
.chat-icon-link { color: var(--gold); font-size: 1.4rem; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.pagination a { padding: 8px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; color: white; }
.pagination a.active { background: var(--grad-gold); color: black; border-color: var(--gold); }

/* MODAL INFO ADMIN */
.modal-admin-info {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center;
}
.modal-admin-content {
    background: var(--surface); padding: 40px; border-radius: 20px; border: 2px solid var(--gold);
    width: 90%; max-width: 500px; position: relative; text-align: center;
}
.modal-grid { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 20px; }











/* Style Emailing */
.card-header-gold {
    background: var(--grad-gold);
    color: #000;
    padding: 15px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 25px -30px;
}

.mail-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.search-results-dropdown {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--gold);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.result-item:hover {
    background: var(--bg-dark);
    color: var(--gold);
}

.info-text {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.border-blue { border-top: 5px solid var(--primary-blue) !important; }
.border-gold { border-top: 5px solid var(--gold) !important; }
.title-blue { color: var(--primary-blue); margin-bottom: 20px; font-size: 1.4rem; }
.title-gold { color: var(--gold); margin-bottom: 20px; font-size: 1.4rem; }
.spacer-40 { margin-top: 40px; }

.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.user-tag { background: var(--primary-blue); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; }
.user-tag b { cursor: pointer; margin-left: 8px; color: var(--gold); }

.search-drop { background: var(--surface); border: 1px solid var(--border); position: absolute; z-index: 100; width: 300px; }
.search-drop div { padding: 10px; cursor: pointer; }
.search-drop div:hover { background: var(--bg-dark); color: var(--gold); }

.btn-group { display: flex; gap: 15px; margin-top: 20px; }






















.magic-tree {
    padding: 20px 0;
    overflow-x: auto; /* Permet le défilement horizontal sur mobile */
    white-space: nowrap; /* Empêche le retour à la ligne */
    scrollbar-width: none; /* Cache la scrollbar Firefox */
}
.magic-tree::-webkit-scrollbar { display: none; } /* Cache la scrollbar Chrome */

.tree-line-responsive {
    display: flex;
    gap: 10px;
    padding: 0 5%;
}

.cat-pill {
    background: var(--surface);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.cat-pill.active, .cat-pill:hover {
    background: var(--grad-gold);
    color: black;
}

/* Grille et Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 5%;
}

.work-card { background: var(--surface); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; position: relative; }
.card-thumb { height: 250px; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.info-btn {
    position: absolute; top: 10px; right: 10px;
    background: var(--gold); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-weight: bold;
}

.chapter-links { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.chapter-links a { background: var(--primary-blue); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }


.magic-navigation {
    padding: 20px 5%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* Ligne 1 : Chemin */
.breadcrumb-row {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #888;
}
.path-item { cursor: pointer; transition: 0.3s; }
.path-item:hover { color: var(--gold); }
.separator { margin: 0 5px; color: var(--gold); }

/* Ligne 2 : Choix */
.selection-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.selection-row::-webkit-scrollbar { display: none; }

.cat-pill {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}
.cat-pill:hover { background: var(--grad-gold); color: black; }

/* Grille Works */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 5%;
}


























.cast-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.cast-card-preview {
    position: relative;
    width: 130px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
}

.cast-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.cast-card-preview .name-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    font-size: 0.8rem;
    padding: 5px;
    text-align: center;
    font-weight: bold;
}

.cast-inputs {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cast-inputs input {
    padding: 4px;
    font-size: 0.7rem;
    margin: 0;
}












/* DESIGN DU MODAL D'INFO */
/* Contenu du modal */
.modal-info-content {
    background: var(--surface);
    border: 2px solid var(--gold);
    border-radius: 20px;
    width: 100%;
    max-width: 900px; /* Largeur max pour desktop */
    max-height: 90vh; /* Hauteur max : 90% de l'écran */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0,0,0,1);
}

.info-modal-header {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-cover {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--gold);
}

.modal-scroll-area {
    overflow-y: auto;
    padding: 20px 0;
    margin-top: 10px;
}

.badge-status {
    display: inline-block;
    background: var(--grad-blue);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 10px;
}

/* SYNOPSIS */
.synopsis-content {
    line-height: 1.6;
    color: #c9d1d9;
    margin-top: 10px;
}

/* TRAILER */
.trailer-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}
.trailer-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* CASTING GRID HOME */
.cast-grid-home {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.cast-card-home {
    position: relative;
    min-width: 110px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.cast-card-home:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

.cast-card-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-card-home .name-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    padding: 10px 5px 5px 5px;
}











.help-links { margin-top: 8px; font-size: 0.8rem; }
.help-links a { color: var(--gold); text-decoration: underline; margin: 0 5px; }

.search-container { position: relative; }
.search-drop { 
    position: absolute; width: 100%; background: var(--surface); 
    border: 1px solid var(--gold); z-index: 100; max-height: 200px; overflow-y: auto; 
}
.search-item { padding: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.search-item:hover { background: var(--bg-dark); color: var(--gold); }
.search-item img { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; }

.tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.adaptation-tag { 
    background: var(--grad-blue); color: white; padding: 5px 12px; 
    border-radius: 20px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; 
}
.adaptation-tag b { cursor: pointer; color: var(--gold); font-size: 1.1rem; }


/* Conteneur vidéo pour garder le ratio 16:9 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Boutons de réseaux sociaux */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-social.tiktok { background: #000000; border: 1px solid #ff0050; }
.btn-social.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.btn-social.x-twitter { background: #000000; border: 1px solid #ffffff; }
.btn-social.generic { background: var(--grad-blue); }

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    filter: brightness(1.2);
}




.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.page-block {
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--gold);
    padding: 15px 5px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.page-block:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.crop-preview-box {
    max-height: 400px;
    overflow-y: auto;
    background: #000;
    border: 1px solid var(--border);
    position: relative;
}

/* Important pour le rognage visuel */
#crop-img-target {
    transition: clip-path 0.2s;
}


/* Conteneur de recherche */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 5px 15px;
    align-items: center;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    width: 100%;
    outline: none;
    margin-bottom: 0; /* Override */
}

.search-box button { background: transparent; border: none; color: var(--gold); cursor: pointer; }

/* Liste des résultats (Dropdown) */
.search-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: 10px;
    z-index: 2000;
    display: none; /* Caché par défaut */
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    overflow: hidden;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
    text-decoration: none;
    color: white;
}

.search-result-item:hover { background: rgba(233, 193, 56, 0.1); }

.search-result-item img {
    width: 40px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-item span { font-weight: bold; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-center { order: 3; width: 100%; margin-top: 10px; }
    .search-wrapper { max-width: 100%; }
}



.comment-body a, .creator-info, .user-cell a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.comment-body a:hover strong, .creator-info:hover span {
    color: var(--gold);
}

.mini-avatar:hover {
    border-color: white;
    transform: scale(1.1);
}


.page-block {
    position: relative;
    transition: all 0.3s ease;
}

/* Petit cercle de chargement pendant le check */
.loader-mini {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}