/* Page mécanique — santé mentale */

.sub-section-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.sub-section-btn.is-active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.55);
}

.sub-section-panel {
    display: none;
}

.sub-section-panel.is-visible {
    display: block;
}

.sub-section-content {
    width: 100%;
}

.insanity-text-panel,
.fear-text-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.insanity-text-panel h2,
.fear-text-panel h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    margin: 0 0 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.insanity-text-panel p,
.fear-text-panel p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.insanity-text-panel p:last-child,
.fear-text-panel p:last-child {
    margin-bottom: 0;
}

.insanity-text-panel a,
.fear-text-panel a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

.insanity-text-panel a:hover,
.fear-text-panel a:hover {
    color: white;
}

#fear-table-wrap {
    margin: 16px 0;
}

#fear-table tbody th[scope="row"],
#fear-table tbody td[rowspan] {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .insanity-text-panel,
    .fear-text-panel {
        padding: 18px 20px;
    }

    #fear-table thead th {
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.35;
        vertical-align: bottom;
    }
}
