/* ==========================================================================
   Correctifs : les CSS d'origine reposent sur du CSS-in-JS (styled-components)
   dont les feuilles sont injectées à l'exécution. On rétablit ici l'essentiel
   pour que la maquette statique s'affiche comme le vrai site.
   ========================================================================== */

:root {
    --stable-bg: #ffffff;
    --contrast-bg: #f5f5f5;
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    /* Le CSS d'origine fige html en overflow:hidden ; on rétablit le défilement. */
    overflow-x: hidden;
    overflow-y: auto;
    background: #deddd9;
}

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

body {
    margin: 0;
    font-family: "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    background: #fff;
    /* Le site est prévu pour le mobile : colonne étroite centrée,
       même sur un grand écran. */
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.16);
}

img {
    max-width: 100%;
    display: block;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin: 0;
}

button {
    font: inherit;
    cursor: pointer;
}

/* ---- Illustration de la carte (écran identifiant) ---- */
._image_13bm7_10 {
    display: block;
    width: 224px;
    height: 140px;
    margin: 1.25rem auto;
}

/* ---- Mise en page du formulaire ---- */
._container_13bm7_1,
._container_1s3pj_5 {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

._titleContainer_13bm7_16 {
    text-align: center;
    margin-bottom: 1rem;
}

._subTitle_13bm7_32 {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #4a4a4a;
    text-align: center;
}

._signInContainer_13bm7_42 {
    margin-top: 0.5rem;
}

/* ---- Boutons ---- */
._button_97edc65 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease;
}

._button_97edc65:hover:not(:disabled) {
    filter: brightness(0.95);
}

._button_97edc65[data-variant="filled"] {
    color: #fff;
    background: #ff5f00;
    border-color: #ff5f00;
}

._button_97edc65[data-variant="filled"]:disabled {
    opacity: 0.78;
    cursor: not-allowed;
}

._button_97edc65[data-variant="ghost"] .icon {
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

._notCustomerButton_17k6b_92 .icon {
    display: none;
}

._button_97edc65[data-variant="outline"] {
    color: #000;
    background: #fff;
    border-color: #c9c9c9;
    width: auto;
}

._button_97edc65[data-variant="ghost"] {
    color: #000;
    background: transparent;
    border-color: transparent;
    width: auto;
}

._button_97edc65[data-size="lg"] {
    margin-top: 1rem;
}

.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

/* ---- Options secondaires de l'écran login ---- */
._additionalOptions_13bm7_51 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sc-eFejbY label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.sc-bkkgYE,
.sc-fotPuT,
.sc-iNGDOz {
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #000;
}

._notCustomer_17k6b_70 {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e3e3e3;
    text-align: center;
}

._notCustomerTitle_17k6b_87 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

._notCustomerButton_17k6b_92 {
    width: auto;
}

/* ---- Bannière info ---- */
._banner_ac9f04b {
    display: block;
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: #f2f4f7;
    font-size: 0.85rem;
    text-align: left;
}

._banner_ac9f04b ._icon_60b75dc {
    width: 22px;
    height: 22px;
    display: block;
    margin-bottom: 0.4rem;
    color: #2563eb;
    fill: currentColor;
    background: #dbe6fb;
    border-radius: 4px;
    padding: 2px;
}

._bannerFirstLine_fd6qs_1 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ---- Pied de page ---- */
._additionalOptionsContainer_17k6b_62 {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* ---- En-tête ---- */
._header_17k6b_15 {
    border-bottom: 1px solid #e3e3e3;
    padding: 0.5rem 1rem;
}

._headerContainer_17k6b_24 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
}

._brandNameContainer_17k6b_1 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

._logoContainer_17k6b_39 {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    color: #000;
    padding: 0.15rem 0;
}

._logoContainer_17k6b_39 svg:first-child {
    margin-top: -0.35rem;
}

._separator_17k6b_56 {
    width: 1px;
    height: 22px;
    background: #d4d4d4;
}

._customerSpace_17k6b_9 {
    font-size: 0.95rem;
    font-weight: 600;
}

._main_17k6b_100 {
    padding: 2rem 1rem 3rem;
}

._content_17k6b_96 {
    max-width: 640px;
    margin: 0 auto;
}

._skipLinkContainer_f39gn_1 a {
    position: absolute;
    left: -9999px;
}

._skipLinkContainer_f39gn_1 a:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    padding: 0.5rem;
    background: #fff;
}

@media (max-width: 480px) {
    ._main_17k6b_100 {
        padding: 1.25rem 0.75rem 2rem;
    }

    ._image_13bm7_10 {
        max-width: 280px;
    }
}

/* ---- Formulaire email + mot de passe ---- */
.sc-efQVjI {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

._field {
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    background: #fff;
}

._field:focus-within {
    border-color: #ff5f00;
    box-shadow: 0 0 0 2px rgba(255, 95, 0, 0.18);
}

._field .sc-jcFiBM {
    display: block;
    font-size: 0.7rem;
    color: #5a5a5a;
    letter-spacing: 0.02em;
}

._field .sc-cidDfp {
    display: block;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0.3rem 0;
    font-family: inherit;
    font-size: 1.05rem;
    background: transparent;
    color: #000;
}

._passwordRow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

._eye {
    flex: 0 0 auto;
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    color: #3c3c3c;
    cursor: pointer;
}

._formError {
    font-size: 0.85rem;
    color: #c62828;
}

._formError[hidden] {
    display: none;
}

/* ---- Indicateur de chargement du bouton ---- */
#submitLabel[hidden],
._loader[hidden] {
    display: none;
}

._loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: _spin 0.7s linear infinite;
}

@keyframes _spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    ._loader { animation-duration: 1.6s; }
}

/* ==========================================================================
   Espace client (après connexion)
   ========================================================================== */

._page {
    display: flex;
    flex-direction: column;
    background: #f7f7f5;
    min-height: 100vh;
}

._page > ._main {
    flex: 0 0 auto;
    padding-bottom: 1.5rem;
}

._page > ._footer {
    margin-top: 0;
}

._ops ._op:last-child {
    margin-bottom: 0;
}

._main {
    padding: 0 1rem 1rem;
}

._mainWide {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

._tabBar {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    border-bottom: 1px solid #e3e3e3;
    margin: 0 -1rem 1.5rem;
    padding: 0 1rem;
}

._navLink {
    padding: 0.6rem 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a4a4a;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

._navLink:hover {
    color: #ff5f00;
}

._navLinkActive {
    color: #13393b;
    border-bottom-color: #ff5f00;
}

._pageTitle {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: #13393b;
}

._sectionTitle {
    font-size: 1.05rem;
    margin: 2rem 0 0.85rem;
    color: #13393b;
}

._notice {
    margin-bottom: 1.25rem;
    padding: 0.7rem 0.9rem;
    border-left: 3px solid #ff5f00;
    background: #fff;
    font-size: 0.9rem;
}

._card {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1.15rem;
    margin-bottom: 0.9rem;
}

._soldeCard {
    border-color: #13393b;
}

._cardLabel {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6b6b;
}

._solde {
    font-size: 1.9rem;
    font-weight: 700;
    color: #13393b;
    margin-top: 0.3rem;
}

._soldeSmall {
    font-size: 1.25rem;
    font-weight: 700;
    color: #13393b;
    margin-top: 0.3rem;
}

._cardMeta {
    font-size: 0.8rem;
    color: #7a7a7a;
    margin-top: 0.35rem;
}

._ops {
    list-style: none;
    margin: 0;
    padding: 0;
}

._op {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
}

._op small {
    color: #7a7a7a;
    font-size: 0.8rem;
}

._opCredit {
    color: #1c7c54;
    white-space: nowrap;
}

._opDebit {
    color: #ff5f00;
    white-space: nowrap;
}

._placeholder {
    color: #7a7a7a;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* ---- Identité connectée dans l'en-tête ---- */
._userBox {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

._userName {
    font-weight: 600;
    font-size: 0.95rem;
    color: #13393b;
    white-space: nowrap;
}

._logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    color: #13393b;
}

._logout:hover {
    border-color: #ff5f00;
    color: #ff5f00;
}

/* ---- Bandeau de blocage ---- */
._bloque {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    background: #13393b;
    color: #fff;
}

._bloqueIcon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #ff5f00;
}

._bloqueTitre {
    font-weight: 700;
    font-size: 1.05rem;
}

._bloqueTexte {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    opacity: 0.9;
}

._bloqueMotif {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 2px solid #ff5f00;
    font-size: 0.85rem;
    font-weight: 600;
}

._bloqueMotif span {
    margin-right: 0.6rem;
    text-transform: uppercase;
    color: #ff5f00;
    letter-spacing: 0.04em;
}

/* ---- Bandeaux images ---- */
._bandeau {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

._bandeauPc {
    display: block;
    width: 100%;
    height: auto;
}

._bandeauMobile {
    display: none;
    width: 100%;
    height: auto;
}

/* ---- Pied de page ---- */
._footer {
    margin-top: 3rem;
    font-size: 0.82rem;
}

._footerBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 2rem;
    background: #1c1c1c;
    color: #fff;
}

._footerShortcuts {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

._footerShortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

._footerShortcut:hover {
    opacity: 0.78;
}

._footerShortcut svg {
    width: 24px;
    height: 24px;
    flex: none;
}

._footerShortcutLink {
    font-weight: 700;
}

._footerSocial {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}

._footerSocialLink {
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

._footerSocialLink:hover {
    opacity: 1;
}

._footerSocialLink svg {
    width: 22px;
    height: 22px;
    display: block;
}

._footerLegal {
    padding: 1.5rem 1rem 2rem;
    background: #f7f7f5;
    text-align: center;
}

._footerLegalInner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0;
    max-width: 960px;
    margin: 0 auto;
}

._footerLegalInner a {
    padding: 0 0.85rem;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.8rem;
    border-right: 1px solid #cfcfcf;
    line-height: 1.35;
}

._footerLegalInner a:last-child {
    border-right: 0;
}

._footerLegalInner a:hover {
    color: #ff5f00;
    text-decoration: underline;
}

._footerCopy {
    margin-top: 0.9rem;
    color: #8a8a8a;
    font-size: 0.75rem;
}

/* ---- Formulaire de virement ---- */
._form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

._form ._field {
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    background: #fff;
}

._form ._field:focus-within {
    border-color: #ff5f00;
    box-shadow: 0 0 0 2px rgba(255, 95, 0, 0.18);
}

._form .sc-cidDfp {
    display: block;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0.3rem 0;
    font-family: inherit;
    font-size: 1.05rem;
    background: transparent;
}

._form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    ._bandeauPc { display: none; }
    ._bandeauMobile { display: block; }
    ._userName { display: none; }
    ._bloque { flex-direction: row; }
}

/* ---- Réglages mobile appliqués en permanence ----
   Le site est une maquette mobile : on ne veut pas du rendu large,
   même dans une grande fenêtre. */
._userName { display: none; }

._tabBar {
    gap: 1.4rem;
}

._footerBar {
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding: 1.35rem 1.25rem;
}

._footerShortcuts {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

._footerSocial {
    justify-content: center;
    gap: 1.6rem;
}

._footerLegalInner {
    flex-direction: column;
    gap: 0.55rem;
}

._footerLegalInner a {
    border-right: 0;
    padding: 0;
    text-align: center;
}

/* ---- Espace client : pied de page compact ---- */
._page > ._main {
    padding-bottom: 1.5rem;
}

._page > ._footer {
    margin-top: 0;
}

._page > ._footerBar {
    padding-top: 1.25rem;
    padding-bottom: 1.35rem;
}

._page > ._footerLegal {
    padding-top: 1.1rem;
    padding-bottom: 1.35rem;
}

._page > ._footerLegal ._footerCopy {
    margin-top: 0.7rem;
}

/* La page Virement garde une respiration sous le bouton avant le footer. */
._page > ._mainVirement {
    padding-bottom: 4rem;
}

/* ---- Superposition de traitement du virement ---- */
._overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(19, 57, 59, 0.55);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

._overlay[hidden] {
    display: none;
}

._overlayBox {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.75rem;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

._overlayLogoWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #ff5f00;
}

._overlayLogoWrap._overlayLogoBattement {
    animation: _battre 1s ease-in-out infinite;
}

._overlayLogoBadge {
    width: 46px;
    height: 46px;
    flex: none;
}

._overlayLogoWord {
    width: 132px;
    height: 40px;
    flex: none;
}

._overlayLogoRouge {
    color: #d32f2f;
}

@keyframes _battre {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.14); }
}

._overlayTitreEchec {
    margin-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #d32f2f;
}

._overlayText {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    color: #333;
}

._overlayHint {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: #7a7a7a;
}

._overlayBtn {
    width: 100%;
    margin-top: 1.4rem;
}

@media (prefers-reduced-motion: reduce) {
    ._overlayLogoBattement { animation-duration: 2s; }
}
