/* Correctifs globaux UI + mode sombre + formations */
html:not(.theme-dark) .bg-white .text-white:not(.btn):not(.badge),
html:not(.theme-dark) .card-header.bg-white .text-white:not(.btn):not(.badge),
html:not(.theme-dark) .modal-body.bg-white .text-white:not(.btn):not(.badge) {
    color: #0b2545 !important;
}

html.theme-dark body,
html.theme-dark .page-content {
    background: #071827 !important;
    color: #ecf6f8 !important;
}

html.theme-dark .bg-white,
html.theme-dark .bg-light,
html.theme-dark .card-header.bg-white,
html.theme-dark .modal-body,
html.theme-dark .modal-footer,
html.theme-dark .table,
html.theme-dark .list-group-item,
html.theme-dark .formation-card-pro,
html.theme-dark .formation-detail-card,
html.theme-dark .formation-buy-panel,
html.theme-dark .formation-similar-card,
html.theme-dark .formation-filter-bar,
html.theme-dark .formation-learner-card {
    background: #0d253c !important;
    color: #ecf6f8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .text-dark,
html.theme-dark .text-body,
html.theme-dark .dropdown-item,
html.theme-dark .card-title,
html.theme-dark .table,
html.theme-dark .table td,
html.theme-dark .table th,
html.theme-dark label,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
html.theme-dark strong {
    color: #f4fbff !important;
}

html.theme-dark .text-muted,
html.theme-dark small,
html.theme-dark p,
html.theme-dark .card-text,
html.theme-dark .form-text,
html.theme-dark .formation-card-pro p,
html.theme-dark .formation-detail-card p,
html.theme-dark .formation-learner-card small {
    color: #aec6d8 !important;
}

html.theme-dark .form-control,
html.theme-dark .form-select,
html.theme-dark textarea,
html.theme-dark input,
html.theme-dark select {
    background-color: #102b46 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f4fbff !important;
}

html.theme-dark .form-control::placeholder,
html.theme-dark textarea::placeholder,
html.theme-dark input::placeholder {
    color: #8fb0c7 !important;
}

.eclosion-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
}

.eclosion-loader__bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #047857, #0ea5e9, #f59e0b);
    box-shadow: 0 0 18px rgba(14, 165, 233, .45);
    opacity: 0;
}

.eclosion-loader.is-loading .eclosion-loader__bar {
    opacity: 1;
    animation: eclosionLoaderBar 1.25s ease-in-out infinite;
}

.eclosion-loader__pill {
    position: fixed;
    left: 50%;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(9, 55, 90, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #052b45;
    font-weight: 950;
    box-shadow: 0 18px 44px rgba(6, 27, 51, .22);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .18s ease, transform .18s ease;
}

.eclosion-loader.is-long .eclosion-loader__pill {
    opacity: 1;
    transform: translate(-50%, 0);
}

.eclosion-loader__pill span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(4, 120, 87, .18);
    border-top-color: #047857;
    animation: eclosionLoaderSpin .75s linear infinite;
}

@keyframes eclosionLoaderBar {
    0% { width: 0; left: 0; }
    45% { width: 72%; left: 0; }
    100% { width: 18%; left: 100%; }
}

@keyframes eclosionLoaderSpin {
    to { transform: rotate(360deg); }
}

html.theme-dark .eclosion-loader__pill {
    background: rgba(14, 23, 36, .96);
    border-color: rgba(148, 163, 184, .24);
    color: #e5eef8;
}

[data-pjax-shell] {
    min-height: 40vh;
    transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

[data-pjax-shell].pjax-loading {
    opacity: .56;
    transform: translateY(6px);
    filter: saturate(.92);
    pointer-events: none;
}

[data-pjax-shell].pjax-loading::after {
    content: "Chargement de la page...";
    display: none;
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 2200;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(9, 55, 90, .16);
    border-radius: 999px;
    background: #ffffff;
    color: #052b45;
    font-weight: 950;
    box-shadow: 0 18px 42px rgba(6, 27, 51, .18);
}

html.theme-dark [data-pjax-shell].pjax-loading::after {
    background: #0e1724;
    border-color: rgba(148, 163, 184, .24);
    color: #e5eef8;
}

body.admin-area [data-pjax-shell].pjax-loading::after {
    content: "Chargement admin...";
    background: #052b45;
    color: #ffffff;
    border-color: rgba(255, 255, 255, .18);
}

/* Fenetre contextuelle connexion / creation compte */
.auth-context-modal .modal-dialog {
    max-width: min(760px, calc(100vw - 24px));
}

.auth-context-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(6, 27, 51, .26);
}

.auth-context-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #052b45;
}

.auth-context-grid {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    min-height: auto;
}

.auth-context-side {
    display: grid;
    align-content: center;
    padding: 24px;
    background: #052b45;
    color: #ffffff;
}

.auth-context-side img {
    width: 112px;
    max-height: 40px;
    object-fit: contain;
    padding: 7px 10px;
    border-radius: 12px;
    background: #ffffff;
}

.auth-context-side .auth-security-visual--modal {
    width: 86px;
    max-height: 86px;
    margin-top: 16px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    opacity: .95;
}

.auth-context-side span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #b7f7dc;
    font-weight: 900;
    text-transform: uppercase;
    font-size: .7rem;
}

.auth-context-side h2 {
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.08;
    font-weight: 950;
}

.auth-context-side p {
    margin: 0;
    color: #cfe0ee;
    font-size: .86rem;
    line-height: 1.45;
}

.auth-welcome-picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    margin: 0 0 18px;
}

.auth-welcome-visual {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10.6;
    object-fit: contain;
    border-radius: 18px;
    background: #f4fbef;
    box-shadow: 0 18px 40px rgba(2, 18, 34, .18);
}

.auth-premium-aside .auth-welcome-picture {
    max-width: 560px;
    margin-bottom: 20px;
}

.auth-context-side {
    border-right: 1px solid rgba(9, 55, 90, .10);
    background:
        linear-gradient(180deg, rgba(246, 251, 239, .96), rgba(255, 255, 255, .98)),
        #f6fbef;
    color: #052b45;
}

.auth-context-side .auth-welcome-picture--modal {
    margin: 0 0 12px;
}

.auth-context-side .auth-welcome-visual--modal {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 16 / 10.6 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    object-fit: contain !important;
    background: #f4fbef !important;
    box-shadow: 0 14px 32px rgba(6, 27, 51, .12) !important;
}

.auth-context-side span {
    background: #e7f8ef;
    color: #047857;
}

.auth-context-side h2 {
    color: #052b45;
}

.auth-context-side p {
    color: #526b83;
}

.auth-context-panel {
    padding: 24px;
}

.auth-context-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    margin-bottom: 12px;
    border-radius: 13px;
    background: #f1f5f9;
}

.auth-context-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font-weight: 950;
}

.auth-context-brief {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 12px;
    padding: .72rem .8rem;
    border: 1px solid rgba(4, 120, 87, .14);
    border-radius: 13px;
    background: #f0fdf4;
}

.auth-context-brief > i {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: #047857;
    color: #ffffff;
}

.auth-context-brief span {
    display: grid;
    min-width: 0;
}

.auth-context-brief strong {
    color: #052b45;
    font-size: .92rem;
    font-weight: 950;
    line-height: 1.1;
}

.auth-context-brief small {
    color: #60758a;
    font-size: .76rem;
    font-weight: 800;
}

.auth-context-tabs button.active {
    background: #ffffff;
    color: #047857;
    box-shadow: 0 8px 20px rgba(6, 27, 51, .08);
}

.auth-context-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 850;
}

.auth-context-message.is-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.auth-context-message.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.auth-context-form {
    display: none;
    gap: 9px;
}

.auth-context-form.active {
    display: grid;
}

.auth-context-form label {
    display: grid;
    gap: 5px;
    color: #334155;
    font-weight: 900;
    font-size: .84rem;
}

.auth-context-form label span {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(9, 55, 90, .14);
    border-radius: 12px;
    background: #f8fafc;
}

.auth-context-form i {
    color: #047857;
    text-align: center;
}

.auth-context-form input {
    border: 0;
    outline: 0;
    background: transparent;
    color: #052b45;
    font-weight: 750;
}

.auth-context-submit {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #047857;
    color: #ffffff;
    font-weight: 950;
}

.auth-context-submit:hover {
    background: #065f46;
    color: #ffffff;
}

.auth-google-btn {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    align-items: center;
    justify-content: stretch;
    gap: .82rem;
    width: 100%;
    min-height: 64px;
    margin-bottom: .42rem;
    padding: .55rem .72rem;
    overflow: hidden;
    border: 1px solid rgba(9, 55, 90, .12);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 252, 255, .98)),
        #ffffff;
    color: #102033;
    text-align: left;
    box-shadow: 0 14px 32px rgba(6, 27, 51, .10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.auth-google-btn::after {
    content: "";
    position: absolute;
    inset: auto -32px -42px auto;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: rgba(66, 133, 244, .08);
    pointer-events: none;
}

.auth-google-mark {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
    box-shadow: 0 12px 24px rgba(66, 133, 244, .20);
}

.auth-google-mark span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #1a73e8;
    font-family: Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1;
}

.auth-google-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .16rem;
    min-width: 0;
}

.auth-google-copy strong {
    color: #102033;
    font-size: .98rem;
    font-weight: 950;
    line-height: 1.1;
}

.auth-google-copy small {
    color: #6b7d90;
    font-size: .76rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: normal;
}

.auth-google-arrow {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: #eef6ff;
    color: #1a73e8 !important;
    font-size: .82rem;
    transition: transform .18s ease, background .18s ease;
}

.auth-google-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(66, 133, 244, .30);
    background: #ffffff;
    color: #052b45;
    box-shadow: 0 18px 42px rgba(6, 27, 51, .14);
}

.auth-google-btn:hover .auth-google-arrow {
    transform: translateX(2px);
    background: #dbeafe;
}

.auth-google-btn--modal {
    margin: 2px 0 0;
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(6, 27, 51, .07);
}

.auth-google-btn--modal .auth-google-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.auth-google-btn--modal .auth-google-mark span {
    width: 30px;
    height: 30px;
    font-size: 1.04rem;
}

.auth-google-btn--modal .auth-google-copy strong {
    font-size: .9rem;
}

.auth-google-btn--modal .auth-google-copy small {
    font-size: .69rem;
}

.auth-google-context {
    display: flex;
    align-items: flex-start;
    gap: .42rem;
    margin: 0 0 .85rem;
    color: #60758a;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.35;
}

.auth-google-context i {
    margin-top: .15rem;
    color: #1a73e8;
}

.auth-google-context--modal {
    margin: .42rem 0 .7rem;
    font-size: .7rem;
}

@media (max-width: 420px) {
    .auth-google-btn {
        grid-template-columns: 42px minmax(0, 1fr) 28px;
        min-height: 58px;
        gap: .62rem;
        padding: .5rem .58rem;
    }

    .auth-google-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .auth-google-mark span {
        width: 30px;
        height: 30px;
        font-size: 1.04rem;
    }

    .auth-google-copy strong {
        font-size: .88rem;
    }

    .auth-google-copy small {
        font-size: .68rem;
    }

    .auth-google-arrow {
        width: 28px;
        height: 28px;
    }
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 2px 0 12px;
    color: #64748b;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(9, 55, 90, .14);
}

html.theme-dark .auth-context-modal .modal-content {
    background: #0e1724;
}

html.theme-dark .auth-context-tabs,
html.theme-dark .auth-context-form label span,
html.theme-dark .auth-context-brief {
    background: #101d2e;
    border-color: rgba(148, 163, 184, .22);
}

html.theme-dark .auth-context-form label,
html.theme-dark .auth-context-form input {
    color: #e5eef8;
}

html.theme-dark .auth-context-brief strong {
    color: #f7fbff;
}

html.theme-dark .auth-context-brief small {
    color: #a9bbcc;
}

html.theme-dark .auth-google-btn {
    background: linear-gradient(135deg, #111c2b, #0f1a29);
    border-color: rgba(255, 255, 255, .14);
    color: #e5edf5;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

html.theme-dark .auth-google-btn:hover {
    background: #172538;
    color: #ffffff;
}

html.theme-dark .auth-google-copy strong {
    color: #f7fbff;
}

html.theme-dark .auth-google-copy small,
html.theme-dark .auth-google-context {
    color: #a9bbcc;
}

html.theme-dark .auth-google-arrow {
    background: rgba(66, 133, 244, .18);
    color: #93c5fd !important;
}

html.theme-dark .auth-divider {
    color: #9fb1c8;
}

html.theme-dark .auth-divider::before,
html.theme-dark .auth-divider::after {
    background: rgba(255, 255, 255, .14);
}

/* Rayons: panneau catalogue plus lisible */
#categoriesSidebar {
    --rayon-ink: #05223d;
    --rayon-muted: #647c96;
    --rayon-line: #dbe8f3;
    width: min(410px, 100vw);
}

#categoriesSidebar .offcanvas-header.category-sidebar__head {
    min-height: 78px;
    padding: 1.1rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #008c69 0%, #00a884 52%, #075a75 100%) !important;
}

#categoriesSidebar .offcanvas-header.category-sidebar__head > div {
    min-width: 0;
}

#categoriesSidebar .category-sidebar__kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .18rem;
    color: rgba(255, 255, 255, .82);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

#categoriesSidebar .offcanvas-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1;
}

#categoriesSidebar .btn-close {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .14);
    background-size: 14px;
    opacity: 1;
    box-shadow: none;
}

#categoriesSidebar .btn-close:hover,
#categoriesSidebar .btn-close:focus-visible {
    background-color: rgba(255, 255, 255, .22);
}

#categoriesSidebar .category-sidebar {
    padding: 1.05rem 1rem 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

#categoriesSidebar .category-sidebar__intro {
    margin: 0 0 .85rem;
    color: #5f7893;
    font-size: .95rem;
    font-weight: 850;
    line-height: 1.55;
}

#categoriesSidebar .category-sidebar__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: .85rem;
}

#categoriesSidebar .category-sidebar__stats span {
    display: grid;
    gap: .1rem;
    min-height: 58px;
    align-content: center;
    padding: .65rem;
    border: 1px solid var(--rayon-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(6, 27, 51, .045);
}

#categoriesSidebar .category-sidebar__stats strong {
    color: #007a5c;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1;
}

#categoriesSidebar .category-sidebar__stats small {
    color: var(--rayon-muted);
    font-size: .72rem;
    font-weight: 900;
}

#categoriesSidebar .category-sidebar__grid {
    gap: .72rem;
}

#categoriesSidebar .category-sidebar__item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 42px;
    align-items: center;
    gap: .85rem;
    min-height: 74px;
    padding: .78rem .86rem;
    border: 1px solid var(--rayon-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(6, 27, 51, .06);
    color: var(--rayon-ink);
    text-decoration: none;
    overflow: hidden;
}

#categoriesSidebar .category-sidebar__item::after {
    width: 76px;
    height: 76px;
    inset: auto -34px -34px auto;
    background: rgba(0, 168, 132, .08);
    pointer-events: none;
}

#categoriesSidebar .category-sidebar__item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 168, 132, .34);
    background: #fafffd;
}

#categoriesSidebar .category-sidebar__icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 8px;
    background: #00a884;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(0, 168, 132, .18);
}

#categoriesSidebar .category-sidebar__icon i {
    font-size: 1rem;
    line-height: 1;
}

#categoriesSidebar .category-sidebar__copy {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    min-height: 0;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

#categoriesSidebar .category-sidebar__copy strong {
    display: block;
    color: var(--rayon-ink);
    font-size: .94rem;
    font-weight: 950;
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: anywhere;
}

#categoriesSidebar .category-sidebar__copy small {
    display: block;
    margin-top: .2rem;
    color: var(--rayon-muted);
    font-size: .74rem;
    font-weight: 850;
    line-height: 1.15;
    white-space: normal;
}

#categoriesSidebar .category-sidebar__item em {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    min-height: 30px;
    padding: .15rem .38rem;
    border-radius: 999px;
    background: #edf8f5;
    color: #007a5c;
    font-size: .76rem;
    font-style: normal;
    font-weight: 950;
    text-align: center;
}

#categoriesSidebar .category-sidebar__item:focus-visible {
    outline: 3px solid rgba(0, 168, 132, .24);
    outline-offset: 2px;
}

html.theme-dark #categoriesSidebar .category-sidebar {
    background: #0e1724;
}

html.theme-dark #categoriesSidebar .category-sidebar__intro,
html.theme-dark #categoriesSidebar .category-sidebar__copy small,
html.theme-dark #categoriesSidebar .category-sidebar__stats small {
    color: #9fb1c8;
}

html.theme-dark #categoriesSidebar .category-sidebar__item,
html.theme-dark #categoriesSidebar .category-sidebar__stats span {
    background: #111c2b;
    border-color: rgba(255, 255, 255, .12);
}

html.theme-dark #categoriesSidebar .category-sidebar__copy strong {
    color: #f4f8fb;
}

html.theme-dark #categoriesSidebar .category-sidebar__item:hover {
    background: #132236;
}

@media (max-width: 420px) {
    #categoriesSidebar .offcanvas-header.category-sidebar__head {
        padding: 1rem;
    }

    #categoriesSidebar .category-sidebar {
        padding: .95rem .85rem 1.2rem;
    }

    #categoriesSidebar .category-sidebar__intro {
        font-size: .88rem;
        line-height: 1.45;
    }

    #categoriesSidebar .category-sidebar__stats {
        gap: .45rem;
    }

    #categoriesSidebar .category-sidebar__stats span {
        min-height: 56px;
        padding: .55rem .42rem;
    }

    #categoriesSidebar .category-sidebar__stats strong {
        font-size: 1rem;
    }

    #categoriesSidebar .category-sidebar__stats small {
        font-size: .66rem;
    }

    #categoriesSidebar .category-sidebar__item {
        grid-template-columns: 46px minmax(0, 1fr) 34px;
        gap: .72rem;
        min-height: 72px;
        padding: .72rem .74rem;
    }

    #categoriesSidebar .category-sidebar__icon {
        width: 46px;
        height: 46px;
    }

    #categoriesSidebar .category-sidebar__copy strong {
        font-size: .9rem;
        line-height: 1.12;
    }

    #categoriesSidebar .category-sidebar__copy small {
        font-size: .7rem;
    }

    #categoriesSidebar .category-sidebar__item em {
        width: 30px;
        min-width: 30px;
        min-height: 28px;
        padding: .12rem .3rem;
        font-size: .72rem;
    }
}

/* Rayons du haut: bouton compact, clair, stable */
.nav-secondary .btn-rayons {
    display: inline-grid !important;
    grid-template-columns: 30px auto minmax(26px, auto);
    align-items: center;
    gap: .48rem;
    min-height: 40px;
    padding: .28rem .48rem .28rem .36rem !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #f5a623, #ffbf47) !important;
    color: #102033 !important;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14) !important;
    white-space: nowrap;
}

.nav-secondary .btn-rayons__icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
    color: #075a47;
}

.nav-secondary .btn-rayons__label {
    line-height: 1;
}

.nav-secondary .btn-rayons__count {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #102033;
    color: #ffffff;
    font-size: .74rem;
    font-style: normal;
    font-weight: 950;
}

.nav-secondary .btn-rayons:hover,
.nav-secondary .btn-rayons:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffb238, #ffd06d) !important;
}

.site-footer .footer-admin-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin: 1rem 0 .15rem;
}

.site-footer .footer-admin-tools a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    padding: .38rem .72rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #dbeafe;
    font-size: .82rem;
    font-weight: 900;
    text-decoration: none;
}

.site-footer .footer-admin-tools a:hover {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

/* Analyse site / Supabase */
.admin-area .analysis-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.admin-area .analysis-status-grid article,
.admin-area .analysis-panel {
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(11, 37, 69, .07);
}

.admin-area .analysis-status-grid article {
    display: grid;
    gap: .5rem;
    min-height: 150px;
    padding: 1.1rem;
}

.admin-area .analysis-status-grid article > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 9px;
    background: #eef6ff;
    color: #0b4a7a;
}

.admin-area .analysis-status-grid strong {
    color: #0b2545;
    font-size: 1rem;
    font-weight: 950;
}

.admin-area .analysis-status-grid small {
    color: #60758a;
    font-weight: 800;
}

.admin-area .analysis-badge {
    display: inline-flex;
    width: max-content;
    align-items: center;
    min-height: 28px;
    padding: .22rem .58rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 950;
}

.admin-area .analysis-badge.is-ok {
    background: #e9f8ef;
    color: #107c41;
}

.admin-area .analysis-badge.is-bad {
    background: #fff1f2;
    color: #b42318;
}

.admin-area .analysis-alert {
    border-radius: 10px;
    font-weight: 750;
}

.admin-area .analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-area .analysis-panel--wide {
    grid-column: 1 / -1;
}

.admin-area .analysis-panel {
    padding: 1rem;
}

.admin-area .analysis-list,
.admin-area .analysis-checks,
.admin-area .analysis-table-list,
.admin-area .analysis-bottom-grid {
    display: grid;
    gap: .65rem;
}

.admin-area .analysis-list article,
.admin-area .analysis-checks article,
.admin-area .analysis-table-list article,
.admin-area .analysis-bottom-grid article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .78rem .85rem;
    border: 1px solid #e2ebf2;
    border-radius: 8px;
    background: #f8fbfd;
}

.admin-area .analysis-list strong,
.admin-area .analysis-checks strong,
.admin-area .analysis-table-list strong,
.admin-area .analysis-bottom-grid strong {
    color: #0b2545;
    font-weight: 950;
}

.admin-area .analysis-list span,
.admin-area .analysis-table-list span,
.admin-area .analysis-checks small,
.admin-area .analysis-bottom-grid small {
    color: #60758a;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.admin-area .analysis-checks article {
    justify-content: flex-start;
}

.admin-area .analysis-checks article > div {
    flex: 1;
    min-width: 0;
}

.admin-area .analysis-checks i {
    color: #0a8f68;
}

.admin-area .analysis-bottom-panel {
    background:
        linear-gradient(135deg, rgba(8, 143, 104, .08), rgba(11, 74, 122, .08)),
        #ffffff;
}

.admin-area .analysis-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-area .analysis-bottom-grid article {
    justify-content: flex-start;
    min-height: 74px;
}

.admin-area .analysis-bottom-grid article > div {
    flex: 1;
    min-width: 0;
}

.admin-area .analysis-bottom-grid i {
    color: #0a8f68;
}

.admin-area .analysis-bottom-grid article.is-missing {
    border-color: rgba(180, 35, 24, .25);
    background: #fff8f8;
}

.admin-area .analysis-bottom-grid article.is-missing i {
    color: #b42318;
}

.admin-area .analysis-log {
    min-height: 280px;
    max-height: 420px;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    border: 1px solid #e2ebf2;
    border-radius: 8px;
    background: #091827;
    color: #c9f5df;
    font-size: .82rem;
    white-space: pre-wrap;
}

html.theme-dark .admin-area .analysis-status-grid article,
html.theme-dark .admin-area .analysis-panel {
    background: #111c2b;
    border-color: rgba(255, 255, 255, .12);
}

html.theme-dark .admin-area .analysis-list article,
html.theme-dark .admin-area .analysis-checks article,
html.theme-dark .admin-area .analysis-table-list article,
html.theme-dark .admin-area .analysis-bottom-grid article {
    background: #0f1a29;
    border-color: rgba(255, 255, 255, .10);
}

html.theme-dark .admin-area .analysis-status-grid strong,
html.theme-dark .admin-area .analysis-list strong,
html.theme-dark .admin-area .analysis-checks strong,
html.theme-dark .admin-area .analysis-table-list strong,
html.theme-dark .admin-area .analysis-bottom-grid strong {
    color: #f4f8fb;
}

html.theme-dark .admin-area .analysis-bottom-panel {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(56, 189, 248, .10)),
        #111c2b;
}

html.theme-dark .admin-area .analysis-bottom-grid article.is-missing {
    background: rgba(180, 35, 24, .14);
    border-color: rgba(248, 113, 113, .28);
}

@media (max-width: 991.98px) {
    .admin-area .analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .admin-area .analysis-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .auth-context-grid {
        grid-template-columns: 1fr;
    }

    .auth-context-side {
        padding: 18px;
        min-height: auto;
    }

    .auth-context-side .auth-security-visual--modal {
        display: none;
    }

    .auth-context-side .auth-welcome-picture--modal {
        margin-bottom: 10px;
    }

    .auth-context-side .auth-welcome-visual--modal {
        aspect-ratio: 16 / 8.5 !important;
    }

    .auth-context-side span {
        margin-top: 12px;
    }

    .auth-context-side h2 {
        margin-bottom: 4px;
        font-size: 1.2rem;
    }

    .auth-context-side p {
        display: none;
    }

    .auth-context-panel {
        padding: 18px;
    }
}

/* Auth premium */
.auth-premium-page {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 64px) 16px;
    background:
        radial-gradient(circle at 20% 10%, rgba(4, 120, 87, .12), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(9, 55, 90, .12), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #eef5f7 100%);
}

.auth-premium-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1fr);
    gap: 22px;
    align-items: stretch;
}

.auth-premium-aside,
.auth-premium-card {
    border: 1px solid rgba(9, 55, 90, .12);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(6, 27, 51, .14);
}

.auth-premium-aside {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    background: #052b45;
    color: #ffffff;
}

.auth-premium-aside::after {
    content: "";
    position: absolute;
    inset: auto -10% -20% 20%;
    height: 220px;
    background: rgba(4, 120, 87, .22);
    border-radius: 50%;
}

.auth-premium-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 154px;
    height: 58px;
    margin-bottom: 30px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.auth-premium-logo img {
    max-width: 128px;
    max-height: 42px;
    object-fit: contain;
}

.auth-premium-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #b7f7dc;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.auth-premium-aside h1 {
    position: relative;
    z-index: 1;
    margin: 18px 0 12px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.02;
    font-weight: 950;
}

.auth-premium-aside p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    color: #cfe0ee;
    font-size: 1.02rem;
}

.auth-premium-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.auth-premium-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-weight: 800;
}

.auth-premium-benefits i {
    color: #7ee0b2;
}

.auth-premium-card {
    padding: clamp(22px, 4vw, 36px);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

.auth-premium-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.auth-premium-card__head > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ecfdf5;
    color: #047857;
    font-size: 1.25rem;
}

.auth-premium-card__head h2 {
    margin: 0;
    color: #052b45;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 950;
}

.auth-premium-card__head p {
    margin: 2px 0 0;
    color: #64748b;
}

.auth-premium-form {
    display: grid;
    gap: 14px;
}

.auth-premium-form--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field--wide {
    grid-column: 1 / -1;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field > span,
.auth-check {
    color: #334155;
    font-size: .88rem;
    font-weight: 900;
}

.auth-field > div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    border: 1px solid rgba(9, 55, 90, .14);
    border-radius: 16px;
    background: #f8fafc;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-field > div:focus-within {
    border-color: #047857;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, .12);
}

.auth-field i {
    color: #047857;
    text-align: center;
}

.auth-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #052b45;
    font-weight: 700;
}

.auth-field input::placeholder {
    color: #94a3b8;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: #047857;
}

.auth-check a,
.auth-muted-link,
.auth-switch-box a {
    color: #047857;
    font-weight: 950;
    text-decoration: none;
}

.auth-submit-btn {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: #047857;
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 16px 30px rgba(4, 120, 87, .22);
}

.auth-submit-btn:hover {
    background: #065f46;
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-switch-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(9, 55, 90, .1);
    color: #64748b;
}

.auth-alert {
    border-radius: 14px;
    font-weight: 800;
}

html.theme-dark .auth-premium-page {
    background: linear-gradient(180deg, #061321 0%, #0b1724 100%);
}

html.theme-dark .auth-premium-card {
    background: rgba(14, 23, 36, .96);
    border-color: rgba(148, 163, 184, .22);
}

html.theme-dark .auth-premium-card__head h2,
html.theme-dark .auth-field input {
    color: #e5eef8;
}

html.theme-dark .auth-premium-card__head p,
html.theme-dark .auth-switch-box {
    color: #a7b7c9;
}

html.theme-dark .auth-field > div {
    background: #101d2e;
    border-color: rgba(148, 163, 184, .22);
}

/* Produit detail : produits similaires plus premium */
.similar-products {
    margin-top: 2.75rem !important;
    padding: 1.25rem !important;
    border: 1px solid #d9e5ee !important;
    border-radius: 16px !important;
    background: #f8fbfd !important;
    box-shadow: 0 16px 36px rgba(6, 27, 51, .07) !important;
}

.similar-products__head {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.similar-products__head span {
    display: inline-flex !important;
    align-items: center !important;
    gap: .4rem !important;
    color: #0b7a4b !important;
    font-size: .75rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.similar-products__head span::before {
    content: "\f06c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.similar-products__head h2 {
    margin: .2rem 0 0 !important;
    color: #06243f !important;
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    font-weight: 950 !important;
}

.similar-products__head a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .45rem .8rem;
    border: 1px solid #bdd5e5;
    border-radius: 999px;
    background: #fff;
    color: #06365f;
    font-size: .82rem;
    font-weight: 900;
    text-decoration: none;
}

.similar-products__actions {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.similar-scroll-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #bdd5e5;
    border-radius: 50%;
    background: #fff;
    color: #06365f;
    box-shadow: 0 8px 18px rgba(6, 27, 51, .08);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.similar-scroll-btn:hover {
    transform: translateY(-2px);
    border-color: #0b7a4b;
    background: #ecfdf5;
    color: #0b7a4b;
}

.similar-products__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: .25rem;
    padding: .25rem .15rem .75rem;
    scrollbar-width: thin;
    scrollbar-color: #9fc9b8 transparent;
}

.similar-products__rail::-webkit-scrollbar {
    height: 8px;
}

.similar-products__rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9fc9b8;
}

.similar-product-card {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 152px 154px !important;
    width: 260px !important;
    height: 306px !important;
    min-height: 306px !important;
    overflow: hidden !important;
    border: 1px solid #d9e5ee !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(6, 27, 51, .07) !important;
    text-decoration: none !important;
    scroll-snap-align: start;
    animation: similarFloatUp 4.8s ease-in-out infinite;
}

.similar-product-card:nth-child(even) {
    animation-name: similarFloatDown;
    animation-delay: .35s;
}

.similar-product-card:nth-child(3n) {
    animation-delay: .7s;
}

.similar-product-card:hover {
    transform: translateY(-3px) !important;
    border-color: #a9d4c0 !important;
    box-shadow: 0 18px 34px rgba(6, 27, 51, .11) !important;
    animation-play-state: paused;
}

.similar-product-card__image {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 152px !important;
    min-height: 0 !important;
    background: #f3f8f5 !important;
    color: #0b7a4b !important;
}

.similar-product-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
}

.similar-product-card__body {
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    align-content: stretch !important;
    gap: .45rem !important;
    padding: .85rem !important;
    background: #fff !important;
}

.similar-product-card__body strong {
    display: -webkit-box !important;
    min-height: 40px !important;
    overflow: hidden !important;
    color: #06243f !important;
    font-size: .92rem !important;
    font-weight: 950 !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.similar-product-card__body small {
    display: -webkit-box !important;
    min-height: 38px !important;
    overflow: hidden !important;
    color: #60758d !important;
    font-size: .76rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.similar-product-card__body em {
    justify-self: start !important;
    padding: .35rem .65rem !important;
    border-radius: 999px !important;
    background: #ecfdf5 !important;
    color: #0b7a4b !important;
    font-size: .9rem !important;
    font-style: normal !important;
    font-weight: 950 !important;
}

html.theme-dark .similar-products,
html.theme-dark .similar-product-card,
html.theme-dark .similar-products__head a {
    background: #0d253c !important;
    border-color: rgba(255, 255, 255, .14) !important;
}

html.theme-dark .similar-products__head h2,
html.theme-dark .similar-product-card__body strong,
html.theme-dark .similar-products__head a {
    color: #f4fbff !important;
}

html.theme-dark .similar-scroll-btn {
    background: #102b46 !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #f4fbff !important;
}

html.theme-dark .similar-product-card__image {
    background: #102b46 !important;
}

html.theme-dark .similar-product-card__body {
    background: #0d253c !important;
}

@media (max-width: 575.98px) {
    .similar-products {
        padding: .85rem !important;
    }

    .similar-products__head {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .similar-products__actions {
        width: 100%;
    }

    .similar-products__actions a {
        margin-left: auto;
    }

    .similar-products__rail {
        grid-auto-columns: 178px;
        gap: .75rem;
    }

    .similar-product-card {
        grid-template-rows: 106px 142px !important;
        width: 178px !important;
        height: 248px !important;
        min-height: 248px !important;
        border-radius: 12px !important;
    }

    .similar-product-card__image {
        height: 106px !important;
    }

    .similar-product-card__body {
        padding: .65rem !important;
    }

    .similar-product-card__body strong {
        min-height: 38px !important;
        font-size: .8rem !important;
    }

    .similar-product-card__body small {
        min-height: 34px !important;
        font-size: .7rem !important;
    }

    .similar-product-card__body em {
        padding: .28rem .5rem !important;
        font-size: .78rem !important;
    }
}

@keyframes similarFloatUp {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -8px;
    }
}

@keyframes similarFloatDown {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .similar-product-card {
        animation: none !important;
    }
}

/* Page detail commande client + commentaires */
.order-detail-page {
    color: #06243f;
}

.order-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #d9e5ee;
    border-radius: 16px;
    background: #f8fbfd;
    box-shadow: 0 16px 36px rgba(6, 27, 51, .07);
}

.order-back-link,
.order-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #0b7a4b;
    font-size: .82rem;
    font-weight: 900;
    text-decoration: none;
}

.order-kicker {
    display: flex;
    margin-top: .8rem;
    text-transform: uppercase;
}

.order-detail-hero h1 {
    margin: .2rem 0;
    color: #06243f;
    font-weight: 950;
}

.order-detail-hero p {
    margin: 0;
    color: #60758d;
}

.order-detail-hero aside {
    min-width: 190px;
    padding: 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dce8f0;
}

.order-detail-hero aside small,
.order-detail-hero aside strong,
.order-detail-hero aside span {
    display: block;
}

.order-detail-hero aside strong {
    color: #0b7a4b;
    font-size: 1.35rem;
}

.order-detail-hero aside span {
    margin-top: .4rem;
    color: #06365f;
    font-weight: 900;
}

.order-detail-grid,
.order-comment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 1rem;
}

.order-detail-panel {
    padding: 1rem;
    border: 1px solid #d9e5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(6, 27, 51, .06);
}

.order-detail-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #edf3f7;
}

.order-detail-panel__head h2 {
    margin: 0;
    color: #06243f;
    font-size: 1.05rem;
    font-weight: 950;
}

.order-detail-panel__head span {
    color: #60758d;
    font-size: .82rem;
    font-weight: 800;
}

.order-item-list,
.order-comment-list {
    display: grid;
    gap: .75rem;
}

.order-item-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid #e1ebf2;
    border-radius: 12px;
    background: #f8fbfd;
}

.order-item-card > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 12px;
    background: #ecfdf5;
    color: #0b7a4b;
}

.order-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-card strong,
.order-item-card small,
.order-item-card em {
    display: block;
}

.order-item-card em {
    color: #0b7a4b;
    font-style: normal;
    font-weight: 950;
}

.order-info-list {
    display: grid;
    gap: .65rem;
}

.order-info-list p {
    display: grid;
    grid-template-columns: 28px minmax(0, .65fr) minmax(0, 1fr);
    gap: .55rem;
    align-items: start;
    margin: 0;
    padding: .65rem;
    border-radius: 10px;
    background: #f8fbfd;
}

.order-info-list i {
    color: #0b7a4b;
}

.order-info-list span {
    color: #60758d;
    font-size: .8rem;
    font-weight: 900;
}

.order-info-list strong {
    color: #06243f;
    font-size: .86rem;
}

.order-comment-form {
    display: grid;
    gap: .75rem;
}

.order-comment-form textarea {
    resize: vertical;
    min-height: 130px;
}

.order-comment-form .btn {
    justify-self: start;
}

.order-comment-list article,
.order-comment-admin {
    display: grid;
    gap: .45rem;
    padding: .85rem;
    border: 1px solid #dce8f0;
    border-radius: 12px;
    background: #f8fbfd;
}

.order-comment-list article div,
.order-comment-admin div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.order-comment-list article em,
.order-comment-admin em {
    justify-self: start;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0b7a4b;
    font-style: normal;
    font-weight: 950;
}

.order-comment-list article p,
.order-comment-admin p {
    margin: 0;
    color: #253f58;
}

.order-comment-admin-list {
    display: grid;
    gap: .7rem;
}

/* Admin commandes: tableau commentaires clients */
.order-comments-board {
    border: 1px solid rgba(10, 58, 92, 0.12);
    border-radius: 16px;
    overflow: hidden;
}

.order-comments-board .admin-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.order-comments-board .admin-section-head h2 {
    margin: 4px 0 6px;
    color: #052b45;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 900;
}

.order-comments-board .admin-section-head p {
    margin: 0;
    color: #64748b;
    max-width: 720px;
}

.order-comments-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: min(100%, 460px);
}

.order-comments-filters .form-select {
    width: 155px;
    border-radius: 12px;
    border-color: rgba(10, 58, 92, 0.18);
    font-weight: 700;
}

.order-comments-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.order-comments-stats article {
    background: #f8fafc;
    border: 1px solid rgba(10, 58, 92, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
}

.order-comments-stats span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.order-comments-stats strong {
    display: block;
    margin-top: 4px;
    color: #052b45;
    font-size: 1.4rem;
    font-weight: 950;
}

.order-comments-table-wrap {
    border: 1px solid rgba(10, 58, 92, 0.1);
    border-radius: 14px;
    max-height: 520px;
    overflow: auto;
}

.order-comments-table {
    min-width: 1120px;
    margin: 0;
}

.order-comments-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #052b45;
    color: #ffffff;
    border: 0;
    font-size: .78rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.order-comments-table tbody td {
    border-color: rgba(10, 58, 92, 0.1);
    color: #06243a;
    vertical-align: top;
}

.order-comments-products {
    max-width: 220px;
    color: #475569;
    font-size: .92rem;
}

.order-comment-text {
    min-width: 260px;
    max-width: 420px;
    line-height: 1.55;
}

.order-rating-pill,
.order-comment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
}

.order-rating-pill {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.order-rating-pill i {
    color: #f59e0b;
}

.order-comment-status.is-visible {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.order-comment-status.is-hidden {
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.comment-muted-row {
    opacity: .72;
}

.order-comments-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 6px;
    color: #64748b;
}

.order-comments-empty i {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #047857;
    background: #ecfdf5;
    font-size: 1.4rem;
}

.order-comments-empty strong {
    color: #052b45;
    font-size: 1.05rem;
}

/* Commentaires clients sur fiche produit */
.product-comments-section {
    margin-top: 28px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(10, 58, 92, .12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(10, 58, 92, .08);
}

.product-comments-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.product-comments-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #047857;
    font-size: .8rem;
    font-weight: 950;
    text-transform: uppercase;
}

.product-comments-head h2 {
    margin: 6px 0;
    color: #052b45;
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
    font-weight: 950;
}

.product-comments-head p {
    margin: 0;
    max-width: 720px;
    color: #64748b;
}

.product-comments-head aside {
    min-width: 128px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    text-align: center;
}

.product-comments-head aside strong {
    display: block;
    color: #047857;
    font-size: 1.45rem;
    font-weight: 950;
}

.product-comments-head aside small {
    color: #35536d;
    font-weight: 800;
}

.product-comments-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.product-comment-form,
.product-comment-card,
.product-comments-empty {
    border: 1px solid rgba(10, 58, 92, .12);
    border-radius: 16px;
    background: #f8fafc;
}

.product-comment-form {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.product-comment-form h3 {
    margin: 0;
    color: #052b45;
    font-size: 1.05rem;
    font-weight: 950;
}

.product-comment-form .form-select,
.product-comment-form .form-control {
    border-radius: 12px;
    border-color: rgba(10, 58, 92, .16);
}

.product-comment-form textarea {
    min-height: 132px;
    resize: vertical;
}

.product-comments-list {
    display: grid;
    gap: 12px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.product-comment-card {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.product-comment-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-comment-card strong {
    color: #052b45;
    font-weight: 950;
}

.product-comment-card small {
    color: #64748b;
    font-weight: 700;
}

.product-comment-card em {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-style: normal;
    font-weight: 950;
}

.product-comment-card em i {
    color: #f59e0b;
}

.product-comment-card p {
    margin: 0;
    color: #253f58;
    line-height: 1.65;
}

.product-comments-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    color: #64748b;
    padding: 24px;
}

.product-comments-empty i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ecfdf5;
    color: #047857;
    font-size: 1.45rem;
}

.product-comments-empty strong {
    color: #052b45;
    font-size: 1.05rem;
}

.product-comments-section--social {
    margin-top: 22px;
}

.product-comments-social-layout {
    display: grid;
    gap: 14px;
}

.product-comment-form--facebook {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border-color: rgba(10, 58, 92, .1);
    box-shadow: 0 10px 26px rgba(10, 58, 92, .06);
}

.product-comment-avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 999px;
    background: #e9eef5;
    color: #052b45;
    font-size: 1rem;
}

.product-comment-compose {
    display: grid;
    gap: 10px;
}

.product-comment-form--facebook textarea {
    min-height: 46px;
    border: 0;
    border-radius: 22px;
    background: #f0f2f5;
    padding: 12px 16px;
    resize: vertical;
}

.product-comment-form--facebook textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, .14);
}

.product-comment-login {
    display: block;
    padding: 12px 16px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #52616f;
    font-weight: 800;
    text-decoration: none;
}

.product-comment-login:hover {
    color: #047857;
    background: #ecfdf5;
}

.product-comment-compose__bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.product-comment-compose__bar .form-select {
    width: 110px;
    border-radius: 999px;
    background-color: #f8fafc;
    font-weight: 800;
}

.product-comment-compose__bar .btn {
    border-radius: 999px;
    font-weight: 900;
}

.product-comments-list--facebook {
    max-height: none;
    padding-right: 0;
}

.product-comment-card--facebook {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.product-comment-bubble {
    min-width: 0;
}

.product-comment-bubble > div {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 18px;
    background: #f0f2f5;
}

.product-comment-bubble strong {
    color: #052b45;
    font-size: .92rem;
    font-weight: 950;
}

.product-comment-bubble em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 2px;
    color: #92400e;
    font-size: .78rem;
    font-style: normal;
    font-weight: 900;
}

.product-comment-bubble em i {
    color: #f59e0b;
}

.product-comment-bubble p {
    width: 100%;
    margin: 5px 0 0;
    color: #1f2937;
    line-height: 1.5;
}

.product-comment-bubble small {
    display: block;
    margin: 4px 0 0 14px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

html.theme-dark .product-comment-form--facebook {
    background: #0e1724;
}

html.theme-dark .product-comment-avatar,
html.theme-dark .product-comment-form--facebook textarea,
html.theme-dark .product-comment-login,
html.theme-dark .product-comment-bubble > div {
    background: #162235;
    color: #dbeafe;
}

html.theme-dark .product-comment-bubble p,
html.theme-dark .product-comment-bubble strong {
    color: #e5eef8;
}

html.theme-dark .product-comment-bubble small {
    color: #a7b7c9;
}

/* Boutique: pagination AJAX sans recharger toute la page */
#shop-products-dynamic,
.shop-page-content {
    position: relative;
    transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

#shop-products-dynamic.shop-products-loading,
.shop-page-content.shop-products-loading {
    opacity: .56;
    transform: translateY(6px);
    filter: saturate(.9);
    pointer-events: none;
}

.shop-page-content.shop-products-loading::after,
#shop-products-dynamic.shop-products-loading::after {
    content: "Chargement des produits...";
    position: absolute;
    inset: 74px auto auto 50%;
    z-index: 20;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(9, 55, 90, .16);
    border-radius: 999px;
    background: #ffffff;
    color: #052b45;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(6, 27, 51, .16);
}

.shop-pagination-nav .pagination {
    gap: 10px;
}

.shop-pagination-nav .page-link {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9ddec;
    border-radius: 14px !important;
    background: #ffffff;
    color: #052b45;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(6, 27, 51, .06);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.shop-pagination-nav .page-link:hover {
    transform: translateY(-2px);
    background: #ecfdf5;
    color: #047857;
    box-shadow: 0 14px 28px rgba(4, 120, 87, .14);
}

.shop-pagination-nav .page-item.active .page-link {
    border-color: #1f5aa6;
    background: #1f5aa6;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(31, 90, 166, .24);
}

.shop-service-toggle {
    width: calc(100% - 24px);
    margin: 12px auto 0;
    min-height: 48px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(9, 55, 90, .14);
    border-radius: 14px;
    background: #ffffff;
    color: #052b45;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(6, 27, 51, .08);
}

.shop-service-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shop-service-toggle[aria-expanded="true"] > i {
    transform: rotate(180deg);
}

.shop-service-toggle > i {
    transition: transform .18s ease;
}

html.theme-dark .shop-service-toggle {
    background: #0e1724;
    border-color: rgba(148, 163, 184, .22);
    color: #e5eef8;
}

html.theme-dark #shop-products-dynamic.shop-products-loading::after,
html.theme-dark .shop-pagination-nav .page-link {
    background: #0e1724;
    border-color: rgba(148, 163, 184, .22);
    color: #e5eef8;
}

html.theme-dark .product-comments-section {
    background: #0b1320;
    border-color: rgba(148, 163, 184, .22);
}

html.theme-dark .product-comment-form,
html.theme-dark .product-comment-card,
html.theme-dark .product-comments-empty {
    background: #0e1724;
    border-color: rgba(148, 163, 184, .22);
}

html.theme-dark .product-comments-head h2,
html.theme-dark .product-comment-form h3,
html.theme-dark .product-comment-card strong,
html.theme-dark .product-comments-empty strong {
    color: #e5eef8;
}

html.theme-dark .product-comments-head p,
html.theme-dark .product-comment-card p,
html.theme-dark .product-comment-card small,
html.theme-dark .product-comments-empty {
    color: #a7b7c9;
}

html.theme-dark .order-comments-board .admin-section-head h2,
html.theme-dark .order-comments-stats strong,
html.theme-dark .order-comments-empty strong {
    color: #e5eef8;
}

html.theme-dark .order-comments-board .admin-section-head p,
html.theme-dark .order-comments-products,
html.theme-dark .order-comments-empty {
    color: #a7b7c9;
}

html.theme-dark .order-comments-stats article,
html.theme-dark .order-comments-table-wrap {
    background: #0e1724;
    border-color: rgba(148, 163, 184, 0.22);
}

html.theme-dark .order-comments-table tbody td {
    color: #dbeafe;
    border-color: rgba(148, 163, 184, 0.18);
}

html.theme-dark .order-comments-table thead th {
    background: #111827;
}

@media (max-width: 991.98px) {
    .auth-premium-shell {
        grid-template-columns: 1fr;
    }

    .auth-premium-aside {
        min-height: auto;
    }

    .auth-premium-aside h1 {
        font-size: 2rem;
    }

    .auth-premium-form--grid {
        grid-template-columns: 1fr;
    }

    .auth-form-row,
    .auth-switch-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-detail-hero,
    .order-detail-grid,
    .order-comment-grid {
        grid-template-columns: 1fr;
    }

    .order-comments-board .admin-section-head {
        display: block;
    }

    .order-comments-filters {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .order-comments-filters .form-select,
    .order-comments-filters .btn {
        width: 100%;
    }

    .order-comments-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-comments-head,
    .product-comments-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .product-comments-head aside {
        width: 100%;
    }

    .product-comment-form--facebook {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .product-comment-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .product-comment-compose__bar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-comment-compose__bar .form-select,
    .product-comment-compose__bar .btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .shop-service-toggle {
        display: flex;
    }

    .shop-service-strip.mobile-collapsible:not(.show) {
        display: none !important;
    }

    .shop-service-strip.mobile-collapsible.show {
        display: grid !important;
    }
}

@media (max-width: 575.98px) {
    .order-detail-hero,
    .order-detail-panel {
        padding: .85rem;
    }

    .order-item-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .order-item-card em {
        grid-column: 2;
    }

    .order-info-list p {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .order-info-list strong {
        grid-column: 2;
    }
}

/* Chat client plus elegant et interactif */
.premium-chat-panel {
    width: min(420px, calc(100vw - 24px)) !important;
    overflow: hidden !important;
    border: 1px solid rgba(10, 80, 65, .18) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 28px 70px rgba(6, 27, 51, .24) !important;
}

.premium-chat-panel__head {
    position: relative !important;
    gap: .85rem !important;
    padding: 1rem !important;
    background: #06243f !important;
    color: #fff !important;
}

.premium-chat-panel__head::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0 1rem;
    height: 1px;
    background: rgba(255, 255, 255, .16);
}

.premium-chat-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: #0b7a4b !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(11, 122, 75, .28) !important;
}

.premium-chat-panel__head span,
.premium-chat-panel__head strong {
    color: #fff !important;
}

.premium-chat-panel__head div > span {
    display: block !important;
    opacity: .78 !important;
    font-size: .76rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.premium-chat-panel__head div > strong {
    display: block !important;
    font-size: .98rem !important;
    font-weight: 950 !important;
}

.premium-chat-panel__head button {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

.premium-chat-panel__body {
    max-height: min(62vh, 560px) !important;
    padding: 1rem !important;
    background:
        linear-gradient(rgba(248, 251, 253, .96), rgba(248, 251, 253, .96)),
        radial-gradient(circle at 10px 10px, rgba(11, 122, 75, .08) 1px, transparent 1px) !important;
    background-size: auto, 22px 22px !important;
}

.premium-chat-thread {
    display: grid !important;
    gap: .65rem !important;
}

.premium-chat-message {
    width: fit-content !important;
    max-width: 88% !important;
    border: 1px solid #dbe8ef !important;
    border-radius: 16px 16px 16px 5px !important;
    background: #fff !important;
    color: #12314a !important;
    box-shadow: 0 8px 22px rgba(6, 27, 51, .07) !important;
}

.premium-chat-message--user {
    justify-self: end !important;
    border-color: #bce2ce !important;
    border-radius: 16px 16px 5px 16px !important;
    background: #eaf8f0 !important;
}

.premium-chat-quick {
    display: flex !important;
    gap: .45rem !important;
    overflow-x: auto !important;
    padding-bottom: .25rem !important;
    scrollbar-width: none !important;
}

.premium-chat-quick::-webkit-scrollbar {
    display: none;
}

.premium-chat-quick button {
    flex: 0 0 auto !important;
    border: 1px solid #cfe0eb !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #06365f !important;
    font-size: .78rem !important;
    font-weight: 900 !important;
}

.premium-chat-quick button:hover {
    border-color: #0b7a4b !important;
    background: #ecfdf5 !important;
    color: #0b7a4b !important;
}

.premium-chat-input {
    min-height: 92px !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px #d7e5ee !important;
}

.premium-chat-panel__foot {
    padding: .85rem 1rem 1rem !important;
    background: #fff !important;
}

.premium-chat-send {
    min-height: 44px !important;
    border-radius: 12px !important;
    background: #0b7a4b !important;
    border-color: #0b7a4b !important;
    font-weight: 950 !important;
}

html.theme-dark .premium-chat-panel,
html.theme-dark .premium-chat-panel__foot,
html.theme-dark .premium-chat-input,
html.theme-dark .premium-chat-quick button {
    background: #0d253c !important;
    border-color: rgba(255, 255, 255, .14) !important;
}

html.theme-dark .premium-chat-panel__body {
    background: #091c2e !important;
}

html.theme-dark .premium-chat-message {
    background: #102b46 !important;
    color: #f4fbff !important;
}

html.theme-dark .premium-chat-message--user {
    background: #103b32 !important;
}

@media (max-width: 575.98px) {
    .premium-chat-panel {
        right: 8px !important;
        left: 8px !important;
        bottom: 116px !important;
        width: auto !important;
        border-radius: 18px !important;
    }

    .premium-chat-panel__body {
        max-height: 58vh !important;
    }
}

/* Chat IA : version mobile plus petite */
@media (max-width: 575.98px) {
    .premium-chat-panel {
        left: auto !important;
        right: 10px !important;
        bottom: 72px !important;
        width: min(330px, calc(100vw - 20px)) !important;
        max-height: 64vh !important;
        border-radius: 14px !important;
    }

    .premium-chat-panel__head {
        grid-template-columns: 36px minmax(0, 1fr) 30px 30px !important;
        gap: .48rem !important;
        padding: .58rem .66rem !important;
    }

    .premium-chat-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        font-size: .82rem !important;
    }

    .premium-chat-panel__head div > span {
        font-size: .62rem !important;
        line-height: 1.05 !important;
    }

    .premium-chat-panel__head div > strong {
        font-size: .78rem !important;
        line-height: 1.12 !important;
    }

    .premium-chat-panel__head div > small {
        margin-top: .1rem !important;
        font-size: .62rem !important;
    }

    .premium-chat-panel__head button {
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
        font-size: .78rem !important;
    }

    .premium-chat-panel__body {
        max-height: calc(64vh - 132px) !important;
        padding: .58rem .62rem !important;
    }

    .premium-chat-thread {
        gap: .42rem !important;
    }

    .premium-chat-message {
        max-width: 88% !important;
        padding: .5rem .58rem !important;
        border-radius: 12px 12px 12px 4px !important;
        font-size: .82rem !important;
        line-height: 1.35 !important;
    }

    .premium-chat-message--user {
        border-radius: 12px 12px 4px 12px !important;
    }

    .premium-chat-time {
        font-size: .58rem !important;
    }

    .premium-chat-answer {
        gap: .24rem !important;
    }

    .premium-chat-answer strong,
    .premium-chat-answer p {
        font-size: .82rem !important;
        line-height: 1.35 !important;
    }

    .premium-chat-thinking {
        min-width: min(250px, 86%) !important;
    }

    .premium-chat-thinking__head > i {
        width: 24px !important;
        height: 24px !important;
        border-radius: 8px !important;
        font-size: .72rem !important;
    }

    .premium-chat-thinking__head strong {
        font-size: .75rem !important;
    }

    .premium-chat-thinking__steps {
        margin-top: .38rem !important;
        font-size: .66rem !important;
    }

    .premium-chat-quick {
        gap: .35rem !important;
        margin-top: .48rem !important;
        padding-bottom: .12rem !important;
    }

    .premium-chat-quick button,
    .premium-chat-suggestions button {
        min-height: 30px !important;
        padding: .32rem .5rem !important;
        border-radius: 8px !important;
        font-size: .68rem !important;
        gap: .25rem !important;
    }

    .premium-chat-input {
        min-height: 58px !important;
        margin-top: .48rem !important;
        border-radius: 10px !important;
        font-size: .82rem !important;
        padding: .5rem .58rem !important;
    }

    .premium-chat-hint {
        display: none !important;
    }

    .premium-chat-panel__foot {
        padding: .48rem .62rem .62rem !important;
    }

    .premium-chat-send {
        min-height: 38px !important;
        border-radius: 10px !important;
        font-size: .78rem !important;
    }
}

@media (max-width: 390px) {
    .premium-chat-panel {
        right: 8px !important;
        width: min(305px, calc(100vw - 16px)) !important;
        max-height: 60vh !important;
    }

    .premium-chat-panel__body {
        max-height: calc(60vh - 124px) !important;
    }

    .premium-chat-message {
        font-size: .78rem !important;
        padding: .44rem .52rem !important;
    }
}

/* Fiche produit : blocs retractables sur mobile */
.product-mobile-accordion__toggle,
.product-detail-block__head {
    display: none;
}

.product-mobile-accordion__body {
    display: contents;
}

.product-detail-block--collapsible {
    gap: .95rem !important;
}

.product-detail-block__head {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.product-detail-block__head h2 {
    margin: 0 !important;
}

@media (max-width: 767.98px) {
    .product-trust-grid.product-mobile-accordion,
    .product-detail-highlights.product-mobile-accordion {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .55rem !important;
        padding: .72rem !important;
        border: 1px solid #d8e6ef !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 22px rgba(6, 27, 51, .06) !important;
    }

    .product-mobile-accordion__toggle,
    .product-detail-block__head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: .7rem !important;
        min-height: 38px !important;
        padding: 0 !important;
        font-weight: 950 !important;
        color: #082b4c !important;
    }

    .product-mobile-accordion__toggle {
        border: 0 !important;
        background: transparent !important;
    }

    .product-mobile-accordion__toggle span,
    .product-detail-block__head span {
        display: inline-flex !important;
        align-items: center !important;
        gap: .55rem !important;
    }

    .product-mobile-accordion__toggle i,
    .product-detail-block__head > i {
        color: #087a4a !important;
        transition: transform .2s ease !important;
    }

    .product-mobile-accordion__body {
        display: grid !important;
        gap: .55rem !important;
        overflow: hidden !important;
        max-height: 480px !important;
        opacity: 1 !important;
        transition: max-height .26s ease, opacity .2s ease, margin .2s ease !important;
    }

    .product-mobile-accordion.is-collapsed .product-mobile-accordion__body,
    .product-detail-block--collapsible.is-collapsed .product-mobile-accordion__body {
        max-height: 0 !important;
        opacity: 0 !important;
        margin: 0 !important;
    }

    .product-mobile-accordion.is-collapsed .product-mobile-accordion__toggle > i,
    .product-detail-block--collapsible.is-collapsed .product-detail-block__head > i {
        transform: rotate(0deg) !important;
    }

    .product-trust-grid .product-mobile-accordion__body span,
    .product-detail-highlights .product-mobile-accordion__body article {
        margin: 0 !important;
    }

    .product-detail-block--collapsible {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .55rem !important;
        padding: .88rem !important;
    }

    .product-detail-block--collapsible > .product-detail-block__icon {
        display: none !important;
    }

    .product-detail-block__head .product-detail-block__icon {
        display: inline-grid !important;
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .product-detail-block__head h2 {
        flex: 1 !important;
        font-size: 1rem !important;
    }
}

html.theme-dark .product-trust-grid.product-mobile-accordion,
html.theme-dark .product-detail-highlights.product-mobile-accordion {
    background: #102840 !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

html.theme-dark .product-mobile-accordion__toggle,
html.theme-dark .product-detail-block__head {
    color: #f7fbff !important;
}

/* Mobile produit : accordions plus compacts et mieux alignes */
@media (max-width: 767.98px) {
    .product-detail-info {
        gap: .72rem !important;
    }

    .product-detail-content-col {
        min-width: 0 !important;
    }

    .product-trust-grid.product-mobile-accordion,
    .product-detail-highlights.product-mobile-accordion,
    .product-detail-block--collapsible {
        width: 100% !important;
        min-height: 58px !important;
        margin: .55rem 0 !important;
        padding: .62rem .72rem !important;
        border-radius: 12px !important;
        align-content: center !important;
    }

    .product-detail-tabs {
        gap: .7rem !important;
        margin-top: .8rem !important;
    }

    .product-mobile-accordion__toggle,
    .product-detail-block__head {
        min-height: 34px !important;
        width: 100% !important;
        gap: .55rem !important;
        line-height: 1.15 !important;
    }

    .product-mobile-accordion__toggle > span,
    .product-detail-block__head > span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .product-mobile-accordion__toggle > span {
        color: #082b4c !important;
        font-size: .9rem !important;
    }

    .product-mobile-accordion__toggle > span > i,
    .product-detail-block__head .product-detail-block__icon {
        display: inline-grid !important;
        place-items: center !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        border: 1px solid #cfe2ec !important;
        border-radius: 9px !important;
        background: #f7fbfc !important;
        color: #087a4a !important;
        font-size: .86rem !important;
    }

    .product-mobile-accordion__toggle > i,
    .product-detail-block__head > i {
        flex: 0 0 28px !important;
        width: 28px !important;
        height: 28px !important;
        display: inline-grid !important;
        place-items: center !important;
        margin-left: auto !important;
        font-size: .82rem !important;
    }

    .product-detail-block__head h2 {
        min-width: 0 !important;
        font-size: .98rem !important;
        line-height: 1.15 !important;
    }

    .product-detail-block--collapsible .product-mobile-accordion__body {
        padding: .12rem 0 0 2.55rem !important;
    }

    .product-trust-grid.product-mobile-accordion.is-collapsed,
    .product-detail-highlights.product-mobile-accordion.is-collapsed,
    .product-detail-block--collapsible.is-collapsed {
        min-height: 54px !important;
        padding-block: .5rem !important;
    }

    .product-detail-block--collapsible.is-collapsed .product-mobile-accordion__body {
        padding-top: 0 !important;
    }

    .product-detail-block--collapsible p {
        margin: 0 !important;
        font-size: .92rem !important;
        line-height: 1.55 !important;
    }

    .product-trust-grid .product-mobile-accordion__body span,
    .product-detail-highlights .product-mobile-accordion__body article {
        min-height: 46px !important;
        padding: .62rem !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 420px) {
    .product-trust-grid.product-mobile-accordion,
    .product-detail-highlights.product-mobile-accordion,
    .product-detail-block--collapsible {
        min-height: 54px !important;
        padding: .55rem .62rem !important;
    }

    .product-mobile-accordion__toggle > span > i,
    .product-detail-block__head .product-detail-block__icon {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

/* Version tres compacte demandee sur mobile */
@media (max-width: 767.98px) {
    .product-trust-grid.product-mobile-accordion,
    .product-detail-highlights.product-mobile-accordion,
    .product-detail-block--collapsible {
        min-height: 44px !important;
        margin: .38rem 0 !important;
        padding: .42rem .55rem !important;
        border-radius: 10px !important;
    }

    .product-trust-grid.product-mobile-accordion.is-collapsed,
    .product-detail-highlights.product-mobile-accordion.is-collapsed,
    .product-detail-block--collapsible.is-collapsed {
        min-height: 42px !important;
        padding-block: .36rem !important;
    }

    .product-mobile-accordion__toggle,
    .product-detail-block__head {
        min-height: 28px !important;
        gap: .42rem !important;
    }

    .product-mobile-accordion__toggle > span {
        gap: .42rem !important;
        font-size: .78rem !important;
    }

    .product-mobile-accordion__toggle > span > i,
    .product-detail-block__head .product-detail-block__icon {
        flex-basis: 27px !important;
        width: 27px !important;
        height: 27px !important;
        border-radius: 7px !important;
        font-size: .72rem !important;
    }

    .product-detail-block__head h2 {
        font-size: .88rem !important;
    }

    .product-mobile-accordion__toggle > i,
    .product-detail-block__head > i {
        flex-basis: 22px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: .7rem !important;
    }

    .product-detail-tabs {
        gap: .48rem !important;
        margin-top: .55rem !important;
    }

    .product-detail-block--collapsible .product-mobile-accordion__body {
        padding-left: 2.05rem !important;
    }

    .product-detail-block--collapsible p {
        font-size: .84rem !important;
        line-height: 1.42 !important;
    }

    .product-trust-grid .product-mobile-accordion__body span,
    .product-detail-highlights .product-mobile-accordion__body article {
        min-height: 38px !important;
        padding: .45rem !important;
        border-radius: 8px !important;
        font-size: .76rem !important;
    }
}

@media (max-width: 420px) {
    .product-trust-grid.product-mobile-accordion,
    .product-detail-highlights.product-mobile-accordion,
    .product-detail-block--collapsible {
        min-height: 40px !important;
        padding: .34rem .48rem !important;
    }

    .product-trust-grid.product-mobile-accordion.is-collapsed,
    .product-detail-highlights.product-mobile-accordion.is-collapsed,
    .product-detail-block--collapsible.is-collapsed {
        min-height: 38px !important;
    }
}

/* Securite : visuel confiance dans les espaces connexion */
.auth-security-visual {
    width: min(210px, 72%) !important;
    aspect-ratio: 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: .6rem 0 .9rem !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: 0 18px 36px rgba(2, 18, 34, .16) !important;
}

.auth-security-visual--modal {
    width: min(150px, 62%) !important;
    border-radius: 50% !important;
    margin: .35rem 0 .65rem !important;
}

@media (max-width: 767.98px) {
    .auth-security-visual {
        width: 96px !important;
        border-radius: 50% !important;
        margin: .35rem auto .55rem !important;
    }
}

/* Pages confiance : a propos, aide, livraison, retours, conditions */
.trust-page {
    background: #f5f8fb;
    color: #08233f;
    padding-bottom: 3rem;
}

.trust-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 1.2rem;
    align-items: stretch;
    padding: clamp(1.2rem, 3vw, 2.6rem);
    margin: 0 auto 1.4rem;
    max-width: 1240px;
}

.trust-hero > div,
.trust-hero-card,
.trust-section,
.trust-story,
.trust-text-panel,
.terms-summary {
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(8, 35, 63, .08);
}

.trust-hero > div {
    padding: clamp(1.1rem, 3vw, 2rem);
}

.trust-kicker,
.trust-section-head span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #087a4a;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.trust-hero h1 {
    max-width: 820px;
    margin: .75rem 0 .75rem;
    color: #08233f;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 950;
    line-height: 1.03;
}

.trust-hero p,
.trust-story p,
.trust-text-panel p {
    color: #516b83;
    font-size: 1rem;
    line-height: 1.75;
}

.trust-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.1rem;
}

.trust-actions .btn {
    border-radius: 10px;
    font-weight: 900;
}

.trust-hero-card {
    display: grid;
    align-content: center;
    gap: .65rem;
    padding: 1.2rem;
}

.trust-hero-card > i {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #e9f8f0;
    color: #087a4a;
    font-size: 1.4rem;
}

.trust-hero-card img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 50%;
}

.trust-hero-card strong {
    color: #08233f;
    font-size: 1.05rem;
    font-weight: 950;
}

.trust-hero-card span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #516b83;
    font-weight: 800;
}

.trust-section,
.trust-story,
.trust-text-panel,
.terms-layout {
    max-width: 1180px;
    margin: 1rem auto;
}

.trust-section,
.trust-story,
.trust-text-panel {
    padding: clamp(1rem, 2.4vw, 1.6rem);
}

.trust-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trust-section-head h2,
.trust-story h2,
.trust-text-panel h2 {
    margin: .2rem 0 0;
    color: #08233f;
    font-size: clamp(1.35rem, 2.3vw, 2.1rem);
    font-weight: 950;
}

.trust-card-grid,
.trust-steps,
.trust-numbers {
    display: grid;
    gap: .9rem;
}

.trust-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
    margin: 1rem auto;
}

.trust-card,
.trust-link-card,
.trust-steps article,
.trust-numbers article {
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(8, 35, 63, .06);
}

.trust-card > i,
.trust-link-card > i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #e9f8f0;
    color: #087a4a;
}

.trust-card h3,
.trust-link-card strong {
    display: block;
    margin: .7rem 0 .35rem;
    color: #08233f;
    font-size: 1.02rem;
    font-weight: 950;
}

.trust-card p,
.trust-link-card span,
.trust-steps p {
    margin: 0;
    color: #5b738a;
    line-height: 1.6;
}

.trust-link-card {
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.trust-link-card:hover {
    transform: translateY(-3px);
    border-color: #9ed8bd;
    box-shadow: 0 18px 34px rgba(8, 122, 74, .12);
}

.trust-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-steps article span,
.trust-text-panel > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #08233f;
    color: #fff;
    font-weight: 950;
}

.trust-steps strong {
    display: block;
    margin: .7rem 0 .35rem;
    color: #08233f;
    font-weight: 950;
}

.trust-story {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
    gap: 1rem;
}

.trust-numbers {
    grid-template-columns: 1fr;
}

.trust-numbers strong {
    display: block;
    color: #087a4a;
    font-size: 1.55rem;
    font-weight: 950;
}

.terms-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1rem;
}

.terms-summary {
    position: sticky;
    top: 88px;
    align-self: start;
    display: grid;
    gap: .4rem;
    padding: 1rem;
}

.terms-summary strong {
    color: #08233f;
    font-weight: 950;
}

.terms-summary a {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    color: #516b83;
    text-decoration: none;
    font-weight: 850;
    padding: .45rem .5rem;
    border-radius: 8px;
}

.terms-summary a:hover {
    background: #e9f8f0;
    color: #087a4a;
}

.terms-list {
    display: grid;
    gap: .8rem;
}

html.theme-dark .trust-page {
    background: #081827;
}

html.theme-dark .trust-hero > div,
html.theme-dark .trust-hero-card,
html.theme-dark .trust-section,
html.theme-dark .trust-story,
html.theme-dark .trust-text-panel,
html.theme-dark .terms-summary,
html.theme-dark .trust-card,
html.theme-dark .trust-link-card,
html.theme-dark .trust-steps article,
html.theme-dark .trust-numbers article {
    background: #102840;
    border-color: rgba(255, 255, 255, .12);
}

html.theme-dark .trust-hero h1,
html.theme-dark .trust-hero-card strong,
html.theme-dark .trust-section-head h2,
html.theme-dark .trust-story h2,
html.theme-dark .trust-text-panel h2,
html.theme-dark .trust-card h3,
html.theme-dark .trust-link-card strong,
html.theme-dark .trust-steps strong,
html.theme-dark .terms-summary strong {
    color: #f8fbff;
}

html.theme-dark .trust-hero p,
html.theme-dark .trust-story p,
html.theme-dark .trust-text-panel p,
html.theme-dark .trust-card p,
html.theme-dark .trust-link-card span,
html.theme-dark .trust-steps p,
html.theme-dark .trust-hero-card span,
html.theme-dark .terms-summary a {
    color: #c4d5e4;
}

@media (max-width: 991.98px) {
    .trust-hero,
    .trust-story,
    .terms-layout {
        grid-template-columns: 1fr;
    }

    .trust-card-grid,
    .trust-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terms-summary {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .trust-page {
        padding-bottom: 1.5rem;
    }

    .trust-hero {
        gap: .75rem;
        padding: .75rem;
        margin-bottom: .7rem;
    }

    .trust-hero > div,
    .trust-hero-card,
    .trust-section,
    .trust-story,
    .trust-text-panel,
    .terms-summary,
    .trust-card,
    .trust-link-card,
    .trust-steps article {
        border-radius: 12px;
        padding: .85rem;
    }

    .trust-hero h1 {
        font-size: 1.65rem;
    }

    .trust-hero p,
    .trust-story p,
    .trust-text-panel p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .trust-card-grid,
    .trust-steps {
        grid-template-columns: 1fr;
        gap: .6rem;
        margin: .7rem;
    }

    .trust-section,
    .trust-story,
    .trust-text-panel,
    .terms-layout {
        margin: .7rem;
    }

    .trust-actions .btn {
        width: 100%;
    }
}

html.theme-dark .btn-outline-dark,
html.theme-dark .btn-outline-secondary {
    color: #f4fbff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

html.theme-dark .alert-info,
html.theme-dark .alert-light,
html.theme-dark .alert-warning {
    background: #12314f !important;
    color: #f4fbff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html.theme-dark .dropdown-menu .dropdown-item:hover,
html.theme-dark .dropdown-menu .dropdown-item:focus {
    background: #153653 !important;
    color: #fff !important;
}

.formation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: 1.25rem;
    align-items: stretch;
    margin: 0;
    padding: clamp(1.2rem, 2vw, 2rem);
    background: #0b2545;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.formation-hero__content {
    display: grid;
    align-content: center;
    gap: 0.8rem;
    max-width: 840px;
}

.formation-hero__content > span,
.formation-section-head span,
.formation-detail-card > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    color: #92e4c1;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.formation-hero h1,
.formation-detail-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4.4rem);
    font-weight: 900;
    line-height: 1.02;
}

.formation-hero p,
.formation-detail-hero__content p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.formation-search {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    max-width: 720px;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.formation-search i {
    color: #0f8a5f;
    text-align: center;
}

.formation-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #0b2545;
    font-weight: 700;
}

.formation-search button {
    height: 100%;
    border: 0;
    padding: 0 1.2rem;
    background: #0f8a5f;
    color: #fff;
    font-weight: 900;
}

.formation-hero__stats {
    display: grid;
    gap: 0.75rem;
}

.formation-hero__stats article {
    display: grid;
    align-content: center;
    min-height: 112px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.formation-hero__stats strong {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
}

.formation-hero__stats small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.formation-filter-bar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0.75rem;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: #fff;
}

.formation-filter-bar a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    color: #0b2545;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 900;
}

.formation-filter-bar a.active,
.formation-filter-bar a:hover {
    background: #0f8a5f;
    border-color: #0f8a5f;
    color: #fff;
}

.formation-filter-bar em {
    min-width: 24px;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    background: rgba(15, 138, 95, 0.12);
    color: inherit;
    text-align: center;
    font-style: normal;
    font-size: 0.78rem;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.formation-card-pro {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(11, 37, 69, 0.08);
}

.formation-card-pro__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #eaf4ef;
    overflow: hidden;
}

.formation-card-pro__media img,
.formation-detail-hero__media img,
.formation-similar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.formation-card-pro__media > span,
.formation-detail-hero__media > span,
.formation-similar-card > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #0f8a5f;
    font-size: 3rem;
}

.formation-card-pro__media em {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(11, 37, 69, 0.86);
    color: #fff;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 900;
}

.formation-card-pro__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.formation-card-pro__meta,
.formation-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.formation-card-pro__meta span,
.formation-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #51708a;
    font-size: 0.78rem;
    font-weight: 800;
}

.formation-card-pro h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.formation-card-pro h2 a {
    color: #0b2545;
    text-decoration: none;
}

.formation-card-pro p {
    margin: 0;
    color: #60758a;
    line-height: 1.55;
}

.formation-card-pro__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2f7;
}

.formation-card-pro__foot strong {
    color: #0f8a5f;
    font-size: 1.05rem;
    font-weight: 900;
}

.formation-card-pro__foot div {
    display: flex;
    gap: 0.45rem;
}

.formation-empty {
    display: grid;
    place-items: center;
    gap: 0.65rem;
    min-height: 300px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.formation-empty-pro,
.support-form-section,
.faq-pro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 1rem;
    align-items: stretch;
}

.formation-empty-pro {
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(11, 37, 69, 0.08);
}

.formation-empty-pro > div:first-child {
    display: grid;
    align-content: center;
    gap: 0.8rem;
}

.formation-empty-pro span,
.support-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    color: #0f8a5f;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.formation-empty-pro h2,
.support-form-copy h2 {
    margin: 0;
    color: #0b2545;
    font-weight: 900;
}

.formation-empty-pro p,
.support-form-copy p {
    max-width: 680px;
    margin: 0;
    color: #60758a;
    line-height: 1.7;
}

.formation-empty-actions,
.support-hero__actions,
.support-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.formation-empty-modules {
    display: grid;
    gap: 0.65rem;
}

.formation-empty-modules article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: #f8fbfd;
}

.formation-empty-modules i,
.support-card > i,
.support-status-card > span,
.faq-pro-nav a i {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #e8f3ed;
    color: #0f8a5f;
}

.formation-empty-modules strong {
    color: #0b2545;
}

.formation-empty-modules small {
    color: #60758a;
}

.support-page {
    padding: clamp(1rem, 2vw, 1.4rem);
    background: #f5f8fb;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 14px;
    background: #0b2545;
    color: #fff;
}

.support-hero h1 {
    margin: 0.35rem 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
}

.support-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.support-status-card,
.support-card,
.support-form,
.support-form-copy,
.faq-pro-nav,
.faq-pro-section {
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(11, 37, 69, 0.08);
}

.support-status-card {
    display: grid;
    align-content: center;
    gap: 0.45rem;
    padding: 1rem;
}

.support-status-card strong {
    color: #0b2545;
    font-size: 1.2rem;
}

.support-status-card small {
    color: #60758a;
    font-weight: 800;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.support-card {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.support-card h2 {
    margin: 0;
    color: #0b2545;
    font-size: 1.15rem;
    font-weight: 900;
}

.support-card p {
    margin: 0;
    color: #60758a;
    line-height: 1.6;
}

.support-card a {
    color: #0f8a5f;
    font-weight: 900;
    text-decoration: none;
}

.support-card--primary {
    border-color: #0f8a5f;
}

.support-form-section {
    grid-template-columns: 0.8fr 1.2fr;
}

.support-form-copy,
.support-form {
    padding: 1rem;
}

.support-mini-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: #e8f3ed;
    color: #0b5f31;
    font-weight: 900;
    font-size: 0.82rem;
}

.faq-pro-layout {
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    align-items: start;
}

.faq-pro-nav {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
}

.faq-pro-nav strong {
    color: #0b2545;
    font-weight: 900;
}

.faq-pro-nav a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #0b2545;
    text-decoration: none;
    font-weight: 900;
}

.faq-pro-nav a i {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.8rem;
}

.faq-contact-link {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5edf5;
    color: #0f8a5f !important;
}

.faq-pro-list {
    display: grid;
    gap: 1rem;
}

.faq-pro-section {
    padding: 1rem;
}

.faq-pro-section details {
    border-top: 1px solid #e5edf5;
}

.faq-pro-section details:first-of-type {
    border-top: 0;
}

.faq-pro-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    cursor: pointer;
    color: #0b2545;
    font-weight: 900;
    list-style: none;
}

.faq-pro-section summary::-webkit-details-marker {
    display: none;
}

.faq-pro-section details[open] summary i {
    transform: rotate(180deg);
}

.faq-pro-section p {
    margin: 0;
    padding: 0 0 1rem;
    color: #60758a;
    line-height: 1.7;
}

.formation-empty i {
    color: #0f8a5f;
    font-size: 2.4rem;
}

.formation-detail-page {
    padding: clamp(1rem, 2vw, 1.5rem);
    background: #f5f8fb;
}

.formation-detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 480px) minmax(0, 1fr) minmax(280px, 360px);
    gap: 1.2rem;
    align-items: stretch;
}

.formation-detail-hero__media {
    min-height: 420px;
    border-radius: 14px;
    background: #eaf4ef;
    overflow: hidden;
}

.formation-detail-hero__content {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 14px;
    background: #0b2545;
}

.formation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #92e4c1;
    font-weight: 900;
}

.formation-buy-panel {
    position: sticky;
    top: 1rem;
    display: grid;
    align-content: start;
    gap: 0.75rem;
    height: fit-content;
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.1);
}

.formation-buy-panel small {
    color: #60758a;
    font-weight: 800;
}

.formation-buy-panel > strong {
    color: #0f8a5f;
    font-size: 2rem;
    font-weight: 900;
}

.formation-access-note {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #edf8f3;
    color: #0b5f31;
    font-weight: 800;
}

.formation-detail-grid,
.formation-similar {
    margin-top: 1.2rem;
}

.formation-detail-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1rem;
}

.formation-detail-card {
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    background: #fff;
}

.formation-detail-card h2 {
    margin: 0.45rem 0 0.65rem;
    color: #0b2545;
    font-size: 1.2rem;
    font-weight: 900;
}

.formation-detail-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.formation-detail-card li {
    display: flex;
    gap: 0.55rem;
    color: #435f78;
}

.formation-detail-card li i {
    color: #0f8a5f;
    margin-top: 0.2rem;
}

.formation-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.formation-section-head h2 {
    margin: 0;
    color: #0b2545;
    font-weight: 900;
}

.formation-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.formation-similar-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    background: #fff;
    color: #0b2545;
    text-decoration: none;
}

.formation-similar-card img,
.formation-similar-card > span {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #eaf4ef;
    overflow: hidden;
}

.formation-similar-card strong {
    color: #0b2545;
}

.formation-similar-card small {
    color: #60758a;
}

.formation-similar-card em {
    color: #0f8a5f;
    font-style: normal;
    font-weight: 900;
}

.formation-registration-section {
    margin-top: 1.2rem;
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(11, 37, 69, 0.08);
}

.formation-registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1rem;
    align-items: start;
}

.formation-registration-form {
    min-width: 0;
}

.formation-registration-summary {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    background: #f8fbfd;
}

.formation-registration-summary > span {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #e8f3ed;
    color: #0f8a5f;
}

.formation-registration-summary h3 {
    margin: 0;
    color: #0b2545;
    font-size: 1.2rem;
    font-weight: 900;
}

.formation-registration-summary p,
.formation-registration-summary small {
    margin: 0;
    color: #60758a;
    line-height: 1.6;
}

.formation-registration-summary strong {
    color: #0f8a5f;
    font-size: 1.4rem;
    font-weight: 900;
}

.formation-registration-code {
    padding: 0.75rem;
    border: 1px dashed #0f8a5f;
    border-radius: 10px;
    background: #e8f3ed;
    color: #0b5f31;
    font-size: 1.25rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0;
}

.formation-enroll-page {
    padding: clamp(0.9rem, 2vw, 1.4rem);
    background: #f5f8fb;
}

.formation-enroll-hero {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: clamp(1rem, 2.2vw, 1.6rem);
    border-radius: 14px;
    background: #0b2545;
    color: #fff;
}

.formation-enroll-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    color: #92e4c1;
    text-decoration: none;
    font-weight: 900;
}

.formation-enroll-hero h1 {
    max-width: 860px;
    margin: 0.35rem 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
}

.formation-enroll-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.formation-enroll-layout {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.formation-enroll-summary,
.formation-enroll-card {
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(11, 37, 69, 0.08);
    overflow: hidden;
}

.formation-enroll-summary {
    position: sticky;
    top: 1rem;
}

.formation-enroll-cover {
    aspect-ratio: 16 / 11;
    background: #eaf4ef;
}

.formation-enroll-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.formation-enroll-cover span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #0f8a5f;
    font-size: 3rem;
}

.formation-enroll-summary__body,
.formation-enroll-card {
    padding: 1rem;
}

.formation-enroll-card {
    position: relative;
}

.formation-enroll-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: #0f8a5f;
}

.formation-enroll-summary__body {
    display: grid;
    gap: 0.65rem;
}

.formation-enroll-summary__body small {
    color: #0f8a5f;
    font-weight: 900;
}

.formation-enroll-summary__body h2 {
    margin: 0;
    color: #0b2545;
    font-size: 1.35rem;
    font-weight: 900;
}

.formation-enroll-summary__body > strong {
    color: #0f8a5f;
    font-size: 1.55rem;
    font-weight: 900;
}

.formation-enroll-steps {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-top: 1px solid #e5edf5;
    background: #f8fbfd;
}

.formation-enroll-steps article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
}

.formation-enroll-steps article > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #0f8a5f;
    color: #fff;
    font-weight: 900;
}

.formation-enroll-steps strong {
    color: #0b2545;
}

.formation-enroll-steps small {
    color: #60758a;
}

.formation-form-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0.65rem;
    color: #0b2545;
    font-weight: 900;
}

.formation-form-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.formation-form-progress span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #dce7ef;
    border-radius: 999px;
    background: #f8fbfd;
    color: #60758a;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.formation-form-progress span.active {
    border-color: #0f8a5f;
    background: #e8f3ed;
    color: #0b5f31;
}

.formation-form-panel {
    padding: 1rem;
    border: 1px solid #e1e9f0;
    border-radius: 14px;
    background: #fbfdfe;
}

.formation-form-panel + .formation-form-panel {
    margin-top: 0.85rem;
}

.formation-registration-form--page .form-label {
    color: #0b2545;
    font-weight: 900;
    font-size: 0.82rem;
}

.formation-registration-form--page .form-control,
.formation-registration-form--page .form-select {
    min-height: 48px;
    border-radius: 10px;
    border-color: #d6e2eb;
    background: #fff;
    font-weight: 700;
}

.formation-registration-form--page textarea.form-control {
    min-height: 118px;
}

.formation-registration-form--page .form-control:focus,
.formation-registration-form--page .form-select:focus {
    border-color: #0f8a5f;
    box-shadow: 0 0 0 0.18rem rgba(15, 138, 95, 0.14);
}

.formation-form-group-title:first-of-type {
    margin-top: 0;
}

.formation-form-group-title i {
    color: #0f8a5f;
}

.formation-enroll-actions,
.formation-enroll-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.formation-enroll-result {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #a9dec5;
    border-radius: 12px;
    background: #e8f3ed;
}

.formation-enroll-result > span {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0f8a5f;
    color: #fff;
}

.formation-enroll-result small {
    color: #0b5f31;
    font-weight: 900;
}

.formation-enroll-result strong {
    display: block;
    color: #0b2545;
    font-size: 1.5rem;
    font-weight: 900;
}

.formation-enroll-result p {
    margin: 0;
    color: #435f78;
}

.formation-enroll-cta {
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    background: #f8fbfd;
}

.formation-enroll-cta__icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: #0f8a5f;
    color: #fff;
    font-size: 1.25rem;
}

.formation-enroll-cta h3 {
    margin: 0 0 0.25rem;
    color: #0b2545;
    font-weight: 900;
}

.formation-enroll-cta p {
    max-width: 720px;
    margin: 0;
    color: #60758a;
    line-height: 1.6;
}

/* Detail produit et formation : finitions premium */
.detail-top-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 310px;
    padding: 3.2rem 0 2.4rem;
    background: #061b33;
}

.detail-top-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.06);
    transform: scale(1.02);
}

.detail-top-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 18, 35, .94) 0%, rgba(4, 30, 55, .82) 45%, rgba(5, 38, 55, .46) 100%),
        linear-gradient(180deg, rgba(3, 18, 35, .28), rgba(3, 18, 35, .72));
}

.detail-top-hero__inner {
    position: relative;
    z-index: 1;
}

.detail-breadcrumb {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 1.4rem;
    padding: .72rem .9rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.detail-breadcrumb .breadcrumb {
    row-gap: .25rem;
}

.detail-breadcrumb .breadcrumb-item,
.detail-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, .88);
    font-weight: 800;
    text-decoration: none;
}

.detail-breadcrumb .breadcrumb-item.active {
    max-width: min(54vw, 520px);
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .55);
}

.detail-top-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    gap: 1.5rem;
    align-items: end;
}

.detail-top-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    margin-bottom: .9rem;
    padding: .55rem .78rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.detail-top-hero h1 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 950;
    line-height: 1.02;
}

.detail-top-hero p {
    max-width: 720px;
    margin: .9rem 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(.98rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.detail-top-hero__panel {
    display: grid;
    gap: .34rem;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .2);
    backdrop-filter: blur(14px);
}

.detail-top-hero__panel small {
    color: rgba(255, 255, 255, .72);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.detail-top-hero__panel strong {
    color: #ffb347;
    font-size: 1.85rem;
    font-weight: 950;
}

.detail-top-hero__panel span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .88);
    font-weight: 800;
}

.product-detail-shell,
.formation-detail-hero {
    position: relative;
}

.product-detail-shell {
    padding: clamp(0.75rem, 1.5vw, 1.1rem);
    border: 1px solid #dce7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(11, 37, 69, 0.09);
}

.product-gallery--premium .gallery-main,
.formation-detail-hero__media {
    border: 1px solid #dce7ef;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 16px 32px rgba(11, 37, 69, 0.08);
}

.product-detail-info,
.formation-detail-hero__content,
.formation-buy-panel {
    border-radius: 16px;
}

.product-detail-info {
    display: grid;
    gap: 0.85rem;
    padding: clamp(1rem, 1.8vw, 1.35rem);
    border: 1px solid #dce7ef;
    background: #fbfdfe;
}

.product-detail-title {
    letter-spacing: 0;
    line-height: 1.05;
}

.product-premium-badge {
    background: #e8f3ed !important;
    color: #0b5f31 !important;
    border: 1px solid #b9d8c7;
}

.product-detail-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.product-detail-highlights article {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    background: #fff;
}

.product-detail-highlights i {
    color: #0f8a5f;
}

.product-detail-highlights strong {
    color: #0b2545;
    font-size: 0.9rem;
}

.product-detail-highlights small {
    color: #60758a;
    font-size: 0.76rem;
    font-weight: 800;
}

.product-purchase-card {
    border-radius: 16px !important;
    border: 1px solid #dce7ef !important;
    box-shadow: 0 16px 34px rgba(11, 37, 69, 0.08);
}

.product-detail-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-detail-block {
    margin: 0 !important;
    border-radius: 16px !important;
}

.formation-detail-hero {
    border-radius: 18px;
    padding: clamp(0.65rem, 1.4vw, 1rem);
    border: 1px solid #dce7ef;
    background: #fff;
    box-shadow: 0 20px 46px rgba(11, 37, 69, 0.09);
}

.formation-detail-hero__content {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.formation-buy-panel {
    border-top: 5px solid #0f8a5f;
}

.formation-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 1rem;
}

.formation-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 260px;
}

.formation-cell span {
    display: grid;
    gap: 0.15rem;
}

.formation-cell small {
    color: #60758a;
}

.formation-pill,
.formation-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #e8f3ed;
    color: #0b5f31;
    font-weight: 900;
    font-size: 0.78rem;
}

.formation-learner-list {
    display: grid;
    gap: 0.65rem;
    max-height: min(68vh, 720px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.formation-learner-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: #fff;
}

.formation-learner-card__main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.formation-learner-card__main div {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.formation-learner-card__main strong,
.formation-learner-card__main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.formation-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f3ed;
    color: #0b5f31;
}

.formation-money {
    display: grid;
    gap: 0.05rem;
    text-align: right;
}

.formation-money strong {
    color: #0f8a5f;
}

.formation-state--success {
    background: #e8f3ed;
    color: #0b5f31;
}

.formation-state--warning {
    background: #fff4e6;
    color: #995c00;
}

.formation-state--danger {
    background: #feecec;
    color: #a31515;
}

@media (max-width: 1199.98px) {
    .formation-grid,
    .formation-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .formation-detail-hero,
    .formation-detail-grid,
    .formation-registration-layout,
    .formation-enroll-layout,
    .formation-admin-grid {
        grid-template-columns: 1fr;
    }

    .formation-buy-panel {
        position: static;
    }

    .formation-registration-summary {
        position: static;
    }

    .formation-enroll-summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .detail-top-hero {
        min-height: auto;
        padding: 1.7rem 0 1.45rem;
    }

    .detail-top-hero__content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-breadcrumb {
        width: 100%;
        margin-bottom: 1rem;
        padding: .62rem .72rem;
    }

    .detail-breadcrumb .breadcrumb-item.active {
        max-width: 52vw;
    }

    .detail-top-hero__panel {
        border-radius: 12px;
        padding: .9rem;
    }

    .detail-top-hero__panel strong {
        font-size: 1.35rem;
    }

    .formation-hero {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .formation-search {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .formation-search button {
        grid-column: 1 / -1;
        min-height: 44px;
    }

    .formation-grid,
    .formation-similar-grid {
        grid-template-columns: 1fr;
    }

    .formation-detail-page {
        padding: 0.75rem;
    }

    .formation-detail-hero__media {
        min-height: 260px;
    }

    .formation-learner-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .formation-money {
        text-align: left;
    }

    .formation-enroll-actions .btn,
    .formation-enroll-cta .btn {
        width: 100%;
    }

    .formation-form-progress,
    .product-detail-highlights,
    .product-detail-tabs {
        grid-template-columns: 1fr;
    }

    .formation-form-progress span {
        justify-content: flex-start;
        border-radius: 10px;
    }

    .formation-empty-pro,
    .support-hero,
    .support-grid,
    .support-form-section,
    .faq-pro-layout {
        grid-template-columns: 1fr;
    }

    .faq-pro-nav {
        position: static;
    }
}

.admin-area .manual-delivery-panel {
    border-radius: 14px !important;
}

.admin-area .manual-delivery-form {
    display: grid;
    gap: .9rem;
}

.admin-area .manual-delivery-form__main,
.admin-area .manual-delivery-form__money {
    display: grid;
    gap: .75rem;
}

.admin-area .manual-delivery-form__main {
    grid-template-columns: 1.1fr 1.1fr 1.3fr 1fr 1.4fr .8fr;
}

.admin-area .manual-delivery-form__money {
    grid-template-columns: .7fr 1fr 1fr 1.1fr;
}

.admin-area .manual-delivery-form .form-control,
.admin-area .manual-delivery-form .form-select {
    min-height: 44px;
    border-radius: 10px;
    background: #fff;
}

.admin-area .manual-delivery-extra {
    border: 1px solid #dce8f0;
    border-radius: 12px;
    background: #f8fbfd;
}

.admin-area .manual-delivery-extra summary {
    cursor: pointer;
    padding: .75rem .95rem;
    color: #06365f;
    font-weight: 900;
}

.admin-area .manual-delivery-extra > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    padding: 0 .95rem .95rem;
}

.admin-area .manual-delivery-extra textarea {
    grid-column: span 2;
}

.admin-area .manual-delivery-submit {
    justify-self: start;
    min-height: 44px;
    border-radius: 10px !important;
}

@media (max-width: 1199.98px) {
    .admin-area .manual-delivery-form__main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-area .manual-delivery-form__money,
    .admin-area .manual-delivery-extra > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-area .manual-delivery-form__main,
    .admin-area .manual-delivery-form__money,
    .admin-area .manual-delivery-extra > div {
        grid-template-columns: 1fr;
    }

    .admin-area .manual-delivery-extra textarea,
    .admin-area .manual-delivery-submit {
        grid-column: auto;
        width: 100%;
    }
}

/* Chat interne admin */
.admin-area .admin-chat-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1rem;
    min-height: 680px;
}

.admin-area .admin-chat-side,
.admin-area .admin-chat-board {
    background: #fff;
    border: 1px solid #d9e5ee;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(6, 27, 51, .08);
    overflow: hidden;
}

.admin-area .admin-chat-side {
    padding: 1rem;
}

.admin-area .admin-chat-side__head,
.admin-area .admin-chat-board__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #e6eef5;
}

.admin-area .admin-chat-side__head strong,
.admin-area .admin-chat-board__top strong {
    color: #06243f;
    font-size: 1.05rem;
}

.admin-area .admin-chat-side__head span,
.admin-area .admin-chat-board__top small,
.admin-area .admin-chat-board__top span {
    color: #60758d;
    font-size: .82rem;
}

.admin-area .admin-chat-member {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .85rem .15rem;
    border-bottom: 1px solid #edf3f7;
}

.admin-area .admin-chat-member > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0b7a4b;
    color: #fff;
    font-weight: 800;
}

.admin-area .admin-chat-member.is-me > span {
    background: #06365f;
}

.admin-area .admin-chat-member strong,
.admin-area .admin-chat-member small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-area .admin-chat-member strong {
    color: #082846;
}

.admin-area .admin-chat-member small,
.admin-area .admin-chat-member em {
    color: #6c7f93;
    font-size: .78rem;
    font-style: normal;
}

.admin-area .admin-chat-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: 1rem;
}

.admin-area .admin-chat-stats article {
    padding: .75rem .5rem;
    border: 1px solid #e1ebf2;
    border-radius: 10px;
    background: #f8fbfd;
    text-align: center;
}

.admin-area .admin-chat-stats strong,
.admin-area .admin-chat-stats small {
    display: block;
}

.admin-area .admin-chat-stats strong {
    color: #06365f;
}

.admin-area .admin-chat-stats small {
    color: #60758d;
    font-size: .75rem;
}

.admin-area .admin-chat-board {
    display: grid;
    grid-template-rows: auto minmax(320px, 1fr) auto;
}

.admin-area .admin-chat-board__top {
    padding: 1rem 1.15rem;
}

.admin-area .admin-chat-board__top span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0b7a4b;
    font-weight: 800;
}

.admin-area .admin-chat-thread {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1rem;
    max-height: 520px;
    overflow: auto;
    background:
        linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)),
        radial-gradient(circle at 12px 12px, rgba(6, 54, 95, .08) 1px, transparent 1px);
    background-size: auto, 22px 22px;
}

.admin-area .admin-chat-bubble {
    width: min(78%, 620px);
    padding: .9rem 1rem;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    border: 1px solid #dce8f0;
    box-shadow: 0 8px 22px rgba(6, 27, 51, .08);
}

.admin-area .admin-chat-bubble.is-mine {
    align-self: flex-end;
    border-radius: 14px 14px 4px 14px;
    background: #e7f7ef;
    border-color: #b7e2cd;
}

.admin-area .admin-chat-bubble.is-note {
    background: #f7fbff;
    border-color: #bed8ec;
}

.admin-area .admin-chat-bubble.is-urgent {
    background: #fff4ea;
    border-color: #ffc48f;
}

.admin-area .admin-chat-bubble__meta,
.admin-area .admin-chat-bubble footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.admin-area .admin-chat-bubble__meta strong {
    color: #06243f;
}

.admin-area .admin-chat-bubble__meta span,
.admin-area .admin-chat-bubble footer small {
    color: #687d91;
    font-size: .78rem;
}

.admin-area .admin-chat-bubble p {
    margin: .55rem 0;
    color: #102c45;
    line-height: 1.55;
}

.admin-area .admin-chat-bubble footer em {
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #06365f;
    color: #fff;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
}

.admin-area .admin-chat-empty {
    margin: auto;
    display: grid;
    gap: .35rem;
    place-items: center;
    text-align: center;
    color: #60758d;
}

.admin-area .admin-chat-empty i {
    font-size: 2rem;
    color: #0b7a4b;
}

.admin-area .admin-chat-composer {
    padding: 1rem;
    border-top: 1px solid #e4edf4;
    background: #fff;
}

.admin-area .admin-chat-composer__controls {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: .75rem;
    margin-bottom: .75rem;
}

.admin-area .admin-chat-composer__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: .75rem;
    align-items: stretch;
}

.admin-area .admin-chat-composer textarea {
    resize: none;
    border-radius: 12px;
}

.admin-area .admin-chat-composer .btn {
    border-radius: 50%;
    width: 52px;
    height: 52px;
    align-self: end;
}

@media (max-width: 991.98px) {
    .admin-area .admin-chat-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .admin-area .admin-chat-thread {
        max-height: 60vh;
    }
}

@media (max-width: 575.98px) {
    .admin-area .admin-chat-bubble {
        width: 92%;
    }

    .admin-area .admin-chat-composer__controls,
    .admin-area .admin-chat-composer__box {
        grid-template-columns: 1fr;
    }

    .admin-area .admin-chat-composer .btn {
        width: 100%;
        border-radius: 10px;
    }
}

/* Boutons flottants plus discrets */
.premium-floating-actions {
    right: 12px !important;
    bottom: 82px !important;
    gap: 8px !important;
    z-index: 1040 !important;
}

.premium-fab {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 11px !important;
    font-size: .95rem !important;
    box-shadow: 0 8px 18px rgba(6, 27, 51, .18) !important;
}

.premium-fab i {
    font-size: .95rem !important;
}

.premium-fab--whatsapp,
.premium-fab--chat {
    background: #0b7a4b !important;
    color: #fff !important;
}

.premium-fab--theme {
    background: #fff !important;
    color: #06365f !important;
    border: 1px solid #d9e5ee !important;
}

.premium-fab:hover {
    transform: translateY(-2px) !important;
}

@media (max-width: 575.98px) {
    .premium-floating-actions {
        right: 8px !important;
        bottom: 74px !important;
        gap: 7px !important;
    }

    .premium-fab {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
        font-size: .85rem !important;
    }

    .premium-fab i {
        font-size: .85rem !important;
    }
}

/* Gestion livreurs plus fluide et professionnelle */
.admin-area .delivery-control-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
}

.admin-area .delivery-control-strip article {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    min-height: 92px;
    background: #fff;
    border: 1px solid #d9e5ee;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(6, 27, 51, .06);
}

.admin-area .delivery-control-strip span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    background: #eef7f2;
    color: #0b7a4b;
}

.admin-area .delivery-control-strip strong,
.admin-area .delivery-control-strip small {
    display: block;
}

.admin-area .delivery-control-strip strong {
    color: #06243f;
    font-size: 1.25rem;
    line-height: 1.1;
}

.admin-area .delivery-control-strip small {
    color: #60758d;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-area .delivery-card {
    position: relative;
    height: 100%;
    border: 1px solid #d9e5ee !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 14px 30px rgba(6, 27, 51, .07) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-area .delivery-card:hover {
    transform: translateY(-3px);
    border-color: #b8d7c9 !important;
    box-shadow: 0 18px 36px rgba(6, 27, 51, .11) !important;
}

.admin-area .delivery-card__head {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid #edf3f7;
}

.admin-area .delivery-card__head > span {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    background: #06365f !important;
    color: #fff !important;
}

.admin-area .delivery-card__head strong {
    color: #06243f;
    font-size: 1.03rem;
}

.admin-area .delivery-card__head small {
    color: #60758d;
}

.admin-area .delivery-status {
    border-radius: 999px !important;
    padding: .35rem .65rem !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.admin-area .delivery-status--disponible {
    background: #e7f7ef !important;
    color: #0b7a4b !important;
}

.admin-area .delivery-status--occupe {
    background: #fff4e5 !important;
    color: #a45a00 !important;
}

.admin-area .delivery-status--inactif {
    background: #eef2f6 !important;
    color: #60758d !important;
}

.admin-area .delivery-card__body {
    grid-template-columns: 1fr !important;
    gap: .45rem !important;
    padding-top: .9rem;
}

.admin-area .delivery-card__body p {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 30px;
    padding: .35rem .5rem;
    border-radius: 9px;
    background: #f8fbfd;
    color: #253f58;
}

.admin-area .delivery-card__body i {
    width: 22px;
    color: #0b7a4b !important;
    text-align: center;
}

.admin-area .delivery-card__actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: .45rem !important;
    padding-top: .9rem;
    border-top: 1px solid #edf3f7;
}

.admin-area .delivery-card__actions .btn {
    border-radius: 9px !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    padding: .42rem .6rem !important;
}

.admin-area .delivery-card__actions .btn i {
    margin-right: .25rem;
}

.admin-area .delivery-card__actions .btn:has(i:only-child) i {
    margin-right: 0;
}

.admin-area .delivery-ops-panel,
.admin-area .offsite-sale-panel,
.admin-area .delivery-zones-panel {
    border-radius: 14px !important;
    border: 1px solid #d9e5ee !important;
    box-shadow: 0 14px 30px rgba(6, 27, 51, .06) !important;
}

.admin-area .delivery-mini-form {
    border-radius: 12px !important;
    border: 1px solid #dce8f0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.admin-area .delivery-mini-form strong {
    color: #06243f !important;
}

.admin-area .delivery-ops-lists > div {
    border-radius: 12px !important;
    border: 1px solid #dce8f0 !important;
    box-shadow: none !important;
}

@media (max-width: 1199.98px) {
    .admin-area .delivery-control-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-area .delivery-control-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-area .delivery-card__head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .admin-area .delivery-status {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .admin-area .delivery-control-strip {
        grid-template-columns: 1fr;
    }
}

.admin-area .delivery-mission-panel {
    border-radius: 14px !important;
    border: 1px solid #d9e5ee !important;
    box-shadow: 0 14px 30px rgba(6, 27, 51, .06) !important;
}

.admin-area .delivery-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-area .delivery-mission-grid > div {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #dce8f0;
    border-radius: 12px;
    background: #f8fbfd;
}

.admin-area .delivery-mission-grid h3 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .15rem;
    color: #06243f;
    font-size: .98rem;
    font-weight: 900;
}

.admin-area .delivery-mission-grid h3 i {
    color: #0b7a4b;
}

.admin-area .delivery-mission-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
    gap: .85rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid #dce8f0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(6, 27, 51, .05);
}

.admin-area .delivery-mission-card.is-late {
    border-color: #ffc48f;
    background: #fffaf5;
}

.admin-area .delivery-mission-card strong,
.admin-area .delivery-mission-card small,
.admin-area .delivery-mission-card span,
.admin-area .delivery-mission-card em,
.admin-area .delivery-mission-card b {
    display: block;
}

.admin-area .delivery-mission-card strong {
    color: #06243f;
    font-weight: 950;
}

.admin-area .delivery-mission-card small {
    color: #60758d;
    font-size: .78rem;
}

.admin-area .delivery-mission-card aside {
    display: grid;
    justify-items: end;
    gap: .2rem;
    text-align: right;
}

.admin-area .delivery-mission-card span {
    color: #253f58;
    font-size: .78rem;
    font-weight: 900;
}

.admin-area .delivery-mission-card em {
    color: #06365f;
    font-size: 1rem;
    font-style: normal;
    font-weight: 950;
}

.admin-area .delivery-mission-card b {
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0b7a4b;
    font-size: .7rem;
    font-weight: 950;
}

.admin-area .delivery-mission-card.is-late b {
    background: #fff0df;
    color: #a45a00;
}

.admin-area .delivery-movement-row--prise span {
    background: #ecfdf5 !important;
    color: #0b7a4b !important;
}

.admin-area .delivery-movement-row--retour span {
    background: #eef6ff !important;
    color: #06365f !important;
}

.admin-area .delivery-movement-row--vente span {
    background: #fff4e5 !important;
    color: #a45a00 !important;
}

@media (max-width: 991.98px) {
    .admin-area .delivery-mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .admin-area .delivery-mission-card {
        grid-template-columns: 1fr;
    }

    .admin-area .delivery-mission-card aside {
        justify-items: start;
        text-align: left;
    }
}

/* ERP : acces clair a toutes les fonctions */
.admin-area .erp-function-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #d9e5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(6, 27, 51, .06);
}

.admin-area .erp-function-head span {
    display: block;
    color: #0b7a4b;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-area .erp-function-head h2 {
    margin: .15rem 0 0;
    color: #06243f;
    font-size: 1.25rem;
    font-weight: 950;
}

.admin-area .erp-function-head small {
    color: #60758d;
    font-weight: 800;
}

.admin-area .erp-module-grid--full {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.admin-area .erp-module-grid--full .erp-module-card {
    min-height: 118px;
    border-radius: 12px !important;
}

@media (max-width: 1199.98px) {
    .admin-area .erp-module-grid--full {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .admin-area .erp-function-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-area .erp-module-grid--full {
        grid-template-columns: 1fr !important;
    }
}

/* Carrousels images locales : boutique + formations */
.shop-hero,
.formation-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #061b33 !important;
}

.shop-hero::before,
.shop-hero::after,
.formation-hero::before,
.formation-hero::after {
    display: none !important;
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-bg-slider .carousel-inner,
.hero-bg-slider .carousel-item,
.hero-bg-slider img {
    width: 100%;
    height: 100%;
}

.hero-bg-slider img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.shop-hero > .container,
.formation-hero__content,
.formation-hero__stats {
    position: relative;
    z-index: 2;
}

.shop-hero__visual::before,
.shop-hero__visual::after {
    display: none !important;
}

.shop-hero-product-carousel {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.shop-hero-product-carousel .carousel-inner,
.shop-hero-product-carousel .carousel-item {
    border-radius: inherit;
}

.shop-hero-product-carousel .carousel-item {
    position: relative;
    min-height: 320px;
    color: inherit;
    text-decoration: none;
}

.shop-hero-product-carousel img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #f5f8f7;
}

.shop-hero-product-carousel__info {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    gap: 2px;
    width: fit-content;
    max-width: calc(100% - 28px);
    padding: .72rem .82rem;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(5, 25, 43, .18);
    backdrop-filter: blur(10px);
}

.shop-hero-product-carousel__info small {
    color: #008060;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-hero-product-carousel__info strong {
    color: #061b33;
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.1;
}

.shop-hero-product-carousel__info em {
    color: #ff8a00;
    font-size: .84rem;
    font-style: normal;
    font-weight: 900;
}

.shop-hero-product-carousel .carousel-indicators {
    right: 12px;
    bottom: 12px;
    left: auto;
    justify-content: flex-end;
    width: auto;
    margin: 0;
    gap: 5px;
}

.shop-hero-product-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(6, 27, 51, .35);
    opacity: 1;
}

.shop-hero-product-carousel .carousel-indicators .active {
    width: 22px;
    background: #ff9900;
}

.shop-hero::after,
.formation-hero::after {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 20, 38, .92) 0%, rgba(4, 36, 55, .78) 42%, rgba(4, 30, 43, .48) 100%),
        linear-gradient(180deg, rgba(3, 20, 38, .35), rgba(3, 20, 38, .68));
    pointer-events: none;
}

.shop-hero .shop-kicker,
.formation-hero__content > span {
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    backdrop-filter: blur(10px);
}

.shop-hero h1,
.shop-hero p,
.formation-hero h1,
.formation-hero p {
    color: #fff !important;
    text-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}

.formation-hero__stats article {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    backdrop-filter: blur(12px);
}

.formation-hero__stats article strong,
.formation-hero__stats article small {
    color: #fff;
}

.local-image-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(10, 36, 60, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(8, 25, 44, .16);
}

.local-image-slider .carousel-inner,
.local-image-slider .carousel-item {
    min-height: 100%;
    border-radius: inherit;
}

.local-image-slider .carousel-item {
    position: relative;
    text-decoration: none;
}

.local-image-slider img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    background: #f6faf8;
    transform: scale(1.01);
}

.local-image-slider__caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 36px);
    flex-direction: column;
    gap: 3px;
    padding: .75rem .9rem;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 32px rgba(2, 24, 43, .16);
    color: #05213b;
    backdrop-filter: blur(10px);
}

.local-image-slider__caption small {
    color: #007a55;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.local-image-slider__caption strong {
    color: #061b33;
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
    font-weight: 900;
    line-height: 1.15;
}

.local-image-slider .carousel-control-prev,
.local-image-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    margin: 0 12px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(6, 27, 51, .72);
    box-shadow: 0 12px 28px rgba(2, 24, 43, .18);
    opacity: 1;
    transform: translateY(-50%);
}

.local-image-slider .carousel-control-prev-icon,
.local-image-slider .carousel-control-next-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.local-image-slider .carousel-indicators {
    right: 18px;
    bottom: 18px;
    left: auto;
    z-index: 3;
    justify-content: flex-end;
    width: auto;
    margin: 0;
    gap: 6px;
}

.local-image-slider .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    opacity: 1;
}

.local-image-slider .carousel-indicators .active {
    width: 24px;
    background: #ff9900;
}

.shop-hero__visual .shop-local-slider {
    width: min(100%, 520px);
    height: 365px;
    margin-left: auto;
}

.shop-hero__visual .shop-local-slider img {
    min-height: 365px;
}

.formation-local-slider-wrap {
    max-width: 1320px;
    margin: 0 auto 1.5rem;
}

.formation-local-slider {
    min-height: 330px;
}

.formation-local-slider img {
    min-height: 330px;
    max-height: 420px;
}

html.theme-dark .local-image-slider {
    border-color: rgba(255, 255, 255, .12);
    background: #071827;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .32);
}

html.theme-dark .local-image-slider__caption {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(6, 27, 51, .9);
}

html.theme-dark .local-image-slider__caption strong {
    color: #f7fbff;
}

@media (max-width: 991.98px) {
    .shop-hero-product-carousel {
        width: 100%;
        margin: 1rem 0 0;
    }

    .shop-hero-product-carousel .carousel-item,
    .shop-hero-product-carousel img {
        min-height: 280px;
        height: 280px;
    }

    .shop-hero__visual .shop-local-slider {
        width: 100%;
        height: 310px;
        margin: 1rem 0 0;
    }

    .shop-hero__visual .shop-local-slider img,
    .local-image-slider img,
    .formation-local-slider img {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .shop-hero-product-carousel {
        border-radius: 10px;
    }

    .shop-hero-product-carousel .carousel-item,
    .shop-hero-product-carousel img {
        min-height: 210px;
        height: 210px;
    }

    .shop-hero-product-carousel__info {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        padding: .58rem .66rem;
    }

    .shop-hero-product-carousel__info strong {
        font-size: .85rem;
    }

    .local-image-slider {
        border-radius: 16px;
    }

    .shop-hero__visual .shop-local-slider,
    .formation-local-slider {
        height: 230px;
        min-height: 230px;
    }

    .shop-hero__visual .shop-local-slider img,
    .local-image-slider img,
    .formation-local-slider img {
        min-height: 230px;
        max-height: 250px;
    }

    .local-image-slider__caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: .62rem .72rem;
        border-radius: 12px;
    }

    .local-image-slider .carousel-control-prev,
    .local-image-slider .carousel-control-next {
        width: 38px;
        height: 38px;
        margin: 0 8px;
    }

    .local-image-slider .carousel-indicators {
        right: 12px;
        bottom: 10px;
    }
}

/* Admin livraison : ventes hors site */
.tracking-live-map {
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(11, 37, 69, .08);
}

.gallery-slide__hint {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    padding: .48rem .65rem;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #0b2545;
    font-size: .74rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(11,37,69,.14);
    backdrop-filter: blur(10px);
}

.courier-orders-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.courier-orders-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.courier-orders-summary article {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(11,37,69,.07);
}

.courier-orders-summary i {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #eef6ff;
    color: #0b4a7a;
}

.courier-orders-summary strong,
.courier-orders-summary small {
    display: block;
}

.courier-orders-summary strong {
    color: #061b33;
    font-size: 1.25rem;
    font-weight: 950;
}

.courier-orders-summary small {
    color: #60758a;
    font-weight: 800;
}

.courier-order-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.courier-order-card {
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(11,37,69,.08);
}

.courier-order-card__head,
.courier-order-card__grid,
.courier-order-card__actions {
    display: grid;
    gap: .85rem;
}

.courier-order-card__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding-bottom: .85rem;
    border-bottom: 1px solid #edf2f6;
}

.courier-order-card__head span,
.courier-order-card__grid span {
    display: block;
    color: #60758a;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.courier-order-card__head strong,
.courier-order-card__grid strong {
    display: block;
    color: #061b33;
    font-weight: 950;
}

.courier-order-card__head small,
.courier-order-card__grid small {
    color: #60758a;
}

.courier-order-card__head em {
    padding: .45rem .65rem;
    border-radius: 999px;
    background: #e8f3ed;
    color: #0b5f31;
    font-style: normal;
    font-weight: 900;
}

.courier-order-card__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: .95rem 0;
}

.courier-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

@media (max-width: 767.98px) {
    .courier-orders-summary,
    .courier-order-card__head,
    .courier-order-card__grid {
        grid-template-columns: 1fr;
    }
}

.tracking-live-map__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.tracking-live-map__head span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #008060;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-live-map__head h2 {
    margin: .25rem 0 0;
    color: #061b33;
    font-weight: 950;
}

.tracking-live-map__head em {
    padding: .42rem .65rem;
    border-radius: 999px;
    background: #eef6ff;
    color: #0b4a7a;
    font-size: .78rem;
    font-style: normal;
    font-weight: 900;
}

.tracking-live-map__frame {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid #dce7ef;
    border-radius: 14px;
    background: #f7fbfd;
}

.tracking-live-map__frame iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.tracking-live-map__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .35rem;
    padding: 1.25rem;
    text-align: center;
    background: #f7fbfd;
    color: #60758a;
}

.tracking-live-map__empty i {
    color: #008060;
    font-size: 2rem;
}

.tracking-live-map__empty strong {
    color: #061b33;
    font-size: 1.1rem;
}

.tracking-live-map__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .85rem;
}

.tracking-live-map__meta span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .75rem;
    border: 1px solid #dce7ef;
    border-radius: 999px;
    background: #fbfdfe;
    color: #0b2545;
    font-weight: 900;
}

html.theme-dark .tracking-live-map,
html.theme-dark .tracking-live-map__meta span {
    border-color: rgba(255,255,255,.12);
    background: #071827;
}

html.theme-dark .tracking-live-map__head h2,
html.theme-dark .tracking-live-map__meta span,
html.theme-dark .tracking-live-map__empty strong {
    color: #f7fbff;
}

@media (max-width: 767.98px) {
    .tracking-live-map__head {
        display: grid;
    }

    .tracking-live-map__frame,
    .tracking-live-map__frame iframe {
        min-height: 290px;
        height: 290px;
    }
}

.admin-area .offsite-sales-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: .35rem;
}

.admin-area .offsite-sales-strip article {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(11, 37, 69, .07);
}

.admin-area .offsite-sales-strip span {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 9px;
    background: #eef6ff;
    color: #0b4a7a;
}

.admin-area .offsite-sales-strip strong,
.admin-area .offsite-sales-strip small {
    display: block;
}

.admin-area .offsite-sales-strip strong {
    color: #0b2545;
    font-size: 1.12rem;
    font-weight: 950;
}

.admin-area .offsite-sales-strip small {
    color: #60758a;
    font-weight: 800;
}

.admin-area .offsite-sale-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.admin-area .offsite-sale-panel .admin-panel__head {
    margin-bottom: 1.1rem;
}

.admin-area .offsite-sale-form .form-control,
.admin-area .offsite-sale-form .form-select {
    min-height: 46px;
    border-radius: 10px;
}

.admin-area .offsite-sale-form textarea.form-control {
    min-height: 88px;
    resize: vertical;
}

.admin-area .offsite-sale-form textarea,
.admin-area .offsite-sale-form button[type="submit"] {
    grid-column: span 2;
}

.admin-area .offsite-sale-form button[type="submit"] {
    min-height: 48px;
    justify-self: start;
    padding-inline: 1.2rem;
}

.admin-area .offsite-status-form {
    display: grid;
    grid-template-columns: minmax(105px, 1fr) minmax(105px, 1fr) auto;
    gap: .55rem;
    align-items: center;
    min-width: 285px;
}

.admin-area .offsite-status-form .form-select {
    min-height: 36px;
}

.admin-area .admin-panel .table td,
.admin-area .admin-panel .table th {
    padding-top: .9rem;
    padding-bottom: .9rem;
    vertical-align: middle;
}

.admin-area .admin-table-actions {
    gap: .45rem;
}

.admin-area .delivery-ops-grid {
    gap: 1rem;
}

.admin-area .delivery-zones-panel {
    position: relative;
    z-index: 1;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1.1rem;
}

.admin-area .delivery-zones-panel .table-responsive {
    display: block;
    max-height: 360px !important;
    overflow: auto !important;
    margin-top: 1rem !important;
    padding-bottom: .5rem;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: #fff;
}

.admin-area .delivery-zones-panel .table {
    margin-bottom: 0;
}

.admin-area .delivery-zones-panel .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbfd;
}

.admin-area .delivery-ops-panel {
    position: relative;
    z-index: 1;
    clear: both;
    display: flow-root;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    background: #fff;
    overflow: visible !important;
}

.admin-area .delivery-ops-panel .admin-panel__head {
    margin-bottom: 1rem;
}

.admin-area .delivery-ops-panel .delivery-zone-form {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem !important;
}

.admin-area .delivery-ops-panel .delivery-zone-table-wrap {
    position: relative;
    z-index: 1;
    display: block;
    max-height: 330px !important;
    overflow: auto !important;
    margin-top: 1rem !important;
    margin-bottom: .25rem !important;
    padding-bottom: .5rem;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 -10px 16px rgba(6, 27, 51, .035);
}

.admin-area .delivery-ops-panel .delivery-zone-table-wrap .table {
    min-width: 760px;
    margin-bottom: 0;
}

.admin-area .delivery-ops-panel .delivery-zone-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbfd;
}

.admin-area .delivery-ops-panel + .admin-panel {
    position: relative;
    z-index: 0;
    clear: both;
    margin-top: 2rem !important;
}

.admin-area .delivery-mini-form {
    gap: .75rem;
    padding: 1rem;
}

.admin-area .delivery-ops-lists {
    gap: 1rem;
}

.admin-area .delivery-card {
    margin-bottom: .35rem;
}

.admin-area .delivery-card__body {
    display: grid;
    gap: .35rem;
}

.admin-area .delivery-card__body p {
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    .admin-area .offsite-sales-strip,
    .admin-area .offsite-sale-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-area .offsite-sales-strip,
    .admin-area .offsite-sale-form,
    .admin-area .offsite-status-form {
        grid-template-columns: 1fr;
    }

    .admin-area .offsite-sale-form textarea,
    .admin-area .offsite-sale-form button[type="submit"] {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }
}

/* Correction finale header : eviter blanc sur blanc au survol */
.main-header .header-quick-links a:hover,
.main-header .header-quick-links a:focus-visible,
.main-header .header-whatsapp-link:hover,
.main-header .header-whatsapp-link:focus-visible,
.main-header .cart-link-header:hover,
.main-header .cart-link-header:focus-visible,
.main-header .admin-notification-btn:hover,
.main-header .admin-notification-btn:focus-visible,
.main-header .mobile-menu-button:hover,
.main-header .mobile-menu-button:focus-visible,
.main-header .header-tools-toggle:hover,
.main-header .header-tools-toggle:focus-visible,
.main-header .premium-theme-toggle:hover,
.main-header .premium-theme-toggle:focus-visible,
.main-header .dropdown > .dropdown-toggle:hover,
.main-header .dropdown > .dropdown-toggle:focus-visible,
.nav-secondary .hover-link:hover,
.nav-secondary .hover-link:focus-visible,
.nav-secondary .hover-link.active {
    background: #0b2545 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .35) !important;
    box-shadow: 0 10px 22px rgba(6, 27, 51, .18) !important;
}

.main-header .header-quick-links a:hover *,
.main-header .header-whatsapp-link:hover *,
.main-header .cart-link-header:hover *,
.main-header .admin-notification-btn:hover *,
.main-header .mobile-menu-button:hover *,
.main-header .header-tools-toggle:hover *,
.main-header .premium-theme-toggle:hover *,
.main-header .dropdown > .dropdown-toggle:hover *,
.nav-secondary .hover-link:hover *,
.nav-secondary .hover-link.active * {
    color: #ffffff !important;
}

.main-header .dropdown-menu .dropdown-item:hover,
.main-header .dropdown-menu .dropdown-item:focus {
    background: #eef6ff !important;
    color: #0b2545 !important;
}

.main-header .dropdown-menu .dropdown-item:hover i,
.main-header .dropdown-menu .dropdown-item:focus i {
    color: #0b7a4b !important;
}

/* Chat IA premium : panneau plus intelligent et lisible */
.premium-chat-panel {
    width: min(460px, calc(100vw - 24px)) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(9, 44, 76, .14) !important;
    box-shadow: 0 28px 80px rgba(6, 27, 51, .26) !important;
}

.premium-chat-panel__head {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 36px 36px !important;
    align-items: center !important;
    background: #071f38 !important;
    color: #ffffff !important;
}

.premium-chat-avatar {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #087a4a !important;
    box-shadow: inset 0 0 0 1px rgba(8, 122, 74, .14), 0 10px 28px rgba(0, 0, 0, .22) !important;
}

.premium-chat-panel__head div > small {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    margin-top: .18rem !important;
    color: #bdebd4 !important;
    font-size: .72rem !important;
    font-weight: 850 !important;
}

.premium-chat-panel__head div > small i {
    color: #25d366 !important;
    font-size: .45rem !important;
    filter: drop-shadow(0 0 6px rgba(37, 211, 102, .75));
}

.premium-chat-panel__body {
    background: #f7fafc !important;
}

.premium-chat-message {
    padding: .72rem .82rem !important;
    line-height: 1.45 !important;
}

.premium-chat-message--agent {
    border-color: #d6e7ef !important;
    background: #ffffff !important;
}

.premium-chat-message--user {
    border-color: #0b7a4b !important;
    background: #0b7a4b !important;
    color: #ffffff !important;
}

.premium-chat-message--user .premium-chat-time {
    color: rgba(255, 255, 255, .72) !important;
}

.premium-chat-answer {
    display: grid !important;
    gap: .38rem !important;
}

.premium-chat-answer strong {
    color: #071f38 !important;
    font-weight: 950 !important;
}

.premium-chat-answer p {
    margin: 0 !important;
    color: #38536a !important;
}

.premium-chat-thinking {
    min-width: min(310px, 86%) !important;
    border-color: #cfe6f0 !important;
    background: #ffffff !important;
}

.premium-chat-thinking__head {
    display: flex !important;
    align-items: center !important;
    gap: .55rem !important;
    color: #071f38 !important;
}

.premium-chat-thinking__head > i {
    display: inline-grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    background: #e9f8f0 !important;
    color: #087a4a !important;
}

.premium-chat-thinking__head strong {
    flex: 1 !important;
    font-size: .86rem !important;
    font-weight: 950 !important;
}

.premium-chat-thinking__head span {
    display: inline-flex !important;
    gap: .22rem !important;
}

.premium-chat-thinking__head span i {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #087a4a !important;
    animation: eclosionChatDot 1s infinite ease-in-out;
}

.premium-chat-thinking__head span i:nth-child(2) {
    animation-delay: .15s;
}

.premium-chat-thinking__head span i:nth-child(3) {
    animation-delay: .3s;
}

.premium-chat-thinking__steps {
    display: grid !important;
    gap: .28rem !important;
    margin: .55rem 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    color: #7890a5 !important;
    font-size: .76rem !important;
    font-weight: 800 !important;
}

.premium-chat-thinking__steps li {
    display: flex !important;
    align-items: center !important;
    gap: .4rem !important;
}

.premium-chat-thinking__steps li::before {
    content: "";
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #c9d7e1 !important;
}

.premium-chat-thinking__steps li.is-active {
    color: #087a4a !important;
}

.premium-chat-thinking__steps li.is-active::before {
    background: #087a4a !important;
    box-shadow: 0 0 0 5px rgba(8, 122, 74, .12);
}

.premium-chat-quick {
    margin-top: .8rem !important;
}

.premium-chat-quick button,
.premium-chat-suggestions button {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 18px rgba(6, 27, 51, .06) !important;
}

.premium-chat-input {
    margin-top: .75rem !important;
    border: 1px solid #d6e5ee !important;
    box-shadow: none !important;
    resize: none !important;
}

.premium-chat-input:focus {
    border-color: #087a4a !important;
    box-shadow: 0 0 0 4px rgba(8, 122, 74, .12) !important;
}

.premium-chat-send {
    background: #087a4a !important;
    border-color: #087a4a !important;
}

html.theme-dark .premium-chat-panel {
    background: #09192b !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

html.theme-dark .premium-chat-panel__body,
html.theme-dark .premium-chat-panel__foot {
    background: #09192b !important;
}

html.theme-dark .premium-chat-message--agent,
html.theme-dark .premium-chat-thinking {
    background: #102840 !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

html.theme-dark .premium-chat-answer strong,
html.theme-dark .premium-chat-thinking__head {
    color: #f8fbff !important;
}

html.theme-dark .premium-chat-answer p {
    color: #c4d5e4 !important;
}

@keyframes eclosionChatDot {
    0%, 80%, 100% { transform: translateY(0); opacity: .35; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 575.98px) {
    .premium-chat-panel {
        right: 8px !important;
        left: 8px !important;
        bottom: 92px !important;
        width: auto !important;
        max-height: calc(100vh - 112px) !important;
    }

    .premium-chat-panel__head {
        grid-template-columns: 42px minmax(0, 1fr) 34px 34px !important;
        padding: .8rem !important;
    }

    .premium-chat-panel__body {
        max-height: calc(100vh - 270px) !important;
        padding: .8rem !important;
    }

    .premium-chat-avatar {
        width: 42px !important;
        height: 42px !important;
    }
}
/* Mode nuit robuste : surfaces, formulaires et tableaux restent lisibles partout */
html.theme-dark {
    color-scheme: dark;
}

html.theme-dark body,
html.theme-dark .main-content,
html.theme-dark .admin-shell,
html.theme-dark .container,
html.theme-dark .container-fluid {
    color: #eef6fb !important;
}

html.theme-dark .card,
html.theme-dark .modal-content,
html.theme-dark .list-group-item,
html.theme-dark .table,
html.theme-dark .table-responsive,
html.theme-dark .admin-panel,
html.theme-dark .admin-card,
html.theme-dark .admin-page-head,
html.theme-dark .admin-command-card,
html.theme-dark .admin-metric-card,
html.theme-dark .stock-control-panel,
html.theme-dark .offsite-sale-panel,
html.theme-dark .product-detail-block,
html.theme-dark .cart-summary,
html.theme-dark .cart-item,
html.theme-dark .auth-card,
html.theme-dark .dropdown-menu {
    background-color: #0d2238 !important;
    color: #eef6fb !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
html.theme-dark strong,
html.theme-dark label,
html.theme-dark .form-label,
html.theme-dark .table th,
html.theme-dark .table td,
html.theme-dark .dropdown-item,
html.theme-dark .admin-panel__head h2,
html.theme-dark .admin-page-head h1 {
    color: #f7fbff !important;
}

html.theme-dark p,
html.theme-dark small,
html.theme-dark .text-muted,
html.theme-dark .admin-page-head p,
html.theme-dark .admin-panel__head span,
html.theme-dark .form-text {
    color: #c9d9e6 !important;
}

html.theme-dark .form-control,
html.theme-dark .form-select,
html.theme-dark textarea,
html.theme-dark input,
html.theme-dark select {
    background-color: #102b46 !important;
    color: #f7fbff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html.theme-dark .form-control::placeholder,
html.theme-dark textarea::placeholder,
html.theme-dark input::placeholder {
    color: #93a8ba !important;
}

html.theme-dark .bg-light,
html.theme-dark .text-bg-light {
    background-color: #102b46 !important;
    color: #f7fbff !important;
}

html.theme-dark .text-dark,
html.theme-dark .dropdown-item.text-dark {
    color: #f7fbff !important;
}

html.theme-dark .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #eef6fb !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .table-hover > tbody > tr:hover > * {
    background-color: #153653 !important;
}

.enterprise-stock-hint {
    grid-column: 1 / -1;
    padding: .72rem .9rem;
    border: 1px solid rgba(13, 110, 253, .16);
    border-radius: 8px;
    background: rgba(13, 110, 253, .07);
    color: #24415f;
    font-weight: 800;
}

.enterprise-stock-hint.is-danger {
    border-color: rgba(220, 53, 69, .25);
    background: rgba(220, 53, 69, .08);
    color: #9f1d2b;
}

html.theme-dark .enterprise-stock-hint {
    background: rgba(46, 160, 255, .13);
    color: #d8ecff !important;
    border-color: rgba(170, 213, 255, .22);
}

html.theme-dark .enterprise-stock-hint.is-danger {
    background: rgba(255, 91, 111, .15);
    color: #ffd5db !important;
    border-color: rgba(255, 146, 160, .32);
}

html.theme-dark .market-new-section,
html.theme-dark .market-new-card {
    background: #0d2238 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html.theme-dark .market-new-card__media {
    background: #102b46 !important;
}

html.theme-dark .market-new-card h3,
html.theme-dark .market-new-card h3 a,
html.theme-dark .market-new-card__body strong {
    color: #f7fbff !important;
}

html.theme-dark .market-new-card p {
    color: #c9d9e6 !important;
}

/* Admin header + navigation professionnelle */
.admin-area .top-bar {
    display: none !important;
}

.admin-area .main-header {
    border-bottom: 1px solid rgba(15, 47, 74, .12) !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 8px 24px rgba(6, 27, 51, .07) !important;
}

.admin-area .navbar-middle {
    padding-top: .62rem !important;
    padding-bottom: .62rem !important;
}

.admin-area .nav-secondary {
    border-top: 1px solid rgba(15, 47, 74, .08) !important;
    background: #0b1f35 !important;
}

.admin-area .nav-secondary .hover-link,
.admin-area .nav-secondary .btn-rayons {
    min-height: 34px !important;
    border-color: rgba(255, 255, 255, .12) !important;
    background: rgba(255, 255, 255, .06) !important;
    color: rgba(255, 255, 255, .88) !important;
}

.admin-area .nav-secondary .dropdown .btn {
    border-color: rgba(255, 255, 255, .2) !important;
    background: #fff !important;
    color: #0b1f35 !important;
    font-weight: 900 !important;
}

.admin-area .header-quick-links a {
    border-color: #dbe7ef !important;
    background: #f7fbfd !important;
}

.admin-area .admin-workspace-nav {
    gap: .7rem !important;
    padding: .72rem !important;
    border: 1px solid #d6e3ea !important;
    background: #f8fbfd !important;
    box-shadow: 0 16px 38px rgba(6, 27, 51, .08) !important;
}

.admin-area .admin-workspace-brand {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .65rem !important;
    padding: .72rem !important;
    border: 1px solid #d8e8e0 !important;
    background: linear-gradient(135deg, #ffffff, #eef8f2) !important;
}

.admin-area .admin-workspace-brand > span {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: #107c41 !important;
    color: #fff !important;
}

.admin-area .admin-workspace-brand strong {
    color: #09233b !important;
    font-size: .95rem !important;
    line-height: 1 !important;
}

.admin-area .admin-workspace-brand small {
    color: #64788c !important;
    font-size: .72rem !important;
    font-weight: 850 !important;
}

.admin-area .admin-workspace-brand em {
    padding: .24rem .44rem;
    border-radius: 999px;
    background: #e8f5ee;
    color: #107c41;
    font-size: .66rem;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .02em;
}

.admin-area .admin-workspace-current {
    display: grid;
    gap: .1rem;
    padding: .62rem .72rem;
    border: 1px solid #d9e6ee;
    border-left: 3px solid #107c41;
    border-radius: 8px;
    background: #fff;
}

.admin-area .admin-workspace-current span,
.admin-area .admin-workspace-section {
    color: #6a7e91;
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-area .admin-workspace-current strong {
    color: #09233b;
    font-size: .86rem;
    font-weight: 950;
    line-height: 1.15;
}

.admin-area .admin-workspace-section {
    display: block;
    margin: .45rem .2rem .08rem;
}

.admin-area .admin-workspace-links {
    gap: .18rem !important;
}

.admin-area .admin-workspace-links a,
.admin-area .admin-workspace-tools a {
    min-height: 38px !important;
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
    gap: .55rem !important;
    padding: .36rem .48rem !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #243f58 !important;
    font-size: .84rem !important;
    font-weight: 900 !important;
}

.admin-area .admin-workspace-links i,
.admin-area .admin-workspace-tools i {
    width: 30px !important;
    height: 30px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    background: #edf4f8 !important;
    color: #0f2f4a !important;
}

.admin-area .admin-workspace-links a:hover,
.admin-area .admin-workspace-tools a:hover {
    border-color: #cfe5da !important;
    background: #f0faf5 !important;
    color: #107c41 !important;
    transform: none !important;
}

.admin-area .admin-workspace-links a:hover i,
.admin-area .admin-workspace-tools a:hover i {
    background: #e4f4eb !important;
    color: #107c41 !important;
}

.admin-area .admin-workspace-links a.active {
    border-color: #107c41 !important;
    background: #107c41 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(16, 124, 65, .22) !important;
}

.admin-area .admin-workspace-links a.active i {
    background: rgba(255, 255, 255, .16) !important;
    color: #fff !important;
}

.admin-area .admin-workspace-links em {
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: #ffedd5 !important;
    color: #9a4d00 !important;
    font-size: .68rem !important;
    font-weight: 950 !important;
}

.admin-area .admin-workspace-tools {
    gap: .28rem !important;
    padding-top: .6rem !important;
    border-top: 1px solid #d9e6ee !important;
}

.admin-area .admin-workspace-tools a {
    background: #fff !important;
    border-color: #dde8ef !important;
}

.admin-area .admin-workspace-tools a.danger {
    color: #b42318 !important;
}

@media (max-width: 991.98px) {
    .admin-area .admin-workspace-nav {
        margin-bottom: 1rem;
    }

    .admin-area .admin-workspace-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-area .admin-workspace-section,
    .admin-area .admin-workspace-current {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .admin-area .admin-workspace-links {
        grid-template-columns: 1fr;
    }
}

/* Menu compte / administration */
.main-header .account-menu {
    width: min(330px, calc(100vw - 20px));
    max-height: min(680px, calc(100dvh - 92px));
    overflow-y: auto;
    padding: .55rem;
    border: 1px solid #dbe7ef !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 24px 60px rgba(6, 27, 51, .18) !important;
    scrollbar-width: thin;
}

.main-header .account-menu__head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e1ebf2;
    border-radius: 9px;
    background: #f7fbfd;
}

.main-header .account-menu__avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: #e8f5ee;
    color: #107c41;
}

.main-header .account-menu__head strong,
.main-header .account-menu__head small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header .account-menu__head strong {
    color: #09233b;
    font-size: .98rem;
    font-weight: 950;
}

.main-header .account-menu__head small {
    color: #6a7e91;
    font-size: .76rem;
    font-weight: 750;
}

.main-header .account-menu__head em {
    align-self: start;
    padding: .24rem .45rem;
    border-radius: 999px;
    background: #e8f5ee;
    color: #107c41;
    font-size: .68rem;
    font-style: normal;
    font-weight: 950;
}

.main-header .account-menu__section {
    margin: .62rem .25rem .25rem;
    color: #708497;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.main-header .account-menu__link {
    min-height: 40px;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    margin: .12rem 0;
    padding: .28rem .45rem !important;
    border: 1px solid transparent;
    border-radius: 8px !important;
    color: #142b43 !important;
    font-size: .88rem;
    font-weight: 850;
}

.main-header .account-menu__link i {
    width: 34px !important;
    height: 34px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid #d4e6de !important;
    border-radius: 8px !important;
    background: #f8fcfa !important;
    color: #107c41 !important;
}

.main-header .account-menu__link:hover,
.main-header .account-menu__link:focus {
    border-color: #cfe5da !important;
    background: #eef8f3 !important;
    color: #107c41 !important;
}

.main-header .account-menu__admin-link {
    min-height: 38px;
}

.main-header .account-menu__badge {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #107c41;
    color: #fff;
    font-size: .7rem;
    font-weight: 950;
}

.main-header .account-menu .dropdown-divider {
    display: none;
}

.main-header .account-menu .text-danger,
.main-header .account-menu__logout {
    min-height: 40px;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    margin-top: .55rem;
    padding: .28rem .45rem !important;
    border-top: 1px solid #e5edf2;
    border-radius: 8px !important;
    color: #b42318 !important;
}

.main-header .account-menu .text-danger i,
.main-header .account-menu__logout i {
    border-color: #ffd8d3 !important;
    background: #fff3f1 !important;
    color: #b42318 !important;
}

html.theme-dark .main-header .account-menu {
    border-color: rgba(255, 255, 255, .14) !important;
    background: #0d2238 !important;
}

html.theme-dark .main-header .account-menu__head,
html.theme-dark .main-header .account-menu__link {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}

html.theme-dark .main-header .account-menu__head strong,
html.theme-dark .main-header .account-menu__link {
    color: #f7fbff !important;
}

html.theme-dark .main-header .account-menu__head small,
html.theme-dark .main-header .account-menu__section {
    color: #b8c7d8;
}

/* Popups contextuels plus propres */
.welcome-pop {
    z-index: 10080 !important;
    padding: 1rem !important;
    background: rgba(6, 27, 51, .58) !important;
    backdrop-filter: blur(10px);
}

.welcome-pop__card {
    width: min(100%, 640px) !important;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 14px !important;
    box-shadow: 0 28px 80px rgba(6, 27, 51, .28) !important;
}

.welcome-pop__close {
    top: .75rem !important;
    right: .75rem !important;
    z-index: 5 !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid rgba(8, 38, 64, .1) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #09233b !important;
}

.welcome-pop__close:hover,
.welcome-pop__close:focus-visible {
    background: #107c41 !important;
    color: #fff !important;
}

.welcome-pop__media {
    aspect-ratio: 16 / 9 !important;
}

.welcome-pop__content {
    display: grid;
    gap: .55rem;
    margin-top: -1.7rem !important;
    padding: 0 1.35rem 1.35rem !important;
}

.welcome-pop__icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    background: #107c41 !important;
}

.welcome-pop h2 {
    margin: .35rem 0 0 !important;
    color: #09233b !important;
    font-size: clamp(1.35rem, 3vw, 1.9rem) !important;
    line-height: 1.1 !important;
}

.welcome-pop p {
    max-width: 54ch;
    margin: 0 !important;
    color: #52687d !important;
}

.welcome-pop__actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem !important;
    margin-top: .35rem !important;
}

.welcome-pop__actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px !important;
    font-weight: 900;
}

.welcome-pop__enter {
    grid-column: 1 / -1;
}

.auth-context-modal .modal-dialog {
    width: min(960px, calc(100vw - 22px));
}

.auth-context-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .6) !important;
    border-radius: 14px !important;
    box-shadow: 0 28px 90px rgba(6, 27, 51, .28) !important;
}

.auth-context-close {
    top: 14px !important;
    right: 14px !important;
    z-index: 12 !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid rgba(8, 38, 64, .1) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #09233b !important;
}

.auth-context-close:hover,
.auth-context-close:focus-visible {
    background: #107c41 !important;
    color: #fff !important;
}

.auth-context-side {
    min-height: 100%;
    background: #09233b !important;
}

.auth-context-panel {
    background: #fff !important;
}

.auth-context-tabs {
    border-radius: 10px !important;
    background: #eef5f1 !important;
}

.auth-context-tabs button {
    border-radius: 8px !important;
}

.auth-context-tabs button.active {
    background: #107c41 !important;
    color: #fff !important;
}

.auth-context-submit,
.auth-google-btn--modal {
    border-radius: 9px !important;
}

@media (max-width: 767.98px) {
    .welcome-pop__actions {
        grid-template-columns: 1fr;
    }

    .auth-context-grid {
        grid-template-columns: 1fr !important;
    }

    .auth-context-side {
        min-height: auto;
        padding: 1rem !important;
    }
}
