/* =========================================================================
   LE TRESOR (vidal-stphalle.com) — Marais gallery daylight.
   Plaster white walls, ink black type, oxblood red accent, brushed brass filets.
   Prefixe trs- partout. Piles systeme, zero requete externe.
   Derive du squelette galerie du socle, rhabille 1:1 (prefixe unique).
   ========================================================================= */

:root {
  --fond:            #f7f2e9;
  --fond-creux:      #ece3d3;
  --fond-clair:      #fffdf8;
  --encre:           #17140f;
  --encre-douce:     #57503f;
  --accent:          #7c1d1d;
  --accent-appuye:   #571010;
  --laiton:          #93742a;
  --laiton-clair:    #e8cf8e;
  --trait:           #d3c6ab;
  --vide:            #fbf8f1;
  --titre-police: Didot, "Bodoni 72", "Big Caslon", "Hoefler Text", Georgia, "Times New Roman", serif;
  --texte-police: Optima, Candara, "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", sans-serif;
  --titre-graisse: 400;
  --titre-interlettre: 0.005em;
  --cote-interlettre: 0.22em;
  --corps-taille: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --corps-interligne: 1.62;
  --mesure: 66ch;
  --mesure-large: 1440px;
  --marge-page: clamp(1.1rem, 4.2vw, 4.5rem);
  --gouttiere: clamp(0.9rem, 2.4vw, 2.4rem);
  --souffle: clamp(3.5rem, 8vw, 7.5rem);
  --decalage: clamp(1.5rem, 4vw, 4.5rem);
  --rayon: 0;
  --filet: 1px solid var(--trait);
  --filet-laiton: 3px solid var(--laiton);
  --transition: 180ms ease;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte-police);
  font-size: var(--corps-taille);
  line-height: var(--corps-interligne);
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--titre-police);
  font-weight: var(--titre-graisse);
  letter-spacing: var(--titre-interlettre);
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.6vw, 1.45rem); }
h4 { font-size: 1.02rem; }
p, ul, ol { margin: 0 0 1.15em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-appuye); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
hr { border: 0; border-top: var(--filet); margin: var(--souffle) 0; }

/* OSSATURE */
.trs-evite {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--fond-clair);
  padding: 0.7rem 1.1rem; z-index: 50;
}
.trs-evite:focus { left: 0.6rem; top: 0.6rem; }
.trs-passe {
  width: 100%; max-width: var(--mesure-large);
  margin-inline: auto; padding-inline: var(--marge-page);
}
.trs-scene { display: block; }

/* Fronton */
.trs-corniche {
  border-bottom: var(--filet-laiton);
  padding-block: clamp(1rem, 2.4vw, 1.9rem);
  background: var(--fond-clair);
}
.trs-corniche__rang {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between;
  gap: 0.8rem 1.6rem;
}
.trs-enseigne {
  font-family: var(--titre-police);
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem);
  color: var(--encre); text-decoration: none; line-height: 1.05;
}
.trs-enseigne span {
  display: block; font-family: var(--texte-police);
  font-size: 0.66rem; letter-spacing: var(--cote-interlettre);
  text-transform: uppercase; color: var(--encre-douce); margin-top: 0.35rem;
}
.trs-enseigne em {
  font-style: normal; color: var(--accent);
}

/* Navigation : case a cocher, jamais de details. */
.trs-nav { position: relative; }
.trs-nav__toggle { position: absolute; opacity: 0; pointer-events: none; }
.trs-nav__handle {
  display: none;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fond-clair); background: var(--encre);
  padding: 0.55rem 1rem; cursor: pointer;
}
.trs-nav ul {
  display: flex; flex-wrap: wrap;
  gap: 0.55rem 1.5rem; list-style: none;
  margin: 0; padding: 0;
}
.trs-nav a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--encre); text-decoration: none;
  padding-bottom: 0.2rem; border-bottom: 1px solid transparent;
  white-space: normal;
}
.trs-nav a:hover, .trs-nav [aria-current="page"] {
  border-bottom-color: var(--accent); color: var(--accent);
}

/* Fil d Ariane */
.trs-fil { font-size: 0.8rem; color: var(--encre-douce); padding-block: 1.2rem; }
.trs-fil ol {
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.55rem;
  list-style: none; margin: 0; padding: 0;
}
.trs-fil li + li::before { content: "/"; margin-right: 0.55rem; color: var(--laiton); }
.trs-fil a { color: var(--encre-douce); }
.trs-fil a:hover { color: var(--accent); }

/* ACCROCHE : figure puis cartel en flux, le heros grandit avec son contenu */
.trs-accroche { margin-top: clamp(1.2rem, 3vw, 2.6rem); }
.trs-accroche__cadrage { margin: 0; }
.trs-accroche__vue {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--fond-creux);
}
.trs-cartel-flottant {
  background: var(--fond-clair); color: var(--encre);
  border-top: var(--filet-laiton);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  max-width: 48rem; margin-top: 0;
}
.trs-cartel-flottant h1 { margin: 0.55rem 0 0; }
.trs-cartel-flottant p { margin: 0.9rem 0 0; color: var(--encre-douce); max-width: 54ch; }
.trs-cartel-flottant p:last-child { margin-bottom: 0; }
.trs-bouton {
  display: inline-block; margin-top: 1.2rem;
  background: var(--accent); color: var(--fond-clair);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding: 0.8rem 1.5rem;
}
.trs-bouton:hover { background: var(--accent-appuye); color: var(--fond-clair); }
@media (min-width: 900px) {
  .trs-accroche__vue { aspect-ratio: 21 / 9; }
  .trs-cartel-flottant { margin-top: -5rem; position: relative; max-width: 46rem; }
}

/* SALLE */
.trs-salle { margin-top: var(--souffle); }
.trs-salle__bandeau {
  display: flex; flex-wrap: wrap; align-items: end;
  justify-content: space-between; gap: 0.7rem 2rem;
  border-top: var(--filet); padding-top: 0.9rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 3rem);
}
.trs-salle__titre { max-width: 34ch; }
.trs-salle__titre h2 { margin-top: 0.55rem; }
.trs-salle__note { font-size: 0.85rem; color: var(--encre-douce); max-width: 44ch; margin: 0; }
.trs-inventaire {
  display: block; font-size: 0.68rem; letter-spacing: var(--cote-interlettre);
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem;
}

/* CIMAISE : mosaique 6 colonnes */
.trs-cimaise {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gouttiere); align-items: start;
  list-style: none; margin: 0; padding: 0;
}
.trs-tirage { grid-column: span 3; margin: 0; position: relative; }
.trs-tirage--plein { grid-column: span 6; }
.trs-tirage--large { grid-column: span 4; }
.trs-tirage--moyen { grid-column: span 3; }
.trs-tirage--petit { grid-column: span 2; }
.trs-tirage--decale { margin-top: var(--decalage); }
.trs-tirage--decale2 { margin-top: calc(var(--decalage) * 2); }
.trs-tirage__cadrage {
  margin: 0; overflow: hidden; background: var(--fond-creux); border-radius: var(--rayon);
}
.trs-tirage__vue { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.trs-tirage__cadrage--portrait { aspect-ratio: 3 / 4; }
.trs-tirage__cadrage--paysage { aspect-ratio: 4 / 3; }
.trs-tirage__cadrage--carre { aspect-ratio: 1 / 1; }
.trs-tirage__cadrage--pano { aspect-ratio: 21 / 9; }
.trs-tirage__cadrage--haut { aspect-ratio: 2 / 3; }
.trs-tirage__cadrage--classique { aspect-ratio: 3 / 2; }
.trs-tirage__cadrage--large { aspect-ratio: 16 / 9; }
figure.trs-tirage__cadrage { margin: 0; }
.trs-tirage__cartel { padding-top: 0.8rem; margin-top: 0.8rem; border-top: var(--filet); }
.trs-tirage__cartel--nu { border-top: 0; padding-top: 0.4rem; margin-top: 0.4rem; }
.trs-tirage__titre {
  font-family: var(--titre-police);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.15; margin: 0;
}
.trs-tirage--plein .trs-tirage__titre,
.trs-tirage--large .trs-tirage__titre { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.95rem); }
.trs-tirage__lien { color: var(--encre); text-decoration: none; }
.trs-tirage__lien:hover { color: var(--accent); }
.trs-tirage__lien::after { content: ""; position: absolute; inset: 0; }
.trs-tirage:hover .trs-tirage__vue { transform: scale(1.02); }
.trs-tirage__mot { margin: 0.5rem 0 0; color: var(--encre-douce); font-size: 0.88rem; max-width: 46ch; }
.trs-tirage__indication {
  margin: 0.55rem 0 0; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--encre-douce);
}
.trs-tirage--encadre { background: var(--fond-clair); }
.trs-tirage--encadre .trs-tirage__cartel { padding: 1rem 1.1rem 1.2rem; border-top: 0; margin-top: 0; }
.trs-tirage--actif .trs-tirage__titre { color: var(--accent); }
.trs-tirage__pastille {
  display: inline-block; font-size: 0.68rem; letter-spacing: var(--cote-interlettre);
  text-transform: uppercase; color: var(--fond-clair); background: var(--accent);
  padding: 0.3rem 0.7rem; margin-bottom: 0.6rem;
}
.trs-tirage__vue--nb { filter: grayscale(1); }
.trs-tirage:hover .trs-tirage__vue--nb { filter: grayscale(0); }
.trs-tirage__compte {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--encre-douce);
}
.trs-cimaise--dense { --gouttiere: clamp(0.7rem, 1.6vw, 1.4rem); }
.trs-cimaise--serree { row-gap: calc(var(--gouttiere) / 2); }

/* REPERTOIRE : tuiles rubriques */
.trs-repertoire {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: var(--gouttiere); list-style: none; margin: 0; padding: 0;
}
.trs-repertoire__entree { position: relative; }
.trs-repertoire__cadrage { margin: 0; }
.trs-repertoire__vue {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--fond-creux);
}
.trs-repertoire__nom {
  display: block; margin-top: 0.7rem; font-family: var(--titre-police);
  font-size: 1.15rem; color: var(--encre); text-decoration: none;
}
.trs-repertoire__nom::after { content: ""; position: absolute; inset: 0; }
.trs-repertoire__entree:hover .trs-repertoire__nom { color: var(--accent); }
.trs-repertoire__compte {
  display: block; margin-top: 0.2rem; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-douce);
}
.trs-repertoire__extrait { font-size: 0.85rem; color: var(--encre-douce); margin: 0.3rem 0 0; }
.trs-repertoire--ligne { grid-template-columns: minmax(0, 1fr); }
.trs-repertoire__entree--horizontale { display: flex; gap: 1rem; align-items: center; }
.trs-repertoire__entree--horizontale .trs-repertoire__vue { width: 5.5rem; flex: none; }

/* PAGE DE FOND */
.trs-ouverture { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.6rem); max-width: 52rem; }
.trs-ouverture__chapo {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--encre-douce); margin-top: 1.1rem; max-width: 54ch;
}
.trs-indications {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--encre-douce);
}
.trs-planche { margin: 0; }
.trs-planche__vue {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fond-creux);
}
.trs-planche__vue--haute { aspect-ratio: 4 / 3; }
.trs-planche__vue--carree { aspect-ratio: 1 / 1; }
.trs-planche__vue--pano { aspect-ratio: 21 / 9; }
.trs-planche--etroite .trs-planche__vue { max-height: 72vh; }
.trs-planche__cartel {
  max-width: var(--mesure-large); margin-inline: auto;
  padding: 0.8rem var(--marge-page) 0;
  font-size: 0.78rem; color: var(--encre-douce);
}
.trs-diptyque {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gouttiere); margin: var(--souffle) 0 0;
}
.trs-diptyque figure { margin: 0; }
.trs-diptyque img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--fond-creux);
}
.trs-diptyque figcaption { margin-top: 0.7rem; font-size: 0.78rem; color: var(--encre-douce); }
.trs-diptyque--tiers { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.trs-diptyque--inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.trs-colonne { max-width: var(--mesure); margin-top: var(--souffle); }
.trs-colonne--centree { margin-inline: auto; }
.trs-colonne--etroite { max-width: 52ch; }
.trs-colonne h2 { margin-top: 2.4rem; }
.trs-colonne h3 { margin-top: 1.9rem; }
.trs-colonne h2:first-child, .trs-colonne h3:first-child { margin-top: 0; }
.trs-colonne ul, .trs-colonne ol { padding-left: 1.15rem; }
.trs-colonne li { margin-bottom: 0.45em; }
.trs-colonne > :last-child { margin-bottom: 0; }
.trs-exergue {
  margin: 2.2rem 0; padding-left: 1.3rem;
  border-left: 3px solid var(--accent);
  font-family: var(--titre-police);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem); line-height: 1.3;
}
.trs-exergue cite {
  display: block; margin-top: 0.8rem; font-family: var(--texte-police);
  font-size: 0.78rem; font-style: normal; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--encre-douce);
}
.trs-reserve { background: var(--vide); padding: clamp(1.2rem, 3vw, 2rem); margin: 2.4rem 0; }
.trs-reserve > :last-child { margin-bottom: 0; }
.trs-defile {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 2.2rem 0; border-top: var(--filet); border-bottom: var(--filet);
}
.trs-defile table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.92rem; }
.trs-defile th, .trs-defile td {
  text-align: left; padding: 0.65rem 1rem 0.65rem 0;
  border-bottom: 1px solid var(--trait); vertical-align: top;
}
.trs-defile th {
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--encre-douce);
}
.trs-defile tr:last-child td { border-bottom: 0; }

/* Bandeaux : duo (deux colonnes explicites) et sombre */
.trs-duo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gouttiere);
}
.trs-duo__col { min-width: 0; }
.trs-duo__col h2 { margin-bottom: 0.8rem; }
.trs-duo__col p { color: var(--encre-douce); }
.trs-duo__col p:last-child { margin-bottom: 0; }
.trs-trio {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gouttiere);
}
.trs-rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 18rem);
  gap: var(--gouttiere); overflow-x: auto;
  padding-bottom: 0.6rem; scroll-snap-type: x proximity;
}
.trs-rail > * { scroll-snap-align: start; }
.trs-encadres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--gouttiere);
}
.trs-sommaire {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1.5rem; align-items: baseline;
}
.trs-sommaire__lien { color: var(--encre); text-decoration: none; }
.trs-sommaire__lien:hover { color: var(--accent); }
.trs-sommaire__page { font-size: 0.78rem; color: var(--encre-douce); }
.trs-encadre {
  background: var(--fond-clair); border-top: var(--filet-laiton);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.trs-encadre > :last-child { margin-bottom: 0; }
.trs-encadre h3 { margin-bottom: 0.6rem; }
.trs-encadre p { color: var(--encre-douce); }
.trs-encadre--filet { background: transparent; border: var(--filet); border-top: var(--filet-laiton); }
.trs-encadre--sombre { background: var(--encre); color: var(--fond); border-top: 3px solid var(--laiton-clair); }
.trs-encadre--sombre h2, .trs-encadre--sombre h3 { color: var(--fond-clair); }
.trs-encadre--sombre p { color: var(--fond-creux); }
.trs-encadre--sombre a { color: var(--laiton-clair); }
.trs-encadre--sombre a:hover { color: var(--fond-clair); }
.trs-alerte {
  border-left: 3px solid var(--accent); padding: 0.8rem 1.1rem;
  background: var(--vide); font-size: 0.9rem;
}
.trs-note {
  font-size: 0.82rem; color: var(--encre-douce);
  border-top: var(--filet); padding-top: 0.8rem;
}

/* APPUIS */
.trs-poursuivre {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 0.25rem;
}
.trs-poursuivre::after { content: "\203A"; font-size: 1.1em; line-height: 1; }
.trs-poursuivre:hover { color: var(--encre); border-bottom-color: var(--encre); }
.trs-tourne {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  list-style: none; margin: var(--souffle) 0 0; padding: 0; align-items: center;
}
.trs-tourne a, .trs-tourne span {
  display: inline-block; min-width: 2.6rem; text-align: center;
  padding: 0.55rem 0.8rem; border: var(--filet);
  text-decoration: none; color: var(--encre); font-size: 0.85rem;
}
.trs-tourne a:hover { border-color: var(--accent); color: var(--accent); }
.trs-tourne [aria-current="page"] {
  background: var(--encre); color: var(--fond-clair); border-color: var(--encre);
}
.trs-tourne--compact a, .trs-tourne--compact span { min-width: 2rem; padding: 0.35rem 0.55rem; }
.trs-tourne__total { font-size: 0.78rem; color: var(--encre-douce); }

/* SOCLE */
.trs-socle {
  margin-top: var(--souffle); background: var(--encre); color: var(--fond);
  border-top: 3px solid var(--laiton-clair);
  padding-block: clamp(2.4rem, 6vw, 4.5rem);
}
.trs-socle__rang {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
}
.trs-socle h2 { font-size: 1.2rem; margin-bottom: 0.9rem; color: var(--fond-clair); }
.trs-socle ul { list-style: none; margin: 0; padding: 0; }
.trs-socle li { margin-bottom: 0.5rem; }
.trs-socle a { color: var(--fond); text-decoration: none; border-bottom: 1px solid transparent; }
.trs-socle a:hover { border-bottom-color: var(--laiton-clair); color: var(--laiton-clair); }
.trs-socle p { color: var(--fond-creux); font-size: 0.9rem; }
.trs-socle__bas {
  margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.2rem;
  border-top: 1px solid #4a4436;
  font-size: 0.75rem; color: var(--fond-creux);
}
.trs-socle__bas a { color: var(--laiton-clair); }

/* ETATS */
.trs-est-actif { color: var(--accent); }
.trs-est-inactif { opacity: 0.45; pointer-events: none; }
.trs-centre { text-align: center; }
.trs-muet { color: var(--encre-douce); font-size: 0.85rem; }
.trs-filet-haut { border-top: var(--filet); padding-top: 1rem; }
.trs-filet-bas { border-bottom: var(--filet); padding-bottom: 1rem; }
.trs-salle--serree { margin-top: calc(var(--souffle) / 2); }
.trs-salle--creuse { margin-top: calc(var(--souffle) * 1.25); }
.trs-puce {
  display: inline-block; border: var(--filet); border-radius: 999px;
  padding: 0.25rem 0.8rem; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--encre-douce);
}
.trs-nuage { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.trs-miettes--serrees { padding-block: 0.6rem; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .trs-cimaise { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trs-tirage, .trs-tirage--moyen, .trs-tirage--petit { grid-column: span 2; }
  .trs-tirage--large, .trs-tirage--plein { grid-column: span 4; }
  .trs-tirage--decale { margin-top: calc(var(--decalage) / 2); }
  .trs-tirage--decale2 { margin-top: calc(var(--decalage) / 2); }
}
@media (max-width: 620px) {
  .trs-cimaise { grid-template-columns: minmax(0, 1fr); }
  .trs-tirage, .trs-tirage--petit, .trs-tirage--moyen,
  .trs-tirage--large, .trs-tirage--plein { grid-column: span 1; }
  .trs-tirage--decale, .trs-tirage--decale2 { margin-top: 0; }
  .trs-diptyque { grid-template-columns: minmax(0, 1fr); }
  .trs-tirage__cadrage--haut { aspect-ratio: 3 / 4; }
  .trs-accroche__vue { aspect-ratio: 4 / 3; }
  .trs-duo { grid-template-columns: minmax(0, 1fr); }
  .trs-trio { grid-template-columns: minmax(0, 1fr); }
  .trs-diptyque--tiers { grid-template-columns: minmax(0, 1fr); }
  .trs-diptyque--inverse { grid-template-columns: minmax(0, 1fr); }
}

/* MENU : les deux etats, bascule entre 46 et 62rem (ici 54rem = 864px) */
@media (min-width: 54rem) {
  .trs-nav__handle { display: none; }
  .trs-nav ul { display: flex; }
}
@media (max-width: 53.99rem) {
  .trs-corniche__rang { align-items: center; }
  .trs-nav__handle { display: inline-block; }
  .trs-nav ul {
    display: none;
    position: absolute; right: 0; top: calc(100% + 0.5rem);
    flex-direction: column; gap: 0;
    background: var(--fond-clair); border: var(--filet);
    min-width: 14rem; z-index: 40;
  }
  .trs-nav__toggle:checked ~ ul { display: grid; }
  .trs-nav li { border-bottom: var(--filet); }
  .trs-nav li:last-child { border-bottom: 0; }
  .trs-nav li a { display: block; padding: 0.7rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .trs-tirage:hover .trs-tirage__vue { transform: none; }
}
