/* fondsdecarte.fr — encre de forêt, papier vert pâle, jaune de balisage. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/polices/SchibstedGrotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/polices/SchibstedGrotesk-Italic-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/polices/JetBrainsMono-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --encre: #12291f;
  --encre-2: #1c3a2e;
  --encre-3: #2a4d3e;
  --sur-encre: #e9efe9;
  --sur-encre-doux: #a9bdb1;
  --balise: #f4c430;
  --balise-fonce: #d9a80f;
  --sur-balise: #241c00;
  --papier: #f3f5f0;
  --surface: #ffffff;
  --surface-2: #e9ede6;
  --trait: #d5dccf;
  --trait-fort: #b5c0b0;
  --texte: #15221a;
  --doux: #526158;
  --lien: #1f5c45;
  --danger: #a8281f;
  --danger-fond: #fbeceb;
  --succes: #2c6e48;
  --succes-fond: #e6f2ea;
  --attention: #8a5a00;
  --attention-fond: #fdf3dc;

  --police: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --rayon: 6px;
  --ombre: 0 1px 2px rgb(18 41 31 / 0.06), 0 6px 18px rgb(18 41 31 / 0.08);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.55 var(--police);
  color: var(--texte);
  background: var(--papier);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: "ss01";
}
main { flex: 1; outline: none; }
::selection { background: var(--balise); color: var(--sur-balise); }
:focus-visible { outline: 2px solid var(--lien); outline-offset: 2px; border-radius: 2px; }
a { color: var(--lien); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd, .mono { font-family: var(--mono); font-size: 0.875em; font-variant-ligatures: none; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.chiffre { font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--trait-fort) transparent; }

.evitement { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--balise); color: var(--sur-balise); padding: 0.5rem 1rem; }
.evitement:focus { left: 1rem; }

/* --- Bandeau -------------------------------------------------------------- */
.bandeau {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  height: 56px; padding: 0 clamp(1rem, 3vw, 2rem);
  background: var(--encre); color: var(--sur-encre);
  border-bottom: 1px solid var(--encre-3);
}
.marque { display: flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.marque-signe { width: 22px; height: 22px; fill: none; stroke: var(--balise); stroke-width: 1.6; }
.marque-signe .plein { fill: var(--balise); }
.tld { color: var(--sur-encre-doux); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-size: 0.95rem; }
.nav a { color: var(--sur-encre); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--sur-encre-doux); }
.nav a[aria-current="page"] { border-bottom-color: var(--balise); }
.nav-compte { display: flex; gap: 0.75rem; align-items: center; }

/* --- Boutons et champs ------------------------------------------------------ */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 40px; padding: 0 1.1rem; border-radius: var(--rayon);
  font: 600 0.95rem/1 var(--police); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--encre); background: var(--encre); color: var(--sur-encre);
  transition: background 160ms var(--sortie), border-color 160ms var(--sortie), transform 160ms var(--sortie);
}
.bouton:hover { background: var(--encre-2); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled, .bouton[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }
.bouton.balise { background: var(--balise); border-color: var(--balise); color: var(--sur-balise); }
.bouton.balise:hover { background: var(--balise-fonce); border-color: var(--balise-fonce); }
.bouton.discret { background: transparent; color: var(--texte); border-color: var(--trait-fort); }
.bouton.discret:hover { background: var(--surface-2); }
.bouton.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.bouton.danger:hover { background: var(--danger-fond); }
.bouton.petit { min-height: 32px; padding: 0 0.75rem; font-size: 0.875rem; }
.bandeau .bouton.discret { color: var(--sur-encre); border-color: var(--encre-3); }
.bandeau .bouton.discret:hover { background: var(--encre-2); }

.champ { display: grid; gap: 0.35rem; }
.champ label { font-weight: 600; font-size: 0.9rem; }
.champ .aide { color: var(--doux); font-size: 0.85rem; margin: 0; }
input, select, textarea {
  font: inherit; color: var(--texte); background: var(--surface);
  border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  min-height: 40px; padding: 0.45rem 0.7rem; width: 100%;
  transition: border-color 140ms, box-shadow 140ms;
}
input:hover, select:hover, textarea:hover { border-color: var(--doux); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lien); box-shadow: 0 0 0 3px rgb(31 92 69 / 0.18); }
input[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 84px; resize: vertical; font-family: var(--mono); font-size: 0.875rem; }
::placeholder { color: #6d7a71; }

.erreur-formulaire { color: var(--danger); background: var(--danger-fond); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); padding: 0.6rem 0.8rem; border-radius: var(--rayon); margin: 0; font-size: 0.92rem; }
.erreur-formulaire:empty { display: none; }

/* --- Accueil -------------------------------------------------------------- */
.scene {
  position: relative; display: grid; grid-template-columns: minmax(340px, 30rem) 1fr;
  min-height: calc(100vh - 56px); max-height: 860px;
  background: var(--encre); color: var(--sur-encre);
}
.scene-texte { padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 3vw, 3rem); display: flex; flex-direction: column; gap: 1.5rem; z-index: 2; }
.scene h1 { font-size: clamp(2.3rem, 3.6vw, 3.4rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.scene h1 em { font-style: normal; color: var(--balise); }
.scene-intro { color: var(--sur-encre-doux); font-size: 1.1rem; max-width: 34ch; margin: 0; }
.scene-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.scene .bouton.discret { color: var(--sur-encre); border-color: var(--encre-3); }
.scene .bouton.discret:hover { background: var(--encre-2); }

.ticket {
  margin-top: auto; border: 1px solid var(--encre-3); border-radius: var(--rayon);
  background: var(--encre-2); font-family: var(--mono); font-size: 0.8rem; overflow: hidden;
}
.ticket-ligne { display: flex; gap: 0.75rem; padding: 0.55rem 0.8rem; border-top: 1px solid var(--encre-3); }
.ticket-ligne:first-child { border-top: 0; }
.ticket-ligne span:first-child { color: var(--sur-encre-doux); min-width: 6.5rem; }
.ticket-url { word-break: break-all; color: var(--sur-encre); }
.ticket-url b { color: var(--balise); font-weight: 600; }
.ticket-statut { color: #8fd6a8; }

.scene-carte { position: relative; min-height: 420px; }
.scene-carte .carte, .scene-carte canvas.grille { position: absolute; inset: 0; width: 100%; height: 100%; }
canvas.grille { pointer-events: none; z-index: 1; }
.styles-choix {
  position: absolute; z-index: 3; left: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem;
  background: rgb(18 41 31 / 0.88); padding: 0.35rem; border-radius: calc(var(--rayon) + 2px);
  border: 1px solid var(--encre-3); max-width: calc(100% - 2rem);
}
.styles-choix button {
  font: 600 0.82rem/1 var(--police); color: var(--sur-encre); background: transparent; border: 1px solid transparent;
  border-radius: var(--rayon); padding: 0.5rem 0.7rem; cursor: pointer; display: flex; align-items: center; gap: 0.45rem;
}
.styles-choix button:hover { background: var(--encre-2); }
.styles-choix button[aria-pressed="true"] { background: var(--balise); color: var(--sur-balise); }
.pastille { width: 10px; height: 10px; border-radius: 2px; border: 1px solid rgb(255 255 255 / 0.35); }
.sans-cle { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--sur-encre-doux);
  background: repeating-linear-gradient(0deg, transparent 0 63px, var(--encre-3) 63px 64px), repeating-linear-gradient(90deg, transparent 0 63px, var(--encre-3) 63px 64px), var(--encre-2); }

.bloc { padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem); }
.bloc-interieur { max-width: 72rem; margin: 0 auto; }
.bloc h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 720; letter-spacing: -0.025em; }

.formats { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.formats p.chapo { font-size: 1.1rem; color: var(--doux); max-width: 46ch; }
.integrations { border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 2px); background: var(--surface); box-shadow: var(--ombre); overflow: hidden; }
.onglets { display: flex; border-bottom: 1px solid var(--trait); overflow-x: auto; }
.onglets button { font: 600 0.88rem/1 var(--police); background: none; border: 0; padding: 0.9rem 1rem; color: var(--doux); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.onglets button[aria-selected="true"] { color: var(--texte); border-bottom-color: var(--encre); }
.integrations pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: 0.8rem; line-height: 1.6; background: #fbfcfa; }

.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border-top: 2px solid var(--encre); }
.engagements div { padding: 1.4rem 1.5rem 0 0; }
.engagements div + div { padding-left: 1.5rem; border-left: 1px solid var(--trait); }
.engagements h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.engagements p { margin: 0; color: var(--doux); }

.bande-encre { background: var(--encre); color: var(--sur-encre); }
.bande-encre .bloc-interieur { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.bande-encre p { color: var(--sur-encre-doux); margin: 0.5rem 0 0; }

/* --- Tarifs --------------------------------------------------------------- */
.entete-page { padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) 1.5rem; max-width: 72rem; margin: 0 auto; }
.entete-page h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 740; letter-spacing: -0.03em; }
.entete-page p { color: var(--doux); font-size: 1.08rem; max-width: 58ch; }
.grille-tarifs { max-width: 72rem; margin: 0 auto 4rem; padding: 0 clamp(1.25rem, 4vw, 3rem); overflow-x: auto; }
.grille-tarifs table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 2px); min-width: 640px; }
.grille-tarifs th, .grille-tarifs td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.grille-tarifs thead th { padding-top: 1.5rem; }
.grille-tarifs thead th:not(:first-child) { width: 24%; }
.grille-tarifs .offre-nom { font-size: 1.25rem; font-weight: 720; display: block; }
.grille-tarifs .offre-prix { font-size: 2rem; font-weight: 760; letter-spacing: -0.03em; display: block; margin: 0.4rem 0 0.2rem; }
.grille-tarifs .offre-prix small { font-size: 0.9rem; color: var(--doux); font-weight: 500; letter-spacing: 0; }
.grille-tarifs .offre-desc { color: var(--doux); font-weight: 400; font-size: 0.92rem; display: block; min-height: 2.8em; }
.grille-tarifs tbody th { font-weight: 600; color: var(--doux); width: 26%; }
.grille-tarifs td { font-variant-numeric: tabular-nums; font-weight: 600; }
.grille-tarifs .recommandee { background: color-mix(in srgb, var(--balise) 12%, var(--surface)); }
.grille-tarifs tfoot td { border-bottom: 0; }
.note { color: var(--doux); font-size: 0.9rem; }

/* --- Documentation ---------------------------------------------------------- */
.doc { display: grid; grid-template-columns: 14rem minmax(0, 46rem); gap: clamp(2rem, 5vw, 4rem); max-width: 72rem; margin: 0 auto; padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 5rem; }
.doc-sommaire { position: sticky; top: 80px; align-self: start; font-size: 0.92rem; }
.doc-sommaire ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; border-left: 1px solid var(--trait); }
.doc-sommaire a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; color: var(--doux); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.doc-sommaire a:hover { color: var(--texte); }
.doc-sommaire a.actif { color: var(--texte); border-left-color: var(--encre); font-weight: 600; }
.doc-corps h1 { font-size: 2.4rem; font-weight: 740; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.doc-corps h2 { font-size: 1.45rem; margin: 3rem 0 0.75rem; padding-top: 0.5rem; scroll-margin-top: 80px; }
.doc-corps h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.doc-corps p, .doc-corps li { max-width: 68ch; }
.doc-corps pre { background: var(--encre); color: var(--sur-encre); padding: 1rem 1.2rem; border-radius: var(--rayon); overflow-x: auto; font-size: 0.8rem; line-height: 1.65; }
.doc-corps pre .c { color: var(--sur-encre-doux); }
.doc-corps :not(pre) > code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.doc-corps table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1rem 0; }
.doc-corps th, .doc-corps td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.doc-corps th { font-weight: 650; background: var(--surface-2); }
.methode { display: inline-block; font: 700 0.72rem/1 var(--mono); background: var(--encre); color: var(--balise); padding: 0.3rem 0.45rem; border-radius: 4px; margin-right: 0.4rem; vertical-align: 0.1em; }

/* --- Formulaires de connexion -------------------------------------------- */
.page-acces { display: grid; place-items: center; padding: clamp(2rem, 8vh, 5rem) 1.25rem; }
.boite-acces { width: min(26rem, 100%); background: var(--surface); border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 2px); padding: 2rem; box-shadow: var(--ombre); display: grid; gap: 1.1rem; }
.boite-acces h1 { font-size: 1.6rem; font-weight: 720; }
.boite-acces .bascule { color: var(--doux); font-size: 0.92rem; margin: 0; }

/* --- Espace client et administration ------------------------------------- */
.console { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: calc(100vh - 56px); }
.console-nav { background: var(--surface-2); border-right: 1px solid var(--trait); padding: 1.5rem 0.75rem; display: flex; flex-direction: column; gap: 0.2rem; }
.console-nav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border-radius: var(--rayon); color: var(--texte); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.console-nav a:hover { background: color-mix(in srgb, var(--encre) 7%, transparent); }
.console-nav a[aria-current="page"] { background: var(--encre); color: var(--sur-encre); }
.console-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.console-nav .titre-groupe { font-size: 0.78rem; font-weight: 650; color: var(--doux); padding: 1rem 0.75rem 0.3rem; }
.console-corps { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 4rem; max-width: 76rem; display: grid; gap: 2rem; align-content: start; }
.console-corps > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.console-corps h1 { font-size: 1.75rem; font-weight: 720; letter-spacing: -0.02em; }
.console-corps h2 { font-size: 1.1rem; font-weight: 680; }
.sous-titre { color: var(--doux); margin: 0.3rem 0 0; }

.panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: calc(var(--rayon) + 2px); }
.panneau-entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.panneau-corps { padding: 1.25rem; }

.releve { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.releve > div { padding: 1.1rem 1.25rem; border-left: 1px solid var(--trait); display: grid; gap: 0.25rem; align-content: start; }
.releve > div:first-child { border-left: 0; }
.releve dt { font-size: 0.85rem; color: var(--doux); font-weight: 550; }
.releve dd { margin: 0; font-size: 1.45rem; font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.releve dd small { font-size: 0.85rem; font-weight: 500; color: var(--doux); letter-spacing: 0; }

.jauge { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--trait); margin-top: 0.35rem; }
.jauge span { display: block; height: 100%; background: var(--encre); border-radius: inherit; transition: width 400ms var(--sortie); }
.jauge.alerte span { background: var(--balise-fonce); }
.jauge.critique span { background: var(--danger); }

.graphique { width: 100%; height: 220px; display: block; overflow: visible; }
.graphique .barre { fill: var(--encre-3); }
.graphique .barre:hover, .graphique .barre.survol { fill: var(--encre); }
.graphique .refus { fill: var(--danger); }
.graphique .axe { stroke: var(--trait); }
.graphique text { font: 500 11px var(--police); fill: var(--doux); font-variant-numeric: tabular-nums; }
.legende { display: flex; gap: 1.25rem; font-size: 0.85rem; color: var(--doux); }
.legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.4rem; background: var(--encre-3); vertical-align: -1px; }
.legende span.refus::before { background: var(--danger); }
.infobulle { font-size: 0.85rem; color: var(--doux); min-height: 1.3em; margin: 0.5rem 0 0; font-variant-numeric: tabular-nums; }

table.donnees { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.donnees th { text-align: left; font-weight: 600; color: var(--doux); font-size: 0.82rem; padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--trait); background: #fafbf8; }
table.donnees td { padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--trait); vertical-align: middle; font-variant-numeric: tabular-nums; }
table.donnees tr:last-child td { border-bottom: 0; }
table.donnees td.actions { text-align: right; white-space: nowrap; }
table.donnees td.actions .bouton + .bouton { margin-left: 0.4rem; }
table.donnees tr.cliquable { cursor: pointer; }
table.donnees tr.cliquable:hover td { background: #fafbf8; }
.tableau-defilant { overflow-x: auto; }

.etiquette { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 650; padding: 0.15rem 0.5rem; border-radius: 99px; background: var(--surface-2); color: var(--doux); white-space: nowrap; }
.etiquette.ok { background: var(--succes-fond); color: var(--succes); }
.etiquette.alerte { background: var(--attention-fond); color: var(--attention); }
.etiquette.non { background: var(--danger-fond); color: var(--danger); }
.domaines { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.domaines code { background: var(--surface-2); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.8rem; }

#cle-neuve:empty, #cle-neuve-admin:empty { display: none; }
.cle-neuve { border: 1px solid var(--balise-fonce); background: color-mix(in srgb, var(--balise) 14%, var(--surface)); border-radius: calc(var(--rayon) + 2px); padding: 1.1rem 1.25rem; display: grid; gap: 0.75rem; }
.cle-neuve p { margin: 0; }
.cle-valeur { display: flex; gap: 0.5rem; align-items: stretch; }
.cle-valeur code { flex: 1; background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--rayon); padding: 0.6rem 0.75rem; font-size: 0.88rem; overflow-x: auto; white-space: nowrap; }

.formulaire-ligne { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 1rem; align-items: end; }
.vide { padding: 2.5rem 1.25rem; text-align: center; color: var(--doux); }
.vide p { margin: 0 auto 1rem; max-width: 42ch; }

.squelette { background: linear-gradient(90deg, var(--surface-2) 0%, #f6f8f4 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: luire 1.2s linear infinite; border-radius: var(--rayon); min-height: 1.2em; }
@keyframes luire { to { background-position: -200% 0; } }

.edition-cle { display: grid; gap: 0.75rem; padding: 1rem 1.25rem; background: #fafbf8; border-bottom: 1px solid var(--trait); }

.annonce { position: fixed; bottom: 1.25rem; left: 50%; transform: translate(-50%, 1rem); background: var(--encre); color: var(--sur-encre); padding: 0.7rem 1.1rem; border-radius: var(--rayon); box-shadow: var(--ombre); opacity: 0; pointer-events: none; transition: opacity 200ms var(--sortie), transform 200ms var(--sortie); z-index: 50; font-size: 0.92rem; }
.annonce.visible { opacity: 1; transform: translate(-50%, 0); }

.pied { background: var(--encre); color: var(--sur-encre-doux); padding: 1.75rem clamp(1.25rem, 4vw, 3rem); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.pied p { margin: 0; max-width: 70ch; }
.pied a { color: var(--sur-encre); }
.console ~ .pied, body.mode-console .pied { display: none; }

@media (max-width: 900px) {
  .scene { grid-template-columns: minmax(0, 1fr); max-height: none; }
  .scene-carte { min-height: 56vh; order: -1; }
  .ticket { display: none; }
  .formats, .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-corps table { display: block; overflow-x: auto; }
  .doc-sommaire { position: static; }
  .engagements { grid-template-columns: 1fr; }
  .engagements div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--trait); padding-top: 1.2rem; }
  .console { grid-template-columns: minmax(0, 1fr); }
  .console-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--trait); padding: 0.5rem; }
  .console-nav .titre-groupe { display: none; }
  .console-nav a { white-space: nowrap; }
  .releve { grid-template-columns: 1fr 1fr; }
  .releve > div:nth-child(3) { border-left: 0; }
  .releve > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .formulaire-ligne { grid-template-columns: 1fr; }
  .nav { gap: 1rem; font-size: 0.9rem; }
  .nav > a:first-child { display: none; }
  .styles-choix { position: static; max-width: none; margin: 0; border-radius: 0; border-width: 1px 0; background: var(--encre-2); overflow-x: auto; flex-wrap: nowrap; }
  .scene-carte { display: flex; flex-direction: column; }
  .scene-carte .carte { position: relative; inset: auto; flex: 1; min-height: 50vh; }
  .scene-carte canvas.grille { bottom: auto; height: calc(100% - 50px); }
}
@media (max-width: 560px) {
  .nav > a[href="#/documentation"] { display: none; }
  .bandeau { gap: 1rem; }
  .nav-compte a[href="#/connexion"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
