/* ==========================================================================
   .exe — feuille de style commune (accueil, mentions légales, 404)
   Fond blanc cassé, filets noirs de 1 px qui structurent la page,
   Archivo auto-hébergée. Aucune ressource tierce.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1f0eb; /* blanc cassé */
  --ink: #111110; /* noir des filets et du texte, 16:1 sur --paper */
  --ink-soft: #55544f; /* texte secondaire, 6,6:1 sur --paper */
  --line: 1px;
  --inset: clamp(10px, 1.5vw, 24px); /* marge entre la fenêtre et le cadre */
  --pad: clamp(14px, 1.4vw, 22px); /* marge intérieure des cases */
  --band: 3rem; /* hauteur des bandes de section (« Artistes », « Contact ») */
  --mark-weight: 500;
  --small: clamp(0.9375rem, 0.85rem + 0.3vw, 1.1875rem);
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
}

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

/* --------------------------------------------------------------------------
   Le cadre : une grille à deux colonnes (5/7) partagée par toutes les pages
   -------------------------------------------------------------------------- */

.sheet {
  position: relative;
  display: grid;
  grid-template-columns: [left] minmax(0, 5fr) [split] minmax(0, 7fr) [right];
  margin: var(--inset);
}

/* Accueil et 404 : le cadre occupe exactement la fenêtre. */
.sheet--home {
  grid-template-rows: [top] minmax(0, 1fr) [mid] auto [foot] auto [bottom];
  min-height: calc(100vh - 2 * var(--inset));
  min-height: calc(100svh - 2 * var(--inset));
}

/* Les filets de l'accueil : un élément par trait, pour pouvoir les tracer. */
.rule {
  display: block;
  position: relative;
  z-index: 2;
  background: var(--ink);
  pointer-events: none;
}

.rule--x {
  grid-column: left / right;
  height: var(--line);
  align-self: start;
  transform-origin: 0 50%;
}

.rule--y {
  width: var(--line);
  justify-self: start;
  transform-origin: 50% 0;
}

.rule--top {
  grid-row: top;
}

.rule--mid {
  grid-row: mid;
}

.rule--foot {
  grid-row: foot;
}

.rule--bottom {
  grid-row: foot;
  align-self: end;
}

.rule--left {
  grid-column: left;
  grid-row: top / bottom;
}

.rule--right {
  grid-column: split / right;
  grid-row: top / bottom;
  justify-self: end;
}

/* --------------------------------------------------------------------------
   Le logotype : « .exe » posé sur le filet (sa ligne de base est le filet)
   -------------------------------------------------------------------------- */

/* Le contenu de l'accueil (logotype + artistes) vit dans la grille du cadre. */
.home {
  grid-column: left / right;
  grid-row: top / foot;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
}

.mark {
  grid-column: left / right;
  grid-row: top;
  align-self: end;
  justify-self: start;
  margin: 0;
  padding-inline: var(--pad);
  font-size: min(calc(24vw + 4.4rem), 62vh, 42rem);
  font-size: min(calc(24vw + 4.4rem), 62svh, 42rem);
  font-weight: var(--mark-weight);
  line-height: 1;
  letter-spacing: -0.02em;
  /* Le point a une approche gauche de 0,088 em : on l'aligne sur la marge des cases. */
  text-indent: -0.088em;
  text-box: trim-both cap alphabetic;
  /* Rien ne passe sous le filet : le dépassement optique du « e » est coupé net,
     sans rien couper au-dessus (les chiffres de la 404 dépassent la hauteur des capitales). */
  clip-path: inset(-1em -1em 0 -1em);
}

/* Page 404 : « 404 » prend la place du logotype ; les chiffres n'ont pas l'approche du point. */
.mark--digits {
  text-indent: -0.04em;
}

/* …et le logotype descend dans la case du nom : son point s'aligne comme sur l'accueil. */
.artist .artist__name--mark {
  text-indent: -0.088em;
}

/* Sans text-box (navigateurs anciens) : descente de la police (878/210) ramenée à la main. */
@supports not (text-box: trim-both cap alphabetic) {
  .mark {
    margin-bottom: -0.166em;
    clip-path: inset(-1em -1em 0.166em -1em);
  }
}

/* --------------------------------------------------------------------------
   Les artistes : une ligne par artiste, la ligne entière est le lien
   -------------------------------------------------------------------------- */

.roster {
  grid-column: left / right;
  grid-row: mid;
  display: grid;
  grid-template-columns: subgrid;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roster > li {
  grid-column: left / right;
  display: grid;
  grid-template-columns: subgrid;
}

.roster > li + li {
  border-top: var(--line) solid var(--ink);
}

.artist {
  grid-column: left / right;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(7.5rem, 22vh, 14rem);
  min-height: clamp(7.5rem, 22svh, 14rem);
  color: var(--ink);
  text-decoration: none;
}

/* Filet vertical entre le nom et la description ; il s'inverse avec la ligne. */
.artist::before {
  content: '';
  grid-column: split;
  grid-row: 1 / -1;
  justify-self: start;
  width: var(--line);
  background: currentColor;
  transform-origin: 50% 0;
}

.artist__name {
  grid-column: left;
  grid-row: 1 / -1;
  align-self: start;
  padding: var(--pad);
  font-size: clamp(1.75rem, 1.05rem + 2.75vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  text-indent: -0.05em; /* le G, rond, déborde à peine pour s'aligner sur le point */
  text-box: trim-both cap alphabetic;
}

.artist__desc {
  grid-column: split;
  grid-row: 1;
  margin: 0;
  padding: var(--pad) var(--pad) 0;
  font-weight: 400;
  font-size: var(--small);
  line-height: 1.3;
  text-wrap: balance;
  text-box: trim-both cap alphabetic;
}

.artist__url {
  grid-column: split;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  padding: calc(var(--pad) * 1.5) var(--pad) var(--pad);
  font-size: var(--small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

.arrow {
  display: inline-block;
  width: 0.686em; /* hauteur des capitales d'Archivo */
  height: 0.686em;
  margin-left: 0.3em;
  overflow: visible;
}

.nw {
  white-space: nowrap;
}

.artist:hover,
.artist:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.artist:hover .arrow,
.artist:focus-visible .arrow {
  transform: translate(0.12em, -0.12em);
}

/* Au clavier : l'inversion, plus un filet intérieur couleur papier. */
.artist:focus-visible {
  outline: var(--line) solid var(--paper);
  outline-offset: calc(var(--pad) / -2);
}

/* --------------------------------------------------------------------------
   Accueil : l'affiche (logotype, artistes) puis le contact, dans un même cadre
   -------------------------------------------------------------------------- */

.sheet--index {
  grid-template-rows: [top] auto [contact] auto [foot] auto [bottom];
}

.index {
  grid-column: left / right;
  grid-row: top / foot;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
}

/* L'accueil tient en un écran : logotype, bande « Artistes », artistes, puis la bande « Contact »
   (formulaire replié) et le pied de page. Si l'écran est trop bas, l'affiche s'allonge. */
.poster {
  grid-column: left / right;
  grid-row: top;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: [mark] minmax(auto, 1fr) [band] auto [list] auto;
  min-height: calc(100vh - 2 * var(--inset) - 2 * var(--band));
  min-height: calc(100svh - 2 * var(--inset) - 2 * var(--band));
}

.poster > .mark {
  grid-row: mark;
}

.poster > .band {
  grid-row: band;
}

.poster > .roster {
  grid-row: list;
}

/* Bandes de section : un titre entre deux filets. Sous le logotype, elle le détache des artistes. */
.band {
  grid-column: left / right;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--band);
  padding: 0 var(--pad);
}

.band::before,
.band::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: var(--line);
  background: var(--ink);
  transform-origin: 0 50%;
  pointer-events: none;
}

.band::before {
  top: 0;
}

.band::after {
  bottom: 0;
}

.band__title {
  margin: 0;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Contact : la bande déplie le formulaire, une rangée par champ, l'intitulé à gauche du filet
   -------------------------------------------------------------------------- */

.contact {
  grid-column: left / right;
  grid-row: contact;
  scroll-margin-top: var(--inset);
}

/* La bande « Contact » est le bouton : elle s'inverse au survol, comme une ligne d'artiste. */
.band--toggle {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.band--toggle::-webkit-details-marker {
  display: none;
}

.band--toggle:hover,
.band--toggle:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.band--toggle:focus-visible {
  outline: var(--line) solid var(--paper);
  outline-offset: calc(var(--pad) / -2);
}

.band__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.875rem;
  line-height: 1;
}

.contact[open] .band__hint-closed,
.contact:not([open]) .band__hint-open {
  display: none;
}

/* « + » qui devient « − » quand le formulaire est ouvert. */
.toggle {
  width: 0.75rem;
  height: 0.75rem;
  overflow: visible;
}

.toggle__v {
  transform-box: fill-box;
  transform-origin: center;
}

.contact[open] .toggle__v {
  transform: scaleY(0);
}

/* Mêmes colonnes 5/7 que le cadre : le formulaire occupe toute sa largeur. */
.form {
  display: grid;
  grid-template-columns: [left] minmax(0, 5fr) [split] minmax(0, 7fr) [right];
  margin: 0;
  border-bottom: var(--line) solid var(--ink);
}

.field {
  grid-column: left / right;
  display: grid;
  grid-template-columns: subgrid;
}

.field + .field {
  border-top: var(--line) solid var(--ink);
}

.field__label {
  grid-column: left;
  padding: var(--pad);
  font-size: max(1rem, var(--small));
  font-weight: 500;
  line-height: 1.3;
}

/* Le champ actif : son intitulé s'inverse, comme une ligne d'artiste au survol. */
.field__label > span {
  margin-inline: -0.3em;
  padding: 0.12em 0.3em;
}

.field:focus-within .field__label > span {
  background: var(--ink);
  color: var(--paper);
}

.field > .field__control {
  grid-column: split / right;
  border-left: var(--line) solid var(--ink);
}

.input {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--pad);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: max(1rem, var(--small));
  line-height: 1.3;
  caret-color: var(--ink);
  appearance: none;
}

.input:focus {
  outline: none;
}

.input--area {
  min-height: 8.5rem;
  line-height: 1.5;
  resize: vertical;
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
}

/* Saisie automatique : le navigateur garde son fond jaune ou bleu si on ne le recouvre pas. */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100vmax var(--paper) inset;
  caret-color: var(--ink);
}

/* L'objet : quatre cases, la case choisie s'inverse. Les filets sont le fond qui passe entre elles. */
.choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--line);
  background: var(--ink);
}

.choice {
  position: relative;
  display: flex;
  background: var(--paper);
  cursor: pointer;
}

.choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice > span {
  flex: 1;
  padding: var(--pad);
  font-size: max(1rem, var(--small));
  line-height: 1.3;
}

.choice:hover > span {
  text-decoration: underline;
  text-decoration-thickness: var(--line);
  text-underline-offset: 0.22em;
}

.choice > input:checked + span {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.choice > input:focus-visible + span {
  outline: var(--line) solid currentColor;
  outline-offset: calc(var(--pad) / -2);
}

/* Dernière rangée : la note sur les données à gauche, le bouton d'envoi à droite. */
.form__aside {
  grid-column: left;
  padding: var(--pad);
}

.form__note {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.form__status {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: max(1rem, var(--small));
  font-weight: 500;
  line-height: 1.35;
  text-wrap: pretty;
}

.form__status:empty {
  margin: 0;
}

.send {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 4rem;
  margin: 0;
  padding: var(--pad);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.send__label {
  text-box: trim-both cap alphabetic;
}

.send .arrow--send {
  margin: 0;
}

.send:hover,
.send:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.send:hover .arrow--send,
.send:focus-visible .arrow--send {
  transform: translateX(0.12em);
}

.send:focus-visible {
  outline: var(--line) solid var(--paper);
  outline-offset: calc(var(--pad) / -2);
}

/* Pendant l'envoi : le bouton ne réagit plus. */
.send:disabled {
  background: transparent;
  color: var(--ink-soft);
  cursor: progress;
}

/* Champ piège pour les robots : hors de l'écran, hors de la tabulation. */
.form__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}

/* Pied de l'accueil : l'adresse à gauche, les mentions légales à droite. */
.sheet--index .foot {
  justify-content: space-between;
  min-height: var(--band);
}

/* Écran très bas (téléphone à l'horizontale) : bandes et ligne d'artiste moins hautes, logotype
   plus petit, pour que l'accueil tienne encore en un écran. */
@media (max-height: 30rem) {
  .sheet--index {
    --band: 2.5rem;
  }

  .poster > .mark {
    font-size: min(calc(24vw + 4.4rem), 46svh, 42rem);
  }

  .sheet--index .artist {
    min-height: 6rem;
  }
}

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

.foot {
  grid-column: left / right;
  grid-row: foot;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 3rem;
  padding: 0 calc(var(--pad) - 0.45em);
  font-size: 0.875rem;
  line-height: 1;
}

.foot a,
.textlink {
  text-decoration: underline;
  text-decoration-thickness: var(--line);
  text-underline-offset: 0.22em;
}

.foot a {
  padding: 0.5em 0.45em;
}

.foot a:hover,
.foot a:focus-visible,
.textlink:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Mentions légales : même cadre, une rangée par rubrique
   -------------------------------------------------------------------------- */

.sheet--doc {
  border: var(--line) solid var(--ink);
}

.doc-head {
  grid-column: left / right;
  display: grid;
  grid-template-columns: subgrid;
  border-bottom: var(--line) solid var(--ink);
}

.doc-mark {
  grid-column: left;
  display: flex;
  align-items: flex-end;
  min-height: clamp(6.5rem, 4rem + 9vw, 12rem);
  padding: var(--pad) var(--pad) 0;
  border-right: var(--line) solid var(--ink);
  font-size: clamp(3.25rem, 2.2rem + 4.6vw, 7rem);
  font-weight: var(--mark-weight);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.doc-mark > span {
  display: block;
  text-indent: -0.088em;
  text-box: trim-both cap alphabetic;
  clip-path: inset(-1em -1em 0 -1em);
}

@supports not (text-box: trim-both cap alphabetic) {
  .doc-mark > span {
    margin-bottom: -0.166em;
    clip-path: inset(-1em -1em 0.166em -1em);
  }
}

.doc-mark:hover,
.doc-mark:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.doc-mark:focus-visible {
  outline: var(--line) solid var(--paper);
  outline-offset: calc(var(--pad) / -2);
}

.doc {
  grid-column: left / right;
  display: grid;
  grid-template-columns: subgrid;
}

.doc-title {
  grid-column: left / right;
  padding: calc(var(--pad) * 2.5) var(--pad) calc(var(--pad) * 2);
}

.doc-title h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.3rem + 4.2vw, 5.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-box: trim-both cap alphabetic;
}

.doc-date {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

.doc-sec {
  grid-column: left / right;
  display: grid;
  grid-template-columns: subgrid;
  border-top: var(--line) solid var(--ink);
}

.doc-sec > h2 {
  grid-column: left;
  margin: 0;
  padding: var(--pad);
  border-right: var(--line) solid var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.doc-body {
  grid-column: split;
  max-width: 34rem;
  padding: var(--pad);
}

.doc-body p {
  margin: 0 0 0.85em;
  text-wrap: pretty;
}

.doc-body p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4rem 1.75rem;
  margin: 0 0 1.1rem;
}

.facts > div {
  display: contents;
}

.facts dt {
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.sheet--doc .foot {
  grid-row: auto;
  border-top: var(--line) solid var(--ink);
}

/* --------------------------------------------------------------------------
   Mouvement : les filets se tracent une fois au chargement de l'accueil
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .sheet--home .rule--x,
  .sheet--index .rule--x,
  .sheet--index .band::before,
  .sheet--index .band::after {
    animation: rule-x 760ms var(--ease-out) backwards;
  }

  .sheet--home .rule--y,
  .sheet--home .artist::before,
  .sheet--index .rule--y,
  .sheet--index .artist::before {
    animation: rule-y 760ms var(--ease-out) backwards;
  }

  .sheet--home .rule--right,
  .sheet--index .rule--right {
    animation-delay: 90ms;
  }

  .sheet--home .rule--mid,
  .sheet--index .poster .band::before {
    animation-delay: 150ms;
  }

  .sheet--index .poster .band::after {
    animation-delay: 180ms;
  }

  .sheet--home .rule--foot,
  .sheet--index .contact .band::before {
    animation-delay: 210ms;
  }

  .sheet--home .rule--bottom,
  .sheet--index .contact .band::after {
    animation-delay: 250ms;
  }

  .sheet--home .artist::before,
  .sheet--index .artist::before {
    animation-delay: 300ms;
  }

  .artist,
  .doc-mark,
  .foot a,
  .band--toggle,
  .send,
  .choice > span,
  .field__label > span {
    transition:
      background-color 140ms linear,
      color 140ms linear;
  }

  .toggle__v {
    transition: transform 220ms var(--ease-out);
  }

  .arrow {
    transition: transform 220ms var(--ease-out);
  }
}

/* Contraste forcé (Windows) : les filets sont des fonds, que le système effacerait. */
@media (forced-colors: active) {
  .rule,
  .artist::before,
  .band::before,
  .band::after,
  .choices {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .choice > span {
    forced-color-adjust: none;
    background: Canvas;
    color: CanvasText;
  }

  .choice > input:checked + span {
    background: Highlight;
    color: HighlightText;
  }

  .input:focus {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

@keyframes rule-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes rule-y {
  from {
    transform: scaleY(0);
  }
}

/* --------------------------------------------------------------------------
   Petits écrans
   -------------------------------------------------------------------------- */

@media (max-width: 40rem) {
  .doc-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-mark {
    grid-column: 1;
    border-right: 0;
  }

  .doc-sec {
    display: block;
  }

  .doc-sec > h2 {
    padding-bottom: 0;
    border-right: 0;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .facts > div + div > dt {
    margin-top: 0.6rem;
  }

  /* Formulaire : l'intitulé au-dessus de sa case, chaque case fermée par un filet. */
  .field {
    display: block;
  }

  .field__label {
    display: block;
    padding-block: calc(var(--pad) * 0.8);
  }

  .field > .field__control {
    border-left: 0;
    border-top: var(--line) solid var(--ink);
  }

  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .send {
    min-height: 3.5rem;
  }
}
