/* ============================================================
   assets/style/glossary.css
   Styles spécifiques à la page Glossaire (glossary.html)
   ============================================================ */

/* --- Hero / header de la page --- */
.page-hero {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem;
    border-bottom: 2px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 3rem;
}
.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}
.page-hero h1 .highlight {
    color: #e94560;
}
.page-hero p {
    font-size: 1.15rem;
    color: #555;
    max-width: 680px;
    margin: 0.5rem auto 0;
}

/* --- Grille du glossaire --- */
.glossary-container {
    max-width: 1100px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

/* --- Carte individuelle --- */
.term-card {
    background: #ffffff;
    padding: 1.6rem 1.8rem;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #e94560;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.term-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
}

.term-card .term {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.3px;
}

/* Petit label "tag" pour indiquer la catégorie (optionnel) */
.term-card .tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #e94560;
    background: rgba(233, 69, 96, 0.08);
    padding: 0.15rem 0.7rem;
    border-radius: 30px;
    margin-bottom: 0.5rem;
}

.term-card .definition {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.term-card .definition strong {
    color: #1a1a2e;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .page-hero h1 {
        font-size: 2.1rem;
    }
    .term-card {
        padding: 1.2rem 1.4rem;
    }
}

@media (max-width: 480px) {
    .term-card .term {
        font-size: 1.1rem;
    }
    .term-card .definition {
        font-size: 0.92rem;
    }
}