/* Fidèle : site vitrine, blog et pages publiques des clients. */

.fi-embed { font-family: var(--font-body); color: var(--text); line-height: 1.55; }
.fi-embed *, .fi-embed *::before, .fi-embed *::after { box-sizing: border-box; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
.site-main, .public-main { min-height: 60dvh; }
.page-content > :not(.fi-embed):not(.alignfull) { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.page-content > :not(.fi-embed):first-child { margin-top: 48px; }
.h3 { font-size: 1.25rem; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--text); flex: none; }
.brand-img { max-height: 40px; width: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; line-height: 1; padding-bottom: 2px; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav-list a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 0.93rem; font-weight: 550; color: var(--text-2); transition: background .15s, color .15s; }
.site-nav-list a:hover, .site-nav-list .current-menu-item a { background: var(--surface-2); color: var(--text); }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; }
.theme-toggle .i { display: none; }
:root:not([data-theme]) .theme-toggle .theme-auto, :root[data-theme="light"] .theme-toggle .theme-light, :root[data-theme="dark"] .theme-toggle .theme-dark { display: block; }
.site-drawer { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 16px 20px; }
.site-drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-drawer-list a { display: block; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.site-drawer-list a:hover { background: var(--surface-2); }
.site-drawer-actions { margin-top: 12px; }
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) { .hide-sm { display: none; } .site-header-inner { gap: 12px; } }

/* ---------- pied de page ---------- */
.site-footer { margin-top: 32px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: 56px 40px; }
.site-footer-brand p { margin-top: 14px; color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.site-footer-col h2 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.site-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer-list a { text-decoration: none; color: var(--text-2); font-size: 0.93rem; }
.site-footer-list a:hover { color: var(--primary); }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
@media (max-width: 860px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } .site-footer-brand { grid-column: 1 / -1; } }

/* ---------- sections ---------- */
.section { padding-block: 96px; }
.section-tight { padding-block: 56px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding-block: 64px; } .section-tight { padding-block: 40px; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.small-title { font-size: 1.4rem; margin-bottom: 20px; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.section-head-center .section-lead { margin-inline: auto; }
.eyebrow { display: inline-flex; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 0.8rem; font-weight: 650; margin-bottom: 16px; }

/* ---------- hero ---------- */
.hero { padding-block: 56px 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -0.035em; line-height: 1.06; }
.hero-word { display: block; color: var(--primary); min-height: 1.1em; white-space: nowrap; }
.hero-word::after { content: ""; display: inline-block; width: 3px; height: 0.86em; margin-left: 4px; vertical-align: -0.08em; background: var(--accent); border-radius: 2px; animation: fi-caret 1s steps(1) infinite; }
@keyframes fi-caret { 50% { opacity: 0; } }
.hero-sub { margin-top: 20px; font-size: 1.14rem; color: var(--muted); max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-visual::before { content: ""; position: absolute; inset: 8% -6% 14%; z-index: -1; background: radial-gradient(60% 55% at 55% 45%, var(--primary-soft), transparent 70%); }
.phone { width: 340px; max-width: 100%; border-radius: 46px; padding: 12px; background: #0f1714; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3a33; position: relative; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #0f1714; z-index: 2; }
.phone-screen { border-radius: 36px; background: linear-gradient(180deg, #e9efeb, #dfe7e2); padding: 52px 14px 18px; min-height: 560px; display: flex; flex-direction: column; gap: 12px; }
:root[data-theme="dark"] .phone-screen { background: linear-gradient(180deg, #1e2925, #141c19); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone-screen { background: linear-gradient(180deg, #1e2925, #141c19); } }
.phone-time { position: absolute; top: 24px; left: 44px; font-size: 0.8rem; font-weight: 700; color: var(--text); }
.wallet-push { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); font-size: 0.78rem; line-height: 1.35; animation: fi-drop 0.7s 0.9s var(--ease) both; }
.wallet-push strong { display: block; font-size: 0.78rem; }
.wallet-push-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.wallet-push-icon .i { width: 16px; height: 16px; }
@keyframes fi-drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.hero-card { max-width: none; }
.hero-card .stamp.is-filled { animation: fi-stamp .5s var(--d, 0ms) var(--ease) both; }
@keyframes fi-stamp { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } }
.hero-badges { display: flex; gap: 8px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
  .phone-screen { min-height: 0; }
}

/* ---------- bento (différenciation) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-cell { border-radius: var(--radius-lg); padding: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; min-height: 260px; }
.bento-cell h3 { font-size: 1.28rem; }
.bento-cell p { color: var(--muted); }
.bento-wide { grid-column: span 2; }
.bento-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-ink); margin-bottom: 6px; }
.bento-notes { flex-direction: row; align-items: center; gap: 28px; }
.bento-notes .bento-text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.note-sample { flex: 0 0 44%; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.note-sample-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.note-sample-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-size: 0.9rem; }
.note-sample p { font-size: 0.86rem; background: var(--accent-soft); color: var(--accent-ink); padding: 10px 12px; border-radius: 12px; }
.bento-wallet { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.bento-wallet h3, .bento-wallet p { color: inherit; }
.bento-wallet p { opacity: .85; }
.bento-wallet .bento-icon { background: rgb(255 255 255 / .14); color: inherit; }
.wallet-quote { margin-top: auto; font-family: var(--font-display); font-size: 1.15rem; opacity: 1 !important; }
.bento-waste { background: var(--accent-soft); border-color: transparent; }
.bento-waste .bento-icon { background: var(--accent); color: #2b1f08; }
.bento-waste p { color: var(--accent-ink); opacity: .9; }
.bento-map { background-color: var(--surface); background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1.2px, transparent 0); background-size: 18px 18px; }
.bento-map .bento-text { max-width: 52ch; display: flex; flex-direction: column; gap: 10px; background: var(--surface); padding: 20px; margin: -20px; border-radius: 16px; }
.bento-map::after { content: ""; position: absolute; right: 9%; top: 50%; width: 120px; height: 120px; border-radius: 50% 50% 50% 0; transform: translateY(-50%) rotate(-45deg); background: var(--primary); box-shadow: 0 0 0 18px var(--primary-soft); opacity: .9; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .bento-notes { flex-direction: column; align-items: stretch; }
  .bento-map::after { display: none; }
}

/* ---------- comment ça marche ---------- */
.how { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.how-head { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.how-head .btn { margin-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--surface-3); line-height: 1; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; padding-right: 40px; }
.step p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 32px; } .how-head { position: static; } }

/* ---------- fonctionnalités ---------- */
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-group { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature-group:nth-child(2) { background: var(--primary-soft); border-color: transparent; }
.feature-group h3 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; letter-spacing: 0; }
.feature-group:nth-child(2) h3 { color: var(--primary-soft-ink); }
.feature-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature-group li { display: flex; gap: 14px; }
.feature-group strong { display: block; font-size: 1rem; }
.feature-group p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.feature-group:nth-child(2) p { color: var(--primary-soft-ink); opacity: .85; }
.feature-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }
.feature-group:nth-child(2) .feature-icon { background: var(--surface); }
@media (max-width: 960px) { .feature-groups { grid-template-columns: 1fr; } }

/* ---------- tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.plan-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.plan-head h3 { font-size: 1.3rem; }
.plan-desc { color: var(--muted); font-size: 0.93rem; margin-top: 6px; min-height: 2.9em; }
.plan-price { margin: 20px 0 22px; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-family: var(--font-display); font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 0.92rem; }
.plan-features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.plan-features li .i { color: var(--primary); margin-top: 3px; }
.plan-features li.is-off { color: var(--muted); }
.plan-features li.is-off .i { color: var(--line-strong); }
.plan.is-featured { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-lg); }
.plan.is-featured h3, .plan.is-featured .plan-price strong { color: var(--primary-ink); }
.plan.is-featured .plan-desc, .plan.is-featured .plan-price span { color: color-mix(in srgb, var(--primary-ink) 75%, transparent); }
.plan.is-featured .plan-features li .i { color: var(--accent); }
.plan.is-featured .btn-primary { --btn-bg: var(--primary-ink); --btn-fg: var(--primary); --btn-line: var(--primary-ink); }
.plan.is-featured .btn-primary:hover { background: color-mix(in srgb, var(--primary-ink) 90%, var(--primary)); }
.plans-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin-top: 24px !important; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---------- bandeau ---------- */
.band { display: flex; align-items: center; gap: 24px; padding: 32px 36px; border-radius: var(--radius-lg); background: var(--primary); color: var(--primary-ink); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgb(255 255 255 / .06); pointer-events: none; }
.band h2 { color: inherit; font-size: 1.5rem; }
.band p { opacity: .85; margin-top: 6px; max-width: 60ch; }
.band-icon { width: 56px; height: 56px; border-radius: 16px; background: rgb(255 255 255 / .12); display: grid; place-items: center; flex: none; }
.band-icon .i { width: 28px; height: 28px; }
.band-btn { --btn-bg: var(--primary-ink); --btn-fg: var(--primary); --btn-line: var(--primary-ink); position: relative; z-index: 1; }
.band-btn:hover { background: color-mix(in srgb, var(--primary-ink) 88%, var(--primary)); }
@media (max-width: 760px) { .band { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.faq-aside .link { display: inline-flex; margin-top: 20px; align-items: center; gap: 6px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { transition: transform .25s var(--ease); color: var(--muted); }
.faq-item[open] .faq-plus { transform: rotate(45deg); color: var(--primary); }
.faq-item p { padding: 0 20px 20px; color: var(--muted); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } .faq-aside { position: static; } }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--text-2); }
.contact-points li { display: flex; gap: 10px; align-items: center; }
.contact-points .i { color: var(--primary); }
.contact-card { padding: 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0; }
.form-success .empty-icon, .empty-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; }
.form-success .empty-icon .i { width: 26px; height: 26px; }
.form-success h2, .form-success h3 { font-size: 1.3rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- pages génériques ---------- */
.page-hero { padding-block: 64px 32px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; max-width: 22ch; }
.page-hero-simple { padding-bottom: 8px; }
.legal-page { padding-block: 56px 32px; max-width: 840px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { margin-top: 8px; }
.legal-missing { background: var(--warning-soft); color: var(--warning); padding: 0 6px; border-radius: 6px; font-size: .9em; }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--text-2); max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; color: var(--text); }
.prose a { color: var(--primary); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }
.prose img, .prose figure img { border-radius: var(--radius); height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.prose code { font-family: var(--font-mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose pre { background: var(--surface-2); padding: 16px; border-radius: var(--radius); overflow: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* ---------- municipalités ---------- */
.muni-hero { max-width: 900px; }
.muni-hero .btn { margin-top: 28px; }
.muni-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.muni-item { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.muni-item:first-child { background: var(--primary-soft); border-color: transparent; }
.muni-item h2 { font-size: 1.1rem; margin-bottom: 6px; }
.muni-item p { color: var(--muted); font-size: .94rem; }
.muni-gate { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .muni-grid, .muni-gate { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- authentification ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 68px); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 2rem; }
.auth-form > p.muted { margin: 8px 0 28px; }
.auth-aside { background: var(--primary); color: var(--primary-ink); display: flex; align-items: center; padding: 48px; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgb(255 255 255 / .05); }
.auth-aside-inner { max-width: 440px; position: relative; }
.auth-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px !important; }
.auth-aside p { opacity: .88; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.auth-points .i { color: var(--accent); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-wrap .btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.verify { display: grid; gap: 14px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; min-height: 0; } .auth-aside { display: none; } .auth-panel { padding-block: 40px 56px; } }

/* ---------- blog ---------- */
.blog-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.blog-search { width: min(340px, 100%); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip { display: inline-flex; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--text-2); transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--line-strong); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.post-thumb-fallback .i { width: 40px; height: 40px; opacity: .7; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.post-meta a { text-decoration: none; }
.post-body h2, .post-body h3 { font-size: 1.22rem; margin-top: 8px; }
.post-body h2 a, .post-body h3 a { text-decoration: none; }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--primary); }
.post-excerpt { color: var(--muted); margin-top: 8px !important; font-size: .95rem; }
.post-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.post-card.is-featured h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--surface); }
.pagination .page-numbers.current { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.article-head { max-width: 840px; padding-block: 48px 24px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.03em; margin-top: 14px; }
.article-head .post-meta { margin-top: 24px; }
.article-cover { margin-block: 8px 40px; }
.article-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); }
.article-body { margin-inline: auto; padding-bottom: 32px; }
.article-tags { margin: 0 auto 48px; }
.fi-article .article .wrap > .prose { margin-inline: auto; }
.posts-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .posts, .posts-related { grid-template-columns: 1fr 1fr; } .post-card.is-featured { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) { .posts, .posts-related { grid-template-columns: 1fr; } }

/* ---------- pages publiques des clients ---------- */
.fi-public { --brand: var(--primary); --brand-ink: var(--primary-ink); }
.public-main { padding: 24px 0 8px; }
.public-shell { max-width: 980px; margin-inline: auto; padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 20px; }
.public-brand { display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.public-brand h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.public-logo { background: var(--brand); color: var(--brand-ink); border-radius: 16px; }
.public-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
.public-grid-card { grid-template-columns: 0.85fr 1.15fr; }
.public-grid-card > .stack:first-child { position: sticky; top: 20px; align-items: center; }
.card-title { font-size: 1.15rem; }
.btn-brand { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-line: var(--brand); }
.btn-brand:hover { background: var(--brand); filter: brightness(1.08); }
.btn-wallet { --btn-bg: #111; --btn-fg: #fff; --btn-line: #111; width: 100%; min-height: 50px; border-radius: 14px; }
.btn-wallet:hover { background: #222; }
.wallet-buttons { display: grid; gap: 10px; width: 100%; max-width: 360px; }
.reward-list, .history { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.reward-list li, .history li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.reward-list li + li, .history li + li { border-top: 1px solid var(--line); }
.reward-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; flex: none; }
.reward-list li.is-unlocked .reward-icon { background: var(--accent-soft); color: var(--accent-ink); }
.delta { font-weight: 700; }
.delta.is-plus { color: var(--success); }
.delta.is-minus { color: var(--danger); }
.big-number { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px !important; }
.big-number span { font-size: 1rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.kv { margin: 0; display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.card-link { display: flex; align-items: center; gap: 14px; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.offers { display: grid; gap: 14px; }
.offer h2 { font-size: 1.2rem; }
.offer > * + * { margin-top: 10px; }
.offer-price { display: flex; gap: 8px; align-items: baseline; }
.offer-price strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--brand); }
.offer-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .88rem; }
.offer-meta span { display: inline-flex; gap: 5px; align-items: center; }
.offer-action { margin-top: 14px !important; }
.public-footer { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 20px 16px 32px; color: var(--muted); font-size: .84rem; }
.public-footer a { text-decoration: none; }
.public-footer a:hover { color: var(--text); }
.loyalty-card .lc-balance small { font-size: .55em; opacity: .7; }
@media (max-width: 820px) { .public-grid, .public-grid-card { grid-template-columns: 1fr; } .public-grid-card > .stack:first-child { position: static; } }

/* ---------- annuaire ---------- */
.directory-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.directory-search { position: sticky; top: 90px; }
.city-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; max-height: 460px; overflow: auto; }
.city-list a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.city-list a:hover { background: var(--surface-2); }
.map-frame { height: 560px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); position: relative; z-index: 0; }
.map-frame-sm { height: 300px; }
.map-loading { position: absolute; inset: 0; border-radius: 0; }
.map-frame .leaflet-popup-content-wrapper { border-radius: 14px; font-family: var(--font-body); }
.map-frame .leaflet-popup-content { margin: 14px 16px; }
.map-popup strong { display: block; font-size: .95rem; }
.map-popup span { color: #5a6862; font-size: .82rem; }
.map-popup a { display: inline-block; margin-top: 8px; font-weight: 700; color: #1b4d3e; }
.map-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / .25); }
.city-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; }
.city-side { position: sticky; top: 90px; }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.biz { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.biz input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.biz:hover { border-color: var(--line-strong); }
.biz:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.biz:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.biz-desc { display: block; margin-top: 2px; }
.biz-check { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.biz:has(input:checked) .biz-check { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.biz-check .i { width: 16px; height: 16px; stroke-width: 2.6; }
.join-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.join-results li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
@media (max-width: 900px) { .directory-layout, .city-layout { grid-template-columns: 1fr; } .directory-search, .city-side { position: static; } .map-frame { height: 380px; } }

/* ---------- apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- parrainage et anniversaire (pages client) ---------- */
.copy-row { display: flex; gap: 8px; margin-top: 14px; }
.copy-row .input { flex: 1 1 auto; min-width: 0; }
.copy-row .btn { flex: none; }
.referral-card { border: 1.5px solid color-mix(in srgb, var(--brand, var(--primary)) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--brand, var(--primary)) 7%, var(--surface)), var(--surface)); }
.referral-card .reward-icon { background: color-mix(in srgb, var(--brand, var(--primary)) 14%, var(--surface)); color: var(--brand, var(--primary)); }
.referral-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.referral-banner .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface); }
.referral-banner p { margin: 2px 0 0; }
.birthday-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.birthday-form .copy-row { margin-top: 6px; }

/* ---------- QR comptoir (page client) ---------- */
.counter-shell { max-width: 520px; gap: 16px; }
.counter-head { display: flex; align-items: center; gap: 14px; padding-block: 4px; }
.counter-head h1 { font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.15; }
.counter-stage { padding: 32px 22px 24px; }
.counter-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.counter-state[hidden] { display: none; }
.counter-state h2 { font-size: 1.35rem; margin-top: 6px; }
.counter-state p { max-width: 36ch; }
.counter-state .btn { margin-top: 10px; }
.counter-orb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); position: relative; }
.counter-orb .i { width: 44px; height: 44px; stroke-width: 1.8; }
.counter-orb .spinner { width: 40px; height: 40px; border-width: 3px; }
.counter-orb.is-success { background: var(--brand); color: var(--brand-ink); }
.counter-orb.is-success .i { stroke-width: 2.6; }
.counter-orb.is-error { background: var(--danger-soft); color: var(--danger); }
.counter-orb.is-muted { background: var(--surface-2); color: var(--muted); }
.counter-gain { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--brand); margin-top: 8px; }
.counter-progress { width: 100%; display: grid; gap: 10px; margin-top: 6px; }
.counter-progress .stamps { margin-inline: auto; width: 100%; max-width: 300px; }
.counter-progress .stamp { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.counter-progress .stamp.is-filled { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.counter-progress .stamp.is-new { animation: fi-stamp .6s .25s var(--ease) both; }
.counter-code { font-family: var(--font-display); font-size: 2rem; font-weight: 700; text-align: center; letter-spacing: .5em; padding-left: .5em; max-width: 220px; min-height: 64px; }
.counter-switch { padding: 0 4px; }
.counter-switch summary { cursor: pointer; text-align: center; padding: 8px; }
.counter-switch[open] summary { margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .counter-orb.is-success { animation: fi-stamp .55s var(--ease) both; }
  .counter-orb.is-success::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: fi-ripple 1s .2s ease-out both; }
  .counter-orb.is-pending::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: fi-ripple 1.6s ease-out infinite; }
  .counter-gain { animation: fi-pop .5s .15s var(--ease) both; }
}
@keyframes fi-ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
