/* Compact proposal. Shared dimensions keep links, counters and breakpoints aligned. */
:root { --compact-gutter: 40px; }
main { padding-inline: var(--compact-gutter); }
.proposal-strip {
  width: calc(100% - 2 * var(--compact-gutter)); max-width: 1456px;
  margin: 10px auto 0; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; font-size: 10px;
  color: #567095; line-height: 1.5;
}
.proposal-strip strong { font-size: 9px; letter-spacing: .7px; }
.proposal-strip a { color: #0B2D5B; text-underline-offset: 3px; }
.header {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center; gap: 0 18px; width: calc(100% - 2 * var(--compact-gutter));
  max-width: 1456px; height: auto; min-height: 70px; margin: 12px auto 0;
  padding: 10px 23px; border-radius: 12px 12px 0 0; border-bottom: 0;
  box-shadow: none; position: relative; z-index: 3;
}
.header .brand { grid-column: 1; grid-row: 1; gap: 5px; margin: 0; min-width: 0; }
.header .brand-emblem { width: 57px; height: 43px; flex: none; }
.header .brand-wordmark { width: 185px; height: 34px; flex: none; }
.header nav {
  grid-column: 2; grid-row: 1; order: 0; justify-self: end;
  display: flex; align-items: center; gap: 15px;
  width: auto; margin: 0; padding: 0; border: 0; min-width: 0;
}
.header nav a, .header nav a:first-child, .header nav a:nth-child(2),
.header nav button, .header nav .contact-nav {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-height: 44px; width: auto; max-width: none;
  padding: 0 3px; margin: 0; font: 500 12px/1.2 Inter, Arial, sans-serif;
  white-space: nowrap; text-align: center; text-decoration: none;
}
.header #open-report {
  grid-column: 3; grid-row: 1; justify-self: end; align-self: center;
  position: static; margin: 0; min-height: 44px; padding: 9px 13px;
  font-size: 12px; border-radius: 8px; white-space: nowrap;
}
.header #share { grid-column: 4; grid-row: 1; margin: 0; min-height: 44px; padding: 9px 13px; font-size: 12px; border-radius: 8px; }
.header .report-cta .icon, .header .share .icon { width: 16px; height: 16px; }

/* The illustration fills the complete banner behind one blue overlay at every width. */
.intro.hero-proposal.compact-hero {
  display: block; min-height: 155px; padding: 0; margin: 0 0 12px;
  background: #0B2D5B; border-radius: 0 0 12px 12px;
  position: relative; isolation: isolate;
  z-index: 4;
}
.compact-hero .hero-copy {
  padding: 19px 24px 18px; min-height: 155px; display: grid; gap: 10px;
  align-content: center; border-radius: inherit; position: relative; z-index: 2;
}
.compact-hero h1 { font-size: 29px; line-height: 1.15; margin: 0; color: #fff; letter-spacing: -.8px; white-space: normal; }
.compact-hero h1 span { color: #FF4352; }
.compact-hero .hero-photo { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.compact-hero .hero-photo img { opacity: 1; object-fit: cover; object-position: 50% 57%; }
.compact-hero .hero-photo::after { content: ''; position: absolute; inset: 0; background: rgba(8, 42, 82, .8); }
.compact-hero .search-box { height: 46px; border-radius: 7px; max-width: 720px; }
.compact-hero .search-box input { font-size: 16px; }
.compact-hero .search-area { max-width: 720px; }
.compact-hero .search-area label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.compact-hero .search-results { top: 52px; max-height: 320px; z-index: 20; }
.compact-hero .data-update { width: auto; max-width: none; margin: 0; justify-content: flex-start; font-size: 11px; color: #DFEAF8; gap: 6px; line-height: 1.4; }
.compact-hero .update-dot { background: #DFEAF8; width: 5px; height: 5px; flex: none; }

.quick-dashboard {
  display: grid; grid-template-columns: 350px minmax(0,1fr);
  grid-template-areas: 'context context' 'date metrics' 'note note' 'national national';
  gap: 7px 12px; background: #fff; border: 1px solid #DCE4EF;
  border-radius: 11px; padding: 12px 15px 10px; margin-bottom: 14px;
}
.quick-dashboard .metrics-context { grid-area: context; margin: 0; font-size: 11px; font-weight: 600; line-height: 1.4; color: #567095; }
.quick-dashboard .day-bar { grid-area: date; padding: 0; border: 0; border-radius: 0; background: none; margin: 0; gap: 6px; justify-content: flex-start; align-items: center; }
.quick-dashboard .day-bar > div:first-child { flex: none; }
.quick-dashboard .day-bar .eyebrow { display: none; }
.quick-dashboard .date-picker { padding: 0; display: block; width: auto; }
.quick-dashboard .date-picker input { width: 130px; min-width: 0; max-width: 130px; min-height: 44px; font-size: 14px; text-align: left; padding: 0 5px; background: #FAFAFB; border: 1px solid #D7E0EB; border-radius: 6px; color: #0B2D5B; }
.quick-dashboard .date-actions { gap: 5px; display: flex; align-items: center; flex: 1; min-width: 0; flex-wrap: nowrap; }
.quick-dashboard .date-actions button { min-height: 44px; padding: 8px 10px; min-width: 44px; font-size: 11px; border-radius: 6px; border-color: #D7E0EB; white-space: nowrap; }
.quick-dashboard #previous-day, .quick-dashboard #next-day { font-size: 23px; line-height: 1; padding: 4px 9px; min-width: 44px; flex: 0 0 44px; }
.quick-dashboard #nav-forecast { min-width: 0; background: #0B2D5B; border-color: #0B2D5B; color: #fff; font-size: 11px; flex: 1; white-space: normal; line-height: 1.3; padding-inline: 5px; }
.quick-dashboard .date-notice { grid-area: note; margin: 0; padding: 0; font-size: 11px; line-height: 1.5; color: #567095; }
.quick-dashboard .date-notice b { font-weight: 500; }
.quick-dashboard .metrics { grid-area: metrics; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; border: 0; align-items: stretch; }
.quick-dashboard .metrics > button {
  display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 29px minmax(2.6em,auto);
  justify-items: center; align-items: start; align-content: start; gap: 5px;
  min-height: 78px; min-width: 0; padding: 8px 7px 5px;
  border: 0; border-radius: 0; border-right: 1px solid #E5E7EB;
  background: transparent; box-shadow: none; text-align: center; font-size: 12px;
}
.quick-dashboard .metrics > button:last-child { border-right: 0; }
.quick-dashboard .metrics > button:hover { background: #F1F6FC; border-radius: 5px; transform: none; }
.quick-dashboard .metrics > button b { grid-column: 1; grid-row: 1; display: block; font-size: 27px; line-height: 29px; font-weight: 700; letter-spacing: -.5px; margin: 0; color: #0B2D5B; font-variant-numeric: tabular-nums; }
.quick-dashboard .metrics > button > span:not(.metric-icon) { grid-column: 1; grid-row: 2; display: block; font-size: 12px; line-height: 1.3; font-weight: 500; margin: 0; color: #23426D; white-space: normal; max-width: 100%; }
.quick-dashboard .metric-icon, .quick-dashboard .metrics small { display: none; }
.quick-dashboard .national-context { grid-area: national; border: 0; border-top: 1px solid #E5E7EB; border-radius: 0; background: none; padding: 8px 0 0; margin: 0; }
.quick-dashboard .national-context:empty { display: none; }
.quick-dashboard .bilan-line { display: flex; flex-direction: row; gap: 12px; align-items: center; justify-content: space-between; }
.quick-dashboard .bilan-line p { font-size: 12px; line-height: 1.5; margin: 0; color: #23426D; flex: 1; }
.quick-dashboard .bilan-line p b { font-weight: 600; color: #0B2D5B; }
.quick-dashboard .bilan-line small { font-size: 11px; display: block; color: #567095; margin-top: 2px; line-height: 1.4; }
.quick-dashboard .bilan-line button { font-size: 11px; padding: 8px 10px; border: 1px solid #D7E0EB; border-radius: 6px; white-space: nowrap; text-decoration: none; min-height: 44px; color: #0B2D5B; }
.quick-dashboard button:focus-visible { outline: 2px solid #1474CA; outline-offset: 2px; }
.radar-layout { margin-top: 0; }
.map-heading { padding-top: 17px; }
.map-heading h2 { font-size: 26px; }
.map-heading .eyebrow { font-size: 10px; margin-bottom: 5px; }
.map-subtoolbar { padding-top: 4px; }
.map-panel, .side-panel { border-radius: 11px; }

@media (min-width: 1500px) {
  .compact-hero .hero-copy { padding: 20px 28px; min-height: 162px; }
  .compact-hero h1 { font-size: 32px; }
}
@media (max-width: 1100px) {
  :root { --compact-gutter: 28px; }
  .header { grid-template-columns: auto minmax(0,1fr) auto; gap: 0 15px; }
  .header .brand-wordmark { width: 163px; }
  .header .brand-emblem { width: 47px; }
  .header #share { display: none; }
  .header nav { gap: 12px; }
  .quick-dashboard { padding: 11px; gap: 7px 8px; }
}
/* Reserve a separate navigation row before the top row becomes crowded. */
@media (max-width: 900px) {
  .header { grid-template-columns: minmax(0,1fr) auto; min-height: 0; gap: 6px 12px; padding: 10px 18px 0; }
  .header .brand { grid-column: 1; grid-row: 1; }
  .header #open-report { grid-column: 2; grid-row: 1; }
  .header nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); justify-self: stretch; gap: 0; width: 100%; border-top: 1px solid #E5E7EB; padding: 0; }
  .header nav a, .header nav button, .header nav .contact-nav { width: 100%; }
}
@media (max-width: 850px) {
  :root { --compact-gutter: 24px; }
  .quick-dashboard { grid-template-columns: 1fr; grid-template-areas: 'context' 'date' 'metrics' 'note' 'national'; gap: 8px; }
  .quick-dashboard .metrics { border-top: 1px solid #E5E7EB; padding-top: 7px; }
  .compact-hero h1 { font-size: 27px; }
}
@media (max-width: 600px) {
  :root { --compact-gutter: 16px; }
  .proposal-strip { font-size: 9px; margin-top: 8px; }
  .header { margin-top: 10px; padding: 10px 12px 0; column-gap: 8px; border-radius: 11px 11px 0 0; }
  .header .brand { gap: 5px; }
  .header .brand-emblem { width: 39px; height: 32px; }
  .header .brand-wordmark { width: 154px; height: 30px; }
  .header #open-report { font-size: 12px; padding: 8px 10px; }
  .header #open-report .icon { display: none; }
  .intro.hero-proposal.compact-hero { margin-bottom: 10px; border-radius: 0 0 11px 11px; }
  .compact-hero .hero-copy { padding: 18px 17px 16px; gap: 12px; }
  .compact-hero h1 { font-size: 27px; line-height: 1.15; letter-spacing: -.7px; max-width: 300px; }
  .compact-hero .hero-photo img { object-position: 65% 45%; }
  .compact-hero .search-box { padding: 0 10px; }
  .quick-dashboard { padding: 10px 11px 9px; border-radius: 10px; margin-bottom: 11px; }
  .quick-dashboard .day-bar { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 5px; justify-content: space-between; }
  .quick-dashboard .date-picker input { width: 110px; max-width: 110px; padding: 0 3px; }
  .quick-dashboard .date-actions { width: auto; gap: 4px; flex: 1; justify-content: flex-end; }
  .quick-dashboard #previous-day, .quick-dashboard #next-day { flex: 0 0 44px; padding: 4px 6px; font-size: 21px; }
  .quick-dashboard #nav-forecast { font-size: 11px; padding: 7px; white-space: normal; max-width: 117px; line-height: 1.3; }
  .quick-dashboard .metrics > button { padding: 7px 4px 4px; }
  .quick-dashboard .metrics > button b { font-size: 25px; }
  .quick-dashboard .bilan-line { gap: 7px; }
  .quick-dashboard .bilan-line button { white-space: normal; line-height: 1.3; flex: 0 0 65px; padding: 7px; }
  .quick-dashboard .national-context { padding-top: 7px; }
  .map-heading { padding-top: 15px; }
  .map-heading h2 { font-size: 23px; }
  .map-heading .eyebrow { font-size: 9px; }
  .map-subtoolbar { padding-bottom: 7px; }
}
@media (max-width: 360px) {
  .header .brand-wordmark { width: 132px; }
  .header .brand-emblem { width: 30px; }
  .quick-dashboard .day-bar { flex-wrap: wrap; }
  .quick-dashboard .date-actions { flex: 1 1 100%; justify-content: flex-start; }
  .quick-dashboard #nav-forecast { max-width: none; flex: 1; }
  .quick-dashboard .metrics > button > span:not(.metric-icon) { font-size: 11px; }
}
