/**
 * L'Enfant Déguisé - Wall of Fame Page Styles
 * 
 * @package LEnfantDeguise
 */

/* ==========================================================================
   WALL HERO
   ========================================================================== */

.wall-hero {
    position: relative;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-night-deep) 0%, var(--color-night) 100%);
    overflow: hidden;
    text-align: center;
}

.wall-hero__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wall-hero__stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.8), transparent);
    background-size: 350px 200px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.wall-hero__content {
    position: relative;
    z-index: 1;
}

.wall-hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-cream);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.wall-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--color-cream);
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wall-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-cream);
    opacity: 0.8;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

/* Stats */
.wall-hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.wall-hero__stat {
    text-align: center;
}

.wall-hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
}

.wall-hero__stat-label {
    font-size: var(--text-sm);
    color: var(--color-cream);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   FILTRES
   ========================================================================== */

.wall-filters {
    background-color: var(--color-night);
    padding: var(--space-xl) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wall-filters__wrapper {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.wall-filter {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wall-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.wall-filter.is-active {
    background: var(--color-rose);
    border-color: var(--color-rose);
    color: white;
}

.wall-filter__icon {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .wall-filter span:not(.wall-filter__icon) {
        display: none;
    }
    
    .wall-filter {
        padding: 12px 16px;
    }
    
    .wall-filter__icon {
        font-size: 1.3em;
    }
}

/* ==========================================================================
   GALERIE MASONRY
   ========================================================================== */

.wall-gallery {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background-color: var(--color-night);
}

.wall-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: var(--space-md);
}

@media (max-width: 1200px) {
    .wall-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wall-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 480px) {
    .wall-gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
}

/* Variations de taille */
.wall-gallery__item--tall {
    grid-row: span 2;
}

.wall-gallery__item--wide {
    grid-column: span 2;
}

@media (max-width: 480px) {
    .wall-gallery__item--tall,
    .wall-gallery__item--wide {
        grid-row: span 1;
        grid-column: span 1;
    }
}

/* Item */
.wall-gallery__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wall-gallery__item.is-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

.wall-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
}

.wall-gallery__figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
}

.wall-gallery__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wall-gallery__item:hover .wall-gallery__figure img {
    transform: scale(1.1);
}

/* Overlay */
.wall-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 16, 38, 0.95) 0%,
        rgba(30, 16, 38, 0.6) 40%,
        rgba(30, 16, 38, 0.2) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wall-gallery__item:hover .wall-gallery__overlay {
    opacity: 1;
}

.wall-gallery__overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.wall-gallery__item:hover .wall-gallery__overlay-content {
    transform: translateY(0);
}

.wall-gallery__icon {
    color: white;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.wall-gallery__caption {
    color: var(--color-cream);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Empty state */
.wall-gallery__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-cream);
    opacity: 0.6;
}

/* ==========================================================================
   SECTION SOUMISSION
   ========================================================================== */

.wall-submit {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--color-night) 0%, var(--color-night-deep) 100%);
}

.wall-submit__card {
    position: relative;
    max-width: 800px;
    margin-inline: auto;
    padding: var(--space-2xl) var(--space-xl);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.wall-submit__content {
    position: relative;
    z-index: 1;
}

.wall-submit__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

.wall-submit__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.wall-submit__text {
    font-size: var(--text-base);
    color: var(--color-cream);
    opacity: 0.8;
    max-width: 550px;
    margin-inline: auto;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.wall-submit__text strong {
    color: var(--color-gold);
}

.wall-submit__note {
    margin-top: var(--space-md);
    color: var(--color-cream);
    opacity: 0.5;
}

/* Decoration circles */
.wall-submit__decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wall-submit__circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-rose) 0%, transparent 70%);
    opacity: 0.1;
}

.wall-submit__circle--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.wall-submit__circle--2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.wall-submit__circle--3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    opacity: 0.05;
}

/* ==========================================================================
   MODAL SOUMISSION
   ========================================================================== */

.submit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.submit-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.submit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 16, 38, 0.95);
    backdrop-filter: blur(8px);
}

.submit-modal__container {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.submit-modal.is-active .submit-modal__container {
    transform: scale(1) translateY(0);
}

.submit-modal__content {
    padding: var(--space-xl);
}

.submit-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.submit-modal__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.submit-modal__header h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.submit-modal__header p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* Form */
.submit-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 480px) {
    .submit-form__grid {
        grid-template-columns: 1fr;
    }
}

.submit-form__field {
    margin-bottom: var(--space-md);
}

.submit-form__field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.submit-form__field input[type="text"],
.submit-form__field input[type="email"],
.submit-form__field select,
.submit-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-dark);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.submit-form__field input:focus,
.submit-form__field select:focus,
.submit-form__field textarea:focus {
    outline: none;
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.submit-form__field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Upload zone */
.submit-form__upload {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.submit-form__upload:hover,
.submit-form__upload.is-dragover {
    border-color: var(--color-rose);
    background: rgba(183, 110, 121, 0.05);
}

.submit-form__upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.submit-form__upload-content svg {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.submit-form__upload-content p {
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.submit-form__upload-content span {
    color: var(--color-rose);
    font-weight: 500;
}

.submit-form__upload-content small {
    color: var(--color-text-muted);
}

.submit-form__preview {
    margin-top: var(--space-md);
    display: none;
}

.submit-form__preview.has-image {
    display: block;
}

.submit-form__preview img {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-inline: auto;
}

/* Checkbox */
.submit-form__field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
}

.submit-form__field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-rose);
}

.submit-form__field--checkbox span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Actions */
.submit-form__actions {
    margin-top: var(--space-lg);
}

.submit-form__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.submit-form__message {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

.submit-form__message.is-success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.submit-form__message.is-error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(30, 16, 38, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
    left: var(--space-lg);
}

.lightbox__nav--next {
    right: var(--space-lg);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    color: var(--color-cream);
    font-size: var(--text-base);
    font-style: italic;
    margin-top: var(--space-lg);
    opacity: 0.8;
}

.lightbox__counter {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-cream);
    font-size: var(--text-sm);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .lightbox__nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox__nav--prev {
        left: var(--space-sm);
    }
    
    .lightbox__nav--next {
        right: var(--space-sm);
    }
}