/* ========================================
   ATELIER DETAIL - Against Stones
   Styles complémentaires à oeuvre.css
   ======================================== */

/* Note: Ce fichier s'appuie sur oeuvre.css qui est déjà inclus */

:root {
    /* Colors spécifiques ateliers */
    --workshop-green: #22C55E;
    --workshop-orange: #FB923C;
    --workshop-blue: #3B82F6;
}

/* ========================================
   WORKSHOP IMAGE - Preview principale
   ======================================== */
.workshop-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-preview, #0f172a);
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 32px;
}

.workshop-image:hover {
    border-color: var(--border-hover, rgba(255, 215, 0, 0.3));
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 215, 0, 0.2);
    transform: translateY(-4px);
}

.workshop-image img,
.workshop-image video,
.workshop-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   SESSIONS SECTION
   ======================================== */
.sessions-section {
    padding: 32px;
    background: var(--bg-card, linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%));
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.session-list {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Session Card */
.session-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 150px;
}

.session-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-direction: column;
}

.session-date {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #FFFFFF);
    margin-bottom: 4px;
}

.session-time {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted, #94A3B8);
}

.places {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--workshop-blue);
    text-align: center;
}

/* Badge inscrit */
.registered-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--workshop-green);
    margin-bottom: 12px;
}

/* Boutons toggle */
.btn-toggle {
    width: 100%;
    padding: 12px 24px;
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-register {
    background: linear-gradient(135deg,
                var(--gold-primary, #FFD700) 0%,
                var(--gold-secondary, #D4AF37) 100%);
    color: #000000;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.4);
}

.btn-cancel {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-cancel:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   WORKSHOP INFO
   ======================================== */
.workshop-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-primary, #FFFFFF);
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg,
                var(--gold-primary, #FFD700) 0%,
                #FFFFFF 30%,
                #FFFFFF 70%,
                var(--gold-primary, #FFD700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 20px;
}

.workshop-location {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-secondary, #CBD5E1);
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workshop-location::before {
    content: '📍';
    font-size: 18px;
}

.workshop-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary, #CBD5E1);
    line-height: 1.8;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}

/* ========================================
   TESTIMONIALS - Sans navigation
   ======================================== */
.narratives-section .testimonial-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.narratives-section .testimonial-card:last-child {
    margin-bottom: 0;
}

.narratives-section .testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px);
}

.testimonial-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #FFFFFF);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.narrative-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-preview, #0f172a);
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.narrative-video-placeholder iframe,
.narrative-video-placeholder video,
.narrative-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary, #CBD5E1);
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   MEDIA PREVIEWS (thumbnails)
   ======================================== */
.media-preview-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-preview, #0f172a);
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.media-preview-thumb iframe,
.media-preview-thumb video,
.media-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   BACK TO ATELIERS
   ======================================== */
.back-to-ateliers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    border-radius: 12px;
    color: var(--text-secondary, #CBD5E1);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 32px;
}

.back-to-ateliers:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-primary, #FFD700);
    color: var(--gold-primary, #FFD700);
    transform: translateX(-4px);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .sessions-section {
        padding: 28px;
    }

    .session-card {
        padding: 20px;
    }

    .session-header {
        flex-direction: column;
        gap: 12px;
    }

    .places {
        align-self: flex-start;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .workshop-image {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .sessions-section {
        padding: 24px;
        border-radius: 16px;
    }

    .session-card {
        padding: 16px;
    }

    .session-date {
        font-size: 15px;
    }

    .session-time {
        font-size: 13px;
    }

    .btn-toggle {
        padding: 10px 20px;
        font-size: 13px;
    }

    .workshop-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .workshop-location {
        font-size: 14px;
    }

    .workshop-description {
        padding: 20px;
        font-size: 14px;
        margin-bottom: 28px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-title {
        font-size: 16px;
    }
}

/* ========================================
   RESPONSIVE - PETIT MOBILE
   ======================================== */
@media (max-width: 480px) {
    .workshop-image {
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .sessions-section {
        padding: 20px;
        border-radius: 14px;
    }

    .session-card {
        padding: 14px;
    }

    .registered-badge {
        font-size: 13px;
        padding: 8px 14px;
    }

    .testimonial-card {
        padding: 16px;
    }

    .back-to-ateliers {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   STATES - Complet / Plus de places
   ======================================== */
.session-card.fully-booked {
    opacity: 0.6;
    pointer-events: none;
}

.session-card.fully-booked .places {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-muted, #94A3B8);
}

/* Badge complet */
.fully-booked-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(148, 163, 184, 0.15);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted, #94A3B8);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.btn-toggle:focus-visible {
    outline: 2px solid var(--gold-primary, #FFD700);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .session-card,
    .testimonial-card,
    .workshop-image,
    .btn-toggle,
    .back-to-ateliers {
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .workshop-image,
    .sessions-section,
    .session-card {
        border-width: 2px;
    }

    .btn-toggle {
        border-width: 2px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .sessions-section,
    .btn-toggle,
    .back-to-ateliers {
        display: none;
    }

    .testimonial-card {
        box-shadow: none;
        border: 1px solid #333;
    }
}
