/* Shared responsive rules for the public website and its forms. */
.readable-home { --public-header-height: 92px; }
.readable-home :is(main, .home-feature-container, .home-solution-card, .home-journey-copy, .resource-content, .legal-page__content) { min-width: 0; }
.readable-home main :is(h1, h2) { text-wrap: balance; }
.readable-home :is(input, select, textarea, button) { max-width: 100%; }
.readable-home :is(.home-footer, .legal-section, .annex-contact-card, .collectivites-contact-form) { overflow-wrap: anywhere; }
.readable-home .rl-header .rl-menu { flex-direction: row; }
.readable-home .rl-header .rl-nav-actions { flex-shrink: 0; }
.readable-home .rl-header .rl-button { white-space: nowrap; }
.readable-home .landing-menu-icon { width: 24px; height: 24px; background: currentColor; -webkit-mask: url('/assets/lucide/menu.svg') center / contain no-repeat; mask: url('/assets/lucide/menu.svg') center / contain no-repeat; }
.readable-home .landing-menu-icon::before,
.readable-home .landing-menu-icon::after { content: none; }
.readable-home .rl-menu-toggle[aria-expanded="true"] .landing-menu-icon { -webkit-mask-image: url('/assets/lucide/x.svg'); mask-image: url('/assets/lucide/x.svg'); }
.readable-home .landing-auth-modal-panel { overscroll-behavior: contain; }
.readable-home .home-footer-bottom > p { flex-shrink: 0; }
.readable-home .home-footer-bottom > nav { justify-content: flex-end; }
html:has(.readable-home[data-public-menu-open="true"]) { overflow: hidden; }

@media (max-width: 1120px) {
  .readable-home { --public-header-height: 76px; }
  .readable-home .rl-header .rl-nav { position: relative; display: flex; width: calc(100% - 40px); min-height: var(--public-header-height); gap: 16px; }
  .readable-home .rl-logo img { width: 184px; height: auto; }
  .readable-home .rl-header .rl-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; min-width: 46px; height: 46px; min-height: 46px; border-radius: 14px; }
  .readable-home .rl-header .rl-nav-actions { display: none; }
  .readable-home .rl-header .rl-menu {
    position: absolute; z-index: 3; top: 100%; left: -20px; right: -20px;
    display: none; flex-direction: column; align-items: stretch; justify-content: flex-start;
    width: auto; max-width: none; max-height: calc(100dvh - var(--public-header-height));
    margin: 0; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); gap: 4px;
    overflow-y: auto; overscroll-behavior: contain; transform: none;
    border: 0; border-top: 1px solid #f0ebf4; border-radius: 0 0 22px 22px;
    background: #fff; box-shadow: 0 16px 28px #19152f14;
  }
  .readable-home .rl-header .rl-menu.is-open { display: flex; }
  .readable-home .rl-menu > a, .readable-home .home-platform-menu > summary { min-height: 48px; padding: 13px 12px; font-size: 16px; }
  .readable-home .home-platform-links { position: static; min-width: 0; margin: 0 0 12px; box-shadow: none; background: #fcf9fe; }
  .readable-home .home-platform-links a { min-height: 46px; padding: 12px; white-space: normal; line-height: 1.5; font-size: 14px; }
  .readable-home .rl-header .rl-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; margin-top: 12px; border-top: 1px solid #ece6f2; }
  .readable-home .rl-header .rl-menu-actions .rl-button { width: 100%; min-height: 48px; font-size: 15px; }
  .readable-home :is(section[id], article[id], main[id]) { scroll-margin-top: calc(var(--public-header-height) + 16px); }
  .readable-home .home-hero { padding-top: 58px; }
  .readable-home .home-title-break { display: none; }
  .readable-home .home-hero h1 { max-width: 800px; margin-inline: auto; }
  .readable-home .home-intro { max-width: 680px; margin-inline: auto; }
  .readable-home :is(input, select, textarea), .readable-home .landing-auth-field input,
  .readable-home .annex-contact-form :is(input, select, textarea),
  .readable-home .collectivites-contact-form :is(input, select, textarea) { font-size: 16px; }
  .readable-home .home-preview { grid-template-columns: 1fr; max-width: 760px; margin-top: 52px; }
  .readable-home .home-charts { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .readable-home .home-overview-content { padding-bottom: 20px; }
}
@media (max-width: 980px) {
  .readable-home .public-auth { width: min(640px, calc(100% - 24px)); }
  .readable-home .public-auth .landing-auth-modal-panel { display: block; }
  .readable-home .public-auth-story { display: block; padding: 24px; }
  .readable-home .public-auth-brand { width: 152px; }
  .readable-home .public-auth-story-copy,
  .readable-home .public-auth-preview,
  .readable-home .public-auth-story-note { display: none; }
  .readable-home .public-auth-content { padding: 28px; }
  .readable-home .landing-auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .readable-home .home-footer-bottom > nav { justify-content: flex-start; }
  .readable-home :is(input, select, textarea) { font-size: 16px; }
  .readable-home .landing-auth-field input { font-size: 16px; min-height: 48px; }
  .readable-home .annex-contact-form :is(input, select, textarea) { font-size: 16px; min-height: 48px; }
  .readable-home .collectivites-contact-form :is(input, select, textarea) { font-size: 16px; min-height: 48px; }
  .readable-home .landing-auth-modal-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; top: 10px; right: 10px; }
  .readable-home .collectivites-register-modal .landing-auth-modal-header { padding-right: 42px; }
  .readable-home .landing-auth-tab { min-height: 44px; }
  .readable-home .landing-auth-link { display: inline-flex; align-items: center; min-height: 36px; }
  .readable-home .feature-site-search { min-height: 44px; }
  .readable-home .feature-report-button { min-height: 44px; min-width: 44px; }
  .readable-home .home-billing-choice button { min-height: 44px; }
  .readable-home .home-footer-grid nav a { min-height: 44px; margin-top: 0; padding-block: 10px; }
  .readable-home .home-footer-bottom a { min-height: 44px; align-items: center; display: inline-flex; }
  .annex-page .annex-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .annex-page .annex-toc a, .annex-page .legal-page__summary a { min-height: 44px; display: flex; align-items: center; }
  .readable-home .home-bars small, .readable-home .home-months { font-size: 11px; }
  .public-flow :is(input, select, textarea) { font-size: 16px; }
  .public-flow-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
  .readable-home { --public-header-height: 72px; }
  .readable-home .rl-header .rl-nav { width: calc(100% - 32px); }
  .readable-home .rl-header .rl-menu { left: -16px; right: -16px; padding-inline: 16px; }
  .readable-home .rl-logo img { width: 168px; }
  .readable-home .home-hero { padding-top: 36px; }
  .readable-home .home-hero h1 { font-size: clamp(30px, 8.2vw, 42px); }
  .readable-home .home-intro { font-size: 16px; }
  .readable-home .home-preview { margin-top: 36px; }
  .readable-home .home-card-subtitle { min-height: 38px; }
  .readable-home .public-auth-story { padding: 24px 20px; }
  .readable-home .public-auth-content { padding: 24px 20px; }
  .readable-home .public-auth .landing-auth-modal-header { padding-right: 0; }
  .readable-home .report-close { width: 44px; height: 44px; }
  .readable-home .report-topbar { padding: 12px 16px; }
  .readable-home .report-tabs { position: sticky; top: 69px; z-index: 1; }
  .readable-home .report-kpis { grid-template-columns: 1fr; }
  .readable-home .report-kpis > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 16px; padding: 14px 16px; }
  .readable-home .report-kpis dt { flex-direction: row; align-items: center; min-height: 0; gap: 10px; font-size: 12px; }
  .readable-home .report-kpis dt .feature-icon { flex-shrink: 0; }
  .readable-home .report-kpis dd { margin: 0; }
  .readable-home .report-kpis dd strong { font-size: 26px; margin-bottom: 4px; }
  .readable-home .report-kpis dd span { font-size: 12px; }
  .readable-home .report-tabs button { min-height: 48px; font-size: 12px; }
  .readable-home .report-section-heading { flex-wrap: wrap; }
  .readable-home .home-footer { padding-bottom: env(safe-area-inset-bottom); }
  .annex-page .resource-content .resource-links a { white-space: normal; overflow-wrap: anywhere; }
  .annex-page .legal-section pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .readable-home .landing-auth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .readable-home .rl-header .rl-menu-actions { grid-template-columns: 1fr; }
  .readable-home .home-charts { grid-template-columns: 1fr; }
  .readable-home .home-charts h2 { font-size: 17px; }
  .readable-home .home-corrections, .readable-home .home-evolution { padding: 20px; }
  .readable-home .home-card-subtitle { min-height: 0; }
  .readable-home .home-bars { height: 130px; }
  .readable-home .home-line-chart { height: 115px; }
  .readable-home .home-metrics { grid-template-columns: 1fr; }
  .readable-home .home-metrics > div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 14px; padding: 14px; }
  .readable-home .home-metrics dt { min-height: 0; font-size: 12px; }
  .readable-home .home-metrics p { font-size: 11px; }
  .readable-home .home-audience { max-width: 100%; font-size: 11px; }
}
@media (max-height: 600px) and (max-width: 1120px) {
  .readable-home { --public-header-height: 64px; }
  .readable-home .public-auth { width: min(660px, calc(100% - 24px)); }
  .readable-home .public-auth .landing-auth-modal-panel { display: block; }
  .readable-home .public-auth-story { display: none; }
  .readable-home .public-auth-content { padding: 28px; }
  .readable-home .public-auth .landing-auth-modal-header { padding-right: 40px; }
  .readable-home .landing-auth-modal, .readable-home .landing-auth-modal-panel, .readable-home .home-report.report-demo { max-height: calc(100dvh - 16px); }
  .readable-home .home-report.report-demo { width: calc(100% - 24px); }
}
