/* Site vitrine et pages d'authentification */
body.site { background: #fff; }
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-200); }
.site-header .container { height: 72px; display: flex; align-items: center; gap: 1.25rem; }
.site-logo img { height: 42px; width: auto; display: block; }
.site-nav { display: flex; gap: .2rem; margin-left: auto; }
.site-nav a { padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem; }
.site-nav a:hover, .site-nav a.is-active { color: var(--green-700); background: var(--green-50); }
.site-cta { display: flex; gap: .5rem; }
.site-burger { display: none; margin-left: auto; }
@media (max-width: 1020px) {
  .site-nav, .site-cta { display: none; }
  .site-burger { display: inline-flex; }
  body.nav-open .site-nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: .75rem 16px 1rem; border-bottom: 1px solid var(--grey-200); box-shadow: var(--shadow); }
  body.nav-open .site-cta { display: flex; position: absolute; top: calc(72px + 330px); left: 16px; right: 16px; }
  body.nav-open .site-cta .btn { flex: 1; }
}

.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--orange-600); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange-600) 33%, #fff 33% 66%, var(--green-700) 66%); box-shadow: 0 0 0 1px var(--grey-200); }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--grey-50); }
.section-dark { background: var(--green-900); color: #D6E9DE; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 700px; margin-bottom: 2.25rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.section-dark .section-head p { color: #B7D3C3; }

/* Héro */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(760px 420px at 92% 8%, var(--green-50), transparent 70%), #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-logo { width: 190px; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--orange-600); }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 540px; margin-bottom: 1.5rem; }
.hero .slogan { font-family: var(--font-head); font-style: italic; color: var(--green-700); font-weight: 600; margin-bottom: 1rem; }
.hero-ctas { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero-proof { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .88rem; color: var(--text-2); }
.hero-proof span { display: inline-flex; gap: .4rem; align-items: center; }
.hero-proof .icon { color: var(--green-700); width: 18px; height: 18px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { width: 150px; } }

/* Maquette d'interface (aperçu illustratif) */
.devices { position: relative; padding-bottom: 2rem; }
.laptop { background: #0d1f17; border-radius: 16px 16px 6px 6px; padding: 10px 10px 14px; box-shadow: 0 30px 60px rgba(6,61,42,.22); }
.laptop-screen { background: var(--grey-50); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; display: grid; grid-template-columns: 22% 1fr; font-size: 9px; }
.laptop-base { height: 12px; background: linear-gradient(#cfd8d3, #aab7b0); border-radius: 0 0 14px 14px; margin: 0 -24px; }
.mk-side { background: var(--green-900); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; }
.mk-side .mk-brand { display: flex; align-items: center; gap: 4px; color: #fff; font-weight: 800; font-family: var(--font-head); font-size: 8px; margin-bottom: 6px; }
.mk-side .mk-brand img { width: 14px; height: 14px; border-radius: 3px; background: #fff; }
.mk-side i { display: block; height: 7px; border-radius: 3px; background: rgba(255,255,255,.12); }
.mk-side i.on { background: rgba(255,255,255,.28); box-shadow: inset 2px 0 0 var(--orange-600); }
.mk-main { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-top { height: 14px; background: #fff; border-radius: 4px; border: 1px solid var(--grey-200); }
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mk-kpi { background: #fff; border: 1px solid var(--grey-200); border-radius: 5px; padding: 5px; border-left: 2px solid var(--green-500); }
.mk-kpi b { display: block; font: 800 12px var(--font-head); color: var(--green-900); }
.mk-kpi small { color: var(--text-2); font-size: 6.5px; }
.mk-kpi.alt { border-left-color: var(--orange-600); }
.mk-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5px; flex: 1; min-height: 0; }
.mk-card { background: #fff; border: 1px solid var(--grey-200); border-radius: 5px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.mk-card .t { font: 700 7px var(--font-head); color: var(--green-900); }
.mk-bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding-top: 4px; }
.mk-bars span { flex: 1; background: var(--green-500); border-radius: 2px 2px 0 0; }
.mk-list i { display: flex; align-items: center; gap: 4px; height: 12px; font-style: normal; }
.mk-list i::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green-100); }
.mk-list i::after { content: ""; flex: 1; height: 4px; border-radius: 2px; background: var(--grey-200); }
.phone { position: absolute; right: -6px; bottom: 0; width: 30%; min-width: 120px; background: #0d1f17; border-radius: 22px; padding: 7px; box-shadow: 0 24px 48px rgba(6,61,42,.3); }
.phone-screen { background: #fff; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; font-size: 8px; }
.phone-top { background: var(--green-900); color: #fff; padding: 10px 8px 8px; font: 800 9px var(--font-head); display: flex; justify-content: space-between; align-items: center; }
.phone-top em { font-style: normal; color: var(--orange-400); }
.phone-body { padding: 7px; display: flex; flex-direction: column; gap: 5px; background: var(--grey-50); flex: 1; }
.phone-item { background: #fff; border: 1px solid var(--grey-200); border-radius: 6px; padding: 5px 6px; display: flex; align-items: center; gap: 5px; }
.phone-item .av { width: 16px; height: 16px; border-radius: 50%; background: var(--green-100); flex: none; }
.phone-item .ln { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.phone-item .ln i { height: 4px; border-radius: 2px; background: var(--grey-200); }
.phone-item .ln i:first-child { width: 80%; background: #b9c7bf; }
.phone-item .st { width: 18px; height: 8px; border-radius: 4px; background: var(--green-100); }
.phone-item .st.w { background: var(--yellow-50); border: 1px solid #F5E2A1; }
.phone-btn { margin-top: auto; background: var(--orange-600); color: #fff; text-align: center; border-radius: 6px; padding: 6px; font-weight: 700; font-size: 8px; }
.mock-note { position: absolute; left: 0; bottom: -4px; font-size: .74rem; color: var(--text-2); }

/* Bénéfices et fonctionnalités */
.benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.benefits > .benefit { flex: 1 1 240px; max-width: 286px; }
@media (max-width: 560px) { .benefits > .benefit { max-width: none; } }
.benefit { padding: 1.3rem; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); background: #fff; }
.benefit .ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--green-700); margin-bottom: .8rem; }
.benefit .ic.or { background: var(--orange-50); color: var(--orange-600); }
.benefit h3 { margin-bottom: .35rem; }
.benefit p { color: var(--text-2); font-size: .93rem; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 1.35rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--grey-200); position: relative; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-900); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
.feature ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--text-2); font-size: .9rem; }
.feature p { color: var(--text-2); font-size: .93rem; margin: 0; }
.feature .soon-tag { position: absolute; top: 1rem; right: 1rem; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }
.step3 { padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.step3::before { counter-increment: s; content: counter(s); display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--orange-600); color: #fff; align-items: center; justify-content: center; font: 800 1.1rem var(--font-head); margin-bottom: .9rem; }
.step3 p { color: #B7D3C3; margin: 0; font-size: .95rem; }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { border: 1px solid var(--grey-200); border-radius: 18px; padding: 1.6rem; background: #fff; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--green-700); box-shadow: 0 18px 40px rgba(8,127,70,.12); }
.price-card .tag { position: absolute; top: -12px; left: 1.6rem; background: var(--orange-600); color: #fff; font-size: .74rem; font-weight: 700; padding: .2rem .65rem; border-radius: 99px; }
.price-card h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.price { font: 800 2.2rem var(--font-head); color: var(--green-900); margin: .5rem 0 .1rem; letter-spacing: -.02em; }
.price small { font-size: .95rem; font-weight: 600; color: var(--text-2); }
.price-card .limit { color: var(--text-2); font-size: .9rem; margin-bottom: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; font-size: .93rem; }
.price-card li { display: flex; gap: .5rem; align-items: flex-start; }
.price-card li .icon { color: var(--green-700); width: 18px; height: 18px; margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--text-2); font-size: .88rem; margin-top: 1.25rem; }

/* Académies */
.academy { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .academy { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .icon { color: var(--orange-400); margin-top: 2px; }
.section-dark .checklist li { color: #D6E9DE; }
.academy-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 1.5rem; }
.academy-panel .row-item { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.academy-panel .row-item:last-child { border-bottom: 0; }
.academy-panel .pill { font-size: .75rem; padding: .15rem .55rem; border-radius: 99px; background: rgba(32,164,100,.2); color: #8FE0B5; font-weight: 600; }
.academy-panel .pill.w { background: rgba(255,121,0,.18); color: var(--orange-400); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--grey-200); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green-700); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--text-2); }

.cta-band { background: linear-gradient(120deg, var(--green-900), #0A5A3B); border-radius: 22px; padding: clamp(1.75rem, 4vw, 3rem); color: #D6E9DE; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,121,0,.18); }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.cta-band p { margin: 0; }

/* Pages de contenu */
.page-hero { padding: 3rem 0 2rem; background: var(--grey-50); border-bottom: 1px solid var(--grey-200); }
.page-hero h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: .4rem; }
.page-hero p { color: var(--text-2); font-size: 1.05rem; max-width: 700px; margin: 0; }
.prose { max-width: 800px; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: #2B3A33; }
.prose ul { padding-left: 1.2rem; }
.prose .note { background: var(--orange-50); border: 1px solid #FFD3A8; border-radius: 12px; padding: .9rem 1rem; color: #8A3D00; font-size: .92rem; }

/* Pied de page */
.site-footer { background: var(--green-900); color: #B7D3C3; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 150px; background: #fff; border-radius: 14px; padding: 8px; }
.footer-brand p { margin-top: .8rem; font-style: italic; color: #D6E9DE; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #B7D3C3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.eco { font-size: .82rem; color: #8FB5A0; margin-top: 1rem; max-width: 520px; }
.flag-stripe { height: 4px; background: linear-gradient(90deg, var(--orange-600) 0 33.3%, #fff 33.3% 66.6%, var(--green-700) 66.6%); }

/* Authentification */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-aside { background: var(--green-900); color: #D6E9DE; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,121,0,.14); }
.auth-aside .brand img { width: 170px; background: #fff; border-radius: 16px; padding: 10px; }
.auth-aside h2 { color: #fff; font-size: 1.7rem; margin: 2rem 0 .8rem; max-width: 420px; }
.auth-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.auth-aside li { display: flex; gap: .6rem; }
.auth-aside li .icon { color: var(--orange-400); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: #fff; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.65rem; margin-bottom: .35rem; }
.auth-card .sub { color: var(--text-2); margin-bottom: 1.5rem; }
.auth-mobile-logo { display: none; margin-bottom: 1.25rem; }
.auth-mobile-logo img { height: 44px; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; margin-top: 1rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 4px; top: 2px; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-logo { display: block; }
  .auth-main { align-items: flex-start; padding-top: 1.5rem; }
}
.auth-wrap.is-wide { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
@media (max-width: 900px) { .auth-wrap.is-wide { grid-template-columns: 1fr; } }

/* nav-fit */
.site-nav a { white-space: nowrap; }
@media (max-width: 1320px) { .site-header .container { gap: .9rem; } .site-nav { gap: 0; } .site-nav a { padding: .5rem .5rem; font-size: .88rem; } .site-cta .btn { padding-left: .9rem; padding-right: .9rem; } }
@media (max-width: 1180px) { .site-nav, .site-cta { display: none; } .site-burger { display: inline-flex; } body.nav-open .site-nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: .75rem 16px 1rem; border-bottom: 1px solid var(--grey-200); box-shadow: var(--shadow); z-index: 50; } }
@media (max-width: 1180px) { body.nav-open .site-nav { padding-bottom: calc(1rem + 64px); } body.nav-open .site-cta { display: flex; position: absolute; top: calc(72px + 306px); left: 16px; right: 16px; z-index: 51; } body.nav-open .site-cta .btn { flex: 1; } }
/* mobile-menu-flow : menu mobile dans le flux (plus de position fixe des boutons) */
@media (max-width: 1180px) {
  body.nav-open .site-header .container { flex-wrap: wrap; height: auto; min-height: 72px; row-gap: 0; padding-top: 15px; }
  body.nav-open .site-header .site-burger { margin-left: auto; }
  body.nav-open .site-nav { position: static; order: 3; flex: 0 0 100%; margin: .6rem 0 0; padding: .5rem 0 .75rem; border-top: 1px solid var(--grey-200); border-bottom: 0; box-shadow: none; }
  body.nav-open .site-nav a { padding: .8rem .75rem; font-size: 1rem; }
  body.nav-open .site-cta { position: static; order: 4; flex: 0 0 100%; display: flex; gap: .6rem; padding: .25rem 0 1rem; }
  body.nav-open .site-cta .btn { flex: 1; justify-content: center; min-height: 48px; }
  body.nav-open .site-cta .btn-ghost { border: 1.5px solid var(--green-700); color: var(--green-700); background: #fff; }
  body.nav-open .site-header { box-shadow: 0 12px 30px rgba(6,61,42,.12); }
}
@media (max-width: 380px) { body.nav-open .site-cta { flex-direction: column; } }/* tools-theme */
.site-logo { flex: none; }
/* --- Langue + thème dans l'en-tête --- */
.site-tools { display: flex; align-items: center; gap: .45rem; flex: none; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--grey-200); border-radius: 999px; background: #fff; }
.lang-switch a { min-width: 34px; height: 28px; padding: 0 .55rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font: 700 .76rem/1 var(--font-body); letter-spacing: .04em; color: var(--text-2); text-decoration: none; }
.lang-switch a:hover { color: var(--green-700); }
.lang-switch a.is-on { background: var(--green-900); color: #fff; }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--grey-200); background: #fff; color: var(--green-900); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--green-700); color: var(--green-700); }
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
/* bande langue + thème au-dessus du menu */
.top-strip { background: var(--grey-50); border-bottom: 1px solid var(--grey-200); }
.top-strip .container { height: 38px; display: flex; align-items: center; justify-content: flex-end; }
.top-strip .lang-switch { padding: 2px; }
.top-strip .lang-switch a { height: 24px; min-width: 30px; font-size: .72rem; }
.top-strip .theme-toggle { width: 28px; height: 28px; }
.top-strip .theme-toggle svg { width: 16px; height: 16px; }
html[data-theme="dark"] .top-strip { background: #07110D; border-bottom-color: var(--grey-200); }
.auth-main { position: relative; }
.auth-tools { position: absolute; top: 16px; right: 16px; }
@media (max-width: 900px) { .auth-tools { position: static; display: flex; justify-content: flex-end; width: 100%; max-width: 440px; margin: 0 auto 1rem; } .auth-main { flex-direction: column; align-items: center; } }

/* --- Bouton haut de page --- */
.to-top { position: fixed; right: 20px; bottom: 94px; z-index: 990; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--grey-200); background: #fff; color: var(--green-900); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(6,61,42,.18); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.auth-wrap ~ .to-top { bottom: 20px; }
@media (max-width: 560px) { .to-top { right: 14px; bottom: 86px; width: 46px; height: 46px; } .auth-wrap ~ .to-top { bottom: 16px; } }
@media print { .to-top, .site-tools, .auth-tools { display: none !important; } }

/* --- Mode sombre (site public et pages de connexion) --- */
html[data-theme="dark"] body.site { color-scheme: dark; }
html[data-theme="dark"] body.site {
  --text: #E3EEE8; --text-2: #A3B8AD; --grey-50: #0F1D17; --grey-200: #26392F; --grey-300: #33493E;
  --green-50: rgba(32,164,100,.13); --green-100: rgba(32,164,100,.22); --orange-50: rgba(255,121,0,.13);
  --red-50: rgba(217,45,32,.16); --yellow-50: rgba(242,183,5,.14); --yellow-text: #F5D36B;
  --shadow: 0 1px 3px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.35);
  --dk-bg: #0A1511; --dk-surface: #112019; --dk-surface-2: #162a21; --dk-head: #F3F8F5; --dk-link: #53C98E;
  background: var(--dk-bg); color: var(--text);
}
html[data-theme="dark"] body.site h1, html[data-theme="dark"] body.site h2, html[data-theme="dark"] body.site h3, html[data-theme="dark"] body.site h4 { color: var(--dk-head); }
html[data-theme="dark"] body.site a { color: var(--dk-link); }
html[data-theme="dark"] body.site a:hover { color: #8BE0B4; }
html[data-theme="dark"] body.site a.btn-primary, html[data-theme="dark"] body.site a.btn-accent, html[data-theme="dark"] body.site a.btn-dark { color: #fff; }
html[data-theme="dark"] .site-header { background: rgba(10,21,17,.9); border-bottom-color: var(--grey-200); }
html[data-theme="dark"] .site-logo img, html[data-theme="dark"] .auth-mobile-logo img, html[data-theme="dark"] .hero-logo { background: #fff; border-radius: 10px; padding: 4px 8px; box-sizing: content-box; }
html[data-theme="dark"] .hero-logo { border-radius: 16px; padding: 8px; }
html[data-theme="dark"] body.site .site-nav a { color: var(--text); }
html[data-theme="dark"] body.site .site-nav a:hover, html[data-theme="dark"] body.site .site-nav a.is-active { color: var(--dk-link); background: var(--green-50); }
html[data-theme="dark"] .lang-switch, html[data-theme="dark"] .theme-toggle { background: var(--dk-surface); }
html[data-theme="dark"] body.site .lang-switch a { color: var(--text-2); }
html[data-theme="dark"] body.site .lang-switch a.is-on { background: #20A464; color: #04140D; }
html[data-theme="dark"] .theme-toggle { color: #FFC27A; }
html[data-theme="dark"] .icon-btn { color: var(--text); }
html[data-theme="dark"] .icon-btn:hover { background: var(--dk-surface-2); color: #fff; }
html[data-theme="dark"] .hero { background: radial-gradient(760px 420px at 92% 8%, rgba(32,164,100,.16), transparent 70%), var(--dk-bg); }
html[data-theme="dark"] .hero .slogan { color: var(--dk-link); }
html[data-theme="dark"] .section-alt, html[data-theme="dark"] .page-hero { background: #0E1B15; }
html[data-theme="dark"] .section-dark, html[data-theme="dark"] .site-footer { background: #06100C; }
html[data-theme="dark"] .eyebrow::before { box-shadow: none; }
html[data-theme="dark"] .benefit, html[data-theme="dark"] .feature, html[data-theme="dark"] .price-card, html[data-theme="dark"] .faq details,
html[data-theme="dark"] body.site .card, html[data-theme="dark"] body.site .fieldset { background: var(--dk-surface); border-color: var(--grey-200); }
html[data-theme="dark"] body.site .card-footer { background: var(--dk-surface-2); }
html[data-theme="dark"] .feature .ic { background: #20A464; color: #04140D; }
html[data-theme="dark"] .price { color: var(--dk-head); }
html[data-theme="dark"] .price-card.featured { border-color: #20A464; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
html[data-theme="dark"] .price-card li .icon, html[data-theme="dark"] .hero-proof .icon { color: var(--dk-link); }
html[data-theme="dark"] .faq summary::after { color: var(--dk-link); }
html[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #0B2C20, #0E4430); border: 1px solid #1E3E31; }
html[data-theme="dark"] .prose p, html[data-theme="dark"] .prose li { color: #CFDDD5; }
html[data-theme="dark"] .prose .note { color: #FFC896; border-color: rgba(255,121,0,.35); }
html[data-theme="dark"] body.site .input, html[data-theme="dark"] body.site .select, html[data-theme="dark"] body.site .textarea { background-color: var(--dk-surface); color: var(--text); border-color: var(--grey-300); }
html[data-theme="dark"] body.site .input::placeholder, html[data-theme="dark"] body.site .textarea::placeholder { color: #7D948A; }
html[data-theme="dark"] body.site .btn-outline { background: transparent; color: var(--dk-head); border-color: var(--grey-300); }
html[data-theme="dark"] body.site .btn-outline:hover { border-color: var(--dk-link); color: var(--dk-link); }
html[data-theme="dark"] body.site .btn-ghost { color: var(--dk-link); }
html[data-theme="dark"] body.site .alert-success { color: #A7EBC6; border-color: rgba(32,164,100,.4); }
html[data-theme="dark"] body.site .alert-error { color: #FFB4AB; border-color: rgba(217,45,32,.45); }
html[data-theme="dark"] body.site .alert-info { background: rgba(59,130,246,.12); color: #BFD5FF; border-color: rgba(59,130,246,.35); }
html[data-theme="dark"] body.site .alert-accent { color: #FFC896; border-color: rgba(255,121,0,.35); }
html[data-theme="dark"] .auth-main { background: var(--dk-bg); }
html[data-theme="dark"] .auth-aside { background: #06100C; }
html[data-theme="dark"] .to-top { background: var(--dk-surface); color: var(--dk-head); border-color: var(--grey-300); box-shadow: 0 8px 22px rgba(0,0,0,.5); }
html[data-theme="dark"] .to-top:hover { background: #20A464; color: #04140D; }
html[data-theme="dark"] .mock-note { color: var(--text-2); }
/* pages Application et Démo */
html[data-theme="dark"] .dl-hero { background: radial-gradient(720px 420px at 88% 0%, rgba(32,164,100,.16), transparent 70%), var(--dk-bg); }
html[data-theme="dark"] .dl-lead, html[data-theme="dark"] .dl-asset p, html[data-theme="dark"] .dl-qr p, html[data-theme="dark"] .dl-step-card details, html[data-theme="dark"] .dv-card p { color: var(--text-2); }
html[data-theme="dark"] .dl-badge { background: #20A464; color: #04140D !important; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
html[data-theme="dark"] .dl-badge.alt { background: var(--dk-surface); color: var(--dk-head) !important; border-color: var(--grey-300); }
html[data-theme="dark"] .dl-qr, html[data-theme="dark"] .dl-asset, html[data-theme="dark"] .dl-step-card, html[data-theme="dark"] .dv-card { background: var(--dk-surface); border-color: var(--grey-200); box-shadow: none; }
html[data-theme="dark"] .dl-qr svg { background: #fff; border-radius: 10px; padding: 8px; box-sizing: border-box; }
html[data-theme="dark"] .dl-qr-app strong, html[data-theme="dark"] .dl-asset h3, html[data-theme="dark"] .dl-step-card h3, html[data-theme="dark"] .dv-card h3 { color: var(--dk-head); }
html[data-theme="dark"] .dl-asset .ic, html[data-theme="dark"] .dv-card .ic { color: var(--dk-link); }
html[data-theme="dark"] .dl-step-card header .ic { background: #20A464; color: #04140D; }
html[data-theme="dark"] .dl-step-card li { color: var(--text); }
html[data-theme="dark"] .dl-step-card li::before { color: var(--dk-link); }
html[data-theme="dark"] .dl-other { background: var(--dk-surface-2); }
html[data-theme="dark"] .dl-other p { color: var(--text); }
html[data-theme="dark"] .dv-hero { background: radial-gradient(900px 500px at 85% -10%, rgba(8,127,70,.45), transparent 60%), #06100C; }
html[data-theme="dark"] #demo-note { background: var(--green-50) !important; border-color: rgba(32,164,100,.35) !important; }
html[data-theme="dark"] #demo-note strong { color: var(--dk-head) !important; }
html[data-theme="dark"] #demo-note p { color: var(--text-2) !important; }
/* chatbox */
html[data-theme="dark"] .fmc-panel { background: var(--dk-surface); border-color: var(--grey-200); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
html[data-theme="dark"] .fmc-head { background: #06100C; }
html[data-theme="dark"] .fmc-log { background: var(--dk-bg); }
html[data-theme="dark"] .fmc-msg.bot, html[data-theme="dark"] .fmc-typing { background: var(--dk-surface-2); color: var(--text); border-color: var(--grey-200); }
html[data-theme="dark"] .fmc-msg.bot a { color: var(--dk-link); }
html[data-theme="dark"] .fmc-chips, html[data-theme="dark"] .fmc-form, html[data-theme="dark"] .fmc-wa { background: var(--dk-surface); border-color: var(--grey-200); }
html[data-theme="dark"] .fmc-chips button { background: var(--green-50); border-color: rgba(32,164,100,.35); color: var(--dk-head); }
html[data-theme="dark"] .fmc-form input { background: var(--dk-bg); color: var(--text); border-color: var(--grey-300); }
html[data-theme="dark"] .fmc-wa { color: var(--text-2) !important; }
html[data-theme="dark"] .fmc-wa strong { color: var(--dk-link); }
html[data-theme="dark"] .fmc-teaser { background: var(--dk-surface-2); color: var(--text); border-color: var(--grey-300); }
html[data-theme="dark"] .fmc-dot { border-color: var(--dk-bg); }
html[data-theme="dark"] body.site .fieldset legend, html[data-theme="dark"] body.site .label, html[data-theme="dark"] body.site .field label { color: var(--dk-head); }
html[data-theme="dark"] body.site .chip-input span { background: var(--dk-surface-2); border-color: var(--grey-300); color: var(--text); }
html[data-theme="dark"] body.site .table th { background: var(--dk-surface-2); color: var(--text-2); }
html[data-theme="dark"] body.site .table td { border-color: var(--grey-200); color: var(--text); }

/* Logo FootManager : versions claire / sombre (2026-10-27) */
.fm-logo-dark { display: none !important; }
html[data-theme="dark"] .fm-logo-light { display: none !important; }
html[data-theme="dark"] .fm-logo-dark { display: block !important; }
html[data-theme="dark"] .site-logo img, html[data-theme="dark"] .auth-mobile-logo img, html[data-theme="dark"] .hero-logo { background: none; padding: 0; border-radius: 0; }
.footer-brand img, .auth-aside .brand img { background: none; padding: 0; border-radius: 0; }
