/* ==========================================================================
   Tunnel de paiement mobile money — styles propres à pay/index.php
   Complète css/connexion.css sans le modifier.
   ========================================================================== */

/* --- Panneau gauche : dégradé plutôt qu'une image absente ---------------- */
.registration-image { display: none; }

.image-section {
    background: linear-gradient(160deg, #1e90ff 0%, #0d6ee0 55%, #0a4fae 100%);
    min-height: 540px;
}

.image-overlay { background-color: transparent; }
.image-overlay h1 img { max-width: 210px; height: auto; }
.image-overlay p { opacity: .92; max-width: 300px; line-height: 1.5; }

/* Logos des moyens acceptés, en bas du panneau gauche */
.logos-moyens { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.logos-moyens img { height: 30px; width: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.logos-moyens i { font-size: 30px; line-height: 1; }

/* --- Choix de l'opérateur : cartes radio avec logo ----------------------- */
.op-legende {
    font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
    color: #7189a5; font-weight: 600; margin-bottom: 9px;
}

.op-choice { display: flex; gap: 10px; margin-bottom: 18px; }
.op-card { flex: 1; position: relative; }
.op-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.op-card label {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 14px 8px; border: 2px solid #e7ecf2; border-radius: 12px;
    background: #fff; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}

.op-card label:hover { border-color: #b9d6ff; background: #fbfdff; }
.op-card label:active { transform: scale(.985); }
.op-card input:focus-visible + label { border-color: #1e90ff; box-shadow: 0 0 0 3px rgba(30, 144, 255, .25); }

.op-card input:checked + label {
    border-color: #1e90ff; background: #f5faff;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, .13);
}

/* Le logo lui-même : SVG à taille fixe, ou pastille de repli */
.op-logo { width: 78px; height: 42px; display: block; }
.op-logo img { width: 100%; height: 100%; display: block; }

.op-logo-repli {
    width: 100%; height: 100%; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

/* Le logo de l'opérateur non retenu s'efface légèrement */
.op-card input:not(:checked) + label .op-logo { opacity: .58; filter: saturate(.75); transition: opacity .15s, filter .15s; }
.op-card label:hover .op-logo { opacity: 1; filter: none; }

.op-name { font-size: 12px; color: #5d6e84; text-align: center; line-height: 1.2; white-space: nowrap; }
.op-card input:checked + label .op-name { color: #0b63d6; font-weight: 600; }

.op-check {
    position: absolute; top: 8px; right: 10px; color: #1e90ff; font-size: 14px;
    opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s;
}

.op-card input:checked + label .op-check { opacity: 1; transform: scale(1); }

/* --- Paiement par carte -------------------------------------------------- */
.carte-cards { display: flex; justify-content: center; gap: 14px; margin: 6px 0 16px; }
.carte-cards i { font-size: 38px; color: #4a5f78; }

.carte-note {
    font-size: 12.5px; color: #6b7c93; line-height: 1.5;
    background: #f7fafd; border: 1px solid #e4ecf4; border-radius: 10px;
    padding: 11px 13px; margin-bottom: 18px;
}

.carte-note i { color: #1a8c46; margin-right: 5px; }
.carte-note strong { color: #40536b; }

.pay-secure {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 11.5px; color: #8fa0b4; margin-top: 13px;
}

/* --- Message d'état sous le champ --------------------------------------- */
.hint { font-size: 12.5px; margin: -8px 2px 14px; min-height: 17px; line-height: 1.35; }
.hint.ok { color: #1a8c46; }
.hint.ko { color: #d64550; }
.hint.info { color: #7189a5; }

/* --- Récapitulatif de la vérification ----------------------------------- */
.recap {
    display: none; border: 1px solid #e2e9f1; border-radius: 12px;
    padding: 13px 15px; margin-bottom: 18px; background: #fbfcfe;
}

.recap.show { display: block; animation: recap-in .22s ease-out; }

@keyframes recap-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

.recap-line {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 12.5px; padding: 5px 0; color: #6b7c93;
}

.recap-line span:last-child { color: #33465c; font-weight: 600; text-align: right; }

.recap-line.total {
    border-top: 1px solid #e2e9f1; margin-top: 6px; padding-top: 9px;
    font-size: 13.5px; color: #40536b;
}

.recap-line.total span:last-child { color: #0b63d6; font-weight: 700; font-size: 15px; }

/* --- Bouton de paiement -------------------------------------------------- */
.submit-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* --- Écran de suivi, affiché à la place du formulaire -------------------- */
.pay-status { display: none; text-align: center; padding: 26px 6px 10px; }
.pay-status.show { display: block; animation: recap-in .25s ease-out; }
.pay-status h3 { margin: 8px 0 9px; font-size: 17px; color: #2d3e52; }
.pay-status p { font-size: 13.5px; color: #6b7c93; margin-bottom: 20px; line-height: 1.45; }

.pay-status-icon { font-size: 50px; margin-bottom: 6px; }
.pay-status-icon.pending { color: #f0a92e; }
.pay-status-icon.success { color: #22a95c; }
.pay-status-icon.error   { color: #d64550; }

.pay-status-detail {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 12px; color: #7189a5;
    border-top: 1px dashed #e2e9f1; padding-top: 11px; margin-bottom: 8px;
}

.pay-status-detail strong { color: #40536b; font-weight: 600; word-break: break-all; }

.spin { display: inline-block; animation: pay-spin 1.1s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }

/* --- Écrans étroits ------------------------------------------------------ */
@media (max-width: 900px) {
    .container { width: 92%; flex-direction: column; }
    .image-section { min-height: 230px; }
}

@media (max-width: 380px) {
    .op-choice { flex-direction: column; }
    .op-card label { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 11px 14px; }
}
