/* BailCom : gabarits des pages de contenu, v3 du 03/11/2026.
   Article : la mise en page des articles de Mon Avenir en France (en-tête sobre, texte de 800 px, sommaire et appel à
   l'action à droite, bannière de marque, exemples, FAQ en cartes, appel final), aux couleurs de BailCom.
   Pilier : photo plein écran, puis une page de navigation régulière : le plan du guide, des parties toutes construites
   pareil (réponse, repères, articles), le tableau du congé, les modèles, la FAQ, les autres guides.
   S'importe après bailcom.css. Toujours clair. */

:root,
:root[data-theme="dark"] {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --tint: #eceeed;
  --tint-2: #e3e7e7;
  --band-pierre: #efede7;
  --ink: #121820;
  --muted: #525b64;
  --line: #dcdfdc;
  --zinc: #6b7a84;
  --signal: #c2410c;
  --signal-hover: #a3360a;
  --signal-light: #ff8a4c;
  --signal-pale: #fbebe1;
  --on-signal: #ffffff;
  --focus: #1d4ed8;
  --steel-1: #dce0e2;
  --steel-2: #c3c9cd;
  --steel-3: #a9b1b6;
  --hdr: 72px;
  --card:
    0 1px 2px rgba(18, 24, 32, 0.04), 0 18px 40px -28px rgba(18, 24, 32, 0.28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #f6f5f1;
    --surface: #ffffff;
    --tint: #eceeed;
    --tint-2: #e3e7e7;
    --band-pierre: #efede7;
    --ink: #121820;
    --muted: #525b64;
    --line: #dcdfdc;
    --zinc: #6b7a84;
    --signal: #c2410c;
    --signal-hover: #a3360a;
    --signal-light: #ff8a4c;
    --signal-pale: #fbebe1;
    --on-signal: #ffffff;
    --focus: #1d4ed8;
    --steel-1: #dce0e2;
    --steel-2: #c3c9cd;
    --steel-3: #a9b1b6;
    --card:
      0 1px 2px rgba(18, 24, 32, 0.04), 0 18px 40px -28px rgba(18, 24, 32, 0.28);
    color-scheme: light;
  }
}
html {
  scroll-padding-top: calc(var(--hdr) + 24px);
}
body {
  background: var(--bg);
  color: var(--ink);
}
img {
  display: block;
  max-width: 100%;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap.wide {
  max-width: 1440px;
  padding-left: max(16px, min(40px, 4vw), env(safe-area-inset-left, 0px));
  padding-right: max(16px, min(40px, 4vw), env(safe-area-inset-right, 0px));
}
.ln {
  overflow: hidden;
  padding-bottom: 0.04em;
}
.kicker {
  font: 700 13px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

/* Le métal du rideau (signature) */
.slats {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.28) 45%,
      rgba(255, 255, 255, 0) 70%
    ),
    repeating-linear-gradient(
      180deg,
      var(--steel-1) 0 13px,
      var(--steel-2) 13px 15px,
      var(--steel-3) 15px 16px,
      #e7eaeb 16px 17px,
      var(--steel-1) 17px 30px
    );
}
.shutter {
  display: none;
}
.js .shutter {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.shutter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(#8e989e, #6f7a80);
}

/* Boutons en pilule, comme sur Mon Avenir en France */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--signal);
  background: var(--signal);
  color: #ffffff;
  font: 700 16px/1.1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.12s;
}
.pill::after {
  content: "→";
  transition: transform 0.2s;
}
.pill.noarrow::after {
  content: none;
}
.pill:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
}
.pill:hover::after {
  transform: translateX(3px);
}
.pill:active {
  transform: scale(0.98);
}
.pill:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.pill.light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}
.pill.light:hover {
  background: var(--signal-pale);
  border-color: var(--signal-pale);
}
.pill.ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.pill.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.pill.block {
  width: 100%;
}
.micro {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.logo svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.logo .word {
  font: 800 22px/1 var(--display);
  font-stretch: 122%;
  letter-spacing: -0.01em;
}
.m2 {
  fill: var(--signal);
}

/* En-tête : plein sur les articles, transparent sur la photo du pilier */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 11;
  background: var(--bg);
}
header.site {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  transition:
    background-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
header.site.over {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  color: #ffffff;
  box-shadow: none;
}
header.site.over.solid,
header.site.menu-open {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
header .bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--hdr);
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 16px;
  opacity: 0.86;
}
.nav a:hover {
  opacity: 1;
}
.nav a[aria-current] {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
header .pill {
  min-height: 44px;
  padding: 9px 20px;
  font-size: 15px;
}
header.over:not(.solid):not(.menu-open) .pill {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s;
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 90px max(24px, env(safe-area-inset-right, 0px))
    calc(40px + env(safe-area-inset-bottom, 0px))
    max(24px, env(safe-area-inset-left, 0px));
  background: var(--bg);
}
.menu a {
  text-decoration: none;
  color: var(--ink);
  font: 800 clamp(32px, 9vw, 46px)/1.15 var(--display);
  font-stretch: 118%;
  letter-spacing: -0.02em;
}
.menu .pill {
  margin-top: 26px;
  align-self: flex-start;
}
@media (max-width: 900px) {
  :root {
    --hdr: 64px;
  }
  .nav,
  header .bar > .pill {
    display: none;
  }
  .burger {
    display: inline-flex;
    margin-left: auto;
  }
}

/* ============ ARTICLE ============ */

/* En-tête de l'article : un panneau teinté, le fil d'Ariane, le titre, les dates */
.ahead {
  position: relative;
  margin: 12px max(12px, min(40px, 3vw)) 0;
  padding: clamp(46px, 6vw, 84px) 0 clamp(34px, 4vw, 54px);
  border-radius: 28px;
  background: var(--tint);
  overflow: hidden;
}
.ahead::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 15px,
    rgba(18, 24, 32, 0.045) 15px 16px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.ahead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--signal);
}
.ahead .wrap {
  position: relative;
  padding-inline: clamp(16px, 2vw, 24px);
  max-width: 1376px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}
.crumbs a {
  color: inherit;
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.ahead h1 {
  margin: 22px 0 0;
  max-width: 22ch;
  font: 800 clamp(32px, 3.8vw, 54px)/1.08 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.dates span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dates svg {
  width: 15px;
  height: 15px;
}

/* Deux colonnes : le texte (800 px) et la colonne de droite (480 px) */
.alayout {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(0, 480px);
  justify-content: space-between;
  gap: 32px;
  max-width: 1376px;
  margin: 0 auto;
  padding: clamp(36px, 4vw, 56px) clamp(16px, 4vw, 64px) 40px;
}
.aside3 {
  position: sticky;
  top: calc(var(--hdr) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card3 {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--card);
  border: 1px solid rgba(18, 24, 32, 0.05);
}
.card3 > b {
  display: block;
  margin-bottom: 14px;
  font: 800 26px/1.15 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.015em;
}
.toc3 ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc3 li + li {
  border-top: 1px solid var(--line);
}
.toc3 a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  transition:
    color 0.15s,
    padding 0.2s;
}
.toc3 a:hover {
  color: var(--signal);
}
.toc3 a.on {
  color: var(--signal);
  font-weight: 700;
  padding-left: 10px;
  box-shadow: inset 3px 0 0 var(--signal);
}
.cta3 p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 18px;
}
.cta3 .micro {
  margin: 12px 0 0;
  text-align: center;
}
@media (max-width: 1100px) {
  .alayout {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside3 {
    display: none;
  }
}

/* Sommaire repliable en mobile */
.mtoc {
  display: none;
  margin-bottom: 28px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--card);
}
.mtoc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font: 800 18px/1.2 var(--display);
  font-stretch: 106%;
  cursor: pointer;
  list-style: none;
}
.mtoc summary::-webkit-details-marker {
  display: none;
}
.mtoc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.mtoc[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.mtoc ol {
  margin: 0;
  padding: 0 20px 14px 38px;
}
.mtoc li {
  padding: 6px 0;
  font-size: 15.5px;
}
.mtoc a {
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 1100px) {
  .mtoc {
    display: block;
  }
}

/* Le texte de l'article */
.prose3 {
  min-width: 0;
}
.prose3 > p,
.prose3 li {
  font-size: 16.5px;
  line-height: 1.72;
}
.prose3 > p {
  margin: 0 0 18px;
}
.prose3 strong {
  font-weight: 700;
}
.prose3 h2 {
  margin: 64px 0 18px;
  font: 800 clamp(26px, 2.4vw, 32px)/1.25 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.prose3 > h2:first-of-type {
  margin-top: 48px;
}
.prose3 h3 {
  margin: 40px 0 12px;
  font: 800 clamp(20px, 1.8vw, 23px)/1.3 var(--display);
  font-stretch: 104%;
  letter-spacing: -0.015em;
  color: var(--signal);
  text-wrap: balance;
}
.prose3 ul {
  margin: 0 0 20px;
  padding-left: 22px;
}
.prose3 li {
  margin: 6px 0;
}
.prose3 li::marker {
  color: var(--signal);
}
.prose3 .ref {
  font-size: 13px;
}

/* Exemple concret, conseil, attention */
.ex,
.tip,
.warn {
  margin: 24px 0;
  padding: 18px 24px;
  border-radius: 24px;
  font-size: 16px;
  line-height: 1.65;
}
.ex {
  background: var(--tint);
}
.tip {
  background: #f1efea;
  border-left: 4px solid var(--signal);
  border-radius: 6px 24px 24px 6px;
}
.warn {
  background: #fff4dc;
  border-left: 4px solid #d99a00;
  border-radius: 6px 24px 24px 6px;
}
.ex b.t,
.tip b.t,
.warn b.t {
  font-weight: 700;
}
.ex b.t::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--signal);
  vertical-align: 1px;
}

/* La bannière de marque, au fil du texte (l'équivalent de « Votre date ? » chez MAEF) */
.banner3 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 40px 0 44px;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 24px 50px -30px rgba(18, 24, 32, 0.7);
}
.badge3 {
  position: relative;
  width: 76px;
  height: 64px;
  border-radius: 12px 12px 6px 6px;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6);
}
.badge3::before {
  content: "";
  position: absolute;
  inset: 0 0 12px;
  background: repeating-linear-gradient(180deg, #dce0e2 0 7px, #b9c0c4 7px 8px);
}
.badge3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: var(--signal-light);
  box-shadow: 0 0 18px 4px rgba(255, 138, 76, 0.55);
}
.badge3 span {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ink);
  color: #ffffff;
  font: 800 9px/1.2 var(--display);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.banner3 .bt {
  display: block;
  font: 800 clamp(19px, 1.7vw, 23px)/1.22 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.015em;
}
.banner3 .bt mark {
  padding: 0 0.18em;
  border-radius: 4px;
  background: var(--signal);
  color: #ffffff;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.banner3 p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #c5cdd3;
}
.banner3 .go {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.banner3 .micro {
  color: #9aa5ad;
  font-size: 12.5px;
  text-align: center;
}
@media (max-width: 720px) {
  .banner3 {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .banner3 .go {
    grid-column: 1 / -1;
    align-items: stretch;
  }
}

/* Tableaux : en-tête teinté, bordures fines */
.table3 {
  margin: 24px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.table3 table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.table3 th,
.table3 td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.table3 th {
  background: var(--tint);
  font: 800 14px/1.3 var(--display);
  font-stretch: 104%;
}
.table3 tr:last-child td {
  border-bottom: 0;
}
.table3 td + td,
.table3 th + th {
  border-left: 1px solid var(--line);
}
.table3 td:first-child {
  font-weight: 700;
}
@media (max-width: 640px) {
  .table3 {
    border: 0;
    background: none;
    overflow: visible;
  }
  .table3 table {
    min-width: 0;
  }
  .table3 thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table3 tr {
    display: block;
    margin-bottom: 10px;
    padding: 4px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .table3 td {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 10px 0;
    border-left: 0 !important;
  }
  .table3 td::before {
    content: attr(data-label);
    font: 700 11.5px/1.4 var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .table3 td:first-child {
    display: block;
    font: 800 16.5px/1.3 var(--display);
  }
  .table3 td:first-child::before {
    content: none;
  }
  .table3 tr:last-child td {
    border-bottom: 1px solid var(--line);
  }
  .table3 tr td:last-child {
    border-bottom: 0;
  }
}

/* Ce qu'il faut retenir */
.keep {
  margin: 8px 0 0;
  padding: 22px 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
}
.keep ul {
  margin: 0;
  padding-left: 20px;
}
.keep li {
  font-size: 16.5px;
  line-height: 1.6;
}

/* Questions fréquentes : des cartes qui s'ouvrent */
.faq3 {
  margin-top: 8px;
}
.faq3 details {
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(18, 24, 32, 0.07);
  transition: box-shadow 0.2s;
}
.faq3 details[open] {
  box-shadow: var(--card);
}
.faq3 summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font: 800 16.5px/1.35 var(--display);
  font-stretch: 104%;
}
.faq3 summary::-webkit-details-marker {
  display: none;
}
.faq3 summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq3 details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq3 summary:hover {
  color: var(--signal);
}
.faq3 details > div {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* Appel final (l'équivalent du bloc simulateur de MAEF) */
.endcta {
  margin: 34px 0;
  padding: 34px 32px 30px;
  border-radius: 24px;
  background: var(--tint);
  position: relative;
  overflow: hidden;
}
.endcta::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 160px;
  border-radius: 110px 110px 0 0;
  border: 2px solid rgba(18, 24, 32, 0.08);
  border-bottom: 0;
  pointer-events: none;
}
.endcta h2 {
  margin: 0 0 10px !important;
}
.endcta p {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.endcta .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* Sur le même sujet */
.related3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.related3 a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(18, 24, 32, 0.07);
  color: var(--ink);
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.related3 a:hover {
  box-shadow: var(--card);
  transform: translateY(-2px);
}
.related3 small {
  font: 700 11.5px/1.3 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}
.related3 b {
  font: 800 17px/1.3 var(--display);
  font-stretch: 104%;
}
.related3 span {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 720px) {
  .related3 {
    grid-template-columns: 1fr;
  }
}
.byline3 {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ============ PILIER ============ */

/* Ouverture plein écran */
.phero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  overflow: hidden;
  background: #1b2430;
}
.phero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
}
.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.55) 0%,
    rgba(10, 14, 20, 0.1) 30%,
    rgba(10, 14, 20, 0.5) 62%,
    rgba(10, 14, 20, 0.9) 100%
  );
  pointer-events: none;
}
.phero .shutter {
  z-index: 2;
}
.phero .wrap {
  position: relative;
  z-index: 3;
  padding-block: calc(var(--hdr) + 60px) clamp(40px, 6vw, 72px);
}
.phero .crumbs {
  color: rgba(255, 255, 255, 0.78);
}
.phero .crumbs a:hover {
  color: #ffffff;
}
.phero .kicker {
  display: block;
  margin-top: 24px;
  color: var(--signal-light);
}
.phero h1 {
  margin: 14px 0 0;
  font: 800 clamp(40px, 6vw, 96px)/0.96 var(--display);
  font-stretch: 122%;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}
.phero .lead {
  margin-top: 26px;
  max-width: 62ch;
  font-size: clamp(17.5px, 1.5vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.phero .lead b {
  color: #ffffff;
}
.phero .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 30px;
}
.phero .alt {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  padding: 8px 4px;
}
.phero .alt:hover {
  text-decoration-color: var(--signal-light);
}
.phero .stamp {
  display: block;
  margin-top: 24px;
  font: 600 13px/1.4 var(--mono);
  color: rgba(255, 255, 255, 0.68);
}

/* La page du guide : le sommaire à gauche, les parties à droite */
.hub {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: 1376px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) clamp(16px, 4vw, 64px) 80px;
}
.hnav {
  position: sticky;
  top: calc(var(--hdr) + 28px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hnav > b {
  font: 700 12.5px/1.3 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hnav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.hnav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  margin-left: -2px;
  padding: 8px 0 8px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.hnav a i {
  font: 600 12px/1.6 var(--mono);
  font-style: normal;
  color: var(--zinc);
}
.hnav a:hover {
  color: var(--ink);
}
.hnav a.on {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--signal);
}
.hnav a.on i {
  color: var(--signal);
}
.hnav .card3 {
  padding: 20px;
}
.hnav .card3 > b {
  font-size: 19px;
  margin-bottom: 8px;
}
.hnav .card3 p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.hnav .card3 .pill {
  min-height: 44px;
  font-size: 15px;
  padding: 9px 18px;
}
@media (max-width: 1020px) {
  .hub {
    grid-template-columns: minmax(0, 1fr);
  }
  .hnav {
    display: none;
  }
}

/* Titres des sections du guide */
.hsec {
  scroll-margin-top: calc(var(--hdr) + 24px);
}
.hsec + .hsec {
  margin-top: clamp(56px, 7vw, 96px);
}
.hsec > .kicker {
  display: block;
}
.hsec > h2 {
  margin: 10px 0 0;
  font: 800 clamp(28px, 3.2vw, 44px)/1.08 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.025em;
  max-width: 24ch;
  text-wrap: balance;
}
.hsec > .intro {
  margin: 14px 0 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

/* Le plan du guide : une carte par partie */
.plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.plan a {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(18, 24, 32, 0.07);
  color: var(--ink);
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.plan a:hover {
  box-shadow: var(--card);
  transform: translateY(-2px);
  border-color: rgba(194, 65, 12, 0.35);
}
.plan i {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  font: 700 14px/1 var(--mono);
  font-style: normal;
  color: var(--signal);
}
.plan b {
  font: 800 19px/1.25 var(--display);
  font-stretch: 106%;
}
.plan span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.plan small {
  margin-top: 6px;
  font: 700 13px/1.3 var(--text);
  color: var(--signal);
}
@media (max-width: 720px) {
  .plan {
    grid-template-columns: 1fr;
  }
}

/* Une partie du guide : toujours la même construction */
.part {
  padding: clamp(26px, 3vw, 38px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(18, 24, 32, 0.06);
  box-shadow: var(--card);
}
.part + .part {
  margin-top: 18px;
}
.part .ph {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.part .ph i {
  flex: none;
  font: 700 14px/1 var(--mono);
  font-style: normal;
  color: var(--signal);
}
.part .ph h2 {
  margin: 0;
  font: 800 clamp(23px, 2.3vw, 30px)/1.15 var(--display);
  font-stretch: 108%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.part .answer {
  margin: 14px 0 0;
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.7;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}
.facts > div {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--tint);
}
.facts dt {
  font: 700 11.5px/1.3 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 6px 0 0;
  font: 750 16px/1.35 var(--display);
  font-stretch: 104%;
}
.facts dd .ref {
  font-size: 12.5px;
}
@media (max-width: 720px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 16px;
    background: var(--tint);
  }
  .facts > div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 11px 16px;
    background: none;
    border-radius: 0;
  }
  .facts > div + div {
    border-top: 1px solid rgba(18, 24, 32, 0.08);
  }
  .facts dd {
    margin: 0;
    font-size: 15px;
  }
}
.reads {
  margin-top: 24px;
}
.reads > b {
  display: block;
  margin-bottom: 4px;
  font: 700 12.5px/1.3 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.reads ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reads a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.reads li:last-child a {
  border-bottom: 0;
}
.reads a strong {
  font: 750 17px/1.35 var(--display);
  font-stretch: 104%;
}
.reads a span {
  grid-column: 1;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.reads a::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--signal);
  font-size: 18px;
  transition: transform 0.2s;
}
.reads a:hover strong {
  color: var(--signal);
}
.reads a:hover::after {
  transform: translateX(4px);
}
.reads a .tag {
  font-style: normal;
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--signal-pale);
  color: var(--signal);
  font: 700 11px/1.5 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* Décisions récentes : une liste sobre */
.decs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.decs li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.decs time {
  font: 800 16px/1.4 var(--display);
  font-stretch: 106%;
}
.decs p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.decs small {
  grid-column: 2;
  font: 600 13px/1.4 var(--mono);
  color: var(--muted);
}
@media (max-width: 600px) {
  .decs li {
    grid-template-columns: 1fr;
  }
  .decs small {
    grid-column: 1;
  }
}

/* Les autres guides du site */
.guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.guides a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(18, 24, 32, 0.07);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.guides a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.guides a:hover {
  box-shadow: var(--card);
  transform: translateY(-2px);
}
.guides a:hover::before {
  transform: none;
}
.guides small {
  font: 700 11.5px/1.3 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.guides b {
  font: 800 20px/1.2 var(--display);
  font-stretch: 108%;
}
.guides span {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.guides a.dark {
  background: var(--ink);
  color: #ffffff;
}
.guides a.dark small,
.guides a.dark span {
  color: #aeb8c0;
}
@media (max-width: 900px) {
  .guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .guides {
    grid-template-columns: 1fr;
  }
  .guides a {
    min-height: 0;
  }
}

/* Bande « Une question sur votre bail ? » avant le pied de page */
.qband {
  background: var(--ink);
  color: #ffffff;
  padding-block: clamp(48px, 6vw, 80px);
}
.qband .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}
.qband h2 {
  margin: 0;
  max-width: 20ch;
  font: 800 clamp(28px, 3.4vw, 46px)/1.08 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.025em;
}
.qband p {
  margin: 10px 0 0;
  color: #c5cdd3;
  font-size: 16.5px;
}

/* Pied de page avec l'index des sujets */
footer.site {
  padding-block: 44px calc(96px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.ftopics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 20px;
  padding-bottom: 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.fcol b {
  display: block;
  font: 760 15px/1.25 var(--display);
  font-stretch: 106%;
  margin-bottom: 8px;
}
.fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fcol a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
.fcol a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.fbottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.fbottom b {
  color: var(--ink);
}
.fbottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.fbottom nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.fbottom nav a:hover {
  color: var(--ink);
}
.fbottom .legal {
  width: 100%;
  margin: 0;
  font-size: 13.5px;
  max-width: 90ch;
}
@media (max-width: 1100px) {
  .ftopics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ftopics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Barre de question fixée en bas (mobile) */
.dock {
  display: none;
}
@media (max-width: 900px) {
  .dock {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 8px 8px 8px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 18px 40px -18px rgba(18, 24, 32, 0.5);
    color: var(--muted);
    font: 500 16.5px/1 var(--text);
    cursor: pointer;
    transform: translateY(140%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .dock.show {
    transform: none;
  }
  .dock i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--signal);
    color: #ffffff;
  }
  .dock i svg {
    width: 19px;
    height: 19px;
  }
}

/* Message de maquette */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 30;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  max-width: calc(100% - 32px);
}
