/* ========================================================
   PHILOSOPHIE HUB — STYLES
   ======================================================== */

/* ===== 1. SECTIONS & CONTAINERS ===== */
.philosophie-hub-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 210px);
    padding: 40px 0 80px 0;
    background: var(--global-white-2);
}

.philosophie-hub-container {
    max-width: 820px;
    width: 80vw;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ===== 2. TEXTE INTRODUCTIF ===== */
.philosophie-hub-intro {
    background: var(--global-white-1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 28px 36px;
}

.philosophie-hub-intro h2 {
    font-family: 'Intertight', sans-serif;
    font-size: var(--txt-size-13);
    font-weight: 700;
    color: var(--txt-color-blackop-90);
    margin: 0 0 12px 0;
}

.philosophie-hub-intro p {
    font-family: 'Inter', sans-serif;
    font-size: var(--txt-size-09);
    color: var(--txt-color-blackop-70);
    line-height: 1.7;
    margin: 0;
}

/* ===== 3. GRILLE DES BOX-LINK ===== */
.philosophie-hub-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 4. BOX-LINK ===== */
.box-link {
    display: flex;
    flex-direction: column;
    background: var(--global-white-1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.box-link:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.box-link-upperpart {
    padding: 24px 32px 20px;
}

.box-link-upperpart h2 {
    font-family: 'Intertight', sans-serif;
    font-size: var(--txt-size-13);
    font-weight: 700;
    color: var(--txt-color-blackop-90);
    margin: 0 0 8px 0;
}

.box-link-upperpart p {
    font-family: 'Inter', sans-serif;
    font-size: var(--txt-size-08);
    color: var(--txt-color-blackop-60);
    line-height: 1.5;
    margin: 0;
}

/* ===== 5. BANDE INFÉRIEURE (accentuation) ===== */
.box-link-lowerpart {
    width: 100%;
    height: 20px;
    position: relative;
    overflow: hidden;
}

.box-link-lowerpart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 0.35s ease;
}

.box-link:hover .box-link-lowerpart::after {
    width: 100%;
}

/* Accent : Philosophie générale — rouge */
.box-link--red .box-link-lowerpart {
    background-color: #d63031;
}
.box-link--red .box-link-lowerpart::after {
    background-color: #ff6b6b;
}

/* Accent : Lexique — bleu-violet */
.box-link--blueviolet .box-link-lowerpart {
    background-color: #865ce7;
}
.box-link--blueviolet .box-link-lowerpart::after {
    background-color: #b59bfe;
}

/* ===== 6. RESPONSIVE ===== */
@media (max-width: 800px) {
    .philosophie-hub-container {
        width: 92vw;
    }
    .philosophie-hub-intro {
        padding: 22px 24px;
    }
    .box-link-upperpart {
        padding: 20px 24px 16px;
    }
}

@media (max-width: 600px) {
    .philosophie-hub-container {
        width: 95vw;
        gap: 24px;
    }
}
