/* ==============================================
   ARTISTE AU HASARD - Page template
   ============================================== */

.artiste-hasard-page {
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) 20px 60px;
    text-align: center;
}

/* Reset liens dans cette page */
.artiste-hasard-page a,
.artiste-hasard-page a:visited,
.artiste-hasard-page a:hover,
.artiste-hasard-page a:active {
    text-decoration: none;
}

/* Card */
.artiste-hasard-card {
    border: 3px solid var(--noir);
    background: var(--blanc);
    margin: 30px 0;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.artiste-hasard-card:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 var(--noir);
}

.artiste-hasard-card-link {
    text-decoration: none;
    color: var(--noir);
    display: block;
}

.artiste-hasard-card .artiste-card-image {
    overflow: hidden;
    border-bottom: 3px solid var(--noir);
}

.artiste-hasard-card .artiste-card-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artiste-hasard-card:hover .artiste-card-image img {
    transform: scale(1.03);
}

.artiste-hasard-card .artiste-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--noir);
    height: 300px;
}

.artiste-hasard-card .artiste-initiale {
    font-size: 6rem;
    font-weight: 900;
    color: var(--blanc);
}

.artiste-hasard-content {
    padding: 25px;
}

.artiste-hasard-content .artiste-card-nom {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    line-height: 1.2;
    font-family: var(--font-headings);
}

.artiste-hasard-content .artiste-card-dates {
    font-size: 0.9rem;
    color: var(--gris-texte);
    margin: 0 0 4px 0;
}

.artiste-hasard-content .artiste-card-nationalite {
    font-size: 0.9rem;
    color: var(--gris-texte);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.artiste-hasard-content .artiste-card-bio {
    font-size: 0.95rem;
    color: var(--noir);
    margin: 0;
    line-height: 1.6;
    font-family: var(--font-body);
}

/* Actions */
.artiste-hasard-actions {
    display: flex;
    gap: 0;
    border-top: 3px solid var(--noir);
}

.artiste-hasard-page .btn-artiste-hasard {
    display: inline-block;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
}

/* Fiche : fond noir, texte blanc */
.artiste-hasard-page a.btn-artiste-hasard--fiche,
.artiste-hasard-page a.btn-artiste-hasard--fiche:visited {
    flex: 1;
    background: var(--noir);
    color: var(--blanc);
}

.artiste-hasard-page a.btn-artiste-hasard--fiche:hover {
    background: var(--bleu);
    color: var(--blanc);
}

/* Wikipedia : fond blanc, texte noir */
.artiste-hasard-page a.btn-artiste-hasard--wiki,
.artiste-hasard-page a.btn-artiste-hasard--wiki:visited {
    flex: 1;
    background: var(--blanc);
    color: var(--noir);
    border-left: 3px solid var(--noir);
}

.artiste-hasard-page a.btn-artiste-hasard--wiki:hover {
    background: var(--noir);
    color: var(--blanc);
}

/* Rejouer : fond bleu, texte blanc */
.artiste-hasard-rejouer {
    margin-top: 10px;
}

.artiste-hasard-page a.btn-artiste-hasard--rejouer,
.artiste-hasard-page a.btn-artiste-hasard--rejouer:visited {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    background: var(--bleu);
    color: var(--blanc);
    border: 3px solid var(--noir);
}

.artiste-hasard-page a.btn-artiste-hasard--rejouer:hover {
    background: var(--noir);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--bleu);
}

/* Responsive */
@media (max-width: 480px) {
    .artiste-hasard-actions {
        flex-direction: column;
    }

    .btn-artiste-hasard--wiki {
        border-left: none;
        border-top: 3px solid var(--noir);
    }

    .artiste-hasard-card .artiste-card-image img,
    .artiste-hasard-card .artiste-card-placeholder {
        height: 220px;
    }
}
