/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 8, 20, .60);
    backdrop-filter: blur(14px);
}

[data-theme="light"] .header {
    background: rgba(245, 247, 255, .72);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-decoration: none;
}

.logo {
    width: 200px;
    height: 70px;
    object-fit: contain;
}

.brand__name {
    font-size: 1.1rem;
    letter-spacing: .3px;
    color: var(--text);
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navlinks a {
    padding: 10px 10px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
}

.navlinks a:hover {
    background: var(--card);
    color: var(--text);
}

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

.iconbtn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.iconbtn:hover {
    background: var(--card2);
}

.btn {
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #2A74C2;
    background: #2A74C2;
    font-weight: 800;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 40px #2A74C2;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn--ghost {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn--block {
    width: 100%;
}

.burger {
    display: none;
}

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 70;
}

.drawer.is-open {
    display: block;
}

.drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.drawer__panel {
    position: absolute;
    right: 14px;
    left: 14px;
    top: 74px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(6, 8, 20, .92);
    backdrop-filter: blur(14px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[data-theme="light"] .drawer__panel {
    background: rgba(245, 247, 255, .92);
}

.drawer__panel a {
    padding: 12px 12px;
    border-radius: 16px;
    background: var(--card);
    color: var(--text);
    font-weight: 800;
}

/* Cards & grids */
.grid {
    display: grid;
    gap: 16px;
}

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

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, var(--card2), var(--card));
    box-shadow: var(--shadow);
    padding: 18px;
}

.card__title {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.card__meta {
    margin: 0;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-weight: 800;
    font-size: .85rem;
}

/* Lists */
.check {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.check li {
    padding-left: 28px;
    margin: 10px 0;
    position: relative;
    color: var(--muted);
    line-height: 1.6;
}

.check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(34, 197, 94, .18);
    border: 1px solid rgba(34, 197, 94, .45);
    box-shadow: 0 12px 30px rgba(34, 197, 94, .10);
}

.check li::after {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 1px;
    font-weight: 900;
    color: rgba(34, 197, 94, .95);
    font-size: .95rem;
}

/* ================= FOOTER PREMIUM ================= */

.footer {
    position: relative;
    margin-top: 120px;
    padding-top: 80px;
    background:
        radial-gradient(600px 300px at 20% 0%, rgba(42, 116, 194, .20), transparent 60%),
        radial-gradient(500px 260px at 90% 10%, rgba(42, 116, 194, .15), transparent 55%),
        linear-gradient(180deg, rgba(10, 20, 40, .92), rgba(6, 12, 24, .98));
    border-top: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .footer {
    background:
        radial-gradient(600px 300px at 20% 0%, rgba(42, 116, 194, .15), transparent 60%),
        linear-gradient(180deg, #f4f7ff, #eef3ff);
}

/* GRID */
.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 50px;
}

/* BRAND */
.footer__brand {
    max-width: 420px;
}

.footer__logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 24px rgba(42, 116, 194, .35));
}

.footer__tagline {
    font-size: .98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
}

/* NAV */
.footer__nav h4,
.footer__certification h4 {
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .85);
}

.footer__nav a {
    display: block;
    margin-bottom: 10px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .65);
    position: relative;
    transition: color .25s ease, transform .25s ease;
}

.footer__nav a::before {
    content: "→";
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.footer__nav a:hover {
    color: #fff;
    transform: translateX(6px);
}

.footer__nav a:hover::before {
    opacity: 1;
}

/* CERTIFICATION */
.footer__certification {
    text-align: right;
}

.qualiopi-link {
    display: inline-block;
    margin: 10px 0 6px;
}

.qualiopi-logo {
    max-width: 150px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .45));
    transition: transform .3s ease, filter .3s ease;
}

.qualiopi-link:hover .qualiopi-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 14px 40px rgba(42, 116, 194, .45));
}

.cert-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    background: rgba(42, 116, 194, .18);
    border: 1px solid rgba(42, 116, 194, .45);
    color: #cfe6ff;
}

/* BOTTOM BAR */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    padding: 16px 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .55);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer {
        padding-top: 60px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__certification {
        text-align: center;
    }

    .footer__logo {
        margin: 0 auto 16px;
    }

    .footer__nav a::before {
        display: none;
    }
}

/* Back to top */
.toTop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--card);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 60;
}

.toTop.is-show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .navlinks {
        display: none;
    }

    .burger {
        display: grid;
    }
}



/* ===== FOOTER LIGHT MODE FIX ===== */

[data-theme="light"] .footer__tagline,
[data-theme="light"] .footer__nav a,
[data-theme="light"] .footer__bottom,
[data-theme="light"] .footer__cert-text {
    color: #3b4353;
}

[data-theme="light"] .footer__nav h4,
[data-theme="light"] .footer__certification h4 {
    color: #1c2433;
}

[data-theme="light"] .footer__nav a:hover {
    color: #2A74C2;
}

[data-theme="light"] .cert-badge {
    background: rgba(42, 116, 194, .12);
    border-color: rgba(42, 116, 194, .35);
    color: #2A74C2;
}