﻿.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(243, 246, 251, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e6eef8;
}

.site-nav-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 12px 24px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--ds-text);
    min-width: 0;
}

    .site-brand:hover {
        color: var(--ds-text);
    }

.site-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: linear-gradient(180deg, #29a0ff, #1f63ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.site-brand-stack {
    position: relative;
    width: 22px;
    height: 22px;
}

    .site-brand-stack::before {
        content: "";
        position: absolute;
        left: 7px;
        top: 3px;
        width: 14px;
        height: 18px;
        border-radius: 5px;
        background: rgba(255,255,255,0.55);
    }

    .site-brand-stack::after {
        content: "";
        position: absolute;
        left: 1px;
        top: 0;
        width: 14px;
        height: 18px;
        border-radius: 5px;
        background: #fff;
    }

.site-brand-text {
    min-width: 0;
}

.site-brand-title {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.site-brand-tagline {
    display: block;
    color: var(--ds-muted);
    font-size: .98rem;
    line-height: 1.2;
    white-space: nowrap;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--ds-text);
    font-weight: 700;
    font-size: .97rem;
    transition: .18s ease;
}

    .site-nav-link:hover,
    .site-nav-link.active {
        background: #edf4ff;
        color: var(--ds-primary-dark);
    }

.site-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 15px;
    background: linear-gradient(180deg, var(--ds-accent), var(--ds-accent-dark));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(24,213,138,.16);
}

    .site-nav-cta:hover {
        color: #fff;
        transform: translateY(-1px);
    }

..site-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--ds-border);
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
}

.site-lang-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: transparent;
    color: var(--ds-text);
    transition: .18s ease;
    border: 1px solid transparent;
}

    .site-lang-link:hover {
        transform: translateY(-1px);
        background: #f6faff;
        border-color: #dbe7f4;
    }

    .site-lang-link.active {
        background: linear-gradient(180deg, #edf4ff, #e4efff);
        border-color: #cfe0f4;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 16px rgba(31, 99, 255, 0.08);
    }

.site-flag {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* EN flag */
.site-flag-en {
    background: linear-gradient(90deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%), linear-gradient(transparent 42%, #fff 42%, #fff 58%, transparent 58%), linear-gradient(transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%), linear-gradient(90deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%), #0a4fb3;
}

/* FR flag */
.site-flag-fr {
    background: linear-gradient(90deg, #1f4fd6 0 33.333%, #ffffff 33.333% 66.666%, #e53935 66.666% 100%);
}

.site-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    border-top: 1px solid #e4edf8;
    background: #ffffff;
    margin-top: 24px;
}

.site-footer-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 18px 24px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.site-footer-copy {
    color: var(--ds-muted);
    font-size: .95rem;
}

.site-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

    .site-footer-links a {
        color: var(--ds-muted);
        font-weight: 600;
    }

        .site-footer-links a:hover {
            color: var(--ds-primary-dark);
        }

.cookie-banner-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 2000;
    display: none;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    z-index: 2001;
    display: none;
    overflow: hidden;
}

    .cookie-banner.show,
    .cookie-banner-backdrop.show {
        display: block;
    }

.cookie-banner-inner {
    padding: 24px;
}

.cookie-banner-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--ds-text);
}

.cookie-banner-text {
    color: var(--ds-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-btn {
    border: 0;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-btn-primary {
    background: linear-gradient(180deg, var(--ds-accent), var(--ds-accent-dark));
    color: #fff;
}

.cookie-btn-secondary {
    background: #edf4ff;
    color: var(--ds-primary-dark);
}

.cookie-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ds-text);
    border: 1px solid var(--ds-border);
}

@media (max-width: 980px) {
    .site-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav-links {
        justify-content: space-between;
    }

    .site-brand-tagline {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .site-nav-wrap,
    .site-footer-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-brand-title {
        font-size: 1.45rem;
    }

    .site-brand-tagline {
        font-size: .9rem;
    }

    .site-brand-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .site-nav-link,
    .site-nav-cta {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

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

@media (max-width: 640px) {
    .site-language-switch {
        justify-content: center;
        width: 100%;
    }

    .site-lang-link {
        flex: 1 1 0;
        max-width: 70px;
    }
}

/* =========================================================
   HEADER POLISH PACK
   - cleaner brand area
   - tighter nav rhythm
   - more premium CTA
   - better medium-width behavior
   ========================================================= */

.site-header {
    background: rgba(243, 246, 251, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(219, 229, 242, 0.88);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.site-nav-wrap {
    max-width: 1440px;
    padding: 12px 24px;
}

.site-nav {
    gap: 18px;
}

.site-brand {
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.site-brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px rgba(31, 99, 255, 0.16);
}

.site-brand-title {
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.045em;
}

.site-brand-tagline {
    color: #62718c;
    font-size: 0.93rem;
    line-height: 1.15;
    margin-top: 2px;
}

.site-nav-links {
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav-link {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 13px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #12203a;
    white-space: nowrap;
}

    .site-nav-link:hover {
        background: #eef5ff;
        color: var(--ds-primary-dark);
    }

    .site-nav-link.active {
        background: linear-gradient(180deg, #edf4ff, #e7f0ff);
        color: var(--ds-primary-dark);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    }

.site-nav-cta {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(180deg, #22d88f, #14c47d);
    box-shadow: 0 14px 28px rgba(24,213,138,.16), inset 0 1px 0 rgba(255,255,255,0.22);
}

    .site-nav-cta:hover {
        background: linear-gradient(180deg, #20cf89, #12ba74);
    }

.site-footer-wrap {
    max-width: 1440px;
}

/* Better balance around the language switch */
.site-language-switch {
    flex-shrink: 0;
}

/* Medium desktop / laptop */
@media (max-width: 1320px) {
    .site-nav-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-brand-title {
        font-size: 1.42rem;
    }

    .site-brand-tagline {
        font-size: 0.88rem;
    }

    .site-nav-links {
        gap: 6px;
    }

    .site-nav-link {
        padding: 0 13px;
        font-size: 0.93rem;
    }

    .site-nav-cta {
        padding: 0 18px;
    }
}

/* Tight desktop where nav starts feeling crowded */
@media (max-width: 1180px) {
    .site-nav {
        gap: 14px;
    }

    .site-brand {
        max-width: 280px;
    }

    .site-brand-tagline {
        white-space: normal;
        max-width: 22ch;
    }

    .site-nav-links {
        gap: 6px;
    }

    .site-nav-link {
        min-height: 40px;
        padding: 0 11px;
        font-size: 0.9rem;
    }

    .site-nav-cta {
        min-height: 44px;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 0.93rem;
    }
}

/* Tablet / stacked nav */
@media (max-width: 980px) {
    .site-nav-wrap {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-nav {
        gap: 14px;
    }

    .site-brand {
        max-width: none;
    }

    .site-brand-tagline {
        max-width: none;
    }

    .site-nav-links {
        justify-content: flex-start;
        gap: 8px;
    }

    .site-nav-link {
        min-height: 42px;
    }
}

/* Mobile polish */
@media (max-width: 640px) {
    .site-nav-wrap,
    .site-footer-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-brand {
        align-items: center;
    }

    .site-brand-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .site-brand-title {
        font-size: 1.34rem;
    }

    .site-brand-tagline {
        font-size: 0.86rem;
        line-height: 1.15;
    }

    .site-nav-links {
        gap: 10px;
    }

    .site-nav-link,
    .site-nav-cta {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   FOOTER POLISH PACK
   ========================================================= */

.site-footer {
    border-top: 1px solid #e3edf8;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.96));
    margin-top: 28px;
}

.site-footer-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}

.site-footer-copy {
    color: #61708a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
}

    .site-footer-links a {
        position: relative;
        color: #5e6e89;
        font-weight: 700;
        line-height: 1.2;
        transition: .18s ease;
    }

        .site-footer-links a:hover {
            color: var(--ds-primary-dark);
        }

        .site-footer-links a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -4px;
            height: 2px;
            border-radius: 999px;
            background: transparent;
            transition: .18s ease;
        }

        .site-footer-links a:hover::after {
            background: rgba(31, 99, 255, 0.22);
        }

@media (max-width: 980px) {
    .site-footer-wrap {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .site-footer-links {
        gap: 12px 16px;
    }
}

@media (max-width: 640px) {
    .site-footer-wrap {
        padding: 18px 16px 22px;
    }

    .site-footer-copy,
    .site-footer-links {
        width: 100%;
    }
}

/* =========================================================
   COMPACT LANGUAGE SWITCH
   - only active language visible by default
   - menu on hover / click / keyboard focus
   ========================================================= */

.site-language-switch {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

    .site-language-switch summary {
        list-style: none;
    }

        .site-language-switch summary::-webkit-details-marker {
            display: none;
        }

.site-language-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 64px;
    height: 52px;
    padding: 0 12px;
    border-radius: 18px;
    border: 1px solid var(--ds-border);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: .18s ease;
}

    .site-language-current:hover {
        transform: translateY(-1px);
        background: #f8fbff;
        border-color: #dbe7f4;
    }

.site-language-switch[open] .site-language-current {
    background: linear-gradient(180deg, #edf4ff, #e7f0ff);
    border-color: #cfe0f4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 10px 18px rgba(31, 99, 255, 0.08);
}

.site-language-chevron {
    font-size: 0.78rem;
    color: #5f6f8a;
    transition: transform .18s ease;
    line-height: 1;
}

.site-language-switch[open] .site-language-chevron {
    transform: rotate(180deg);
}

.site-language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 176px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--ds-border);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: .18s ease;
    z-index: 30;
}

/* Hover on desktop + click/focus/tap thanks to <details> */
.site-language-switch[open] .site-language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .site-language-switch:hover .site-language-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-language-switch:hover .site-language-current {
        background: linear-gradient(180deg, #edf4ff, #e7f0ff);
        border-color: #cfe0f4;
    }
}

.site-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--ds-text);
    font-weight: 700;
    transition: .18s ease;
    border: 1px solid transparent;
    background: transparent;
}

    .site-lang-option:hover {
        background: #f6faff;
        border-color: #dbe7f4;
        color: var(--ds-primary-dark);
    }

    .site-lang-option.active {
        background: linear-gradient(180deg, #edf4ff, #e7f0ff);
        border-color: #cfe0f4;
        color: var(--ds-primary-dark);
    }

    .site-lang-option .site-flag {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

.site-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .site-language-current {
        width: 100%;
        min-width: 0;
    }

    .site-language-menu {
        right: 0;
        left: 0;
        min-width: 0;
    }
}

/* =========================================
   Mobile nav hotfix - Android overlap
   Remplacer les 2 sélecteurs principaux :
   - .ds-site-header      = wrapper réel du header marketing
   - .ds-mobile-nav-panel = bloc réel qui contient les liens mobile
   ========================================= */

@media (max-width: 980px) {
    .ds-site-header,
    .ds-site-header-inner,
    .ds-site-header-shell,
    .ds-site-header nav {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        inset: auto !important;
        width: 100%;
        z-index: auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .ds-page,
    .ds-main,
    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
        scroll-margin-top: 0 !important;
    }

    .ds-mobile-nav,
    .ds-mobile-nav-panel,
    .ds-mobile-menu,
    .ds-mobile-drawer {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        margin-top: 12px !important;
        overflow: visible !important;
        transform: none !important;
        box-shadow: none !important;
    }

        .ds-mobile-nav-panel[hidden],
        .ds-mobile-menu[hidden],
        .ds-mobile-drawer[hidden] {
            display: none !important;
        }

        .ds-mobile-nav-panel:not([hidden]),
        .ds-mobile-menu:not([hidden]),
        .ds-mobile-drawer:not([hidden]) {
            display: block !important;
        }
}

@media (max-width: 980px) {
    body,
    .ds-site-shell,
    .ds-page {
        overflow-x: clip;
    }

    .ds-site-header + .ds-page,
    .ds-site-header + main {
        margin-top: 0 !important;
    }
}

/* =========================================================
   QUICK-WIN HEADER / FOOTER REFRESH
   ========================================================= */

.site-header {
    background: rgba(247, 250, 253, 0.9);
    border-bottom: 1px solid rgba(15, 23, 40, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 40, 0.04);
}

.site-nav-wrap,
.site-footer-wrap {
    max-width: 1360px;
}

.site-brand-tagline {
    color: #64758b;
    max-width: 26ch;
}

.site-nav-link {
    color: #1a2740;
    border: 1px solid transparent;
}

.site-nav-link:hover,
.site-nav-link.active {
    background: rgba(31, 94, 255, 0.08);
    border-color: rgba(31, 94, 255, 0.10);
}

.site-nav-cta {
    background: linear-gradient(180deg, #163c98, #102e7a);
    box-shadow: 0 14px 28px rgba(21, 58, 152, 0.18);
}

.site-nav-cta:hover {
    background: linear-gradient(180deg, #14378c, #0f2a6d);
}

.site-language-current {
    height: 48px;
}

.site-footer {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,253,0.98));
}

.site-footer-copy {
    color: #617289;
}

.site-footer-links a {
    color: #5f6f86;
}

.cookie-banner {
    border-color: rgba(15, 23, 40, 0.08);
}
