/* ================================================
   CRÉATIONS - DA FANTAISISTE/TROPICALE
   Inspiré de panier.css avec blobs et glassmorphism
   ================================================ */

/* Background blanc simple - suppression gradient animé */
body {
    background: white;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Blobs flottants subtils */
.creations-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 25s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.creations-blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(132, 79, 192, 0.6);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.creations-blob-2 {
    width: 450px;
    height: 450px;
    background: rgba(73, 182, 160, 0.6);
    top: 40%;
    right: -10%;
    animation-delay: 8s;
}

.creations-blob-3 {
    width: 400px;
    height: 400px;
    background: rgba(255, 67, 101, 0.6);
    bottom: 10%;
    left: 20%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.15);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.85);
    }
}

/* Hero card avec glassmorphism et gradient violet-rose */
.creations-hero-card {
    background: linear-gradient(135deg,
        rgba(132, 79, 192, 0.9) 0%,
        rgba(255, 67, 101, 0.85) 50%,
        rgba(132, 79, 192, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(132, 79, 192, 0.3);
    padding: 3rem;
    text-align: center;
    animation: slideIn 0.6s ease-out;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Effet shimmer rotatif */
.creations-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmerRotate 8s infinite linear;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre du hero */
.creations-hero-card h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.creations-hero-card h1 i {
    margin-right: 15px;
    animation: paletteFloat 3s ease-in-out infinite;
}

@keyframes paletteFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.creations-hero-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Container principal au-dessus des blobs */
.container {
    position: relative;
    z-index: 1;
}

/* Product cards avec glassmorphism */
.creations-product-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(132, 79, 192, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.creations-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px 0 rgba(132, 79, 192, 0.2) !important;
    border-color: rgba(132, 79, 192, 0.3);
}

/* Image container avec aspect ratio optimal */
.creations-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.creations-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.creations-product-card:hover .creations-image-container img {
    transform: scale(1.05);
}

/* Overlay avec gradient violet-rose et height augmenté */
.creations-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top,
        rgba(132, 79, 192, 0.75) 0%,
        rgba(255, 67, 101, 0.75) 60%,
        transparent 100%
    );
    padding: 0 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.creations-product-card:hover .creations-overlay {
    opacity: 1;
}

.creations-overlay h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
    color: white;
    text-align: center;
}

.creations-overlay p {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-weight: var(--font-weight-semibold);
}

/* Wishlist button glassmorphism - icône seule, bouton rond */
.creations-wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Override styles du bouton wishlist pour le rendre rond */
.creations-wishlist-btn .wishlist-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(132, 79, 192, 0.2) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    gap: 0 !important;
}

.creations-wishlist-btn .wishlist-btn:hover {
    background: #ff4343 !important;
    border-color: transparent !important;
    transform: scale(1.1) rotate(5deg) !important;
}

.creations-wishlist-btn .wishlist-btn i {
    font-size: 1.2rem !important;
    transition: color 0.3s ease !important;
    color: var(--color-secondary) !important;
}

.creations-wishlist-btn .wishlist-btn:hover i {
    color: white !important;
}

.creations-wishlist-btn .wishlist-btn.in-wishlist {
    background: #ff4343 !important;
    border-color: transparent !important;
}

.creations-wishlist-btn .wishlist-btn.in-wishlist i {
    color: white !important;
}

/* Masquer le texte du bouton */
.creations-wishlist-btn .wishlist-text {
    display: none !important;
}

/* ================================================
   SECTION FILTRES
   ================================================ */

/* Filter card avec glassmorphism */
/* ========== FILTRE COMPACT (barre multi-contrôles) ========== */
.creations-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.7rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(132, 79, 192, 0.18);
    border-radius: var(--radius-lg);
    padding: 0.65rem 1rem;
    box-shadow: 0 4px 14px 0 rgba(132, 79, 192, 0.08);
    position: relative;
    z-index: 1;
}

.creations-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.creations-filter-select {
    flex: 1 1 150px;
    min-width: 130px;
    max-width: 240px;
    background: white !important;
    border: 1.5px solid rgba(132, 79, 192, 0.2) !important;
    border-radius: var(--radius-md, 0.45rem) !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.9rem !important;
    color: var(--color-text-dark) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.creations-filter-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(132, 79, 192, 0.15) !important;
    outline: none;
}

.creations-filter-price {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.creations-filter-price-sep {
    color: #999;
}

.creations-filter-input {
    width: 82px;
    background: white !important;
    border: 1.5px solid rgba(132, 79, 192, 0.2) !important;
    border-radius: var(--radius-md, 0.45rem) !important;
    padding: 0.5rem 0.5rem !important;
    font-size: 0.88rem !important;
    color: var(--color-text-dark) !important;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.creations-filter-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(132, 79, 192, 0.15) !important;
    outline: none;
}

.creations-filter-input::-webkit-outer-spin-button,
.creations-filter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.creations-filter-apply-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1.15rem !important;
    border-radius: var(--radius-md, 0.45rem) !important;
    font-weight: var(--font-weight-semibold) !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
    box-shadow: 0 3px 10px 0 rgba(132, 79, 192, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.creations-filter-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px 0 rgba(132, 79, 192, 0.38) !important;
}

.creations-filter-count {
    margin-left: auto;
    color: #6b6b6b;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.creations-filter-reset-btn {
    background: transparent !important;
    border: 1.5px solid rgba(132, 79, 192, 0.25) !important;
    color: var(--color-primary) !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-md, 0.45rem) !important;
    font-weight: var(--font-weight-semibold) !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.creations-filter-reset-btn:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

/* Bouton « Voir toutes les créations » (état vide) : largeur au contenu, centré,
   ne s'étire pas sur mobile (contrairement au bouton Appliquer de la barre). */
.creations-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

/* Mobile : la barre s'empile, selects et prix pleine largeur */
@media (max-width: 575px) {
    .creations-filter-bar--multi .creations-filter-select {
        flex: 1 1 100%;
        max-width: none;
    }
    .creations-filter-bar--multi .creations-filter-price {
        width: 100%;
        justify-content: space-between;
    }
    .creations-filter-bar--multi .creations-filter-input {
        flex: 1 1 0;
        width: auto;
    }
    .creations-filter-apply-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    .creations-filter-count {
        margin-left: 0;
    }
}

/* Responsive - Tablet */
@media (max-width: 1023px) {
    /* Ajustement margin-top pour navbar tablet (160px) */
    .position-relative.py-5.mb-5 {
        margin-top: 160px !important;
    }

    .creations-hero-card {
        padding: 2rem 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    /* Ajustement margin-top pour navbar mobile (226px) */
    .position-relative.py-5.mb-5,
    .position-relative.py-5.mb-4 {
        margin-top: var(--navbar-offset, 226px) !important;
    }

    .creations-hero-card {
        padding: 2rem 1.5rem;
    }

    .creations-blob {
        filter: blur(40px);
        opacity: 0.1;
    }

    .creations-blob-1 {
        width: 250px;
        height: 250px;
    }

    .creations-blob-2 {
        width: 200px;
        height: 200px;
    }

    .creations-blob-3 {
        width: 180px;
        height: 180px;
    }

    .creations-wishlist-btn {
        width: 40px;
        height: 40px;
    }

    .creations-wishlist-btn i {
        font-size: 1rem;
    }

    /* Filter card responsive */
    .creations-filter-card {
        padding: 1.5rem;
    }

    .creations-filter-card h5 {
        font-size: 1rem;
    }

    .creations-filter-reset-btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* Le bouton Appliquer de la barre passe pleine largeur, mais PAS le bouton
       « Voir toutes les créations » de l'état vide (qui reste au contenu). */
    .creations-filter-apply-btn:not(.creations-empty-btn) {
        width: 100%;
        margin-top: 0;
    }
}
