/* Easymandat 2026: public site. Palette and type from the validated mockups. */
:root {
  --accent: #3F7D20;
  --accent-hover: #2F5F17;
  --accent-ink: #1F3F0F;
  --accent-soft: #E6F0DD;
  --ink: #0F172A;
  --text-2: #475569;
  --text-3: #64748B;
  --border: #E2E8F0;
  --field: #94A3B8;
  --section: #F6F8F4;
  --bubble: #F1F5F9;
  --warn-bg: #FEF3C7; --warn-border: #F59E0B; --warn-text: #78350F;
  --radius: 12px;
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
.em { margin: 0; font-family: var(--font-text); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.em a { color: var(--accent); }
.em a:hover { color: var(--accent-hover); }
.em img { max-width: 100%; height: auto; }
.em h1, .em h2, .em h3 { font-family: var(--font-title); letter-spacing: -0.02em; margin: 0; }
.em p { margin: 0; }
.em-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.em-skip { position: absolute; left: -9999px; }
.em-skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Buttons */
.em-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.em .em-btn-primary { background: var(--accent); color: #fff; }
.em .em-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.em .em-btn-ghost { background: #fff; color: var(--ink); border-color: #CBD5E1; }
.em .em-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.em .em-btn-dark { background: var(--ink); color: #fff; }
.em-btn-lg { font-size: 17px; padding: 16px 28px; border-radius: 12px; }
.em-btn:focus-visible, .em a:focus-visible, .em input:focus-visible, .em summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.em-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 5; }
.em-header .em-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.em-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.em .em-logo { color: var(--ink); }
.em-logo-word { font-family: var(--font-title); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.em-pill { font-size: 12px; font-weight: 600; color: var(--text-2); border: 1px solid #CBD5E1; border-radius: 999px; padding: 2px 10px; }
.em-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; flex: 1 1 auto; }
.em .em-nav a { color: #334155; text-decoration: none; padding: 8px 0; }
.em .em-nav a:hover { color: var(--ink); }
.em-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.em-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 600; }
.em .em-switch a { color: var(--text-2); border-radius: 999px; padding: 7px 14px; text-decoration: none; }
.em .em-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.em .em-login { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px; }
.em-burger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* Sections */
.em-section { padding: 96px 0; }
.em-section-tint { background: var(--section); }
.em-section-dark { background: var(--ink); color: #fff; }
.em-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }
.em-head h2 { font-size: 40px; line-height: 1.1; }
.em-head p { font-size: 18px; color: var(--text-2); }
.em-tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent-hover); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; }

/* Hero */
.em-hero { background: var(--section); }
.em-hero .em-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 80px; }
.em-hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.em-hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
.em-hero-lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.em-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.em-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: #334155; }
.em-checks li { display: flex; align-items: center; gap: 8px; }

/* Phone */
.em-phone-col { flex: 0 1 340px; display: flex; justify-content: center; }
.em-phone { margin: 0; width: 300px; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px -20px rgba(15,23,42,.35); }
.em-phone-screen { background: #fff; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; }
.em-phone-top { padding: 28px 16px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.em-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.em-phone-body { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.em-time { align-self: center; font-size: 11px; color: var(--text-3); }
.em-bubble { max-width: 84%; border-radius: 18px; padding: 10px 14px; font-size: 14px; line-height: 1.4; }
.em-bubble-in { align-self: flex-start; background: var(--bubble); border-bottom-left-radius: 4px; }
.em-bubble-out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.em-phone figcaption { color: #CBD5E1; font-size: 12px; text-align: center; padding: 10px 0 2px; }

/* Figures */
.em-figures { border-bottom: 1px solid var(--border); }
.em-figures .em-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.em-figure-value { font-family: var(--font-title); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.em-figure-label { font-size: 15px; color: var(--text-2); }

/* Steps */
.em-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.em-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.em-step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-hover); font-family: var(--font-title); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.em-card h3 { font-size: 21px; }
.em-card p { color: var(--text-2); }

/* Simulator */
.em-sim { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: stretch; }
.em-label { font-size: 14px; font-weight: 600; }
.em-input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink); }
.em-sim-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.em-sim-list:empty { display: none; }
.em-sim-list button { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; font: inherit; cursor: pointer; }
.em-sim-list li:last-child button { border-bottom: 0; }
.em-sim-list button:hover, .em-sim-list button:focus { background: var(--section); }
.em-sim-result { background: var(--ink); color: #fff; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.em-sim-result .em-figure-value { font-size: 64px; color: #fff; }
.em-sim-result small { color: #CBD5E1; font-size: 13px; }
.em .em-sim-result a { color: #B7DA9C; font-weight: 600; }

/* SMS template demo */
.em-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.em-var { background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 1px 6px; font-weight: 600; white-space: nowrap; }

/* Testimonials */
.em-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.em-quote { margin: 0; }
.em-quote blockquote { margin: 0; font-size: 16px; color: #334155; }
.em-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; font-size: 14px; }
.em-quote img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.em-quote strong { display: block; }
.em-quote span { color: var(--text-3); }

/* Pricing */
.em-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.em-price { position: relative; }
.em-price-featured { border: 2px solid var(--accent); }
.em-badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.em-price-name { font-family: var(--font-title); font-size: 22px; font-weight: 700; }
.em-price-amount { font-family: var(--font-title); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.em-price-amount small { font-family: var(--font-text); font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.em-price-ttc { font-size: 13px; color: var(--text-3); }
.em-price ul { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #334155; }
.em-price li { display: flex; gap: 8px; align-items: flex-start; }
.em-price .em-btn { margin-top: auto; width: 100%; }
.em-note { margin-top: 20px; font-size: 14px; color: var(--text-3); }

/* FAQ */
.em-faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.em-faq details { border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; background: #fff; }
.em-faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); }
.em-faq details[open] summary::after { content: '–'; }
.em-faq details p { margin-top: 12px; color: var(--text-2); }

/* Final CTA */
.em-cta { text-align: center; }
.em-cta .em-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.em-cta h2 { font-size: 40px; }
.em-cta p { color: #CBD5E1; font-size: 18px; max-width: 620px; }

/* Legacy inner pages wrapped in the new chrome */
.em-page { padding: 48px 0 72px; }
.em-page .container { max-width: 1200px; }

/* Footer */
.em-footer { border-top: 1px solid var(--border); background: #fff; font-size: 14px; color: var(--text-2); }
.em-footer .em-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 32px; }
.em-footer strong { display: block; color: var(--ink); margin-bottom: 8px; }
.em .em-footer a { color: var(--text-2); text-decoration: none; display: block; padding: 3px 0; }
.em .em-footer a:hover { color: var(--ink); }
.em-footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; font-size: 13px; color: var(--text-3); }
.em-bloctel { background: var(--section); border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--text-2); }

@media (max-width: 1240px) {
  .em-switch { display: none; }
}

@media (max-width: 860px) {
  .em-header.is-open .em-switch { display: flex; }
  .em-section { padding: 64px 0; }
  .em-hero .em-wrap { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .em-hero h1 { font-size: 36px; }
  .em-hero-lead { font-size: 17px; }
  .em-head h2, .em-cta h2 { font-size: 30px; }
  .em-burger { display: inline-flex; margin-left: auto; }
  .em-nav, .em-header-actions { display: none; width: 100%; }
  .em-header.is-open .em-nav, .em-header.is-open .em-header-actions { display: flex; }
  .em-header.is-open .em-nav { flex-direction: column; gap: 0; }
  .em-sim-result .em-figure-value { font-size: 48px; }
}

/* ---------- Client area ---------- */
.em-app-body { background: var(--section); }
.em-app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.em-side { background: #fff; border-right: 1px solid var(--border); padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.em-side-nav { display: flex; flex-direction: column; gap: 2px; }
.em .em-side-nav a { color: #334155; text-decoration: none; padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.em .em-side-nav a:hover { background: var(--section); color: var(--ink); }
.em .em-side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.em .em-side-nav a.em-side-logout { color: #B91C1C; margin-top: 8px; }
.em-side-help { margin-top: auto; font-size: 13px; color: var(--text-2); background: var(--section); border-radius: 12px; padding: 12px; }
.em-side-help strong { display: block; color: var(--ink); }
.em-side-toggle { display: none; }
.em-main { padding: 32px 40px 64px; min-width: 0; }
.em-main > h1, .em-page-title { font-size: 30px; margin-bottom: 20px; }
.em-flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }
.em-flash-success { background: var(--accent-soft); color: var(--accent-ink); }
.em-flash-warning { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.em-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.em-kpi { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.em-kpi-label { font-size: 14px; color: var(--text-2); font-weight: 500; }
.em-kpi-value { font-family: var(--font-title); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.em-kpi-hint { font-size: 13px; color: var(--text-3); }
.em-gauge { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.em-gauge span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.em-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 24px; }
.em-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; }
.em-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.em-table th { text-align: left; font-weight: 600; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.em-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.em-table tr:last-child td { border-bottom: 0; }
.em-status { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.em-status-muted { background: var(--bubble); color: var(--text-2); }
.em-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 12px; }
.em-section-title h2 { font-size: 21px; }
/* Legacy client pages rendered inside the new shell */
.em-legacy .header { font-family: var(--font-title); font-size: 21px; font-weight: 700; background: none; border: 0; padding: 0 0 12px; color: var(--ink); text-transform: none; }
.em-legacy .body { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
@media (max-width: 960px) {
  .em-app { grid-template-columns: 1fr; }
  .em-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .em-side-toggle { display: inline-flex; }
  .em-side-nav, .em-side-help { display: none; width: 100%; }
  .em-app.is-open .em-side-nav { display: flex; }
  .em-main { padding: 24px 18px 48px; }
}

/* Form fields (login and simple forms) */
.em-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.em-field input { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); }
.em-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* Selects and Symfony forms inside client cards */
.em-field select { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); }
.em-form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.em-form input[type=text], .em-form input[type=tel], .em-form input[type=search] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.em-form button, .em-form input[type=submit] { font: inherit; font-weight: 600; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }
