/* ========================================
   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;
}

.workshop-payment-notice {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.08);
    font-size: 0.92rem;
    line-height: 1.55;
}

.workshop-payment-notice__title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #FFD700;
}

.workshop-payment-notice__price {
    margin: 0 0 8px;
}

.workshop-payment-notice__text {
    margin: 0 0 8px;
    color: #cbd5e1;
}

.workshop-payment-notice__legal {
    margin: 0;
    font-size: 0.85rem;
}

.workshop-payment-notice__legal a {
    color: #FFD700;
}

/* ========================================
   SESSIONS SECTION — liste compacte
   ======================================== */
.sessions-section {
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.sessions-section__title {
    margin-bottom: 12px;
    font-size: 1rem;
}

.sessions-section__title::before {
    height: 18px;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.session-item:hover {
    border-color: rgba(255, 215, 0, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

.session-item--registered {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.05);
}

.session-item--full:not(.session-item--registered) {
    opacity: 0.72;
}

.session-item__date {
    flex-shrink: 0;
    width: 42px;
    padding: 5px 4px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.22);
}

.session-item__day {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gold-primary, #FFD700);
}

.session-item__month {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted, #94A3B8);
    text-transform: lowercase;
}

.session-item__body {
    flex: 1;
    min-width: 0;
}

.session-item__time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    line-height: 1.3;
}

.session-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.session-item__places {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted, #94A3B8);
}

.session-item__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #86efac;
}

.session-item__badge svg {
    width: 13px !important;
    height: 13px !important;
}

.session-item__action {
    flex-shrink: 0;
}

.session-icon svg {
    width: 13px !important;
    height: 13px !important;
}

.btn-toggle--compact {
    min-width: auto;
    padding: 7px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-toggle {
    width: auto;
    min-width: 112px;
    padding: 10px 14px;
    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.25s ease;
    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: #000;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
}

.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.video-full-mode,
.narrative-video-placeholder:not(.media-preview-thumb) {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    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 .video-embed-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.narrative-video-placeholder .video-embed-wrap iframe,
.narrative-video-placeholder .video-embed-iframe,
.narrative-video-placeholder iframe,
.narrative-video-placeholder video,
.narrative-video-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: auto;
    z-index: 1;
}

.narrative-video-placeholder video,
.narrative-video-placeholder img {
    object-fit: contain;
}

.media-preview-thumb.video-thumb-mode,
.media-preview-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 140px;
    overflow: hidden;
}

.video-sr-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.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 .video-thumb-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.media-preview-thumb .video-thumb-wrap iframe,
.media-preview-thumb .video-thumb-iframe,
.media-preview-thumb iframe,
.media-preview-thumb video,
.media-preview-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: auto;
    z-index: 1;
    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) {
    .session-item {
        padding: 10px;
    }
}

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

    .sessions-section {
        margin-bottom: 20px;
    }

    .session-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .session-item__action {
        width: 100%;
    }

    .btn-toggle,
    .btn-toggle--compact {
        width: 100%;
    }

    .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 {
        margin-bottom: 16px;
    }

    .session-item__date {
        width: 38px;
    }

    .testimonial-card {
        padding: 16px;
    }

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

/* ========================================
   STATES - Complet / Plus de places
   ======================================== */
.session-item--full .session-item__places {
    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-item,
    .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-item {
        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;
    }
}
