/* MODAL PLEIN ÉCRAN */
.swipe-modal {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    /* Glow multicolore */
    background: radial-gradient(circle at center,
        rgba(255, 0, 150, 0.35),   /* rose */
        rgba(0, 150, 255, 0.30),   /* bleu */
        rgba(0, 255, 180, 0.25),   /* turquoise */
        rgba(255, 200, 0, 0.20),   /* jaune doux */
        rgba(0, 0, 0, 0.85)        /* fondu vers noir */
    );

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 99999 !important;
}


/* CONTENU EN COLONNE — card remontée */
.swipe-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 8vh;
    box-sizing: border-box;
}

/* SWIPER */
.swipe-modal .swiper {
    width: 100vw;
    height: 72vh;
    overflow: visible !important;
}

.swiper-wrapper {
    overflow: visible !important;
}

/* SLIDE */
.swiper-slide {
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* CARD */
.card-art {
    width: 95%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    min-height: 420px !important;
}

/* IMAGE */
.card-image {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

/* TEXTES */
.card-info {
    text-align: center;
    margin-top: 14px !important;
    margin-bottom: 14px !important;
}

.card-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #000 !important;
}

/* TECHNIQUE */
.card-technique,
.card-dimensions {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-top: 4px;
    text-align: center;
}

/* PRIX */
.card-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-top: 10px;
    text-align: center;
}

/* ANIMATIONS TINDER */
.card-art.swipe-left {
    transition: transform 0.45s ease-out, opacity 0.45s ease-out;
    transform: translate(-120%, -40%) rotate(-12deg);
    opacity: 0;
}

.card-art.swipe-right {
    transition: transform 0.45s ease-out, opacity 0.45s ease-out;
    transform: translate(120%, -40%) rotate(12deg);
    opacity: 0;
}

.card-art.swipe-up-tilted {
    transition: transform 0.45s ease-out, opacity 0.45s ease-out;
    transform: translateY(-120%) rotate(-4deg);
    opacity: 0;
}

/* GRAND CŒUR — ANIMATION LIKE + CHIFFRE AU CENTRE */
.heart-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    width: 120px;
    height: 120px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-out;
    z-index: 9999;
}

.heart-animation::before {
    content: "❤️";
    font-size: 120px;
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
    pointer-events: none;
}

/* MODAL COUPS DE COEUR */
.hearts-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 999999 !important;
    justify-content: center;
    align-items: center;
}

.hearts-modal-inner {
    background: #000;
    color: #fff !important;
    padding: 28px;
    border-radius: 20px;
    width: 80%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    animation: modalPop 0.35s ease-out;
    margin-top: -50px;
}

.hearts-modal-inner h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.3px;
}

@keyframes modalPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hearts-modal-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 26px;
    background: #00d620 !important;
    color: #fff !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 214, 32, 0.35);
    transition: transform 0.2s ease;
}

.hearts-modal-btn:active {
    transform: scale(0.95);
}

/* BOUTON FERMER */
.close-swipe-modal {
    position: absolute;
    top: 8px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: #2bbf22!important;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}

.close-swipe-modal:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}

.close-swipe-modal:active {
    transform: scale(0.92);
}

/* SWIPE HINT */
.swipe-hint {
    animation: swipeHint 1.4s ease-out;
}

@keyframes swipeHint {
    0%   { transform: translateX(0) translateY(0); }
    20%  { transform: translateX(-40px) rotate(-2deg); }
    50%  { transform: translateX(40px) rotate(2deg); }
    70%  { transform: translateX(-20px) rotate(-1deg); }
    85%  { transform: translateY(-35px) rotate(-3deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}
