﻿/* ===== LAYOUT ===== */
.humour-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
}

/* ===== HEADER ===== */
.humour-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0.3rem 0.9rem;
    background: #ffd4a4;
    border: 2px solid #8b4513;
    border-radius: 10px;
}

.humour-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.humour-souscription {
    font-size: 1rem;
    color: #555;
    font-style: italic;
}

/* ===== SELECTEUR ===== */
.humour-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.humour-pill {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 2px solid #8b4513;
    background: #b0c4de; /*   #fff;*/
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

    .humour-pill:hover {
        background: #ffe8cc;
        transform: translateY(-1px);
    }

.humour-pill-active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* ===== SECTION ===== */
.humour-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #ffd4a4;
    border: 2px solid #8b4513;
    border-radius: 10px;
    text-align: center;
}

.humour-type {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    color: #5a3a1a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.humour-texte {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-toggle-commentaire {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

    .btn-toggle-commentaire:hover {
        background: #2980b9;
    }

.humour-commentaire {
    margin-top: 1.3rem;
    background: #e1c7a7; /*    #fff;*/
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
    text-align: left;
    line-height: 1.7;
    color: #333;
    font-size: 0.95rem;
}

/* ===== PAGINATION ===== */
.humour-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-nav-mineure {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

    .btn-nav-mineure:hover:not(:disabled) {
        background: #2980b9;
    }

    .btn-nav-mineure:disabled {
        background: #b0c4de;
        cursor: not-allowed;
    }

.humour-compteur {
    font-size: 0.85rem;
    color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .humour-page {
        padding: 1rem;
    }

    .humour-header,
    .humour-section {
        padding: 1.2rem 1rem;
    }

    .humour-texte {
        font-size: 1.1rem;
    }
}
