:root {
  color-scheme: dark;
  background: #030506;
}
body { margin: 0; }
main {
  --largeur-rail: max(24px, 4.65%);
  position: relative;
}
.numerotation {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: var(--largeur-rail);
  box-sizing: border-box;
  overflow: hidden;
  border-inline-end: 1px solid #454545;
  background: #030506;
  color: #888;
  font: 400 clamp(7px, 0.8vw, 12px) / clamp(11px, 1.18vw, 24px) monospace;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.numerotation span { display: block; }
.planche:not(.rail-integre),
.photos,
iframe { margin-inline-start: var(--largeur-rail); }
.rail-integre > img { clip-path: inset(0 0 0 4.65%); }
.planche { position: relative; }
img { display: block; width: 100%; height: auto; }
/* The artwork remains visible under each translucent interaction state. */
.zone {
  position: absolute;
  display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgb(205 205 205 / 10%) 0 1px, transparent 1px 4px),
    rgb(128 128 128 / 24%);
  box-shadow: inset 0 0 0 1px #a0a0a0;
  opacity: 0;
  transition: opacity 180ms ease-out;
}
#entrer {
  left: 61.1%;
  top: 47.2%;
  width: 17.7%;
  height: 31.4%;
  clip-path: polygon(54% 0, 100% 0, 100% 100%, 0 100%, 0 54%, 54% 54%);
}
#entrer::after {
  background:
    linear-gradient(180deg, transparent, rgb(210 210 210 / 24%) 48%, transparent 60%) 0 0 / 100% 200% no-repeat,
    repeating-linear-gradient(0deg, rgb(205 205 205 / 15%) 0 1px, transparent 1px 4px),
    rgb(145 145 145 / 36%);
  box-shadow: inset 0 -2px #aaa, inset -2px 0 #aaa;
}
@media (hover: hover) and (pointer: fine) {
  .zone:hover::after { opacity: 1; }
  #entrer:hover::after { animation: balayage 340ms steps(12, end); }
}
@keyframes balayage {
  from { background-position: 0 100%, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 0; }
}
.zone:focus-visible {
  outline: 2px solid #bcbcbc;
  outline-offset: -2px;
}
.zone:focus-visible::after,
.zone:active::after { opacity: 1; }

@media (pointer: coarse) {
  .bandeau {
    min-block-size: 28px;
    display: grid;
    align-items: center;
  }
  .couverture .zone:not(#entrer),
  #esc {
    min-block-size: 24px;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .couverture {
    min-block-size: 65svh;
    display: grid;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zone::after { transition: none; }
  #entrer:hover::after { animation: none; }
}
.photos { display: flex; align-items: stretch; }
.photos img { width: 0; flex: 1; object-fit: contain; min-width: 0; }
@media (max-width: 480px) {
  .photos { flex-direction: column; }
  .photos img { width: 100%; flex: none; }
}
iframe { display: block; width: calc(100% - var(--largeur-rail)); aspect-ratio: 16 / 9; height: auto; border: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ui-diaporama {
  width: min(760px, 100% - var(--largeur-rail) - 24px);
  margin: clamp(20px, 4vw, 60px) auto;
  margin-inline-start: max(calc(var(--largeur-rail) + 12px), calc((100% + var(--largeur-rail) - 760px) / 2));
  color: #c0c0c0;
}
.ui-commandes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
  font: 12px monospace;
}
.ui-commandes[hidden],
.ui-slide[hidden] { display: none; }
.ui-commandes output {
  min-inline-size: 64px;
  padding-inline: 12px;
  box-sizing: border-box;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.commande {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #444;
  border-radius: 0;
  background: #080808;
  color: #c0c0c0;
  font: 14px monospace;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease-out;
}
.ui-commandes .commande { inline-size: 44px; font-size: 18px; }
.ui-ouvrir { margin-inline-start: auto; }
@media (hover: hover) {
  .commande:hover {
    background: repeating-linear-gradient(0deg, #353535 0 1px, #272727 1px 4px);
  }
}
.commande:active { background: #353535; }
.commande:focus-visible, .ui-diaporama :focus-visible { outline: 1px solid #aaa; outline-offset: 2px; }
.ui-scroll {
  height: clamp(220px, 62svh, 620px);
  overflow: auto;
  scrollbar-color: #707070 #171717;
  border: 1px solid #444;
}
.ui-scroll img { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .commande { transition: none; }
}

.contact {
  margin-inline-start: var(--largeur-rail);
  padding: clamp(32px, 7vw, 100px) clamp(16px, 7vw, 100px);
  color: #c0c0c0;
  font-family: monospace;
}
.contact h2 { margin: 0 0 16px; font-size: clamp(18px, 3vw, 32px); font-weight: 400; }
.texte-saisi { display: inline-block; }

.menu-mobile,
.rubrique-mobile { display: none; }

@media (max-width: 680px) {
  main { --decalage-menu: 64px; }
  main [id] { scroll-margin-block-start: var(--decalage-menu); }
  #accueil { scroll-margin-block-start: var(--decalage-menu); }
  .menu-mobile {
    display: block;
    position: sticky;
    top: 0;
    z-index: 4;
    margin-inline-start: var(--largeur-rail);
    padding: 8px 12px;
    background: #030506;
  }
  .menu-mobile summary { list-style: none; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile nav {
    position: absolute;
    inset: 100% 12px auto;
    max-block-size: calc(100dvh - 76px);
    overflow: auto;
    border: 1px solid #444;
    background: #080808;
  }
  .menu-mobile ul {
    margin: 0;
    padding: 8px;
    display: grid;
    gap: 8px;
    list-style: none;
  }
  .menu-mobile a { justify-content: flex-start; inline-size: 100%; }
  .barre-rubriques > :is(img, .zone),
  .couverture .zone:not(#entrer) { display: none; }
  .barre-rubriques { min-block-size: 0; }
  .barre-rubriques.rail-integre .rubrique-mobile { margin-inline-start: var(--largeur-rail); }
  .rubrique-mobile {
    display: block;
    margin: 0;
    padding: 16px 12px;
    color: #c0c0c0;
    font: 400 14px monospace;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .en-attente { opacity: 0; }
  .en-attente:focus-within,
  .en-attente:target,
  .en-attente:has(:target) { opacity: 1; }
  .apparait { animation: apparition 900ms cubic-bezier(.18,.6,.3,1) var(--revele-delai, 0ms) both; }
  .apparait:focus-within { animation: none; }
  .apparait :is(.texte-saisi, .rubrique-mobile) { animation: saisie-texte 700ms steps(12, end) both; }
  @keyframes apparition { from { opacity: 0; scale: .985; translate: 0 10px; } to { opacity: 1; scale: 1; translate: 0 0; } }
  @keyframes saisie-planche { to { transform: scaleX(0); } }
  @keyframes saisie-texte { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
}

.clavier-scene {
  position: absolute;
  left: 23%;
  top: 29.785%;
  width: 56%;
  perspective: 950px;
  pointer-events: none;
}
.clavier-3d {
  transform-origin: center;
  filter: drop-shadow(2px 3px 2px #555);
}
.clavier-pause {
  position: absolute;
  right: 3%;
  bottom: 4%;
  z-index: 1;
  min-inline-size: 28px;
  min-block-size: 28px;
  padding: 4px 7px;
}
.clavier-pause[hidden] { display: none; }
.lignes-saisie {
  position: absolute;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .apparait .lignes-saisie { visibility: visible; }
  .apparait .lignes-saisie span {
    position: absolute;
    background: #030506;
    transform-origin: right;
    animation: saisie-planche var(--duree) var(--delai) steps(var(--frappes), end) both;
  }
}

.clavier-scene { pointer-events: auto; }
.clavier-volume {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.clavier-tranche,
.clavier-ombre {
  position: absolute;
  inset: 0;
  background: url('/clavier-profondeur.webp') center / 100% 100% no-repeat;
  pointer-events: none;
}
.clavier-tranche {
  transform: translateZ(calc(var(--niveau) * clamp(-2.6px, -.18vw, -1px)));
  filter: brightness(var(--clair));
}
.clavier-ombre {
  transform: translate(2.5%, 7%);
  filter: brightness(0) blur(10px);
  opacity: .85;
}
.clavier-3d { position: relative; filter: none; }
.clavier-volume #entrer {
  left: 68.2%;
  top: 35.3%;
  width: 31.6%;
  height: 63.5%;
  transform: translateZ(1px);
}
.texte-intro {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes portrait-glitch {
    18% { opacity: .9; translate: 4% 0; clip-path: polygon(0 15%, 74% 15%, 74% 23%, 100% 23%, 100% 35%, 0 35%); }
    34% { opacity: .8; translate: -5% 1%; clip-path: inset(48% 0 40% 0); filter: contrast(2); }
    58% { opacity: .7; translate: 3% -2%; clip-path: inset(70% 12% 18% 0); }
    76%, 100% { opacity: 0; }
  }
  @keyframes portrait-survol {
    15% { opacity: .8; translate: -3% 0; clip-path: inset(30% 0 55% 0); filter: contrast(2); }
    38% { opacity: .8; translate: 5% 0; clip-path: polygon(0 60%, 77% 60%, 77% 52%, 100% 52%, 100% 74%, 0 74%); }
    68%, 100% { opacity: 0; }
  }
}


.touche-rubrique {
  isolation: isolate;
  perspective: 300px;
}
.touche-rubrique::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #020406;
}
.touche-rubrique::after { display: none; }
.touche-volume {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(1px) rotateX(var(--touche-x, 0deg)) rotateY(var(--touche-y, 0deg));
  pointer-events: none;
  transition: transform 180ms ease-out;
}
.touche-volume::before,
.touche-volume::after,
.touche-face {
  position: absolute;
  inset: 0;
  border: 1px solid #333;
}
.touche-volume::before,
.touche-volume::after {
  content: "";
  background: #111;
}
.touche-volume::before { transform: translateZ(-6px); box-shadow: 1px 3px 7px #000; }
.touche-volume::after { transform: translateZ(-3px); background: #222; }
.touche-face {
  background: #030506 var(--legende) center / 100% 100% no-repeat;
  border-color: transparent;
  box-shadow: inset 0 0 0 2px #848484;
}
.touche-rubrique:is(:hover,:focus-visible) .touche-face {
  box-shadow: inset 0 0 0 2px #b8b8b8;
  filter: brightness(1.15);
}
.touche-rubrique:active .touche-volume { transform: translateZ(-3px); }
.touche-mobile {
  border: 2px solid #848484;
  box-shadow: 0 3px #262626;
}
.touche-mobile:is(:hover, :focus-visible, :active) { border-color: #b8b8b8; }
.touche-mobile:active { transform: translateY(2px); box-shadow: 0 1px #262626; }
@media (prefers-reduced-motion: reduce) {
  .touche-volume { transition: none; transform: none; }
}

.grille-rubriques {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(4px, .7vw, 12px);
  margin: 10px max(12px, 4.65%);
}
.rail-integre .grille-rubriques { margin-inline-start: calc(var(--largeur-rail) + 16px); }
.couverture .grille-rubriques {
  position: absolute;
  inset: 1% 24% auto calc(var(--largeur-rail) + 16px);
  margin: 0;
}
.grille-rubriques .touche-rubrique {
  position: relative;
  min-block-size: clamp(24px, 3vw, 46px);
  color: #c0c0c0;
  font: 400 clamp(7px, 1vw, 14px) monospace;
  text-decoration: none;
}
.touche-face {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding-inline: 4px;
  background: #030506;
  white-space: nowrap;
}
.touche-rubrique[aria-current] .touche-face { color: #f0f0f0; background: #202020; }
.touche-rubrique:focus-visible { outline: 2px solid #bcbcbc; outline-offset: 2px; }
#branding { scroll-margin-block-start: calc(var(--decalage-menu, 0px) + 16px); }

.portrait {
  position: absolute;
  left: 9.643%;
  top: 16.793%;
  width: 20.143%;
  height: 60.354%;
  perspective: 450px;
}
.portrait-cadre {
  position: absolute;
  inset: 0;
  background: url('/portrait.webp') center / 100% 100% no-repeat;
  transform: rotateX(var(--touche-x, 0deg)) rotateY(var(--touche-y, 0deg));
  box-shadow: 2px 4px 10px #000;
  pointer-events: none;
}
.portrait-cadre::after {
  content: "";
  position: absolute;
  inset: .8% 1.1% 12.3%;
  background: url('/portrait-pixels.webp') center / 100% 100% no-repeat;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .portrait-cadre { transition: transform 200ms ease-out; }
  .portrait.apparait .portrait-cadre::after { animation: portrait-glitch 420ms 330ms steps(1, end); }
  .portrait:hover .portrait-cadre::after { animation: portrait-survol 420ms steps(1, end); }
}
@media (max-width: 680px) {
  .grille-rubriques { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: url('/curseur-fleche.png') 2 2, auto; }
  :is(a[href], button, summary) { cursor: url('/curseur-cercle.png') 14 14, pointer; }
}

.titre-branding {
  width: fit-content;
  margin: 0 0 8px calc(var(--largeur-rail) + 16px);
}
#branding { padding-block: 12px; }
#branding .grille-rubriques { margin-block: 0; }
.bandeau-projet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
  gap: clamp(4px, .7vw, 12px);
  padding: 10px max(12px, 4.65%) 10px 16px;
}
.bandeau-case {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #848484;
  min-block-size: 32px;
  padding: 6px 10px;
  color: #c0c0c0;
  background: #030506;
  box-shadow: 0 2px #262626;
  font: 400 clamp(9px, 1vw, 14px) monospace;
  text-align: center;
  text-decoration: none;
}
a.bandeau-case:is(:hover,:focus-visible) {
  border-color: #b8b8b8;
  background: repeating-linear-gradient(0deg, #252525 0 1px, #1c1c1c 1px 4px);
}
.bandeau-nom { grid-column: 2; margin: 0; }
.bandeau-annee { grid-column: 3; }
.bandeau-projet:not(:has(.bandeau-annee)) .bandeau-nom { grid-column-end: 4; }
.bandeau-projet:not(:has(.bandeau-nom + .bandeau-annee)):not(:has(.bandeau-case:not(.bandeau-nom))) .bandeau-nom { grid-column: 1 / -1; }
@media (max-width: 680px) {
  .bandeau-projet { padding-inline: 10px; grid-template-columns: minmax(50px, 1fr) minmax(0, 3fr) minmax(38px, 1fr); }
  .bandeau-projet .bandeau-case { padding-inline: 4px; }
}

.merci-scene { left: 20.643%; top: 24.866%; width: 56.929%; }
.merci-scene :is(.clavier-tranche,.clavier-ombre) { background-image: url('/merci-profondeur.webp'); }
.merci-scene #esc {
  left: 1%;
  top: 4%;
  width: 15%;
  height: 86%;
  transform: translateZ(1px);
}
@media (hover: hover) and (pointer: fine) {
  :is(html, body, iframe) { cursor: url('/curseur-fleche.png') 2 2, auto; }
  :is(input, textarea) { cursor: text; }
}
.contact-liens { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-message {
  display: grid;
  gap: 12px;
  max-width: 550px;
  margin-block-start: 24px;
}
.contact-message label { display: grid; gap: 6px; }
.contact-message :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #848484;
  border-radius: 0;
  background: #111;
  color: #e0e0e0;
  font: inherit;
}
.contact-message button { justify-self: start; text-align: start; }

.presentation-mobile { display: none; }
.contact-liens .commande { max-inline-size: 100%; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .intro-saisie {
    display: grid;
    gap: 24px;
    padding: 24px 16px 32px calc(var(--largeur-rail) + 16px);
  }
  .intro-saisie > img,
  .intro-saisie .texte-intro { display: none; }
  .intro-saisie .portrait {
    position: relative;
    inset: auto;
    width: min(100%, 230px);
    height: auto;
    aspect-ratio: 282 / 478;
  }
  .presentation-mobile {
    display: block;
    min-inline-size: 0;
    color: #c0c0c0;
    font: 14px / 1.65 monospace;
  }
  .presentation-mobile h2 { margin: 0 0 12px; color: #eee; font-size: 16px; }
  .presentation-mobile ul { padding-inline-start: 20px; }
  .presentation-mobile li + li { margin-block-start: 6px; }
  .menu-mobile nav { max-block-size: calc(100svh - 76px); }
}
