/*
    Pages de l'Auth vues par le public (Views/Shared/_LayoutSite.cshtml). Le menu et le pied de page
    portent leur propre CSS (fragments du site publie) ; ce fichier habille seulement le contenu.

    La police de la charte, « Plus Jakarta Sans », est servie depuis le fichier deja livre avec l'Auth
    (police variable : un fichier pour toutes les graisses), sans dependre de Google.
*/

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #0d1117;
    color: #e8eaf2;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Le fond des pages de compte : la photo de nuit des maquettes, assombrie pour garder le contraste. */
main.oa-acc {
    position: relative; isolation: isolate;
    min-height: 70vh; padding: 56px 1.5rem 72px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #050810 url("/Content/Images/site/auth-bg-night.webp") center 40% / cover no-repeat;
}
main.oa-acc::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(5,8,16,.6) 0%, rgba(5,8,16,.45) 40%, rgba(5,8,16,.65) 100%);
}
/* Pages de connexion et de paiement : la barre du haut (header-light) est fixe et haute de 62 px. */
main.oa-acc.light { min-height: 100vh; padding-top: calc(62px + 56px); }
/* Dans la pop-up du site (?embed=1) : la carte seule, sur fond transparent, sans marges autour. */
html.is-embed, html.is-embed body { background: transparent; }
main.oa-acc.embed { min-height: 0; padding: 0; background: none; }
main.oa-acc.embed::before { display: none; }
/* La pop-up a deja son cadre : la carte n'en remet pas un (TN-211). */
html.is-embed .acc-card {
    max-width: none; background: none; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Champ prerempli par le navigateur : une transition interminable retient le fond clair qu'il impose,
   le texte garde la couleur de la charte ; filter retire la teinte de Firefox. */
main.oa-acc input:-webkit-autofill,
main.oa-acc input:-webkit-autofill:hover,
main.oa-acc input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e8eaf2; caret-color: #e8eaf2;
    transition: background-color 600000s 0s, color 600000s 0s;
}
main.oa-acc input:autofill { filter: none; }

/* ---------- carte (login-normal.html) ---------- */
.acc-card, .acc-split {
    background: rgba(6,9,22,.78);
    backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(45,127,245,.4); border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.acc-card {
    width: 100%; max-width: 440px; padding: 2.75rem 2.25rem 2.5rem;
    display: flex; flex-direction: column; align-items: center;
}

.acc-logo {
    position: relative; overflow: hidden;
    width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1.5rem; flex-shrink: 0;
    background: #2D7FF5; box-shadow: 0 0 28px rgba(45,127,245,.4);
    animation: acc-beacon 3.8s ease-in-out infinite, acc-float 4.6s ease-in-out infinite;
}
.acc-logo img { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 16px; display: block; }
.acc-logo::after {
    content: ""; position: absolute; top: -40%; left: 0; width: 30%; height: 180%; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%);
    animation: acc-sheen 6s ease-in-out 1.4s infinite backwards;
}
@keyframes acc-beacon { 0%, 100% { box-shadow: 0 0 22px rgba(45,127,245,.30); } 50% { box-shadow: 0 0 44px rgba(45,127,245,.62); } }
@keyframes acc-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes acc-sheen { 0% { transform: translateX(-230%) rotate(18deg); } 45%, 100% { transform: translateX(480%) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .acc-logo { animation: none; } .acc-logo::after { display: none; } }

.acc-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; text-align: center; }
.acc-sub { font-size: 15px; color: #7a8099; margin: 0 0 1.75rem; text-align: center; }
.acc-title.left, .acc-sub.left { text-align: left; }
.acc-sub.tight { font-size: 14.5px; margin-bottom: 1rem; }

/* ---------- inscription (register.html) ---------- */
.acc-card.wide { max-width: 520px; padding: 2rem 2.25rem 1.9rem; }
.acc-card.wide .acc-logo { margin-bottom: 1rem; }
.acc-trial {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
    color: #4ae896; background: rgba(74,232,150,.08); border: 1px solid rgba(74,232,150,.22);
    border-radius: 20px; padding: 5px 13px; margin-bottom: 1.15rem;
}
.acc-input input:invalid:not(:placeholder-shown) { border-color: rgba(245,90,90,.45); }
.acc-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: #8a91ad; line-height: 1.45; cursor: pointer; }
.acc-terms input { width: 16px; height: 16px; accent-color: #2D7FF5; cursor: pointer; flex-shrink: 0; margin: 1px 0 0; }
.acc-terms a { color: #2D7FF5; text-decoration: none; }
.acc-terms a:hover { text-decoration: underline; }

a.acc-btn, a.acc-btn:hover { text-decoration: none; }

/* Page de message, et texte de confirmation venu de la base (liens et bouton « btn » compris). */
.acc-message { font-size: 16px; line-height: 1.6; text-align: center; margin: 0 0 1.5rem; }
.acc-dbhtml { width: 100%; text-align: center; font-size: 15px; line-height: 1.6; color: #c8cce0; }
.acc-dbhtml p { margin: 0 0 1rem; }
.acc-dbhtml a { color: #2D7FF5; }
.acc-dbhtml a.btn {
    display: block; margin-top: .5rem; padding: 13px 20px; border-radius: 9px; text-decoration: none;
    background: #2D7FF5; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.acc-error {
    width: 100%; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 9px; font-size: 14px;
    color: #f2666b; background: rgba(242,102,107,.10); border: 1px solid rgba(242,102,107,.30);
}

.acc-expired { max-width: 460px; margin: 0 auto 1rem; text-align: center; }

/* ---------- formulaire ---------- */
.acc-form { width: 100%; display: flex; flex-direction: column; gap: .9rem; margin: 0; }
.acc-input { position: relative; }
.acc-input > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #6b738f; pointer-events: none; }
.acc-input input {
    width: 100%; background: rgba(255,255,255,.03);
    border: 1px solid rgba(45,127,245,.25); border-radius: 9px;
    padding: 13px 42px 13px 40px; font: inherit; font-size: 15px; color: #e8eaf2; outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.acc-input input::placeholder { color: #6b738f; }
.acc-input input:focus { border-color: rgba(45,127,245,.45); background: rgba(45,127,245,.04); box-shadow: 0 0 0 3px rgba(45,127,245,.09); }

.acc-pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    padding: 0; border: 0; border-radius: 7px; background: transparent; color: #6b738f; cursor: pointer;
    transition: color .15s, background .15s;
}
.acc-pw-toggle:hover { color: #b9c0d8; background: rgba(255,255,255,.05); }
.acc-pw-toggle:focus-visible { outline: 2px solid rgba(45,127,245,.6); outline-offset: 1px; }

.acc-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .1rem 0 .2rem; }
.acc-remember { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #7a8099; cursor: pointer; user-select: none; }
.acc-remember input { width: 15px; height: 15px; accent-color: #2D7FF5; cursor: pointer; margin: 0; }
.acc-link { font-size: 13.5px; font-weight: 600; color: #2D7FF5; text-decoration: none; }
.acc-link:hover { text-decoration: underline; }

.acc-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: #2D7FF5; color: #fff; font: inherit; font-size: 14px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 13px 20px; border: none; border-radius: 9px; cursor: pointer; margin-top: .2rem;
    box-shadow: 0 0 28px rgba(45,127,245,.22); transition: background .18s, transform .15s, box-shadow .18s;
}
.acc-btn:hover { background: #3d8cf5; transform: translateY(-1px); box-shadow: 0 0 40px rgba(45,127,245,.4); }

.acc-divider { width: 100%; display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 .85rem; }
.acc-divider::before, .acc-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.acc-divider span { font-size: 13px; color: #7a8099; white-space: nowrap; }

.acc-btn-outline {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: transparent; color: #9aa0b8; font-size: 15px; font-weight: 600; padding: 11px 20px;
    border: 1px solid rgba(45,127,245,.3); border-radius: 9px; text-decoration: none;
    transition: border-color .18s, color .18s, background .18s;
}
.acc-btn-outline:hover { border-color: rgba(45,127,245,.55); color: #e8eaf2; background: rgba(45,127,245,.04); }

.acc-legal { font-size: 13px; color: #6b738f; text-align: center; margin: 1.25rem 0 0; line-height: 1.6; }
.acc-legal a { color: #6b738f; text-decoration: underline; text-underline-offset: 2px; }
.acc-legal a:hover { color: #9aa0b8; }

/* ---------- avec une offre (login-checkout.html) ---------- */
.acc-head { width: 100%; max-width: 1120px; text-align: center; margin-bottom: 1.75rem; }
.acc-page-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .5rem; }
.acc-page-title span { color: #2D7FF5; }
.acc-page-sub { font-size: 15px; color: #c8cce0; margin: 0 0 1.5rem; }
.acc-steps { display: inline-flex; align-items: center; }
.acc-step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.acc-step .muted { color: #9aa0b8; }
.acc-step-dot {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #6b738f;
}
.acc-step-dot.on { background: #2D7FF5; border-color: #2D7FF5; color: #fff; box-shadow: 0 0 12px rgba(45,127,245,.5); }
.acc-step-line { width: 56px; height: 1px; background: rgba(255,255,255,.3); margin: 0 12px; }

.acc-split { width: 100%; max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; position: relative; }
.acc-split::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(45,127,245,.2); pointer-events: none; }
.acc-plans { padding: 2.5rem 2.25rem; }
.acc-form-col { padding: 2.5rem 2.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.acc-plans-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.acc-plans-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b738f; margin: 0; }
.acc-tier {
    display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    color: #8ab4e8; background: rgba(45,127,245,.1); border: 1px solid rgba(45,127,245,.25); border-radius: 20px;
    padding: 4px 12px 4px 11px; white-space: nowrap;
}
.acc-tier-dot { position: relative; width: 5px; height: 5px; border-radius: 50%; background: #35c97f; flex-shrink: 0; animation: acc-breathe 2.6s ease-in-out infinite; }
.acc-tier-dot::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    background: radial-gradient(circle 3.5px at 50% 0%, #eafff4 0%, #8ff5c2 45%, rgba(74,232,150,.55) 70%, rgba(74,232,150,0) 85%);
    animation: acc-orbit 2.8s linear infinite;
}
@keyframes acc-orbit { to { transform: rotate(360deg); } }
@keyframes acc-breathe { 0%, 100% { box-shadow: 0 0 3px rgba(74,232,150,.45); } 50% { box-shadow: 0 0 7px rgba(74,232,150,.8); } }
@media (prefers-reduced-motion: reduce) { .acc-tier-dot, .acc-tier-dot::after { animation: none; } .acc-tier-dot::after { display: none; } }

.acc-plan-list { display: flex; flex-direction: column; gap: .5rem; }
.acc-plan {
    display: block; width: 100%; text-align: left; font: inherit; color: #e8eaf2; cursor: pointer;
    border-radius: 10px; border: 1px solid rgba(45,127,245,.2); background: rgba(255,255,255,.02);
    padding: .85rem 1.1rem; transition: border-color .15s, background .15s;
}
.acc-plan:hover { border-color: rgba(45,127,245,.25); background: rgba(45,127,245,.04); }
.acc-plan.on {
    border-color: rgba(45,127,245,.55); background: rgba(45,127,245,.09); margin-right: -1.5rem; padding-right: 2.6rem;
    box-shadow: 6px 0 32px rgba(45,127,245,.2), 0 0 0 1px rgba(45,127,245,.18);
}
.acc-plan-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.acc-plan-name { font-size: 15px; font-weight: 700; }
.acc-plan-price { margin-left: auto; flex-shrink: 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.acc-plan-price .per { font-size: 13px; font-weight: 500; color: #7a8099; }
.acc-plan-detail { display: none; margin-top: .55rem; padding-top: .55rem; border-top: 1px solid rgba(255,255,255,.06); font-size: 14px; color: #7a8099; }
.acc-plan.on .acc-plan-detail { display: block; }
.acc-plan-detail strong { color: #9aa0b8; font-weight: 600; }
.acc-badge { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.acc-badge.pop { background: rgba(45,127,245,.2); color: #6aaff8; border: 1px solid rgba(45,127,245,.3); }
.acc-badge.best { background: rgba(217,119,6,.15); color: #f59e0b; border: 1px solid rgba(217,119,6,.25); }
.acc-badge.save { background: rgba(251,191,36,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }

/* ---------- paiement (checkout.html) ---------- */
.acc-step-dot.done { background: #4ae896; border-color: #4ae896; color: #050810; }
.acc-split.co { max-width: 1000px; }
.acc-split.co .acc-plans { display: flex; flex-direction: column; gap: 1.25rem; }
.co-plan-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem;
    background: rgba(45,127,245,.05); border: 1px solid rgba(45,127,245,.3); border-radius: 14px;
}
.co-plan-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #2D7FF5; }
.co-plan-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-plan-name { font-size: 15px; font-weight: 800; margin-right: auto; }
.co-plan-price { display: flex; align-items: baseline; gap: 2px; }
.co-plan-price-cur { font-size: 18px; font-weight: 700; color: #7a8099; align-self: flex-start; margin-top: 4px; }
.co-plan-price-amt { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.co-plan-price-per { font-size: 14px; color: #6b738f; }
.co-plan-billing { font-size: 13px; color: #6b738f; }
.co-plan-savings {
    width: fit-content; font-size: 12px; font-weight: 700; color: #4ae896; padding: 3px 9px; border-radius: 100px;
    background: rgba(74,232,150,.08); border: 1px solid rgba(74,232,150,.2);
}
.co-features { padding-top: 1rem; border-top: 1px solid rgba(45,127,245,.15); }
.co-features-title { font-size: 12px; font-weight: 700; color: #6b738f; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .6rem; }
.co-features ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.co-features li { font-size: 14px; color: #6b738f; display: flex; gap: 7px; }
.co-features li::before { content: "\2713"; color: #4ae896; font-weight: 700; font-size: 12px; margin-top: 2px; }

.acc-form-col.co-pay { align-items: stretch; justify-content: flex-start; gap: 1rem; }
.co-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acc-logo.small, .acc-logo.small img { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.co-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(45,127,245,.12); font-size: 15px; }
.co-row .lbl { color: #6b738f; }
.co-row .val { color: #9aa0b8; font-weight: 500; overflow-wrap: anywhere; text-align: right; }
.co-row.total .lbl { font-weight: 700; color: #e8eaf2; }
.co-row.total .val { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #e8eaf2; }
.co-note { font-size: 13px; color: #6b738f; line-height: 1.65; padding: .7rem .9rem; background: rgba(255,255,255,.02); border: 1px solid rgba(45,127,245,.15); border-radius: 9px; }
.co-note strong { color: #9aa0b8; }
.co-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #6b738f; line-height: 1.6; cursor: pointer; }
.co-terms input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #2D7FF5; flex-shrink: 0; cursor: pointer; }
.co-terms a { color: #9aa0b8; text-decoration: underline; text-underline-offset: 2px; }
.co-form { margin: 0; }
.co-form .acc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.co-secure { margin: 0; text-align: center; font-size: 12px; color: #4a526a; }
@media (max-width: 760px) { .acc-split.co .acc-plans { border-bottom: 1px solid rgba(45,127,245,.2); } }

.acc-guarantee {
    display: flex; align-items: center; gap: 9px; margin-top: 1rem; padding: .7rem 1rem;
    background: rgba(45,127,245,.05); border: 1px solid rgba(45,127,245,.12); border-radius: 10px; font-size: 14px; color: #7a8099;
}
.acc-guarantee svg { flex-shrink: 0; color: #2D7FF5; }

@media (max-width: 820px) {
    .acc-split { grid-template-columns: minmax(0, 1fr); }
    .acc-split::after { display: none; }
    .acc-plans { border-bottom: 1px solid rgba(45,127,245,.2); }
    .acc-plan.on { margin-right: 0; padding-right: 1.1rem; }
}
@media (max-width: 520px) {
    main.oa-acc { padding: 32px 1rem 48px; }
    main.oa-acc.light { padding-top: calc(62px + 32px); }
    .acc-card { padding: 2.25rem 1.5rem 2rem; border-radius: 18px; }
    .acc-plans, .acc-form-col { padding: 2rem 1.25rem; }
    .acc-meta { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* Secours quand aucune version du site n'est publiee : jamais en prod, mais une page sans menu ne doit pas casser. */
.oa-chrome-fallback { padding: 18px 24px; background: #070A12; border-bottom: 1px solid #1e2740; font-weight: 700; }
footer.oa-chrome-fallback { border-top: 1px solid #1e2740; border-bottom: 0; color: #7a8099; font-weight: 400; }
.oa-chrome-fallback a { color: #e8eaf2; text-decoration: none; }

/* ---------- Mon compte (my-account.html) ---------- */
main.oa-acc.plain { display: block; padding: 0; background: #050810; }
main.oa-acc.plain::before { display: none; }

.oma-wrap { color: #e8eaf2; min-height: 80vh; }
.oma-wrap h1, .oma-wrap h2, .oma-wrap h3, .oma-wrap p { margin: 0; }
.oma-header { padding: 2.5rem 2rem 0; max-width: 1280px; margin: 0 auto; }
.oma-header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.oma-greeting h1 { font-size: clamp(20px, 2.8vw, 28px); font-weight: 800; letter-spacing: -.025em; margin-bottom: .2rem; }
.oma-greeting h1 span { color: #2D7FF5; }
.oma-greeting p { font-size: 13.5px; color: #6b738f; }
.oma-user-info { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6b738f; }
.oma-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(45,127,245,.15); border: 1px solid rgba(45,127,245,.3);
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #2D7FF5; flex-shrink: 0;
}
.oma-banner { margin: 0 0 1.25rem; padding: .75rem 1rem; border-radius: 10px; font-size: 14px; }
.oma-banner.ok { color: #4ae896; background: rgba(74,232,150,.08); border: 1px solid rgba(74,232,150,.25); }
.oma-banner.err { color: #f2666b; background: rgba(242,102,107,.10); border: 1px solid rgba(242,102,107,.30); }
.oma-banner.info { color: #c8cedf; background: rgba(45,127,245,.08); border: 1px solid rgba(45,127,245,.3); }
.oma-card-body.flush { padding: 0; }

.oma-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.07); overflow-x: auto; scrollbar-width: none; }
.oma-tabs::-webkit-scrollbar { display: none; }
.oma-tab {
    display: flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; color: #4b5480;
    padding: .75rem 1.25rem; background: none; border: 0; border-bottom: 2px solid transparent;
    white-space: nowrap; cursor: pointer; text-decoration: none; transition: color .15s, border-color .15s;
}
.oma-tab:hover { color: #9aa0b8; }
.oma-tab.active { color: #2D7FF5; border-bottom-color: #2D7FF5; }
.oma-tab.danger { color: #7a8099; }
.oma-tab.danger:hover { color: #f87171; }

.oma-page { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.oma-panel { display: none; flex-direction: column; gap: 2.5rem; }
.oma-panel.active { display: flex; }
.oma-label { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #6b738f; margin-bottom: .85rem !important; }
.oma-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.oma-2col > div { display: flex; flex-direction: column; }
.oma-2col > div .oma-card { flex: 1; }
.oma-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; }
.oma-card-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; margin: 0; }
.oma-field { display: flex; flex-direction: column; gap: .35rem; }
.oma-field label { font-size: 11px; font-weight: 700; color: #6b738f; text-transform: uppercase; letter-spacing: .08em; }
.oma-field-opt { font-weight: 500; color: #4a5170; text-transform: none; letter-spacing: 0; }
.oma-wrap input[type="text"], .oma-wrap input[type="email"], .oma-wrap input[type="password"], .oma-wrap input[type="number"] {
    width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 8px; padding: 10px 14px;
    font: inherit; font-size: 13.5px; color: #e8eaf2; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.oma-wrap input::placeholder { color: #6b738f; }
.oma-wrap input:focus { border-color: rgba(45,127,245,.5); background: rgba(45,127,245,.04); box-shadow: 0 0 0 3px rgba(45,127,245,.1); }
.oma-wrap input:disabled { opacity: .6; cursor: not-allowed; }
.oma-form-end { display: flex; justify-content: flex-end; padding-top: .25rem; }
.oma-kv { display: flex; justify-content: space-between; gap: 1rem; font-size: 13.5px; }
.oma-kv span { color: #6b738f; }
.oma-kv strong { color: #c8cedf; font-weight: 600; overflow-wrap: anywhere; text-align: right; }

.oma-btn {
    display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 700;
    border-radius: 8px; padding: 9px 16px; cursor: pointer; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.oma-btn--primary { background: #2D7FF5; color: #fff; box-shadow: 0 0 22px rgba(45,127,245,.28); }
.oma-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(45,127,245,.5); }
.oma-btn--secondary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.11); color: #c8cedf; }
.oma-btn--secondary:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.oma-btn--ghost { background: transparent; border-color: rgba(45,127,245,.28); color: #2D7FF5; }
.oma-btn--ghost:hover { background: rgba(45,127,245,.08); border-color: rgba(45,127,245,.5); }
.oma-btn--sm { padding: 7px 13px; font-size: 12.5px; }
.oma-link { color: #2D7FF5; font-weight: 600; text-decoration: none; margin-left: .35rem; }
.oma-link:hover { text-decoration: underline; }
.oma-warn { color: #f0a13b !important; }

.oma-gt-card { position: relative; background: rgba(255,255,255,.03); border: 1px solid rgba(45,127,245,.28); border-radius: 14px; overflow: hidden; }
.oma-gt-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #2D7FF5, #5ba3ff); }
.oma-gt-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.oma-gt-head h3 { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #6b738f; }
.oma-gt-row { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; }
.oma-gt-row:last-child { border-bottom: none; }
.oma-gt-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; background: rgba(45,127,245,.1); border: 1px solid rgba(45,127,245,.2);
    display: flex; align-items: center; justify-content: center; color: #2D7FF5;
}
.oma-gt-info { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 160px; }
.oma-gt-name { font-size: 13px; font-weight: 700; }
.oma-gt-meta { font-size: 12px; color: #6b738f; }
.oma-gt-meta strong { color: #c8cedf; }
.oma-gt-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.oma-gt-badge--active { color: #4ae896; background: rgba(74,232,150,.1); border: 1px solid rgba(74,232,150,.25); }
.oma-gt-badge--off { color: #9aa0b8; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.oma-gt-badge--count { color: #a78bfa; background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.25); font-size: 13px; font-weight: 800; padding: 2px 10px; }
.oma-gt-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }

.oma-table-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; }
.oma-table-wrap { overflow-x: auto; }
.oma-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.oma-table thead th {
    padding: .7rem 1.25rem; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b738f;
    text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.015);
}
.oma-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s; }
.oma-table tbody tr:last-child { border-bottom: none; }
.oma-table tbody tr:hover { background: rgba(255,255,255,.02); }
.oma-table tbody td { padding: .85rem 1.25rem; font-size: 13px; color: #c8cedf; vertical-align: middle; }
.oma-td-date { font-size: 12.5px; color: #6b738f !important; white-space: nowrap; }
.oma-td-key { font-family: "Courier New", monospace; font-size: 11.5px; color: #7a8099 !important; letter-spacing: .05em; }
.oma-td-order { font-family: "Courier New", monospace; font-size: 12px; color: #6b738f !important; }
.oma-td-dash { color: #4a5170 !important; }
.oma-td-pos { color: #4ae896 !important; font-weight: 700; }
.oma-td-neg { color: #f87171 !important; font-weight: 700; }
.oma-td-note { display: block; font-size: 12px; color: #6b738f; margin-top: .2rem; }

/* Bloc Newsletter de l'onglet Account (TN-192) */
.oma-news { padding: 1.25rem 1.5rem; background: rgba(45,127,245,.04); border: 1px solid rgba(45,127,245,.14); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.oma-news h4 { font-size: 13.5px; font-weight: 700; color: #c8cedf; margin-bottom: .15rem; }
.oma-news p { font-size: 12.5px; color: #8a91ad; }
.oma-news form { display: flex; align-items: center; gap: .75rem; }
.oma-news-on { font-size: 12.5px; font-weight: 700; color: #4ae896; }

@media (max-width: 860px) {
    .oma-2col { grid-template-columns: minmax(0, 1fr); }
    .oma-gt-row { flex-direction: column; align-items: flex-start; }
    .oma-gt-actions { margin-left: 0; }
}
@media (max-width: 600px) {
    .oma-header, .oma-page { padding-left: 1rem; padding-right: 1rem; }
}
