* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #fff; color: #000; font-family: Cousine, monospace; overflow-x: hidden; }
button, input { font: inherit; }
a { color: inherit; }
.not-found { padding: 40px; }

.artboard { position: relative; margin: 0; overflow: hidden; }
.viewport { position: fixed; inset: 0; overflow: hidden; overflow: clip; }
.viewportContent { position: absolute; left: 50%; top: 50%; transform-origin: center; }
.image, .video, .text { position: absolute; margin: 0; padding: 0; border: 0; }
.image { display: block; }
.image img, .video video { display: block; width: 100%; height: 100%; border-radius: inherit; }
.image img { user-select: none; }
.atelier-video { overflow: hidden; }
.atelier-video video { object-fit: cover; object-position: center; transform: scale(1.22); }
.video-volume {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 0;
  border-radius: 24px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
}
.video-volume button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.video-volume svg { width: 22px; height: 22px; pointer-events: none; }
.video-volume input { width: 80px; min-height: 32px; margin: 0; accent-color: #fff; cursor: pointer; }
.video-volume :is(button, input):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Un léger zoom signale les pictogrammes cliquables sans modifier leur placement. */
a.image { cursor: pointer; }
a.image img { transition: transform 180ms ease-out; }
@media (hover: hover) {
  a.image:hover img { transform: scale(1.07); }
}
a.image:focus-visible img { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) {
  a.image img { transition: none; }
}
.text { overflow: visible; }
.text a { cursor: pointer; }
.contact-link { display: block; color: inherit; text-decoration: none; }
[data-page="contact"] .contact-details p { text-align: left; }
[data-page="contact"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 560px));
  column-gap: 80px;
  row-gap: 29px;
  align-content: start;
  padding: 221px 120px 100px;
}
[data-page="contact"] > :is(.contact-title, .contact-details) {
  position: static;
  grid-column: 2;
  width: auto !important;
  height: auto !important;
}
[data-page="contact"] .contact-title { grid-row: 1; }
[data-page="contact"] .contact-details { grid-row: 2; }
[data-page="contact"] .contact-details > p:last-child { display: none; }
[data-page="contact"] .contact-photo {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  min-height: 0;
}
[data-page="contact"] .contact-photo img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.12);
}
[data-page="a-propos"] .text :is(p, strong, br) { font-family: Cousine, monospace; }
[data-page="a-propos"] .text p { font-weight: 400; text-align: justify; }
.header { position: fixed; left: 0; top: 0; width: 1440px; height: 75px; background: #fff; z-index: 10; }
.language-toggle {
  position: absolute;
  left: 1357px;
  top: 22px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-family: "Courier Prime", "Courier Prime Placeholder", monospace;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.language-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* La navigation garde les dimensions des pages projets ; seul le contenu s'adapte. */
.page-fixe { position: fixed; inset: 0; overflow: hidden; }
.page-fixe .viewport { top: 75px; }
.page-fixe .artboard { top: -75px; }
.placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #e5e5e5; color: #777; font: 12px Cousine, monospace; }
.video .placeholder { position: absolute; inset: 0; }

/* À l'arrivée sur un projet, le flou s'efface doucement et progressivement. */
@keyframes apparition-projet {
  from { filter: blur(3px); }
  to { filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .project-pictogram { view-transition-name: project-pictogram; }
  html:active-view-transition .project-pictogram { animation: none; }
  ::view-transition-group(project-pictogram) {
    animation-duration: 1000ms;
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }
  ::view-transition-old(project-pictogram),
  ::view-transition-new(project-pictogram) {
    height: 100%;
    width: 100%;
    object-fit: fill;
    mix-blend-mode: normal;
  }
  .page-projet > :is(.image, .text, .video) {
    animation: apparition-projet var(--project-reveal-duration, 1200ms) var(--project-reveal-easing, cubic-bezier(0.45, 0, 0.25, 1)) backwards;
  }
  .page-projet > .image.project-pictogram-arrived { animation: none; }
}

/* Contours visibles uniquement au clavier. */
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
