/* Pages de l'institution : règlement, main courante, objets trouvés, artiste, visite virtuelle,
   mentions légales, salle fermée (404). Chaque page expose un objet réel (plaque émaillée,
   registre relié, tableau d'accueil, capture d'écran, porte barrée) ; la cohérence vient des
   mêmes filets, des mêmes trois voix typographiques et du même gabarit. */

/* ---------- Gabarit commun ---------- */
.doc { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: var(--s-5) var(--gutter) 0; }
.doc-head { display: grid; gap: var(--s-2); max-width: 48rem; padding-top: var(--s-3); border-top: 1.5px solid var(--ink); margin-bottom: var(--s-6); }
.doc-kicker { font-family: var(--f-sign); font-stretch: 78%; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.doc-title { font-family: var(--f-inscription); font-weight: 500; font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.005em; }
.doc-intro, .doc-lede { font-family: var(--f-inscription); font-style: italic; font-size: var(--step-1); line-height: 1.4; color: var(--ink-2); max-width: 38ch; }

/* ---------- Règlement : la plaque émaillée du hall ---------- */
.plaque {
  position: relative;
  max-width: 66rem;
  margin-inline: auto;
  padding: clamp(2.6rem, 2rem + 3vw, 4.25rem) clamp(1.9rem, 1.2rem + 3vw, 4.5rem) clamp(2.2rem, 1.8rem + 2vw, 3.5rem);
  background: radial-gradient(130% 70% at 28% 0%, #2c2b28 0%, var(--ink) 62%);
  color: var(--paper);
  border-radius: var(--radius);
  /* marge d'émail, filet intérieur, puis une seule ombre portée */
  box-shadow: inset 0 0 0 20px var(--ink), inset 0 0 0 21.5px rgba(247, 245, 239, 0.82), 0 26px 40px -34px rgba(0, 0, 0, 0.8);
}
.plaque :focus-visible { outline-color: var(--paper); }
.plaque__screw { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0dcaa 0 16%, var(--brass) 48%, #6a5130 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.7); }
.plaque__screw::after { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; margin-top: -0.75px; background: rgba(45, 33, 16, 0.8); transform: rotate(var(--slot, 35deg)); }
.plaque__screw--tl { top: 4.5px; left: 4.5px; }
.plaque__screw--tr { top: 4.5px; right: 4.5px; --slot: -20deg; }
.plaque__screw--bl { bottom: 4.5px; left: 4.5px; --slot: 80deg; }
.plaque__screw--br { bottom: 4.5px; right: 4.5px; --slot: 10deg; }
.plaque__head { display: grid; justify-items: center; gap: 0.7rem; text-align: center; padding-bottom: var(--s-4); margin-bottom: var(--s-2); border-bottom: 1.5px solid rgba(247, 245, 239, 0.82); }
.plaque__house { --obj: var(--brass); font-size: var(--step-2); margin-bottom: 0.3rem; }
.plaque__title { font-family: var(--f-sign); font-stretch: 75%; font-weight: 800; font-size: clamp(2.1rem, 1.3rem + 4vw, 4.6rem); line-height: 0.95; letter-spacing: 0.07em; text-transform: uppercase; }
.plaque__articles { list-style: none; }
.plaque__article { break-inside: avoid; padding: 0.35rem 0 1.05rem; border-bottom: 1px solid rgba(247, 245, 239, 0.16); scroll-margin-top: var(--s-5); transition: background-color 0.3s ease; }
.plaque__article:target, .plaque__article.is-target { background: rgba(247, 245, 239, 0.07); box-shadow: inset 3px 0 0 var(--brass); padding-inline: 0.9rem 0.5rem; }
/* Après une copie, seul l'article copié reste signalé (history.replaceState ne met pas :target à jour) */
.plaque__articles:has(.is-target) .plaque__article:target:not(.is-target) { background: none; box-shadow: none; padding-inline: 0; }
.plaque__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 44px; }
.plaque__num { font-family: var(--f-sign); font-stretch: 78%; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #d6bb88; }
.plaque__copy { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.3rem; font-family: var(--f-admin); font-size: 0.72rem; color: rgba(247, 245, 239, 0.66); text-decoration: underline; text-decoration-color: rgba(247, 245, 239, 0.32); }
.plaque__copy:hover { color: var(--paper); text-decoration-color: currentColor; }
/* Avec une souris, le lien ne paraît qu'au survol de l'article (toujours visible au clavier et au toucher) */
@media (hover: hover) and (pointer: fine) {
  .plaque__copy { opacity: 0; transition: opacity 0.2s ease; }
  .plaque__article:hover .plaque__copy, .plaque__article.is-target .plaque__copy, .plaque__copy:focus-visible { opacity: 1; }
}
.plaque__text { font-size: 1.06rem; line-height: 1.5; text-wrap: pretty; }
.plaque__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1.5px solid rgba(247, 245, 239, 0.82); }
.plaque__mandatory { font-family: var(--f-admin); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 245, 239, 0.7); }
.plaque__signed { font-family: var(--f-inscription); font-style: italic; font-size: var(--step-1); }
.plaque-caption { max-width: 66rem; margin: var(--s-4) auto 0; text-align: right; font-family: var(--f-inscription); font-style: italic; font-size: var(--step-0); color: var(--ink-2); }
@media (min-width: 860px) {
  .plaque__articles { columns: 2; column-gap: clamp(2.5rem, 5vw, 4.5rem); column-rule: 1px solid rgba(247, 245, 239, 0.2); }
}

/* ---------- Main courante : le registre relié du gardien ---------- */
.doc--log { display: grid; gap: var(--s-4); align-items: start; }
.ledger {
  --lh: 1.9rem;
  --margin: 4.6rem;
  position: relative;
  max-width: 52rem;
  background: var(--paper);
  color: var(--ink);
  padding: var(--s-4) var(--s-3) var(--s-4) var(--s-4);
  border-left: 12px solid #2d2b28; /* reliure */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 24px 40px -34px rgba(0, 0, 0, 0.6);
}
.ledger::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 1px dashed rgba(27, 26, 24, 0.25); } /* couture */
.ledger__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem var(--s-3); padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.ledger__title { font-family: var(--f-sign); font-stretch: 75%; font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.ledger__folio { grid-column: 2; grid-row: 1; align-self: start; font-family: var(--f-admin); font-size: 0.76rem; color: var(--ink-2); white-space: nowrap; }
.ledger__service { grid-column: 1 / -1; font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.ledger__night { grid-column: 1 / -1; font-family: var(--f-admin); font-size: 0.92rem; }
.ledger__columns { display: grid; grid-template-columns: var(--margin) 1fr; padding: 0.45rem 0; border-bottom: 1px solid var(--ink); font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.ledger__entries {
  list-style: none;
  position: relative;
  padding-bottom: calc(var(--lh) * 3);
  /* papier ligné : un filet par ligne d'écriture, calé sous la ligne de base */
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), rgba(27, 26, 24, 0.17) calc(var(--lh) - 1px) var(--lh));
  background-position: 0 -0.3rem;
}
/* double filet de marge */
.ledger__entries::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--margin) - 0.7rem); width: 3px; border-inline: 1px solid rgba(27, 26, 24, 0.32); }
.ledger__entry { display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); align-items: baseline; line-height: var(--lh); }
.ledger__time { font-family: var(--f-admin); font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; }
.ledger__text { font-family: var(--f-admin); font-size: 0.86rem; line-height: var(--lh); }
.ledger__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--ink); }
.ledger__visa { display: grid; gap: 0.3rem; }
.ledger__visa-label { font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.ledger__guard { font-family: var(--f-admin); font-size: 0.86rem; }
.ledger__stamp { flex: none; margin: calc(var(--lh) * -2.6) 0.6rem 0 0; font-size: 2.5rem; line-height: 1; padding: 0.12em 0.42em 0.08em; border-width: 3px; transform: rotate(-9deg); }
.ledger__stamp.is-pending { opacity: 0; transform: rotate(-9deg) scale(1.7); }
.ledger__stamp.is-stamped { animation: stamp-down 120ms cubic-bezier(0.55, 0, 0.9, 0.45) both; }
.ledger.is-shaken { animation: ledger-shake 150ms linear 120ms; }
@keyframes stamp-down { from { opacity: 0; transform: rotate(-9deg) scale(1.7); } to { opacity: 0.85; transform: rotate(-9deg) scale(1); } }
@keyframes ledger-shake { 0%, 100% { transform: none; } 25% { transform: translate(2px, 1px); } 50% { transform: translate(-2px, -1px); } 75% { transform: translate(1px, 0); } }
@media (min-width: 700px) {
  .ledger { --lh: 2rem; --margin: 6rem; padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 4px); }
  .ledger__time { font-size: 0.82rem; }
  .ledger__text { font-size: 0.92rem; }
}
@media (min-width: 1100px) {
  .doc--log { grid-template-columns: minmax(0, 52rem) minmax(0, 1fr); column-gap: var(--s-6); }
  .doc--log .doc-lede { grid-column: 2; grid-row: 1; position: sticky; top: var(--s-5); padding-top: var(--s-3); border-top: 1.5px solid var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .ledger__stamp.is-pending { opacity: 0.85; transform: rotate(-9deg); }
  .ledger.is-shaken { animation: none; }
}

/* ---------- Objets trouvés : le registre de l'accueil ---------- */
.register { max-width: 66rem; background: var(--paper); padding: var(--s-5) var(--s-4) var(--s-4); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 24px 40px -34px rgba(0, 0, 0, 0.6); }
.register__head { display: grid; gap: 0.5rem; padding-bottom: var(--s-4); border-bottom: 2px solid var(--ink); }
.register__kind { font-family: var(--f-admin); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.register__title { font-family: var(--f-sign); font-stretch: 75%; font-weight: 800; font-size: var(--step-4); line-height: 0.95; letter-spacing: 0.02em; text-transform: uppercase; }
.register__rule { font-family: var(--f-inscription); font-style: italic; font-size: var(--step-1); line-height: 1.4; color: var(--ink-2); max-width: 40ch; }
.register__count { font-family: var(--f-admin); font-size: 0.78rem; color: var(--ink-2); }
.register__table { width: 100%; border-collapse: collapse; font-family: var(--f-admin); font-size: 0.86rem; line-height: 1.45; }
.register__table th { padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--ink); text-align: left; font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.register__table td { padding: 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.register__table th + th, .register__table td + td { border-left: 1px solid var(--rule); }
.register__table tr > :first-child { padding-left: 0; }
.register__n { width: 4.2rem; color: var(--ink-2); }
.register__status { width: 13.5rem; }
.register__place { color: var(--ink-2); }
.register__stamp { font-size: 0.7rem; line-height: 1.2; padding: 0.3em 0.55em 0.25em; border-width: 2px; max-width: 12.5rem; text-align: center; opacity: 1; transform: rotate(var(--tilt, -3deg)); }
@media (max-width: 40rem) {
  .register { padding: var(--s-4) var(--s-3) var(--s-2); }
  .register__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .register__table, .register__table tbody { display: block; }
  .register__table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'n status' 'object object' 'place place'; gap: 0.3rem var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
  .register__table td { display: block; padding: 0; border: 0; width: auto; }
  .register__table td + td { border: 0; }
  .register__n { grid-area: n; align-self: center; }
  .register__status { grid-area: status; justify-self: end; align-self: center; }
  .register__object { grid-area: object; font-size: 0.92rem; }
  .register__place { grid-area: place; font-family: var(--f-sign); font-stretch: 80%; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
}

/* ---------- L'artiste : hors de la fiction, sur papier ---------- */
.page-artist { background: var(--paper); }
.artist { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: var(--s-6) var(--gutter) 0; }
.artist__sheet { display: grid; gap: var(--s-4); max-width: 42rem; margin-left: clamp(0rem, 14vw - 5rem, 13rem); }
.artist__head { display: grid; gap: var(--s-2); }
.artist__kicker { font-size: 0.95rem; color: var(--ink-2); }
.artist__title { font-family: var(--f-inscription); font-weight: 500; font-size: var(--step-4); line-height: 1; }
.artist__text p { font-family: var(--f-inscription); font-size: clamp(1.14rem, 1.04rem + 0.45vw, 1.38rem); line-height: 1.58; text-wrap: pretty; }
.artist__text p + p { margin-top: 1em; }
.artist__signature { font-family: var(--f-inscription); font-style: italic; font-size: var(--step-3); line-height: 1; }
.artist__next a { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 600; text-decoration-color: var(--bordeaux); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.artist__ai { max-width: 36rem; padding: 0.15rem 0 0.15rem var(--s-3); border-left: 2px solid var(--ink); color: var(--ink-2); font-size: 0.96rem; line-height: 1.6; }
.artist__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.artist__links { display: grid; gap: 0.15rem; }
.artist__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: var(--bordeaux); text-decoration-thickness: 1.5px; }
.artist__url { font-family: var(--f-admin); font-size: 0.78rem; color: var(--ink-2); }

/* ---------- Visite virtuelle : projet pilote ---------- */
.virtual { display: grid; gap: var(--s-5); }
.virtual .doc-head { margin-bottom: 0; }
.virtual__text { display: grid; gap: 0.9em; max-width: 40rem; }
.virtual__text p { font-size: 1.04rem; line-height: 1.62; }
.virtual__note { margin-top: var(--s-2); font-family: var(--f-admin); font-size: 0.8rem; color: var(--ink-2); }
.virtual__avis { margin-top: var(--s-3); }
@media (min-width: 960px) {
  .virtual { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: 'head media' 'text media' 'action media'; column-gap: var(--s-6); align-items: start; }
  .virtual__head { grid-area: head; }
  .virtual__text { grid-area: text; }
  .virtual__media { grid-area: media; position: sticky; top: var(--s-5); }
  .virtual__action { grid-area: action; }
}

/* Vignette : couloir blanc en perspective centrale, sol en damier dessiné en 3D CSS.
   Le point de fuite (50 %, 46 %) est commun au sol et aux murs. */
.corridor-card { margin: 0; container-type: inline-size; background: var(--paper); padding: 0.7rem 0.7rem 0.6rem; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 24px 40px -34px rgba(0, 0, 0, 0.6); }
.corridor { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f1efea; perspective: 55cqw; perspective-origin: 50% 46%; outline: 1px solid rgba(27, 26, 24, 0.2); outline-offset: -1px; }
.corridor__floor { position: absolute; left: -150%; width: 400%; bottom: 0; height: 900%; transform-origin: 50% 100%; transform: rotateX(90deg); background: repeating-conic-gradient(#d8c8a4 0 25%, #f0e7d4 0 50%) 50% 100% / 11cqw 11cqw; }
.corridor__ceiling, .corridor__wall { position: absolute; inset: 0; }
.corridor__ceiling { background: linear-gradient(#fbfaf7, #f1efea); clip-path: polygon(0 0, 100% 0, 62% 34.96%, 38% 34.96%); }
.corridor__wall--left { background: linear-gradient(90deg, #f6f4ef, #eceae4); clip-path: polygon(0 0, 38% 34.96%, 38% 58.96%, 0 100%); }
.corridor__wall--right { background: linear-gradient(270deg, #e7e4dd, #dedad2); clip-path: polygon(100% 0, 100% 100%, 62% 58.96%, 62% 34.96%); }
.corridor__end { position: absolute; left: 38%; right: 38%; top: 34.96%; bottom: 41.04%; background: #ebe8e1; box-shadow: inset 0 0 0 1px rgba(27, 26, 24, 0.06); }
.corridor__door { position: absolute; left: 36%; right: 36%; bottom: 0; height: 58%; background: #dcd8cf; }
.corridor__exit { position: absolute; left: 41%; right: 41%; bottom: 64%; height: 9%; background: var(--exit); }
.corridor-card__caption { padding-top: 0.55rem; font-family: var(--f-admin); font-size: 0.74rem; color: var(--ink-2); }

/* ---------- Mentions légales ---------- */
.doc--legal .doc-head { max-width: 62rem; }
.legal { max-width: 62rem; border-top: 1.5px solid var(--ink); }
.legal__section { display: grid; gap: 0.4rem; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.legal__title { padding-top: 0.15rem; font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.legal__text { max-width: 62ch; line-height: 1.65; }
@media (min-width: 760px) {
  .legal__section { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s-5); }
}

/* ---------- Salle fermée (404) : une porte symétrique, barrée ---------- */
.closed { display: grid; justify-items: center; gap: var(--s-5); padding-top: var(--s-3); text-align: center; }
.closed__scene { position: relative; width: min(100%, 30rem); aspect-ratio: 5 / 4; }
.closed__plate { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; padding: 0.4rem 0.9rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); font-family: var(--f-sign); font-stretch: 78%; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.closed__plate span { font-family: var(--f-admin); font-weight: 500; letter-spacing: 0; }
.closed__door { position: absolute; left: 25%; right: 25%; top: 14%; bottom: 10%; padding: 10px 10px 0; background: var(--plaster-2); box-shadow: inset 0 0 0 1px var(--rule); }
.closed__room { width: 100%; height: 100%; background: linear-gradient(#262422, var(--night) 70%); }
.closed__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: var(--plaster-2); border-top: 1px solid rgba(27, 26, 24, 0.35); }
.barrier { position: absolute; left: 11%; right: 11%; bottom: 10%; height: 36%; z-index: 1; }
.barrier__plank { position: absolute; left: 0; right: 0; top: 0; height: 28%; z-index: 1; background: repeating-linear-gradient(-45deg, var(--bordeaux) 0 14px, var(--paper) 14px 28px); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.barrier__leg { position: absolute; top: 12%; bottom: 0; width: 20%; }
.barrier__leg--l { left: 7%; }
.barrier__leg--r { right: 7%; }
.barrier__leg::before, .barrier__leg::after { content: ''; position: absolute; top: 0; bottom: -2px; left: 50%; width: 5px; margin-left: -2.5px; background: var(--ink); transform-origin: 50% 0; }
.barrier__leg::before { transform: rotate(16deg); }
.barrier__leg::after { transform: rotate(-16deg); }
.closed__text { display: grid; justify-items: center; gap: var(--s-3); max-width: 34rem; }
.closed__code { font-family: var(--f-admin); font-size: 0.85rem; color: var(--ink-2); }
.closed__title { font-family: var(--f-inscription); font-weight: 500; font-size: var(--step-4); line-height: 1; }
.closed__body { font-size: var(--step-0); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.closed__text .btn { margin-top: var(--s-2); }

/* Très petits écrans : le tampon reste dans la page. */
@media (max-width: 400px) { .ledger__stamp { font-size: 2rem; margin-right: 0.9rem; } }

/* ---------- Remerciement après paiement : la fiche d'acquisition, tamponnée ---------- */
.doc--thanks { padding-bottom: var(--s-7); }
.acquisition {
  position: relative; max-width: 40rem; margin: var(--s-3) auto 0; display: grid; justify-items: start; gap: var(--s-3);
  padding: var(--s-5) clamp(1.3rem, 0.8rem + 2.4vw, 2.75rem) var(--s-5);
  background: var(--paper); border-top: 3px solid var(--ink); box-shadow: 0 22px 40px -34px rgba(0, 0, 0, 0.6);
}
.acquisition__title { font-family: var(--f-inscription); font-style: italic; font-weight: 500; font-size: var(--step-4); line-height: 1; }
.acquisition__lead { font-family: var(--f-inscription); font-size: var(--step-1); line-height: 1.4; max-width: 34ch; }
.acquisition__stamp { position: absolute; top: var(--s-4); right: clamp(1rem, 0.6rem + 2vw, 2.25rem); font-size: 1.15rem; transform: rotate(-8deg); }
.acquisition__list { list-style: none; width: 100%; margin: 0; padding: var(--s-3) 0 var(--s-1); border-top: 1px solid var(--rule); display: grid; gap: 0.55rem; font-size: 0.95rem; line-height: 1.5; }

/* ---------- Conditions générales de vente : même gabarit que les mentions légales ---------- */
.terms__version { font-family: var(--f-admin); font-size: 0.8rem; color: var(--ink-2); }
.terms__n { font-family: var(--f-admin); font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.legal__body { display: grid; gap: 0.8rem; min-width: 0; }
/* Le formulaire type et l'encadré des garanties : des pièces jointes, sur papier. */
.terms__form, .terms__box { max-width: 62ch; margin: var(--s-2) 0 0; padding: var(--s-4); display: grid; gap: 0.7rem; background: var(--paper); line-height: 1.55; }
.terms__form { border: 1.5px dashed var(--ink); font-family: var(--f-admin); font-size: 0.84rem; }
.terms__box { border: 1.5px solid var(--ink); font-size: 0.95rem; }
.terms__form-title, .terms__box-title { font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.terms__list { list-style: none; margin: 0; padding: 0 0 0 1rem; display: grid; gap: 0.45rem; }

/* ---------- Renoncer au contrat : la déclaration en ligne ---------- */
.doc--withdraw { padding-bottom: var(--s-7); }
.withdraw { max-width: 40rem; display: grid; gap: var(--s-4); }
/* L'issue de l'envoi arrive en ancre (#sent…) : seul le message visé s'affiche. */
.withdraw__status { display: none; padding: var(--s-3) var(--s-4); border-left: 4px solid var(--ink); background: var(--paper); line-height: 1.5; }
.withdraw__status:target { display: block; }
.withdraw__status--sent { border-left-color: var(--exit); }
.withdraw__status--incomplete, .withdraw__status--error { border-left-color: var(--stamp); }
.withdraw:has(#sent:target) .withdraw__form { display: none; }
.withdraw__form { display: grid; gap: var(--s-3); padding: var(--s-4); background: var(--paper); border-top: 3px solid var(--ink); }
.withdraw__fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-3); }
.withdraw__legend { padding: 0; margin-bottom: var(--s-2); font-family: var(--f-sign); font-stretch: 80%; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.withdraw__field { display: grid; gap: 0.3rem; }
.withdraw__label { font-weight: 600; font-size: 0.95rem; }
.withdraw__input { width: 100%; min-height: 44px; padding: 0.5rem 0.7rem; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.withdraw__input:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.withdraw__hint, .withdraw__privacy { font-family: var(--f-admin); font-size: 0.76rem; line-height: 1.5; color: var(--ink-2); }
.withdraw__statement, .withdraw__next, .withdraw__other { font-size: 0.95rem; line-height: 1.55; }
.withdraw__submit { justify-self: start; }
/* Piège à robots : hors de l'écran, hors du parcours au clavier. */
.withdraw__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
