/* ==========================================================================
   PLATEFORME CRÉDIT — Design System « Signal »
   Direction : chaleur vintage (jaune pâle / sable / orange / flamme) posée
   sur un bleu nuit profond. Typo : Space Grotesk (display) + Geist (texte).
   Signature : la carte de simulation « ticket » à bord perforé, présente du
   hero jusqu'au tunnel de demande.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Geist:wght@400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --night:      #03022D;
  --night-2:    #0B0A45;
  --night-3:    #16155C;
  --cream:      #F5F0A9;
  --cream-soft: #F9F6C9;
  --sand:       #EBD189;
  --sand-soft:  #F3E4B4;
  --orange:     #FA9F42;
  --orange-2:   #FFB966;
  --flame:      #F4442E;
  --flame-2:    #FF6A55;
  --paper:      #FFFDF2;
  --white:      #FFFFFF;

  /* Texte */
  --ink:        #03022D;
  --ink-2:      rgba(3, 2, 45, 0.72);
  --ink-3:      rgba(3, 2, 45, 0.52);
  --snow:       #FFFDF2;
  --snow-2:     rgba(255, 253, 242, 0.78);
  --snow-3:     rgba(255, 253, 242, 0.55);

  /* États */
  --ok:         #1F7A4D;
  --ok-bg:      #E4F3EA;
  --err:        #C22B18;
  --err-bg:     #FBE8E4;

  /* Bordures */
  --line:       rgba(3, 2, 45, 0.14);
  --line-2:     rgba(3, 2, 45, 0.28);
  --line-snow:  rgba(255, 253, 242, 0.18);

  /* Typo */
  --font-d: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-b: 'Geist', 'Segoe UI', Arial, sans-serif;

  /* Échelle typographique */
  --fs-hero:  clamp(2.5rem, 5.5vw, 4.25rem);
  --fs-h1:    clamp(2.1rem, 4vw, 3.1rem);
  --fs-h2:    clamp(1.7rem, 3vw, 2.35rem);
  --fs-h3:    1.3rem;
  --fs-h4:    1.05rem;
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.78rem;

  /* Rythme */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4.5rem;
  --sp-9: 6rem;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(3, 2, 45, 0.08);
  --shadow-md: 0 10px 30px rgba(3, 2, 45, 0.12);
  --shadow-lg: 0 24px 60px rgba(3, 2, 45, 0.22);
  --shadow-flame: 0 12px 30px rgba(244, 68, 46, 0.32);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-b);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-d);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p  { margin: 0 0 var(--sp-4); overflow-wrap: break-word; }
a  { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--night); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
@media (max-width: 640px) { .container { padding: 0 var(--sp-4); } }

/* Icônes SVG monochromes */
.icon-mono {
  width: 1.35em; height: 1.35em;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Kicker / eyebrow — trait signature */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-d);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--flame);
  margin-bottom: var(--sp-4);
}
.kicker::before { content: ''; width: 26px; height: 3px; background: var(--flame); border-radius: 2px; }
.on-night .kicker { color: var(--orange); }
.on-night .kicker::before { background: var(--orange); }

/* Surlignage du mot-clé dans les titres */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.08em;
  height: 0.34em; background: var(--orange);
  z-index: -1; border-radius: 3px;
  transform: skewX(-8deg);
}
.hl--flame::after { background: var(--flame); opacity: 0.85; }
.on-night .hl::after { opacity: 0.9; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  padding: 0.9rem 1.7rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn .icon-mono { transition: transform 0.25s var(--ease); }
.btn:hover .icon-mono { transform: translateX(4px); }

.btn--flame { background: var(--flame); color: var(--snow); box-shadow: var(--shadow-flame); }
.btn--flame:hover { background: var(--flame-2); transform: translateY(-2px); }

.btn--night { background: var(--night); color: var(--snow); }
.btn--night:hover { background: var(--night-3); transform: translateY(-2px); }

.btn--orange { background: var(--orange); color: var(--night); }
.btn--orange:hover { background: var(--orange-2); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--night); transform: translateY(-2px); }
.on-night .btn--ghost { color: var(--snow); border-color: var(--line-snow); }
.on-night .btn--ghost:hover { border-color: var(--snow); }

.btn--lg { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ── Bandeau légal ───────────────────────────────────────────────────────── */
.legal-banner {
  background: var(--night); color: var(--snow-2);
  font-size: var(--fs-xs); text-align: center;
  padding: 0.45rem var(--sp-4);
  border-bottom: 1px solid var(--line-snow);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-5);
  position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.brand img, .brand svg { height: 40px; width: auto; }
.brand__name {
  font-family: var(--font-d); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.02em; color: var(--night);
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.main-nav > li { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-d); font-weight: 500; font-size: var(--fs-sm);
  color: var(--ink-2); text-decoration: none;
  padding: 0.6rem 0.85rem; border-radius: var(--r-sm);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--night); background: var(--cream-soft); }
.nav-link.is-active { color: var(--flame); }
.nav-link .chev { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* ── Mega menu ───────────────────────────────────────────────────────────── */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(880px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  display: grid; grid-template-columns: 1.9fr 1fr; gap: var(--sp-5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mega.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.mega__item {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.8rem; border-radius: var(--r-md); text-decoration: none;
  transition: background 0.2s;
}
.mega__item:hover { background: var(--cream-soft); }
.mega__icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--night); color: var(--orange);
}
.mega__item:nth-child(2n) .mega__icon { background: var(--flame); color: var(--snow); }
.mega__item:nth-child(3) .mega__icon,
.mega__item:nth-child(6) .mega__icon { background: var(--orange); color: var(--night); }
.mega__title { font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm); color: var(--night); margin: 0 0 2px; }
.mega__desc { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; line-height: 1.45; }
.mega__aside {
  background: var(--night); border-radius: var(--r-md);
  padding: var(--sp-5); color: var(--snow);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-4);
  position: relative; overflow: hidden;
}
.mega__aside::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--flame); opacity: 0.55; filter: blur(2px);
}
.mega__aside h4 { color: var(--snow); margin-bottom: var(--sp-2); }
.mega__aside p { color: var(--snow-3); font-size: var(--fs-sm); margin-bottom: 0; }
.mega__aside .btn { position: relative; z-index: 1; align-self: flex-start; }
.mega__footer {
  grid-column: 1 / -1; border-top: 1px solid var(--line);
  padding-top: var(--sp-4); display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-sm);
}
.mega__footer a { color: var(--flame); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.mega__footer a:hover { text-decoration: underline; }

/* ── Sélecteur de langue (dropdown) ─────────────────────────────────────── */
.lang-switch { position: relative; margin-left: var(--sp-3); }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-d); font-weight: 600; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.55rem 0.85rem;
  background: var(--white); border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill); cursor: pointer;
  transition: border-color 0.2s;
}
.lang-switch__btn:hover, .lang-switch__btn[aria-expanded="true"] { border-color: var(--night); }
.lang-switch__btn .chev { width: 0.9em; height: 0.9em; transition: transform 0.25s var(--ease); }
.lang-switch__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 0.4rem; z-index: 210;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.lang-switch__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.55rem 0.75rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); text-decoration: none; color: var(--ink-2);
}
.lang-switch__menu a:hover { background: var(--cream-soft); color: var(--night); }
.lang-switch__menu a.is-current { color: var(--flame); font-weight: 600; }
.lang-switch__menu a.is-current .icon-mono { color: var(--flame); }

.header-cta { margin-left: var(--sp-3); flex-shrink: 0; }

/* ── Burger + drawer mobile ─────────────────────────────────────────────── */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; margin-left: auto; color: var(--night);
}
.burger .icon-mono { width: 1.7em; height: 1.7em; }

.drawer {
  position: fixed; inset: 0; z-index: 300;
  visibility: hidden; pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(3, 2, 45, 0.55);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(380px, 88vw);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line);
}
.drawer__close { background: none; border: none; cursor: pointer; padding: 0.4rem; color: var(--night); }
.drawer__nav { padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-d); font-weight: 600; font-size: 1.05rem;
  color: var(--night); text-decoration: none;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; cursor: pointer;
}
.drawer__link .chev { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.drawer__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drawer__sub { display: none; padding: 0.25rem 0 0.75rem; }
.drawer__sub.is-open { display: block; }
.drawer__sub a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.25rem; font-size: var(--fs-sm); color: var(--ink-2);
  text-decoration: none; border-radius: var(--r-sm);
}
.drawer__sub a:hover { color: var(--flame); }
.drawer__sub .icon-mono { color: var(--flame); }
.drawer__cta { padding: var(--sp-4) var(--sp-5) var(--sp-6); margin-top: auto; }
.drawer__lang { padding: 0 var(--sp-5) var(--sp-4); }
.drawer__lang-label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); margin-bottom: var(--sp-2); font-family: var(--font-d); font-weight: 600;
}

@media (max-width: 1023px) {
  .main-nav, .header-cta, .lang-switch--desktop { display: none; }
  .burger { display: inline-flex; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--night);
  color: var(--snow);
  overflow: hidden;
}
.hero::before {
  /* Halo flamme, vivant mais discret */
  content: ''; position: absolute; top: -220px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,68,46,0.5), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -260px; left: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250,159,66,0.35), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-7); align-items: center;
  padding: var(--sp-8) 0 var(--sp-8);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(250,159,66,0.14);
  border: 1px solid rgba(250,159,66,0.4);
  color: var(--orange);
  font-family: var(--font-d); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 0.95rem; border-radius: var(--r-pill);
  margin-bottom: var(--sp-5);
}
.hero__title {
  font-size: var(--fs-hero); font-weight: 700; color: var(--snow);
  margin-bottom: var(--sp-5);
}
.hero__title .hl { color: var(--night); z-index: 0; }
.hero__title .hl::after { top: 0.05em; bottom: 0.02em; height: auto; left: -3%; right: -3%; z-index: -1; }
.hero__sub { color: var(--snow-2); font-size: 1.08rem; max-width: 34rem; margin-bottom: var(--sp-5); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); }
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--snow-2); }
.hero__trust .icon-mono { color: var(--orange); }
.hero__rating { display: flex; align-items: center; gap: 0.7rem; font-size: var(--fs-sm); color: var(--snow-3); }
.hero__stars { display: inline-flex; gap: 2px; color: var(--orange); }
.hero__stars .icon-mono { width: 1.05em; height: 1.05em; fill: currentColor; stroke: none; }
.hero__photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.16; mix-blend-mode: luminosity;
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--night) 30%, rgba(3,2,45,0.55) 70%, rgba(3,2,45,0.75));
}

/* ── Ticket de simulation (signature) ───────────────────────────────────── */
.ticket {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px; margin-left: auto;
  width: 100%;
}
.ticket__body { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.ticket__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.ticket__head h3 { margin: 0; font-size: 1.1rem; }
.ticket__badge {
  font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-d);
  background: var(--cream); color: var(--night);
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
}
.ticket .field { margin-bottom: var(--sp-4); }
.ticket label {
  display: block; font-family: var(--font-d); font-weight: 600;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin-bottom: 0.45rem;
}
.type-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.type-pill {
  font-size: var(--fs-xs); font-weight: 500;
  padding: 0.45rem 0.8rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2); background: var(--white);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.type-pill:hover { border-color: var(--night); }
.type-pill.is-active { background: var(--night); color: var(--snow); border-color: var(--night); }

.range-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: 0.4rem; }
.range-value { font-family: var(--font-d); font-weight: 700; font-size: 1.45rem; color: var(--night); white-space: nowrap; }
.range-value small { font-size: 0.85rem; font-weight: 500; color: var(--ink-3); }
input[type="range"] {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--flame) var(--fill, 30%), var(--sand-soft) var(--fill, 30%));
  border-radius: 3px; outline-offset: 6px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--night); border: 4px solid var(--paper);
  box-shadow: var(--shadow-md); cursor: grab;
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--night); border: 4px solid var(--paper);
  box-shadow: var(--shadow-md); cursor: grab;
}
.range-bounds { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 0.35rem; }

/* ── Saisie manuelle montant / durée (étape 1) ──────────────────────────── */
.amount-input { position: relative; }
.amount-input input[type="number"] {
  width: 100%; padding: 0.85rem 3.4rem 0.85rem 1rem;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-d); font-weight: 700; font-size: 1.25rem; color: var(--night);
  -moz-appearance: textfield;
}
.amount-input input[type="number"]::-webkit-outer-spin-button,
.amount-input input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.amount-input input[type="number"]:focus {
  outline: none; border-color: var(--night);
  box-shadow: 0 0 0 3px rgba(3,2,45,0.1);
}
.amount-input__suffix {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3);
  pointer-events: none;
}

/* Perforation du ticket */
.ticket__tear {
  position: relative; height: 0;
  border-top: 2px dashed var(--line-2);
  margin: 0 var(--sp-4);
}
.ticket__tear::before, .ticket__tear::after {
  content: ''; position: absolute; top: -13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--night);
}
.ticket__tear::before { left: calc(-1 * var(--sp-4) - 13px); }
.ticket__tear::after { right: calc(-1 * var(--sp-4) - 13px); }
/* Variante hors hero (fond clair derrière) */
.ticket--light .ticket__tear::before, .ticket--light .ticket__tear::after { background: var(--cream); }
.ticket--onpaper .ticket__tear::before, .ticket--onpaper .ticket__tear::after { background: var(--paper); }

.ticket__result {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
  flex-wrap: wrap;
}
.ticket__monthly-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-family: var(--font-d); font-weight: 600; margin-bottom: 0.2rem; }
.ticket__monthly {
  font-family: var(--font-d); font-weight: 700;
  font-size: 2rem; color: var(--flame); line-height: 1;
  white-space: nowrap;
}
.ticket__monthly small { font-size: 0.95rem; color: var(--ink-3); font-weight: 500; }
.ticket__taeg { font-size: var(--fs-xs); color: var(--ink-3); }
.ticket__footer { padding: 0 var(--sp-5) var(--sp-5); }
.ticket__secure {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-3);
}
.ticket__secure .icon-mono { color: var(--ok); width: 1.1em; height: 1.1em; }

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); padding: var(--sp-7) 0; }
  .ticket { margin: 0 auto; }
}

/* ── Sections génériques ────────────────────────────────────────────────── */
.section { padding: var(--sp-9) 0; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand-soft); }
.section--night { background: var(--night); color: var(--snow); }
.section--night h2, .section--night h3 { color: var(--snow); }
.section--flame { background: var(--flame); color: var(--snow); }
.section__head { max-width: 720px; margin-bottom: var(--sp-7); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.section__sub { color: var(--ink-2); font-size: 1.05rem; }
.section--night .section__sub { color: var(--snow-2); }
@media (max-width: 767px) { .section { padding: var(--sp-8) 0; } }

/* Révélation au scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ── Grille des 6 types de crédit ───────────────────────────────────────── */
.types-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.type-card {
  position: relative;
  background: var(--white); border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.type-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--accent, var(--flame));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.type-card:hover::before { transform: scaleX(1); }
.type-card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft, var(--cream));
  color: var(--accent-ink, var(--night));
  margin-bottom: var(--sp-4);
}
.type-card__icon .icon-mono { width: 1.7em; height: 1.7em; }
.type-card h3 { margin-bottom: var(--sp-2); }
.type-card p { color: var(--ink-2); font-size: var(--fs-sm); flex-grow: 1; }
.type-card__link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm);
  color: var(--night); margin-top: var(--sp-3);
}
.type-card:hover .type-card__link { color: var(--flame); }
.type-card:hover .type-card__link .icon-mono { transform: translateX(4px); }
.type-card__link .icon-mono { transition: transform 0.25s var(--ease); }

/* Accents par type */
.type-card--express  { --accent: var(--flame);  --accent-soft: #FDE3DF; --accent-ink: var(--flame); }
.type-card--personal { --accent: var(--night);  --accent-soft: #E2E1F0; --accent-ink: var(--night); }
.type-card--revolving{ --accent: var(--orange); --accent-soft: #FEEBD5; --accent-ink: #B65E0B; }
.type-card--buyback  { --accent: var(--night-3);--accent-soft: #E6E5F5; --accent-ink: var(--night-3); }
.type-card--auto     { --accent: #B65E0B;       --accent-soft: var(--sand-soft); --accent-ink: #8A4A0A; }
.type-card--works    { --accent: var(--flame-2);--accent-soft: #FDE8DC; --accent-ink: #C2431F; }

@media (max-width: 1023px) { .types-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .types-grid { grid-template-columns: 1fr; } }

/* ── Étapes (4) ─────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.step-card { position: relative; padding-top: var(--sp-4); }
.step-card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-d); font-weight: 700; font-size: 3.2rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--flame);
  line-height: 1; display: block; margin-bottom: var(--sp-3);
}
.step-card::after {
  content: ''; position: absolute; top: 2rem; left: 4.6rem; right: -1rem;
  height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px);
}
.steps-grid .step-card:last-child::after { display: none; }
.step-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.step-card p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 1023px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid .step-card:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
}

/* ── « Pourquoi nous » — cartes avec photo duotone ──────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.why-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card__photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.why-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: saturate(0.85); }
.why-card:hover .why-card__photo img { transform: scale(1.05); }
.why-card__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,2,45,0.05), rgba(3,2,45,0.35));
}
.why-card__badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 1;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--orange); color: var(--night);
  box-shadow: var(--shadow-sm);
}
.why-card__body { padding: var(--sp-5); }
.why-card__body h3 { margin-bottom: var(--sp-2); }
.why-card__body p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 1023px) { .why-grid { grid-template-columns: 1fr; } }

/* ── Bande statistiques (nuit) ──────────────────────────────────────────── */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); text-align: center; }
.stat b {
  display: block; font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem); color: var(--orange); line-height: 1.05;
  white-space: nowrap;
}
.stat span { font-size: var(--fs-sm); color: var(--snow-3); }
@media (max-width: 767px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }

/* ── Avis (carrousel scroll-snap) ───────────────────────────────────────── */
.reviews-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 82vw);
  gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--sp-2) var(--sp-2) var(--sp-5);
  margin: 0 calc(-1 * var(--sp-2));
  scrollbar-width: thin; scrollbar-color: var(--night) transparent;
}
.reviews-rail::-webkit-scrollbar { height: 8px; }
.reviews-rail::-webkit-scrollbar-thumb { background: var(--night); border-radius: 4px; }
.review-card {
  scroll-snap-align: start;
  background: var(--white); border-radius: var(--r-lg);
  padding: var(--sp-5); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.review-card__stars { display: flex; gap: 2px; color: var(--orange); }
.review-card__stars .icon-mono { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }
.review-card__stars .icon-mono.is-off { fill: var(--sand-soft); }
.review-card h4 { margin: 0; }
.review-card p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; flex-grow: 1; }
.review-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); }
.review-card__meta .verified { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ok); font-weight: 600; }

/* ── Carrousel avis : flèches + puces ───────────────────────────────────── */
.reviews-carousel { position: relative; }
.reviews-carousel__controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-4); margin-top: var(--sp-2);
}
.reviews-carousel__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid var(--line-2);
  background: var(--white); color: var(--night); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.reviews-carousel__arrow:hover { border-color: var(--night); transform: translateY(-2px); }
.reviews-carousel__arrow:disabled { opacity: 0.35; cursor: default; transform: none; }
.reviews-carousel__arrow .icon-mono { width: 1.2em; height: 1.2em; }
.reviews-carousel__dots { display: flex; align-items: center; gap: 0.5rem; }
.reviews-carousel__dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: none; background: var(--sand-soft); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.reviews-carousel__dot:hover { background: var(--ink-3); }
.reviews-carousel__dot.is-active { background: var(--flame); transform: scale(1.25); }

/* ── Partenaires ────────────────────────────────────────────────────────── */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.partner-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.partner-card__photo { aspect-ratio: 5 / 3; overflow: hidden; position: relative; }
.partner-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.partner-card__photo::after { content: ''; position: absolute; inset: 0; background: rgba(3,2,45,0.08); }
.partner-card__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.partner-card__name { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; color: var(--night); margin-bottom: 0.25rem; }
.partner-card__desc { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
@media (max-width: 1023px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .partners-grid { grid-template-columns: 1fr; } }

/* ── Bande CTA flamme ───────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 2px dashed rgba(255,253,242,0.35);
}
.cta-band::before { width: 300px; height: 300px; top: -140px; left: -90px; }
.cta-band::after { width: 380px; height: 380px; bottom: -190px; right: -120px; }
.cta-band h2 { color: var(--snow); }
.cta-band p { color: rgba(255,253,242,0.85); max-width: 34rem; margin: 0 auto var(--sp-5); }
.cta-band .btn--night:hover { background: var(--night-2); }
.cta-band__inner { position: relative; z-index: 1; }

/* ── FAQ accordéon ──────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.is-open { border-color: var(--night); box-shadow: var(--shadow-sm); }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); background: none; border: none;
  font-family: var(--font-d); font-weight: 600; font-size: 1rem; text-align: left;
  cursor: pointer; color: var(--night);
}
.faq-item__q .faq-toggle {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--cream); color: var(--night);
  transition: background 0.25s, transform 0.3s var(--ease);
}
.faq-item.is-open .faq-toggle { background: var(--flame); color: var(--snow); transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item__a > div { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-2); font-size: var(--fs-sm); }

/* ── Page type de crédit ────────────────────────────────────────────────── */
.credit-hero { background: var(--night); color: var(--snow); position: relative; overflow: hidden; }
.credit-hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-7);
  align-items: center; padding: var(--sp-8) 0; position: relative; z-index: 1;
}
.credit-hero::after {
  content: ''; position: absolute; top: -180px; right: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250,159,66,0.4), transparent 65%);
}
.credit-hero h1 { color: var(--snow); margin-bottom: var(--sp-4); }
.credit-hero .lead { color: var(--snow-2); font-size: 1.1rem; margin-bottom: var(--sp-5); }
.credit-hero__facts { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.fact-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,253,242,0.08); border: 1px solid var(--line-snow);
  padding: 0.5rem 0.95rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); color: var(--snow-2);
}
.fact-chip .icon-mono { color: var(--orange); }
.credit-hero__photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg);
}
.credit-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.credit-hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3,2,45,0.55));
}
.credit-hero__tag {
  position: absolute; bottom: 14px; left: 14px; z-index: 1;
  background: var(--orange); color: var(--night);
  font-family: var(--font-d); font-weight: 600; font-size: var(--fs-xs);
  padding: 0.45rem 0.9rem; border-radius: var(--r-pill);
}
@media (max-width: 1023px) {
  .credit-hero__grid { grid-template-columns: 1fr; padding: var(--sp-7) 0; }
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: var(--fs-xs); color: var(--snow-3); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--snow-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { opacity: 0.5; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.split__photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .split { grid-template-columns: 1fr; gap: var(--sp-6); } }

.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.benefit {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.benefit .icon-mono { color: var(--flame); width: 1.5em; height: 1.5em; margin-top: 2px; }
.benefit span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
@media (max-width: 640px) { .benefits-grid { grid-template-columns: 1fr; } }

.docs-box {
  background: var(--cream); border-radius: var(--r-lg);
  padding: var(--sp-6); border: 1px solid var(--sand);
}
.docs-box__item {
  display: flex; gap: var(--sp-3); align-items: center;
  background: var(--white); border-radius: var(--r-md);
  padding: var(--sp-4); margin: var(--sp-4) 0;
  font-weight: 500;
}
.docs-box__item .icon-mono { color: var(--flame); width: 1.6em; height: 1.6em; }
.docs-box__note { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }

.other-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.other-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  text-align: center; text-decoration: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-3);
  color: var(--ink); font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-d);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.other-card:hover { transform: translateY(-4px); border-color: var(--flame); color: var(--flame); }
.other-card .icon-mono { width: 1.8em; height: 1.8em; color: var(--night); }
.other-card:hover .icon-mono { color: var(--flame); }
@media (max-width: 1023px) { .other-rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .other-rail { grid-template-columns: repeat(2, 1fr); } }

/* ── Page hero clair (about, contact, faq, legal) ───────────────────────── */
.page-hero { background: var(--cream); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.page-hero::after {
  content: ''; position: absolute; right: -110px; top: -110px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 2.5px dashed var(--orange); opacity: 0.55;
}
.page-hero h1 { max-width: 720px; }
.page-hero .lead { color: var(--ink-2); font-size: 1.1rem; max-width: 620px; margin: 0; }

/* ── À propos ───────────────────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: flex-start;
}
.value-card__icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--night); color: var(--orange);
}
.value-card:nth-child(2) .value-card__icon { background: var(--flame); color: var(--snow); }
.value-card:nth-child(3) .value-card__icon { background: var(--orange); color: var(--night); }
.value-card:nth-child(4) .value-card__icon { background: var(--sand); color: var(--night); }
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.value-card p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
@media (max-width: 767px) { .values-grid { grid-template-columns: 1fr; } }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-7); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-info__item {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.contact-info__item .icon-mono { color: var(--flame); width: 1.5em; height: 1.5em; margin-top: 3px; }
.contact-info__item b { display: block; font-family: var(--font-d); font-size: var(--fs-sm); }
.contact-info__item span { font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Formulaires ────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--font-d); font-weight: 600;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-2); margin-bottom: 0.45rem;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--night);
  box-shadow: 0 0 0 3px rgba(3,2,45,0.1);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .error-msg { color: var(--err); font-size: var(--fs-xs); margin-top: 0.35rem; display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }

.alert {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  border-radius: var(--r-md); padding: var(--sp-4);
  font-size: var(--fs-sm); margin-bottom: var(--sp-5);
}
.alert .icon-mono { margin-top: 2px; }
.alert--ok { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(31,122,77,0.3); }
.alert--err { background: var(--err-bg); color: var(--err); border: 1px solid rgba(194,43,24,0.3); }
.alert--info { background: var(--cream); color: var(--night); border: 1px solid var(--sand); }

/* ── Tunnel de demande ──────────────────────────────────────────────────── */
.apply-shell { background: var(--cream); min-height: calc(100vh - var(--header-h)); padding: var(--sp-7) 0 var(--sp-8); }
.apply-wrap { max-width: 760px; margin: 0 auto; }
.apply-head { text-align: center; margin-bottom: var(--sp-6); }
.apply-head h1 { margin-bottom: var(--sp-2); }
.apply-head p { color: var(--ink-2); margin: 0; }

.apply-progress { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-bottom: var(--sp-6); flex-wrap: wrap; }
.apply-progress__step {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-d); font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-3);
}
.apply-progress__dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line-2); background: var(--white);
  font-size: 0.75rem;
}
.apply-progress__step.is-done .apply-progress__dot { background: var(--night); border-color: var(--night); color: var(--snow); }
.apply-progress__step.is-current { color: var(--night); }
.apply-progress__step.is-current .apply-progress__dot { background: var(--flame); border-color: var(--flame); color: var(--snow); }
.apply-progress__bar { width: 26px; height: 2px; background: var(--line-2); }
.apply-progress__step.is-done + .apply-progress__bar { background: var(--night); }
.apply-progress__label { display: none; }
@media (min-width: 900px) {
  .apply-progress__step.is-current .apply-progress__label { display: inline; }
  .apply-progress__bar { width: 34px; }
}

.apply-card {
  background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.apply-card__body { padding: var(--sp-6); }
@media (max-width: 640px) { .apply-card__body { padding: var(--sp-5) var(--sp-4); } }

.apply-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
  background: var(--night); color: var(--snow);
  padding: var(--sp-5) var(--sp-6);
}
.apply-summary div b { display: block; font-family: var(--font-d); font-size: 1.15rem; color: var(--orange); white-space: nowrap; }
.apply-summary div span { font-size: var(--fs-xs); color: var(--snow-3); }
@media (max-width: 640px) { .apply-summary { grid-template-columns: 1fr 1fr; padding: var(--sp-4); } }

.result-rows { display: flex; flex-direction: column; }
.result-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  padding: 0.8rem 0; border-bottom: 1px dashed var(--line-2);
  font-size: var(--fs-sm);
}
.result-row:last-child { border-bottom: none; }
.result-row b { font-family: var(--font-d); white-space: nowrap; }
.result-row.is-total { font-size: 1.05rem; }
.result-row.is-total b { color: var(--flame); font-size: 1.3rem; }

.amort-details { margin-top: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.amort-details summary {
  cursor: pointer; padding: var(--sp-4);
  font-family: var(--font-d); font-weight: 600; font-size: var(--fs-sm);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); list-style: none;
}
.amort-details summary::-webkit-details-marker { display: none; }
.amort-details[open] summary { border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; max-height: 340px; overflow-y: auto; }
.amort-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.amort-table th {
  position: sticky; top: 0; background: var(--night); color: var(--snow);
  font-family: var(--font-d); font-weight: 600; text-align: right;
  padding: 0.6rem 0.9rem; white-space: nowrap;
}
.amort-table th:first-child, .amort-table td:first-child { text-align: left; }
.amort-table td { padding: 0.55rem 0.9rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.amort-table tr:nth-child(even) td { background: var(--cream-soft); }

.check-field { display: flex; gap: var(--sp-3); align-items: flex-start; margin: var(--sp-5) 0; }
.check-field input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--flame); flex-shrink: 0; }
.check-field span { font-size: var(--fs-sm); color: var(--ink-2); }

.upload-zone {
  border: 2px dashed var(--line-2); border-radius: var(--r-lg);
  padding: var(--sp-6); text-align: center; cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  background: var(--white);
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--flame); background: var(--cream-soft); }
.upload-zone.has-file { border-color: var(--ok); background: var(--ok-bg); border-style: solid; }
.upload-zone input { display: none; }
.upload-zone .icon-mono { width: 2.4em; height: 2.4em; color: var(--flame); margin: 0 auto var(--sp-3); display: block; }
.upload-zone.has-file .icon-mono { color: var(--ok); }
.upload-zone b { font-family: var(--font-d); display: block; margin-bottom: 0.3rem; }
.upload-zone small { color: var(--ink-3); font-size: var(--fs-xs); }
.upload-zone .file-name { color: var(--ok); font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; }

.apply-actions { display: flex; gap: var(--sp-4); justify-content: space-between; align-items: center; margin-top: var(--sp-5); flex-wrap: wrap; }
.apply-secure { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-4); }
.apply-secure .icon-mono { color: var(--ok); width: 1.1em; height: 1.1em; }

/* Barre abandon (verrouillage du parcours) */
.abandon-bar {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  flex-wrap: wrap; margin-top: var(--sp-5);
  font-size: var(--fs-xs); color: var(--ink-3);
}
.abandon-link {
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: var(--fs-xs); text-decoration: underline;
  padding: 0.3rem;
}
.abandon-link:hover { color: var(--err); }

/* Modale abandon */
.modal { position: fixed; inset: 0; z-index: 400; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,2,45,0.6); }
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 2rem));
  background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-6);
  text-align: center;
}
.modal__icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto var(--sp-4);
  display: grid; place-items: center; background: var(--err-bg); color: var(--err);
}
.modal__panel h3 { margin-bottom: var(--sp-2); }
.modal__panel p { color: var(--ink-2); font-size: var(--fs-sm); }
.modal__actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }

/* Succès */
.success-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center; margin: 0 auto var(--sp-5);
}
.success-icon .icon-mono { width: 2.4em; height: 2.4em; }
.tracking-code {
  display: inline-block; font-family: var(--font-d); font-weight: 700;
  font-size: 1.6rem; letter-spacing: 0.14em;
  background: var(--night); color: var(--orange);
  padding: 0.7rem 1.6rem; border-radius: var(--r-md);
  margin: var(--sp-2) 0 var(--sp-5);
}
.next-steps { text-align: left; display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-5) 0; }
.next-steps li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.next-steps .icon-mono { color: var(--ok); margin-top: 2px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: var(--snow-2); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6);
  padding: var(--sp-8) 0 var(--sp-6);
}
.footer-brand img, .footer-brand svg { height: 40px; width: auto; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); color: var(--snow-3); max-width: 28rem; }
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-snow); color: var(--snow-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--flame); border-color: var(--flame); color: var(--snow); }
.footer-col h4 {
  color: var(--snow); font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--snow-3); font-size: var(--fs-sm); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-col .contact-line { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--snow-3); overflow-wrap: anywhere; }
.footer-col .contact-line .icon-mono { color: var(--orange); margin-top: 3px; }
.footer-legal {
  border-top: 1px solid var(--line-snow);
  padding: var(--sp-5) 0;
  font-size: var(--fs-xs); color: var(--snow-3);
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.footer-legal__links a {
  color: var(--snow-2); text-decoration: none;
  border: 1px solid var(--line-snow); border-radius: var(--r-pill);
  padding: 0.35rem 0.9rem; transition: border-color 0.2s, color 0.2s;
}
.footer-legal__links a:hover { border-color: var(--orange); color: var(--orange); }
.footer-legal p { margin: 0 0 var(--sp-2); line-height: 1.7; }
.footer-copyright { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center; margin-top: var(--sp-4); }
@media (max-width: 1023px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-top { grid-template-columns: 1fr; } }

/* ── Page 404 / erreurs ─────────────────────────────────────────────────── */
.error-page { text-align: center; padding: var(--sp-9) 0; }
.error-page .code {
  font-family: var(--font-d); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem);
  color: transparent; -webkit-text-stroke: 2px var(--flame); line-height: 1;
}

/* ── Prose (pages légales) ──────────────────────────────────────────────── */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; margin-top: var(--sp-6); }