:root {
  color-scheme: light;
  --ink: #182236;
  --muted: #52647a;
  --line: #dce4ef;
  --blue: #0766c3;
  --paper: #fff;
  --wash: #f2f7fe;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer .wrap, .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.brand { text-decoration: none; }
.brand { display: inline-flex; flex-direction: column; align-items: center; width: 270px; max-width: 100%; }
.brand img { display: block; width: 250px; max-width: 100%; height: auto; }
.brand-tagline {
  color: #667180;
  font: 400 11px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: .01em;
  text-align: center;
}
.hero { background: linear-gradient(140deg, var(--paper), var(--wash)); padding-block: clamp(20px, 3vw, 36px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); }
.eyebrow { color: var(--blue); font-size: .76rem; letter-spacing: .12em; font-weight: 750; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: .2em 0 .35em; font-size: clamp(2.2rem, 5.3vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: .75em 0; }
.lead { font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }
.actions { margin-top: 16px; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 9px 16px; background: var(--blue); color: var(--paper); border-radius: 10px; text-decoration: none; font-weight: 650; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 2.5vw, 24px); }
section > article.card + article.card { margin-top: 14px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.metrics div { background: var(--wash); padding: 8px 10px; border-radius: 12px; }
.metrics dt { color: var(--muted); font-size: .84rem; }
.metrics dd { margin: 0; font-weight: 750; font-size: clamp(1rem, 2.4vw, 1.65rem); white-space: nowrap; }
.section { padding-block: clamp(18px, 3vw, 32px); }
.section > :first-child { margin-top: 0; }
.hero > .wrap > :first-child, .hero-grid > div > :first-child { margin-top: 0; }
.hero > .wrap > :last-child, .hero-grid > div > :last-child { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.reading { max-width: 760px; }
.reading section + section { margin-top: 24px; }
.reading section h2 { margin-bottom: .5em; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
td:last-child, th:last-child { text-align: right; }
td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot { font-weight: 750; }
.formula { padding: 14px 18px; background: var(--wash); border-radius: 12px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 16px; }
.skip { position: absolute; top: -100px; left: 16px; background: var(--paper); padding: 8px; }
.skip:focus { top: 8px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 32px); }
  .hero-grid, .steps { grid-template-columns: 1fr; }
}
main > header.hero { padding-block: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 24px); }
main > header.hero .reading > p { margin-block: 0 6px; }
main > header.hero .reading > h1 { margin-block: 10px 8px; }
main > header.hero .reading > .lead { margin-bottom: 0; line-height: 1.5; }
main > header.hero + article.section { padding-top: clamp(12px, 2vw, 24px); }
.guide-illustration { margin: 0 0 20px; }
.guide-illustration img, .guide-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 14px;
}
.guide-illustration.population-map {
  width: min(900px, calc(100vw - 48px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.guide-illustration.population-map img {
  aspect-ratio: 830 / 550;
  object-fit: contain;
}
.guide-illustration figcaption { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.guide-thumbnail { margin-top: 12px; }

.editorial-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; }
.editorial-filters button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.editorial-filters button:hover { border-color: var(--blue); }
.editorial-filters button[aria-pressed="true"] { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.editorial-filters button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.editorial-meta { color: var(--muted); font-size: .9rem; }
.editorial-badge {
  display: inline-block;
  margin-inline-end: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--blue);
  font-weight: 700;
}
[data-editorial-type="guide"] .editorial-badge { background: #eef1f5; color: var(--ink); }

.editorial-table { overflow-x: auto; }
.editorial-table:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.editorial-table table { min-width: 570px; }
.editorial-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.editorial-table th[scope="row"] { text-align: left; font-weight: 600; }
.editorial-table thead th { background: var(--wash); text-align: right; }
.editorial-table thead th[rowspan] { text-align: left; }

@media (max-width: 700px) {
  .brand { width: 210px; }
  .brand img { width: 195px; }
  .brand-tagline { font-size: 10.5px; }
}

.editorial-category-hero {
  --banner-tone: 15 35 63;
  background:
    linear-gradient(90deg, rgb(var(--banner-tone)) 0%, rgb(var(--banner-tone) / .97) 34%, rgb(var(--banner-tone) / .55) 64%, rgb(var(--banner-tone) / .10) 100%),
    var(--banner-image) center right / cover;
  background-color: rgb(var(--banner-tone));
  color: #fff;
  padding-block: clamp(36px, 6vw, 86px);
}
.editorial-category-hero--actualites { --banner-image: url("/actualites/bandeau.jpg"); }
.editorial-category-hero--guides {
  --banner-tone: 15 51 61;
  --banner-image: url("/guides/bandeau.jpg");
}
.editorial-category-copy { max-width: min(32rem, 54%); }
.editorial-category-copy > :first-child { margin-top: 0; }
.editorial-category-copy > :last-child { margin-bottom: 0; }
.editorial-category-hero .eyebrow { color: #a9ddff; }
.editorial-category-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); text-wrap: initial; }
.editorial-category-hero .lead { color: #e4edf7; }
.editorial-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
section.editorial-card-grid > article.card + article.card { margin-top: 0; }
.editorial-card-grid .card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.editorial-card-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 700px) {
  .editorial-category-hero {
    background:
      linear-gradient(0deg, rgb(var(--banner-tone)) 0%, rgb(var(--banner-tone) / .94) 57%, rgb(var(--banner-tone) / .25) 100%),
      var(--banner-image) center top / cover;
    padding-top: clamp(72px, 20vw, 130px);
  }
  .editorial-category-copy { max-width: 32rem; }
  .editorial-card-grid { grid-template-columns: 1fr; }
}

.population-rankings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.population-rankings h3 { margin-top: 0; }
.population-rankings ol { margin-bottom: 0; padding-left: 1.25rem; }

.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  width: min(1220px, 100%);
  padding: 10px 32px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-header .brand { flex: none; }
.site-header .nav-links { display: flex; align-items: center; gap: 20px; }
.site-header .login {
  color: #44546a;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: underline 2px transparent;
  text-underline-offset: .4em;
}
.site-header .login:is(:hover, :focus-visible) { text-decoration-color: #087cf0; }
.site-header .mobile-menu { display: none; }
.mdb-theme-switch{display:inline-flex!important;align-items:center;gap:8px;flex-shrink:0;border:0!important;background:transparent!important;color:#66758a!important;padding:6px!important;cursor:pointer;min-height:44px;border-radius:24px!important}
.mdb-theme-switch svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mdb-theme-track{position:relative;width:58px;height:30px;border-radius:30px;background:#dce2eb;box-shadow:inset 2px 3px 6px #15274130,inset -1px -1px 2px #fff}
.mdb-theme-knob{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:1px 2px 5px #15274135;transition:transform .2s ease,background .2s ease}
.mdb-theme-switch:focus-visible{outline:3px solid #0a84ff!important;outline-offset:3px}
html[data-theme="dark"] .mdb-theme-switch{color:#a8b9d3!important}
html[data-theme="dark"] .mdb-theme-track{background:#101a2b;box-shadow:inset 2px 3px 6px #0008,inset -1px -1px 2px #536882}
html[data-theme="dark"] .mdb-theme-knob{transform:translateX(28px);background:#58a6ff}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7edf7;
  --muted: #a8b6cb;
  --line: #334259;
  --blue: #79b8ff;
  --paper: #182438;
  --wash: #22334c;
}
html[data-theme="dark"] .site-header .login { color: #79b8ff; }
html[data-theme="dark"] .site-header .login:is(:hover, :focus-visible) { text-decoration-color: #9bc8ff; }
html[data-theme="dark"] .site-header .brand img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .brand-tagline { color: #b9c0c9; }
@media (701px <= width <= 1100px) {
  .site-header .header-inner { flex-wrap: wrap; gap: 12px; }
  .site-header .nav-links { order: 100; width: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (width <= 700px) {
  .site-header .header-inner { flex-wrap: wrap; gap: 8px; padding: 12px 20px; min-height: 112px; }
  .site-header .brand { width: 210px; }
  .site-header .brand img { width: 195px; }
  .site-header .mobile-menu {
    display: block;
    color: var(--blue);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px 10px;
    cursor: pointer;
  }
  .site-header .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    z-index: 5;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: var(--paper);
    box-shadow: 0 12px 20px #163b6710;
  }
  .site-header .nav-links.open { display: flex; }
  .site-header .login { padding: 9px; font-size: 14px; }
  .mdb-theme-switch { gap: 4px; }
  .mdb-theme-switch svg { width: 18px; height: 18px; }
  .mdb-theme-track { width: 50px; }
  html[data-theme="dark"] .mdb-theme-knob { transform: translateX(20px); }
}
@media (prefers-reduced-motion: reduce) { .mdb-theme-knob { transition: none; } }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-grid > article.card + article.card { margin-top: 0; }
.product-screen { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.product-price { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 750; line-height: 1.2; }
.product-price .unit { font-size: 1rem; color: var(--muted); }
.pricing-featured { border-color: var(--blue); background: var(--wash); }
.pricing-faq details { padding-block: 12px; border-top: 1px solid var(--line); }
.pricing-faq summary { font-weight: 650; cursor: pointer; }
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}
