/*
 * Fichier : assets/css/style.css
 * Description : Feuille de style principale du projet SaaS.
 */

/* -- Variables et Reset -- */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --color-text: #E0E0E0;
    --color-bg: linear-gradient(135deg, #0f0f1e 0%, #1a0f2e 50%, #0f0f1e 100%);
    --gradient-start: #8A2BE2;
    --gradient-mid: #FF00FF;
    --gradient-end: #FF8C00;
    --color-surface: rgba(30, 30, 46, 0.8);
    --color-surface-light: rgba(50, 50, 70, 0.9);
    --color-success: #4CAF50;
    --color-error: #F44336;
    --shadow-sm: 0 2px 8px rgba(138, 43, 226, 0.1);
    --shadow-md: 0 8px 24px rgba(138, 43, 226, 0.2);
    --shadow-lg: 0 16px 48px rgba(138, 43, 226, 0.25);
}

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

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

body.home-page {
	background-image: url('../img/home-bg.jpg'), var(--color-bg);
	background-position: center center, center;
	background-repeat: no-repeat, no-repeat;
	background-size: cover, cover;
	background-attachment: fixed, fixed;
}

@media (max-width: 768px) {
	body.home-page {
		background-attachment: scroll, scroll;
		background-position: center top, center;
	}
}

.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
}
.notification-bar.active { transform: translateY(0); }
.notification-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    background: #FFD93D;
    color: #000;
    position: relative;
}
.notification-media { max-height: 120px; border-radius: 8px; }
.notification-link-block { color: #0a3d62; font-weight: 700; text-decoration: underline; }
.notification-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}
.notification-timer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #fff;
}

.notification-item { display: none; }

/* -- Conteneur principal -- */
.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    background: var(--color-surface);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.home-page .container {
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* -- Typographie -- */
h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #B0B0B0;
    margin-bottom: 2rem;
}

/* -- Boîte d'appel à l'action -- */
.cta-box {
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 10px;
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* -- Boutons -- */
.btn-subscribe {
    display: inline-block;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

/* -- Lien d'assistance WhatsApp -- */
.whatsapp-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-support:hover {
    transform: scale(1.05);
}

.whatsapp-support .fa-whatsapp {
    font-size: 1.5rem;
}

/* -- Footer -- */
footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #777;
}

/* -- Styles pour le formulaire de code -- */
.code-form {
    margin-top: 2rem;
}

.code-input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid #333;
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    margin-bottom: 1rem;
}

.code-input:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* -- Messages d'erreur et de succès -- */
.message {
    padding: 15px;
    border-radius: 10px;
    margin: 1rem 0;
    font-weight: 500;
}

.message-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.message-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

/* -- Conteneur full width pour galerie -- */
.container-full {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.05) 0%, transparent 100%);
    border-radius: 30px;
}

.container-full header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    position: relative;
}

.container-full header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gradient-start), var(--gradient-mid), transparent);
}

.container-full header h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.container-full header .subtitle {
    font-size: 1.2rem;
    color: #A8A8C8;
    font-weight: 500;
    margin-bottom: 0;
}

/* -- Barre de recherche et filtres modernes -- */
.search-filter-container {
    margin-bottom: 3.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(255, 0, 255, 0.08));
    border-radius: 25px;
    border: 2px solid rgba(138, 43, 226, 0.25);
    backdrop-filter: blur(15px);
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-wrapper {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    color: var(--gradient-mid);
    font-size: 1.2rem;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    font-size: 1.05rem;
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.7), rgba(50, 50, 70, 0.5));
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(15px);
    letter-spacing: 0.3px;
}

.search-input::placeholder {
    color: #9A9AC8;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: var(--gradient-mid);
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.95), rgba(50, 50, 70, 0.8));
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4), inset 0 0 20px rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
}

.search-input:focus::placeholder {
    color: #A8A8C8;
}

.clear-search {
    position: absolute;
    right: 18px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.clear-search:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.clear-search:active {
    transform: scale(0.95);
}

/* -- Filtres par type -- */
.filter-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.8), rgba(50, 50, 70, 0.6));
    color: #B8B8D8;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    backdrop-filter: blur(10px);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover {
    border-color: var(--gradient-mid);
    color: var(--gradient-mid);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.3);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn:active {
    transform: translateY(-2px);
}

/* -- Conteneur des catégories -- */
#categories-container {
    width: 100%;
}

/* -- Section de catégorie -- */
.category-section {
    margin-bottom: 3.5rem;
    animation: slideDown 0.6s ease;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(255, 0, 255, 0.08));
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.category-header:hover::before {
    left: 100%;
}

.category-header:hover {
    border-color: var(--gradient-mid);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.25);
    transform: translateX(5px);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.category-header:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.category-icon.video-icon {
    background: linear-gradient(135deg, #FF6B6B, #FF8E72);
}

.category-icon.pdf-icon {
    background: linear-gradient(135deg, #4ECDC4, #44A5C2);
}

.category-icon.other-icon {
    background: linear-gradient(135deg, #FFD93D, #FFA500);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #E0E0E0;
    letter-spacing: 0.5px;
}

.category-count {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #A8A8C8;
    font-weight: 500;
}

.category-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gradient-mid);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-header:hover .category-toggle {
    background: rgba(138, 43, 226, 0.4);
    transform: rotate(180deg);
}

.category-grid {
    margin-top: 0;
}

/* -- Message pas de fichiers -- */
.no-files {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #8A8AA8;
    gap: 1rem;
}

.no-files i {
    font-size: 3.5rem;
    opacity: 0.5;
    color: var(--gradient-start);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* -- Message pas de résultats -- */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #8A8AA8;
    animation: fadeIn 0.3s ease;
}

.no-results i {
    font-size: 3.5rem;
    color: var(--gradient-start);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

.no-files {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #8A8AA8;
}
 .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    width: 100%;
    padding: 0 0 2rem 0;
}

.gallery-item {
    background: var(--color-surface);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
}

/* -- Images responsives -- */
.gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* -- PDF items -- */
.pdf-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-light) 100%);
}

.pdf-item p {
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #E0E0E0;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.3), rgba(255, 0, 255, 0.2));
    margin: 0;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.pdf-frame {
    flex: 1;
    width: 100%;
    min-height: 300px;
    border: none;
    border-radius: 0 0 20px 20px;
}

.pdf-cover-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}

.pdf-cover-placeholder {
    width: 100%;
    height: 280px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(255, 0, 255, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #E0E0E0;
    font-weight: 700;
}

.pdf-cover-placeholder i {
    font-size: 2rem;
    color: #F39C12;
}

/* -- Video items -- */
.video-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    position: relative;
}

.gallery-video {
    width: 100%;
    height: 280px;
    background: #000;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 1;
}

.video-item .filename {
    padding: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #C8C8E0;
    margin: 0;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.1), rgba(255, 0, 255, 0.1));
    border-radius: 0 0 20px 20px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* -- Other items (fichiers) -- */
.other-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 0, 255, 0.05));
    position: relative;
    z-index: 1;
}

.other-item i {
    color: var(--gradient-mid);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.other-item p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #A8A8C8;
    word-break: break-word;
    font-weight: 500;
}

/* -- Bouton secondaire -- */
.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.login-box {
    max-width: 520px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.25);
    background: var(--color-surface);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.login-box h2 {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    color: #E0E0E0;
}

.login-box .form-group {
    margin-bottom: 1rem;
}

.login-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: #B8B8D8;
    font-weight: 600;
}

.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="text"],
.admin-section input[type="text"],
.admin-section input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid rgba(138, 43, 226, 0.25);
    background: rgba(30, 30, 46, 0.6);
    color: #E0E0E0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-box input:focus,
.admin-section input:focus {
    border-color: var(--gradient-mid);
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.2);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: #fff;
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(138, 43, 226, 0.35);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(138, 43, 226, 0.5);
}

.btn-danger {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4d, #d93636);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(244, 67, 54, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(244, 67, 54, 0.45);
}

.admin-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--color-surface);
    border: 1px solid rgba(138, 43, 226, 0.25);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.admin-section h2,
.admin-section h3 {
    margin: 0 0 1rem 0;
    color: #E6E6F0;
}

.admin-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.25);
    background: rgba(30, 30, 46, 0.6);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.table-container thead tr {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
}

.table-container th {
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
}

.table-container td {
    padding: 12px 14px;
    color: #D4D4E0;
    border-top: 1px solid rgba(138, 43, 226, 0.15);
}

.table-container tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.status-actif,
.status-utilise,
.status-expire {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.status-actif {
    background: rgba(76, 175, 80, 0.18);
    color: #8BC34A;
}

.status-utilise {
    background: rgba(255, 193, 7, 0.18);
    color: #FFC107;
}

.status-expire {
    background: rgba(244, 67, 54, 0.18);
    color: var(--color-error);
}

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

/* -- Lightbox modernisé -- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 20px;
    overflow: auto;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(138, 43, 226, 0.5);
}

.close-lightbox {
    position: fixed;
    top: 25px;
    right: 35px;
    font-size: 2.8rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid rgba(138, 43, 226, 0.4);
}

.close-lightbox:hover {
    color: var(--gradient-mid);
    background: rgba(138, 43, 226, 0.4);
    transform: rotate(90deg);
}

/* -- Error message modernisé -- */
.error-message {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.05));
    border: 2px solid var(--color-error);
    border-radius: 15px;
    color: #FF9999;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

/* -- Responsive Tablet -- */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .container-full {
        padding: 30px 15px;
    }

    .container-full header {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }

    .container-full header h1 {
        font-size: 2.5rem;
    }

    .gallery-image {
        height: 240px;
    }

    .pdf-frame {
        min-height: 250px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .category-title {
        font-size: 1.3rem;
    }
}

/* -- Fullscreen HTML5 Video -- */
video:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

video:-moz-full-screen {
    width: 100%;
    height: 100%;
}

video:fullscreen {
    width: 100%;
    height: 100%;
    background: #000;
}

/* Masquer les overlays lors du fullscreen */
.video-preview:fullscreen .video-overlay {
    display: none;
}

.video-preview:-webkit-full-screen .video-overlay {
    display: none;
}

.video-preview:-moz-full-screen .video-overlay {
    display: none;
}

/* -- Responsive Mobile -- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container-full {
        padding: 20px 10px;
    }

    .container-full header {
        padding: 1.5rem 0;
        margin-bottom: 2.5rem;
    }

    .container-full header h1 {
        font-size: 1.9rem;
    }

    .container-full header .subtitle {
        font-size: 1rem;
    }

    .container-full header::after {
        bottom: -15px;
        width: 80px;
        height: 2px;
    }

    .gallery-item {
        border-radius: 16px;
    }

    .gallery-image {
        height: 300px;
    }

    .pdf-frame {
        min-height: 400px;
    }

    .gallery-video {
        height: 300px;
    }

    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
        border-radius: 15px;
    }

    .close-lightbox {
        top: 15px;
        right: 15px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }

    .search-filter-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 18px;
    }

    .search-wrapper {
        margin-bottom: 1.5rem;
    }

    .search-input {
        padding: 12px 40px 12px 40px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .search-wrapper i {
        left: 15px;
        font-size: 1rem;
    }

    .clear-search {
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .filter-buttons {
        gap: 0.6rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .category-header {
        padding: 1rem 1.5rem;
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }

    .category-title-wrapper {
        gap: 1rem;
    }

    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-count {
        font-size: 0.8rem;
    }
}

/* -- Responsive Small Mobile -- */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .container-full {
        padding: 15px 8px;
    }

    .container-full header h1 {
        font-size: 1.6rem;
    }

    .container-full header .subtitle {
        font-size: 0.95rem;
    }

    .gallery-item {
        border-radius: 14px;
    }

    .gallery-image {
        height: 250px;
    }

    .pdf-frame {
        min-height: 350px;
    }

    .other-item {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .whatsapp-support {
        padding: 10px 15px;
        font-size: 0.85rem;
        bottom: 15px;
        right: 15px;
    }

    .search-filter-container {
        padding: 1rem;
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }

    .search-wrapper {
        margin-bottom: 1rem;
    }

    .search-input {
        padding: 10px 35px 10px 35px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .search-wrapper i {
        left: 12px;
        font-size: 0.9rem;
    }

    .clear-search {
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .filter-buttons {
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.3rem;
    }

    .filter-btn {
        padding: 7px 12px;
        font-size: 0.7rem;
        gap: 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .category-header {
        padding: 0.8rem 1rem;
        margin-bottom: 1.2rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* -- Responsive Mobile -- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container-full {
        padding: 20px 10px;
    }

    .container-full header {
        padding: 1.5rem 0;
        margin-bottom: 2.5rem;
    }

    .container-full header h1 {
        font-size: 1.9rem;
    }

    .container-full header .subtitle {
        font-size: 1rem;
    }

    .container-full header::after {
        bottom: -15px;
        width: 80px;
        height: 2px;
    }

    .gallery-item {
        border-radius: 16px;
    }

    .gallery-image {
        height: 300px;
    }

    .pdf-frame {
        min-height: 400px;
    }

    .gallery-video {
        height: 300px;
    }

    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
        border-radius: 15px;
    }

    .close-lightbox {
        top: 15px;
        right: 15px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
}

/* -- Responsive Small Mobile -- */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .container-full {
        padding: 15px 8px;
    }

    .container-full header h1 {
        font-size: 1.6rem;
    }

    .container-full header .subtitle {
        font-size: 0.95rem;
    }

    .gallery-item {
        border-radius: 14px;
    }

    .gallery-image {
        height: 250px;
    }

    .pdf-frame {
        min-height: 350px;
    }

    .other-item {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .whatsapp-support {
        padding: 10px 15px;
        font-size: 0.85rem;
        bottom: 15px;
        right: 15px;
    }
}
