/* BFC Gestion — site public.
   Les couleurs sont relevées sur l'enseigne officielle (assets/images/app-icon.png) :
   noir de l'anneau, rouge et or du blason, brun de la braise. */

:root {
  color-scheme: dark;

  --noir: #0b0908;
  --noir-2: #14100c;
  --noir-3: #1d1712;
  --braise: #4d210b;
  --rouge: #ce1409;
  --rouge-clair: #f0301f;
  --rouge-fonce: #9b0c03;
  --or: #f3af24;
  --or-pale: #f9e564;
  --or-sourd: #d98f0a;

  --ivoire: #f6f1e6;
  --ivoire-vif: #fffdf7;
  --encre: #17120e;
  --encre-douce: #5d534a;
  --encre-tres-douce: #857a6f;

  --filet-or: rgba(243, 175, 36, 0.32);
  --filet-clair: rgba(23, 18, 14, 0.16);

  --page: 1200px;
  --gouttiere: clamp(1.25rem, 5vw, 3.5rem);

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --texte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chiffres: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--ivoire);
  font-family: var(--texte);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--or);
  color: var(--noir);
}

/* ---------- Rythme typographique ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 82;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  font-variation-settings: "wdth" 92;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h4 {
  font-size: 1rem;
  font-variation-settings: "wdth" 95;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

code {
  font-family: var(--chiffres);
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(243, 175, 36, 0.14);
  color: var(--or-pale);
}

/* Étiquette de colonne : la même partout, comme l'en-tête d'un cahier. */
.etiquette {
  margin: 0 0 1.25rem;
  font-family: var(--chiffres);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
}

.chapo {
  font-size: clamp(1.06rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--ivoire) 88%, transparent);
}

.discret {
  color: color-mix(in srgb, var(--ivoire) 62%, transparent);
}

.page {
  width: min(100% - var(--gouttiere) * 2, var(--page));
  margin-inline: auto;
}

.lien-evitement {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--or);
  color: var(--noir);
  font-family: var(--chiffres);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.lien-evitement:focus-visible {
  transform: translateY(0);
}

/* ---------- Barre de titre ---------- */

.enseigne {
  position: sticky;
  z-index: 50;
  top: 0;
  background: color-mix(in srgb, var(--noir) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--filet-or);
}

.enseigne-corps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.marque img {
  width: 2.4rem;
  height: 2.4rem;
}

.marque span {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.navigation a {
  font-family: var(--chiffres);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--ivoire) 70%, transparent);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
  color: var(--ivoire);
  border-bottom-color: var(--or);
}

.bouton-menu {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--filet-or);
  border-radius: 6px;
  background: transparent;
  color: var(--ivoire);
  cursor: pointer;
}

.bouton-menu span,
.bouton-menu span::before,
.bouton-menu span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  content: "";
}

.bouton-menu span::before {
  transform: translateY(-6px);
}

.bouton-menu span::after {
  transform: translateY(4px);
}

@media (max-width: 900px) {
  .bouton-menu {
    display: block;
  }

  .navigation {
    position: absolute;
    top: 100%;
    right: var(--gouttiere);
    left: var(--gouttiere);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    background: var(--noir-2);
    border: 1px solid var(--filet-or);
  }

  .navigation.est-ouverte {
    display: flex;
  }

  .navigation a {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(243, 175, 36, 0.12);
  }

  .navigation a:last-child {
    border-bottom: 0;
  }

  .navigation a:hover,
  .navigation a[aria-current="page"] {
    border-bottom-color: rgba(243, 175, 36, 0.12);
    background: rgba(243, 175, 36, 0.08);
  }
}

/* ---------- Boutons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--chiffres);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.bouton-plein {
  background: var(--rouge);
  color: #fff;
}

.bouton-plein:hover {
  background: var(--rouge-clair);
}

.bouton-creux {
  border-color: var(--filet-or);
  color: var(--ivoire);
}

.bouton-creux:hover {
  border-color: var(--or);
  background: rgba(243, 175, 36, 0.1);
}

/* ---------- Bandeau d'ouverture ---------- */

.ouverture {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

/* Braise : deux traits d'or très sourds, pas un dégradé d'ambiance. */
.ouverture::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--or) 30%,
    var(--rouge) 70%,
    transparent
  );
  content: "";
}

.ouverture-grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .ouverture-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ouverture h1 span {
  display: block;
}

.ouverture h1 .accent {
  color: var(--or);
}

.ouverture .chapo {
  max-width: 46ch;
  margin-block: 1.5rem;
}

.etat-journee {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--filet-or);
  font-family: var(--chiffres);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
}

.etat-journee::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rouge);
  content: "";
}

/* ---------- Téléphone ---------- */

.telephone {
  position: relative;
  margin-inline: auto;
  width: min(100%, 20rem);
  padding: 0.5rem;
  border: 1px solid rgba(246, 241, 230, 0.22);
  border-radius: 2.15rem;
  background: linear-gradient(160deg, #2b2521, #100d0b);
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55);
}

.telephone img {
  width: 100%;
  border-radius: 1.7rem;
}

.telephone-large {
  width: min(100%, 20rem);
}

.legende {
  max-width: 36ch;
  margin: 0;
  font-family: var(--chiffres);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--encre-tres-douce);
}

/* ---------- Le cahier : signature de la page ---------- */

.cahier {
  border-top: 1px solid var(--filet-or);
  border-bottom: 1px solid var(--filet-or);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cahier-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cahier-entete h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
}

/* La note vit hors de la zone qui défile : sinon elle sortirait de l'écran
   avec le tableau sur un téléphone. */
.registre-note {
  margin: 0 0 0.9rem;
  font-family: var(--chiffres);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--encre-tres-douce);
}

.cahier-defilement {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.cahier-defilement:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 4px;
}

.registre-astuce {
  display: none;
  margin: 0.9rem 0 0;
  font-family: var(--chiffres);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--or);
}

@media (max-width: 760px) {
  .registre-astuce {
    display: block;
  }
}

.registre {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-family: var(--chiffres);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}


.registre th {
  padding: 0 0.75rem 0.6rem;
  border-bottom: 1px solid var(--or);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
  text-align: left;
}

.registre td {
  padding: 0.62rem 0.75rem;
  border-bottom: 1px solid rgba(243, 175, 36, 0.13);
  color: color-mix(in srgb, var(--ivoire) 82%, transparent);
  white-space: nowrap;
}

.registre th:first-child,
.registre td:first-child {
  padding-left: 0;
}

.registre .libelle {
  width: 99%;
  white-space: normal;
  color: var(--ivoire);
}

.registre .nombre {
  text-align: right;
}

.registre .entree {
  color: var(--or-pale);
}

.registre .sortie {
  color: color-mix(in srgb, var(--rouge-clair) 82%, var(--ivoire));
}

.registre .solde {
  color: var(--ivoire);
  font-weight: 600;
}

.registre tfoot td {
  padding-top: 0.9rem;
  border-bottom: 0;
  border-top: 1px solid var(--or);
  color: var(--ivoire);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
}

.registre tfoot .solde {
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--or);
}

/* ---------- Sections ---------- */

.bande {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.bande-serree {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.entete-section {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.entete-section .chapo {
  margin-top: 1.1rem;
}

/* Feuille : le fond ivoire des pages de lecture. */
.feuille {
  background: var(--ivoire);
  color: var(--encre);
}

.feuille .etiquette {
  color: var(--rouge-fonce);
}

.feuille .chapo {
  color: color-mix(in srgb, var(--encre) 82%, transparent);
}

.feuille .discret {
  color: var(--encre-douce);
}

.feuille .bouton-creux {
  border-color: var(--filet-clair);
  color: var(--encre);
}

.feuille .bouton-creux:hover {
  border-color: var(--rouge);
  background: rgba(206, 20, 9, 0.06);
}

.feuille code {
  background: rgba(206, 20, 9, 0.09);
  color: var(--rouge-fonce);
}

/* ---------- Écrans de l'application ---------- */

.ecran {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--filet-or);
}

.feuille .ecran {
  border-top-color: var(--filet-clair);
}

.ecran:first-of-type {
  border-top: 0;
}

.ecran-inverse .telephone {
  order: 2;
}

@media (max-width: 900px) {
  .ecran,
  .ecran-inverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .ecran-inverse .telephone {
    order: 0;
  }
}

.ecran ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.ecran ul li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px solid var(--filet-or);
}

.feuille .ecran ul li {
  border-bottom-color: var(--filet-clair);
}

.ecran ul li::before {
  position: absolute;
  left: 0;
  color: var(--or);
  font-family: var(--chiffres);
  content: "→";
}

.feuille .ecran ul li::before {
  color: var(--rouge);
}

/* ---------- Grilles de cartes ---------- */

/* Les filets sont portés par chaque carte, pas par le fond de la grille :
   une dernière rangée incomplète ne laisse donc aucune cellule fantôme. */
.colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1px;
}

.colonnes > * {
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  background: var(--noir);
  box-shadow: 0 0 0 1px var(--filet-or);
}

.feuille .colonnes > * {
  background: var(--ivoire);
  box-shadow: 0 0 0 1px var(--filet-clair);
}

.colonnes h3 {
  margin-bottom: 0.6rem;
}

.colonnes p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ivoire) 72%, transparent);
}

.feuille .colonnes p {
  color: var(--encre-douce);
}

/* ---------- Étapes ---------- */

.etapes {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: etape;
  list-style: none;
}

.etapes li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--filet-or);
}

.feuille .etapes li {
  border-top-color: var(--filet-clair);
}

.etapes li::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  font-family: var(--chiffres);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--or);
  padding-top: 0.3rem;
}

.feuille .etapes li::before {
  color: var(--rouge);
}

.etapes h3 {
  margin-bottom: 0.35rem;
}

.etapes p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ivoire) 72%, transparent);
}

.feuille .etapes p {
  color: var(--encre-douce);
}

/* ---------- Blocs d'avertissement ---------- */

.avertissement {
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--or);
  background: rgba(243, 175, 36, 0.08);
  font-size: 0.96rem;
}

.feuille .avertissement {
  border-left-color: var(--rouge);
  background: rgba(206, 20, 9, 0.06);
}

/* ---------- Pages de texte ---------- */

.texte-legal {
  max-width: 72ch;
}

.texte-legal h2 {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet-clair);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  font-variation-settings: "wdth" 90;
}

.texte-legal h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.texte-legal ul,
.texte-legal ol {
  margin: 0 0 1.1em;
  padding-left: 1.35rem;
}

.texte-legal li {
  margin-bottom: 0.5em;
}

.texte-legal li::marker {
  color: var(--rouge);
}

.date-mise-a-jour {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--chiffres);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* ---------- Appel final ---------- */

.appel {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--filet-or);
  background: linear-gradient(150deg, var(--braise), var(--noir-2) 62%);
}

.appel h2 {
  max-width: 22ch;
  margin-bottom: 1rem;
}

.appel .chapo {
  max-width: 54ch;
  margin-bottom: 1.75rem;
}

/* ---------- Pied de page ---------- */

.pied {
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  border-top: 1px solid var(--filet-or);
  background: var(--noir);
  color: var(--ivoire);
}

.pied-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 760px) {
  .pied-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pied p {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ivoire) 60%, transparent);
}

.pied-liens {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pied-liens strong {
  font-family: var(--chiffres);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.35rem;
}

.pied-liens a {
  font-size: 0.94rem;
  text-decoration: none;
  color: color-mix(in srgb, var(--ivoire) 72%, transparent);
}

.pied-liens a:hover {
  color: var(--ivoire);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet-or);
  font-family: var(--chiffres);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--encre-tres-douce);
}

/* ---------- Entrée en scène : un seul moment, à l'ouverture ---------- */

@media (prefers-reduced-motion: no-preference) {
  .anime {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .anime.est-visible {
    opacity: 1;
    transform: none;
  }

  .registre tbody tr {
    opacity: 0;
    animation: ligne-registre 0.45s ease forwards;
  }

  .cahier-defilement:not(.est-visible) .registre tbody tr {
    animation-play-state: paused;
  }

  .registre tbody tr:nth-child(1) { animation-delay: 0.05s; }
  .registre tbody tr:nth-child(2) { animation-delay: 0.11s; }
  .registre tbody tr:nth-child(3) { animation-delay: 0.17s; }
  .registre tbody tr:nth-child(4) { animation-delay: 0.23s; }
  .registre tbody tr:nth-child(5) { animation-delay: 0.29s; }
  .registre tbody tr:nth-child(6) { animation-delay: 0.35s; }
  .registre tbody tr:nth-child(7) { animation-delay: 0.41s; }
  .registre tbody tr:nth-child(8) { animation-delay: 0.47s; }
  .registre tbody tr:nth-child(9) { animation-delay: 0.53s; }
  .registre tbody tr:nth-child(10) { animation-delay: 0.59s; }
}

@keyframes ligne-registre {
  from {
    opacity: 0;
    transform: translateX(-0.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .enseigne,
  .bouton,
  .lien-evitement {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ---------- Pages secondaires ---------- */

.etroit {
  width: min(100% - var(--gouttiere) * 2, 68rem);
  margin-inline: auto;
}

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* En-tête des pages de contenu : la même bande noire que l'accueil. */
.ouverture-page {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--filet-or);
}

.ouverture-page h1 {
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);
}

.ouverture-page h1 span {
  color: var(--or);
}

.ouverture-page .chapo {
  max-width: 56ch;
  margin-top: 1.35rem;
}

.grille-legale {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .grille-legale {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plan-legal {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1rem;
  border-left: 1px solid var(--filet-clair);
}

@media (max-width: 900px) {
  .plan-legal {
    position: static;
  }
}

.plan-legal strong {
  margin-bottom: 0.6rem;
  font-family: var(--chiffres);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge-fonce);
}

.plan-legal a {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--encre-douce);
}

.plan-legal a:hover {
  color: var(--rouge);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.carte {
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border: 1px solid var(--filet-or);
}

.feuille .carte {
  border-color: var(--filet-clair);
}

.colonnes > .carte {
  border: 0;
}

.carte h2,
.carte h3 {
  margin-bottom: 0.6rem;
}

.carte p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ivoire) 72%, transparent);
}

.feuille .carte p {
  color: var(--encre-douce);
}

.puce-carte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--or);
  font-family: var(--chiffres);
  font-size: 1rem;
  color: var(--or);
}

.feuille .puce-carte {
  border-color: var(--rouge);
  color: var(--rouge);
}

.panneau {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--filet-or);
  background: var(--noir-2);
}

.feuille .panneau {
  border-color: var(--filet-clair);
  background: var(--ivoire-vif);
}

.liste-fleche {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.liste-fleche li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px solid var(--filet-clair);
}

.liste-fleche li::before {
  position: absolute;
  left: 0;
  color: var(--rouge);
  font-family: var(--chiffres);
  content: "\2192";
}

.etapes-liste {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: etape-liste;
  list-style: none;
}

.etape-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--filet-clair);
}

.etape-item::before {
  counter-increment: etape-liste;
  content: counter(etape-liste, decimal-leading-zero);
  padding-top: 0.25rem;
  font-family: var(--chiffres);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rouge);
}

.etape-item h3 {
  margin-bottom: 0.35rem;
}

.etape-item p {
  font-size: 0.95rem;
  color: var(--encre-douce);
}

.faq details {
  border-top: 1px solid var(--filet-clair);
}

.faq details:last-child {
  border-bottom: 1px solid var(--filet-clair);
}

.faq summary {
  position: relative;
  padding: 1.1rem 2rem 1.1rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  font-size: 1.05rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 1.1rem;
  right: 0;
  font-family: var(--chiffres);
  color: var(--rouge);
  content: "+";
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding-bottom: 1.2rem;
  font-size: 0.97rem;
  color: var(--encre-douce);
}

.pied-marque p {
  margin-top: 1rem;
}

.petit {
  font-size: 0.9rem;
}

.feuille .appel {
  border-color: var(--filet-clair);
  background: linear-gradient(150deg, var(--noir-2), var(--braise) 130%);
  color: var(--ivoire);
}

.feuille .appel .chapo {
  color: color-mix(in srgb, var(--ivoire) 85%, transparent);
}

.feuille .appel .etiquette {
  color: var(--or);
}

.feuille .appel .bouton-creux {
  border-color: var(--filet-or);
  color: var(--ivoire);
}

.feuille .appel .bouton-creux:hover {
  border-color: var(--or);
  background: rgba(243, 175, 36, 0.1);
}
