* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f7f8fc;
}

/* BACKGROUND GLOBAL - CHARTE RIVES DE MOSELLE */

.page-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, #eaf8ff 0%, #f8fcff 35%, #edf9df 100%);
}

.bg-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(35px);
    opacity: 0.85;
}

.bg-blob-blue {
    width: 620px;
    height: 620px;
    left: 220px;
    top: 120px;
    background: rgba(39, 170, 225, 0.55);
}

.bg-blob-green {
    width: 720px;
    height: 720px;
    right: -180px;
    bottom: -140px;
    background: rgba(149, 201, 61, 0.55);
}

.bg-blob-darkblue {
    width: 520px;
    height: 520px;
    right: 250px;
    top: 220px;
    background: rgba(0, 110, 183, 0.20);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        radial-gradient(circle at 25% 35%, rgba(39, 170, 225, 0.45) 0 2px, transparent 2px),
        radial-gradient(circle at 75% 65%, rgba(149, 201, 61, 0.45) 0 2px, transparent 2px),
        linear-gradient(120deg, rgba(255,255,255,0.35), transparent 45%);
    background-size: 26px 26px, 30px 30px, 100% 100%;
}


::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.875rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.2s ease;
}

.nav-link i {
    width: 1.25rem;
    text-align: center;
    color: #64748b;
}

.nav-link:hover {
    background: #f8fafc;
    color: #006eb7;
}

.nav-link:hover i,
.nav-link.active i {
    color: #006eb7;
}

.nav-link.active {
    background: rgba(39, 170, 225, 0.12);
    color: #006eb7;
}

/* SWIPER */

.infoSwiper {
    width: 100%;
}

.swiper-pagination {
    position: static !important;
    margin-top: -1.5rem;
    padding-bottom: 1rem;
    text-align: right !important;
    padding-right: 1.5rem;
}

.swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    background: #006eb7;
}

.slide-card {
    display: flex;
    min-height: 175px;
    align-items: center;
    gap: 1.5rem;
    background-image: linear-gradient(to right, var(--tw-gradient-from), transparent);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .slide-card {
        padding: 2rem;
    }
}

.slide-icon {
    display: flex;
    height: 3.75rem;
    width: 3.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    border-width: 1px;
    background: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.slide-kicker {
    display: inline-flex;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slide-title {
    margin-bottom: 0.4rem;
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .slide-title {
        font-size: 1.5rem;
    }
}

.slide-text {
    max-width: 680px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

.slide-button {
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    border: 1px solid #e5e7eb;
    background: white;
    padding: 0.7rem 1rem;
    color: #006eb7;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.slide-button:hover {
    border-color: #27aae1;
    transform: translateY(-1px);
}

/* APPLICATIONS */

.app-card {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
    box-shadow:
        0 18px 35px rgba(0, 110, 183, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.app-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    background: linear-gradient(90deg, #27aae1, #95c93d);
    opacity: 0.85;
}

.app-card i {
    position: relative;
    z-index: 1;
    margin-bottom: 0.85rem;
    font-size: 2rem;
    transition: transform 0.25s ease;
}

.app-card span {
    position: relative;
    z-index: 1;
    padding-inline: 0.5rem;
    color: #1f2937;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 45px rgba(0, 110, 183, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-card:hover::before {
    inset: auto -10% -35% -10%;
}

.app-card:hover i {
    transform: scale(1.12);
}



/* BLOBS APPLICATIONS */

.app-blob {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(255, 255, 255, 0.7);

    backdrop-filter: blur(12px);

    box-shadow:
        0 15px 35px rgba(0, 110, 183, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.8);

    transition: all 0.35s ease;

    text-align: center;
}

.app-blob::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 14px;

    background: linear-gradient(
        90deg,
        rgba(39,170,225,0.95),
        rgba(149,201,61,0.95)
    );
}

.app-blob:hover {
    transform: translateY(-10px) scale(1.04);

    box-shadow:
        0 25px 50px rgba(0, 110, 183, 0.20),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.app-blob i {
    position: relative;
    z-index: 1;

    margin-bottom: 1rem;

    font-size: 2.2rem;

    transition: transform 0.3s ease;
}

.app-blob:hover i {
    transform: scale(1.15);
}

.app-blob span {
    position: relative;
    z-index: 1;

    padding-inline: 0.5rem;

    font-size: 0.82rem;
    font-weight: 800;

    color: #1f2937;

    line-height: 1.2;
}

/* FORMES PATATOÏDES */

.blob-shape-1 {
    border-radius: 41% 59% 45% 55% / 41% 45% 55% 59%;
}

.blob-shape-2 {
    border-radius: 53% 47% 65% 35% / 54% 53% 47% 46%;
}

.blob-shape-3 {
    border-radius: 39% 61% 33% 67% / 59% 37% 63% 41%;
}

.blob-shape-4 {
    border-radius: 45% 55% 38% 62% / 51% 43% 57% 49%;
}

.app-blob:hover {
    border-radius: 32%;
}


/* ACTUALITÉS */

.news-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.news-visual {
    display: flex;
    height: 9rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-visual i {
    font-size: 2.75rem;
    transition: transform 0.4s ease;
}

.news-card:hover .news-visual i {
    transform: scale(1.12) rotate(-3deg);
}

.news-kicker {
    display: inline-flex;
    margin-bottom: 0.6rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 800;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.news-card:hover h3 {
    color: #006eb7;
}

.news-card p {
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.82rem;
    line-height: 1.55;
}

.news-card small {
    color: #9ca3af;
    font-size: 0.72rem;
}

/* Couleurs des icônes applications */

.icon-orange {
    color: #faa41a;
}

.icon-darkblue {
    color: #006eb7;
}

.icon-turquoise {
    color: #00b7d1;
}

.icon-green {
    color: #95c93d;
}

.icon-mauve {
    color: #aa5da5;
}

.icon-blue {
    color: #27aae1;
}

.icon-yellow {
    color: #ffcb05;
}

.icon-black {
    color: #3a393a;
}



/* BACK-OFFICE */

.admin-card {
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.90);
    padding: 1.5rem;
    box-shadow:
        0 18px 35px rgba(0, 110, 183, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-card-header h2 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 900;
}

.admin-card-header p {
    color: #6b7280;
    font-size: 0.85rem;
}

.admin-card-header i {
    font-size: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    border: 1px solid #d1d5db;
    border-radius: 0.85rem;
    background: rgba(255,255,255,0.95);
    padding: 0.75rem 0.85rem;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: #27aae1;
    box-shadow: 0 0 0 3px rgba(39,170,225,0.18);
}

.admin-checkbox {
    flex-direction: row !important;
    align-items: center;
}

.admin-checkbox input {
    width: auto;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 900;
    transition: all 0.2s ease;
}

.admin-primary-button {
    background: #006eb7;
    color: white;
}

.admin-primary-button:hover {
    background: #27aae1;
    transform: translateY(-1px);
}

.admin-secondary-button {
    border: 1px solid #d1d5db;
    background: white;
    color: #006eb7;
}

.admin-secondary-button:hover {
    border-color: #27aae1;
    transform: translateY(-1px);
}

.admin-danger-button {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-danger-button:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.admin-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: white;
    padding: 0.85rem;
}

.admin-list-item strong {
    display: block;
    color: #111827;
    font-size: 0.85rem;
    font-weight: 900;
}

.admin-list-item span {
    display: block;
    max-width: 220px;
    overflow: hidden;
    color: #6b7280;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-list-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.4rem;
}

.admin-list-actions button {
    border-radius: 0.65rem;
    background: #eef8ff;
    padding: 0.45rem 0.6rem;
    color: #006eb7;
    font-size: 0.72rem;
    font-weight: 900;
}

.admin-list-actions button:hover {
    background: #dff2ff;
}

.admin-list-actions button.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-list-actions button.danger:hover {
    background: #fecaca;
}


/* CONNEXION BACK-OFFICE */

.admin-login-screen {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-login-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem;
    box-shadow:
        0 24px 55px rgba(0, 110, 183, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
}

.admin-login-logo {
    display: flex;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, #006eb7, #27aae1);
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 14px 30px rgba(0, 110, 183, 0.25);
}

.admin-login-kicker {
    margin-bottom: 0.35rem;
    color: #006eb7;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-login-card h1 {
    margin-bottom: 0.4rem;
    color: #111827;
    font-size: 1.75rem;
    font-weight: 900;
}

.admin-login-text {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.admin-login-card label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-login-card input {
    border: 1px solid #d1d5db;
    border-radius: 0.95rem;
    background: rgba(255,255,255,0.95);
    padding: 0.85rem 1rem;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.admin-login-card input:focus {
    border-color: #27aae1;
    box-shadow: 0 0 0 3px rgba(39,170,225,0.18);
}

.admin-login-error {
    margin-bottom: 1rem;
    border-radius: 0.9rem;
    background: #fee2e2;
    padding: 0.75rem 1rem;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-login-back {
    display: block;
    margin-top: 1rem;
    text-align: center;
    color: #006eb7;
    font-size: 0.85rem;
    font-weight: 800;
}

.admin-login-back:hover {
    text-decoration: underline;
}

/* CORRECTION ALIGNEMENT LISTES BACK-OFFICE */

.admin-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;

    width: 100%;
    overflow: hidden;
}

.admin-list-item > div:first-child {
    min-width: 0;
}

.admin-list-item strong {
    display: block;
    max-width: 100%;
    overflow: hidden;

    color: #111827;
    font-size: 0.85rem;
    font-weight: 900;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-list-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;

    color: #6b7280;
    font-size: 0.72rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-list-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.admin-list-actions button {
    white-space: nowrap;
}


/* ORGANIGRAMME */

.org-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.90);
    padding: 1.35rem;
    box-shadow:
        0 18px 35px rgba(0, 110, 183, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    transition: all 0.25s ease;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 24px 42px rgba(0, 110, 183, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.95);
}

.org-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #27aae1, #95c93d);
}

.org-card-manager {
    max-width: 720px;
    margin-inline: auto;
}

.org-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.org-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #006eb7, #27aae1);
    color: white;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 110, 183, 0.22);
}

.org-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(149, 201, 61, 0.18);
    color: #5f8d11;
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.org-name {
    margin-bottom: 0.25rem;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
}

.org-title {
    margin-bottom: 1rem;
    color: #006eb7;
    font-size: 0.85rem;
    font-weight: 800;
}

.org-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.org-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 600;
}

.org-contact-item i {
    width: 1rem;
    color: #27aae1;
    text-align: center;
}

.org-description {
    color: #6b7280;
    font-size: 0.83rem;
    line-height: 1.6;
}


/* PHOTO ORGANIGRAMME */

.photo-avatar {
    padding: 0;
    overflow: hidden;
    background: white;
}

.photo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* =========================================================
   BACK-OFFICE PHP - ONGLETS ADMIN
   ========================================================= */

.admin-tabs-wrapper {
    position: sticky;
    top: 1rem;
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px);
}

.admin-tabs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.admin-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 1.15rem;
    padding: 0.95rem 1rem;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-tab-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 110, 183, 0.16);
}

.admin-tab-link i {
    font-size: 1rem;
}

.admin-tab-link-active {
    background: linear-gradient(135deg, #006eb7, #27aae1);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 110, 183, 0.25);
}

.admin-tab-link-inactive {
    background: #ffffff;
    color: #4b5563;
}

.admin-tab-link-inactive:hover {
    color: #006eb7;
}


/* MOBILE */

@media (max-width: 767px) {

    .slide-card {
        align-items: flex-start;
        gap: 1rem;
    }

    .slide-icon {
        height: 3rem;
        width: 3rem;
        border-radius: 1.1rem;
        font-size: 1.25rem;
    }

    .swiper-pagination {
        text-align: center !important;
        padding-right: 0;
    }
}

@media (max-width: 520px) {
    .admin-list-item {
        grid-template-columns: 1fr;
    }

    .admin-list-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 640px) {
    .admin-tabs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .admin-tabs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .admin-tabs-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}


/* =========================================================
   BASE DE CONNAISSANCE - NOUVELLE PRÉSENTATION
   ========================================================= */

.kb-page-container {
    max-width: 1150px;
    margin: 0 auto;
}

.kb-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 2rem;
    background:
        radial-gradient(circle at top left, rgba(39, 170, 225, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(149, 201, 61, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.9);
    padding: 2rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px);
}

.kb-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(0, 110, 183, 0.08);
    padding: 0.55rem 0.9rem;
    color: #006eb7;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kb-hero h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
}

.kb-hero p {
    margin-top: 1rem;
    max-width: 720px;
    color: #5f6673;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.65;
}

.kb-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.kb-hero-stats div {
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    padding: 1.1rem;
    text-align: center;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
}

.kb-hero-stats strong {
    display: block;
    color: #006eb7;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
}

.kb-hero-stats span {
    display: block;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kb-search-panel {
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(18px);
}

.kb-search-box {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid rgba(0, 110, 183, 0.12);
    border-radius: 1.25rem;
    background: #ffffff;
    padding: 0.95rem 1.1rem;
}

.kb-search-box i {
    color: #006eb7;
    font-size: 1rem;
}

.kb-search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 700;
}

.kb-search-box input::placeholder {
    color: #9ca3af;
    font-weight: 700;
}

.kb-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.kb-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: none;
    border-radius: 999px;
    background: #f3f7fb;
    padding: 0.7rem 0.95rem;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kb-filter-button:hover {
    transform: translateY(-1px);
    background: #eaf6ff;
    color: #006eb7;
}

.kb-filter-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 950;
}

.kb-filter-active {
    background: linear-gradient(135deg, #006eb7, #27aae1);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 110, 183, 0.22);
}

.kb-resources-panel {
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(18px);
}

.kb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.25rem 1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.kb-section-header h3 {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 950;
}

.kb-section-header p {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
}

.kb-section-header > i {
    color: rgba(0, 110, 183, 0.22);
    font-size: 2.4rem;
}

.kb-resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kb-resource-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 1.35rem;
    background: #ffffff;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kb-resource-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 110, 183, 0.18);
    box-shadow: 0 18px 38px rgba(0, 110, 183, 0.10);
}

.kb-resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1.05rem;
    font-size: 1.25rem;
}

.kb-icon-cyan {
    background: rgba(39, 170, 225, 0.12);
    color: #27aae1;
}

.kb-icon-green {
    background: rgba(149, 201, 61, 0.14);
    color: #76a82a;
}

.kb-icon-blue {
    background: rgba(0, 110, 183, 0.12);
    color: #006eb7;
}

.kb-icon-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
}

.kb-icon-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.kb-icon-purple {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.kb-resource-main {
    min-width: 0;
}

.kb-resource-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.kb-type-pill,
.kb-category-pill,
.kb-featured-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.kb-type-pill {
    background: rgba(0, 110, 183, 0.08);
    color: #006eb7;
}

.kb-category-pill {
    background: rgba(149, 201, 61, 0.13);
    color: #5f8f1f;
}

.kb-featured-pill {
    background: rgba(249, 115, 22, 0.13);
    color: #c2410c;
}

.kb-resource-item h4 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.3;
}

.kb-resource-description {
    margin-top: 0.45rem;
    color: #5f6673;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
}

.kb-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.kb-resource-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 850;
}

.kb-resource-meta i {
    color: #006eb7;
}

.kb-resource-action a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #006eb7, #27aae1);
    padding: 0.68rem 0.95rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 110, 183, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kb-resource-action a:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 110, 183, 0.26);
}

.kb-empty-state {
    border: 1px dashed rgba(0, 110, 183, 0.22);
    border-radius: 1.4rem;
    background: rgba(239, 248, 255, 0.72);
    padding: 2rem;
    text-align: center;
}

.kb-empty-state i {
    margin-bottom: 0.85rem;
    color: #006eb7;
    font-size: 2rem;
}

.kb-empty-state h4 {
    color: #111827;
    font-size: 1.15rem;
    font-weight: 950;
}

.kb-empty-state p {
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .kb-resource-item {
        grid-template-columns: auto 1fr;
        align-items: flex-start;
    }

    .kb-resource-action {
        grid-column: 1 / -1;
    }

    .kb-hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .kb-hero {
        flex-direction: row;
        align-items: center;
    }
}


/* =========================================================
   SIDEBAR BRAND / LOGO
   ========================================================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    width: 100%;
}

.sidebar-brand-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 1rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 110, 183, 0.14);
    border: 1px solid rgba(0, 110, 183, 0.08);
}

.sidebar-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-brand-text h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: #006eb7;
    text-transform: uppercase;
}

.sidebar-brand-text p {
    margin: 0.25rem 0 0 0;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    color: #6b7280;
    text-transform: uppercase;
}



/* =========================================================
   FOND PRINCIPAL RIVES DE MOSELLE
   Zone située sous le header et à droite de la sidebar
   ========================================================= */

.intranet-main-background {
    position: relative;

    background-image: url('images/fond-rdm.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* Le fond reste stable lorsque le contenu défile */
    background-attachment: local;
}


/* =========================================================
   VIVA ENGAGE - ACTUALITÉS
   ========================================================= */

.viva-engage-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;

    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.viva-engage-iframe {
    display: block;
    width: 100%;
    min-width: 100%;
    height: 700px;
    border: 0;
}