/* mval.fr : feuille de style commune à tous les outils.
   Direction « objets du voyage » : voir _shared/DA.md avant de modifier.
   Chargée par URL (/_shared/css/mval.css) : une modification ici s'applique à tous les outils.

   Chaque outil peut changer l'encre de son pays :
     <html data-country="japan">  et, en CSS, :root { --accent: var(--indigo); --accent-dark: #233d65; } */


@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/overpass-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "B612";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/b612-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "B612";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/b612-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "B612 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/b612-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "B612 Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/b612-mono-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Jetons : couleurs, polices, rayons ---------- */
:root {
  --ground: #f7f7f4;
  --paper: #ffffff;
  --ink: #1f2226;
  --soft: #5f6368;
  --rule: #1f222633;
  /* Survol des boutons, fonds discrets */
  --hover: #f1f1ec;
  --error-ink: #8e2a1d;
  /* Faces des dessins isométriques (plateau, feuilles) : intérieur, côté gauche, côté droit */
  --iso-inner: #f4f4f0;
  --iso-left: #e9e9e4;
  --iso-right: #dcdcd6;
  --cinabre: #c23b2a;
  --curcuma: #d99a1e;
  --soga: #8b5a33;
  --indigo: #2d4e80;
  --jade: #3e7b67;
  /* Encre principale de l'outil (boutons principaux) : celle de son pays */
  --accent: var(--cinabre);
  --accent-dark: #a93224;
  --title: "Overpass", system-ui, sans-serif;
  --text: "B612", system-ui, sans-serif;
  --data: "B612 Mono", ui-monospace, monospace;
  --dots: radial-gradient(circle, #1f222629 1px, transparent 1.4px);
  --radius: 10px;
  /* Une seule ombre, dure et décalée en diagonale (bas, droite), pour tout ce qui se soulève :
     box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink). Petits boutons : 2px ; panneaux : 4px. */
  --shadow-offset: 3px;
}

/* Thème sombre, pour les outils qu'on utilise longtemps devant un écran (vidéo) :
   <html data-theme="dark">. Mêmes composants, jetons de nuit ; le timbre reste un vrai timbre, sur papier blanc.
   Les dessins de voyage.js suivent ces jetons (fonction themed). */
[data-theme="dark"] {
  color-scheme: dark;
  --ground: #16181b;
  --paper: #24272b;
  --ink: #e9e8e3;
  --soft: #a4a8ad;
  --rule: #e9e8e333;
  --hover: #2e3237;
  --error-ink: #f29a8f;
  --dots: radial-gradient(circle, #e9e8e31c 1px, transparent 1.4px);
  --iso-inner: #1d2023;
  --iso-left: #1a1c1f;
  --iso-right: #121416;
}
[data-theme="dark"] .stamp {
  --paper: #ffffff;
  --ink: #1f2226;
  --dots: radial-gradient(circle, #1f222629 1px, transparent 1.4px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: var(--dots);
  background-size: 22px 22px;
  color: var(--ink);
  font: 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--title); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* ---------- Frise : ourlet imprimé entre deux filets ---------- */
.frise {
  height: 26px;
  border-block: 1.5px solid var(--ink);
  box-shadow: inset 0 4px 0 var(--paper), inset 0 5.5px 0 var(--ink), inset 0 -4px 0 var(--paper), inset 0 -5.5px 0 var(--ink);
}

/* ---------- En-tête : le timbre de l'outil ---------- */
.masthead { display: flex; align-items: center; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.masthead h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; margin: 0.1rem 0 0.5rem; }
.tagline { margin: 0; max-width: 36rem; }

.stamp {
  flex: none;
  width: 6.5rem;
  padding: 6px;
  transform: rotate(-3deg);
  background: radial-gradient(circle, var(--ground) 3px, transparent 3.5px) -4px -4px / 8px 8px, var(--paper);
  filter: drop-shadow(0 1px 1px #0002);
}
.stamp-face { display: block; border: 1.5px solid var(--ink); background: var(--paper); }
.stamp-band { display: block; height: 0.9rem; border-bottom: 1.5px solid var(--ink); }
.stamp-art { display: block; padding: 0.4rem; background-image: var(--dots); background-size: 9px 9px; }
.stamp-art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Onglets : ruban à motif sous l'onglet actif ---------- */
.main { padding-top: 2rem; padding-bottom: 4rem; }
.tabs { display: flex; gap: 2rem; border-bottom: 1.5px solid var(--rule); margin-bottom: 2rem; }
.tab { position: relative; background: none; border: 0; padding: 0.4rem 0 0.9rem; font-family: var(--title); font-weight: 600; font-size: 1.1rem; color: var(--soft); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 800; }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 3px 3px 0 0;
  background: var(--motif) 0 0 / 12px 12px, var(--paper);
}

.error {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--cinabre);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--error-ink);
  font-weight: 700;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  background: var(--paper);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
}
/* Un lien peut prendre l'allure d'un bouton (:where garde la spécificité de .btn, pour que .btn-ink l'emporte) */
.btn:where(a) { color: var(--ink); text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--hover); }
.btn:active:not(:disabled) { transform: translate(var(--shadow-offset), var(--shadow-offset)); box-shadow: none; }
.btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
/* Bouton principal : cinabre, bordure et ombre à l'encre, pour que l'ombre se voie */
.btn-ink { background: var(--accent); color: #ffffff; border-color: var(--ink); }
.btn-ink:hover:not(:disabled) { background: var(--accent-dark); }
.btn-light { background: #f2efe6; color: #1c1e22; border-color: #f2efe6; box-shadow: var(--shadow-offset) var(--shadow-offset) 0 #000; }
.btn-sm { --shadow-offset: 2px; padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.btn-quiet { font-weight: 400; }
/* Retour à la liste des outils : <a class="btn btn-sm btn-back" href="/tools/">Tous les outils</a> */
.btn-back::before { content: "←"; content: "←" / ""; margin-right: 0.4em; }
.back-bar { padding-top: 1.25rem; }
.back-bar + .masthead { padding-top: 1.25rem; }
.btn-text { background: none; border: 0; padding: 0.3rem 0; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Plateau : on y pose le fichier, ou on clique sur le bouton ---------- */
.plateau {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0.5rem 1rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.plateau-art { width: min(100%, 26rem); }
.plateau-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.plateau-text { display: grid; justify-items: center; gap: 0.35rem; margin-top: -0.5rem; }
.plateau .tray-motif { opacity: 0; transition: opacity 0.3s; }
.plateau:hover .tray-motif, .plateau.is-dragover .tray-motif { opacity: 0.5; }
.plateau.is-dragover .tray-top { stroke-width: 3; }
.plateau.has-file .tray-dash, .plateau.has-file .tray-motif { opacity: 0; }
.plateau.has-file .plateau-text { display: none; }
.plateau.is-wide { background-color: var(--paper); border: 1.5px solid var(--rule); }
.drop-title { margin: 0; font-family: var(--title); font-weight: 800; font-size: 1.15rem; }
.drop-hint { margin: 0 0 0.3rem; color: var(--soft); font-size: 0.92rem; }
.sheet > g { animation: land 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes land { from { transform: translateY(-60px); opacity: 0; } 60% { opacity: 1; } }

/* Sous le plateau : le fichier posé, puis « Prêt pour l'envoi » */
.received { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.25rem 1rem; text-align: center; font-size: 0.95rem; }
.received p { margin: 0; overflow-wrap: anywhere; }
.received strong { font-family: var(--title); font-weight: 800; }
.received span { color: var(--soft); }

/* ---------- Panneau de réglages et champs ---------- */
.panel { display: grid; gap: 1rem; justify-items: start; padding: 1.4rem 1.5rem 1.5rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink); --shadow-offset: 4px; }
.panel h2 { font-size: 1.15rem; }
.panel-hint { margin: -0.4rem 0 0; font-size: 0.85rem; color: var(--soft); }
.field { display: grid; gap: 0.15rem; width: 100%; }
.field label { font-size: 0.8rem; color: var(--soft); }
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  padding: 0.3rem 0;
  font-family: var(--data);
  font-weight: 700;
}
.field input[type="range"] { width: 100%; accent-color: var(--ink); }
.field output { font-family: var(--data); font-weight: 700; color: var(--ink); }

/* ---------- Progression : le motif se déroule ---------- */
.progress { width: 100%; }
.progress-track { height: 18px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background-color: var(--paper); background-image: var(--dots); background-size: 8px 8px; }
.progress-bar { height: 100%; width: var(--pct, 0%); border-right: 1.5px solid var(--ink); background: var(--motif) 0 0 / 12px 12px, var(--paper); transition: width 0.25s ease; }
.progress-label { margin: 0.35rem 0 0; font-size: 0.85rem; }
.progress.is-dark .progress-track { border-color: #f2efe6; background-color: #2b2e33; background-image: none; }
.progress.is-dark .progress-bar { border-color: #f2efe6; }
.progress.is-dark .progress-label { margin: 0 0 0.35rem; color: #f2efe6; }

/* ---------- Résultats : titres, grille de vignettes ---------- */
.results { margin-top: 2.5rem; }
.results-title { font-size: 1.35rem; margin: 0 0 1rem; }
.results-title span { font-family: var(--data); font-weight: 400; font-size: 1rem; color: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.card-meta span { white-space: nowrap; }
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--hover); border-bottom: 1.5px solid var(--ink); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; font-family: var(--data); font-size: 0.82rem; }
.card-actions, .edit-actions { display: flex; gap: 0.4rem; padding: 0 0.6rem 0.6rem; }

/* ---------- Étiquettes de bagage, suspendues à une corde (listes ordonnées de fichiers) ---------- */
.rail { position: relative; padding-top: 2.4rem; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 0.8rem; border-top: 2px solid var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 1.75rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.tag { position: relative; width: 11rem; transform-origin: 50% -1.6rem; }
.tag::before { content: ""; position: absolute; left: 50%; top: -1.65rem; height: 1.9rem; border-left: 2px solid var(--ink); }
.tag.tilt-a { transform: rotate(-2.5deg); }
.tag.tilt-b { transform: rotate(1.5deg); }
.tag.tilt-c { transform: rotate(-1deg); }
.tag.tilt-d { transform: rotate(2deg); }
.tag.ink-cinabre { --c: var(--cinabre); --fg: #ffffff; }
.tag.ink-curcuma { --c: var(--curcuma); --fg: var(--ink); }
.tag.ink-indigo { --c: var(--indigo); --fg: #ffffff; }
.tag.ink-soga { --c: var(--soga); --fg: #ffffff; }
.tag-body { overflow: hidden; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px 14px 8px 8px; }
.tag-top { position: relative; padding: 1.6rem 0.9rem 0.7rem; background: var(--c); color: var(--fg); }
.tag-top::before { content: ""; position: absolute; left: 50%; top: 0.45rem; width: 0.8rem; height: 0.8rem; margin-left: -0.4rem; border-radius: 50%; background: var(--ground); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--ink); }
.tag-top b { display: block; font-family: var(--title); font-weight: 800; font-size: 2.3rem; line-height: 0.95; }
.tag-top span { font-family: var(--data); font-size: 0.78rem; }
.tag-mid { padding: 0.7rem 0.9rem 0.8rem; }
.tag-mid strong { display: block; font-size: 0.9rem; line-height: 1.3; overflow-wrap: anywhere; }
.tag-mid p { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--soft); }
.tag-actions { display: flex; border-top: 1.5px solid var(--ink); }
.tag-actions button { flex: 1; padding: 0.45rem 0; border: 0; background: var(--paper); font-size: 0.8rem; font-weight: 700; }
.tag-actions button + button { border-left: 1.5px solid var(--ink); }
.tag-actions button:hover:not(:disabled) { background: var(--hover); }
.tag-actions button:disabled { color: #1f222655; cursor: default; }
/* Glisser-déposer (makeSortable) : on attrape l'étiquette, elle suit le pointeur ; un trait marque l'insertion */
.tag-top, .tag-mid { cursor: grab; touch-action: none; user-select: none; }
.tag.is-dragging { z-index: 10; transition: none; }
.tag.is-dragging .tag-body { box-shadow: 6px 6px 0 var(--ink); }
.tag.is-dragging .tag-top, .tag.is-dragging .tag-mid { cursor: grabbing; }
.tag.is-drop-before::after, .tag.is-drop-after::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--ink); }
.tag.is-drop-before::after { left: -0.95rem; }
.tag.is-drop-after::after { right: -0.95rem; }

/* ---------- Tableau des départs ---------- */
.board { margin-top: 2.5rem; padding: 1.1rem 1.25rem 1.25rem; border-radius: var(--radius); background: #1c1e22; color: #f2efe6; }
.board-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.board-title h2 { font-size: 1.1rem; }
.board-title span { font-family: var(--data); font-size: 0.8rem; opacity: 0.7; }
.board-head, .board-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 10rem; gap: 1rem; align-items: center; }
.board-head { padding-bottom: 0.3rem; font-size: 0.75rem; opacity: 0.65; }
.board-row { padding: 0.45rem 0; border-top: 1px solid #f2efe61f; }
.board-row > span:first-child { font-family: var(--data); opacity: 0.7; }
.board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flaps { display: flex; gap: 2px; }
.flaps i { position: relative; width: 1.15em; border-radius: 2px; background: #2b2e33; font-family: var(--data); font-style: normal; font-weight: 700; line-height: 1.6; text-align: center; }
.flaps i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #1c1e22; }
.flaps.is-busy i { color: #f2c35b; }
.flaps.is-done i { color: #9fd6b4; }
.flaps.is-error i { color: #f29a8f; }
.board-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1rem; }
.board-actions .progress { flex: 1; min-width: 14rem; }


/* ---------- Pied de page ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.25rem; padding-bottom: 2.5rem; font-size: 0.85rem; color: var(--soft); }
.footer p { margin: 0; }


/* ---------- Prêt : la feuille se range dans une boîte (voir packPlateau) ---------- */
.box-body { transform-box: fill-box; transform-origin: 50% 100%; animation: box-walls 0.45s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
.box-paper { animation: box-sink 0.4s ease-in 0.35s both; }
.box-inside { animation: box-fade 0.3s ease-out 0.2s both; }
.box-photo { animation: box-photo 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.box-photo:nth-child(1) { animation-delay: 0.65s; }
.box-photo:nth-child(2) { animation-delay: 0.8s; }
.box-photo:nth-child(3) { animation-delay: 0.95s; }
@keyframes box-walls { from { transform: scaleY(0); } }
@keyframes box-sink { to { transform: translateY(26px); opacity: 0; } }
@keyframes box-fade { from { opacity: 0; } }
@keyframes box-photo { from { transform: translateY(34px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .box-paper { display: none; } }

.ready { display: grid; justify-items: center; gap: 0.6rem; margin-top: 0.9rem; text-align: center; }
.ready p { margin: 0; }
.ready strong { font-family: var(--title); font-weight: 800; }

/* ---------- Planche de timbres : accueils /tools/ et /games/ ---------- */
/* Chaque entrée (.sheet-slot) prend l’encre de son pays */
.is-china { --accent: var(--cinabre); }
.is-india { --accent: var(--curcuma); }
.is-indonesia { --accent: var(--jade); }
.is-japan { --accent: var(--indigo); }

/* Frise partagée entre les pays des outils, un segment chacun */
.frise-pays { display: flex; }
.frise-pays .frise { flex: 1; }
.frise-pays .frise + .frise { border-left: 1.5px solid var(--ink); }

/* ---------- La planche ---------- */
.planche {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 3rem 2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sheet-link {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  height: 100%;
  padding: 2rem 1rem 1.6rem;
  border: 1.5px dashed var(--rule);
  border-radius: var(--radius);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.sheet-link:hover { border-color: var(--ink); background-color: #ffffff99; }

/* Grand timbre : celui de l'en-tête des outils, agrandi, avec sa légende (le nom court de l'outil).
   Les pays ne donnent que le motif et l'encre : ils ne sont jamais écrits. */
.stamp.stamp-lg {
  width: 12rem;
  padding: 8px;
  background-size: 10px 10px, auto;
  background-position: -5px -5px, 0 0;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.sheet-slot:nth-child(even) .stamp-lg { transform: rotate(2.5deg); }
.sheet-link:hover .stamp-lg,
.sheet-link:focus-visible .stamp-lg { transform: rotate(0deg) translateY(-4px); }
.stamp-lg .stamp-band { height: 1.2rem; }
.stamp-lg .stamp-art { padding: 0.9rem 1rem 0.7rem; }
/* Même hauteur pour toutes les illustrations, quelles que soient leurs proportions */
.stamp-lg .stamp-art svg { aspect-ratio: 8 / 7; }
.stamp-legend {
  display: block;
  padding: 0.3rem 0.55rem 0.35rem;
  color: var(--accent);
  text-align: center;
  border-top: 1.5px solid var(--ink);
  font-family: var(--data);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-text { display: grid; justify-items: center; gap: 0.35rem; }
.sheet-title { font-size: 1.4rem; line-height: 1.15; }
.sheet-desc { max-width: 20rem; color: var(--soft); }
.sheet-go {
  margin-top: 0.4rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.sheet-go::after { content: " →"; }

@media (max-width: 760px) {
  .stamp.stamp-lg { width: 10rem; }
}
@media (max-width: 760px) {
  .stamp.stamp-lg { width: 10rem; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 760px) {
  .masthead { gap: 1rem; }
  .stamp { width: 5rem; }
  .tabs { gap: 1.25rem; }
  .tags { justify-content: center; }
  .board-head, .board-row { grid-template-columns: 1.5rem minmax(0, 1fr) auto; }
}
