/* =====================================================================
 | Pages « Payer » — direction artistique SIGRECC v2 (polish DA)
 | Dépend de home-sigrecc.css (variables --violet, --serif, --sans, etc.)
 | Portée scopée sous .pay-section et .pay-hero pour éviter les collisions.
 | Overrides select2 suffisamment spécifiques (préfixés .pay-section).
 ===================================================================== */

/* ------------------------------------------------------------------ */
/* 0. TOKENS LOCAUX (complètent home-sigrecc.css sans les écraser)    */
/* ------------------------------------------------------------------ */
:root {
  /* Jetons de champ (--field-border / --field-bg / --field-radius / --field-h /
     --field-focus-ring) : NE PLUS les redéfinir ici. Ils sont la SOURCE DE
     VÉRITÉ dans tokens.css (chargé avant) — les dupliquer ici les écrasait
     silencieusement (cause du « je ne vois pas de différence » + select trop
     grand). Seul --field-bg-ro reste local (nom propre au CSS legacy). */
  --field-bg-ro:        #f0f7fe;
  --step-n-size:        34px;
  --step-n-radius:      10px;
  --step-gap:           32px;
  --step-connector:     #c2cdd9;
  --submit-h:           58px;
  --submit-radius:      12px;
  --recap-radius:       14px;
  --card-radius:        16px;
  --success:            #1A6B3A;
  --success-bg:         #E8F5ED;
  --success-border:     #A8D8B9;
  --error:              #a3241f;
  --error-bg:           #FDECEA;
  --error-border:       #F0A8A4;
}

/* ------------------------------------------------------------------ */
/* 1. HEADER SOLIDE (pages internes)                                   */
/* ------------------------------------------------------------------ */
header.nav--solid {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(100deg, #061c32, #0e60a9 60%, #0a3d69);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 28px -10px rgba(0,0,0,.55);
}
header.nav--solid .nav-in { height: 76px; }

/* ------------------------------------------------------------------ */
/* 2. BANNIÈRE (pay-hero)                                              */
/* ------------------------------------------------------------------ */
.pay-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 60px 0 68px;
  background:
    radial-gradient(560px 380px at 88% 0%, rgba(43,138,222,.38), transparent 60%),
    linear-gradient(120deg, #061c32 0%, #0e60a9 56%, #0a3d69 100%);
}
/* Motif arc-en-ciel de l'Église (logo institutionnel), discret, côté droit */
.pay-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  z-index: 0;
  background: url('/logo.png') center / contain no-repeat;
  opacity: .13;
  pointer-events: none;
}
/* Halo lumineux doux (remplace la grille de points) */
.pay-hero::after {
  content: "";
  position: absolute;
  left: -6%;
  top: -55%;
  width: 620px;
  height: 620px;
  z-index: 0;
  background: radial-gradient(circle, rgba(43,138,222,.30), transparent 68%);
  pointer-events: none;
}
.pay-hero .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Fil d'Ariane */
.pay-hero .crumb {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #a8c4de;
  font-weight: 700;
  margin: 0 0 18px;
}
.pay-hero .crumb a { color: #a8c4de; transition: color .15s; }
.pay-hero .crumb a:hover { color: #fff; }
.pay-hero .crumb .sep { margin: 0 9px; color: #7aa3c4; }

/* Eyebrow — centré (max-width:none pour ne pas hériter du bloc sous-titre) */
.pay-hero .eyebrow {
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #a8c4de;
  font-weight: 700;
  margin: 0 auto 12px;
  max-width: none;
  display: block;
  text-align: center;
}

/* Titre H1 */
.pay-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: .01em;
  text-shadow: 0 2px 22px rgba(0,0,0,.28);
}

/* Sous-titre */
.pay-hero p {
  font-family: var(--sans);
  color: #a8c4de;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 520px;
  font-weight: 400;
}

/* ------------------------------------------------------------------ */
/* 3. SECTION FORMULAIRE                                               */
/* ------------------------------------------------------------------ */
.pay-section {
  position: relative;
  padding: 64px 0 96px;
  background: var(--lav);
}
.pay-section .wrap { max-width: 900px; }

/* ------------------------------------------------------------------ */
/* 4. CARTE PRINCIPALE (pay-card)                                      */
/* ------------------------------------------------------------------ */
.pay-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--violet);
  border-radius: var(--card-radius);
  box-shadow:
    0 1px 3px rgba(14,96,169,.05),
    0 32px 72px -24px rgba(14,96,169,.30);
  padding: 44px 48px 36px;
}

/* En-tête de carte (label catégorie + filet) */
.pay-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.pay-card-head span {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--violet-soft);
  white-space: nowrap;
}
.pay-card-head i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ------------------------------------------------------------------ */
/* 5. GRILLE & UTILITAIRES SCOPÉS                                      */
/* ------------------------------------------------------------------ */
.pay-section .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
  align-items: start;
}
.pay-section .row > [class*="col-"] { width: auto; min-width: 0; }
.pay-section .mb-5  { margin-bottom: 20px; }
.pay-section .mb-3  { margin-bottom: 12px; }
.pay-section .mt-6  { margin-top: 26px; }
.pay-section .mt-2  { margin-top: 10px; }
.pay-section .w-100 { width: 100%; }
.pay-section .d-flex{ display: flex; }
.pay-section .align-items-end     { align-items: flex-end; }
.pay-section .justify-content-end { justify-content: flex-end; }
.pay-section .form-group { margin: 0; }

/* ------------------------------------------------------------------ */
/* 6. LABELS — overrides Metronic/Bootstrap scopés                    */
/* ------------------------------------------------------------------ */
.pay-section .form-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #3a4f61;
  margin-bottom: 9px;
  line-height: 1.3;
}
.pay-section .form-label.required::after { content: " *"; color: var(--violet); }

/* ------------------------------------------------------------------ */
/* 7. CHAMPS — form-control / form-select (overrides Metronic)        */
/* ------------------------------------------------------------------ */
.pay-section .form-control,
.pay-section .form-select {
  display: block;
  width: 100%;
  height: var(--field-h);
  min-height: var(--field-h);
  border: 1.5px solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-bg);
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  box-shadow: none;
  line-height: normal;
  transition: border-color .16s, box-shadow .16s, background .16s;
  outline: none;
}
.pay-section textarea.form-control {
  height: auto;
  min-height: auto;
  padding: 15px 18px;
}
.pay-section .form-control::placeholder { color: #93a3b8; }
.pay-section .form-control:hover,
.pay-section .form-select:hover  { background: var(--field-bg-hover, #E5EBF3); border-color: var(--field-border-hover); }
.pay-section .form-control:focus,
.pay-section .form-select:focus  {
  border-color: var(--color-primary, #0E60A9);
  background: #fff;
  box-shadow: 0 0 0 4px var(--field-focus-ring);
}
.pay-section .form-control:focus-visible,
.pay-section .form-select:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
/* Erreur : bordure rouge (pas violette) */
.pay-section .form-control.is-invalid {
  border-color: #c0392b;
  background: #FFFAFA;
  box-shadow: 0 0 0 3px rgba(163,36,31,.10);
}

/* ------------------------------------------------------------------ */
/* 8. SELECT2 — BLOC CONSOLIDÉ (source unique, remplace tout autre     */
/*    fragment select2 dans ce fichier)                                */
/*                                                                     */
/*  • Champ fermé : scopé .pay-section (inline dans la page)          */
/*  • Dropdown & résultats : GLOBAUX (rendus dans <body> par Select2) */
/* ------------------------------------------------------------------ */

/* Keyframes dropdown reveal (utilisée ici, pas de doublon ailleurs) */
@keyframes ddReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- 8.1 Conteneur racine ----------------------------------------- */
.pay-section .select2-container {
  width: 100% !important;
  display: block;
}

/* --- 8.2 Champ fermé ---------------------------------------------- */
/* La règle de la section 27 incluait ce sélecteur avec !important ;
   on le sort du groupe texte et on le maîtrise ici seul.             */
.pay-section .select2-container--bootstrap5 .select2-selection--single {
  width: 100%;
  height: var(--field-h);
  min-height: var(--field-h);
  box-sizing: border-box;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-bg);
  box-shadow: none;
  cursor: pointer;
  outline: none;
  /* transition douce sur toutes les propriétés visuelles */
  transition: border-color .18s ease, background .18s ease, box-shadow .2s ease;
}

/* --- 8.3 Texte rendu & placeholder --------------------------------- */
/* line-height = field-h - 2px bordures => centrage vertical parfait  */
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__rendered {
  line-height: 52px; /* = 54px - 2px bordures (var ne marche pas en line-height calc ici) */
  padding: 0 74px 0 16px; /* droite : place pour la croix (× ~44px) + le chevron (46px) */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-family: var(--font-body, var(--sans));
  font-size: 15px;
  color: var(--text, var(--ink));
  font-weight: 500;
}
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__placeholder {
  color: var(--text-placeholder, #9AAFC0);
  font-weight: 400;
}

/* Bouton « effacer » (allowClear) — Select2 l'injecte dans __rendered.
   On le sort du flux (absolute) pour qu'il ne pousse pas le texte :
   petite croix cliquable, juste à gauche du chevron, centrée verticalement. */
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__clear {
  position: absolute;
  right: 42px;
  top: 0;
  height: 100%;
  width: 24px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-muted, #6D8599);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
  z-index: 2;
}
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__clear:hover {
  color: var(--color-error, #C0392B);
  background: rgba(192,57,43,.08);
}
/* Certaines versions imbriquent le « × » dans un <span> interne */
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__clear > span {
  display: block;
  line-height: 1;
}

/* --- 8.4 Chevron --------------------------------------------------- */
/* On masque le <b> natif de Select2 (triangle CSS hérité) */
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__arrow b {
  display: none;
}

/* Conteneur flèche : zone cliquable fantôme, aligné à droite */
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__arrow {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Chevron via SVG inline — repos gris #6D8599 */
.pay-section .select2-container--bootstrap5 .select2-selection--single
  .select2-selection__arrow::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%236D8599' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* Spring-like : dépasse légèrement 180° puis revient */
  transition: transform .22s cubic-bezier(.34,1.04,.64,1);
}

/* Hover : accentuation légère de la couleur du chevron */
.pay-section .select2-container--bootstrap5 .select2-selection--single:hover
  .select2-selection__arrow::after {
  filter: brightness(.65) saturate(1.5);
}

/* Ouvert : rotation 180° + chevron bleu primary */
.pay-section .select2-container--bootstrap5.select2-container--open
  .select2-selection--single .select2-selection__arrow::after {
  transform: rotate(180deg);
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%230E60A9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Focus : chevron bleu (focus sans ouverture immédiate) */
.pay-section .select2-container--bootstrap5.select2-container--focus:not(.select2-container--open)
  .select2-selection--single .select2-selection__arrow::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 7l6 6 6-6' stroke='%230E60A9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- 8.5 États interactifs ---------------------------------------- */

/* Hover */
.pay-section .select2-container--bootstrap5 .select2-selection--single:hover {
  background: var(--field-bg-hover, #E5EBF3);
  border-color: var(--field-border-hover, #CFD9E6);
}

/* Focus clavier */
.pay-section .select2-container--bootstrap5.select2-container--focus
  .select2-selection--single {
  background: var(--surface, #FFFFFF);
  border-color: var(--color-primary, #0E60A9);
  box-shadow: 0 0 0 4px var(--field-focus-ring, rgba(14,96,169,.16));
}

/* Ouvert */
.pay-section .select2-container--bootstrap5.select2-container--open
  .select2-selection--single {
  background: var(--surface, #FFFFFF);
  border-color: var(--color-primary, #0E60A9);
  box-shadow: 0 0 0 4px var(--field-focus-ring, rgba(14,96,169,.16));
}

/* Le panneau flotte (détaché) : le champ garde ses coins arrondis à l'ouverture. */

/* Désactivé */
.pay-section .select2-container--disabled .select2-selection--single {
  background: var(--field-bg-readonly, #EEF2F7) !important;
  cursor: not-allowed;
  opacity: .7;
}
.pay-section .select2-container--disabled .select2-selection--single
  .select2-selection__arrow::after {
  opacity: .4;
}

/* ------------------------------------------------------------------ */
/* 8.6 DROPDOWN (global — rendu dans <body> par Select2)              */
/* ------------------------------------------------------------------ */
/* Panneau flottant, doux : bordure neutre discrète, coins arrondis,
   ombre légère. On évite volontairement toute bordure bleue franche. */
.select2-dropdown {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #DDE4EE);
  border-radius: 14px;
  box-shadow:
    0 12px 32px -10px rgba(6,28,50,.18),
    0 2px 8px -3px rgba(6,28,50,.08);
  overflow: hidden;
  animation: ddReveal .16s ease both;
}

/* Below : léger détachement sous le champ */
.select2-dropdown--below { margin-top: 6px; }

/* Above : léger détachement au dessus du champ */
.select2-dropdown--above { margin-bottom: 6px; }

/* ------------------------------------------------------------------ */
/* 8.7 Recherche dans le dropdown                                      */
/* ------------------------------------------------------------------ */
.select2-search--dropdown {
  padding: 8px 8px 4px;
}
.select2-search--dropdown .select2-search__field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border: 1px solid var(--field-border, #E4EAF2);
  border-radius: 8px;
  background: var(--field-bg, #EDF1F7);
  padding: 0 12px;
  font-family: var(--font-body, var(--sans));
  font-size: 14px;
  color: var(--text, #1A2535);
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.select2-search--dropdown .select2-search__field::placeholder {
  color: var(--text-placeholder, #9AAFC0);
}
.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--color-primary, #0E60A9);
  background: #fff;
  box-shadow: 0 0 0 3px var(--field-focus-ring, rgba(14,96,169,.16));
}

/* ------------------------------------------------------------------ */
/* 8.8 Liste des résultats                                             */
/* ------------------------------------------------------------------ */

/* Filet de séparation sous la recherche */
.select2-results {
  border-top: 1px solid var(--border, #DDE4EE);
}

.select2-results__options {
  max-height: 260px;
  overflow-y: auto;
  /* Scrollbar discrète (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #C2CDD9 transparent;
}

/* Option générique */
.select2-results__option {
  padding: 11px 16px;
  font-family: var(--font-body, var(--sans));
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text, #1A2535);
  line-height: 1.4;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

/* Highlighted (survol clavier ou souris) — contraste AA/AAA, PAS fond primary plein */
.select2-results__option--highlighted[aria-selected] {
  background: var(--color-primary-light, #E0F0FD);
  color: var(--color-primary-dark, #0A3D69);
}

/* Sélectionné — fond doux + texte primary, sans liseré latéral */
.select2-results__option[aria-selected="true"] {
  background: var(--color-primary-subtle, #F0F7FE);
  color: var(--color-primary, #0E60A9);
  font-weight: 600;
}

/* Désactivé */
.select2-results__option[aria-disabled="true"] {
  color: var(--text-muted, #6D8599);
  cursor: default;
  opacity: .55;
  pointer-events: none;
}

/* Chargement / aucun résultat */
.select2-results__option--loading,
.select2-results__option--no-results {
  color: var(--text-muted, #6D8599);
  font-style: italic;
  font-size: 13.5px;
  padding: 14px 16px;
  cursor: default;
}

/* Focus visible : pas d'anneau parasite (géré par highlighted) */
.select2-results__option:focus-visible {
  outline: none;
}

/* Groupe d'options */
.select2-results__group {
  font-family: var(--font-heading, var(--sans));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted, #6D8599);
  padding: 14px 16px 6px;
  cursor: default;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* 8.9 Spinner AJAX dans les options                                   */
/* (@keyframes paySpin défini à la section 17, ne pas dupliquer)      */
/* ------------------------------------------------------------------ */
.select2-results__option--loading::before {
  content: "";
  border: 2px solid var(--field-border, #E4EAF2);
  border-top-color: var(--color-primary, #0E60A9);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: paySpin .7s linear infinite;
}

/* ------------------------------------------------------------------ */
/* 9. BOUTONS GENERIQUES (overrides Metronic scopés)                  */
/* ------------------------------------------------------------------ */
.pay-section .btn-primary,
.pay-section .btn.btn-primary {
  height: var(--field-h);
  border: 0;
  border-radius: var(--field-radius);
  padding: 0 30px;
  background: linear-gradient(160deg, var(--violet-3), var(--violet));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -6px rgba(14,96,169,.50);
  transition: box-shadow .18s, transform .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.pay-section .btn-primary:hover,
.pay-section .btn.btn-primary:hover {
  box-shadow: 0 12px 26px -6px rgba(14,96,169,.62);
  transform: translateY(-1px);
}
.pay-section .btn-primary:active,
.pay-section .btn.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -6px rgba(14,96,169,.5);
}

.pay-section .btn-light {
  height: var(--field-h);
  min-height: var(--field-h);
  box-sizing: border-box;
  border: 1.5px solid var(--card-border);
  border-radius: var(--field-radius);
  background: #fff;
  color: var(--violet);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, border-color .15s, box-shadow .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.pay-section .btn-light:hover {
  background: #f7f9fb;
  border-color: #9aafc0;
  box-shadow: 0 4px 12px -4px rgba(14,96,169,.14);
}

/* ------------------------------------------------------------------ */
/* 10. ALERTES                                                         */
/* ------------------------------------------------------------------ */
.pay-section .alert {
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 14px;
  border-width: 1px;
  padding: 14px 18px;
  line-height: 1.55;
}
.pay-section .alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}
.pay-section .alert-danger {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

/* ------------------------------------------------------------------ */
/* 11. PIED DE CARTE + RÉASSURANCE                                     */
/* ------------------------------------------------------------------ */
.pay-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pay-secure {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .01em;
}
.pay-secure svg { width: 15px; height: 15px; color: var(--violet-soft); flex: 0 0 auto; }

/* Bandeau de confiance */
.pay-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 14px 20px;
  background: rgba(247,249,251,.6);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pay-trust .t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.pay-trust .t svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex: 0 0 auto;
}
.pay-trust .sep {
  width: 1px;
  height: 14px;
  background: #c2cdd9;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/* 12. PAGE DE CONFIRMATION (pay-confirm)                              */
/* ------------------------------------------------------------------ */
.pay-confirm {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--violet);
  border-radius: var(--card-radius);
  box-shadow:
    0 1px 3px rgba(14,96,169,.05),
    0 32px 72px -24px rgba(14,96,169,.30);
  padding: 52px 44px 44px;
  animation: payReveal .4s ease both;
}

/* Pastille succès */
.pay-confirm .badge-ok {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 1.5px solid var(--success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  box-shadow: 0 6px 22px -8px rgba(26,107,58,.30);
  animation: badgePop .5s cubic-bezier(.34,1.56,.64,1) .1s both;
}
.pay-confirm .badge-ok svg { width: 36px; height: 36px; color: var(--success); }

@keyframes badgePop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.pay-confirm h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--violet);
  margin: 0 0 12px;
  letter-spacing: .01em;
}
.pay-confirm p {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
  margin: 0 auto 30px;
  max-width: 400px;
}

/* Séparateur dans la confirmation */
.pay-confirm .confirm-sep {
  height: 1px;
  background: var(--line);
  margin: 0 0 26px;
}

/* Boutons confirmation */
.pay-confirm .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pay-confirm .pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow .18s, transform .12s, background .15s;
  cursor: pointer;
}
.pay-confirm .pay-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pay-confirm .pay-btn--primary {
  background: linear-gradient(160deg, var(--violet-3), var(--violet));
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(14,96,169,.50);
}
.pay-confirm .pay-btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 26px -6px rgba(14,96,169,.62);
  transform: translateY(-1px);
}
.pay-confirm .pay-btn--ghost {
  background: #fff;
  color: var(--violet);
  border: 1.5px solid var(--card-border);
}
.pay-confirm .pay-btn--ghost:hover {
  background: #f7f9fb;
  border-color: #9aafc0;
  box-shadow: 0 4px 12px -4px rgba(14,96,169,.12);
}

/* ------------------------------------------------------------------ */
/* 13. FORMULAIRE REPENSÉ — STRUCTURE ÉTAPES                          */
/* ------------------------------------------------------------------ */
.pay-form { max-width: 620px; margin: 0 auto; }

/* ------------------------------------------------------------------ */
/* 12bis. STEPPER HORIZONTAL (vue d'ensemble du parcours)             */
/* ------------------------------------------------------------------ */
.pay-stepper {
  display: flex;
  align-items: flex-start;
  margin: 0 0 34px;
  padding: 0 4px;
}
.ps-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
/* Fil de liaison vers l'étape suivante (derrière la pastille) */
.ps-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--step-connector);
  z-index: 0;
}
.ps-item:last-child::before { display: none; }
.ps-item.is-done::before { background: var(--success); }

/* Pastille */
.ps-dot {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  background: #eef2f7;
  color: var(--violet-soft);
  border: 2px solid #eef2f7;
  transition: all .25s ease;
}
.ps-dot svg { width: 18px; height: 18px; }

/* Étape à venir (pending) : gris/lavande — style par défaut ci-dessus */

/* Étape active : violet, en relief */
.ps-item.is-active .ps-dot {
  background: linear-gradient(150deg, var(--violet-3), var(--violet));
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 6px 16px -4px rgba(14,96,169,.5), 0 0 0 5px rgba(14,96,169,.10);
}
/* Étape complétée : vert + check */
.ps-item.is-done .ps-dot {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
  box-shadow: 0 4px 12px -4px rgba(26,107,58,.45);
}

/* Libellés */
.ps-label { margin-top: 11px; }
.ps-label span {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.ps-label b {
  display: block;
  font-family: var(--serif);
  font-size: 13.5px;
  color: #6d8599;
  margin-top: 3px;
  line-height: 1.2;
  transition: color .2s;
}
.ps-item.is-active .ps-label b,
.ps-item.is-done .ps-label b { color: var(--ink); }
.ps-item.is-active .ps-label span { color: var(--violet); }
.ps-item.is-done .ps-label span { color: var(--success); }

@media (max-width: 560px) {
  .pay-stepper { margin-bottom: 26px; }
  .ps-label b { font-size: 11.5px; }
  .ps-label span { font-size: 8.5px; letter-spacing: .1em; }
  .ps-dot { width: 34px; height: 34px; font-size: 14px; }
  .ps-item::before { top: 16px; }
}

/* Animation d'apparition des étapes */
@keyframes payReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pay-step { animation: payReveal .35s ease both; }

/* Connecteur vertical entre étapes */
.pay-step + .pay-step {
  margin-top: var(--step-gap);
  padding-top: var(--step-gap);
  border-top: 1px solid var(--step-connector);
  position: relative;
}
/* Filet de jonction entre pastilles d'étapes */
.pay-step + .pay-step::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--step-gap));
  left: calc(var(--step-n-size) / 2 - 1px);
  width: 2px;
  height: var(--step-gap);
  background: linear-gradient(to bottom, transparent, var(--step-connector) 60%);
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* 14. EN-TÊTE D'ÉTAPE (pay-step-head)                                */
/* ------------------------------------------------------------------ */
.pay-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

/* Pastille numéro d'étape */
.pay-step-head .n {
  width: var(--step-n-size);
  height: var(--step-n-size);
  flex: 0 0 var(--step-n-size);
  border-radius: var(--step-n-radius);
  background: linear-gradient(150deg, var(--violet-3), var(--violet));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(14,96,169,.45);
  letter-spacing: 0;
  /* Légère élévation pour donner du poids */
  position: relative;
  top: 1px;
}

/* Texte de l'en-tête */
.pay-step-head > div { flex: 1; min-width: 0; }
.pay-step-head h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
  line-height: 1.25;
  letter-spacing: .01em;
}
.pay-step-head small {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

/* ------------------------------------------------------------------ */
/* 15. CHAMP MAÎTRISÉ (.inp)                                           */
/* ------------------------------------------------------------------ */
.pay-field { margin-bottom: 18px; }
.pay-field > label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #3a4f61;
  margin-bottom: 9px;
  line-height: 1.3;
}
.pay-field > label .req { color: var(--violet); }

/* Grille 2 colonnes dans les étapes */
.pay-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }

/* Input maîtrisé */
.pay-section .inp {
  display: block;
  width: 100%;
  height: var(--field-h);
  box-sizing: border-box;
  border: 1.5px solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-bg);
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  -webkit-appearance: none;
  appearance: none;
}
.pay-section .inp::placeholder { color: #9aafc0; }
.pay-section .inp:hover        { border-color: #9aafc0; }
.pay-section .inp:focus {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3.5px var(--field-focus-ring);
}
.pay-section .inp:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* Champ en erreur */
.pay-section .inp.is-invalid {
  border-color: #c0392b;
  background: #FFFAFA;
  box-shadow: 0 0 0 3px rgba(163,36,31,.09);
}

/* Champ en lecture seule (montant fixe) */
.pay-section .inp[readonly] {
  background: var(--field-bg-ro);
  color: #3a4f61;
  cursor: default;
  border-color: #dde4ee;
  /* Micro-signal visuel : icône cadenas via bordure en tirets fins */
  border-style: dashed;
}
.pay-section .inp[readonly]:hover {
  border-color: #c2cdd9;
}

/* ------------------------------------------------------------------ */
/* 16. AIDE & ERREUR                                                   */
/* ------------------------------------------------------------------ */
.pf-help {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.5;
}

.pf-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--error);
  margin: 8px 0 0;
  line-height: 1.45;
  animation: payReveal .2s ease;
}
.pf-error svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
}

/* ------------------------------------------------------------------ */
/* 17. RECHERCHE MATRICULE INTÉGRÉE                                    */
/* ------------------------------------------------------------------ */
.pf-search { position: relative; }
.pf-search .inp { padding-right: 140px; }

.pf-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 20px;
  border: 0;
  border-radius: calc(var(--field-radius) - 3px);
  cursor: pointer;
  background: var(--violet);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.pf-search-btn:hover {
  background: var(--violet-2);
  box-shadow: 0 4px 14px -4px rgba(14,96,169,.45);
}
.pf-search-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
.pf-search-btn:active {
  background: var(--violet-3);
  box-shadow: none;
}
.pf-search-btn[disabled] {
  opacity: .58;
  cursor: default;
  pointer-events: none;
}

/* Spinner de chargement */
.pf-spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: paySpin .7s linear infinite;
  display: inline-block;
  flex: 0 0 14px;
}
@keyframes paySpin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* 18. PASTILLE « FIDÈLE IDENTIFIÉ » (pf-found)                       */
/* ------------------------------------------------------------------ */
.pf-found {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 11px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  animation: payReveal .25s ease both;
  box-shadow: 0 2px 12px -4px rgba(26,107,58,.18);
}
.pf-found .ic {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--success-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-found .ic svg { width: 16px; height: 16px; }
.pf-found b { color: #0e4220; font-weight: 700; }
.pf-found .sub {
  display: block;
  font-size: 12px;
  color: #3d7a53;
  margin-top: 2px;
  font-weight: 400;
}

/* ------------------------------------------------------------------ */
/* 19. BADGE SERVICE — pay-tag                                         */
/* ------------------------------------------------------------------ */
.pay-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f7f9fb;
  border: 1.5px solid var(--card-border);
  color: var(--violet);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.pay-tag svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--violet-soft);
}

/* ------------------------------------------------------------------ */
/* 20. RÉCAPITULATIF AVANT PAIEMENT (pay-recap)                       */
/* Le moment de conversion — soigné                                    */
/* ------------------------------------------------------------------ */
.pay-recap {
  background: linear-gradient(160deg, #f7f9fb 0%, #f0f7fe 100%);
  border: 1.5px solid var(--card-border);
  border-left: 4px solid var(--violet);
  border-radius: var(--recap-radius);
  padding: 22px 24px 20px;
  margin: 4px 0 22px;
  box-shadow: 0 4px 20px -10px rgba(14,96,169,.18);
}

/* Titre du récap */
.pay-recap .rc-title {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--violet-soft);
  font-weight: 700;
  margin: 0 0 16px;
}

/* Lignes clé / valeur */
.pay-recap .rc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(221,228,238,.55);
}
.pay-recap .rc-row:last-of-type { border-bottom: 0; }

.pay-recap .rc-row .k {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.pay-recap .rc-row .v {
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
  font-weight: 400;
}

/* Ligne montant — mise en avant */
.pay-recap .rc-amount {
  border-top: 1.5px solid #dde4ee;
  margin-top: 10px;
  padding-top: 14px;
  border-bottom: 0 !important;
}
.pay-recap .rc-amount .k {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.pay-recap .rc-amount .v {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: .01em;
  line-height: 1;
}

/* Note e-mail quittance */
.pay-recap .rc-mail {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.45;
}
.pay-recap .rc-mail svg {
  width: 13px;
  height: 13px;
  color: var(--success);
  flex: 0 0 13px;
}
.pay-recap .rc-mail strong { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* 21. BOUTON DE PAIEMENT (pay-submit)                                 */
/* Le CTA principal — présence maximale                                */
/* ------------------------------------------------------------------ */
.pay-submit {
  width: 100%;
  height: var(--submit-h);
  border: 0;
  border-radius: var(--submit-radius);
  cursor: pointer;
  background: linear-gradient(160deg, var(--violet-3) 0%, var(--violet) 100%);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow:
    0 10px 28px -8px rgba(14,96,169,.58),
    0 2px 0 rgba(255,255,255,.07) inset;
  transition: box-shadow .2s, transform .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* Shine subtil au hover */
.pay-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.pay-submit:hover {
  box-shadow:
    0 14px 34px -8px rgba(14,96,169,.68),
    0 2px 0 rgba(255,255,255,.07) inset;
  transform: translateY(-1px);
}
.pay-submit:hover::after { opacity: 1; }
.pay-submit:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px -8px rgba(14,96,169,.5);
}
.pay-submit:focus-visible {
  outline: 3px solid rgba(14,96,169,.5);
  outline-offset: 3px;
}
.pay-submit[disabled] {
  opacity: .68;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.pay-submit .pf-spin {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

/* ------------------------------------------------------------------ */
/* 22. RESPONSIVE — MOBILE FIRST                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {

  /* Bannière */
  .pay-hero          { padding: 48px 0 54px; }
  .pay-hero h1       { font-size: 30px; }
  .pay-hero p        { font-size: 14.5px; }

  /* Section */
  .pay-section       { padding: 36px 0 72px; }

  /* Carte */
  .pay-card          { padding: 28px 20px 24px; border-radius: 12px; }
  .pay-card-foot     { justify-content: center; }

  /* Grilles → colonne unique */
  .pay-2             { grid-template-columns: 1fr; }
  .pay-section .row  { grid-template-columns: 1fr; }

  /* Étapes */
  .pay-step + .pay-step { --step-gap: 24px; }
  .pay-step-head h3  { font-size: 17px; }

  /* Champ de recherche : bouton pleine largeur sous l'input sur très petit écran */
  @media (max-width: 440px) {
    .pf-search .inp        { padding-right: 16px; }
    .pf-search-btn         { position: static; width: 100%; margin-top: 10px; height: 46px; border-radius: 9px; }
    .pf-search             { display: flex; flex-direction: column; }
  }

  /* Récap */
  .pay-recap         { padding: 18px 18px 16px; }
  .pay-recap .rc-amount .v { font-size: 24px; }

  /* Bouton de paiement — sticky sur mobile */
  .pay-submit        { font-size: 14.5px; letter-spacing: .05em; }

  /* Boutons génériques */
  .pay-section .btn-primary { width: 100%; }

  /* Confirmation */
  .pay-confirm       { padding: 36px 24px 32px; border-radius: 12px; }
  .pay-confirm h2    { font-size: 24px; }
  .pay-confirm .actions { flex-direction: column; align-items: stretch; }
  .pay-confirm .pay-btn { justify-content: center; }

  /* Trust */
  .pay-trust         { gap: 14px; padding: 12px 14px; }
  .pay-trust .sep    { display: none; }
}

/* Bouton de paiement sticky en bas sur mobile */
@media (max-width: 560px) {
  .pay-submit-sticky-wrap {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 12px 16px 16px;
    background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0));
    margin: 0 -20px -24px;
    border-radius: 0 0 12px 12px;
  }
}

/* ------------------------------------------------------------------ */
/* 23. ACCESSIBILITÉ — FOCUS VISIBLE RENFORCÉ                         */
/* ------------------------------------------------------------------ */
.pay-section *:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Surcharge pour les boutons qui ont leur propre style focus */
.pay-submit:focus-visible,
.pf-search-btn:focus-visible { outline-radius: var(--field-radius); }

/* ------------------------------------------------------------------ */
/* 24. IMPRESSION — Quittance lisible si print                         */
/* ------------------------------------------------------------------ */
@media print {
  .pay-hero, header, footer, .pay-trust, .pay-card-foot { display: none; }
  .pay-section { padding: 0; background: #fff; }
  .pay-card    { box-shadow: none; border: 1px solid #ccc; }
  .pay-submit  { display: none; }
}

/* Affichage d'un montant fixe (lecture seule, formaté) */
.amount-fixed {
  display: flex;
  align-items: baseline;
  gap: 7px;
  height: var(--field-h);
  padding: 0 16px;
  border: 1.5px dashed var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-bg-ro);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--violet);
}
.amount-fixed span {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--violet-soft);
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* 25. ÉPURATION — le stepper horizontal porte seul la progression    */
/* On retire les pastilles numérotées inline et les connecteurs.      */
/* ------------------------------------------------------------------ */
.pay-step-head .n { display: none; }
.pay-step + .pay-step::before { display: none; }
/* Titre de section allégé, aligné à gauche */
.pay-step-head {
  display: block;
  margin-bottom: 18px;
  padding-left: 2px;
  position: relative;
}
.pay-step-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  letter-spacing: .01em;
}
.pay-step-head small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
/* Séparateur entre sections plus discret */
.pay-step + .pay-step {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ */
/* 26. WIZARD — navigation entre étapes (un seul écran à la fois)     */
/* ------------------------------------------------------------------ */
.pay-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-family: var(--sans);
  font-size: 12.5px;
}
.pay-context svg { width: 15px; height: 15px; }
.pay-context b { color: #12502b; }

.pay-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.pay-nav .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--field-radius);
  background: #fff;
  border: 1.5px solid var(--card-border);
  color: var(--violet);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.pay-nav .btn-back:hover { background: #f7f9fb; border-color: #c2cdd9; }
.pay-nav .btn-back svg { width: 16px; height: 16px; }

.pay-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 30px;
  margin-left: auto;
  border: 0;
  border-radius: var(--field-radius);
  cursor: pointer;
  background: linear-gradient(180deg, var(--violet-3), var(--violet));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .05em;
  box-shadow: 0 10px 22px -8px rgba(14,96,169,.58);
  transition: box-shadow .15s, transform .1s;
}
.pay-next:hover { box-shadow: 0 14px 30px -8px rgba(14,96,169,.68); }
.pay-next:active { transform: translateY(1px); }
.pay-next[disabled] { opacity: .7; cursor: default; }
.pay-next svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .pay-nav { flex-wrap: wrap-reverse; }
  .pay-nav .btn-back, .pay-nav .pay-next { width: 100%; margin-left: 0; justify-content: center; }
}

/* ================================================================== */
/* 27. RÉVISION DES CHAMPS & BORDURES (remplace les liserés épais)     */
/* Style « rempli » à bordure fine ; suppression des barres d'accent.  */
/* Les jetons --field-* viennent de tokens.css (source unique) — ne pas */
/* les redéfinir ici (écrasait le fond #EDF1F7 par #f0f7fe).           */
/* ================================================================== */

/* Champs texte — fond doux, bordure fine, focus violet net.
   Select2 géré exclusivement dans la section 8. */
.pay-section .inp,
.pay-section .form-control,
.pay-section .form-select {
  border: 1px solid var(--field-border) !important;
  border-radius: var(--field-radius) !important;
  background: var(--field-bg) !important;
  box-shadow: none !important;
}
.pay-section .inp:hover,
.pay-section .form-control:hover,
.pay-section .form-select:hover {
  border-color: var(--field-border-hover) !important;
  background: var(--field-bg-hover, #E5EBF3) !important;
}
.pay-section .inp:focus,
.pay-section .form-control:focus,
.pay-section .form-select:focus {
  border-color: var(--violet) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px var(--field-focus-ring) !important;
}
.pay-section .inp.is-invalid,
.pay-section .form-control.is-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(163,36,31,.10) !important;
}

/* Lecture seule : rempli, jamais de pointillés */
.pay-section .inp[readonly] {
  border: 1px solid var(--field-border) !important;
  border-style: solid !important;
  background: #eef2f7 !important;
  color: #3a4f61 !important;
}

/* Montant fixe : rempli, sans pointillés ni accent */
.amount-fixed {
  border: 1px solid var(--field-border) !important;
  background: #eef2f7 !important;
}

/* Cartes : aucune barre d'accent épaisse (haut/gauche) */
.pay-card {
  border: 1px solid var(--card-border) !important;
  border-top: 1px solid var(--card-border) !important;
}
.pay-recap {
  border: 1px solid #dde4ee !important;
  border-left: 1px solid #dde4ee !important;
  background: #f7f9fb !important;
}
.pay-confirm {
  border: 1px solid var(--card-border) !important;
  border-top: 1px solid var(--card-border) !important;
}

/* Montant fixe — état « vide » (aucun frais choisi) */
.amount-fixed.is-empty {
  color: #9aafc0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
}
