/* LincPay — vitrine.
 *
 * Parti pris: sur ce marche, ce que les gens comparent c'est le taux et le
 * montant recu. Le simulateur n'est donc pas un encart pose a cote d'un
 * slogan — il porte la banniere. Le montant recu est le plus gros element de
 * la page, parce que c'est la seule chose que le visiteur vient chercher.
 *
 * Karla en famille unique, comme TOONAH: ses chiffres ont du caractere et
 * sa graisse 800 tient un titre sans avoir besoin d'une seconde police. */

:root {
  --blue-900: #001C55;   /* fond de banniere, plus profond que le logo */
  --blue-700: #002878;   /* bleu du logo */
  --blue-500: #0048A8;
  --green-700:#007A28;
  --green-500:#14A038;

  --ink:      #0A1A2F;
  --muted:    #5D6B7C;
  --line:     #DFE5EC;
  --paper:    #FFFFFF;
  --wash:     #F5F8FB;

  --wrap: 1120px;
}

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

body.lp {
  margin: 0;
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.lp h1, .lp h2, .lp h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 .35em;
}
.lp h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.lp h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.lp h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.lp p  { margin: 0 0 .6em; }
/* Attention: .lp a vaut (0,1,1). Toute regle de couleur sur un lien
   stylise doit etre prefixee .lp pour atteindre (0,2,0) et passer devant. */
.lp a  { color: var(--blue-500); text-decoration: none; }
.lp a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Karla a des chiffres proportionnels par defaut: on force la chasse fixe
   partout ou des montants se lisent en colonne ou changent en direct. */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* --- En-tete -------------------------------------------------------- */

.hdr {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.hdr-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px; gap: 28px;
}
.hdr-logo img { height: 52px; display: block; }

.hdr-nav { display: flex; gap: 30px; }
.hdr-nav a {
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.hdr-nav a:hover {
  color: var(--blue-700); text-decoration: none; border-bottom-color: var(--green-700);
}

.hdr-act { display: flex; align-items: center; gap: 14px; }
.hdr-act a.link { color: var(--ink); font-size: 15px; font-weight: 500; }
.hdr-act a.link:hover { color: var(--blue-700); text-decoration: none; }

.burger {
  display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px;
}

/* --- Boutons: aplats. Le degrade appartient au logo. ---------------- */

.lp .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; font-family: inherit; font-size: 16px; font-weight: 700;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.lp .btn:hover { text-decoration: none; }

.lp .btn-go { background: var(--green-700); color: #fff; }
.lp .btn-go:hover { background: var(--green-500); color: #fff; }

.lp .btn-blue  { background: var(--blue-700); color: #fff; }
.lp .btn-blue:hover { background: var(--blue-500); color: #fff; }

.lp .btn-line  { background: transparent; color: var(--blue-700); border-color: var(--line); }
.lp .btn-line:hover { border-color: var(--blue-700); color: var(--blue-700); }

/* Reserve au bandeau en degrade, seul fond sombre restant. */
.lp .btn-onband { background: var(--green-700); color: #fff; }
.lp .btn-onband:hover { background: var(--green-500); color: #fff; }

.lp .btn-wide  { width: 100%; padding: 16px; font-size: 17px; }

/* --- Banniere: le simulateur porte la page -------------------------- */

.hero { background: #fff; padding: 40px 0 44px; }
.hero h1 { color: var(--ink); max-width: 16ch; }
.hero-sub {
  color: var(--muted); font-size: 17px; max-width: 44ch; margin: 0 0 22px;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: start;
}

/* Le simulateur. Blanc sur bleu: c'est l'element qui doit attirer l'oeil. */
.sim {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 24px; color: var(--ink);
}

.sim-row { display: grid; grid-template-columns: 1fr 108px; gap: 10px; margin-bottom: 14px; }
.sim label {
  display: block; font-size: 14px; color: var(--muted);
  margin-bottom: 6px; font-weight: 500;
}
.sim input, .sim select {
  width: 100%; height: 50px; padding: 0 13px;
  font-family: inherit; font-size: 17px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.sim input:focus, .sim select:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,72,168,.14);
}

.sim-out {
  margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
}
.sim-line {
  display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 9px;
}
.sim-line span:first-child { color: var(--muted); }

/* Le chiffre que le visiteur vient chercher. Il change en direct: la
   transition sur l'opacite signale le recalcul sans distraire. */
.sim-get { margin: 16px 0 4px; }
.sim-get small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.sim-get strong {
  display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--green-700); line-height: 1.05; transition: opacity .12s ease;
}
.sim-get strong.pulse { opacity: .35; }

.sim-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Operateurs disponibles, mis a jour au changement de pays. */
.sim-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sim-ops i {
  font-style: normal; font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px;
}

.hero-foot {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.hero-foot b { color: var(--blue-700); font-weight: 700; }

/* --- Sections ------------------------------------------------------- */

.sec { padding: 44px 0; }
.sec-wash { background: var(--wash); }
.sec-head { max-width: 660px; margin-bottom: 22px; }
.sec-head p { color: var(--muted); margin: 0; }

/* --- Corridors: un tableau dense, pas des cartes -------------------- */
/* Le visiteur cherche son pays et son operateur. Une liste se parcourt
   plus vite qu'une grille de cartes, et tient dans un ecran. */

.corr { width: 100%; border-collapse: collapse; font-size: 16px; }
.corr th {
  text-align: left; font-weight: 700; font-size: 14px; color: var(--muted);
  padding: 0 0 12px; border-bottom: 2px solid var(--ink);
}
.corr td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.corr td:first-child { font-weight: 700; width: 30%; }
.corr td:last-child  { color: var(--muted); }
.corr tr:hover td { background: rgba(0,40,120,.025); }

/* --- Etapes: numerotees car c'est reellement une sequence ----------- */

.steps { counter-reset: s; }
.step {
  display: grid; grid-template-columns: 42px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: s; content: counter(s);
  font-size: 1.6rem; font-weight: 800; color: var(--line);
  line-height: 1; letter-spacing: -0.04em;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; max-width: 62ch; }

/* --- Deux temps du transfert ---------------------------------------- */

.legs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.leg { padding: 24px; }
.leg + .leg { border-left: 1px solid var(--line); }
.leg span {
  display: inline-block; font-size: 14px; font-weight: 700;
  color: var(--blue-700); margin-bottom: 10px;
}
.leg p { color: var(--muted); margin: 0; }

/* --- Agents --------------------------------------------------------- */

.agent-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.agent-list { list-style: none; padding: 0; margin: 0; }
.agent-list li {
  padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line);
  color: var(--muted); position: relative;
}
.agent-list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 10px; height: 2px; background: var(--green-700);
}

/* --- Appel final: seul endroit ou le degrade du logo apparait ------- */

/* Fond blanc partout: le degrade appartient au logo, pas aux surfaces.
   Un filet vert au-dessus suffit a detacher l'appel final. */
.band { background: #fff; border-top: 3px solid var(--green-700); padding: 40px 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { color: var(--ink); margin: 0 0 4px; }
.band p  { color: var(--muted); margin: 0; max-width: 50ch; }

/* --- Pied ------------------------------------------------------------ */

.ftr {
  background: #fff; border-top: 1px solid var(--line);
  color: var(--muted); padding: 40px 0 20px; font-size: 15px;
}
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.ftr img { height: 46px; margin-bottom: 14px; }
.ftr h4 { color: var(--ink); font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 7px; }
.lp .ftr a { color: var(--muted); }
.lp .ftr a:hover { color: var(--blue-700); text-decoration: none; }
.ftr-btm {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}

/* --- Pages internes -------------------------------------------------- */

.phead {
  background: var(--wash); border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.phead h1 { color: var(--ink); margin-bottom: 6px; }
.phead p  { color: var(--muted); margin: 0; max-width: 58ch; }

.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.3em; }
.prose p  { color: var(--muted); }
.prose ul { padding-left: 1.1em; color: var(--muted); }
.prose li { margin-bottom: .45em; }

.side { border: 1px solid var(--line); padding: 26px; }
.side h3 { margin-bottom: 12px; }
.side p  { color: var(--muted); font-size: 15px; }

/* --- Formulaire ------------------------------------------------------ */

.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.fld input, .fld textarea {
  width: 100%; padding: 13px; font-family: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 4px; color: var(--ink);
}
.fld input:focus, .fld textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(0,72,168,.14);
}

/* --- Mobile ---------------------------------------------------------- */

@media (max-width: 940px) {
  .hero-grid, .agent-split { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: none; }
  .legs { grid-template-columns: 1fr; }
  .leg + .leg { border-left: 0; border-top: 1px solid var(--line); }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hdr-nav { display: none; }
  .burger { display: block; }
  .hdr-nav.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; left: 0; right: 0; top: 76px; z-index: 40;
    background: #fff; padding: 22px 24px;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(10,26,47,.08);
  }
}

@media (max-width: 560px) {
  body.lp { font-size: 16px; }
  .sec { padding: 52px 0; }
  .hero { padding: 40px 0 56px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .corr td:first-child { width: 40%; }
  .sim-get strong { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- Couverture: resume compact plutot qu'une liste exhaustive -------
 * Lister les pays donnait une fausse impression d'exhaustivite et prenait
 * un ecran entier. Trois chiffres et quelques exemples suffisent, et la
 * liste reelle vit dans le formulaire d'envoi, la ou elle sert. */

.cover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
         border: 1px solid var(--line); }
.cover div { padding: 22px 24px; }
.cover div + div { border-left: 1px solid var(--line); }
.cover b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em;
           color: var(--blue-700); line-height: 1; margin-bottom: 4px; }
.cover span { font-size: 15px; color: var(--muted); }

.cover-note { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 68ch; }
.cover-note b { color: var(--ink); font-weight: 700; }

/* --- Pages de connexion et d'inscription ---------------------------- */
/* Elles etendent ce gabarit et n'ont plus le CSS d'xRemit: sans ces
 * regles, les formulaires s'affichent sans mise en forme. */

.auth { padding: 40px 0 56px; background: var(--wash); min-height: 60vh; }
.auth-box {
  max-width: 440px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 30px;
}
.auth-box h1 { font-size: 1.35rem; margin-bottom: 4px; }
.auth-box .sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

.auth-box label { display: block; font-size: 14px; color: var(--muted);
                  margin-bottom: 6px; font-weight: 500; }
.auth-box input[type=text], .auth-box input[type=email],
.auth-box input[type=password], .auth-box input[type=tel], .auth-box select {
  width: 100%; height: 48px; padding: 0 13px; margin-bottom: 14px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.auth-box input:focus, .auth-box select:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,72,168,.14);
}
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-check { display: flex; gap: 9px; align-items: flex-start;
              font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.auth-check input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.auth-alt { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.auth-err { color: #B3261E; font-size: 14px; margin: -8px 0 12px; }

@media (max-width: 560px) {
  .cover { grid-template-columns: 1fr; }
  .cover div + div { border-left: 0; border-top: 1px solid var(--line); }
  .auth-row { grid-template-columns: 1fr; }
}


/* --- Choix de la langue ---------------------------------------------- */

.lang { position: relative; }
.lang select {
  appearance: none; background: transparent; border: 1px solid var(--line);
  border-radius: 4px; padding: 7px 26px 7px 10px;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer;
}
.lang select:hover { border-color: var(--blue-700); }
.lang::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 6px; height: 6px; margin-top: -4px; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
