/* ===== Yusra · site vitrine ===== */
:root {
  --green: #00875A;
  --green-dark: #006B47;
  --green-bright: #10B981;
  --green-tint: #D1FAE5;
  --green-wash: #ECFDF5;
  --ink: #0F172A;
  --slate: #1E293B;
  --slate-2: #334155;
  --muted: #475569;
  --muted-2: #64748B;
  --border: #E2E8F0;
  --line: #EEF2F6;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --amber: #F59E0B;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
.cta { overflow: hidden; contain: paint; }
.hero-visual { overflow: visible; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-dark); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -1px; }
h3 { font-family: var(--font-body); font-size: 1.3rem; }
p { margin: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.narrow { max-width: 860px; }
.section { padding-block: 104px; display: flex; flex-direction: column; gap: 44px; }
.section-head { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }

.eyebrow { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: .6px; text-transform: uppercase; }
.eyebrow.grey { color: var(--muted-2); letter-spacing: .4px; }
.eyebrow.light { color: #6EE7B7; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .tab:focus-visible, .faq-q:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 135, 90, .25); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid #CBD5E1; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }

/* ----- En-tête ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.brand .logo { width: 34px; height: 34px; }
.brand.small { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted-2); }
.brand.small .logo { width: 26px; height: 26px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--slate-2); text-decoration: none; }
.main-nav a:hover { color: var(--green); }

/* ----- Accueil ----- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--green-wash); color: #065F46; font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; letter-spacing: -1.5px; }
.accent { color: var(--green); }
.lead { max-width: 34rem; font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--muted-2); }

.hero-visual { flex: 1 1 380px; min-width: 0; position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.ring { position: absolute; top: 50%; left: 50%; width: 460px; height: 460px; max-width: 100%; margin: -230px 0 0 -230px; border-radius: 50%; border: 1.5px dashed #A7F3D0; }
.disc { position: absolute; top: 50%; left: 50%; width: 330px; height: 330px; margin: -165px 0 0 -165px; border-radius: 50%; background: var(--green-wash); }
.float { position: relative; transform-style: preserve-3d; }

.phone {
  width: 270px; height: 550px; padding: 11px; border-radius: 44px; background: var(--ink);
  transform: rotateX(6deg) rotateY(-16deg); transform-style: preserve-3d;
  transition: transform .25s ease-out;
  box-shadow: 30px 40px 70px rgba(15, 23, 42, .25);
}
.screen { height: 100%; border-radius: 34px; background: var(--bg-soft); overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px 14px 14px; }
.app-hello { display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-display); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); font: 700 11px var(--font-body); display: flex; align-items: center; justify-content: center; }
.app-card { padding: 14px; border-radius: 18px; background: var(--slate); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.muted-xs { font-size: 10px; color: #CBD5E1; }
.muted-xs.dark { display: block; font-size: 9px; color: var(--muted-2); }
.app-amount { font: 700 26px var(--font-display); line-height: 1.1; }
.app-amount small { font-size: 11px; color: #CBD5E1; }
.bar { height: 6px; border-radius: 3px; background: var(--slate-2); }
.bar-fill { width: 36%; height: 6px; border-radius: 3px; background: var(--green-bright); }
.app-row { padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.3; }
.app-chip { width: 26px; height: 26px; border-radius: 8px; background: #FEF3C7; flex-shrink: 0; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { height: 64px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.tile.green { background: var(--green); border-color: var(--green); }
.app-nav { margin-top: auto; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: flex; justify-content: center; }
.app-fab { width: 38px; height: 38px; margin-top: -14px; border-radius: 50%; background: var(--green); border: 4px solid var(--bg-soft); }

.float-card { position: absolute; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(15, 23, 42, .12); line-height: 1.3; }
.float-card strong { display: block; font-size: 15px; }
.float-card strong.sm { font-size: 13px; }
.muted-sm { display: block; font-size: 12px; color: var(--muted-2); }
.card-left { top: 70px; left: -110px; display: flex; align-items: center; gap: 10px; transform: translateZ(60px); }
.card-right { bottom: 70px; right: -90px; width: 180px; display: flex; flex-direction: column; gap: 6px; }
.check-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.check-dot svg, .check-big svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.segments { display: flex; gap: 4px; }
.segments span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.segments .ok { background: var(--green); }
.segments .due { background: var(--amber); }

/* ----- Partenaires ----- */
.partners { background: #FBFCFD; border-block: 1px solid var(--line); }
.partners-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 26px; }
.partner-list { display: flex; flex-wrap: wrap; gap: 14px; }
.partner-list span { padding: 10px 18px; border-radius: 12px; border: 1px dashed #CBD5E1; font-size: 15px; font-weight: 600; color: var(--muted); }

/* ----- Étapes ----- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { padding: 30px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); }
.step-num { font: 700 52px/1 var(--font-display); color: var(--green-tint); -webkit-text-stroke: 1.5px var(--green); }
.card-3d { transition: transform .35s ease, box-shadow .35s ease; }
.card-3d:hover { transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-4px); box-shadow: 0 24px 50px rgba(15, 23, 42, .10); }

/* ----- Double saisie ----- */
.dark-band { background: var(--ink); color: #fff; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 104px; }
.split-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split-text p { max-width: 32rem; font-size: 17px; color: #CBD5E1; }
.split-visual { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; perspective: 1000px; }
.amount-card { padding: 22px 24px; border-radius: 20px; background: var(--slate); display: flex; justify-content: space-between; align-items: center; gap: 16px; transform: rotateX(8deg) rotateY(-6deg); }
.muted-dark { display: block; font-size: 13px; color: #94A3B8; }
.big { display: block; font: 700 30px var(--font-display); }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--slate-2); font-size: 13px; color: var(--border); }
.check-big { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--green-bright); display: flex; align-items: center; justify-content: center; }
.check-big svg { width: 22px; height: 22px; stroke: var(--ink); }
.type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 4.6ch; }

/* ----- Pour qui ----- */
.publics-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tabs { display: flex; padding: 5px; border-radius: 999px; background: #F1F5F9; gap: 4px; }
.tab { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 15px var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.panel { display: flex; flex-wrap: wrap; gap: 20px; }
.panel-main { flex: 1 1 380px; min-width: 0; padding: 40px; border-radius: 28px; background: var(--green-wash); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.panel-main h3 { font: 700 30px/1.15 var(--font-display); color: #064E3B; margin-bottom: 14px; }
.panel-main p { font-size: 17px; color: #065F46; }
.panel-main .btn { align-self: flex-start; height: 50px; }
.panel-points { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.point { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.point strong { font-size: 17px; }
.point span { font-size: 15px; color: var(--muted); line-height: 1.55; }
.fade { animation: fade .35s ease both; }

/* ----- FAQ ----- */
.faq-band { background: var(--bg-soft); border-top: 1px solid var(--line); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 18px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.faq-q { width: 100%; min-height: 64px; padding: 18px 22px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 600 17px var(--font-body); color: var(--ink); text-align: left; cursor: pointer; }
.faq-icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #F1F5F9; font-size: 20px; font-weight: 500; display: flex; align-items: center; justify-content: center; transition: transform .25s ease, background .25s, color .25s; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a p { overflow: hidden; padding: 0 22px; color: var(--muted); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { padding-bottom: 20px; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--green); color: #fff; }

/* ----- Appel à l'action ----- */
.cta-wrap { padding-block: 96px; }
.cta { position: relative; overflow: hidden; padding: 64px 48px; border-radius: 36px; background: var(--green); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.ring-cta { top: -120px; left: auto; right: -120px; width: 380px; height: 380px; margin: 0; border: 2px dashed rgba(255, 255, 255, .35); }
.cta-text { position: relative; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.cta-text p { font-size: 18px; color: var(--green-tint); }
.cta-form { position: relative; flex: 0 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cta-form label { font-size: 14px; font-weight: 600; color: var(--green-wash); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.phone-field { flex: 1 1 220px; height: 54px; border-radius: 999px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 18px; color: var(--ink); font-weight: 600; }
.phone-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px var(--font-body); color: var(--ink); outline: none; }
.form-msg { min-height: 1.4em; font-size: 15px; font-weight: 600; }

/* ----- Pied de page ----- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 36px; font-size: 14px; color: var(--muted-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted-2); }

/* ----- Animations ----- */
@keyframes float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float2 { 0%, 100% { transform: translateZ(60px) translateY(0); } 50% { transform: translateZ(60px) translateY(10px); } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes rise   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse  { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); } 50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }
@keyframes type   { 0%, 15% { width: 0; } 45%, 100% { width: 4.6ch; } }
@keyframes check  { 0%, 50% { opacity: 0; transform: scale(.6); } 65%, 100% { opacity: 1; transform: scale(1); } }
@keyframes fade   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.float { animation: float 6s ease-in-out infinite; }
.float2 { animation: float2 5s ease-in-out infinite; }
.spin { animation: spin 40s linear infinite; }
.rise { animation: rise .8s ease both; }
.rise.d1 { animation-delay: .15s; }
.rise.d2 { animation-delay: .3s; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
.type { animation: type 4s steps(5) infinite; }
.check-big { animation: check 4s ease infinite; }
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }

/* ----- Installation de l'application (QR code sur ordinateur) ----- */
.install-dialog { border: 0; border-radius: 24px; padding: 36px 32px 28px; max-width: 380px; width: calc(100% - 32px); text-align: center; color: var(--ink); box-shadow: 0 30px 80px rgba(15, 23, 42, .25); }
.install-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.install-dialog h2 { font-size: 22px; margin: 0 0 8px; }
.install-dialog p { color: #475569; font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.install-dialog img { display: block; margin: 0 auto 16px; width: 220px; height: 220px; border-radius: 12px; border: 1px solid #E2E8F0; padding: 8px; background: #fff; }
.install-link { color: var(--green); font-weight: 600; font-size: 14px; }
.install-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: #64748B; cursor: pointer; }

/* ----- Téléphone ----- */
@media (max-width: 720px) {
  .main-nav { display: none; }
  .hero { padding-top: 40px; gap: 32px; }
  .hero-visual { min-height: 520px; }
  .card-left { left: -20px; top: 30px; }
  .card-right { right: -16px; bottom: 30px; }
  .ring { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .section { padding-block: 72px; }
  .split { padding-block: 72px; }
  .cta { padding: 40px 24px; }
  .panel-main { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .check-big { opacity: 1; }
  .type { width: 4.6ch; }
}
