/* === ELIAS ART GALLERY - DESIGN PUR NOIR & BLANC RESPONSIVE CORRIGÉ === */
/* Style minimaliste avec quadrillage, Bebas Neue et Courier Prime */

/* === RESET & VARIABLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette pure noir & blanc */
    --noir: #000000;
    --blanc: #ffffff;
    --gris-1: #f0f0f0;
    --gris-2: #e0e0e0;
    --gris-3: #d0d0d0;
    --gris-4: #808080;
    --gris-5: #404040;
    
    /* Typographie */
    --font-title: 'Bebas Neue', cursive;
    --font-mono: 'Courier Prime', monospace;
    
    /* Espacement modulaire */
    --grid: 8px;
    --space-1: calc(var(--grid) * 1);
    --space-2: calc(var(--grid) * 2);
    --space-3: calc(var(--grid) * 3);
    --space-4: calc(var(--grid) * 4);
    --space-6: calc(var(--grid) * 6);
    --space-8: calc(var(--grid) * 8);
    --space-12: calc(var(--grid) * 12);
    
    /* Quadrillage */
    --grid-pattern: 
        linear-gradient(to right, var(--gris-1) 1px, transparent 1px),
        linear-gradient(to bottom, var(--gris-1) 1px, transparent 1px);
    --grid-size: 20px 20px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

/* === BASE === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.4;
    color: var(--noir);
    background: var(--blanc);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--space-3);
    color: var(--noir);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    margin-bottom: var(--space-3);
}

/* === HEADER AVEC ONGLETS === */
.header {
    background: var(--noir);
    color: var(--blanc);
    border-bottom: 2px solid var(--noir);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: var(--space-4) 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--blanc);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo i {
    font-size: 32px;
    border: 2px solid var(--blanc);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo h1 {
    font-family: var(--font-title);
    font-size: 32px;
    margin: 0;
    letter-spacing: 4px;
}

.logo h1::after {
    content: "ART GALLERY";
    display: block;
    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 6px;
    opacity: 0.8;
    margin-top: -4px;
}

.nav {
    display: flex;
    gap: var(--space-3);
}

/* === ONGLETS DE NAVIGATION === */
.tabs-nav {
    background: var(--gris-5);
    padding: 0;
    border-bottom: 2px solid var(--noir);
}

.tabs-nav .container {
    display: flex;
    gap: 0;
}

.tab-button {
    background: var(--gris-5);
    color: var(--blanc);
    border: none;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-title);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-right: 1px solid var(--noir);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tab-button:hover,
.tab-button.active {
    background: var(--blanc);
    color: var(--noir);
}

.tab-button.admin-only {
    display: none;
}

.tab-button.admin-only.visible {
    display: flex;
}

/* === CONTENU DES ONGLETS === */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--noir);
    background: var(--blanc);
    color: var(--noir);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--noir);
    color: var(--blanc);
}

.btn-outline {
    background: transparent;
    color: var(--blanc);
    border-color: var(--blanc);
}

.btn-outline:hover {
    background: var(--blanc);
    color: var(--noir);
}

.btn-danger {
    background: #dc3545;
    color: var(--blanc);
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

/* === HERO SECTION RÉDUITE === */
.hero {
    background: var(--blanc);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
    padding: var(--space-6) 0;
    text-align: center;
    border-bottom: 2px solid var(--noir);
}

.hero h2 {
    font-size: 32px;
    margin-bottom: var(--space-2);
    letter-spacing: 4px;
}

.hero p {
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto var(--space-3);
    line-height: 1.4;
    color: var(--gris-5);
}

.hero::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: var(--noir);
    margin: var(--space-3) auto 0;
}

/* === ADMIN SECTIONS === */
.admin-section {
    background: var(--gris-1);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
    padding: var(--space-8) 0;
}

.admin-section h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: var(--space-6);
    letter-spacing: 4px;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto var(--space-8);
    background: var(--blanc);
    padding: var(--space-6);
    border: 2px solid var(--noir);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
    color: var(--noir);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--noir);
    background: var(--blanc);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-width: 2px;
    padding: calc(var(--space-3) - 1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    padding: var(--space-4);
    border: 2px dashed var(--noir);
    text-align: center;
    background: var(--gris-1);
    cursor: pointer;
    font-weight: 700;
}

.form-group input[type="file"]:hover {
    background: var(--blanc);
}

.form-help {
    font-size: 12px;
    color: var(--gris-5);
    margin-top: var(--space-1);
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-4);
}

/* === GESTION DES ŒUVRES (ADMIN) === */
.admin-artworks {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-artwork-item {
    background: var(--blanc);
    border: 2px solid var(--noir);
    margin-bottom: var(--space-4);
    display: flex;
    gap: var(--space-4);
    overflow: hidden;
}

.admin-artwork-image {
    width: 150px;
    height: 120px;
    flex-shrink: 0;
    background: var(--gris-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-artwork-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.admin-artwork-info {
    flex: 1;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-artwork-title {
    font-family: var(--font-title);
    font-size: 18px;
    margin-bottom: var(--space-2);
    letter-spacing: 1px;
}

.admin-artwork-meta {
    font-size: 12px;
    color: var(--gris-5);
    margin-bottom: var(--space-3);
}

.admin-artwork-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.admin-artwork-actions .btn {
    font-size: 11px;
    padding: var(--space-2) var(--space-3);
}

/* === GALERIE === */
.gallery {
    padding: var(--space-8) 0;
    background: var(--blanc);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
}

.gallery h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: var(--space-2);
    letter-spacing: 4px;
}

.gallery h3 + p {
    text-align: center;
    color: var(--gris-5);
    margin-bottom: var(--space-6);
    font-size: 14px;
}

/* === FILTRES === */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--blanc);
    border: 1px solid var(--noir);
    color: var(--noir);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--noir);
    color: var(--blanc);
}

/* === GRILLE D'ŒUVRES === */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

/* === CARTES D'ŒUVRES AVEC LIKES === */
.artwork-card {
    background: var(--blanc);
    border: 2px solid var(--noir);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.artwork-card:hover {
    box-shadow: 8px 8px 0 var(--noir);
    transform: translate(-2px, -2px);
}

.artwork-image {
    position: relative;
    height: 280px;
    background: var(--blanc);
    overflow: hidden;
    border-bottom: 2px solid var(--noir);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
}

.artwork-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: contrast(1.2);
    transition: var(--transition);
}

.artwork-card:hover img {
    transform: scale(1.02);
}

/* === SYSTÈME DE LIKES === */
.like-button {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: var(--blanc);
    border: 2px solid var(--noir);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    font-size: 16px;
}

.like-button:hover {
    background: var(--noir);
    color: var(--blanc);
}

.like-button.liked {
    background: var(--noir);
    color: var(--blanc);
}

.like-count {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    background: var(--blanc);
    border: 1px solid var(--noir);
    padding: var(--space-1) var(--space-2);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.artwork-info {
    padding: var(--space-4);
}

.artwork-info h4 {
    font-family: var(--font-title);
    font-size: 20px;
    margin-bottom: var(--space-2);
    letter-spacing: 1px;
}

.artwork-info p {
    color: var(--gris-5);
    margin-bottom: var(--space-3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artwork-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-top: 1px solid var(--noir);
    padding-top: var(--space-2);
}

.category-badge {
    background: var(--noir);
    color: var(--blanc);
    padding: var(--space-1) var(--space-2);
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === MODAL RESPONSIVE CORRIGÉ - SANS ASCENSEUR === */

/* === MODAL DE BASE === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow: hidden; /* AJOUTÉ pour éviter l'ascenseur */
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    overflow: hidden; /* AJOUTÉ pour éviter l'ascenseur */
}

/* === MODAL CONTENT GÉNÉRAL === */
.modal-content {
    background: var(--blanc);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
    position: relative;
    border: 4px solid var(--noir);
    max-height: 95vh;
    width: 100%;
    max-width: 600px;
    overflow: hidden; /* CHANGÉ de overflow-y: auto à overflow: hidden */
}

/* === MODAL D'ŒUVRE RESPONSIVE CRITIQUE === */
.artwork-modal .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    overflow: hidden; /* CRITIQUE : Pas d'ascenseur sur le conteneur principal */
    border-radius: 0;
}

.artwork-details {
    display: flex;
    height: 100%;
    overflow: hidden; /* CRITIQUE : Pas d'ascenseur sur les détails */
    min-height: 400px;
}

/* === VERSION DESKTOP (CÔTE À CÔTE) === */
@media (min-width: 1024px) {
    .artwork-modal .modal-content {
        max-width: 90vw;
        max-height: 85vh;
        width: auto;
        height: auto;
    }
    
    .artwork-details {
        flex-direction: row;
        min-height: 500px;
        max-height: 85vh;
        overflow: hidden; /* Pas d'ascenseur principal */
    }
    
    .artwork-modal-image {
        flex: 1;
        max-width: 60%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--blanc);
        padding: var(--space-4);
        border-right: 2px solid var(--noir);
        border-bottom: none;
        overflow: hidden; /* Pas d'ascenseur sur l'image */
    }
    
    .artwork-details img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        border: 1px solid var(--gris-3);
        cursor: zoom-in;
    }
    
    .artwork-info-modal {
        flex: 0 0 40%;
        min-width: 350px;
        max-width: 400px;
        padding: var(--space-4);
        overflow-y: auto; /* SEUL endroit où on permet l'ascenseur */
        background: var(--blanc);
        display: flex;
        flex-direction: column;
        /* Styles pour un ascenseur discret */
        scrollbar-width: thin;
        scrollbar-color: var(--gris-4) var(--gris-1);
    }
    
    /* Ascenseur personnalisé pour WebKit */
    .artwork-info-modal::-webkit-scrollbar {
        width: 6px;
    }
    
    .artwork-info-modal::-webkit-scrollbar-track {
        background: var(--gris-1);
    }
    
    .artwork-info-modal::-webkit-scrollbar-thumb {
        background: var(--gris-4);
        border-radius: 3px;
    }
    
    .artwork-info-modal::-webkit-scrollbar-thumb:hover {
        background: var(--gris-5);
    }
}

/* === VERSION TABLETTE (VERTICAL) === */
@media (min-width: 768px) and (max-width: 1023px) {
    .artwork-modal .modal-content {
        max-width: 90vw;
        max-height: 90vh;
        width: auto;
        height: auto;
    }
    
    .artwork-details {
        flex-direction: column;
        min-height: 70vh;
        max-height: 90vh;
        overflow: hidden; /* Pas d'ascenseur principal */
    }
    
    .artwork-modal-image {
        flex: 1;
        max-height: 60%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--blanc);
        padding: var(--space-3);
        border-bottom: 2px solid var(--noir);
        border-right: none;
        overflow: hidden; /* Pas d'ascenseur sur l'image */
    }
    
    .artwork-details img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        border: 1px solid var(--gris-3);
        cursor: zoom-in;
    }
    
    .artwork-info-modal {
        flex: 0 0 40%;
        min-height: 250px;
        padding: var(--space-3);
        overflow-y: auto; /* SEUL endroit où on permet l'ascenseur */
        background: var(--blanc);
        /* Styles pour un ascenseur discret */
        scrollbar-width: thin;
        scrollbar-color: var(--gris-4) var(--gris-1);
    }
    
    /* Ascenseur personnalisé pour WebKit sur tablette */
    .artwork-info-modal::-webkit-scrollbar {
        width: 6px;
    }
    
    .artwork-info-modal::-webkit-scrollbar-track {
        background: var(--gris-1);
    }
    
    .artwork-info-modal::-webkit-scrollbar-thumb {
        background: var(--gris-4);
        border-radius: 3px;
    }
}

/* === VERSION MOBILE (PLEIN ÉCRAN VERTICAL) === */
@media (max-width: 767px) {
    .modal.show {
        padding: 0;
        align-items: stretch;
        overflow: hidden; /* CRITIQUE : Pas d'ascenseur global */
    }
    
    .artwork-modal .modal-content {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;
        overflow: hidden; /* CRITIQUE : Pas d'ascenseur sur le conteneur */
    }
    
    .artwork-details {
        flex-direction: column;
        height: 100vh;
        overflow: hidden; /* CRITIQUE : Pas d'ascenseur principal */
    }
    
    .artwork-modal-image {
        flex: 1;
        max-height: 55vh;
        min-height: 40vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--blanc);
        padding: var(--space-2);
        border-bottom: 2px solid var(--noir);
        border-right: none;
        overflow: hidden; /* Pas d'ascenseur sur l'image */
    }
    
    .artwork-details img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        border: 1px solid var(--gris-3);
        cursor: zoom-in;
    }
    
    .artwork-info-modal {
        flex: 1;
        max-height: 45vh;
        min-height: 200px;
        padding: var(--space-3);
        overflow-y: auto; /* SEUL endroit où on permet l'ascenseur */
        background: var(--blanc);
        /* Styles pour un ascenseur plus visible sur mobile */
        scrollbar-width: thin;
        scrollbar-color: var(--noir) var(--gris-1);
    }
    
    /* Ascenseur personnalisé pour mobile WebKit */
    .artwork-info-modal::-webkit-scrollbar {
        width: 8px; /* Plus large sur mobile */
    }
    
    .artwork-info-modal::-webkit-scrollbar-track {
        background: var(--gris-1);
    }
    
    .artwork-info-modal::-webkit-scrollbar-thumb {
        background: var(--noir);
        border-radius: 4px;
    }
}

/* === MODAL PLEINE TAILLE CORRIGÉE === */
.full-size-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 2000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow: hidden !important; /* CRITIQUE : Empêcher tout ascenseur */
}

/* === CORRECTIONS SPÉCIFIQUES BODY === */
/* Quand une modal est ouverte, empêcher complètement le scroll */
body.modal-open,
body:has(.modal.show) {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* === CONTENU MODAL === */
.artwork-info-modal h3 {
    font-size: 20px;
    margin-bottom: var(--space-3);
    background: none;
    color: var(--noir);
    padding: 0;
    text-align: left;
    letter-spacing: 2px;
    line-height: 1.1;
    border-bottom: 2px solid var(--noir);
    padding-bottom: var(--space-2);
}

.artwork-info-modal p {
    margin-bottom: var(--space-3);
    line-height: 1.6;
    color: var(--gris-5);
    font-size: 14px;
}

.artwork-info-modal .artwork-meta {
    margin-bottom: var(--space-4);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--gris-3);
    border-bottom: 1px solid var(--gris-3);
}

/* === SYSTÈME DE LIKES DANS LE MODAL === */
.modal-likes {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    border: 1px solid var(--noir);
    background: var(--gris-1);
    flex-shrink: 0; /* Empêcher la compression */
}

.modal-like-button {
    background: var(--blanc);
    border: 2px solid var(--noir);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
    flex-shrink: 0; /* Empêcher la compression */
}

.modal-like-button:hover,
.modal-like-button.liked {
    background: var(--noir);
    color: var(--blanc);
}

.modal-like-count {
    font-family: var(--font-title);
    font-size: 24px;
    letter-spacing: 2px;
    flex-shrink: 0; /* Empêcher la compression */
}

/* === BOUTONS DE PARTAGE === */
.share-buttons {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 2px solid var(--noir);
    flex-shrink: 0; /* Empêcher la compression */
}

.share-buttons h4 {
    margin-bottom: var(--space-4);
    letter-spacing: 2px;
    font-size: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    background: var(--blanc);
    border: 1px solid var(--noir);
    color: var(--noir);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.share-btn:hover {
    background: var(--noir);
    color: var(--blanc);
}

.share-btn i {
    margin-right: var(--space-3);
    width: 20px;
    font-size: 14px;
}

/* === BOUTON DE FERMETURE === */
.close {
    position: absolute;
    right: var(--space-2);
    top: var(--space-2);
    background: var(--noir);
    color: var(--blanc);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-family: var(--font-mono);
    font-weight: 700;
}

.close:hover {
    background: var(--gris-5);
}

/* === RESPONSIVE MOBILE SPÉCIFIQUE POUR MODAL === */
@media (max-width: 480px) {
    .artwork-info-modal {
        padding: var(--space-2);
    }
    
    .artwork-info-modal h3 {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: var(--space-2);
    }
    
    .artwork-info-modal p {
        font-size: 13px;
        margin-bottom: var(--space-2);
    }
    
    .modal-likes {
        margin-bottom: var(--space-3);
        padding: var(--space-2);
    }
    
    .modal-like-button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .modal-like-count {
        font-size: 20px;
    }
    
    .share-buttons {
        margin-top: var(--space-3);
        padding-top: var(--space-3);
    }
    
    .share-buttons h4 {
        font-size: 14px;
        margin-bottom: var(--space-3);
    }
    
    .share-btn {
        padding: var(--space-3);
        font-size: 11px;
        margin-bottom: var(--space-1);
    }
    
    .close {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border: 2px solid var(--blanc);
    }
}

/* === MODAL DE CONNEXION === */
.modal-content h3 {
    background: var(--noir);
    color: var(--blanc);
    padding: var(--space-6);
    margin: 0;
    text-align: center;
    letter-spacing: 4px;
    font-size: 24px;
}

.modal-content form {
    padding: var(--space-8);
    background: var(--blanc);
}

/* === LOADING === */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blanc);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gris-2);
    border-top: 4px solid var(--noir);
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-container p {
    font-family: var(--font-mono);
    color: var(--gris-5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === TOAST === */
.toast {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    background: var(--noir);
    color: var(--blanc);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--noir);
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 1001;
    font-family: var(--font-mono);
    font-weight: 700;
    max-width: 300px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--blanc);
    color: var(--noir);
}

.toast.error {
    background: var(--noir);
    color: var(--blanc);
}

/* === FOOTER === */
.footer {
    background: var(--noir);
    color: var(--blanc);
    padding: var(--space-12) 0 var(--space-6);
    border-top: 4px solid var(--noir);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

.footer-section h4,
.footer-section h5 {
    font-family: var(--font-title);
    margin-bottom: var(--space-4);
    letter-spacing: 3px;
    font-size: 20px;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--blanc);
    color: var(--blanc);
    text-decoration: none;
    transition: var(--transition);
    font-size: 20px;
}

.social-links a:hover {
    background: var(--blanc);
    color: var(--noir);
}

.footer-bottom {
    border-top: 2px solid var(--gris-5);
    padding-top: var(--space-4);
    text-align: center;
    opacity: 0.8;
    font-size: 12px;
}

/* === ÉTATS === */
.empty-state,
.loading-placeholder {
    grid-column: 1/-1;
    text-align: center;
    padding: var(--space-12);
    background: var(--blanc);
    border: 2px dashed var(--noir);
}

.empty-state i,
.loading-placeholder i {
    font-size: 48px;
    margin-bottom: var(--space-4);
    color: var(--gris-4);
}

.empty-state h3 {
    margin-bottom: var(--space-3);
    color: var(--gris-5);
    font-size: 32px;
}

.empty-state p {
    color: var(--gris-4);
    font-size: 14px;
}

.loading-placeholder i {
    animation: pulse 2s infinite;
}

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

/* === RESPONSIVE DESIGN CORRIGÉ === */

/* Tablettes */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .admin-artwork-item {
        flex-direction: column;
    }
    
    .admin-artwork-image {
        width: 100%;
        height: 200px;
    }
    
    .admin-artwork-actions {
        justify-content: center;
    }
}

/* MOBILES - CORRECTIONS MAJEURES */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-2);
    }
    
    /* Header responsive */
    .header-top .container {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    .logo h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .nav {
        justify-content: center;
    }
    
    /* Onglets responsive */
    .tabs-nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-button {
        padding: var(--space-2) var(--space-4);
        font-size: 14px;
        border-right: none;
        border-bottom: 1px solid var(--noir);
        flex: 1;
        min-width: 120px;
    }
    
    /* Hero responsive */
    .hero {
        padding: var(--space-4) 0;
    }
    
    .hero h2 {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: var(--space-1);
    }
    
    .hero p {
        font-size: 12px;
        margin: 0 auto var(--space-2);
    }
    
    .hero::after {
        width: 60px;
        margin: var(--space-2) auto 0;
    }
    
    /* Galerie responsive */
    .gallery {
        padding: var(--space-6) 0;
    }
    
    .gallery h3 {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    /* Filtres responsive */
    .filter-buttons {
        gap: var(--space-1);
        padding: 0 var(--space-2);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 11px;
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }
    
    /* Grille responsive */
    .artworks-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    /* Formulaires responsive */
    .upload-form {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    .form-group {
        margin-bottom: var(--space-3);
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: var(--space-1);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: var(--space-2);
        font-size: 14px;
    }
    
    .btn {
        padding: var(--space-2) var(--space-3);
        font-size: 11px;
    }
    
    /* Admin sections responsive */
    .admin-section {
        padding: var(--space-6) 0;
    }
    
    .admin-section h3 {
        font-size: 24px;
        margin-bottom: var(--space-4);
    }
    
    /* Toast responsive */
    .toast {
        bottom: var(--space-2);
        right: var(--space-2);
        left: var(--space-2);
        max-width: none;
        font-size: 11px;
    }
    
    /* Footer responsive */
    .footer {
        padding: var(--space-8) 0 var(--space-4);
    }
    
    .footer-content {
        text-align: center;
        gap: var(--space-6);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* === RESPONSIVE MOBILE SPÉCIFIQUE POUR MODAL === */
@media (max-width: 480px) {
    .artwork-info {
        padding: var(--space-3);
    }
    
    .like-button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .like-count {
        font-size: 10px;
        padding: calc(var(--space-1) / 2) var(--space-1);
    }
    
    .artwork-info h4 {
        font-size: 18px;
    }
    
    .artwork-info-modal {
        padding: var(--space-2);
    }
    
    .artwork-info-modal h3 {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: var(--space-2);
    }
    
    .artwork-info-modal p {
        font-size: 13px;
        margin-bottom: var(--space-2);
    }
    
    .modal-likes {
        margin-bottom: var(--space-3);
        padding: var(--space-2);
    }
    
    .modal-like-button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .modal-like-count {
        font-size: 20px;
    }
    
    .share-buttons {
        margin-top: var(--space-3);
        padding-top: var(--space-3);
    }
    
    .share-buttons h4 {
        font-size: 14px;
        margin-bottom: var(--space-3);
    }
    
    .share-btn {
        padding: var(--space-3);
        font-size: 11px;
        margin-bottom: var(--space-1);
    }
    
    .close {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border: 2px solid var(--blanc);
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* === ACCESSIBILITÉ === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn:focus,
.filter-btn:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.artwork-card:focus,
.close:focus,
.share-btn:focus,
.like-button:focus,
.tab-button:focus {
    outline: 3px solid var(--gris-4);
    outline-offset: 2px;
}

/* === SÉLECTION === */
::selection {
    background: var(--noir);
    color: var(--blanc);
}

::-moz-selection {
    background: var(--noir);
    color: var(--blanc);
}

/* === UTILITAIRES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.visible { display: block !important; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

/* === MOUVEMENTS RÉDUITS === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .artwork-card:hover {
        transform: none;
    }
    
    .spinner {
        animation: none;
        border: 4px solid var(--gris-2);
    }
}