/* Conteneurs de cartes (published + fetch) */
.ych-published-container,
#ych-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* =========================
   Cartes : Published YCH 
   ========================= */
.ych-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    margin: 0 auto;
    height: fit-content;
}

.ych-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ych-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 2px solid #f1f1f1;
}

.ych-card h3 {
    font-size: 18px;
    color: #333;
    margin: 10px;
    font-weight: bold;
}

.ych-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    margin-top: 0;
    /* facultatif */
}

/* Pour le message "Sold Out" */
.ych-card .sold-out {
    color: red;
    font-weight: bold;
}

/* =========================
   Cartes : YCH.ART auctions
   ========================= */
.auction-tile {
    /* On reprend le même style que .ych-card */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    margin: 0 auto;
    /* si besoin */
}

.auction-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Gestion des images et vidéos */
.auction-tile img,
.auction-tile video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 2px solid #f1f1f1;
}

/* Contenu interne (ex: titre, temps restant) */
.auction-tile .tile-title {
    font-size: 18px;
    color: #333;
    margin: 10px;
    font-weight: bold;
}

.auction-tile .tile-time {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 5px;
}

.auction-tile .tile-artist,
.auction-tile .tile-price,
.auction-tile .tile-slots {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* =========================
   Bouton commun : "Reserve Slot"
   ========================= */
.reserve-slot-btn {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
    text-align: center;

    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reserve-slot-btn:hover {
    background-color: #2980b9;
}

.reserve-slot-btn:active {
    background-color: #1f6391;
}

.reserve-slot-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

/* =========================
   Modal + Overlay
   ========================= */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999999;
}

#reservationModal {
    position: fixed;
    z-index: 1000000;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 0);
}

nav {
    z-index: 1 !important;
}