/* ============================================
   POLITIQUE-MENTIONS-STYLE.CSS
   Styles pour la page politique-mentions.html
   ============================================ */

/* ── Onglets ── */
.tab-switcher {
    display: flex;
    margin-bottom: 32px;
    border-radius: 40px;
    overflow: hidden;
    border: 2px solid var(--accent);
    background: var(--panel-light, #FAF9F6);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
    width: fit-content;
    gap: 0;
}

.tab-btn {
    padding: 9px 28px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--accent);
    border: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease, flex-grow 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-radius: 38px;
    /* Ne se réduit jamais : son titre reste toujours entier, ce sont les
       autres onglets qui se compriment (et tronquent) pour lui faire de la place. */
    flex-shrink: 0;
}

.tab-btn:not(.active):hover {
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    border-radius: 38px;
}

/* ── Panneaux ── */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Cards de sections ── */
.mentions-section {
    background: var(--panel-light, #FAF9F6);
    border-radius: var(--card-radius, 8px);
    border: 1px solid rgba(26, 82, 56, 0.1);
    padding: 22px 24px 18px;
    box-shadow: var(--shadow-md, 0 4px 20px rgba(44,53,57,.05));
}

.mentions-section h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 6px;
}

.mentions-section h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--accent-gold, #b89e14);
    border-radius: 2px;
    margin: 6px 0 12px;
}

.mentions-section p,
.mentions-section ul {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

.mentions-section p:last-child,
.mentions-section ul:last-child {
    margin-bottom: 0;
}

.mentions-section ul {
    padding-left: 20px;
}

.mentions-section li {
    margin-bottom: 5px;
}

.mentions-section a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    transition: border-color 0.2s ease;
}

.mentions-section a:hover {
    border-bottom-color: var(--accent);
}

.mentions-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Responsive mobile ── */
@media (max-width: 768px) {
    /* 3 onglets dépassent la largeur d'un téléphone avec le padding desktop :
       l'onglet actif garde son titre entier (flex-shrink:0 ci-dessus), les
       deux autres se compriment et tronquent (ellipsis) pour tenir dans
       la largeur de l'écran — pas de scroll horizontal nécessaire. */
    .tab-switcher {
        width: 100%;
        max-width: 100%;
    }

    .tab-btn {
        padding: 8px 18px;
        font-size: 0.82rem;
        min-width: 64px;
    }

    .mentions-section {
        padding: 16px 16px 14px;
    }

    .mentions-section h2 {
        font-size: 1.05rem;
    }

    .mentions-section p,
    .mentions-section ul {
        font-size: 0.92rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 7px 14px;
        font-size: 0.76rem;
    }
}
