/* ==========================================================================
   JGJPayStock - Composants du site vitrine
   ========================================================================== */

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.975rem; line-height: 1; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 50px rgba(67, 97, 238, 0.36); }

.btn--ghost { background: var(--surface); color: var(--ink-800); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--brand-700); border-color: var(--brand-300); background: var(--brand-50); }

.btn--light { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn--light:hover { color: #fff; background: rgba(255, 255, 255, 0.22); }

.btn--white { background: #fff; color: var(--brand-700); }
.btn--white:hover { color: var(--brand-800); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand b { color: var(--brand-600); font-weight: 700; }

/* Selecteur de langue */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 3px; }
.lang-switch a { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text-muted); padding: 5px 9px; border-radius: var(--radius-full); line-height: 1; text-decoration: none; }
.lang-switch a:hover { color: var(--ink-900); }
.lang-switch a.is-active { background: var(--surface); color: var(--brand-600); box-shadow: var(--shadow-xs); }
@media (max-width: 560px) { .lang-switch a { padding: 5px 7px; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink-700); font-weight: 500; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.96rem; }
.nav a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav a.is-active { color: var(--brand-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* CTA visible uniquement dans le menu mobile deroulant */
.nav-cta { display: none; }
@media (max-width: 920px) { .nav-cta { display: inline-flex; } }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); background: #fff; border-radius: var(--radius-sm); color: var(--ink-700); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav, .header-actions .btn-desktop { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 20px 22px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform 280ms ease;
  }
  .nav.is-open { display: flex; transform: translateY(0); }
  .nav a { padding: 14px; font-size: 1rem; }
  .nav .btn { margin-top: 8px; height: 50px; }
}

/* ----- Hero ----- */
.hero { position: relative; padding: 72px 0 88px; background: var(--grad-hero); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 7px 14px 7px 8px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 22px;
}
.hero-badge .pill { background: var(--brand-50); color: var(--brand-700); font-weight: 700; padding: 3px 9px; border-radius: var(--radius-full); font-size: 0.78rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.07; margin-bottom: 22px; }
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.18rem; color: var(--text-muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--success); }

.hero-visual { position: relative; }
.hero-visual .glow { position: absolute; inset: -40px; background: radial-gradient(circle at 60% 40%, rgba(67, 97, 238, 0.25), transparent 65%); filter: blur(20px); z-index: 0; }
.device {
  position: relative; z-index: 1;
  background: #0b1020; border-radius: 22px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.08);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transition: transform 400ms ease;
}
.device:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.device::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.device img { border-radius: 14px; width: 100%; }
.floating {
  position: absolute; z-index: 2;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 11px; font-size: 0.85rem; font-weight: 600; color: var(--ink-800);
  animation: floaty 4s ease-in-out infinite;
}
.floating .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.floating .ic svg { width: 18px; height: 18px; }
.floating small { display: block; color: var(--text-subtle); font-weight: 500; font-size: 0.72rem; }
.floating--tl { top: 18px; left: -34px; animation-delay: 0s; }
.floating--br { bottom: 28px; right: -28px; animation-delay: 1.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-content { text-align: center; }
  .hero-badge, .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .device { transform: none; max-width: 460px; margin: 0 auto; }
  .floating--tl { left: 8px; }
  .floating--br { right: 8px; }
}
@media (max-width: 560px) { .floating { display: none; } }

/* ----- Bandeau de confiance / logos / stats ----- */
.trustbar { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trustbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.trustbar .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.trustbar .chip { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-700); }
.trustbar .chip svg { width: 20px; height: 20px; color: var(--brand-500); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box { text-align: center; padding: 8px; }
.stat-box .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-box .lbl { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; }
.section--dark .stat-box .num { background: linear-gradient(135deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section--dark .stat-box .lbl { color: var(--ink-300); }
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* ----- Cartes fonctionnalites ----- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card .ic--violet { background: #f3e8ff; color: var(--accent-violet); }
.card .ic--cyan { background: #cffafe; color: #0891b2; }
.card .ic--green { background: #d1fae5; color: var(--success); }
.card .ic--amber { background: #fef3c7; color: var(--warning); }
.card .ic--rose { background: #ffe4e6; color: #e11d48; }

/* Liste a puces avec coche */
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-700); }
.checklist li svg { width: 20px; height: 20px; color: var(--success); margin-top: 2px; flex-shrink: 0; }
.checklist li b { color: var(--ink-900); }

/* ----- Split (texte + visuel) ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.split p.lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 22px; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
}

/* Capture stylisee dans un cadre */
.shot { background: var(--grad-brand-soft); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow-md); }
.shot img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.6); }

/* ----- Etapes "comment ca marche" ----- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num { width: 46px; height: 46px; border-radius: var(--radius-full); background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow-brand); margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ----- Roles (onglets simples en cartes) ----- */
.role-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.role-card__head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.role-card__head .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.role-card__head .ic svg { width: 24px; height: 24px; }
.role-card__head h3 { font-size: 1.15rem; }
.role-card__head small { color: var(--text-subtle); font-weight: 600; }
.role-card__body { padding: 22px 24px; }

/* ----- Plateformes ----- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.platform { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-full); padding: 12px 20px; font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-xs); }
.platform svg { width: 20px; height: 20px; color: var(--brand-600); }

/* ----- Securite (liste sombre) ----- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sec-item { background: var(--ink-800); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-lg); padding: 24px; }
.sec-item .ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(67,97,238,0.18); color: #a5b4fc; display: grid; place-items: center; margin-bottom: 16px; }
.sec-item .ic svg { width: 24px; height: 24px; }
.sec-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.sec-item p { color: var(--ink-300); font-size: 0.94rem; }
@media (max-width: 920px) { .sec-grid { grid-template-columns: 1fr; } }

/* ----- Tarifs ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-sm); }
.plan--featured { border-color: var(--brand-400); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 16px; border-radius: var(--radius-full); box-shadow: var(--shadow-brand); }
.plan h2 { font-size: 1.3rem; margin-bottom: 6px; }
.plan .plan__desc { color: var(--text-muted); font-size: 0.92rem; min-height: 42px; }
.plan .price { font-family: var(--font-display); margin: 18px 0 4px; }
.plan .price .amount { font-size: 2.6rem; font-weight: 800; color: var(--ink-900); }
.plan .price .per { color: var(--text-subtle); font-weight: 600; }
.plan .price-note { color: var(--text-subtle); font-size: 0.85rem; margin-bottom: 22px; }
.plan .checklist { margin: 6px 0 26px; }
.plan .checklist li { font-size: 0.94rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 920px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan--featured { transform: none; } }

/* ----- FAQ ----- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition); }
.faq-item.is-open { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 22px; background: none; border: none; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink-900); }
.faq-q .chev { width: 22px; height: 22px; color: var(--brand-600); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.is-open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.faq-a__inner { padding: 0 22px 22px; color: var(--text-muted); }
.faq-a__inner p + p { margin-top: 12px; }

/* ----- CTA final ----- */
.cta-banner { position: relative; overflow: hidden; background: var(--grad-brand); border-radius: var(--radius-xl); padding: 56px; text-align: center; box-shadow: var(--shadow-brand); }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 80% -20%, rgba(255,255,255,0.22), transparent 60%); pointer-events: none; }
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; position: relative; }
.cta-banner .hero-cta { justify-content: center; position: relative; }
@media (max-width: 640px) { .cta-banner { padding: 40px 24px; } }

/* ----- Footer ----- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }
.site-footer p { color: var(--ink-400); font-size: 0.94rem; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-300); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--ink-300); font-size: 0.95rem; margin-bottom: 10px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--brand-300); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.06); color: var(--ink-200); border: 1px solid rgba(255,255,255,0.08); }
.socials a:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--ink-400); font-size: 0.88rem; }
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom .links a { color: var(--ink-300); }
.footer-bottom .links a:hover { color: #fff; }

/* Accessibilite : les liens dans le corps de texte sont soulignes (pas seulement la couleur) */
main p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
main p a:not(.btn):hover { text-decoration: none; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----- Page hero (sous-pages) ----- */
.page-hero { background: var(--grad-hero); padding: 64px 0 48px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.86rem; color: var(--text-subtle); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-subtle); }
.breadcrumbs a:hover { color: var(--brand-600); }

/* ----- Tableau comparatif ----- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-soft); font-size: 0.92rem; }
.compare td.tick svg { width: 20px; height: 20px; color: var(--success); }
.compare td.cross { color: var(--text-subtle); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare-wrap { overflow-x: auto; }

/* ----- Formulaire contact ----- */
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--ink-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.97rem; color: var(--text); background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.form-note { font-size: 0.85rem; color: var(--text-subtle); }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.info-card .info-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-card .info-item:last-child { border-bottom: none; }
.info-card .info-item .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex-shrink: 0; }
.info-card .info-item .ic svg { width: 22px; height: 22px; }
.info-card .info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.info-card .info-item a, .info-card .info-item p { color: var(--text-muted); }

/* ----- Bouton retour en haut ----- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--grad-brand); color: #fff; border: none; display: grid; place-items: center; box-shadow: var(--shadow-brand); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ----- Badge inline ----- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-full); background: var(--brand-50); color: var(--brand-700); }
.tag--green { background: #d1fae5; color: var(--success); }
.tag--amber { background: #fef3c7; color: #b45309; }

/* ----- Mini-recit par fonctionnalite (scenario du quotidien) ----- */
.feature-story {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--brand-50); border-left: 3px solid var(--brand-500);
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 22px;
  font-style: italic; color: var(--ink-800); font-size: 0.97rem; line-height: 1.65;
}
.feature-story svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; opacity: 0.45; color: var(--brand-600); }
.section--dark .feature-story { background: rgba(67, 97, 238, 0.16); color: var(--ink-200); border-left-color: var(--brand-300); }
.section--dark .feature-story svg { color: var(--brand-200); }

/* ----- Recit / storytelling (section sombre) ----- */
.story { max-width: 760px; margin: 0 auto; }
.story p { font-size: 1.12rem; line-height: 1.9; margin-bottom: 20px; }
.story p:last-child { margin-bottom: 0; }
.section--dark .story p { color: var(--ink-200); }
.story__close { font-weight: 600; }
.section--dark .story__close { color: #fff; }
@media (max-width: 560px) { .story p { font-size: 1.04rem; line-height: 1.8; } }
