/* Dossiora — shell CSS LIA (genere, ne pas editer a la main)
 * Source : assets/styles.css via scripts/build-production-assets.php
 */

:root {
    /* Design system — lisibilite premium (espace, contraste, sobrete type Stripe/Notion) */
    --bg: #fafbfc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --surface-elevated: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #e8ecf1;
    --line-strong: #d1d9e2;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent: #059669;
    --danger: #b42318;
    --success: #047857;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.045);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.055);
    --shadow-md: 0 12px 48px rgba(15, 23, 42, 0.075);
    --shadow-cta: 0 4px 20px rgba(37, 99, 235, 0.28);
    /* Cartes / surfaces — une seule recette sur le site */
    --shadow-card: var(--shadow-sm), var(--shadow);
    --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition: 0.22s var(--ease-out);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 0.75rem;
    z-index: 1000;
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.93) 45%,
        rgba(252, 253, 255, 0.91) 100%
    );
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72) inset,
        0 6px 28px rgba(15, 23, 42, 0.045);
    transition:
        box-shadow 0.28s var(--ease-out),
        border-color 0.28s var(--ease-out),
        background 0.28s var(--ease-out);
}

.site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(255, 255, 255, 0.97) 100%);
    border-bottom-color: rgba(203, 213, 225, 0.65);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 14px 40px rgba(15, 23, 42, 0.075),
        0 2px 8px rgba(15, 23, 42, 0.04);
}

.site-header .container.nav-wrap {
    width: min(1420px, 96%);
}

.nav-wrap {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.mobile-espace-sticky-spacer {
    display: none;
}

.mobile-espace-sticky-bar {
    display: none;
}

@media (max-width: 959px) {
    .mobile-espace-sticky-spacer {
        display: block;
        height: 4.5rem;
    }

    .mobile-espace-sticky-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(226, 232, 240, 0.92);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
        justify-content: center;
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
    }

    .mobile-espace-sticky-btn {
        width: 100%;
        max-width: 28rem;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    min-width: 0;
    flex: 0 0 auto;
    margin-right: clamp(0.85rem, 2vw, 1.65rem);
    transition: opacity var(--transition);
}

.brand:hover .brand-wordmark {
    opacity: 0.9;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: block;
    flex: 0 0 44px;
}

.brand-wordmark {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(220px, 72vw);
    object-fit: contain;
    object-position: left center;
}

.footer-brand-wordmark {
    display: block;
    height: 48px;
    width: auto;
    max-width: min(200px, 90vw);
    object-fit: contain;
    object-position: left center;
    margin-bottom: 0.8rem;
}

.nav-drawer-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(200px, 78vw);
    object-fit: contain;
    object-position: left center;
}

.brand-name {
    display: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand:hover {
    text-decoration: none;
}

.menu-toggle {
    display: none;
    border: 1px solid #c5d5f3;
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    padding: 0.48rem 0.72rem;
    align-items: center;
    gap: 0.45rem;
}

.menu-toggle-icon {
    width: 17px;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
    position: relative;
    display: inline-block;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 17px;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
}

.menu-toggle-icon::before {
    top: -5px;
}

.menu-toggle-icon::after {
    top: 5px;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    transition: transform 0.22s ease, top 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before,
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg);
}

.menu-toggle:hover {
    background: #f4f7ff;
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(20, 82, 255, 0.35);
    outline-offset: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-mobile-head {
    display: none;
}

.nav-drawer-content {
    display: contents;
}

.nav-drawer-brand {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.nav-drawer-kicker {
    display: none;
}

.nav-drawer-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1.2;
}

.menu-close {
    display: none;
}

.menu-close-icon {
    display: block;
    width: 18px;
    height: 18px;
    position: relative;
}

.menu-close-icon::before,
.menu-close-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
}

.menu-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0.42rem;
}

details.nav-group {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    align-self: center;
}

.nav-group-title {
    display: none;
}

.nav-group-panel {
    display: contents;
}

@media (min-width: 981px) {
    .nav-wrap {
        position: relative;
        isolation: isolate;
    }

    .brand {
        position: relative;
        z-index: 4;
    }

    /* Pas de position:relative ici : sinon .nav-links se centre dans la colonne droite seulement */
    .main-nav {
        position: static;
        justify-content: flex-end;
        align-items: center;
        gap: 1.05rem;
    }

    .main-nav .nav-utilities {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 0.02rem;
        position: relative;
        z-index: 3;
        padding: 0.2rem 0.45rem 0.2rem 0.52rem;
        border-radius: 999px;
        border: 1px solid rgba(203, 213, 230, 0.92);
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.96) 45%, rgba(241, 245, 253, 0.94) 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.78) inset,
            0 1px 2px rgba(15, 23, 42, 0.035) inset,
            0 12px 32px rgba(20, 33, 61, 0.075);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
    }

    .main-nav .nav-utilities .lang-switch {
        flex: 0 0 auto;
        margin: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0.06rem 0.08rem;
    }

    .main-nav .nav-utilities .nav-cookie-settings {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        margin-inline: 0.2rem 0.05rem;
        padding: 0;
        border: 1px solid rgba(148, 163, 184, 0.45);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: var(--primary, #1d4ed8);
        cursor: pointer;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

    .main-nav .nav-utilities .nav-cookie-settings:hover {
        border-color: rgba(30, 64, 175, 0.45);
        background: #f5f8ff;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
    }

    .main-nav .nav-utilities .nav-cookie-settings svg {
        display: block;
        width: 18px;
        height: 18px;
    }

    .main-nav .nav-utilities .nav-header-actions {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 0.58rem;
        padding-inline-start: 0.55rem;
        margin-inline-start: 0.12rem;
        border-inline-start: 1px solid rgba(148, 163, 184, 0.4);
    }

    .main-nav .nav-utilities .nav-cta {
        min-height: 2.65rem;
        padding: 0.46rem 1.12rem;
        font-size: 0.86rem;
        font-weight: 800;
        letter-spacing: -0.028em;
        line-height: 1.18;
        border-color: rgba(30, 64, 175, 0.45);
        background: linear-gradient(180deg, #4f8ff9 0%, #3b82f6 34%, var(--primary) 58%, #1d4ed8 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.32) inset,
            0 2px 5px rgba(15, 23, 42, 0.07) inset,
            0 12px 30px rgba(37, 99, 235, 0.36);
        text-shadow: 0 1px 1px rgba(15, 23, 42, 0.16);
    }

    .main-nav .nav-utilities .nav-cta:hover {
        background: linear-gradient(180deg, #72a7fc 0%, #4d90fa 32%, #3b82f6 55%, #2563eb 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.36) inset,
            0 2px 5px rgba(15, 23, 42, 0.05) inset,
            0 16px 38px rgba(37, 99, 235, 0.45);
    }

    .main-nav .nav-utilities .nav-cta:active {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.2) inset,
            0 7px 20px rgba(37, 99, 235, 0.32);
    }

    .main-nav .nav-utilities .nav-portal-icon {
        width: 2.65rem;
        height: 2.65rem;
        border-width: 1.5px;
        border-color: rgba(30, 64, 175, 0.34);
        background: linear-gradient(165deg, #ffffff 0%, #f5f8ff 55%, #eef3ff 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.68) inset,
            0 1px 3px rgba(15, 23, 42, 0.05) inset,
            0 10px 24px rgba(37, 99, 235, 0.15);
    }

    .main-nav .nav-utilities .nav-portal-icon:hover {
        border-color: rgba(30, 64, 175, 0.5);
        background: linear-gradient(165deg, #f8fbff 0%, #e8f0ff 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.75) inset,
            0 8px 26px rgba(37, 99, 235, 0.2);
    }

    .main-nav .nav-utilities .nav-portal-icon svg {
        width: 21px;
        height: 21px;
    }

    /* Pas de position:relative ici : sinon .nav-links se centre dans la colonne droite seulement */
    .main-nav .nav-links {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        flex: none;
        width: max-content;
        max-width: min(520px, calc(100% - 30.5rem));
        justify-content: center;
        gap: 0.45rem;
        z-index: 2;
        pointer-events: none;
    }

    .main-nav .nav-links > * {
        pointer-events: auto;
    }

    details.nav-group {
        flex: 0 0 auto;
    }

    details.nav-group[open] {
        position: relative;
        z-index: 30;
    }

    .nav-group-title {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.36rem;
        list-style: none;
        cursor: pointer;
        user-select: none;
        margin: 0;
        font-family: "Outfit", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
        color: #334155;
        font-weight: 600;
        font-size: 0.9rem;
        line-height: 1.2;
        letter-spacing: -0.018em;
        text-transform: none;
        border-radius: 999px;
        border: 1px solid transparent;
        padding: 0.5rem 0.82rem 0.5rem 0.9rem;
        transition:
            background 0.22s var(--ease-out),
            border-color 0.22s var(--ease-out),
            color 0.22s var(--ease-out),
            box-shadow 0.22s var(--ease-out);
    }

    .nav-group-title::-webkit-details-marker {
        display: none;
    }

    .nav-group-title::after {
        content: "";
        display: inline-block;
        width: 0.38rem;
        height: 0.38rem;
        margin-top: 0.08rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.55;
        flex-shrink: 0;
    }

    details.nav-group[open] > .nav-group-title::after {
        margin-top: 0.22rem;
        transform: rotate(225deg);
        opacity: 0.75;
    }

    details.nav-group:hover > .nav-group-title,
    details.nav-group:focus-within > .nav-group-title {
        text-decoration: none;
        color: var(--ink);
        background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
        border-color: rgba(191, 208, 255, 0.85);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
    }

    details.nav-group[open] > .nav-group-title {
        color: var(--primary-dark);
        background: linear-gradient(180deg, #f0f5ff 0%, #e4ebff 100%);
        border-color: rgba(129, 161, 255, 0.55);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    }

    .nav-group-panel {
        display: none;
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 0;
        right: auto;
        min-width: min(272px, calc(100vw - 4rem));
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.14rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 16px;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.65) inset,
            0 28px 56px rgba(15, 23, 42, 0.12),
            0 6px 16px rgba(15, 23, 42, 0.06);
        z-index: 96;
    }

    .nav-group-panel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 1rem;
        right: 1rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35), transparent);
        opacity: 0.85;
        pointer-events: none;
    }

    details.nav-group[open] > .nav-group-panel {
        display: flex;
    }

    details.nav-group:last-child > .nav-group-panel {
        left: auto;
        right: 0;
    }

    .main-nav .nav-group-panel a {
        justify-content: flex-start;
        width: 100%;
        text-align: left;
        border-radius: 11px;
        padding: 0.52rem 0.75rem;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        white-space: nowrap;
        position: relative;
        z-index: 1;
        transition:
            background 0.18s var(--ease-out),
            border-color 0.18s var(--ease-out),
            color 0.18s var(--ease-out);
    }

    .main-nav .nav-group-panel a:hover {
        background: linear-gradient(90deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
        border-color: rgba(219, 227, 255, 0.8);
    }

    .main-nav .nav-group-panel a.active {
        border-left: 3px solid var(--primary);
        padding-left: calc(0.75rem - 2px);
        background: linear-gradient(90deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0));
        font-weight: 700;
    }
}

.nav-link-badge {
    display: inline-block;
    margin-inline-start: 0.45rem;
    padding: 0.12rem 0.5rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 999px;
    vertical-align: middle;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.25);
}

.main-nav .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.25;
    color: var(--ink-soft);
    font-weight: 600;
    border-radius: 11px;
    border: 1px solid transparent;
    padding: 0.45rem 0.62rem;
    font-size: 0.92rem;
    white-space: nowrap;
    transition:
        background 0.22s var(--ease-out),
        border-color 0.22s var(--ease-out),
        color 0.22s var(--ease-out),
        box-shadow 0.22s var(--ease-out);
}

.main-nav .nav-links a:hover {
    text-decoration: none;
    background: linear-gradient(180deg, #f8faff 0%, #f0f4ff 100%);
    border-color: rgba(199, 212, 252, 0.95);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.main-nav .nav-links a.active {
    color: var(--primary-dark);
    background: linear-gradient(180deg, #f0f5ff 0%, #e6edff 100%);
    border-color: rgba(165, 189, 255, 0.65);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.22rem;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 230, 0.85);
    background: linear-gradient(180deg, #fcfdff 0%, #f1f5fb 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) inset;
}

.lang-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.04rem;
    min-width: 2.55rem;
    min-height: 2.45rem;
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    color: #2b4678;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-decoration: none;
}

.lang-code {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.lang-native {
    font-size: 0.62rem;
    font-weight: 650;
    max-width: 4.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.lang-link:hover {
    text-decoration: none;
    background: linear-gradient(180deg, #eaf0ff 0%, #e0e9ff 100%);
    color: #123ca5;
}

.lang-link.active {
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary) 45%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 3px 12px rgba(37, 99, 235, 0.35);
}

.main-nav .nav-portal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    flex-shrink: 0;
    border: 1px solid rgba(29, 78, 216, 0.38);
    background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
    color: #1e40af;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 4px 14px rgba(37, 99, 235, 0.12);
    transition:
        background 0.2s var(--ease-out),
        border-color 0.2s var(--ease-out),
        color 0.2s var(--ease-out),
        box-shadow 0.2s var(--ease-out),
        transform 0.2s var(--ease-out);
}

.main-nav .nav-portal-icon:hover {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(29, 78, 216, 0.55);
    color: #1d4ed8;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 6px 18px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.main-nav .nav-portal-icon:focus-visible {
    outline: 2px solid rgba(20, 82, 255, 0.45);
    outline-offset: 2px;
}

.main-nav .nav-portal-icon:active {
    transform: translateY(0);
}

.main-nav .nav-portal-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.main-nav .nav-cookie-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary, #1d4ed8);
    cursor: pointer;
}

.main-nav .nav-cookie-settings svg {
    display: block;
    width: 18px;
    height: 18px;
}

.main-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.48rem 1rem;
    font-family: "Outfit", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(29, 78, 216, 0.42);
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary) 38%, #1e40af 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 10px 26px rgba(37, 99, 235, 0.34);
    transition:
        transform 0.2s var(--ease-out),
        box-shadow 0.2s var(--ease-out),
        filter 0.2s var(--ease-out),
        background 0.2s var(--ease-out);
}

@media (min-width: 1281px) and (max-width: 1700px) {
    .site-header .container.nav-wrap {
        width: min(1480px, 98%);
    }

    .brand {
        flex: 0 0 auto;
    }

    .brand-wordmark {
        height: 52px;
        max-width: min(440px, 78vw);
    }

    .main-nav {
        gap: 1rem;
    }

    .nav-links {
        gap: 0.18rem;
    }

    .main-nav .nav-links a {
        padding: 0.4rem 0.52rem;
        font-size: 0.86rem;
    }

    .lang-switch {
        gap: 0.16rem;
        padding: 0.14rem;
    }

    .lang-link {
        min-width: 2.15rem;
        min-height: 2.1rem;
        padding: 0.12rem 0.3rem;
    }

    .main-nav .nav-utilities .nav-header-actions .nav-cta {
        min-height: 2.52rem;
        padding: 0.44rem 0.78rem;
        font-size: 0.78rem;
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-nav .nav-utilities .nav-portal-icon {
        width: 2.52rem;
        height: 2.52rem;
    }
}

.main-nav .nav-cta:hover {
    color: #fff;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 40%, #2563eb 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 14px 34px rgba(37, 99, 235, 0.42);
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.main-nav .nav-cta:active {
    transform: translateY(0);
    filter: brightness(0.98);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 6px 18px rgba(37, 99, 235, 0.3);
}

.main-nav .nav-cta:focus-visible {
    outline: 2px solid rgba(20, 82, 255, 0.55);
    outline-offset: 3px;
}

.menu-backdrop {
    display: none;
}

@media (min-width: 1481px) {
    .site-header .nav-wrap {
        min-height: 100px;
    }

    .brand-wordmark {
        height: 60px;
        max-width: min(500px, 82vw);
    }

    .main-nav {
        gap: 1.2rem;
    }

    .nav-links {
        gap: 0.32rem;
    }

    .main-nav .nav-links a {
        padding: 0.48rem 0.72rem;
        font-size: 0.93rem;
    }

    .main-nav .nav-utilities .nav-cta {
        padding: 0.54rem 1.22rem;
        font-size: 0.9rem;
        min-height: 2.85rem;
    }

    .main-nav .nav-utilities .nav-portal-icon {
        width: 2.85rem;
        height: 2.85rem;
    }
}

.access-toolbar {
    background: #ffffff;
    border-bottom: 1px solid var(--line, #e2e8f0);
    position: relative;
    z-index: 35;
    font-family: "Public Sans", "Outfit", system-ui, sans-serif;
}

.access-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.45rem 0;
    font-size: 0.82rem;
}

.access-toolbar-inner > strong {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.25rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.access-toolbar-inner > strong::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e63d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='4' r='2'/><path d='M19 13v-2a7 7 0 0 0-14 0v2'/><path d='M12 13v3'/><path d='M9 21a3 3 0 0 0 6 0'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.access-btn {
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
    line-height: 1;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.access-btn:hover {
    background: #eaf2ff;
    color: #154db2;
}

.access-btn[aria-pressed="true"] {
    background: #154db2;
    color: #ffffff;
}

.access-btn:focus-visible {
    outline: 2px solid #1e63d8;
    outline-offset: 2px;
}

.access-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8fafc;
    color: #94a3b8;
}

.access-btn:disabled:hover {
    background: #f8fafc;
    color: #94a3b8;
}

.access-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.82rem;
    color: #154db2;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background-color 120ms ease-out;
}

.access-link::before {
    content: "👴";
    font-size: 0.95rem;
    line-height: 1;
}

.access-link:hover {
    background: #eaf2ff;
    text-decoration: none;
}

/* Bandeau version allemande — compact, aligné design LIA */
.locale-de-banner {
    background: #f8fafc;
    border-bottom: 1px solid var(--line, #e2e8f0);
    font-family: "Public Sans", "Outfit", system-ui, sans-serif;
}

.locale-de-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 0.75rem 0;
}

.locale-de-banner__content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.locale-de-banner__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.locale-de-banner__copy {
    min-width: 0;
}

.locale-de-banner__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.locale-de-banner__text {
    margin: 0.12rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #64748b;
}

.locale-de-banner__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #154db2;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}

.locale-de-banner__cta:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
    text-decoration: none;
}

.locale-de-banner__cta-arrow {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 120ms ease-out;
}

.locale-de-banner__cta:hover .locale-de-banner__cta-arrow {
    transform: translateX(2px);
}

@media (max-width: 719px) {
    .locale-de-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem 0;
    }

    .locale-de-banner__cta {
        justify-content: center;
        width: 100%;
    }
}

body.cookie-consent-open .mobile-espace-sticky-bar,
body.cookie-banner-open .mobile-espace-sticky-bar {
    display: none !important;
}

body.cookie-consent-open .mobile-espace-sticky-spacer,
body.cookie-banner-open .mobile-espace-sticky-spacer {
    display: none !important;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.96rem;
    padding: 0.82rem 1.28rem;
    min-height: 2.85rem;
    cursor: pointer;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    text-decoration: none;
}

.btn.is-loading {
    cursor: progress;
}

.btn-primary {
    background: linear-gradient(180deg, #3b82f6 0%, var(--primary) 45%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-cta);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #60a5fa 0%, var(--primary) 40%, #1e40af 100%);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.38);
}

.btn-secondary {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.btn-outline {
    background: var(--surface);
    color: var(--primary-dark);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-small {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    margin-top: 0.85rem;
}

.form-actions-stack {
    display: grid;
    gap: 0.55rem;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: default;
    pointer-events: auto;
}

.cookie-consent__shell {
    position: relative;
    width: min(640px, 100%);
    pointer-events: auto;
    animation: cookie-consent-in 0.38s var(--ease-out);
}

@keyframes cookie-consent-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-consent__card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cookie-consent__main {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.65rem 1rem;
    padding: 1.15rem 1.2rem 0.85rem;
}

.cookie-consent__icon {
    grid-row: 1 / span 2;
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
}

.cookie-consent__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
}

.cookie-consent__lead {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.cookie-consent__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.cookie-consent__actions--main {
    padding-top: 0.15rem;
}

.cookie-consent__preferences {
    padding: 0 1.2rem 0.25rem;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.cookie-consent__preferences[hidden] {
    display: none !important;
}

.cookie-consent.is-customizing .cookie-consent__main {
    display: none;
}

.cookie-consent__prefs-intro {
    margin: 0.85rem 0 0.65rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.cookie-consent__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.cookie-consent__item {
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.cookie-consent__item--locked {
    background: #f8fafc;
}

.cookie-consent__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-consent__item-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.cookie-consent__item-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.cookie-consent__badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}

.cookie-consent__toggle {
    display: block;
    cursor: pointer;
}

.cookie-consent__toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cookie-consent__switch {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background var(--transition);
}

.cookie-consent__switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform var(--transition);
}

.cookie-consent__toggle input:checked + .cookie-consent__switch {
    background: var(--primary);
}

.cookie-consent__toggle input:checked + .cookie-consent__switch::after {
    transform: translateX(1.1rem);
}

.cookie-consent__toggle input:focus-visible + .cookie-consent__switch {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cookie-consent__actions--prefs {
    padding: 0.85rem 0 1rem;
}

.cookie-consent__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.65rem 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
}

.cookie-consent__footer a {
    color: var(--ink-soft);
    text-decoration: none;
}

.cookie-consent__footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-consent__footer-sep {
    color: var(--line-strong);
}

.footer-cookie-settings {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
}

.footer-cookie-settings:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__shell {
        animation: none;
    }
}

@media (max-width: 560px) {
    .cookie-consent__main {
        grid-template-columns: 1fr;
    }

    .cookie-consent__icon {
        grid-row: auto;
        width: 2.35rem;
        height: 2.35rem;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.flash-wrap {
    margin-top: 1rem;
}

.flash {
    padding: 0.85rem 0.95rem;
    font-weight: 600;
}

.flash-success {
    border-color: #89dfbd;
    color: var(--success);
    background: #ecfdf3;
}

.flash-error {
    border-color: #ffc4c0;
    color: var(--danger);
    background: #fff1f0;
}

.flash-info {
    border-color: #c8d8ff;
    color: #0f3aa0;
    background: #f2f7ff;
}

/* --- Portail client Dossiora (style administratif sobre) --- */

.site-footer {
    margin-top: 2.8rem;
    background: #0d1a3d;
    color: #dce4ff;
}

.callback-band {
    padding: 2rem 0 0.6rem;
    background: #f2f6ff;
}

.seo-organic-band {
    padding: 1.2rem 0;
    background: linear-gradient(135deg, #eef3ff 0%, #f8fbff 100%);
    border-top: 1px solid #dbe6ff;
    border-bottom: 1px solid #dbe6ff;
}

.seo-organic-band-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.seo-organic-band-inner h2 {
    margin-bottom: 0.4rem;
}

.seo-organic-band-inner p {
    margin: 0;
}

.seo-organic-band-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.callback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.callback-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 1.4rem;
    padding: 2rem 0 1.4rem;
}

.site-footer h3,
.site-footer h4 {
    color: #ffffff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 0.35rem 0;
}

.site-footer .footer-cookie-settings {
    color: inherit;
}

.site-footer a {
    color: #dce4ff;
}

.footer-mini-list {
    max-height: 320px;
    overflow: auto;
    padding-right: 0.4rem;
}

.footer-mini-list li {
    margin: 0.24rem 0;
}

.footer-note {
    color: #b7c8f8;
    font-size: 0.95rem;
    margin-top: 0.8rem;
}

.footer-social {
    margin-top: 1rem;
}

.footer-social--row,
.footer-social--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.footer-social-contact {
    margin: 0.5rem 0 0;
}

.footer-social-contact .footer-social--inline {
    margin: 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #e8edff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-decoration: none;
}

.footer-social-link .icon-linkedin,
.footer-social-link .icon-facebook {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
}

.footer-social-link--facebook:hover {
    border-color: rgba(24, 119, 242, 0.45);
    color: #ffffff;
}

.footer-social-link--compact {
    padding: 0.35rem 0.55rem;
    font-size: 0.88rem;
}

.footer-linkedin-inline {
    margin: 0.5rem 0 0;
}

.footer-bottom {
    border-top: 1px solid rgba(220, 228, 255, 0.2);
    text-align: center;
    font-size: 0.9rem;
    padding: 0.9rem 1rem 1.2rem;
}

body.font-large {
    font-size: 1.08rem;
}

body.font-xlarge {
    font-size: 1.18rem;
}

body.easy-reading {
    line-height: 1.85;
    letter-spacing: 0.01em;
}

body.easy-reading p,
body.easy-reading li {
    max-width: 72ch;
}

body.high-contrast {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f4f4;
    --ink: #000000;
    --ink-soft: #111111;
    --line: #000000;
    --primary: #0033cc;
    --primary-dark: #001f80;
}

body.high-contrast .btn-secondary {
    background: #ffffff;
    color: #000;
    border: 2px solid #000;
}

body.high-contrast .chip {
    border: 1px solid #000;
}

body.high-contrast .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 2px solid #000000;
}

body.high-contrast .site-header.is-scrolled {
    background: #ffffff;
    box-shadow: none;
}

body.high-contrast .main-nav .nav-utilities {
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.high-contrast .main-nav .nav-utilities .nav-header-actions {
    border-inline-start-color: #000000;
}

body.high-contrast .main-nav .nav-cta {
    background: var(--primary);
    border: 2px solid #000000;
    box-shadow: none;
}

body.high-contrast .main-nav .nav-cta:hover,
body.high-contrast .main-nav .nav-cta:active {
    background: var(--primary-dark);
    transform: none;
    filter: none;
}

body.high-contrast .main-nav .nav-portal-icon {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    box-shadow: none;
}

body.high-contrast .main-nav .nav-portal-icon:hover,
body.high-contrast .main-nav .nav-portal-icon:active {
    background: #f0f0f0;
    transform: none;
}

body.high-contrast .lang-link.active {
    background: var(--primary);
    box-shadow: none;
}

@media (min-width: 981px) {
    body.high-contrast .nav-group-panel {
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 2px solid #000000;
        box-shadow: none;
    }

    body.high-contrast .nav-group-panel::before {
        display: none;
    }
}

@media (max-width: 1100px) {
    .container {
        width: min(1120px, 94%);
    }

    .main-nav .nav-links a {
        padding: 0.42rem 0.56rem;
        font-size: 0.9rem;
    }

    .lang-link {
        min-width: 2.35rem;
        min-height: 2.45rem;
        padding: 0.12rem 0.34rem;
    }
}

    .seo-organic-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

@media (max-width: 980px) {
    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nav-wrap {
        gap: 0.7rem;
    }

    .brand {
        flex: 1 1 auto;
        max-width: calc(100% - 86px);
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .brand-wordmark {
        height: 48px;
        max-width: min(420px, 90vw);
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        border: 1px solid rgba(118, 139, 193, 0.5);
        background: linear-gradient(180deg, #101b45 0%, #0b1535 100%);
        color: #edf3ff;
        box-shadow: 0 10px 22px rgba(7, 17, 46, 0.32), inset 0 1px 0 rgba(173, 193, 247, 0.24);
        border-radius: 13px;
        min-height: 41px;
        padding: 0.44rem 0.78rem;
        gap: 0.46rem;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        background: linear-gradient(180deg, #152558 0%, #101d48 100%);
        text-decoration: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        /* Panneau lateral droit : la partie gauche du viewport reste visible + assombrie par .menu-backdrop */
        width: min(328px, calc(100vw - 2.5rem));
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        min-height: 0;
        background: linear-gradient(165deg, #ffffff 0%, #fafbfd 45%, #f4f6fb 100%);
        border: 1px solid #e2e8f4;
        border-right: none;
        border-radius: 16px 0 0 16px;
        box-shadow: -16px 0 56px rgba(20, 33, 61, 0.14), -6px 0 28px rgba(20, 33, 61, 0.08);
        padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem) 1.05rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.6rem;
        transform: translate3d(100%, 0, 0);
        opacity: 1;
        pointer-events: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(20, 82, 255, 0.32) transparent;
        scrollbar-gutter: stable;
        z-index: 92;
        visibility: hidden;
        transition:
            transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0.34s;
    }

    .main-nav.open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition:
            transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s;
    }

    .main-nav::-webkit-scrollbar {
        width: 8px;
    }

    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(20, 82, 255, 0.24);
        border: 2px solid transparent;
        border-radius: 999px;
        background-clip: padding-box;
    }

    .main-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        width: 100%;
        padding-bottom: 0.55rem;
        border-bottom: 1px solid var(--line);
    }

    .main-nav .nav-drawer-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        margin-inline: 0;
        gap: 0.6rem;
        flex: 1 1 auto;
        min-height: 0;
    }

    .main-nav .nav-utilities {
        display: contents;
    }

    .main-nav .nav-mobile-head {
        order: 1;
    }

    .main-nav .lang-switch {
        order: 2;
    }

    .main-nav .nav-links {
        order: 3;
    }

    .main-nav .nav-header-actions {
        order: 4;
    }

    .menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: var(--surface);
        color: var(--ink-soft);
        cursor: pointer;
        font: inherit;
        padding: 0;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .menu-close:hover,
    .menu-close:focus-visible {
        background: var(--surface-2);
        border-color: #c8d6f0;
        color: var(--ink);
    }

    .menu-close:focus-visible {
        outline: 2px solid rgba(20, 82, 255, 0.35);
        outline-offset: 2px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.78rem;
        overflow: visible;
        padding-right: 0;
        margin-right: 0;
        width: 100%;
        max-width: none;
        min-height: auto;
    }

    .main-nav .nav-mobile-head,
    .main-nav .nav-links,
    .main-nav .lang-switch,
    .main-nav .nav-header-actions {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .main-nav .nav-header-actions {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0.55rem;
    }

    .main-nav .nav-header-actions .nav-cta {
        flex: 1 1 auto;
        min-width: 0;
    }

    .main-nav .nav-portal-icon {
        width: 2.75rem;
        height: 2.75rem;
        align-self: center;
    }

    .nav-drawer-kicker {
        display: block;
        color: var(--primary-dark);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        line-height: 1.1;
        text-transform: uppercase;
    }

    details.nav-group {
        display: grid;
        align-self: stretch;
        width: 100%;
        gap: 0.16rem;
        padding: 0.62rem;
        border: 1px solid rgba(219, 227, 242, 0.78);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.66);
        box-shadow: 0 8px 20px rgba(20, 33, 61, 0.035);
    }

    summary.nav-group-title {
        display: block;
        padding: 0 0.22rem 0.18rem;
        color: #64708a;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        line-height: 1.2;
        text-transform: uppercase;
        list-style: none;
        cursor: default;
        user-select: none;
    }

    summary.nav-group-title::-webkit-details-marker {
        display: none;
    }

    .nav-group-panel {
        display: flex;
        flex-direction: column;
        gap: 0.16rem;
    }

    .main-nav .nav-links a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: none;
        min-height: 46px;
        padding: 0.55rem 0.88rem;
        border-radius: 12px;
        border: 1px solid transparent;
        background: transparent;
        color: var(--ink-soft);
        font-size: 0.98rem;
        font-weight: 600;
        text-align: left;
        letter-spacing: 0.01em;
    }

    .main-nav .nav-links a:hover,
    .main-nav .nav-links a:focus-visible {
        text-decoration: none;
        background: rgba(239, 242, 255, 0.95);
        border-color: #d7e2fb;
        color: var(--ink);
    }

    .main-nav .nav-links a.active {
        width: 100%;
        align-self: stretch;
        background: rgba(20, 82, 255, 0.08);
        border-color: rgba(20, 82, 255, 0.16);
        border-left: 3px solid var(--primary);
        padding-left: calc(0.88rem - 2px);
        color: var(--primary-dark);
        font-weight: 700;
        box-shadow: none;
    }

    .lang-switch {
        width: 100%;
        max-width: none;
        margin-top: 0.1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.7);
        border-radius: 14px;
        padding: 0.45rem 0.5rem;
    }

    .lang-link {
        flex: 1 1 calc(50% - 0.35rem);
        max-width: none;
        min-width: 0;
        min-height: 40px;
        justify-content: center;
        padding: 0.38rem 0.55rem;
        border-radius: 999px;
        border: 1px solid transparent;
        color: var(--ink-soft);
        background: transparent;
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.07em;
    }

    .lang-link:hover {
        background: var(--surface-2);
        border-color: #c8d6f0;
        color: var(--ink);
    }

    .lang-link.active {
        flex: 1 1 calc(50% - 0.35rem);
        background: var(--primary);
        color: #fff;
        border-color: rgba(20, 82, 255, 0.35);
        box-shadow: 0 4px 14px rgba(20, 82, 255, 0.28);
    }

    .main-nav .nav-header-actions .nav-cta {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        justify-self: stretch;
        min-height: 46px;
        padding: 0.58rem 0.88rem;
        border-radius: 14px;
        font-size: 0.875rem;
        line-height: 1.28;
        font-weight: 800;
        font-family: "Outfit", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
        letter-spacing: -0.02em;
        border: 1px solid rgba(29, 78, 216, 0.42);
        background: linear-gradient(180deg, #3b82f6 0%, var(--primary) 38%, #1e40af 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.22) inset,
            0 12px 28px rgba(37, 99, 235, 0.32);
        margin-top: 0.05rem;
    }

    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(12, 22, 48, 0.48);
        border: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 88;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .access-toolbar-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.65rem;
        scrollbar-width: thin;
    }

    .access-toolbar-inner strong,
    .access-btn,
    .access-link {
        flex: 0 0 auto;
    }

    .access-link {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        min-height: 70px;
    }

    .main-nav {
        width: min(300px, calc(100vw - 2rem));
        border-radius: 14px 0 0 14px;
        padding: calc(env(safe-area-inset-top, 0px) + 0.85rem) 0.85rem calc(env(safe-area-inset-bottom, 0px) + 0.85rem) 0.95rem;
    }

    .main-nav .nav-drawer-content {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .nav-drawer-title {
        font-size: 0.88rem;
    }

    .menu-toggle {
        width: auto;
        min-height: 40px;
        padding: 0.4rem 0.68rem;
        justify-content: center;
        border-radius: 12px;
    }

    .menu-toggle .menu-toggle-text {
        display: inline;
        font-size: 0.9rem;
    }

    .brand {
        font-size: 0.98rem;
        max-width: calc(100% - 120px);
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .brand-wordmark {
        height: 44px;
        max-width: min(380px, 92vw);
    }

    .footer-brand-wordmark {
        height: 48px;
        max-width: min(360px, 96vw);
    }

/* Free Hook — outils gratuits (bandeau pre-footer + hub) */
.free-hook-band {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: clamp(2rem, 4vw, 2.75rem) 0;
    border-top: 1px solid #e2e8f0;
    font-family: "Public Sans", "Outfit", system-ui, sans-serif;
}

.free-hook-band--compact {
    padding: clamp(1.75rem, 3vw, 2.25rem) 0;
}

.free-hook-band__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1.5rem;
    margin-bottom: 1.35rem;
}

.free-hook-band__intro {
    flex: 1 1 16rem;
    min-width: 0;
}

.free-hook-band__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.55rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: #eaf2ff;
    color: #154db2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.free-hook-band__head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.free-hook-band__hub {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #154db2;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 120ms ease-out, border-color 120ms ease-out;
}

.free-hook-band__hub:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    text-decoration: none;
}

.free-hook-band__hub-arrow {
    line-height: 1;
    transition: transform 120ms ease-out;
}

.free-hook-band__hub:hover .free-hook-band__hub-arrow {
    transform: translateX(2px);
}

.free-hook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.free-hook-grid__item {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.free-hook-grid--hub,
.free-hook-grid--home {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.free-hook-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 140ms ease-out, box-shadow 140ms ease-out, transform 140ms ease-out;
}

.free-hook-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 28px rgba(30, 99, 216, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.free-hook-card--featured {
    border-color: #bfdbfe;
    background: linear-gradient(165deg, #ffffff 0%, #f0f7ff 100%);
}

.free-hook-card--large {
    padding: 1.25rem 1.3rem 1.15rem;
}

.free-hook-card__badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.free-hook-card--featured .free-hook-card__badge {
    background: #eaf2ff;
    color: #154db2;
    border-color: #bfdbfe;
}

.free-hook-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

.free-hook-card__icon {
    display: inline-flex;
    color: #1e40af;
}

.free-hook-card__icon svg {
    display: block;
}

.free-hook-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.free-hook-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
}

.free-hook-card__teaser {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #64748b;
}

.free-hook-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.15rem;
    font-weight: 700;
    font-size: 0.86rem;
    color: #15803d;
}

.free-hook-card__cta-arrow {
    line-height: 1;
    transition: transform 120ms ease-out;
}

.free-hook-card:hover .free-hook-card__cta-arrow {
    transform: translateX(2px);
}

@media (max-width: 719px) {
    .free-hook-band__head {
        align-items: stretch;
    }

    .free-hook-band__hub {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .free-hook-card,
    .free-hook-band__hub,
    .free-hook-card__cta-arrow,
    .free-hook-band__hub-arrow {
        transition: none !important;
    }

    .free-hook-card:hover {
        transform: none;
    }
}

/* Barre recherche + filtres (courriers, guides) */
.lia-letters-toolbar {
    padding: clamp(1.25rem, 3vw, 1.75rem) 0 0;
    background: #ffffff;
}

.lia-letters-toolbar__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.lia-letters-toolbar__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.75rem;
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--lia-line, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.12);
}

.lia-letters-toolbar__field {
    min-width: 0;
}

.lia-letters-toolbar__field--search {
    flex: 1 1 220px;
}

.lia-letters-toolbar__field--select {
    flex: 0 1 240px;
    min-width: min(100%, 180px);
}

.lia-letters-toolbar__label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lia-muted, #64748b);
}

.lia-letters-toolbar__search {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem 0.75rem 2.55rem;
    background: var(--lia-bg-soft, #f8fafc)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat 0.9rem center;
    background-size: 18px 18px;
    border: 1px solid var(--lia-line, #e2e8f0);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--lia-ink, #0f172a);
    transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

.lia-letters-toolbar__search::placeholder {
    color: #94a3b8;
}

.lia-letters-toolbar__search:focus {
    outline: none;
    border-color: var(--lia-blue, #1e63d8);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 99, 216, 0.12);
}

.lia-letters-toolbar__select {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 2.5rem 0.75rem 0.95rem;
    background: #ffffff
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 0.85rem center;
    background-size: 18px 18px;
    border: 1px solid var(--lia-line, #e2e8f0);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--lia-ink, #0f172a);
    appearance: none;
    cursor: pointer;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.lia-letters-toolbar__select:focus {
    border-color: var(--lia-blue, #1e63d8);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 99, 216, 0.12);
}

.lia-letters-toolbar__submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    background: linear-gradient(135deg, var(--lia-blue, #1e63d8) 0%, var(--lia-blue-dark, #154db2) 100%);
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(30, 99, 216, 0.22);
    transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.lia-letters-toolbar__submit-icon {
    display: block;
    flex-shrink: 0;
}

.lia-letters-toolbar__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 99, 216, 0.28);
}

@media (max-width: 719px) {
    .lia-letters-toolbar__form {
        align-items: stretch;
    }

    .lia-letters-toolbar__field--search,
    .lia-letters-toolbar__field--select {
        flex: 1 1 100%;
        min-width: 0;
    }

    .lia-letters-toolbar__submit {
        width: 100%;
    }
}

@media (min-width: 720px) {
    .lia-letters-toolbar__field--search {
        flex: 1 1 0;
    }
}

.floating-question-wrap {
    position: fixed;
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    bottom: max(5.25rem, calc(env(safe-area-inset-bottom, 0px) + 4.75rem));
    z-index: 97;
    max-width: min(19rem, calc(100vw - 1.25rem));
}

body:not(.has-mobile-sticky-cta) .floating-question-wrap {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.floating-question {
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(120, 150, 220, 0.45);
    background: linear-gradient(165deg, #ffffff 0%, #f4f7ff 100%);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.floating-question-trigger {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    font-weight: 800;
    font-size: 0.88rem;
    color: #1e2b4d;
}

.floating-question-trigger::-webkit-details-marker {
    display: none;
}

.floating-question-icon {
    display: inline-flex;
    color: var(--primary-dark);
}

.floating-question-label {
    flex: 1 1 auto;
    line-height: 1.25;
}

.floating-question-panel {
    padding: 0 0.9rem 0.85rem;
    border-top: 1px solid rgba(200, 210, 235, 0.65);
}

.floating-question-panel p {
    margin: 0.65rem 0 0.85rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.floating-question-panel .btn {
    margin-bottom: 0.15rem;
}

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