/* Zentau — site public (accueil, fonctionnalités, secteurs, tarifs, pages légales). Complète app.css. */

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body.site { background: var(--surface); font-size: 16px; }
.site h1, .site h2, .site h3 { letter-spacing: -.01em; }
.site-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }

.site .btn-lg { padding: 13px 22px; font-size: 1.02rem; border-radius: 10px; white-space: normal; text-align: center; }
.btn-white { background: #fff; border-color: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-soft); }
.btn-outline-white { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .1); }

/* ---------- En-tête et navigation ---------- */

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--border); backdrop-filter: saturate(180%) blur(10px); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn), .site-menu > summary { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; }
.site-nav > a:not(.btn):hover, .site-menu > summary:hover { background: var(--bg); text-decoration: none; }
.site-nav > a.active { color: var(--primary); }
.site-nav-actions { display: flex; gap: 8px; margin-left: 10px; }

.site-menu { position: relative; }
.site-menu > summary { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary .icon { transition: transform .15s ease; }
.site-menu[open] > summary .icon { transform: rotate(180deg); }
.site-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    padding: 10px;
    display: grid;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 40px -12px rgba(16, 24, 40, .22);
}
.site-menu-wide { width: 640px; grid-template-columns: 1fr 1fr; }
.site-menu-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--text); }
.site-menu-link:hover { background: var(--bg); text-decoration: none; }
.site-menu-link strong { display: block; font-size: .95rem; }
.site-menu-link small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.site-menu-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.site-menu-all { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding: 12px 10px 6px; margin-top: 4px; border-top: 1px solid var(--border); font-weight: 700; }

.site-nav-toggle { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }

/* ---------- Héros ---------- */

.hero { background: radial-gradient(ellipse 80% 70% at 85% 0%, #d4efeb 0%, transparent 60%), linear-gradient(180deg, var(--primary-soft), var(--surface) 85%); padding: 72px 0 80px; overflow: hidden; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.02em; }
.hero-lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-compact { padding: 40px 0 56px; }
.hero-compact h1 { max-width: 820px; }
.hero-split { padding-top: 32px; }
.hero-split .breadcrumb { margin-bottom: 28px; }
.text-accent { color: var(--primary); }

.eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: rgba(15, 118, 110, .1); color: var(--primary); font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow.center { display: table; margin-left: auto; margin-right: auto; }
.eyebrow-light { background: rgba(94, 234, 212, .14); color: #5eead4; display: table; margin-left: auto; margin-right: auto; }

.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.check-list .icon { margin-top: 3px; color: var(--primary); }
.check-list-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .93rem; margin: 0; }
.check-list-inline li { align-items: center; }
.check-list-inline .icon { margin-top: 0; }
.check-list-columns { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

.hero-visual-stack { position: relative; }
.hero-float { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 32px -10px rgba(16, 24, 40, .28); font-size: .82rem; line-height: 1.3; }
.hero-float strong { display: block; }
.hero-float small { display: block; color: var(--muted); }
.hero-float-top { top: -22px; right: -14px; }
.hero-float-bottom { bottom: -48px; left: -26px; }
.hero-float-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.hero-float-icon-ok { background: var(--success-soft); color: var(--success); }
@media (prefers-reduced-motion: no-preference) {
    .hero-float { animation: float 6s ease-in-out infinite; }
    .hero-float-bottom { animation-delay: -3s; }
}
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Bandeau de chiffres ---------- */

.facts-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.facts-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-strip p { margin: 0; padding: 26px 20px; text-align: center; }
.facts-strip p + p { border-left: 1px solid var(--border); }
.facts-strip strong { display: block; font-size: 1.45rem; color: var(--primary); letter-spacing: -.01em; }
.facts-strip span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */

.site-section { padding: 88px 0; }
.site-section-tight { padding: 56px 0 72px; }
.site-section-alt { background: var(--bg); }
.site-section-dark { background: radial-gradient(ellipse 70% 60% at 50% 0%, #165e56 0%, transparent 70%), #0b2b28; color: #cfe3df; }
.site-section-dark .section-title { color: #fff; }
.site-section-dark .section-lead { color: #9fc4bd; }
.section-title { font-size: clamp(1.65rem, 3.2vw, 2.4rem); line-height: 1.2; text-align: center; max-width: 820px; margin: 0 auto 18px; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto 48px; }
.site-section > .site-container > .section-title:last-child { margin-bottom: 0; }
.section-title + .card-grid, .section-title + .benefit-grid, .section-title + .trust-grid, .section-title + .included-grid, .section-title + .module-grid, .section-title + .steps, .section-title + .price-examples { margin-top: 40px; }

/* Avant / après */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.compare-col { padding: 28px; border-radius: 16px; border: 1px solid var(--border); }
.compare-col h3 { margin: 0 0 16px; font-size: 1.15rem; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; }
.compare-col .icon { margin-top: 4px; }
.compare-before { background: var(--bg); color: var(--muted); }
.compare-before .icon { color: var(--danger); }
.compare-after { background: var(--primary-soft); border-color: #b8e0da; }
.compare-after .icon { color: var(--primary); }

/* Blocs texte + illustration */
.detail { display: grid; gap: 64px; align-items: center; max-width: 820px; }
.detail-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: none; }
.detail + .detail { margin-top: 96px; }
.detail-reverse .detail-text { order: 2; }
.detail-text h2, .detail-text h3 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.2; margin: 0 0 14px; }
.detail-lead { color: var(--muted); font-size: 1.07rem; line-height: 1.65; margin-bottom: 22px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.more-link .icon { transition: transform .15s ease; }
.more-link:hover .icon { transform: translateX(3px); }

/* Avantages, rôles */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.benefit h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.benefit p { color: var(--muted); margin: 0; line-height: 1.6; }
.benefit-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.benefit-icon .icon { width: 22px; height: 22px; }

/* Cartes-liens */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.link-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--muted); line-height: 1.55; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.link-card strong { color: var(--text); font-size: 1.12rem; margin-top: 8px; }
a.link-card:hover { text-decoration: none; border-color: var(--primary); box-shadow: 0 16px 32px -16px rgba(15, 118, 110, .45); transform: translateY(-2px); }
.link-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--primary); font-weight: 700; }
.link-card-static { background: var(--bg); border-style: dashed; }
.link-card-dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); color: #a9cbc4; }
.link-card-dark strong { color: #fff; }
.link-card-dark .benefit-icon { background: rgba(94, 234, 212, .14); color: #5eead4; }
.link-card-dark .link-card-more { color: #5eead4; }
a.link-card-dark:hover { border-color: #5eead4; box-shadow: none; }

/* Étapes */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 0 0 40px; }
.step { counter-increment: step; position: relative; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Confiance */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust > .icon { width: 28px; height: 28px; color: var(--primary); }
.trust h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.trust p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* Vue d'ensemble des fonctionnalités */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.module { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.module h3 { margin: 18px 0 6px; font-size: 1.3rem; }
.module h3 a { color: var(--text); }
.module > p { color: var(--muted); margin-bottom: 18px; }
.module .more-link { margin-top: auto; }
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.included { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #e6f4f2; font-weight: 600; }
.included .icon { color: #5eead4; }

/* Fil d'Ariane */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b0b7c3; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Tarifs ---------- */

.pricing { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; }
.pricing .section-title { text-align: left; margin: 0 0 14px; }
.pricing h2:not(.section-title) { font-size: 1.3rem; margin: 0 0 16px; }
.pricing .check-list + h2 { margin-top: 32px; }
.price-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 18px; border-color: #b8e0da; box-shadow: 0 24px 48px -20px rgba(15, 118, 110, .4); }
.price { margin: 0; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.price-card .field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.price-card input[type=number] { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 1.15rem; }
.simulator-result { font-size: 1.15rem; margin: 0; }
.price-note { margin: 0; font-size: .88rem; text-align: center; }
.price-examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.price-example { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.price-example span { color: var(--muted); font-weight: 600; }
.price-example strong { font-size: 1.6rem; color: var(--text); }
.price-example small { color: var(--muted); }

/* ---------- Questions fréquentes ---------- */

.faq { max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 12px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.04rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--muted); transition: transform .15s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { color: var(--muted); margin: 0; padding: 0 22px 20px; line-height: 1.65; }

/* ---------- Appel final ---------- */

.cta { background: radial-gradient(ellipse 60% 80% at 50% 0%, #149085 0%, transparent 70%), var(--primary); color: #d5efeb; }
.cta-inner { text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; margin: 0 auto 14px; max-width: 760px; }
.cta p { font-size: 1.12rem; margin: 0 auto 28px; max-width: 620px; }
.cta .hero-actions { justify-content: center; }
.cta .check-list-inline { justify-content: center; color: #d5efeb; }
.cta .check-list-inline .icon { color: #fff; }

/* ---------- Pied de page ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg); }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer-grid nav { display: flex; flex-direction: column; gap: 9px; font-size: .93rem; }
.site-footer-grid nav a { color: var(--text); }
.site-footer-about .brand { padding: 0; margin-bottom: 14px; }
.site-footer-about p { font-size: .93rem; max-width: 320px; }
.site-footer-title { margin: 0 0 4px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.site-footer-bottom { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: .88rem; }

/* ---------- Pages légales ---------- */

.legal { max-width: 820px; padding-top: 40px; padding-bottom: 64px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.7; }
.legal table { margin: 12px 0; font-size: .9rem; }
.legal td { vertical-align: top; }
mark.todo { background: #fff3c4; color: #8a5a00; padding: 0 4px; border-radius: 4px; }

/* ---------- Illustrations de l'interface (données fictives) ---------- */

.mk { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 28px 56px -18px rgba(16, 24, 40, .25); overflow: hidden; font-size: 12px; line-height: 1.4; text-align: left; color: var(--text); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f2f4f7; border-bottom: 1px solid var(--border); }
.mk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; flex-shrink: 0; }
.mk-bar span { margin-left: 8px; color: var(--muted); font-weight: 700; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-body { padding: 16px; }
.mk-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eef0f3; color: var(--muted); font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.mk-badge-ok { background: var(--success-soft); color: var(--success); }
.mk-badge-warn { background: var(--warning-soft); color: var(--warning); }
.mk-badge-bad { background: var(--danger-soft); color: var(--danger); }
.mk-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 11px; white-space: nowrap; }
.mk-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.mk-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mk-table th { text-align: left; color: var(--muted); font-weight: 700; padding: 5px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mk-table td { padding: 6px; border-bottom: 1px solid #f0f2f5; }

/* Planning */
.mk-grid { display: grid; grid-template-columns: 76px repeat(7, minmax(0, 1fr)); gap: 4px; }
.mk-day { text-align: center; color: var(--muted); font-weight: 700; font-size: 10.5px; padding-bottom: 2px; white-space: nowrap; }
.mk-person { display: flex; flex-direction: column; justify-content: center; font-weight: 700; font-size: 11px; line-height: 1.2; }
.mk-person small { color: var(--muted); font-weight: 500; font-size: 10px; }
.mk-person-open { color: var(--warning); }
.mk-cell { display: flex; min-height: 40px; border-radius: 6px; background: #f8f9fb; }
.mk-shift { flex: 1; padding: 4px 5px; border-radius: 6px; font-size: 10px; font-weight: 700; line-height: 1.3; }
.mk-shift-blue { background: #e8effc; color: #1d4ea3; box-shadow: inset 3px 0 #1d5fbf; }
.mk-shift-orange { background: #fdeee7; color: #a2310b; box-shadow: inset 3px 0 #c4320a; }
.mk-shift-violet { background: #efebfc; color: #4b33a8; box-shadow: inset 3px 0 #5b3fc4; }
.mk-shift-warn { background: #fef4e6; color: #93400a; box-shadow: inset 3px 0 #b54708, inset 0 0 0 1px #f5c48f; }
.mk-shift-open { background: transparent; color: var(--warning); border: 1.5px dashed #e7a35c; }
.mk-alert { display: flex; gap: 6px; align-items: center; margin: 12px 0 0; padding: 7px 10px; border-radius: 7px; background: var(--warning-soft); color: var(--warning); font-weight: 600; font-size: 11px; }
.mk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; color: var(--muted); }
.mk-foot strong { color: var(--text); }
.mk-foot .mk-badge { margin-left: auto; }

/* Badgeuse */
.mk-kiosk { background: none; border: 0; box-shadow: none; overflow: visible; }
.mk-tablet { max-width: 360px; margin: 0 auto; padding: 18px; border: 9px solid #1d2939; border-radius: 26px; background: linear-gradient(160deg, #134e48, #0b2b28); color: #fff; box-shadow: 0 28px 56px -18px rgba(16, 24, 40, .45); }
.mk-kiosk-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mk-kiosk-head .brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; background: #14b8a6; }
.mk-kiosk-head strong { margin-left: auto; font-size: 20px; }
.mk-kiosk-label { margin: 18px 0 10px; text-align: center; color: #a9cbc4; }
.mk-pin { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.mk-pin i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #5eead4; }
.mk-pin i.on { background: #5eead4; }
.mk-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-keypad span { display: grid; place-items: center; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 16px; font-weight: 700; }
.mk-keypad .mk-key-ok { background: #14b8a6; }
.mk-toast { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; padding: 9px 11px; border-radius: 10px; background: #ecfdf3; color: var(--success); font-weight: 700; font-size: 11.5px; }

/* Absences */
.mk-request { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.mk-request strong { display: block; font-size: 12px; }
.mk-request small { display: block; color: var(--muted); font-size: 11px; }
.mk-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 11px; }
.mk-avatar-alt { background: #efebfc; color: #5b3fc4; }
.mk-calendar { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px 3px; margin-top: 14px; }
.mk-calendar-day { text-align: center; color: var(--muted); font-weight: 700; font-size: 10px; }
.mk-leave { height: 20px; padding: 0 6px; border-radius: 5px; font-size: 9.5px; font-weight: 700; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-leave-a { grid-column: 1 / span 5; background: #e7f6ec; color: var(--success); }
.mk-leave-b { grid-column: 3 / span 4; background: var(--danger-soft); color: var(--danger); }
.mk-leave-c { grid-column: 12 / span 2; background: #efebfc; color: #5b3fc4; }

/* Paie */
.mk-payroll-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.mk-payroll th + th, .mk-payroll td + td { text-align: right; }
.mk-note { display: flex; gap: 6px; align-items: center; margin: 12px 0 0; color: var(--success); font-weight: 600; font-size: 11px; }

/* Graphiques */
.mk-chart { display: block; width: 100%; height: auto; }
.mk-axis, .mk-gridline { stroke: #e9ecf0; stroke-width: 1; }
.mk-bar-fill { fill: #a6dcd4; }
.mk-bar-peak { fill: var(--primary); }
.mk-chart-value { font-size: 11px; font-weight: 700; fill: var(--text); }
.mk-chart-label { font-size: 11px; font-weight: 600; fill: var(--muted); }
.mk-needs { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--primary); font-weight: 700; font-size: 11px; }
.mk-needs span { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.mk-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.mk-kpis div { padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; }
.mk-kpis small { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-kpis strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.mk-delta { font-size: 10px; font-weight: 700; color: var(--muted); }
.mk-delta-good { color: var(--success); }
.mk-area { fill: rgba(15, 118, 110, .1); stroke: none; }
.mk-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mk-dot { fill: #fff; stroke: var(--primary); stroke-width: 3; }

/* Assistant */
.mk-bubble { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; }
.mk-bubble-me { width: fit-content; max-width: 85%; margin-left: auto; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.mk-bubble-ai { background: #f2f4f7; border-bottom-left-radius: 4px; }
.mk-bubble-ai p { margin: 0 0 8px; }
.mk-bubble-ai .mk-table td { border-bottom-color: #e4e7ec; }
.mk-bubble-ai .mk-actions { margin-top: 10px; }

/* Feuille d'heures */
.mk-sheet-title { margin: 0 0 8px; }
.mk-signature td:last-child, .mk-signature th:last-child { text-align: right; }
.mk-total td { font-weight: 800; border-bottom: 0; }
.mk-seals { display: grid; gap: 6px; margin-top: 10px; }
.mk-seal { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: var(--success-soft); color: var(--success); font-weight: 700; font-size: 11px; }

/* ---------- Écrans moyens et étroits ---------- */

@media (max-width: 1080px) {
    .site-nav-toggle:not([hidden]) { display: grid; }
    .site-header.has-menu .site-nav { display: none; }
    .site-header.has-menu.is-open .site-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 10px 16px 18px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 32px -12px rgba(16, 24, 40, .2);
    }
    .site-header:not(.has-menu) .site-header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
    .site-header:not(.has-menu) .site-nav { flex-wrap: wrap; }
    .site-nav > a:not(.btn), .site-menu > summary { padding: 12px; }
    .site-menu-panel, .site-menu-wide { position: static; width: auto; grid-template-columns: 1fr; padding: 0 0 8px; border: 0; box-shadow: none; }
    .site-nav-actions { margin: 10px 0 0; }
    .site-nav-actions .btn { flex: 1; padding: 12px; }

    .hero-grid, .detail-visual { grid-template-columns: 1fr; gap: 48px; }
    .detail-reverse .detail-text { order: 0; }
    .hero-visual { max-width: 640px; }
    .card-grid-4 { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    body.site { font-size: 15px; }
    .site-section { padding: 64px 0; }
    .hero { padding: 48px 0 56px; }
    .hero-split { padding-top: 24px; }
    .section-lead { margin-bottom: 36px; }
    .facts-strip-inner { grid-template-columns: 1fr 1fr; }
    .facts-strip p:nth-child(3) { border-left: 0; }
    .facts-strip p:nth-child(n + 3) { border-top: 1px solid var(--border); }
    .compare, .benefit-grid, .card-grid, .steps, .included-grid, .pricing { grid-template-columns: 1fr; }
    .pricing { gap: 40px; }
    .price-examples { grid-template-columns: 1fr 1fr; }
    .detail + .detail { margin-top: 72px; }
    .hero-float-top { right: 8px; }
    .hero-float-bottom { left: 8px; }
}

@media (max-width: 560px) {
    .site-container { padding: 0 16px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .card-grid-4, .trust-grid, .site-footer-grid, .check-list-columns { grid-template-columns: 1fr; }
    .facts-strip p { padding: 18px 12px; }
    .facts-strip strong { font-size: 1.2rem; }
    .benefit, .link-card, .module, .step, .compare-col { padding: 22px; }
    .price-card { padding: 24px; }
    .hero-float { display: none; }
    .mk-body { padding: 12px; }
    .mk-grid { grid-template-columns: 64px repeat(4, minmax(0, 1fr)); }
    .mk-planning .mk-col-4, .mk-planning .mk-col-5, .mk-planning .mk-col-6 { display: none; }
    .mk-request { grid-template-columns: auto minmax(0, 1fr); }
    .mk-request .mk-actions { grid-column: 1 / -1; }
    .mk-payroll th:nth-child(4), .mk-payroll td:nth-child(4) { display: none; }
    .mk-kpis strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .link-card, .more-link .icon, .faq-chevron, .site-menu > summary .icon { transition: none; }
}
