/* FactuPay — composants et pages marketing */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: var(--fw-text);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: var(--ls-text);
  color: #000;
  background: var(--c-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
p { margin: 0; }
.page { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Typographie ---------- */
.display, .h1, .h2, .h3, .h4, .h5, .h6, .title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: var(--fw-headline);
  letter-spacing: var(--ls-headline);
  line-height: 1.1;
  color: var(--text, #000);
  text-wrap: balance;
}
.display { font-size: var(--fs-display-3); line-height: 1; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }
.h5 { font-size: var(--fs-h5); }
.h6 { font-size: var(--fs-h6); }
.title { font-size: var(--fs-title); line-height: 1.2; letter-spacing: var(--ls-title); }
.t-xl { font-size: var(--fs-body-xl); line-height: 1.2; letter-spacing: var(--ls-title); }
.t-l { font-size: var(--fs-body-l); }
.t-s { font-size: var(--fs-body-s); }
.t-caption { font-size: var(--fs-caption); }
.t-bold { font-weight: var(--fw-strong); }
.muted { color: var(--muted-c, var(--muted)); }
.hl { color: var(--hl); }
.optical { transform: translateX(-.06em); }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--rail); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--sp-xl); position: relative; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-sm); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: var(--btn-h); padding: 0 var(--btn-px);
  border: 0; border-radius: var(--r-pill);
  font-family: var(--font-text); font-weight: var(--fw-strong); font-size: 1rem; line-height: 24px; letter-spacing: var(--ls-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.btn-primary { background: var(--btn-primary); color: var(--btn-primary-text, #fff); }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-primary:active { background: var(--btn-primary-active); }
.btn-secondary { background: var(--btn-secondary); color: var(--text, #000); }
.btn-secondary:hover { background: var(--btn-secondary-hover); }
.btn-secondary:active { background: var(--btn-secondary-active); }
.btn-sm { height: var(--btn-h-sm); padding: 0 var(--btn-px-sm); font-size: .75rem; line-height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row.center { justify-content: center; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center;
  padding-right: 1.75rem; font-weight: var(--fw-strong); text-decoration: none; color: var(--text, #000);
}
.link-arrow::after {
  content: ""; position: absolute; right: 1.125rem; top: 50%; width: .5rem; height: .5rem;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translate(100%, -50%) rotate(45deg);
}
.link-arrow:hover::after { animation: arrow-nudge var(--t-fast) ease-out forwards; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: .2em; }
@keyframes arrow-nudge { from { right: 1.125rem; } to { right: .875rem; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #000; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-word { font-family: var(--font-headline); font-weight: 900; font-size: 1.55rem; letter-spacing: -.035em; line-height: 1; }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 60; height: var(--header-h); background: #fff; }
.site-header .bar { height: 100%; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); padding-inline: clamp(1rem, 4.4vw, 4rem); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem; height: 48px; padding: 0 1rem;
  border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer;
  font-weight: var(--fw-strong); font-size: 1.0625rem; color: #000; text-decoration: none;
  transition: background-color var(--t-base) var(--ease-out);
}
.nav-link:hover { background: var(--tint-04); }
.nav-item.open > .nav-link { background: var(--tint-08); }
.chev { width: 12px; height: 12px; transition: transform var(--t-base) var(--ease-bounce); }
.nav-item.open .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; width: min(26rem, 90vw);
  padding: .75rem; background: #fff; border-radius: var(--r-jumbo);
  box-shadow: 0 1px 2px rgba(0, 20, 53, .06), 0 16px 48px rgba(0, 20, 53, .14);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top left; pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.nav-item.open .dropdown { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 1rem; text-decoration: none; transition: background-color var(--t-base) var(--ease-out); }
.dropdown a:hover { background: var(--tint-04); }
.dropdown .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-08); color: var(--c-navy); }
.dropdown .ico svg { width: 20px; height: 20px; }
.dropdown strong { display: block; font-size: 1rem; }
.dropdown span { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.header-actions .nav-link { padding: 0 .75rem; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: var(--r-pill); background: var(--tint-08); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1023px) {
  .nav, .header-actions .hide-m { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 480px) {
  /* Le bouton reste dans le menu et dans le héros */
  .header-actions .btn-primary { display: none; }
}

/* Menu mobile */
.mobile-menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.mobile-menu .scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.mobile-menu .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; padding: 1rem 1.25rem 2rem; display: flex; flex-direction: column; gap: .25rem; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--t-base) var(--ease-out);
}
.mobile-menu.open { visibility: visible; }
.mobile-menu.open .scrim { opacity: 1; }
.mobile-menu.open .panel { transform: none; }
.mobile-menu .panel-head { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: .5rem; }
.mobile-menu .panel a.m-link { display: block; padding: 1rem; border-radius: 1rem; font-family: var(--font-headline); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; text-decoration: none; transition: background-color var(--t-base) var(--ease-out); }
.mobile-menu .panel a.m-link:hover { background: var(--tint-04); }
.mobile-menu .panel .btn { width: 100%; margin-top: .5rem; }

/* ---------- Héros ---------- */
.hero-wrap { position: relative; height: 200vh; height: 200lvh; min-height: 84rem; }
.hero {
  --p: 0;
  position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 42rem; overflow: hidden;
  opacity: 0; animation: fade-in var(--t-entry) var(--ease-entry) forwards;
}
.hero-copy {
  position: relative; z-index: 1; padding-top: clamp(2.5rem, 12vh, 8.5rem);
  opacity: calc(1 - var(--p) * 1.8);
  transform: translateY(calc(var(--p) * -14vh));
}
.hero-copy .h1 { max-width: 13ch; margin-inline: auto; }
.words .w { display: inline-block; opacity: 0; animation: fade-in var(--word-step) ease forwards; animation-delay: calc(var(--i) * var(--word-step)); }
.hero-sub { max-width: 34rem; margin: var(--sp-md) auto 0; opacity: 0; animation: rise-in var(--t-entry) var(--ease-entry) 1.1s forwards; }
.hero-copy .btn-row { margin-top: var(--sp-md); opacity: 0; animation: rise-in var(--t-entry) var(--ease-entry) 1.3s forwards; }

.hero-frame {
  --top: 70vh; --side: 30vw; --rad: 32px; --bar: 72px; --pad: 10px; --mrad: 16px;
  position: absolute; z-index: 2; left: var(--side); right: var(--side); top: var(--top); bottom: 0;
  background: #fff; border-radius: var(--rad) var(--rad) 0 0; overflow: hidden;
  opacity: 0; animation: frame-in var(--t-entry) var(--ease-entry) .5s forwards;
  will-change: top, left, right;
}
.frame-bar { height: var(--bar); display: grid; place-items: center; overflow: hidden; }
.frame-bar .logo { opacity: calc(1 - var(--p) * 2.2); }
.frame-media {
  position: absolute; top: var(--bar); left: var(--pad); right: var(--pad); bottom: 0;
  border-radius: var(--mrad) var(--mrad) 0 0; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, #1e4fd8 0%, rgba(0, 41, 145, 0) 60%), radial-gradient(90% 70% at 0% 100%, rgba(96, 205, 255, .35) 0%, rgba(96, 205, 255, 0) 60%), var(--c-navy);
}
.frame-media .dash { position: absolute; left: 50%; top: clamp(1.25rem, 4vh, 3rem); width: min(31rem, calc(100% - 2rem)); transform: translateX(-50%); }
@media (min-width: 1024px) {
  /* En plein écran, le tableau de bord glisse à droite pour laisser la place au titre */
  .frame-media .dash { left: calc(50% + clamp(0px, (var(--p) - .45) * 2 * 20vw, 20vw)); top: calc(clamp(1.25rem, 4vh, 3rem) + clamp(0px, (var(--p) - .45) * 2 * 8vh, 8vh)); }
}
.frame-title {
  position: absolute; left: var(--rail); right: var(--rail); bottom: clamp(2rem, 8vh, 5rem); color: #fff;
  opacity: clamp(0, calc((var(--p) - .6) * 3), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .6) * 3), 1)) * 40px));
}
.frame-title .h3 { color: #fff; max-width: 14ch; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: .1; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: translateY(50vh); } to { opacity: 1; transform: none; } }

/* ---------- Apparitions ---------- */
[data-reveal] { opacity: .1; transform: translateY(var(--from, 40px)); transition: opacity var(--t-entry) ease-in-out, transform var(--t-entry) ease-in-out; transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.js-off [data-reveal] { opacity: 1; transform: none; }

/* ---------- Médias ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--bg, var(--c-gray-100)); isolation: isolate; }
.media.r34 { aspect-ratio: 3 / 4; }
.media.r169 { aspect-ratio: 16 / 9; }
.media.r11 { aspect-ratio: 1 / 1; }
.media-inner { position: absolute; inset: -6% 0; display: grid; place-items: center; transform: translateY(var(--py, 0px)); will-change: transform; }
.media-art { transform: scale(1.2) translateY(5rem); transition: transform var(--t-slow) var(--ease-media); }
.media.in .media-art { transform: none; }

/* ---------- Sections partagées ---------- */
.split .media-col { grid-column: 2 / span 5; }
.split .text-col { grid-column: 8 / span 4; align-self: center; }
.split.reverse .media-col { grid-column: 7 / span 5; order: 2; }
.split.reverse .text-col { grid-column: 2 / span 4; order: 1; }
.split .text-col .h4 { margin-bottom: var(--sp-sm); }
.split .text-col p { margin-bottom: var(--sp-md); }
.text-par { transform: translateY(var(--ty, 0px)); will-change: transform; }

.stack-section .media-col { grid-column: 2 / span 10; }
.stack-section .text-col { grid-column: 2 / span 7; margin-top: var(--sp-md); }
.stack-section .text-col p { margin: var(--sp-sm) 0 var(--sp-md); max-width: 40rem; }

@media (max-width: 767px) {
  .split .media-col, .split .text-col, .split.reverse .media-col, .split.reverse .text-col,
  .stack-section .media-col, .stack-section .text-col { grid-column: 1 / -1; order: 0; }
  .split .text-col { margin-top: var(--sp-md); }
  .media.r169 { aspect-ratio: 4 / 5; }
}

/* ---------- Moment de marque ---------- */
.brand-moment { position: relative; min-height: 100vh; min-height: 100lvh; overflow: hidden; display: flex; align-items: flex-end; }
.brand-moment .bm-bg { position: absolute; inset: -10% 0; background: radial-gradient(70% 60% at 75% 30%, rgba(96, 205, 255, .28) 0%, rgba(96, 205, 255, 0) 70%), var(--c-navy); transform: translateY(var(--py, 0px)); }
.brand-moment .wrap { position: relative; padding-block: var(--sp-xl); }
.brand-moment .h1 { color: #fff; max-width: 9ch; }
.reminders { position: absolute; top: 12%; right: var(--rail); width: min(26rem, 80vw); display: grid; gap: .75rem; }
.rem {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 1.25rem;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16); color: #fff;
}
.rem .day { flex: none; min-width: 3.4rem; height: 2rem; padding: 0 .6rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-weight: 700; font-size: .875rem; }
.rem strong { display: block; font-size: 1rem; }
.rem span { font-size: .8125rem; opacity: .72; }
.rem.paid { background: #fff; color: #000; }
.rem.paid .day { background: var(--c-sky); color: #000; }
@media (max-width: 767px) { .reminders { position: relative; top: auto; right: auto; margin: var(--sp-xl) auto 0; } .brand-moment { flex-direction: column; align-items: stretch; } }

/* ---------- Segment de contrôle ---------- */
.segment {
  --ix: 0; --n: 3;
  position: relative; display: inline-grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding: 4px; border-radius: var(--r-pill); background: var(--alt);
}
.segment::before {
  content: ""; position: absolute; top: 4px; bottom: 4px;
  left: calc(4px + (100% - 8px) / var(--n) * var(--ix));
  width: calc((100% - 8px) / var(--n));
  border-radius: var(--r-pill); background: var(--btn-primary);
  transition: left var(--t-base) var(--ease-bounce), background-color var(--t-base) var(--ease-bounce);
}
.segment button {
  position: relative; z-index: 1; height: 48px; padding: 0 clamp(.9rem, 2vw, 1.6rem); border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: clamp(.875rem, .664rem + .365vw, 1rem); color: var(--text); border-radius: var(--r-pill);
  transition: color var(--t-base) var(--ease-out);
}
.segment button[aria-selected="true"] { color: var(--btn-primary-text, #fff); }
.steps-stage { position: relative; margin-top: var(--sp-lg); min-height: 30rem; }
.step-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.step-panel.on { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.step-panel .grid { align-items: center; }
.step-panel .media-col { grid-column: 2 / span 5; }
.step-panel .text-col { grid-column: 8 / span 4; }
.step-num { font-family: var(--font-headline); font-weight: 900; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.04em; color: var(--hl); }
@media (max-width: 767px) { .step-panel .media-col, .step-panel .text-col { grid-column: 1 / -1; } .step-panel .text-col { margin-top: var(--sp-md); } }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--sp-lg); }
.price-card {
  position: relative; border-radius: var(--r-media); padding: clamp(1.5rem, 3vw, 2.75rem); background: #fff;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: transform .6s var(--ease-soft), box-shadow .6s var(--ease-soft);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 20, 53, .12); }
.price-card.plate-black { background: #000; }
.price-card .tag { align-self: flex-start; height: 28px; padding: 0 .75rem; border-radius: var(--r-pill); background: var(--alt); display: inline-flex; align-items: center; font-size: .8125rem; font-weight: 700; }
.price-card.plate-black .tag { background: var(--c-sky); color: #000; }
.price { display: flex; align-items: baseline; gap: .4rem; }
.price .amount { font-family: var(--font-headline); font-weight: 900; font-size: var(--fs-h3); letter-spacing: -.04em; line-height: 1; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.price-card li { display: flex; gap: .65rem; align-items: flex-start; }
.price-card li svg { flex: none; width: 20px; height: 20px; margin-top: .15em; color: var(--hl); }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.fee-note { margin-top: var(--sp-md); max-width: 46rem; }
@media (max-width: 767px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin: var(--sp-lg) auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem .25rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-headline); font-weight: 900; font-size: var(--fs-title); letter-spacing: var(--ls-title); line-height: 1.2;
}
.faq-q .pm { flex: none; width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--tint-08); display: grid; place-items: center; transition: background-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-bounce); }
.faq-q:hover .pm { background: var(--tint-12); }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-base) ease-in; }
.faq-item.open .faq-a { max-height: 24rem; transition: max-height var(--t-base) var(--ease-open); }
.faq-a p { padding: 0 .25rem 1.5rem; max-width: 44rem; }

/* ---------- Appel final ---------- */
.cta-final { text-align: center; padding-block: var(--sp-2xl); overflow: hidden; }
.cta-final .display { max-width: 12ch; margin: 0 auto var(--sp-md); }
.cta-final p { max-width: 36rem; margin: 0 auto var(--sp-md); }

/* ---------- Pied de page ---------- */
.site-footer { padding-block: var(--sp-lg) var(--sp-md); }
.site-footer .logo { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: var(--sp-md); }
.foot-links a { text-decoration: none; font-weight: 700; font-size: .9375rem; }
.foot-links a:hover { color: var(--link-hover); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.5rem; font-size: .875rem; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.foot-row .country { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.foot-row .sep { width: 1px; height: 1rem; background: var(--line); }
.foot-legal { margin-top: var(--sp-md); padding-top: var(--sp-md); border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted-c); display: grid; gap: .6rem; max-width: 60rem; }

/* ---------- Badge flottant ---------- */
.float-badge {
  position: fixed; z-index: 70; right: 2rem; bottom: 2rem; width: min(22rem, calc(100% - 2rem));
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1rem 1rem 1.25rem;
  border-radius: var(--r-badge); background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 0 .5rem rgba(0, 0, 0, .16);
  transform: translateY(calc(100% + 3rem)); transition: transform .6s var(--ease-out);
}
.float-badge.show { transform: none; }
.float-badge.show.away { transform: translateY(calc(100% + 3rem)); }
.float-badge strong { font-family: var(--font-headline); font-weight: 900; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.02em; color: var(--c-sky); }
.float-badge span { display: block; font-size: .8125rem; color: #ffffffb8; margin-top: .2rem; }
.float-badge .go { flex: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-pill); background: #fff; color: #000; display: grid; place-items: center; transition: background-color var(--t-base) var(--ease-out); }
.float-badge:hover .go { background: var(--c-sky); }
.float-badge .x { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; color: #000; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
@media (max-width: 767px) { .float-badge { right: 1rem; bottom: 1rem; } }

/* ---------- Maquettes d'interface (illustrations) ---------- */
.ui { font-family: var(--font-text); letter-spacing: -.01em; color: #000; }
.ui-card { background: #fff; border-radius: 1.25rem; box-shadow: 0 1px 2px rgba(0, 20, 53, .08), 0 18px 40px rgba(0, 20, 53, .18); }
.chip { display: inline-flex; align-items: center; gap: .35rem; height: 26px; padding: 0 .65rem; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.chip.ok { background: #e3e9f7; color: #0b276b; }
.chip.sent { background: #e6efff; color: #0047ac; }
.chip.late { background: #fdeee8; color: #b4320b; }
.chip.seen { background: #f1efea; color: #5a420f; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.dash { display: grid; gap: .75rem; }
.dash .bal { padding: 1.25rem 1.35rem; }
.dash .bal small { display: block; font-size: .8125rem; color: var(--muted); }
.dash .bal .big { font-family: var(--font-headline); font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.035em; line-height: 1.1; margin-top: .15rem; }
.dash .bal .row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.dash .bal .pending { font-size: .8125rem; color: var(--muted); }
.dash .pill { height: 36px; padding: 0 1rem; border-radius: var(--r-pill); background: #000; color: #fff; font-size: .8125rem; font-weight: 700; display: inline-flex; align-items: center; }
.dash .list { padding: .5rem; }
.dash .inv { display: flex; align-items: center; gap: .8rem; padding: .7rem .75rem; border-radius: .9rem; }
.dash .inv + .inv { border-top: 1px solid #eef0f3; border-radius: 0; }
.dash .av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #002991; background: #dff3ff; }
.dash .inv b { display: block; font-size: .875rem; }
.dash .inv em { font-style: normal; font-size: .75rem; color: var(--muted); }
.dash .inv .amt { margin-left: auto; text-align: right; font-weight: 800; font-size: .875rem; }
.dash .inv .amt .chip { margin-top: .2rem; }

.invoice { width: min(82%, 21rem); padding: 1.5rem; display: grid; gap: 1rem; font-size: .8125rem; }
.invoice .top { display: flex; justify-content: space-between; align-items: flex-start; }
.invoice .brandbox { width: 40px; height: 40px; border-radius: 10px; background: var(--c-gold); display: grid; place-items: center; color: #000; font-weight: 900; font-size: .9rem; }
.invoice h5 { margin: 0; font-family: var(--font-headline); font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; }
.invoice .meta { color: var(--muted); font-size: .75rem; text-align: right; }
.invoice .parties { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.invoice .parties small { display: block; color: var(--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice td { padding: .45rem 0; border-bottom: 1px solid #eef0f3; }
.invoice td:last-child { text-align: right; font-weight: 700; }
.invoice .total { display: flex; justify-content: space-between; align-items: center; padding-top: .25rem; }
.invoice .total b { font-family: var(--font-headline); font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; }
.invoice .paybtn { height: 40px; border-radius: var(--r-pill); background: var(--c-blue); color: #fff; display: grid; place-items: center; font-weight: 700; }

.phone { width: min(70%, 17.5rem); aspect-ratio: 9 / 19; border-radius: 2.6rem; background: #000; padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.phone .screen { height: 100%; border-radius: 2rem; background: #fff; overflow: hidden; display: flex; flex-direction: column; padding: 2.4rem 1.1rem 1.1rem; gap: .8rem; font-size: .75rem; position: relative; }
.phone .screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 30%; height: 20px; border-radius: 12px; background: #000; transform: translateX(-50%); }
.phone .who { display: flex; align-items: center; gap: .6rem; }
.phone .who b { display: block; font-size: .8125rem; }
.phone .amount { font-family: var(--font-headline); font-weight: 900; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1; }
.phone .lines { display: grid; gap: .35rem; padding: .7rem; border-radius: .8rem; background: #f5f7fa; }
.phone .lines div { display: flex; justify-content: space-between; }
.phone .lines .tot { border-top: 1px solid #e3e6eb; padding-top: .35rem; font-weight: 800; }
.phone .field { height: 40px; border: 1px solid #999; border-radius: 6px; display: flex; align-items: center; padding: 0 .7rem; color: #6c7378; gap: .5rem; }
.phone .cta { margin-top: auto; height: 44px; border-radius: var(--r-pill); background: #000; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; }
.phone .secure { text-align: center; color: var(--muted); font-size: .6875rem; }

.withdraw { width: min(88%, 40rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; }
.withdraw .ui-card { padding: 1.4rem; }
.withdraw small { color: var(--muted); font-size: .75rem; }
.withdraw .big { font-family: var(--font-headline); font-weight: 900; font-size: clamp(1.5rem, 2.8vw, 2.25rem); letter-spacing: -.035em; line-height: 1.1; }
.ops { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.op { height: 34px; padding: 0 .8rem; border-radius: var(--r-pill); border: 1px solid #e3e6eb; display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; background: #fff; }
.op.on { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.op i { width: 10px; height: 10px; border-radius: 50%; }
.progress { height: 8px; border-radius: 8px; background: #edf0f2; overflow: hidden; margin: .9rem 0 .4rem; }
.progress i { display: block; height: 100%; width: 72%; border-radius: 8px; background: var(--c-blue); }
@media (max-width: 767px) { .withdraw { grid-template-columns: 1fr; width: 86%; } .withdraw .ui-card + .ui-card { display: none; } }

/* ---------- Photos (générées dans Google Flow) ---------- */
.frame-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.frame-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 15, 34, .8) 0%, rgba(4, 15, 34, .3) 38%, rgba(4, 15, 34, 0) 62%);
  opacity: clamp(0, calc((var(--p) - .3) * 2.5), 1);
}
.frame-media .dash { z-index: 2; width: min(22rem, calc(100% - 2rem)); opacity: clamp(0, calc((var(--p) - .55) * 3), 1); }
@media (min-width: 1024px) {
  .frame-media .dash { left: calc(50% + clamp(0px, (var(--p) - .3) * 1.6 * 20vw, 20vw)); }
}
.frame-title { z-index: 2; }

.media .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.notif { display: flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem .8rem .8rem; border-radius: 1.1rem; font-size: .8125rem; line-height: 1.35; }
.notif .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e3e9f7; color: #0b276b; }
.notif .ic.sent { background: #e6efff; color: #0047ac; }
.notif .ic svg { width: 20px; height: 20px; }
.notif b { display: block; font-size: .9375rem; }
.notif > span > span { color: var(--muted); }

.float-card {
  position: absolute; z-index: 2; left: clamp(.75rem, 2vw, 1.25rem); bottom: clamp(.75rem, 2vw, 1.25rem); max-width: calc(100% - 1.5rem);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease-out) .45s, transform .6s var(--ease-out) .45s;
}
.float-card.right { left: auto; right: clamp(.75rem, 2vw, 1.25rem); }
.media.in .float-card { opacity: 1; transform: none; }
.withdraw-card { left: auto; right: clamp(1rem, 3vw, 2.5rem); bottom: auto; top: 50%; width: min(20rem, 44%); padding: 1.2rem; transform: translateY(calc(-50% + 16px)); }
.media.in .withdraw-card { transform: translateY(-50%); }
.withdraw-card small { color: var(--muted); font-size: .75rem; }
.withdraw-card .big { font-family: var(--font-headline); font-weight: 900; font-size: clamp(1.35rem, 2.3vw, 2rem); letter-spacing: -.035em; line-height: 1.1; }
.withdraw-card .progress i { width: 100%; background: #0b276b; }
.withdraw-card .chip { margin-top: .2rem; }
@media (max-width: 767px) {
  .withdraw-card { top: auto; bottom: .75rem; right: .75rem; width: min(17rem, 78%); transform: translateY(16px); }
  .media.in .withdraw-card { transform: none; }
  .withdraw-card .ops .op:nth-child(n+4) { display: none; }
}

/* Photo retournée : le visage passe à gauche, les relances à droite ne le couvrent plus */
.brand-moment .bm-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; transform: scaleX(-1); }
.brand-moment .bm-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 41, 145, .94) 0%, rgba(0, 41, 145, .5) 32%, rgba(0, 41, 145, 0) 60%),
              linear-gradient(to left, rgba(0, 41, 145, .45) 0%, rgba(0, 41, 145, 0) 45%);
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .media-art { transform: none; }
  .media-inner, .text-par, .brand-moment .bm-bg { transform: none !important; }
}

/* Marque — icônes 3D (générées dans Flow, fond blanc pur) */
.dropdown .ico.ico-3d { width: 48px; height: 48px; border-radius: 14px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 20, 53, .07), 0 4px 12px rgba(0, 20, 53, .06); }
.dropdown .ico.ico-3d img { width: 100%; height: 100%; display: block; transition: transform var(--t-base) var(--ease-bounce); }
.dropdown a:hover .ico-3d img { transform: scale(1.08) rotate(-3deg); }
