/* ==========================================================================
   Swaptairis — composants intégrés : bloc formulaire (habillage du rendu
   formFactory), rangée ticker, section calculatrice, page offre spéciale.
   Le formulaire du beacon embarque ses propres styles internes ; cette
   feuille n'habille que le cadre et la cohérence visuelle.
   ========================================================================== */

/* ---------- Bloc formulaire ---------- */
.form-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 2.2vw, 26px);
}
.form-block--extra { box-shadow: var(--shadow-md); }
.form-block__heading {
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.form-block__intro { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 12px; }
.form-block__card {
  border-radius: var(--r-md);
}
.form-legal { font-size: 0.78rem; color: var(--text-muted); margin: 12px 2px 0; }
.form-legal a { color: var(--accent); }
.form-manager {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 0.84rem/1.4 var(--font-body);
  color: var(--accent);
  margin: 10px 2px 0;
}

/* Cohésion visuelle du rendu interne formFactory (styles inline par beacon) */
.form-block form { margin: 0; }
.form-block input[type='text'],
.form-block input[type='email'],
.form-block input[type='tel'] {
  font-family: var(--font-body) !important;
  border-radius: 10px !important;
}
.form-block input[type='submit'] {
  font-family: var(--font-body) !important;
  border-radius: 12px !important;
  cursor: pointer;
}

/* Hero : le bloc est posé sur la scène */
.hero .form-block { position: relative; z-index: 2; }

/* ---------- Rangée ticker (injectée par l'addon après </header>) ---------- */
.bct-row, .beacon-ticker-row {
  width: 100%;
}
body > .bct-row, body > .beacon-ticker-row { margin-top: -1px; }

/* ---------- Section calculatrice ---------- */
/* Le widget s'intègre sous l'en-tête de section du site (h2 + lead) :
   son propre titre/sous-titre ferait doublon visuel. */
.section--calc .calc-widget__title,
.section--calc .calc-widget__subtitle { display: none; }
.section--calc {
  background:
    radial-gradient(760px 340px at 12% 8%, rgba(35, 56, 194, 0.07), transparent 60%),
    var(--surface-2);
  position: relative;
  overflow: hidden;
}
.calc-shell {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-inline: auto;
}
.calc-deco {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 300px;
  height: 190px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Page offre spéciale ---------- */
.urgency-strip {
  background: #10142e;
  color: #ffffff;
  font-size: 0.86rem;
}
.urgency-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding: 10px 0;
}
.urgency-strip__stat { display: inline-flex; align-items: center; gap: 8px; }
.urgency-strip__stat .icon { color: #ffce4d; }
.urgency-strip__stat strong { color: #ffffff; }
.urgency-strip__stat--muted strong { color: #9fb0f2; }

.offer-hero {
  background:
    radial-gradient(900px 420px at 85% -12%, rgba(35, 56, 194, 0.16), transparent 62%),
    radial-gradient(600px 320px at -6% 110%, rgba(225, 0, 15, 0.05), transparent 55%),
    var(--bg);
}
.offer-hero .hero__title em { font-style: normal; color: var(--accent); }

.offer-steps { counter-reset: offerstep; }
.offer-step { position: relative; padding-left: 56px; }
.offer-step__num {
  position: absolute;
  left: 0; top: 2px;
  counter-increment: offerstep;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem/1 var(--font-display);
}
.offer-step__num::after { content: counter(offerstep); }

/* Compte à rebours MM:SS:CS */
.countdown { display: inline-flex; gap: 8px; align-items: center; }
.countdown__seg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.countdown__digits {
  display: flex;
  gap: 3px;
}
.countdown__digit {
  min-width: 30px;
  padding: 8px 4px;
  background: #10142e;
  color: #ffffff;
  border-radius: 8px;
  font: 700 1.25rem/1 var(--font-display);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Modale d'intention de sortie */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-modal.is-open { display: flex; }
.exit-modal__overlay { position: absolute; inset: 0; background: rgba(16, 20, 46, 0.62); backdrop-filter: blur(3px); }
.exit-modal__card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: clamp(22px, 3vw, 32px);
  text-align: center;
  animation: exitModalIn 0.22s var(--ease);
}
@keyframes exitModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.exit-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.exit-modal__close:hover { background: var(--bad-tint); color: var(--bad); }
.exit-modal__art { width: 190px; margin: 0 auto 14px; display: block; }
.exit-modal__title { font-size: 1.5rem; margin-bottom: 8px; }
.exit-modal__body { color: var(--text-muted); margin-bottom: 16px; }
.exit-modal__count-wrap { margin-bottom: 18px; }

/* ---------- Illustrations décoratives ---------- */
.motif-band { position: relative; overflow: hidden; }
.motif-band__art {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 22vw, 320px);
  opacity: 0.55;
  pointer-events: none;
}
.motif-band__art--left { left: clamp(8px, 3vw, 40px); }
.motif-band__art--right { right: clamp(8px, 3vw, 40px); }

@media (max-width: 700px) {
  .motif-band__art { display: none; }
  .exit-modal__art { width: 150px; }
  .countdown__digit { min-width: 26px; font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  .exit-modal__card { animation: none; }
}
.tv-ticker-wrapper { padding-top: 0px !important; height: 58px !important; }
.iti__selected-country, .iti__selected-dial-code { color: rgb(24, 33, 47) !important; }
.hero {
  background: #0e2036;
  padding-block: clamp(32px, 4vw, 64px);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #08192df5, #0a203ad9 40%, #10294245 78%);
}
.hero .hero__inner {
  grid-template: ". form" auto "title form" max-content "details form" max-content ". form" auto / minmax(0, 1fr) minmax(370px, 460px);
  row-gap: 0;
}
.hero .hero__title {
  grid-area: title;
  color: white;
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 0;
}
.hero__title em { font-family: Georgia, serif; font-weight: 400; color: #c5deff; }
.hero__more { grid-area: details; gap: 24px; margin-top: 20px; }
.hero .hero__lead { max-width: 45ch; color: #eef4fc; margin: 0; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(20px, 3vw, 48px);
  margin: 0;
  padding-block: 16px;
  border-block: 1px solid #b9d6ef55;
}
.hero__facts dt { color: #c7d7e8; font-size: .83rem; }
.hero__facts dd { color: white; font-weight: 600; margin: 3px 0 0; }
.hero__flags-caption { color: #e2ebf6; }
.hero .flag-chip { border: 0; box-shadow: none; color: white; background: #162c44; }
.hero .hero__aside {
  grid-area: form;
  align-self: center;
  min-width: 0;
  max-width: none;
  gap: 0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 16px 52px #04112055;
}
.hero__aside .form-block {
  padding: clamp(20px, 2.3vw, 34px);
  border: 0;
  box-shadow: none;
  background: transparent;
}
.hero__aside .form-block__heading {
  color: #122940;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -.035em;
  line-height: 1.14;
  margin-bottom: 20px;
}
.hero__aside .form-block__heading::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--accent);
}
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 12px clamp(20px, 2.3vw, 34px);
  background: #f0f4f9;
  border-top: 1px solid #d9e1eb;
  border-radius: 0 0 20px 20px;
}
.hero__links a { display: inline-flex; align-items: center; gap: 7px; color: #334963; font-size: .85rem; }
@media (max-width: 959px) {
  .hero { padding-block: 28px; }
  .hero .hero__inner {
    grid-template: "title" auto "form" auto "details" auto / minmax(0, 1fr);
    max-width: 640px;
    gap: 20px;
  }
  .hero .hero__title { font-size: clamp(2rem, 6vw, 3rem); }
  .hero__more { margin-top: 0; gap: 16px; }
}
@media(min-width: 960px) { .grid:has(> .review-card) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); } }
.market-note {display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 12px;background:#101f38;color:#eef4ff;font:500 .82rem/1.4 system-ui;}
.market-note i {width:19px;height:12px;border-radius:2px;background:linear-gradient(90deg,#5276ff 33%,white 33% 66%,#ff5968 66%);flex:none;}
.market-note a {color:#d5e5ff;border-left:1px solid #69788e;padding-left:12px;text-underline-offset:3px;white-space:nowrap;}
.site-header .header-account {display:inline-flex;align-items:center;gap:9px;background:#2139af;color:white;border-radius:9px;padding:8px 9px 8px 15px;font-weight:700;}
.header-account::after {content:"↗";display:grid;place-items:center;width:25px;height:25px;background:#ffffff24;border-radius:6px;}
.site-header .header-account:hover {background:#152a8c;}
@media(max-width:959px){
.market-note {font-size:.72rem;gap:6px;}
.market-note a {padding-left:7px;}
.site-header .header-account {font-size:.8rem;padding:7px 9px;gap:5px;}
}

/* Parcours d'inscription sur la page d'accueil */
.walkthrough__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.walkthrough__intro {
  padding: clamp(26px, 3.6vw, 50px);
  border-radius: 20px;
  color: white;
  background: radial-gradient(ellipse at 100% 100%, #254675, transparent 75%), #10243d;
}
.walkthrough__intro h2 {
  color: inherit;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.walkthrough__intro h2 em { font: italic 400 1em Georgia, serif; color: #c5deff; }
.walkthrough__intro p { margin: 18px 0 28px; max-width: 35ch; color: #e2ebf5; }
.walkthrough__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #edf4ff;
  color: #142a47;
  font-weight: 650;
}
.walkthrough__link:hover { background: white; color: #12243c; }
.walkthrough__link:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.walkthrough__steps { counter-reset: stage; list-style: none; padding: 0; margin: 0; }
.walkthrough__steps li {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 28px);
  border-top: 1px solid var(--border);
  padding-block: 18px;
  margin: 0;
}
.walkthrough__steps li:last-child { border-bottom: 1px solid var(--border); }
.walkthrough__steps li::before {
  content: counter(stage, decimal-leading-zero);
  grid-row: span 2;
  color: var(--accent);
  font: italic 400 2rem/1 Georgia, serif;
}
.walkthrough__steps h3 { font-size: 1.18rem; margin: 0 0 4px; }
.walkthrough__steps p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) {
  .walkthrough__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .walkthrough__intro { padding: 24px; }
  .walkthrough__intro p { margin: 12px 0 18px; }
  .walkthrough__steps li { grid-template-columns: 2.3rem minmax(0, 1fr); }
}