/* vaika.studio, piste « Précision lumineuse » (T38) : fond clair, grille fine en filigrane, tuiles bento,
   encre et or de l'identité de SON en accents, objets 3D en CSS que le pointeur incline.
   Polices système seulement : aucune police ni ressource externe. */

@property --k { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --b { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --trace { syntax: '<length-percentage>'; inherits: false; initial-value: 100%; }

:root {
  --fond: #FFFFFF;
  --surface: #FBFAF7;
  --creme: #F4F1EA;
  --texte: #1C1A17;
  --texte-secondaire: #5B564D;
  --accent: #E0AC4B;
  --accent-texte: #8A5F12;
  --texte-sur-accent: #1C1A17;
  --encre: #1C1A17;
  --texte-sur-encre: #D9D3C6;
  --trait: rgb(28 26 23 / 0.1);
  --trait-fort: rgb(28 26 23 / 0.18);
  --police: "Segoe UI Variable Display", "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Roboto, Arial, sans-serif;
  --police-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --courbe: cubic-bezier(0.2, 0.75, 0.15, 1);
  --rayon: 22px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  position: relative;
  margin: 0;
  color: var(--texte);
  background: var(--fond);
  font: 400 17px/1.55 var(--police);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grille fine en filigrane, plus discrète au milieu de la page. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgb(28 26 23 / 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgb(28 26 23 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgb(0 0 0 / 0.55) 40%, #000);
  mask-image: linear-gradient(to bottom, #000, rgb(0 0 0 / 0.55) 40%, #000);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgb(224 172 75 / 0.45);
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.symbole {
  display: block;
  aspect-ratio: 326 / 252;
  color: currentColor;
}

.evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--encre);
  color: var(--fond);
  text-decoration: none;
}

.evitement:focus {
  top: 12px;
}

.conteneur {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.mono {
  font-family: var(--police-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* Barre de navigation. */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--trait);
}

.nav__interieur {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Icône de SON (src/visuels/icone.svg, aussi favicon) devant le nom du studio. */
.marque::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: url("visuels/icone.svg") center / contain no-repeat;
  transition: transform 0.4s var(--courbe);
}

.marque:hover::before {
  transform: rotate(-8deg);
}

.navigation {
  margin-left: auto;
}

.navigation ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--texte-secondaire);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.navigation a:hover,
.navigation a[aria-current="true"] {
  color: var(--texte);
}

.navigation a:hover {
  background: rgb(28 26 23 / 0.05);
}

.navigation a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.nav__action {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--fond);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  transition: transform 0.2s var(--courbe), box-shadow 0.2s;
}

.nav__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgb(28 26 23 / 0.5);
}

.progression {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* Héros. */
.heros {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding: 48px 0 72px;
  overflow: hidden;
}

.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 72% 46%, rgb(224 172 75 / 0.16), transparent 70%), radial-gradient(40% 60% at 15% 40%, #fff 0, rgb(255 255 255 / 0.85) 50%, transparent 100%);
}

.heros__grille {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--trait-fort);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  color: var(--texte-secondaire);
}

.etiquette::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(224 172 75 / 0.22);
}

h1 {
  margin: 26px 0 22px;
  font-size: clamp(44px, 4.6vw, 66px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 .ligne {
  display: block;
}

h1 em {
  font-style: normal;
  background: linear-gradient(transparent 70%, rgb(224 172 75 / 0.55) 70%, rgb(224 172 75 / 0.55) 92%, transparent 92%) no-repeat 0 0 / var(--trace, 100%) 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.accroche {
  max-width: 34ch;
  margin: 0 0 32px;
  color: var(--texte-secondaire);
  font-size: 20px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 580;
  text-decoration: none;
  transition: transform 0.25s var(--courbe), box-shadow 0.25s, background 0.25s;
}

.bouton svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--courbe);
}

.bouton:hover svg {
  transform: translateX(3px);
}

.bouton--plein {
  background: var(--encre);
  color: var(--fond);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.2) inset, 0 10px 24px -12px rgb(28 26 23 / 0.6);
}

.bouton--plein:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.2) inset, 0 16px 30px -12px rgb(28 26 23 / 0.55);
}

.bouton--ligne {
  border: 1px solid var(--trait-fort);
  background: rgb(255 255 255 / 0.85);
}

.bouton--ligne:hover {
  border-color: var(--encre);
  background: var(--fond);
}

.bouton--accent {
  background: var(--accent);
  color: var(--texte-sur-accent);
}

.bouton--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgb(224 172 75 / 0.75);
}

.plateformes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 40px;
  color: var(--texte-secondaire);
  font-size: 14px;
}

.plateformes ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plateformes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--trait);
  border-radius: 8px;
  background: var(--fond);
  color: var(--texte);
  font: 500 13px var(--police-mono);
}

.plateformes li i {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--encre);
  border-radius: 2px;
}

.plateformes li:nth-child(2) i {
  border-radius: 50%;
}

.plateformes li:nth-child(3) i {
  transform: rotate(45deg);
}

/* Scène 3D du héros : un plateau de blocs, incliné par le pointeur et par le défilement (main.js). */
.scene-cadre {
  position: relative;
  display: grid;
  place-items: center;
  height: 560px;
}

.scene {
  --c: 92px;
  position: relative;
  width: calc(var(--c) * 4);
  height: calc(var(--c) * 4);
  perspective: 1600px;
}

.plateau {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(57deg + var(--rx, 0deg))) rotateZ(calc(43deg + var(--rz, 0deg)));
}

.plaque {
  position: absolute;
  inset: -18px;
  transform-style: preserve-3d;
}

.plaque > i,
.bloc > i {
  position: absolute;
  display: block;
}

.plaque > i:first-child {
  inset: 0;
  border: 1px solid var(--trait-fort);
  border-radius: 6px;
  background-color: #fff;
  background-image: linear-gradient(to right, rgb(28 26 23 / 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgb(28 26 23 / 0.07) 1px, transparent 1px);
  background-size: 23px 23px;
  background-position: 18px 18px;
}

.plaque .f-sud {
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  background: #E9E5DC;
}

.plaque .f-est {
  left: 100%;
  top: 0;
  width: 12px;
  height: 100%;
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background: #D9D4C8;
}

/* Un bloc : hauteur --h en unités de --c, montée --k au chargement, respiration --b, défilement --s. */
.bloc {
  --H: calc(var(--h) * var(--c) * var(--k) * var(--b) * var(--s, 1));
  position: absolute;
  left: calc(var(--x) * var(--c) + 5px);
  top: calc(var(--y) * var(--c) + 5px);
  width: calc(var(--w) * var(--c) - 10px);
  height: calc(var(--d) * var(--c) - 10px);
  transform-style: preserve-3d;
}

.bloc .f-dessus {
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(var(--H));
  border: 1px solid rgb(28 26 23 / 0.16);
  border-radius: 3px;
  background: #fff;
}

.bloc .f-sud {
  left: 0;
  top: 100%;
  width: 100%;
  height: var(--H);
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  border: 1px solid rgb(28 26 23 / 0.08);
  background: #EEEAE2;
}

.bloc .f-est {
  left: 100%;
  top: 0;
  width: var(--H);
  height: 100%;
  transform-origin: 0 50%;
  transform: rotateY(-90deg);
  border: 1px solid rgb(28 26 23 / 0.08);
  background: #DFDACF;
}

.bloc--or .f-dessus {
  border-color: rgb(28 26 23 / 0.12);
  background: var(--accent);
}

.bloc--or .f-sud {
  background: #CB9638;
}

.bloc--or .f-est {
  background: #B4822C;
}

.bloc--encre .f-dessus {
  border-color: #000;
  background: var(--encre);
}

.bloc--encre .f-sud {
  background: #2E2B26;
}

.bloc--encre .f-est {
  background: #12110F;
}

.f-dessus .symbole {
  width: 70%;
  color: var(--encre);
  transform: rotate(-43deg);
}

.points {
  display: grid;
  grid-template-columns: repeat(7, 9px);
  gap: 5px;
  transform: rotate(-43deg);
}

.points b {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgb(28 26 23 / 0.12);
}

.points b.o {
  background: var(--accent);
}

.anneau {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--encre);
  border-radius: 50%;
  box-shadow: 0 0 0 7px #fff, 0 0 0 8.5px rgb(28 26 23 / 0.35);
}

.grille-or {
  width: 74%;
  height: 74%;
  border: 1px solid rgb(224 172 75 / 0.7);
  background-image: linear-gradient(to right, rgb(224 172 75 / 0.55) 1px, transparent 1px), linear-gradient(to bottom, rgb(224 172 75 / 0.55) 1px, transparent 1px);
  background-size: 14px 14px;
}

.ombre {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: -1;
  width: 120%;
  height: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(28 26 23 / 0.16), transparent);
  filter: blur(8px);
}

.repere {
  position: absolute;
  width: 14px;
  height: 14px;
}

.repere::before,
.repere::after {
  content: "";
  position: absolute;
  background: var(--trait-fort);
}

.repere::before {
  left: 6.5px;
  top: 0;
  width: 1px;
  height: 14px;
}

.repere::after {
  left: 0;
  top: 6.5px;
  width: 14px;
  height: 1px;
}

.repere--1 { left: 6%; top: 8%; }
.repere--2 { right: 6%; top: 8%; }
.repere--3 { left: 6%; bottom: 8%; }
.repere--4 { right: 6%; bottom: 8%; }

/* Sections. */
section {
  position: relative;
}

.bloc-section {
  padding: 104px 0 32px;
}

.entete {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.entete--duo {
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.entete--duo .surtitre {
  grid-column: 1;
  grid-row: 1;
}

.entete--duo h2 {
  grid-column: 1;
  grid-row: 2;
}

.entete--duo p:not(.surtitre) {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  max-width: 52ch;
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: balance;
}

.surtitre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--texte-secondaire);
  text-transform: uppercase;
}

.surtitre::after {
  content: "";
  flex: 1;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(to right, var(--trait-fort), transparent);
  transform-origin: 0 50%;
}

h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 660;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Tuiles bento : un halo or suit le pointeur (--mx, --my, posés par main.js). */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.tuile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 28px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.4s var(--courbe);
}

.tuile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(224 172 75 / 0.16), transparent 60%);
  transition: opacity 0.35s;
}

.tuile:hover {
  border-color: var(--trait-fort);
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -28px rgb(28 26 23 / 0.35);
}

.tuile:hover::before {
  opacity: 1;
}

.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--trait-fort);
  border-radius: 999px;
  background: var(--fond);
  color: var(--texte);
  font: 500 12.5px var(--police-mono);
}

.puce--accent {
  border-color: rgb(224 172 75 / 0.75);
  background: rgb(224 172 75 / 0.16);
  color: var(--accent-texte);
}

.puce--accent::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Objet 3D d'une tuile : pose de repos --bx/--by, inclinaison au pointeur --ix/--iy. */
.objet {
  display: grid;
  place-items: center;
  perspective: 900px;
}

.objet > *,
.objet > * > * {
  transform-style: preserve-3d;
}

.objet > * {
  transform: rotateX(calc(var(--bx, 0deg) + var(--iy, 0deg))) rotateY(calc(var(--by, 0deg) + var(--ix, 0deg)));
  transition: transform 0.5s var(--courbe);
}

.tuile.suit .objet > * {
  transition: transform 0.12s linear;
}

/* 01 Jeux : la pancarte de chantier. */
.jeux .entete {
  grid-column: span 5;
  align-self: center;
  margin: 0;
}

.tuile--jeu {
  grid-column: span 7;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 380px;
  background: var(--fond);
}

.pancarte-scene {
  --bx: 6deg;
  --by: -16deg;
  height: 280px;
}

.pancarte {
  position: relative;
  width: 300px;
  height: 200px;
}

.panneau {
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  transform-style: preserve-3d;
}

.panneau > i {
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.panneau > i:nth-child(1) {
  background: #C9C3B6;
  transform: translateZ(-10px);
}

.panneau > i:nth-child(2) {
  background: #DDD7CB;
  transform: translateZ(-5px);
}

.panneau > i:nth-child(3) {
  display: grid;
  grid-template-rows: 28px 1fr 28px;
  overflow: hidden;
  border: 1.5px solid var(--encre);
  background: var(--fond);
}

.rayures {
  background: repeating-linear-gradient(-45deg, var(--encre) 0 14px, var(--accent) 14px 28px);
  background-size: 39.6px 100%;
}

.panneau .milieu {
  display: grid;
  place-items: center;
}

.panneau .milieu .symbole {
  width: 74px;
  color: var(--encre);
}

.pancarte-pied {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 62px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3A3631, var(--encre));
  transform: translateZ(-6px);
}

.pancarte-pied:nth-of-type(1) {
  left: 54px;
}

.pancarte-pied:nth-of-type(2) {
  right: 54px;
}

.pancarte-sol {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(28 26 23 / 0.18), transparent);
  transform: translateZ(-40px);
}

/* 02 Applications : Axolotl et son téléphone. */
.tuile--axolotl {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  min-height: 500px;
  padding: 44px;
  background: var(--fond);
}

.tuile--axolotl .texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: 470px;
}

.tuile--axolotl .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tuile--axolotl h3 {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.tuile--axolotl p {
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 18px;
  line-height: 1.45;
}

.fonctions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fonctions li {
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--creme);
  color: var(--texte);
  font-size: 14px;
  transition: background 0.2s, transform 0.2s var(--courbe);
}

.fonctions li:hover {
  background: rgb(224 172 75 / 0.28);
  transform: translateY(-2px);
}

.tuile--axolotl .sur {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font: 500 13px var(--police-mono);
}

.sur::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--trait-fort);
}

.telephone-scene {
  --bx: 8deg;
  --by: -20deg;
  align-self: center;
  height: 420px;
}

.telephone {
  position: relative;
  width: 168px;
  height: 340px;
}

.couche {
  position: absolute;
  inset: 0;
  border-radius: 30px;
}

.couche--1 { background: #CFC9BD; transform: translateZ(-12px); }
.couche--2 { background: #DDD7CB; transform: translateZ(-8px); }
.couche--3 { background: #E8E3D9; transform: translateZ(-4px); }

.ecran {
  position: absolute;
  inset: 0;
  padding: 9px;
  border-radius: 30px;
  background: var(--encre);
  box-shadow: 0 30px 50px -24px rgb(28 26 23 / 0.55);
  transform: translateZ(1px);
}

.ecran > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 30px 12px 12px;
  border-radius: 22px;
  background: var(--fond);
}

.barre {
  width: 60%;
  height: 8px;
  border-radius: 4px;
  background: var(--encre);
  opacity: 0.85;
}

.barre--courte { width: 38%; opacity: 0.25; }
.barre--espace { margin-top: 6px; }
.barre--pale { width: 80%; opacity: 0.12; }
.barre--66 { width: 66%; }

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal b {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgb(28 26 23 / 0.07);
}

.cal b.o {
  background: var(--accent);
}

.cal b.d {
  background: rgb(224 172 75 / 0.4);
}

.quittance {
  position: absolute;
  right: -62px;
  bottom: 46px;
  display: grid;
  gap: 7px;
  width: 128px;
  padding: 12px;
  border: 1px solid var(--trait-fort);
  border-radius: 14px;
  background: var(--fond);
  box-shadow: 0 24px 40px -20px rgb(28 26 23 / 0.45);
  transform: translateZ(70px);
}

.quittance i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgb(28 26 23 / 0.14);
}

.quittance i:nth-child(1) { width: 55%; background: var(--encre); opacity: 0.8; }
.quittance i:nth-child(3) { width: 70%; }
.quittance i:nth-child(4) { width: 40%; }

.tampon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
}

.tampon::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid var(--encre);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* 03 Conseil : quatre axes numérotés par la liste, chacun avec son objet. */
.services {
  grid-template-columns: 1fr 1fr 1.4fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: axe;
}

.tuile--service {
  counter-increment: axe;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
  padding: 24px;
  background: var(--fond);
}

.tuile--service .objet {
  height: 168px;
  margin-bottom: auto;
}

.tuile--service h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tuile--service h3::before {
  content: counter(axe, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--texte-secondaire);
  font: 500 12.5px var(--police-mono);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.tuile--service:hover h3::before {
  color: var(--accent-texte);
}

.mini-plateau {
  --c: 44px;
  position: relative;
  width: calc(var(--c) * 2);
  height: calc(var(--c) * 2);
  transform-style: preserve-3d;
  transform: rotateX(57deg) rotateZ(43deg);
}

.mini-plateau--large {
  --c: 46px;
  width: calc(var(--c) * 3);
  height: var(--c);
}

.mini-plateau__sol {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--trait-fort);
  border-radius: 4px;
  background: #fff linear-gradient(to right, rgb(28 26 23 / 0.07) 1px, transparent 1px) 0 0 / 9px 9px;
}

.mini-plateau .bloc {
  left: calc(var(--x) * var(--c) + 3px);
  top: calc(var(--y) * var(--c) + 3px);
  width: calc(var(--w) * var(--c) - 6px);
  height: calc(var(--d) * var(--c) - 6px);
}

.scan {
  position: relative;
  width: 116px;
  height: 116px;
  border: 1px solid var(--trait-fort);
  border-radius: 4px;
  background: #fff linear-gradient(to right, rgb(28 26 23 / 0.09) 1px, transparent 1px) 0 0 / 14.5px 14.5px;
  transform-style: preserve-3d;
  transform: rotateX(57deg) rotateZ(43deg);
}

.scan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(28 26 23 / 0.09) 1px, transparent 1px) 0 0 / 14.5px 14.5px;
}

.scan__ligne {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 0;
  display: block;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgb(224 172 75 / 0.55);
  transform: translateZ(10px);
}

.scan b {
  position: absolute;
  left: 58px;
  top: 29px;
  width: 29px;
  height: 29px;
  border: 1.5px solid var(--encre);
  background: rgb(224 172 75 / 0.35);
  transform: translateZ(16px);
}

.pipeline {
  display: grid;
  justify-items: center;
  gap: 40px;
  width: 100%;
}

.chaine {
  display: flex;
  align-items: center;
  width: min(100%, 420px);
  height: 22px;
}

.chaine b {
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--encre);
  border-radius: 50%;
  background: var(--fond);
}

.chaine b:last-child {
  border-color: var(--accent);
  background: var(--accent);
}

.chaine span {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, var(--encre) 50%, rgb(28 26 23 / 0.18) 50%) 0 0 / 200% 100%;
}

.reseau {
  width: 176px;
  height: auto;
  overflow: visible;
  transform: rotateX(24deg);
}

.reseau path {
  fill: none;
  stroke: var(--encre);
  stroke-opacity: 0.35;
  stroke-width: 1.2;
}

.reseau circle {
  fill: #fff;
  stroke: var(--encre);
  stroke-width: 1.5;
}

.reseau circle.o {
  fill: var(--accent);
  stroke: var(--accent);
}

.appel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.appel::before {
  content: "";
  order: 1;
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(to left, var(--trait-fort), transparent);
}

.appel .bouton {
  order: 2;
}

/* 04 Studio : valeurs, cycle et mesures de la page. */
.tuile--valeur {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  background: var(--fond);
}

.tuile--valeur p {
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 15.5px;
}

.tuile--valeur .objet {
  height: 130px;
  margin-bottom: auto;
}

.cube-pivot {
  transform-style: preserve-3d;
  transform: rotateX(-28deg) rotateY(38deg);
}

.cube {
  position: relative;
  width: 64px;
  height: 64px;
  transform-style: preserve-3d;
}

.cube i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--encre);
  background: rgb(255 255 255 / 0.7);
}

.cube i:nth-child(1) { transform: translateZ(32px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(32px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(32px); background: rgb(224 172 75 / 0.5); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(32px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(32px); background: rgb(224 172 75 / 0.9); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(32px); }

.gyro {
  position: relative;
  width: 96px;
  height: 96px;
  transform-style: preserve-3d;
}

.gyro i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--encre);
  border-radius: 50%;
}

.gyro i:nth-child(2) { border: 2px solid var(--accent); transform: rotateX(70deg); }
.gyro i:nth-child(3) { border-color: rgb(28 26 23 / 0.45); transform: rotateY(70deg); }
.gyro i:nth-child(4) { inset: 40px; border: 0; background: var(--encre); }

.couches {
  position: relative;
  width: 104px;
  height: 104px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(45deg);
}

.couches i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--encre);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.85);
  transition: transform 0.6s var(--courbe);
}

.couches i:nth-child(1) { background: var(--creme); transform: translateZ(0); }
.couches i:nth-child(2) { transform: translateZ(18px); }
.couches i:nth-child(3) { background: var(--accent); transform: translateZ(36px); }

.tuile--valeur:hover .couches i:nth-child(2),
.tuile--valeur:focus-within .couches i:nth-child(2) {
  transform: translateZ(30px);
}

.tuile--valeur:hover .couches i:nth-child(3),
.tuile--valeur:focus-within .couches i:nth-child(3) {
  transform: translateZ(62px);
}

.tuile--cycle {
  grid-column: span 7;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 28px;
}

.tuile--cycle p {
  margin: 0;
  font-size: 22px;
  font-weight: 520;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.tuile--cycle:has(+ .tuile--mesures[hidden]) {
  grid-column: span 12;
}

.boucle {
  width: 150px;
  height: 150px;
  color: var(--encre);
}

.boucle circle {
  fill: none;
  stroke-width: 1.5;
}

.boucle__fond { stroke: rgb(28 26 23 / 0.14); }
.boucle__pointilles { stroke: var(--encre); stroke-dasharray: 4 7; }
.boucle__etape { fill: #fff !important; stroke: var(--encre); }
.boucle .parcours { transform-origin: 75px 75px; }
.boucle .parcours circle { fill: var(--accent); stroke: none; }

.tuile--mesures {
  grid-column: span 5;
  background: var(--fond);
}

.tuile--mesures[hidden] {
  display: none;
}

.tuile--mesures h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.direct {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2F8F5B;
  box-shadow: 0 0 0 4px rgb(47 143 91 / 0.18);
}

.mesures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: var(--trait);
}

.mesures div {
  padding: 14px 16px;
  background: var(--fond);
}

.mesures dt {
  color: var(--texte-secondaire);
  font-size: 13.5px;
}

.mesures dd {
  margin: 4px 0 0;
  font: 600 26px/1.1 var(--police-mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mesures small {
  margin-left: 3px;
  color: var(--texte-secondaire);
  font-size: 14px;
  font-weight: 500;
}

.note {
  margin: 12px 0 0;
  color: var(--texte-secondaire);
  font-size: 13.5px;
}

/* 05 Contact : la seule tuile en encre. */
.contact {
  padding: 128px 0 40px;
}

.tuile--contact {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px;
  border-color: var(--encre);
  background: var(--encre);
  color: var(--texte-sur-encre);
}

.tuile--contact::before {
  background: radial-gradient(520px circle at var(--mx) var(--my), rgb(224 172 75 / 0.2), transparent 60%);
}

.tuile--contact .surtitre {
  color: var(--texte-sur-encre);
}

.tuile--contact .surtitre::after {
  background: linear-gradient(to right, rgb(244 241 234 / 0.35), transparent);
}

.tuile--contact h2 {
  margin: 18px 0 16px;
  color: #fff;
}

.tuile--contact p:not(.surtitre) {
  max-width: 46ch;
  margin: 0 0 32px;
  font-size: 18px;
}

.tuile--contact :focus-visible {
  outline-color: var(--accent);
}

.symbole-3d {
  --bx: 6deg;
  --by: -24deg;
  height: 260px;
}

.symbole-3d > div {
  position: relative;
  width: 230px;
  height: 180px;
}

.symbole-3d .symbole {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.symbole-3d .symbole:nth-child(1) { color: rgb(224 172 75 / 0.18); transform: translateZ(-24px); }
.symbole-3d .symbole:nth-child(2) { color: rgb(224 172 75 / 0.38); transform: translateZ(-12px); }

/* Pied de page. */
.pied {
  padding: 40px 0 48px;
  color: var(--texte-secondaire);
  font-size: 14px;
}

.pied__interieur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 24px;
  border-top: 1px solid var(--trait);
}

.pied p {
  margin: 0;
}

.pied a {
  border-bottom: 1px solid var(--trait-fort);
  text-decoration: none;
}

.pied a:hover {
  border-color: var(--encre);
  color: var(--texte);
}

/* Mentions légales. */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section__interieur {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.section__titre {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.1rem + 3.8vw, 3.6rem);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.mentions__bloc {
  max-width: 46rem;
  margin-top: 2.5rem;
  padding: 28px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--surface);
}

.carte__titre {
  margin: 0 0 1rem;
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.mentions__bloc p {
  color: var(--texte-secondaire);
}

.mentions__champs {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.mentions__champs dt {
  color: var(--texte-secondaire);
  font: 500 12px var(--police-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mentions__champs dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

/* Apparitions au défilement : main.js pose .avec-motion seulement quand le motion est permis ;
   chaque tuile se redresse en entrant, par un léger basculement en perspective. */
.avec-motion [data-apparition] {
  opacity: 0;
  transform: perspective(1200px) translateY(28px) rotateX(7deg);
  transform-origin: 50% 100%;
  transition: opacity 0.7s var(--courbe) var(--t, 0s), transform 0.9s var(--courbe) var(--t, 0s);
}

.avec-motion [data-apparition].est-visible {
  opacity: 1;
  transform: none;
}

.avec-motion .surtitre::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--courbe) 0.15s;
}

.avec-motion .est-visible .surtitre::after {
  transform: scaleX(1);
}

/* Entrées du héros et montée des blocs : en CSS seul, elles finissent visibles même sans JavaScript.
   Les animations continues ne tournent qu'avec .avec-motion, la respiration qu'après load (.scene-active). */
@media (prefers-reduced-motion: no-preference) {
  .heros [data-h] {
    animation: entree 0.9s var(--courbe) var(--t, 0s) backwards;
  }

  h1 em {
    animation: trace 1s var(--courbe) 1s backwards;
  }

  .plateau .bloc {
    animation: monter 1.3s var(--courbe) var(--t, 0s) backwards;
  }

  .scene-active .plateau .bloc[data-respire] {
    animation: monter 1.3s var(--courbe) var(--t, 0s) backwards, respirer 5.5s ease-in-out var(--t2, 1.6s) infinite alternate;
  }

  .avec-motion .rayures {
    animation: chantier 2.4s linear infinite;
  }

  .avec-motion .est-visible .scan__ligne {
    animation: balayer 3.2s ease-in-out infinite alternate;
  }

  .avec-motion .est-visible .chaine span {
    animation: flux 3.6s var(--courbe) infinite;
  }

  .avec-motion .est-visible .chaine span:nth-of-type(2) {
    animation-delay: 0.6s;
  }

  .avec-motion .est-visible .chaine span:nth-of-type(3) {
    animation-delay: 1.2s;
  }

  .avec-motion .est-visible .reseau circle:not(.o) {
    animation: noeud 3s ease-in-out infinite;
  }

  .avec-motion .est-visible .reseau circle:nth-of-type(2) { animation-delay: 0.4s; }
  .avec-motion .est-visible .reseau circle:nth-of-type(3) { animation-delay: 0.8s; }
  .avec-motion .est-visible .reseau circle:nth-of-type(4) { animation-delay: 1.2s; }
  .avec-motion .est-visible .reseau circle:nth-of-type(5) { animation-delay: 1.6s; }

  .avec-motion .est-visible .cube-pivot {
    animation: tourner 14s linear infinite;
  }

  .avec-motion .est-visible .gyro i:nth-child(2) {
    animation: gyro-x 9s linear infinite;
  }

  .avec-motion .est-visible .gyro i:nth-child(3) {
    animation: gyro-y 12s linear infinite;
  }

  .avec-motion .est-visible .boucle .parcours {
    animation: boucler 4s linear infinite;
  }
}

@keyframes entree {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes trace {
  from {
    --trace: 0%;
  }
}

@keyframes monter {
  from {
    --k: 0;
  }
}

@keyframes respirer {
  to {
    --b: 1.32;
  }
}

@keyframes chantier {
  to {
    background-position: 39.6px 0;
  }
}

@keyframes balayer {
  to {
    top: 100%;
  }
}

@keyframes flux {
  0% {
    background-position: 100% 0;
  }
  40%,
  100% {
    background-position: 0 0;
  }
}

@keyframes noeud {
  0%,
  60%,
  100% {
    fill: #fff;
  }
  25% {
    fill: var(--accent);
  }
}

@keyframes tourner {
  to {
    transform: rotateX(-28deg) rotateY(398deg);
  }
}

@keyframes gyro-x {
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes gyro-y {
  to {
    transform: rotateY(70deg) rotateX(360deg);
  }
}

@keyframes boucler {
  to {
    transform: rotate(360deg);
  }
}

/* Tablette. */
@media (max-width: 980px) {
  .heros__grille {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scene-cadre {
    height: 440px;
  }

  .scene {
    --c: 76px;
  }

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

  .jeux .entete,
  .tuile--jeu,
  .tuile--cycle,
  .tuile--mesures {
    grid-column: span 12;
  }

  .tuile--valeur {
    grid-column: span 6;
  }

  .tuile--axolotl {
    gap: 20px;
    padding: 32px;
  }

  .entete--duo {
    grid-template-columns: 1fr;
  }

  .entete--duo h2,
  .entete--duo p:not(.surtitre) {
    grid-column: 1;
    grid-row: auto;
  }

  .tuile--contact {
    grid-template-columns: 1fr;
    padding: 44px;
  }
}

@media (min-width: 981px) {
  h1 .ligne {
    white-space: nowrap;
  }
}

/* Mobile : le menu passe sur une rangée défilante sous la barre. */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .conteneur,
  .section__interieur {
    width: calc(100% - 32px);
  }

  .nav__interieur {
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 0;
    padding-top: 10px;
  }

  .nav__action {
    margin-left: auto;
  }

  .navigation {
    order: 3;
    width: calc(100% + 16px);
    margin: 4px -8px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .navigation a {
    padding: 8px 10px;
    font-size: 14.5px;
    white-space: nowrap;
  }

  .heros {
    min-height: 0;
    padding: 36px 0 24px;
  }

  h1 {
    margin: 22px 0 18px;
    font-size: min(10vw, 46px);
  }

  .etiquette {
    gap: 8px;
    padding: 5px 10px 5px 7px;
    font-size: 11.5px;
  }

  .accroche {
    margin-bottom: 26px;
    font-size: 18px;
  }

  .bouton {
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }

  .actions .bouton,
  .appel .bouton {
    flex: 1 1 100%;
    justify-content: center;
  }

  .appel::before {
    display: none;
  }

  .plateformes {
    margin-top: 28px;
  }

  .scene-cadre {
    height: 330px;
    margin-top: 4px;
  }

  .scene {
    --c: 58px;
  }

  .bloc-section,
  .contact {
    padding-top: 88px;
  }

  .bento {
    gap: 12px;
  }

  .tuile {
    padding: 22px;
    border-radius: 18px;
  }

  .tuile--jeu {
    min-height: 0;
  }

  .pancarte-scene {
    height: 220px;
  }

  .pancarte {
    transform: scale(0.82);
  }

  .tuile--axolotl {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  .tuile--axolotl h3 {
    font-size: 28px;
  }

  .telephone-scene {
    order: -1;
    height: 360px;
  }

  .telephone {
    transform: scale(0.86);
  }

  .services {
    grid-template-columns: 1fr;
  }

  .tuile--service {
    min-height: 0;
    padding: 22px;
  }

  .tuile--service h3 {
    font-size: 19px;
  }

  .tuile--service .objet {
    height: 130px;
  }

  .tuile--valeur {
    grid-column: span 12;
    min-height: 0;
  }

  .tuile--valeur .objet {
    height: 110px;
  }

  .tuile--cycle {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tuile--cycle p {
    font-size: 19px;
  }

  .boucle {
    width: 110px;
    height: 110px;
  }

  .tuile--contact {
    gap: 0;
    padding: 30px 24px;
  }

  .symbole-3d {
    order: -1;
    justify-content: start;
    height: 150px;
  }

  .symbole-3d > div {
    width: 150px;
    height: 118px;
  }

  .mesures dd {
    font-size: 22px;
  }
}

/* À l'impression, tout s'affiche, même ce qui n'est jamais entré dans la fenêtre. */
@media print {
  .avec-motion [data-apparition],
  .avec-motion [data-apparition] .surtitre::after {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav,
  .scene-cadre,
  .objet {
    display: none;
  }
}

/* Mouvement réduit : ni animation, ni transition, ni déplacement au survol. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .avec-motion [data-apparition] {
    opacity: 1;
    transform: none;
  }

  .avec-motion .surtitre::after {
    transform: none;
  }

  .fonctions li:hover,
  .bouton:hover,
  .bouton:hover svg,
  .nav__action:hover,
  .marque:hover::before {
    transform: none;
  }

  .tuile--valeur:hover .couches i:nth-child(2),
  .tuile--valeur:focus-within .couches i:nth-child(2) {
    transform: translateZ(18px);
  }

  .tuile--valeur:hover .couches i:nth-child(3),
  .tuile--valeur:focus-within .couches i:nth-child(3) {
    transform: translateZ(36px);
  }
}
