/*-----------------------------------------------------------------------------------------
          Copyright GEYACOM SARL
          James GERVIL-YAMBALA - Private Property
          2026/04/02 - Version 2.0
-----------------------------------------------------------------------------------------*/

:root {
    --green-dark: #3f8f1f;
    --green-main: #61af25;
    --green-light: #7fd356;
    --green-soft: #f1f9ec;
    --green-border: #d2e9c3;
    --text-dark: #244018;
    --text-soft: #617456;
    --white: #ffffff;
    --danger: #b3261e;
    --shadow: rgba(62, 111, 33, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
}

.portal-body {
    background: #f8fcf6;
}

.topband {
    background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-main) 100%);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.wrapper {
    max-width: 1180px;
    margin: 28px auto 40px;
    padding: 0 20px;
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f2faed 100%);
    border: 1px solid var(--green-border);
    border-radius: 20px;
    box-shadow: 0 12px 36px var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 28px 30px;
    flex-wrap: wrap;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 280px;
    flex: 1;
}

.hero-left img {
    width: 110px;
    height: auto;
    border-radius: 12px;
    background: rgba(127, 211, 86, 0.10);
    padding: 8px;
}

.hero-text h1 {
    margin: 0 0 6px;
    font-size: 32px;
    color: var(--green-dark);
}

.hero-text p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.welcome-badge {
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid var(--green-border);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: bold;
}

.logout-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--green-main);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(97, 175, 37, 0.20);
}

.logout-btn:hover {
    filter: brightness(0.97);
}

.section {
    margin-bottom: 24px;
}

.section + .section {
    margin-top: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--green-border);
}

.section-title h2 {
    margin: 0;
    font-size: 24px;
    color: var(--green-dark);
}

.section-title p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border: 1px solid var(--green-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px var(--shadow);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f4fbef 0%, #e7f6dc 100%);
    border: 1px solid var(--green-border);
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.card .tag {
    display: inline-block;
    margin-bottom: 0;
    font-size: 12px;
    font-weight: bold;
    color: var(--green-dark);
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    padding: 6px 10px;
    border-radius: 999px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    color: var(--green-dark);
}

.card p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
    min-height: 64px;
}

.card a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green-main) 100%);
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.portal-note {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf6 100%);
    border: 1px solid var(--green-border);
    border-radius: 16px;
    padding: 18px 20px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
    box-shadow: 0 8px 24px var(--shadow);
}

.footer {
    margin-top: 24px;
    text-align: center;
    color: #75886a;
    font-size: 13px;
}

table th,
table td {
    font-size: 14px;
}

/* Couleurs par catégorie */

.section-blue .icon-badge {
    background: #e8f1ff;
    border-color: #c7dbff;
}

.section-blue .tag {
    background: #e8f1ff;
    color: #1f4fbf;
}

.section-green .icon-badge {
    background: #e7f6dc;
    border-color: #cfe8bf;
}

.section-green .tag {
    background: #e7f6dc;
    color: #2f7a1f;
}

.section-purple .icon-badge {
    background: #f3e8ff;
    border-color: #e0ccff;
}

.section-purple .tag {
    background: #f3e8ff;
    color: #6a2fbf;
}

.section-orange .icon-badge {
    background: #fff1e6;
    border-color: #ffd9c2;
}

.section-orange .tag {
    background: #fff1e6;
    color: #b85c00;
}

@media (max-width: 780px) {
    .hero-inner {
        align-items: flex-start;
    }

    .hero-right {
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 27px;
    }
}