/* ========================================
   ATELIERS PAGE - Against Stones
   Design professionnel pour la page ateliers
   ======================================== */

/* ========================================
   PAGE HEADER
   ======================================== */
.ateliers-header {
    margin-top: 48px;
    text-align: center;
    margin-bottom: 56px;
}

.ateliers-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.ateliers-subtitle {
    font-size: clamp(14px, 2vw, 15.5px);
    color: #94A3B8;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   WORKSHOP GRID
   ======================================== */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 70px;
}

.workshop-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}

.workshop-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8),
                0 0 0 2px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.workshop-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.workshop-card:hover .workshop-image {
    transform: scale(1.08);
}

.workshop-content {
    padding: 24px;
}

.workshop-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.workshop-card:hover .workshop-title {
    color: #FFD700;
}

.workshop-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.workshop-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.workshop-year {
    color: #64748B;
}

/* ========================================
   WORKSHOP BADGES (Free / Price)
   ======================================== */
.workshop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.workshop-badge-free {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.workshop-card:hover .workshop-badge-free {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateX(4px);
}

.workshop-badge-paid {
    background: rgba(234, 179, 8, 0.15);
    color: #EAB308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.workshop-card:hover .workshop-badge-paid {
    background: rgba(234, 179, 8, 0.25);
    border-color: rgba(234, 179, 8, 0.5);
    transform: translateX(4px);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.workshops-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #64748B;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.workshops-empty::before {
    content: '🔨';
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ========================================
   PAGINATION
   ======================================== */
.ateliers-pagination {
    margin: 70px 0;
    text-align: center;
}

.pagination-wrapper {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    padding: 12px 18px;
    background: #1a1d26;
    color: #94A3B8;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 44px;
    text-align: center;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pagination-link.active {
    background: linear-gradient(135deg, #EAB308, #D4AF37);
    color: #000000;
    font-weight: 700;
    border-color: #EAB308;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.pagination-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.4);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .workshops-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }

    .ateliers-header {
        margin-top: 40px;
        margin-bottom: 48px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .ateliers-header {
        margin-top: 32px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .ateliers-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .ateliers-subtitle {
        font-size: 14px;
    }

    .workshops-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .workshop-image {
        height: 220px;
    }

    .workshop-content {
        padding: 20px;
    }

    .workshop-title {
        font-size: 18px;
    }

    .workshop-meta {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .ateliers-pagination {
        margin: 60px 0;
    }

    .pagination-wrapper {
        gap: 6px;
    }

    .pagination-link {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 40px;
    }
}

/* ========================================
   RESPONSIVE - PETIT MOBILE
   ======================================== */
@media (max-width: 480px) {
    .ateliers-header {
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .ateliers-title {
        font-size: 28px;
    }

    .ateliers-subtitle {
        font-size: 13px;
    }

    .workshop-image {
        height: 200px;
    }

    .workshop-content {
        padding: 18px;
    }

    .workshop-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .workshop-badge {
        padding: 5px 12px;
        font-size: 12px;
    }

    .ateliers-pagination {
        margin: 50px 0;
    }
}

/* ========================================
   LOADING STATE (optionnel)
   ======================================== */
.workshops-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: #64748B;
}

.workshops-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-top: 20px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   HOVER EFFECTS AMÉLIORÉS
   ======================================== */
.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
                rgba(255, 215, 0, 0) 0%,
                rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

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

/* Position relative pour le ::before */
.workshop-card {
    position: relative;
}

/* S'assurer que le contenu reste au-dessus */
.workshop-content {
    position: relative;
    z-index: 2;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.workshop-card:focus {
    outline: 2px solid #FFD700;
    outline-offset: 4px;
}

.pagination-link:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Amélioration du contraste pour les badges */
@media (prefers-contrast: high) {
    .workshop-badge-free {
        background: rgba(34, 197, 94, 0.3);
    }

    .workshop-badge-paid {
        background: rgba(234, 179, 8, 0.3);
    }
}
