:root {
    --bg: #050816;
    --bg-alt: #070b1f;
    --card-bg: #0c1024;
    --card-border: rgba(255, 255, 255, 0.06);
    --accent: #ff6b3d;
    --accent-soft: rgba(255, 107, 61, 0.15);
    --accent-alt: #5f9bff;
    --text: #f5f5f7;
    --text-soft: #a1a1b5;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-light: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #151b3c 0, #050816 45%, #020111 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 8, 22, 0.96), rgba(5, 8, 22, 0.86));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 6px;
    background: radial-gradient(circle at 0 0, rgba(255, 107, 61, 0.35), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(95, 155, 255, 0.35), transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .16em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 24px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
}

.nav-link {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-soft);
    transition: all 0.18s ease-out;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link--active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    color: var(--text);
    transition: all .18s ease-out;
}

.btn-outlined {
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outlined:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-light);
}

.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 38px rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1rem;
}

/* MAIN LAYOUT */
.main {
    flex: 1;
}

.main-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* HERO */
.hero {
    gap: 28px;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 34px;
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .header-nav {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .brand-subtitle {
        display: none;
    }
    .header-inner {
        justify-content: space-between;
    }
    .header-nav {
        display: none;
    }
}

.hero-left {
    padding-right: 10px;
}

.tag-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(12, 16, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.tag-hero-badge {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #ffe9c8, #ff6b3d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.tag-hero-text {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.hero-title {
    font-size: clamp(2.3rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 10px;
}

.hero-title span {
    background: linear-gradient(135deg, #ffaf7b, #ff6b3d 30%, #5f9bff 70%, #a178ff);
    background-clip: text; ;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 20px;
    color: var(--text-soft);
    font-size: 0.96rem;
    max-width: 600px;
}

.hero-subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.hero-note span {
    color: #ffd08a;
}

/* HERO RIGHT – CARTE VITRINE */
.hero-right {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-xl);
    padding: 16px 16px 14px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 55%),
                linear-gradient(145deg, rgba(12, 16, 36, 0.96), rgba(9, 11, 30, 0.96));
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-card-title {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-soft);
}

.hero-card-pill {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(11, 177, 125, 0.16);
    color: #8cf5c5;
    font-size: 0.75rem;
}

.hero-preview {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at top, #2c3459, #050816);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-preview-inner {
    position: relative;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.hero-main-photo {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    min-height: 150px;
}

.hero-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 40%);
}

.hero-main-meta {
    position: absolute;
    left: 10px;
    bottom: 8px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem;
}

.hero-main-meta-title {
    font-weight: 600;
}

.hero-main-meta-badge {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(12, 16, 36, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-thumb {
    flex: 1;
    border-radius: 11px;
    overflow: hidden;
    position: relative;
    background: #151934;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-thumb-tag {
    position: absolute;
    left: 8px;
    bottom: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(12, 16, 36, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.68rem;
}

.hero-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.hero-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #26e5a1;
}

/* SECTIONS LISTES */
.section {
    margin-bottom: 28px;
}

.section-header {
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 0.82rem;
    color: var(--text-soft);
}

.link-soft {
    font-size: 0.82rem;
    color: var(--accent-alt);
    opacity: 0.9;
}

.link-soft:hover {
    opacity: 1;
    text-decoration: underline;
}

.albums-grid,
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.card {
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.16);
}

.card-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #10132b;
    min-height: 120px;
    max-height: 120px;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag {
    position: absolute;
    left: 9px;
    bottom: 9px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(2, 4, 13, 0.88);
    font-size: 0.7rem;
    color: var(--text-soft);
}

.card-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 2px 0 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.badge-soft {
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating-star {
    font-size: 0.85rem;
    color: #ffd08a;
}

/* PETITE SECTION FEATURES */
.features {
    margin-top: 12px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 55%),
                rgba(7, 10, 27, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 12px;
}

@media (min-width: 700px) {
    .features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-text-title {
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text-body {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 20px 18px;
    font-size: 0.74rem;
    color: var(--text-soft);
    display: flex;
    justify-content: center;
}

/* --- AUTHENTIFICATION --- */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--card-bg); /* Utilise ton fond de carte existant */
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

/* Petit effet de lueur en haut de la carte */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.auth-header {
    text-align: center;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #fff, #a1a1b5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

/* Styles des Inputs */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(161, 161, 181, 0.5); /* Couleur text-soft avec opacité */
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Gestion de l'autofill navigateur (fond jaune moche) */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0px 1000px #0c1024 inset; /* Force le fond sombre */
    transition: background-color 5000s ease-in-out 0s;
}

/* Options (Checkbox) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    
}

option{
    color:black;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-soft);
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: var(--text);
}

.checkbox-input {
    accent-color: var(--accent); /* Colore la case en orange */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Bouton Pleine Largeur */
.btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
    margin-top: 8px;
}

/* Footer (Lien inscription) */
.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.link-accent {
    color: var(--accent);
    font-weight: 500;
    margin-left: 4px;
    transition: all 0.2s;
}

.link-accent:hover {
    color: #ffaf7b; /* Version plus claire de l'accent */
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pagination { display: flex; justify-content: center; gap: 10px; }

.delete-checkbox:checked + label img {
        opacity: 0.4;
        filter: grayscale(100%);
    }
    .delete-checkbox:checked + label .delete-overlay {
        opacity: 1;
    }
    .delete-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255, 0, 0, 0.3);
        display: flex; align-items: center; justify-content: center;
        font-size: 1.5rem;
        opacity: 0;
        transition: 0.2s;
        border: 2px solid #ff4757;
    }

    .custom-modal {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 9999; display: flex; align-items: center; justify-content: center;
    }
    .modal-backdrop {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    }
    .modal-card {
        position: relative; background: #1a1f36; border: 1px solid rgba(255,255,255,0.1);
        padding: 30px; border-radius: 16px; width: 90%; max-width: 400px;
        text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .modal-icon-container {
        width: 70px; height: 70px; background: rgba(239, 68, 68, 0.1);
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        margin: 0 auto 20px auto; border: 1px solid rgba(239, 68, 68, 0.2);
    }
    .modal-title { font-size: 1.4rem; color: white; margin-bottom: 10px; }
    .modal-text { color: #94a3b8; font-size: 0.95rem; line-height: 1.5; margin-bottom: 25px; }
    
    .modal-actions { display: flex; gap: 12px; justify-content: center; }
    
    .btn-cancel {
        background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white;
        padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 500;
        transition: 0.2s;
    }
    .btn-cancel:hover { background: rgba(255,255,255,0.05); }
    
    .btn-confirm-delete {
        background: #ef4444; border: none; color: white;
        padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600;
        transition: 0.2s; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }
    .btn-confirm-delete:hover { background: #dc2626; transform: translateY(-1px); }

    @keyframes modalPop {
        0% { transform: scale(0.8) translateY(20px); opacity: 0; }
        100% { transform: scale(1) translateY(0); opacity: 1; }
    }

    /* --- En-tête de section --- */
.section-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.header-content {
    flex: 1;
}

.tag-hero {
    align-items: center;
    gap: 8px; /* Ajusté pour l'alignement badge/texte */
    margin-bottom: 8px;
}

.hero-title {
    font-size: 2rem;
    margin: 0;
}

/* --- Barre d'actions et Filtres --- */
.header-actions form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-wrapper {
    position: relative;
}

.select-custom {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-color: var(--bg);
    cursor: pointer;
    min-width: 180px;
}

.select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-soft);
}

/* --- Carte Album & Note --- */
.card-thumb {
    position: relative; /* Indispensable pour positionner la note */
    overflow: hidden;   /* Pour garder les coins arrondis si l'image dépasse */
}

.card-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(15, 23, 42, 0.85); /* Fond sombre */
    backdrop-filter: blur(4px); /* Effet flou */
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.star-icon {
    color: #fbbf24; /* Couleur Or/Jaune */
}

/* --- État vide (Pas d'albums) --- */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-lg);
    background: rgba(12, 16, 36, 0.3);
    text-align: center;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.empty-text {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0 0 20px;
}

/* PHOTO */

/* --- Grille des Photos (Galerie Globale) --- */

.photo-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.photo-grid {
    display: grid;
    /* Création automatique des colonnes (min 200px) */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; /* Espace entre les photos */
    margin-bottom: 40px;
}

/* --- Carte Photo Individuelle --- */
.photo-card {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.photo-thumb {
    height: 200px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color); /* Assure-toi que cette variable existe, sinon met une couleur hex */
    cursor: pointer;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Effet de zoom au survol (Remplace le JS inline) */
.photo-thumb:hover .photo-img {
    transform: scale(1.05);
}

.photo-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.photo-info {
    padding: 8px 4px;
}

.photo-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute "..." si le titre est trop long */
}

/* --- État Vide --- */
.photo-empty {
    grid-column: 1 / -1; /* Prend toute la largeur */
    padding: 60px;
    text-align: center;
    color: var(--text-soft);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: rgba(12, 16, 36, 0.3);
}

.photo-empty p {
    margin: 0;
}

.photo-empty-title {
    font-size: 1.2rem;
    margin-bottom: 10px !important;
    font-weight: 600;
}

/* --- Lightbox (Visualiseur Photo) --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fond très sombre */
    z-index: 1000;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh; /* Laisse de la place pour le texte en bas */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-details {
    margin-top: 15px;
    text-align: center;
    color: white;
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.lightbox-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #cbd5e1;
    justify-content:center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
    background: transparent;
    border: none;
}

.lightbox-close:hover {
    color: #fbbf24;
}

/* Bouton dans la Lightbox */
.lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px; /* Forme arrondie moderne */
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-btn:hover {
    background-color: white;
    color: black;
    border-color: white;
    transform: translateY(-2px);
}

/**/

/* --- Modale de Confirmation (Danger) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fond sombre */
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-box {
    background: #1e293b; /* Bleu nuit sombre */
    border: 1px solid #ef4444; /* Bordure rouge */
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-icon-danger {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.modal-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-text {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: #334155;
    color: white;
}

.btn-danger-confirm {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-danger-confirm:hover {
    background: #dc2626;
}