/* ——— NFT Gallery — alignée sur ere-frise ——— */

.nft-frise {
    position: relative;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px 0 0;
}

/* Ligne verticale — même position que ere-frise */
.nft-ligne {
    position: absolute;
    left: 220px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #B52240 3%, #B52240 97%, transparent);
}

/* Chaque ère */
.nft-era {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 80px;
    min-height: 60px;
}

/* Zone date — à gauche de la ligne */
.nft-era-date-zone {
    width: 200px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 20px;
    padding-top: 18px;
}

.nft-era-date {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    color: rgba(240,237,232,0.7);
    background: rgba(20,20,18,0.6);
    padding: 4px 10px;
    border-radius: 3px;
    border: 0.5px solid rgba(181,34,64,0.4);
    white-space: nowrap;
}

/* Nœud sur la ligne */
.nft-era-dot {
    position: absolute;
    left: 220px;
    top: 14px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #B52240;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 3px #141412, 0 0 0 5px #B52240;
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: #F0EDE8;
}

/* Bloc ère — titre + grille */
.nft-era-content {
    flex: 1;
    margin-left: 60px;
    max-width: 820px;
}

/* Titre ère */
.nft-era-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #F0EDE8;
    font-weight: 400;
    margin: 0 0 32px;
    line-height: 1.2;
    padding-top: 10px;
}

/* ——————————————————————————
   GRILLE NFT
—————————————————————————— */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;  /* chaque carte à sa hauteur naturelle, pas d'étirement */
}

/* ——————————————————————————
   CARTE
—————————————————————————— */
.nft-card {
    background: #F0EDE8;
    border: 2px solid #B52240;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nft-img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.nft-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nft-img-wrap:hover img {
    transform: scale(1.03);
}

.nft-no-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #2C2C2A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888780;
    font-size: 2rem;
}

/* ——————————————————————————
   INFOS CARTE
—————————————————————————— */
.nft-infos {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    background: #F0EDE8;
}

h4.nft-titre {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: #B52240;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.nft-description {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: rgba(44,44,42,0.75);
    line-height: 1.8;
    margin: 0;
}

/* ——————————————————————————
   BOUTON
—————————————————————————— */
.nft-btn {
    display: inline-block;
    margin-top: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 18px;
    border: 1.5px solid #B52240;
    color: #B52240;
    border-radius: 3px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.nft-btn:hover {
    background: #B52240;
    color: #F0EDE8;
    border-color: #B52240;
    text-decoration: none;
}

/* ——————————————————————————
   VIDE / ERREUR
—————————————————————————— */
.nft-empty {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #888780;
    padding: 40px 0;
}

/* ——————————————————————————
   TABLETTE
—————————————————————————— */
@media (max-width: 900px) {
    .nft-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ——————————————————————————
   MOBILE — même logique que ere-frise
—————————————————————————— */
@media (max-width: 680px) {

    .nft-frise {
        padding: 0 16px;
    }

    .nft-ligne {
        left: 20px;
    }

    .nft-era {
        flex-direction: column;
        padding-left: 52px;
    }

    .nft-era-date-zone {
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-left: 0;
        padding-top: 0;
        margin-bottom: 8px;
    }

    .nft-era-dot {
        left: 20px;
        top: 0;
        transform: translateX(-50%);
    }

    .nft-era-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .nft-era-title {
        font-size: 18px;
    }

    .nft-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nft-infos {
        padding: 16px;
    }
}