/* =========================================================================
   BODEZIA — FORMULAIRE DE DEVIS + RESPONSIVE
   -------------------------------------------------------------------------
   Feuille chargée EN DERNIER dans le header : elle gagne dans la cascade
   sans qu'aucun de tes fichiers CSS existants soit modifié.
   Pour tout annuler : supprime la ligne <link> dans includes/header.php.

   Palette : aucune couleur de marque n'est redéfinie. Le violet, les
   dégradés et les couleurs de texte restent ceux de tes CSS. Les seules
   valeurs introduites ici sont deux gris de structure :
       #E4E6EF  bordures
       #F7F6FC  fond du séparateur de taux

   ATTENTION À LA CASCADE
   Ne jamais poser de max-width sur .container hors media query : ça casse
   la largeur Bootstrap sur grand écran. Les sections 2 à 8 sont toutes
   enfermées sous max-width: 991.98px.

   Sommaire
     0.  Formulaire de devis — composant           (toutes largeurs)
     1.  Hero desktop : alignement des colonnes    (>= 992px)
     2.  Garde anti-débordement horizontal         (< 992px)
     3.  En-tête                                   (< 992px)
     4.  Hero : suppression du centrage vertical   (< 992px)
     5.  Hero : typographie                        (< 992px puis < 576px)
     6.  Formulaire de devis : ajustements mobile  (< 992px puis < 576px)
     7.  Très petit mobile                         (<= 360px)
     8.  Paysage sur écran bas
     9.  Image de fond et accessibilité            (global, sans risque)
   ========================================================================= */


/* =========================================================================
   0. FORMULAIRE DE DEVIS — COMPOSANT (toutes largeurs)
   ========================================================================= */

/* --- Rythme vertical : échelle de 4 -------------------------------------
   6px  entre un label et son champ
   18px entre deux groupes
   Les éléments qui vont ensemble se lisent enfin comme un bloc.
   ----------------------------------------------------------------------- */

.money-transfer-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.money-transfer-card > * {
    margin-bottom: 0 !important;
}

.money-transfer-card .money-transfer-label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 6px;
    opacity: 0.72;
}

.money-transfer-card .money-transfer-field-message {
    margin-top: 6px !important;
    font-size: 12.5px;
    line-height: 1.35;
}


/* --- Bloc montants fusionné ---------------------------------------------
   Un seul cadre pour « vous envoyez / taux / le destinataire reçoit ».
   Le taux devient le séparateur entre les deux montants : il raconte
   l'opération au lieu de flotter au-dessus du formulaire.
   ----------------------------------------------------------------------- */

.money-transfer-card .mt-exchange {
    border: 1px solid #E4E6EF;
    border-radius: 14px;
    background: #fff;
    overflow: visible;
}

.money-transfer-card .mt-exchange-row {
    position: relative;
    padding: 12px 16px;
    margin: 0 !important;
    transition: background-color 0.15s ease;
}

/* Focus : c'est la LIGNE entière qui s'allume, pas le petit rectangle
   du champ. Le cadre du .form-control est neutralisé, le contour est
   porté par la ligne en inset (le bloc a overflow:hidden). */

.money-transfer-card .mt-exchange-row:has(.dropdown-toggle[aria-expanded="true"]),
.money-transfer-card .mt-exchange-row:focus-within {
    background: #FAFAFE;
    /* #7441d4 en dur : var(--bs-primary) résout vers le bleu Bootstrap
       sur ce thème, pas vers le violet de la charte. */
    box-shadow: inset 0 0 0 2px #7441d4;
    border-radius: 12px;
}

.money-transfer-card .mt-exchange .money-transfer-input > .form-control:focus,
.money-transfer-card .mt-exchange .money-transfer-input > .form-control:focus-visible,
.money-transfer-card .mt-exchange .money-transfer-input > .form-control:active,
.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle:focus,
.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.money-transfer-card .mt-exchange .money-transfer-label {
    margin-bottom: 2px;
    font-size: 13px;
}

/* La ligne devise + montant perd son cadre : c'est le bloc qui en porte un */
.money-transfer-card .mt-exchange .money-transfer-input {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.money-transfer-card .mt-exchange .money-transfer-input > .input-group-text {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* bootstrap-select recopie les classes du <select> sur le div qu'il
   génère : ce div hérite donc de form-control, et de son fond blanc.
   Invisible sur une ligne blanche, il apparaît en carré blanc dès que
   la ligne se colore au focus. */

.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select.show,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select:hover,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select:focus,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select:focus-within,
.money-transfer-card .mt-exchange .money-transfer-input > .input-group-text:focus-within,
.money-transfer-card .mt-exchange .money-transfer-input > .input-group-text:hover {
    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* Exception assumée à la règle « pas d'id dans ce fichier ».
   stylesheet.css:4696 pose :
       #form-send-tip-top .input-group-text { background-color:#fff !important }
   Un id + !important ne se bat qu'avec un sélecteur portant lui aussi
   l'id. Aucune chaîne de classes, si longue soit-elle, n'y parvient. */

#form-send-tip-top .mt-exchange .money-transfer-input > .input-group-text,
#form-send-tip-top .mt-exchange .money-transfer-input .bootstrap-select,
#form-send-tip-top .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle {
    background-color: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
}

/* Le montant : c'est l'élément central de la page, il doit dominer */
/* Le numéro à recharger réutilise la ligne du composant, mais 26px sur
   9 chiffres serait écrasant : on descend d'un cran. */

.money-transfer-card .mt-exchange .money-transfer-input > .form-control.bledTipTopPhone {
    font-size: 20px;
    letter-spacing: 0.01em;
}

/* Flèches natives du input[type=number] : inutiles pour un numéro */
.money-transfer-card .mt-exchange input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.money-transfer-card .mt-exchange input[type="number"]::-webkit-outer-spin-button,
.money-transfer-card .mt-exchange input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.money-transfer-card .mt-exchange .money-transfer-input > .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: right;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
}

/* Le sélecteur de devise passe au second plan */
.money-transfer-card .mt-exchange .bootstrap-select {
    width: auto !important;
    min-width: 0;
}

.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle,
.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle:hover,
.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle:focus,
.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle:active,
.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle.show,
.money-transfer-card .mt-exchange .bootstrap-select.show > .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0 !important;
    /* Les 20px de droite sont la place du chevron : ils doivent survivre
       au survol, sinon le fond se replie sur le code pays. */
    padding: 0 20px 0 0 !important;
    border: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* Chevron dessiné ici, et non par le thème : celui-ci ne le fournit que
   pour merge-select-input-send et -receive, jamais pour -tel. Les trois
   sélecteurs sont donc identiques d'une page à l'autre. */

/* Le caret du thème n'est pas un content : impossible de le remplacer.
   On le supprime, et le chevron devient un fond du bouton.

   La liste d'états ci-dessous n'est pas de la paranoïa : le thème pose
   des règles !important sur des combinaisons comme :focus:active, et
   seule une règle au moins aussi spécifique peut les couvrir. D'où
   .money-transfer-input dans la chaîne, et l'énumération complète. */

.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle::after,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle::before,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle .bs-caret {
    display: none !important;
}

.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle:hover,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle:focus,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle:active,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle:focus:active,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle:focus-visible,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle.show,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle[aria-expanded] {
    padding: 0 20px 0 0 !important;

    border: 0 !important;
    box-shadow: none !important;

    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235c6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 13px !important;
    background-origin: padding-box !important;

    transition: none !important;
}

.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle.show,
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle[aria-expanded="true"],
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle:focus[aria-expanded="true"],
.money-transfer-card .mt-exchange .money-transfer-input .bootstrap-select > .dropdown-toggle:active[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235c6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10l4-4 4 4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 13px !important;

    transition: none !important;
}

/* Séparateur de taux */
.money-transfer-card .mt-exchange .money-transfer-rate {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 !important;
    padding: 9px 16px !important;
    border-top: 1px solid #E4E6EF;
    border-bottom: 1px solid #E4E6EF;
    border-radius: 0 !important;
    background: #F7F6FC !important;
}

.money-transfer-card .mt-exchange .money-transfer-rate-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    font-size: 12.5px;
    line-height: 1.2;
    opacity: 0.75;
}

.money-transfer-card .mt-exchange .money-transfer-rate-value {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 5px;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.2;
}

.money-transfer-card .mt-exchange .money-transfer-rate-target {
    font-size: 13px;
    font-weight: 600;
}


/* --- Listes déroulantes mode / moyen -------------------------------------
   Le chevron touchait le texte : on lui réserve sa place et le texte
   trop long se coupe proprement.
   ----------------------------------------------------------------------- */

.money-transfer-card .money-transfer-method .bootstrap-select {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

.money-transfer-card .money-transfer-method .bootstrap-select > .dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 34px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.money-transfer-card .money-transfer-method .filter-option-inner-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Le menu se cale exactement sur la largeur du champ.
   Ces deux selects n'ont plus data-container="body" dans index.php :
   le menu est un enfant du champ, il ne peut plus se décaler. */

.money-transfer-card .money-transfer-method {
    position: relative;
}

.money-transfer-card .money-transfer-method .bootstrap-select .dropdown-menu {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin-top: 4px;
    padding: 6px;
    border: 1px solid #E4E6EF;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.money-transfer-card .money-transfer-method .bootstrap-select .dropdown-menu .inner {
    max-height: min(320px, 50vh) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.money-transfer-card .money-transfer-method .dropdown-menu li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
}

/* --- Menu des devises ----------------------------------------------------
   Les deux selects de devise ne sont plus injectés dans <body> : le menu
   est de nouveau un enfant de la ligne, donc il peut prendre exactement
   sa largeur. .bootstrap-select passe en position statique pour que le
   menu s'ancre sur .mt-exchange-row et non sur le petit bouton devise.
   ------------------------------------------------------------------------ */

.money-transfer-card .mt-exchange .bootstrap-select,
.money-transfer-card .mt-exchange .money-transfer-input,
.money-transfer-card .mt-exchange .money-transfer-input > .input-group-text {
    position: static !important;
}

.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-menu {
    position: absolute !important;
    top: calc(100% - 6px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 6px;
    transform: none !important;
    border: 1px solid #E4E6EF;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 1060;
}

.money-transfer-card .mt-exchange .bootstrap-select > .dropdown-menu .inner {
    max-height: min(320px, 50vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.money-transfer-card .mt-exchange .bs-searchbox {
    padding: 4px 4px 8px;
}

.money-transfer-card .mt-exchange .bs-searchbox .form-control {
    min-height: 44px;
    font-size: 16px;
    border: 1px solid #E4E6EF !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 8px 12px !important;
    text-align: left;
    font-weight: 400;
}

/* Même couleur de focus que la ligne du dessus.
   Les variantes préfixées par un id sont nécessaires : stylesheet.css
   habille ce champ via #form-send-money et #form-send-tip-top, et un id
   ne se bat qu'avec un id. */

.money-transfer-card .mt-exchange .bs-searchbox .form-control:focus,
.money-transfer-card .mt-exchange .bs-searchbox .form-control:focus-visible,
#form-send-money .mt-exchange .bs-searchbox .form-control:focus,
#form-send-money .mt-exchange .bs-searchbox .form-control:focus-visible,
#form-send-tip-top .mt-exchange .bs-searchbox .form-control:focus,
#form-send-tip-top .mt-exchange .bs-searchbox .form-control:focus-visible {
    border: 1px solid #7441d4 !important;
    box-shadow: 0 0 0 1px #7441d4 !important;
    outline: 0 !important;
}

#form-send-money .mt-exchange .bs-searchbox .form-control,
#form-send-tip-top .mt-exchange .bs-searchbox .form-control {
    min-height: 44px;
    padding: 8px 12px !important;
    border: 1px solid #E4E6EF !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
}


/* --- Alignement drapeau / code / pays dans TOUS les menus -----------------
   Le drapeau passait au-dessus du code parce que l'option n'était pas en
   flex. On force la ligne : drapeau, code, puis nom du pays à droite.
   ------------------------------------------------------------------------ */

.bootstrap-select .dropdown-menu li,
.bs-container .dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Le thème insère un &nbsp; entre le drapeau et le code. C'est un nœud de
   texte brut : en flex il devient un item à part entière, et aucun
   sélecteur ne peut l'atteindre. font-size:0 sur l'option l'écrase, les
   enfants récupèrent leur taille juste en dessous. */

.bootstrap-select .dropdown-menu .dropdown-item,
.bs-container .dropdown-menu .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0 !important;
    line-height: 1.3;
    white-space: normal;
}

/* Intitulé d'optgroup (« Pays les plus courants ») */
.bootstrap-select .dropdown-menu .dropdown-header,
.bs-container .dropdown-menu .dropdown-header {
    padding: 8px 10px 4px;

    font-size: 12px;
    line-height: 1.2;
}

.bootstrap-select .dropdown-menu .dropdown-item > [class*="fi-"],
.bootstrap-select .dropdown-menu .dropdown-item > .icon-lg,
.bs-container .dropdown-menu .dropdown-item > [class*="fi-"],
.bs-container .dropdown-menu .dropdown-item > .icon-lg {
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    margin-right: 0 !important;

    line-height: 1;

    background-size: cover;
    background-position: center;
}

.bootstrap-select .dropdown-menu .dropdown-item > .text,
.bs-container .dropdown-menu .dropdown-item > .text {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.3;
}

/* Le thème pousse le nom de pays à droite avec float:right !important,
   plus 20px de padding-right et 0.5em de padding-left venus de
   bootstrap-select. Il faut répondre sur les mêmes propriétés :
   la spécificité seule ne suffit pas face à un !important. */

.bootstrap-select .dropdown-menu .dropdown-item > .text > small,
.bs-container .dropdown-menu .dropdown-item > .text > small {
    float: none !important;

    /* L'espace est porté par la marge et non par le gap du conteneur :
       « XOF » est un nœud de texte anonyme, et le thème redéfinit
       l'affichage de span.text — le gap flex n'y survit pas. */
    margin: 0 0 0 8px !important;
    padding: 0 !important;

    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12.5px !important;
    font-weight: 500;
    letter-spacing: 0;

    text-align: left;
}

/* Aucune couleur imposée sur les états surlignés : le nom de pays hérite
   de celle du code. Les deux formulaires rendent .selected différemment
   — fond lilas clair et texte violet sur l'un, fond violet plein et
   texte blanc sur l'autre — donc toute valeur fixe est illisible sur
   l'un des deux. L'héritage suit le fond, quel qu'il soit. */

.bootstrap-select .dropdown-menu .dropdown-item.selected > .text > small,
.bootstrap-select .dropdown-menu .dropdown-item.active > .text > small,
.bootstrap-select .dropdown-menu .dropdown-item:hover > .text > small,
.bootstrap-select .dropdown-menu .dropdown-item:focus > .text > small,
.bs-container .dropdown-menu .dropdown-item.selected > .text > small,
.bs-container .dropdown-menu .dropdown-item.active > .text > small,
.bs-container .dropdown-menu .dropdown-item:hover > .text > small,
.bs-container .dropdown-menu .dropdown-item:focus > .text > small {
    color: inherit !important;
    opacity: 0.85;
}


/* Le select du volet recharge mobile reste injecté dans <body>
   (.bs-container est l'enveloppe créée par bootstrap-select). */

.bs-container .dropdown-menu {
    max-width: calc(100vw - 24px);
    padding: 6px;
    border: 1px solid #E4E6EF;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.bs-container .dropdown-menu .inner {
    max-height: min(320px, 50vh) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bs-container .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
}

/* Bootstrap-select calait la largeur sur le petit bouton devise : le menu
   sortait rogné, avec une barre de défilement horizontale. On lui donne
   une largeur lisible, bornée par l'écran. */

.bs-container {
    width: auto !important;
}

.bs-container .dropdown-menu {
    width: min(340px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
}

.bs-container .dropdown-menu .inner {
    overflow-x: hidden !important;
}

.bs-container .dropdown-menu li a .text {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.bs-container .dropdown-menu li a small {
    margin-left: auto;
    padding-left: 8px;
    text-align: right;
}

.bs-container .bs-searchbox {
    padding: 4px 4px 8px;
}

.bs-container .bs-searchbox .form-control {
    min-height: 44px;
    font-size: 16px;
}


/* --- Récapitulatif et total ---------------------------------------------
   Les grosses boîtes grises deviennent des lignes. Le total tranche
   nettement : c'est la ligne qui déclenche la décision.
   ----------------------------------------------------------------------- */

.money-transfer-card .mt-recap {
    border-top: 1px solid #E4E6EF;
    padding-top: 4px;
}

.money-transfer-card .money-transfer-summary {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.money-transfer-card .money-transfer-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #EEF0F6 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.money-transfer-card .money-transfer-summary-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.money-transfer-card .money-transfer-summary-title {
    font-size: 14px;
    line-height: 1.3;
}

.money-transfer-card .money-transfer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 2px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.money-transfer-card .money-transfer-total-label {
    font-size: 15px;
    font-weight: 600;
}

.money-transfer-card .money-transfer-total-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

/* États vides : un tiret au lieu d'une boîte vide qui ressemble à un bug */
.money-transfer-card #amountFee:empty::after,
.money-transfer-card #amountToSend:empty::after {
    content: "—";
    opacity: 0.4;
    font-weight: 500;
}


/* --- Bouton ------------------------------------------------------------- */

.money-transfer-card .money-transfer-submit {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    font-weight: 600;
}


/* =========================================================================
   1. HERO DESKTOP — alignement des colonnes  (>= 992px)
   Le texte était calé en haut face à une carte de 900px : ~400px d'image
   vide dessous. La ligne suivante centre les deux colonnes entre elles.
   Supprime ce bloc si tu préfères le texte en haut.
   ========================================================================= */

@media (min-width: 992px) {

    .home-transfer-hero .row {
        align-items: center;
    }
}


/* =========================================================================
   2. GARDE ANTI-DÉBORDEMENT HORIZONTAL  (< 992px)
   ========================================================================= */

@media (max-width: 991.98px) {

    html,
    body#bledPay {
        max-width: 100%;
        overflow-x: hidden;
    }

    #header img,
    .home-transfer-hero img,
    .home-transfer-hero svg {
        max-width: 100%;
        height: auto;
    }

    .money-transfer-card *,
    #form-send-tip-top * {
        min-width: 0;
    }

    #header .dropdown-menu,
    .bootstrap-select .dropdown-menu,
    body > .bootstrap-select .dropdown-menu {
        max-width: calc(100vw - 24px);
    }
}


/* =========================================================================
   3. EN-TÊTE  (< 992px) — 67px vers 56px de hauteur
   ========================================================================= */

@media (max-width: 991.98px) {

    #header .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #header .header-row {
        min-height: 56px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    #header .header-column {
        min-width: 0;
    }

    #header .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    #header .logo-img {
        height: 30px;
        width: auto;
    }

    #header .navbar-toggler {
        display: inline-flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .login-signup .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 14px;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }

    .login-signup .navbar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #header .dropdown.profile .dropdown-menu,
    #header .dropdown.notifications .dropdown-menu {
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 24px));
    }

    #header .dropdown-item {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    #header-nav.navbar-collapse {
        width: 100%;
        max-width: 100%;
    }

    #header-nav .navbar-nav > li > a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}


/* =========================================================================
   4. HERO — SUPPRESSION DU CENTRAGE VERTICAL  (< 992px)
   Le vide au-dessus du badge n'est pas un padding : c'est le my-auto du
   conteneur combiné au d-flex qui centre le contenu dans une zone plus
   haute que lui.
   ========================================================================= */

@media (max-width: 991.98px) {

    .hero-wrap {
        min-height: auto;
    }

    .hero-wrap .hero-content.home-transfer-hero {
        display: block;
        min-height: auto;
        padding: 24px 0 32px !important;
    }

    .home-transfer-hero > .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-transfer-hero .row {
        --bs-gutter-x: 0;
        margin-bottom: 0 !important;
    }

    .home-transfer-hero .row > [class*="col-"].pb-4 {
        padding-bottom: 20px !important;
    }
}


/* =========================================================================
   5. HERO — TYPOGRAPHIE
   ========================================================================= */

@media (max-width: 991.98px) {

    .home-hero-copy {
        max-width: 34rem;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-eyebrow {
        display: inline-block;
        padding: 7px 16px;
        font-size: 12px;
        line-height: 1;
        letter-spacing: 0.08em;
        margin-bottom: 18px;
    }

    .home-hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 14px;
        text-wrap: balance;
    }

    .home-hero-description {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .home-hero-trust {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px 16px;
    }

    .home-hero-trust > span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .home-hero-trust > span > i {
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {

    .hero-wrap .hero-content.home-transfer-hero {
        padding: 24px 0 28px !important;
    }

    .home-hero-eyebrow {
        padding: 6px 14px;
        font-size: 11px;
        margin-bottom: 16px;
    }

    /* 38px sur 3 lignes -> 28px sur 2 lignes.
       Le pays revient dans le flux du titre. */
    .home-hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .home-hero-country-line {
        display: inline;
    }

    .home-hero-description {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    .home-hero-trust {
        gap: 4px 14px;
    }

    .home-hero-trust > span {
        font-size: 12.5px;
    }
}


/* =========================================================================
   6. FORMULAIRE DE DEVIS — AJUSTEMENTS MOBILE
   ========================================================================= */

@media (max-width: 991.98px) {

    #myTabContent {
        padding: 18px !important;
    }

    .money-transfer-card {
        gap: 16px;
    }

    /* Confort tactile sur les listes et le champ téléphone */
    .money-transfer-card .money-transfer-method .bootstrap-select > .dropdown-toggle {
        min-height: 48px;
    }

    .bootstrap-select .dropdown-menu li a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

}

@media (max-width: 575.98px) {

    #myTabContent {
        padding: 16px !important;
    }

    .money-transfer-card .mt-exchange-row {
        padding: 10px 14px;
    }

    .money-transfer-card .mt-exchange .money-transfer-input > .form-control {
        font-size: 22px;
    }

    .money-transfer-card .mt-exchange .money-transfer-input > .form-control.bledTipTopPhone {
        font-size: 18px;
    }

    .money-transfer-card .mt-exchange .bootstrap-select > .dropdown-toggle {
        font-size: 16px;
    }

    .money-transfer-card .mt-exchange .money-transfer-rate {
        padding: 8px 14px !important;
    }

    .money-transfer-card .money-transfer-total-value {
        font-size: 20px;
    }

    /* 16px minimum = pas de zoom automatique sur iOS au focus */
    .money-transfer-card .money-transfer-method .dropdown-toggle,
    .money-transfer-card select {
        font-size: 16px;
    }
}


/* --- Menus déroulants sur mobile ----------------------------------------
   « ÉMIRATS ARABES UNIS » ne tient pas à côté du drapeau et du code sur
   360px : le nom passe sous le code au lieu d'être tronqué au milieu.
   ------------------------------------------------------------------------ */

@media (max-width: 575.98px) {

    .bootstrap-select .dropdown-menu .dropdown-item,
    .bs-container .dropdown-menu .dropdown-item {
        align-items: center;
        gap: 6px;
        min-height: 44px;
        padding: 6px 10px;
    }

    .bootstrap-select .dropdown-menu .dropdown-item > .text,
    .bs-container .dropdown-menu .dropdown-item > .text {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        line-height: 1.25;
    }

    /* L'empilement prévu ici ne se produit pas : le thème impose son
       display sur span.text, donc flex-direction reste sans effet et le
       nom de pays suit le code sur la même ligne. On garde donc la même
       marge qu'en desktop, et on laisse le nom passer à la ligne plutôt
       que d'être coupé par une ellipse sur 360px. */

    .bootstrap-select .dropdown-menu .dropdown-item > .text > small,
    .bs-container .dropdown-menu .dropdown-item > .text > small {
        margin: 0 0 0 8px !important;
        max-width: 100%;
        overflow: visible;
        white-space: normal !important;
        font-size: 12px !important;
    }
}


/* =========================================================================
   7. TRÈS PETIT MOBILE  (<= 360px : Galaxy S8, iPhone SE)
   ========================================================================= */

@media (max-width: 360px) {

    #header .container,
    .home-transfer-hero > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #header .header-row {
        gap: 6px;
    }

    #header .logo-img {
        height: 28px;
    }

    .login-signup .btn-primary {
        padding: 0 12px;
        font-size: 12px;
    }

    .login-signup .navbar-nav > li.ms-sm-3 {
        margin-left: 0 !important;
    }

    .home-hero-title {
        font-size: 26px;
    }

    .home-hero-trust > span {
        font-size: 12px;
    }

    #myTabContent {
        padding: 14px !important;
    }

    .money-transfer-card .mt-exchange-row {
        padding: 10px 12px;
    }

    .money-transfer-card .mt-exchange .money-transfer-input > .form-control {
        font-size: 20px;
    }
}


/* =========================================================================
   8. PAYSAGE SUR ÉCRAN BAS (téléphone couché)
   ========================================================================= */

@media (max-width: 991.98px) and (max-height: 520px) and (orientation: landscape) {

    .hero-wrap .hero-content.home-transfer-hero {
        padding: 16px 0 20px !important;
    }

    .home-hero-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .home-hero-description {
        margin-bottom: 10px;
    }
}


/* =========================================================================
   9. GLOBAL — image de fond et accessibilité
   ========================================================================= */

.hero-bg {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.money-transfer-card .form-control:focus-visible,
.money-transfer-card .dropdown-toggle:focus-visible,
.money-transfer-submit:focus-visible,
.login-signup .btn-primary:focus-visible,
#header .navbar-toggler:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .hero-wrap *,
    .money-transfer-card * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}