:root {
    --x-navy: #00416b;
    --x-teal: #29c3c7;
    --x-teal-hover: #50afb1;
    --x-teal-active: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), #29c3c7;
    --x-text: #00416b;
    --x-top-bg: #ffffff;
}

body {
    background: linear-gradient(to bottom, #ededed, #ffffff);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* --- Header --- */

.site-header {
    flex-shrink: 0;
    font-family: "Barlow", sans-serif;
}

.header-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.header-top {
    background: var(--x-top-bg);
    overflow: hidden;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-top-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.header-top-links li {
    margin: 0;
}

.header-top-links a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 12.5px;
    white-space: nowrap;
}

.header-top-links a:hover {
    text-decoration: underline;
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.header-profile {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 12.5px;
    padding: 8px 12px;
    background: #ededed;
    margin-right: 0.5rem;
}

.header-profile:hover {
    color: #000;
    background: #e0e0e0;
}

.header-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: var(--x-teal-active);
    text-decoration: none;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 12.5px;
    white-space: nowrap;
}

.header-login:hover {
    color: #fff;
    background: var(--x-navy);
}

.header-login .bi {
    color: #fff !important;
    font-size: 14px;
}

.header-main {
    background: var(--x-navy);
    color: #fff;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    max-width: 60%;
}

.header-logo {
    height: auto;
    width: auto;
    max-height: 60px;
    max-width: 100%;
    display: block;
}

.header-main-spacer {
    flex: 1;
}

.header-lang {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 105px;
    font-size: 20px;
    line-height: 1;
    position: relative;
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.header-lang-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.header-lang-btn:not(.active) {
    opacity: 0.85;
}

.header-lang-btn.active {
    font-weight: 600;
}

.header-lang-btn:hover {
    opacity: 1;
}

.header-lang-sep {
    color: #fff;
    margin: 0 8px;
    font-size: 20px;
    pointer-events: none;
}

.header-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.header-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-nav-toggle-close {
    display: none;
}

.site-header.nav-open .header-nav-toggle-open {
    display: none;
}

.site-header.nav-open .header-nav-toggle-close {
    display: inline;
}

.header-nav {
    background: #fff;
    border-bottom: 1px solid #d5d5d5;
}

.header-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

.header-nav-list li {
    margin: 0;
}

.header-nav-list a {
    display: block;
    padding: 14px 16px;
    color: var(--x-text);
    text-decoration: none;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    background: transparent;
}

.header-nav-list a:hover {
    color: #fff;
    background: var(--x-teal-active);
}

.header-nav-list a.active {
    color: #fff;
    background: var(--x-teal-active);
}

.page-title {
    font-family: "Barlow", sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--x-text);
    text-align: center;
}

.page-search-input {
    font-family: "Barlow", sans-serif;
}

.page-search-input:focus {
    border-color: var(--x-teal);
    box-shadow: 0 0 0 0.2rem rgba(41, 195, 199, 0.25);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Contenu --- */

.link-list li {
    margin-bottom: 0.4rem;
}

.link-list a {
    transition: ease 0.5s;
    padding: 2px 6px;
    word-break: break-word;
}

.link-list i {
    margin-right: 8px;
    color: #f6f9ff;
}

.card-header {
    background: #f1f5ff;
    border-bottom: 1px solid #e0e7ff;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.37);
}

.bi {
    color: rgb(13, 110, 253) !important;
}

.link-list a:hover {
    transition: ease 0.5s;
    color: #ffffff;
    background-color: #007bff;
    border-radius: 6px;
}

/* --- Footer --- */

.main-content {
    padding-bottom: 4rem;
}

.site-footer {
    font-family: "Barlow", sans-serif;
    margin-top: 2rem;
}

.footer-main {
    background-color: #01395c;
    color: #fff;
    padding: 35px 0 25px;
}

.footer-main-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.footer-brand {
    flex: 0 0 167px;
}

.footer-brand img {
    width: 167px;
    max-width: 100%;
    height: auto;
    display: block;
}

.footer-columns {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1rem;
    min-width: 0;
}

.footer-col {
    width: auto;
    min-width: 0;
    padding: 0;
}

.footer-col-title {
    font-family: "Barlow", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.2;
}

.footer-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    padding: 8px 0;
    word-break: break-word;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), #29c3c7;
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-copyright {
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.footer-legal a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.2;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-social-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-follow {
    color: #fff;
    font-size: 15px;
    line-height: 12.5px;
    white-space: nowrap;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff !important;
    border: 1px solid #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-social .bi {
    color: #fff !important;
}

/* --- Responsive --- */

@media (max-width: 1199.98px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-nav-list a {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 991.98px) {
    .header-brand {
        max-width: 55%;
    }

    .header-logo {
        max-height: 48px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main-inner {
        gap: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .header-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-top {
        border-bottom: 1px solid #e8e8e8;
    }

    .header-top-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .header-top-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.75rem;
        padding-bottom: 2px;
    }

    .header-top-links::-webkit-scrollbar {
        display: none;
    }

    .header-top-links a {
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.3;
    }

    .header-top-actions {
        width: 100%;
        display: flex;
    }

    .header-profile {
        flex: 1;
        text-align: center;
        margin-right: 0.5rem;
        padding: 10px 12px;
    }

    .header-login {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
    }

    .header-main-inner {
        flex-wrap: nowrap;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 0.75rem;
    }

    .header-main-spacer {
        display: none;
    }

    .header-brand {
        max-width: none;
        flex: 1;
        min-width: 0;
    }

    .header-logo {
        max-height: 36px;
    }

    .header-lang {
        width: auto;
        font-size: 18px;
    }

    .header-lang-btn,
    .header-lang-sep {
        font-size: 18px;
    }

    .header-nav-toggle {
        display: inline-flex;
    }

    .header-nav {
        display: none;
        border-bottom: 1px solid #d5d5d5;
    }

    .site-header.nav-open .header-nav {
        display: block;
    }

    .header-nav .header-container {
        padding-left: 0;
        padding-right: 0;
    }

    .header-nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .header-nav-list a {
        padding: 14px 16px;
        font-size: 14px;
        white-space: normal;
        border-top: 1px solid #eee;
    }

    .header-nav-list li:first-child a {
        border-top: none;
    }

    .main-content {
        padding-bottom: 2.5rem;
        margin-top: 1rem !important;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .page-search-input.form-control-lg {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }

    .filter-buttons .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 140px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .link-list li {
        margin-bottom: 0.5rem;
    }

    .link-list a {
        display: inline-block;
        padding: 4px 6px;
        line-height: 1.4;
    }

    .footer-main {
        padding: 24px 0 16px;
    }

    .footer-main-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        flex: 0 0 auto;
    }

    .footer-brand img {
        width: 140px;
        margin: 0 auto;
    }

    .footer-columns {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
        text-align: left;
    }

    .footer-col {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 16px 0;
    }

    .footer-col:first-child {
        border-top: none;
        padding-top: 0;
    }

    .footer-col-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 14px;
        padding: 6px 0;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-copyright {
        font-size: 14px;
    }

    .footer-legal a {
        font-size: 14px;
    }

    .footer-social-wrap {
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-follow {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .header-top-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-profile,
    .header-login {
        width: 100%;
        margin-right: 0;
    }

    .header-logo {
        max-height: 32px;
    }

    .filter-buttons .btn {
        flex: 1 1 100%;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }
}
