﻿/* ===== LAYOUT ===== */
.annecdote-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
}

/* ===== HEADER ===== */
.annecdote-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0.3rem 0.9rem;
    background: #ffd4a4;
    border: 2px solid #8b4513;
    border-radius: 10px;
}

.annecdote-soustitre {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a3a1a;
}

.annecdote-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===== SELECTEUR (pastilles numérotées) ===== */
.annecdote-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.annecdote-pill {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 2px solid #8b4513;
    background: #b0c4de;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

    .annecdote-pill:hover {
        background: #ffe8cc;
        transform: translateY(-1px);
    }

.annecdote-pill-active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* ===== SECTION RECIT ===== */
.annecdote-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #ffd4a4;
    border: 2px solid #8b4513;
    border-radius: 10px;
}

.annecdote-titre {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
}

.annecdote-situation {
    background: #e1c7a7;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    text-align: justify;
    color: #222;
}

.annecdote-contexte {
    font-size: 0.85rem;
    font-style: italic;
    color: #5a3a1a;
    text-align: center;
    margin: 0;
}

/* ===== MORALE ===== */
.annecdote-morale {
    background: #fff6ea;
    border: 1px dashed #8b4513;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.annecdote-morale-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a3a1a;
    display: block;
    margin-bottom: 0.4rem;
}

.annecdote-morale p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: #4a3018;
    margin: 0;
}

/* ===== REFERENCES ===== */
.annecdote-references {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.reference-tag {
    background: rgba(139, 69, 19, 0.1);
    color: #5a3a1a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .annecdote-page {
        padding: 1rem;
    }

    .annecdote-header,
    .annecdote-section {
        padding: 1rem;
    }

    .annecdote-situation {
        text-align: left;
    }
}
