/* ==========================================================================
   Bloc Mots Clefs
   Figma: node 3115:1922 — Style "Texte mots clefs" (3156:1258)
   ========================================================================== */

.mots-clefs {
    width: 100%;
    max-width: var(--container-max-width, 1512px);
    margin: 0 auto;
    margin-bottom: 60px; /* Espace pour les blips décoratifs du bloc suivant (chiffres) */
    padding: 0 max(var(--marge-laterale), env(safe-area-inset-right)) 0 max(var(--marge-laterale), env(safe-area-inset-left));
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-sizing: border-box;
}

.mots-clefs__word {
    font-family: 'tt-commons-pro', 'TT Commons Pro', sans-serif;
    font-size: 25px; /* +2pt (23px → 25px) — #638 */
    font-weight: 300;
    line-height: 25px;
    color: #000;
    text-align: center;
    letter-spacing: 0;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (orientation: portrait) and (max-width: 1032px) {
    .mots-clefs {
        height: auto;
        min-height: 80px;
        padding: 20px var(--marge-laterale);
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
        margin-bottom: 24px; /* aligné avec blip thickness mobile (CONFIG.thickness = 24px) */
    }

    .mots-clefs__word {
        font-size: 19px;
        flex: 0 0 calc(50% - 12px); /* #643 — 2 colonnes équilibrées (2/2), gap column = 24px donc 12px de chaque côté */
        width: calc(50% - 12px);
        text-align: center;
        box-sizing: border-box;
    }
}
