/* Walleo — design v2 du site marketing (repris du prototype Lovable, oct. 2026).
   Tokens alignés sur le dashboard et l'app : indigo #4F46E5, Helvetica Neue, cartes arrondies. */

:root {
  color-scheme: light;
  --ink: #09090b;
  --paper: #ffffff;
  --bg: #ffffff;
  --fg: #111827;
  --muted: #f9fafb;
  --muted-fg: #6b7280;
  --faint: #9ca3af;
  --border: #e5e7eb;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-deeper: #3730a3;
  --brand-light: #eef2ff;
  --violet-light: #c4b5fd;
  --success: #059669;
  --wallet-green: #3cff1f;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
  --shadow-brand: 0 8px 32px rgba(79, 70, 229, .25);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { letter-spacing: -0.038em; font-weight: 700; line-height: 1.05; color: var(--ink); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
/* Sur les fonds indigo ou noirs, l'anneau indigo disparaîtrait : anneau blanc */
.band-primary :focus-visible, .plan-pro :focus-visible, .band-ink :focus-visible { outline-color: #fff; }

/* ── Mise en page ─────────────────────────────── */
.wrap    { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-md { width: 100%; max-width: 1000px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-sm { width: 100%; max-width: 860px;  margin: 0 auto; padding-inline: var(--gutter); }
.section    { padding-block: clamp(48px, 7vw, 80px); }
.section-sm { padding-bottom: clamp(48px, 7vw, 80px); }
.center { text-align: center; }
.muted  { color: var(--muted-fg); }
.text-primary { color: var(--primary); }

.pill {
  display: inline-block;
  background: var(--brand-light);
  color: var(--primary);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.h-hero  { font-size: clamp(3rem, 1.6rem + 6vw, 4.5rem); }
.h-page  { font-size: clamp(2.6rem, 1.6rem + 4vw, 3.75rem); }
.h-sec   { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.75rem); }
.h-sec-s { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.lead    { font-size: 1.125rem; color: var(--muted-fg); max-width: 34rem; }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
        padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 48px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* Accueil : texte + téléphone Wallet côte à côte (empilés sur mobile, téléphone sous les boutons) */
.hero-split { display: grid; gap: 56px; align-items: center; grid-template-columns: minmax(0, 1fr);
              padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
@media (min-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(48px, 6vw, 96px); }
  .hero-copy { align-items: flex-start; text-align: left; }
  .hero-copy .hero-actions { justify-content: flex-start; }
}
.hero-note { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-fg); }

/* ── Boutons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; font-weight: 600; white-space: nowrap;
  height: 44px; padding: 0 20px; font-size: 14px;
  transition: transform 200ms var(--ease-out), background-color 200ms, box-shadow 200ms, color 200ms;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 52px; padding-block: 10px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-paper { background: var(--paper); color: var(--fg); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.btn-paper:hover { background: var(--muted); }
.btn-ghost { color: var(--fg); }
.btn-ghost:hover { background: var(--brand-light); color: var(--primary); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26262b; transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ── Cartes ───────────────────────────────────── */
.card    { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.card-lg { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lift); }
.card-hover { transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pad   { padding: 24px; }
.pad-l { padding: clamp(28px, 4vw, 40px); }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-light); color: var(--primary); margin-bottom: 16px;
}
.icon-tile svg { width: 24px; height: 24px; }

.grid-2, .grid-3 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat-value { font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--muted-fg); margin-top: 8px; }

.feature h3 { font-size: 1.25rem; margin-bottom: 6px; }
.feature p  { color: var(--muted-fg); }

.checks { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks.small li { font-size: 14px; }

/* ── Bandeaux ─────────────────────────────────── */
.band-primary { background: var(--primary); color: #fff; border-radius: var(--radius-2xl); box-shadow: var(--shadow-brand); padding: clamp(28px, 5vw, 48px); }
.band-primary h2, .band-primary h3 { color: #fff; }
.band-ink { background: var(--ink); color: #fff; border-radius: var(--radius-2xl); padding: clamp(32px, 5vw, 56px);
            display: flex; flex-direction: column; gap: 24px; }
.band-ink h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.25rem); }
.band-ink p { opacity: .8; margin-top: 8px; }
@media (min-width: 768px) { .band-ink { flex-direction: row; align-items: center; justify-content: space-between; } }

.how { display: grid; gap: 40px 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .how { grid-template-columns: minmax(0, 1fr) auto; } }
.how h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3rem); }
.how-sub { font-weight: 600; margin-top: 8px; opacity: .9; }
.steps { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { background: rgba(55, 48, 163, .4); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-lg); padding: 24px; }
.step .step-num { font-size: 3rem; opacity: 1; font-weight: 700; line-height: 1; margin-bottom: 12px; color: var(--violet-light); }
.step h3 { font-size: 1.125rem; margin-bottom: 6px; }
.step p { font-size: 14px; opacity: .85; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.price-big { font-size: 3.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.price-big small { font-size: 1.5rem; font-weight: 600; opacity: .75; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-fg); }

/* ── Tarifs ───────────────────────────────────── */
.plans { display: grid; gap: 20px; align-items: stretch; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); }
.plan .desc { margin: 16px 0 28px; flex: 1; }
.plan .price-big { font-size: clamp(2.4rem, 1.6rem + 2vw, 3.25rem); }
.plan .price-big.price-text { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); white-space: normal; overflow-wrap: anywhere; }
.plan-pro { background: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }
.plan-pro .eyebrow, .plan-pro .muted { color: rgba(255, 255, 255, .85); }
.plan-pro .price-big { color: #fff; }
.plan-actions { display: grid; gap: 10px; }
.plan-note { font-size: 12px; text-align: center; margin-top: 12px; opacity: .8; }
.card .plan-note { opacity: 1; } /* gris sur blanc : déjà assez clair sans transparence */
.plan-error { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 13px; line-height: 1.45; font-weight: 600; }
.plan-error[hidden] { display: none; }

.faq { display: flex; flex-direction: column; gap: 16px; }
.faq details { padding: 24px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted-fg); margin-top: 16px; }

/* ── Formulaire ───────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  padding: 12px 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--fg);
  transition: border-color 150ms, box-shadow 150ms;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.form-error { color: #b91c1c; font-size: 14px; display: none; }
/* Champ mot de passe avec bouton afficher / masquer */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; min-width: 0; padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted-fg); display: grid; place-items: center; cursor: pointer;
  transition: color 150ms, background 150ms;
}
.pw-toggle:hover { color: var(--primary); background: var(--brand-light); }
.pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }

/* ── En-tête ──────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo img { height: 64px; width: auto; }
.main-nav { display: none; gap: 32px; font-size: 14px; font-weight: 600; }
.main-nav a { transition: color 150ms; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { display: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 9999px; }
.header-login:hover { background: var(--brand-light); color: var(--primary); }
.header-cta { display: none; }
.burger { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.burger svg { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .main-nav, .header-login, .header-cta { display: inline-flex; }
  .burger { display: none; }
}
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--paper); padding: 16px var(--gutter) 24px; }
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--muted); }
.mobile-menu .btn { margin-top: 12px; }
@media (min-width: 900px) { .mobile-menu, .mobile-menu.open { display: none; } }

/* Sélecteur de langue (géré par i18n.js) */
.lang-dropdown { position: relative; }
.lang-trigger { height: 36px; padding: 0 10px; border-radius: 9999px; font-size: 13px; font-weight: 700; color: var(--muted-fg); display: inline-flex; align-items: center; gap: 4px; }
.lang-trigger:hover { background: var(--muted); }
.lang-menu { display: none; position: absolute; right: 0; top: 42px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 6px; min-width: 72px; z-index: 60; }
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu li { padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-menu li:hover { background: var(--muted); }
.lang-menu li.active { color: var(--primary); background: var(--brand-light); }
.lang-menu li a { display: block; margin: -8px -12px; padding: 8px 12px; color: inherit; text-decoration: none; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.footer-langs a { color: var(--muted-fg); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--fg); }

/* ── Pied de page ─────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { display: grid; gap: 28px; padding-block: 40px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: start; } }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .footer-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-cols p { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 14px; font-weight: 600; color: var(--muted-fg); padding: 4px 0; }
.footer-cols a:hover { color: var(--primary); }
.footer-logo img { height: 56px; width: auto; opacity: .75; }
.footer-end { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (min-width: 900px) { .footer-end { align-items: flex-end; } }
.appstore-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .2s ease, opacity .2s ease; }
.appstore-badge img { height: 40px; width: auto; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.appstore-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.appstore-inline p { font-size: 14px; font-weight: 600; }
.appstore-badge-lg img { height: 56px; }
.app-promo { padding: clamp(28px, 5vw, 56px); overflow: hidden; background: linear-gradient(135deg, var(--paper) 40%, var(--brand-light)); }
.app-promo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.app-promo-text .checks { margin-bottom: 4px; }
.app-promo-visual { display: flex; justify-content: center; }
.app-promo-visual img { width: min(260px, 70%); height: auto; transform: rotate(-4deg); filter: drop-shadow(0 30px 40px rgba(55, 48, 163, .28)); }
@media (prefers-reduced-motion: no-preference) {
  .app-promo-visual img { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
  .app-promo:hover .app-promo-visual img { transform: rotate(-1deg) translateY(-6px); }
}
.copyright { font-size: 14px; color: var(--muted-fg); }

/* ── Animations ───────────────────────────────── */
.fade-up { animation: fade-up 700ms var(--ease-out) both; }
@keyframes fade-up { from { transform: translateY(18px); } to { transform: none; } }  /* sans fondu : le texte reste lisible même si l’animation ne démarre pas */

/* ── Téléphone Wallet + carte de démonstration ── */
.phone-box { position: relative; justify-self: center; }
/* Petits écrans (≤ 380px) : téléphone réduit, longs boutons sur deux lignes */
@media (max-width: 380px) {
  .phone-box { zoom: .8; }
  .btn-lg { height: auto; min-height: 52px; padding-block: 12px; white-space: normal; text-align: center; max-width: 100%; }
}
/* Téléphone légèrement incliné, immobile : seule la notification bouge, pour ne pas gêner la lecture */
.phone {
  position: relative; width: 268px; padding: 10px; border-radius: 36px; background: var(--ink); box-shadow: var(--shadow-lift);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg) rotateZ(-1deg);
  transition: transform 600ms var(--ease-out);
}
.phone-box:hover .phone, .phone-box:focus-within .phone { transform: perspective(900px) rotateY(0) rotateX(0) rotateZ(0); }

/* Notification « écran verrouillé » qui descend quand un tampon est ajouté (v2.js : notifyVisit) */
.phone-notif {
  position: absolute; z-index: 4; top: 38px; left: 8px; right: 8px;
  display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border-radius: 16px;
  background: rgba(244, 244, 246, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(9, 9, 11, .18), 0 1px 3px rgba(9, 9, 11, .08);
  color: var(--ink); text-align: left;
  opacity: 0; transform: translateY(calc(-100% - 40px));
  transition: transform 300ms cubic-bezier(.4, 0, 1, 1), opacity 300ms ease;
}
.phone-notif.is-shown { opacity: 1; transform: none; transition: transform 450ms var(--ease-out), opacity 200ms ease; }
.phone-notif-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--card-bg-live, #3cff1f); }
.phone-notif-icon img { width: 20px; height: 20px; }
.phone-notif-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.phone-notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.phone-notif-head strong { font-weight: 700; }
.phone-notif-head span { color: #5b6472; }
.phone-notif-body { font-size: 11px; line-height: 1.35; }
.phone-screen { position: relative; width: 248px; height: 536px; border-radius: 30px; background: var(--paper); overflow: hidden; overflow: clip; display: flex; flex-direction: column; color: var(--fg); }
.phone-island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 9999px; background: var(--ink); z-index: 3; }
.phone-status { display: flex; justify-content: space-between; padding: 10px 20px 0 28px; font-size: 10px; font-weight: 700; }
.phone-title { display: flex; justify-content: space-between; align-items: center; padding: 24px 16px 12px; }
.phone-title strong { font-size: 26px; letter-spacing: -.03em; line-height: 1; }
.phone-title span { width: 26px; height: 26px; border-radius: 50%; background: var(--muted); display: inline-block; }
.phone-stack { display: flex; flex-direction: column; align-items: center; }
.mini-card { width: 228px; height: 150px; border-radius: 12px; padding: 12px; display: flex; justify-content: space-between; align-items: flex-start; box-shadow: var(--shadow-soft); font-size: 11px; font-weight: 700; color: #fff; }
.mini-card + .mini-card, .mini-card + .phone-loyalty { margin-top: -108px; }
.mini-card.c1 { background: linear-gradient(120deg, #334155, #0f172a); }
.mini-card.c2 { background: linear-gradient(120deg, #f97316, #db2777); }
.phone-loyalty { position: relative; z-index: 2; transform: scale(.76); transform-origin: top center; }
.phone-home { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 88px; height: 4px; border-radius: 9999px; background: var(--fg); }
.phone-floor { position: absolute; left: 8%; right: 8%; bottom: -26px; height: 22px; border-radius: 9999px; background: radial-gradient(closest-side, rgba(9, 9, 11, .3), transparent 75%); filter: blur(6px); }

/* Carte de fidélité de démonstration (interactive : un appui = une visite) */
.demo-card {
  position: relative; width: 300px; text-align: left; border-radius: 14px; padding: 16px;
  background: var(--card-bg, var(--wallet-green)); color: var(--card-fg, var(--ink)); box-shadow: var(--shadow-soft); user-select: none;
  transition: background-color 700ms var(--ease-out), color 700ms var(--ease-out);
}
/* Fond foncé : les tampons vides restent visibles (grisés, sans assombrissement) */
.demo-card.is-dark .demo-stamps img.empty { filter: grayscale(1); opacity: .3; }
.demo-card .row { display: flex; justify-content: space-between; align-items: flex-start; }
.demo-card .name { font-size: 13px; font-weight: 700; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.demo-card .lbl { font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.demo-card .val { font-size: 1.25rem; margin-top: 2px; }
.demo-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 12px; }
.demo-stamps img { width: 34px; height: 34px; margin: auto; transition: transform 300ms var(--ease-out); }
.demo-stamps img.empty { filter: grayscale(1) brightness(.35); opacity: .22; }
.demo-stamps img.pop { animation: demo-pop 500ms cubic-bezier(.3, 1.6, .5, 1); }
@keyframes demo-pop { 0% { transform: scale(2) rotate(-18deg); } 60% { transform: scale(.88) rotate(4deg); } 100% { transform: none; } }
.demo-card .fields { display: flex; justify-content: space-between; font-size: 12px; }
.demo-card .fields .val { font-size: 15px; }
.demo-qr { background: var(--paper); color: var(--ink); border-radius: 8px; width: 176px; margin: 18px auto 0; padding: 12px; display: flex; flex-direction: column; align-items: center; font-size: 10px; }
.demo-qr i { display: grid; grid-template-columns: repeat(21, 1fr); width: 112px; aspect-ratio: 1; }
.demo-qr i b { background: var(--ink); }
.demo-qr i u { background: transparent; }
.demo-hint { font-size: 10px; font-weight: 600; text-align: center; margin-top: 12px; opacity: .8; }

/* Bloc « Essayez-la » de la page Fonctionnalités : texte + carte posée sur un plateau */
.demo-split {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center;
  background: var(--brand-light); border-radius: var(--radius-2xl);
  padding: clamp(28px, 5vw, 56px); margin-bottom: 40px;
}
@media (min-width: 900px) { .demo-split { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.demo-copy { display: flex; flex-direction: column; gap: 16px; max-width: 32rem; }
.demo-copy .eyebrow { color: var(--primary); }
.demo-tip {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: var(--paper); border-radius: 9999px; padding: 10px 16px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-soft);
}
.demo-tip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }
.demo-tip .demo-hint { font-size: inherit; margin: 0; opacity: 1; text-align: left; }
.demo-stage { justify-self: center; perspective: 1200px; }
.demo-stage .demo-card {
  width: min(340px, 100%); padding: 20px; border-radius: 22px; box-shadow: var(--shadow-lift);
  cursor: pointer; transform: rotate(-2deg); transition: transform 300ms var(--ease-out);
}
.demo-stage .demo-card:hover, .demo-stage .demo-card:focus-visible { transform: rotate(0) translateY(-4px); }
.demo-stage .demo-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.demo-stage .demo-card:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .phone, .phone-stack, .demo-stamps img.pop { animation: none; }
  .phone { transition: none; }
  /* La notification apparaît en fondu, sans glisser */
  .phone-notif, .phone-notif.is-shown { transform: none; transition: opacity 200ms ease; }
  .demo-stage .demo-card { transition: none; }
  .demo-card { transition: none; }
  .card-hover:hover, .btn-primary:hover, .btn-ink:hover { transform: none; }
}

/* ── Page de connexion / inscription (/login) ─── */
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: stretch;
  padding-block: clamp(32px, 6vw, 72px);
}
@media (min-width: 960px) { .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.auth-main { display: flex; flex-direction: column; gap: 28px; justify-content: center; max-width: 30rem; width: 100%; justify-self: center; }
.auth-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.auth-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -.03em; line-height: 1.05; }
.auth-card { padding: clamp(24px, 4vw, 36px); }
.auth-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  background: var(--brand-light); border-radius: 9999px; padding: 4px; margin-bottom: 28px;
}
.auth-tab {
  height: 40px; border-radius: 9999px; font-size: 14px; font-weight: 600; color: var(--muted-fg);
  transition: background-color 200ms, color 200ms, box-shadow 200ms;
}
.auth-tab:hover:not(.active) { color: var(--fg); }
.auth-tab.active { background: var(--paper); color: var(--fg); box-shadow: var(--shadow-soft); }
.auth-tab:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.auth-form[hidden] { display: none; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-optional { font-size: .8125rem; font-weight: 400; color: var(--muted-fg); }
.field-hint { font-size: .8125rem; font-weight: 400; color: var(--muted-fg); }
.auth-forgot { font-size: 13px; font-weight: 600; color: var(--primary); }
.auth-forgot:hover { text-decoration: underline; }
.auth-terms { font-size: 13px; color: var(--muted-fg); text-align: center; }
.auth-terms a { color: var(--primary); font-weight: 600; }
.auth-terms a:hover { text-decoration: underline; }

.auth-side { display: none; position: relative; overflow: hidden; flex-direction: column; gap: 16px; }
@media (min-width: 960px) { .auth-side { display: flex; } }
.auth-side .eyebrow { color: var(--violet-light); }
.auth-side-title { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; }
.auth-side-text { opacity: .85; max-width: 26rem; }
.auth-checks li::before { background: #fff; }
.auth-side-card { margin-top: auto; padding-top: 24px; display: flex; justify-content: center; }
.auth-side-card .demo-card { cursor: pointer; transform: rotate(-3deg); box-shadow: var(--shadow-lift); transition: transform 300ms var(--ease-out); }
.auth-side-card .demo-card:hover, .auth-side-card .demo-card:focus-visible { transform: rotate(0) translateY(-4px); }
.auth-side-card .demo-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .auth-side-card .demo-card { transition: none; } }

/* ── Pages légales (texte long) ── */
.legal { max-width: 46rem; padding-top: clamp(2.5rem, 5vw, 4rem); }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 16px 0 8px; }
.legal .legal-meta { color: var(--muted-fg); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted-fg); line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0 0 16px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--fg); }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0 20px; }
.legal .legal-note { font-size: .85rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--muted-fg); }

/* ── Pages villes : bloc local, liens métiers, autres villes ── */
.local-split { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 860px) { .local-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .local-aside { position: sticky; top: 96px; } }
.local-aside .h-sec-s { margin: 10px 0 20px; }
.local-copy p { font-size: 1.0625rem; line-height: 1.75; color: var(--muted-fg); margin-bottom: 18px; }
.local-copy p:first-child { font-size: 1.25rem; line-height: 1.6; color: var(--fg); }
.place-list { display: flex; flex-wrap: wrap; gap: 8px; }
.place-list li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 9999px; background: var(--brand-light); color: var(--primary-deeper); }
.link-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.link-card strong { font-size: 1.0625rem; letter-spacing: -.02em; color: var(--ink); }
.link-card span { font-size: 14px; color: var(--muted-fg); }
.link-card:hover strong, .link-card:focus-visible strong { color: var(--primary); }
.link-card:focus-visible, .post-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.city-nav { padding-block: 8px 24px; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip-links a { font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 9999px; border: 1px solid var(--border); color: var(--fg); transition: border-color 200ms, color 200ms; }
.chip-links a:hover, .chip-links a:focus-visible { border-color: var(--primary); color: var(--primary); }

/* ── Blog : liste d'articles et article ── */
.post-list { display: grid; gap: 20px; }
@media (min-width: 760px) { .post-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: block; padding: clamp(22px, 3.5vw, 36px); }
.post-card h2, .post-card h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.15; margin: 10px 0 12px; }
.post-list-2 .post-card h3 { font-size: 1.25rem; }
.post-card > p:not(.post-meta) { color: var(--muted-fg); max-width: 44rem; }
.post-meta { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--primary); }
.post-more svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.post-card:hover .post-more svg { transform: translateX(4px); }
.article { margin-inline: auto; }
.article .eyebrow a { color: var(--primary); text-decoration: none; }
.article .article-lead { font-size: 1.2rem; line-height: 1.65; color: var(--fg); margin-bottom: 28px; }
.article p, .article li { font-size: 1.0625rem; }
.article h2 { font-size: 1.5rem; margin-top: 44px; }
.article ol { list-style: decimal; }
.article table { display: block; overflow-x: auto; }
.article th { color: var(--fg); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .post-more svg, .chip-links a { transition: none; } }

/* Texte réservé aux lecteurs d'écran */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Tampon sans contact (NFC) ── */
.pill-on-dark { background: rgba(255, 255, 255, .16); color: #fff; }
.nfc-teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  color: inherit;
  text-decoration: none;
}
.nfc-teaser .icon-tile { margin: 0; }
.nfc-teaser-copy { line-height: 1.5; }
.nfc-teaser-copy .pill { margin-right: 8px; padding: 3px 10px; font-size: 11px; vertical-align: 2px; }
.nfc-teaser-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.nfc-teaser-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out, ease-out); }
.nfc-teaser:hover .nfc-teaser-link svg { transform: translateX(3px); }
.nfc-teaser:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 639px) {
  .nfc-teaser { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nfc-teaser-link svg { transition: none; }
}
