/* =====================================================
   Jeu de Carte — Oriane Droubay
   Page layout fidèle aux specs Figma (1728px base)
   ===================================================== */

/* ─── Page Wrapper ──────────────────────────────────── */
.jdc-page-wrapper {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    overflow-x: hidden;
}

.jdc-layout-container {
    position: relative;
    width: 1728px;
    margin: 0 auto;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ─── HERO ──────────────────────────────────────────── */
.jdc-hero {
    width: 1728px;
    height: 770px;
    background-image: url('../11- Jeu de carte/mockup_boite.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Descriptif card is positioned via padding-left/top */
    display: flex;
    align-items: flex-end;
    padding: 0 0 0 683px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Descriptif card */
.jdc-descriptif {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 25px 17px;
    gap: 11px;

    width: 403px;
    height: 316px;

    background-image: url('../11- Jeu de carte/Descriptif.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: pointer;
    margin-bottom: 0;
}

.jdc-descriptif:hover .jdc-arrow {
    transform: translateY(8px) rotate(0deg);
}

.jdc-descriptif-text {
    width: 369px;
    height: 257px;
    font-family: 'Source Code Pro', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #101010;
    text-align: left;
    margin: 0;
    white-space: pre-line;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    overflow: hidden;
}

/* BOUTON TOUT VOIR */
.jdc-bouton-tout-voir {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 113px;
    width: 22px;
    height: 13px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.jdc-line-1 {
    display: none;
}

.jdc-arrow {
    margin: 0 auto;
    width: 22px;
    height: 13px;
    transform: rotate(0deg);
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: transform 0.3s ease;
}

.jdc-arrow img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* ─── BLOC 1 : deux planches de cartes côte à côte ─── */
.jdc-bloc-1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 1728px;
    height: 715px;
    flex-shrink: 0;
}

.jdc-cartes-1 {
    width: 884px;
    height: 715px;
    background-image: url('../11- Jeu de carte/Cartes1_x4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.jdc-cartes-2 {
    width: 844px;
    height: 715px;
    background-image: url('../11- Jeu de carte/Cartes2_x4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ─── BLOC 2 : mockup boîte + zone familles émotions ─ */
.jdc-bloc-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 95px;
    width: 1728px;
    height: 746px;
    flex-shrink: 0;
}

.jdc-mockup-boite {
    width: 994px;
    height: 746px;
    background-image: url('../11- Jeu de carte/mockup_boite.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.jdc-zone-emotion {
    width: 510px;
    height: 477px;
    background-image: url('../11- Jeu de carte/Zone-Famille-Emotion.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ─── SÉLECTION AUTRES PROJETS ──────────────────────── */
.jdc-others-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 1434px;
    margin: 90px auto 100px;
}

.jdc-others-title {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #101010;
    margin: 0 0 10px 0;
}

.jdc-selection {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 650px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    gap: 0;
}

.jdc-selection-card {
    position: relative;
    width: 478px;
    height: 650px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    display: block;
}

.jdc-selection-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.jdc-selection-card:hover .jdc-selection-bg {
    transform: scale(1.04);
    filter: brightness(0.9);
}

.jdc-selection-label {
    position: absolute;
    top: 23px;
    right: 27px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #101010;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #101010;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.jdc-selection-card:hover .jdc-selection-label {
    background: #101010;
    color: #FFFFFF;
}

/* ─── Responsive Scaling ─────────────────────────────── */
@media (max-width: 1728px) {
    .jdc-page-wrapper {
        overflow-x: hidden;
    }

    .jdc-layout-container {
        transform: scale(calc(100vw / 1728));
        transform-origin: top left;
        margin: 0;
        /* Keep natural height so page scrolls correctly */
    }
}
