/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
}

/* ================= BODY ================= */
body {
    background-color: #cfd3db;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* ================= CONTAINER ================= */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    width: calc(100% - 80px);
    max-width: 1900px;
    margin: 0 auto;
    padding: 0;
}

/* ================= CARD ================= */
.card {
    flex: 0 0 calc((100% - (4 * 32px)) / 5);
    aspect-ratio: 16 / 10;

    position: relative; /* IMPORTANT */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #000;

    transition: transform 0.35s ease;

    text-decoration: none;
    color: inherit;
}

/* ================= IMAGE ================= */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

/* ================= OVERLAY ================= */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 45%,
        transparent 75%
    );
    pointer-events: none;
}

/* ================= TEXT BLOCK ================= */
.card .text {
    position: absolute;
    left: 20px;
    bottom: 20px;   /* <-- FIX PRINCIPAL */
    z-index: 2;

    display: block; /* PAS FLEX */
}

/* TITRE */
.card span {
    position: absolute;
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 2%;
    transform: translateY(16px);
    transition: transform 0.35s ease;

}

/* DESCRIPTION */
.card .desc {
    margin-top: 8px;
    font-size: 13px;
    color: white;

    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* ================= HOVER ================= */
.card:hover {
    transform: translateY(-6px);
}

.card:hover img {
    transform: scale(1.08);
}

/* Le bloc texte monte */
.card:hover .text {
    transform: translateY(-16px);
    transition: transform 0.35s ease;
}

/* Le bloc texte monte */
.card:hover span {
   margin-top: -3%;
   transform: translateY(-16px);
   transition: transform 0.35s ease;
}

/* Description apparaît */
.card:hover .desc {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1600px) {
    .card {
        flex: 0 0 calc((100% - (3 * 32px)) / 4);
    }
}

@media (max-width: 1200px) {
    .card {
        flex: 0 0 calc((100% - (2 * 32px)) / 3);
    }
}

@media (max-width: 800px) {
    .card {
        flex: 0 0 calc((100% - 32px) / 2);
    }
}

@media (max-width: 500px) {
    .card {
        flex: 0 0 100%;
    }
}

header {
  display: flex;
  align-items: center;
  color: white;

  padding: 30px 40px 0;
  margin-bottom: 30px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: white;

  padding: 10px 18px;
  border-radius: 6px;

  background-color: #dc143c;
}

.hero {
    padding: 30px 40px;
    color: #dc143c;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 12px;
}

footer {
    margin-top: auto;

    text-align: center;
    color: #dc143c;
    opacity: 0.5;
    font-size: 14px;
    padding: 30px 0;
}

.badge-wip {
    position: absolute;
    top: 10px;
    right: 10px;

    z-index: 999; /* important */

    background: rgba(255,152,0,.15);
    border: 1px solid #ff9800;
    color: #ff9800;

    padding: 6px 10px;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 600;

    backdrop-filter: blur(4px);

    pointer-events: none; /* évite les soucis au hover */
}

.badge-beta {
    position: absolute;
    top: 10px;
    right: 10px;

    z-index: 999;

    background: rgba(59,130,246,.15);
    border: 1px solid #3b82f6;
    color: #3b82f6;

    padding: 6px 10px;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 600;

    backdrop-filter: blur(4px);
    pointer-events: none;
}