@font-face {
  font-family: "Gloock"; font-style: normal; font-weight: 400;
  font-display: block; src: url("fonts/gloock-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Gantari"; font-style: normal; font-weight: 400;
  font-display: block; src: url("fonts/gantari-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Gantari"; font-style: normal; font-weight: 500;
  font-display: block; src: url("fonts/gantari-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Gantari"; font-style: normal; font-weight: 600;
  font-display: block; src: url("fonts/gantari-latin-600-normal.woff2") format("woff2");
}

/* ------------------------------------------------------------------ le ton
   Un pressing travaille dans la vapeur et rend du linge froid et net. D'où
   un fond gris-bleu de vapeur sur verre, l'encre presque noire d'un tampon
   de blanchisserie, et deux accents qui s'opposent comme les deux bains de
   la page : le bleu froid du solvant, le rouge-brique de l'eau chaude. */
:root {
  --vapeur: #E6EAED;
  --lin: #F6F8F9;
  --encre: #15191E;
  --mine: #4E555D;
  --trait: #C3CBD2;
  --froid: #15567E;
  --chaud: #9E3A22;

  --sortie: cubic-bezier(0.22, 0.7, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--vapeur);
  color: var(--encre);
  font-family: "Gantari", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.64;
}

h1, h2, h3, .nb, .ens strong, .c-n, .p-n, .j-v {
  font-family: "Gloock", Georgia, serif;
  font-weight: 400;
  line-height: 1.14;
}

a { color: inherit; }
strong { font-weight: 600; }

/* ----------------------------------------------------------- la banderole */
.mock {
  background: #0E1114; color: #DDE3E7;
  font-family: system-ui, sans-serif; font-size: 0.8125rem; line-height: 1.5;
  padding: 0.7rem 1rem; text-align: center;
}
.mock p { margin: 0 auto; max-width: 62ch; }
.mock strong { color: #fff; }
.mock-c { margin-top: 0.25rem; color: #AAB2B8; }
.mock-c a {
  color: #DDE3E7; text-decoration: underline; text-underline-offset: 2px;
  display: inline-block; padding: 0.55rem 0.2rem; min-height: 44px;
  line-height: 1.9;
}

/* ------------------------------------------------------- le premier écran
   UN CHIFFRE, ET RIEN D'AUTRE. Le nombre occupe l'écran, la phrase le
   traduit, et le nom de la maison se tient en bas comme une étiquette
   cousue à l'intérieur d'un col — pas en bandeau tout en haut. */
section { padding: 2.6rem 1.15rem; }

.ouverture {
  min-height: 86vh; display: flex; flex-direction: column;
  padding-top: 3rem; padding-bottom: 2.4rem;
  background: var(--lin); border-bottom: 1px solid var(--trait);
}
.nb {
  margin: 0; display: flex; align-items: baseline; gap: 0.1em;
  color: var(--froid); letter-spacing: -0.02em;
}
.nb span { font-size: clamp(5rem, 30vw, 15rem); line-height: 0.84; }
.nb em { font-style: normal; font-size: clamp(1.8rem, 9vw, 4.4rem); }
h1 {
  margin: 1.2rem 0 0; font-size: clamp(1.35rem, 5.6vw, 2.3rem);
  max-width: 21ch; text-wrap: balance;
}
.sous {
  margin: 1.1rem 0 0; max-width: 46ch; color: #2E353C; font-size: 1.02rem;
}
.ens { margin: auto 0 0; padding-top: 2.4rem; }
.ens strong { display: block; font-size: 1.6rem; }
.ens span { display: block; font-size: 0.88rem; color: var(--mine); }
.appel {
  margin-top: 1rem; align-self: start;
  display: inline-block; min-height: 44px; padding: 0.78rem 1.4rem;
  background: var(--encre); color: var(--lin); text-decoration: none;
  font-size: 1.02rem; font-weight: 600;
  transition: background-color 180ms var(--sortie), transform 140ms var(--sortie);
}
.appel:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .appel:hover { background: var(--froid); }
}

/* --------------------------------------------------------------- la fibre */
.logo-slot {
  margin: 0 0 1.6rem; font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--mine); border: 1px dashed var(--trait);
  padding: 0.5rem 0.7rem; width: fit-content;
}
h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 6.2vw, 2.4rem); max-width: 18ch; }
h3 { margin: 0 0 0.35rem; font-size: 1.06rem; }
.large { margin: 0 0 1.8rem; max-width: 54ch; }

.scene { display: grid; gap: 1.4rem; }
.toile-c {
  position: relative; overflow: hidden;
  /* exactement la couleur d'effacement du moteur : un canevas WebGL jamais
     dessiné reste transparent et se compose sur ce qu'il y a derrière */
  background: #3E454D;
}
#toile {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  opacity: 0; transition: opacity 260ms var(--sortie);
  /* pan-y : le doigt qui descend fait défiler la page, le doigt qui va de
     côté pousse la fibre. Sans ça, on emprisonne le lecteur sur le canevas. */
  touch-action: pan-y; cursor: ew-resize;
}
#toile.prete { opacity: 1; }
#toile:focus-visible { outline: 3px solid var(--froid); outline-offset: -3px; }
.chargement, .prise {
  position: absolute; margin: 0; padding: 0.55rem 0.8rem;
  font-size: 0.82rem; color: #EDF1F4; background: rgba(12, 16, 20, 0.66);
}
.chargement { inset: auto 0 0 0; }
.prise {
  inset: auto 0 0.7rem 0; width: fit-content; margin: 0 auto;
  letter-spacing: 0.04em; transition: opacity 300ms var(--sortie);
}
.prise.partie { opacity: 0; }
.repli {
  margin: 0; padding: 1rem 1.1rem; color: var(--mine);
  font-size: 0.92rem; max-width: 52ch;
}

.cadran { display: grid; gap: 0.9rem; align-content: start; }
.bascule-t { margin: 0; font-size: 0.8rem; color: var(--mine); }
.bascule { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.bascule button {
  min-height: 48px; padding: 0.6rem 0.7rem;
  font-family: inherit; font-size: 0.98rem; font-weight: 500;
  color: var(--encre); background: var(--lin);
  border: 2px solid var(--trait); cursor: pointer;
  transition: border-color 170ms var(--sortie), color 170ms var(--sortie),
              transform 140ms var(--sortie);
}
.bascule button:active { transform: scale(0.98); }
.bascule button.choisi { border-color: var(--chaud); color: var(--chaud); }
#b-solvant.choisi { border-color: var(--froid); color: var(--froid); }
@media (hover: hover) and (pointer: fine) {
  .bascule button:hover { border-color: var(--mine); }
}

.compte { margin: 0.4rem 0 0; }
.c-l, .c-d { display: block; font-size: 0.9rem; color: var(--mine); }
.c-n {
  display: block; font-size: 2.6rem; line-height: 1.05;
  color: var(--encre); font-variant-numeric: tabular-nums;
  transition: color 240ms var(--sortie);
}
.c-n.fort { color: var(--chaud); }
.sec .c-n.fort { color: var(--froid); }
.note {
  margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--trait);
  font-size: 0.92rem; color: var(--mine); max-width: 44ch;
}

.pointe {
  margin: 1.8rem 0 0; max-width: 50ch; font-size: 1.06rem;
  border-left: 3px solid var(--chaud); padding-left: 1rem;
}
.src {
  margin: 1.5rem 0 0; font-size: 0.79rem; color: var(--mine);
  max-width: 58ch; line-height: 1.55;
}

/* ------------------------------------------------------------- les jauges
   Des barres comparées, pas trois grands nombres en ligne : la question
   « combien d'eau » est une question de PROPORTION, et une proportion se
   regarde, elle ne se lit pas. */
.soif { background: var(--lin); border-block: 1px solid var(--trait); }
.jauges { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.jauges li {
  display: grid; grid-template-columns: 7.2rem 1fr 4.4rem;
  align-items: center; gap: 0.7rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--trait);
}
.j-n { font-size: 0.95rem; }
.j-b { display: block; height: 0.7rem; background: var(--vapeur); }
.j-b i { display: block; height: 100%; width: var(--p); background: var(--trait); }
.jauges li:first-child .j-b i { background: var(--froid); }
.j-v { text-align: right; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.jauges li:first-child .j-v { color: var(--froid); }
.apres { margin: 1.8rem 0 0; max-width: 52ch; font-size: 1.04rem; }

/* ------------------------------------------------------------ les métiers */
.metiers { list-style: none; margin: 0; padding: 0; }
.metiers li {
  padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--trait);
}
/* Quatre métiers ne sont pas une suite d'étapes : pas de « 01 · », pas de
   numérotation. Un filet suffit à les séparer. */
.metiers h3 { color: var(--froid); }
.metiers p { margin: 0 0 0.5rem; max-width: 46ch; font-size: 0.97rem; }
.age { margin: 1.8rem 0 0.8rem; max-width: 50ch; font-size: 0.97rem; }

.t-c {
  display: block; color: #8C3A1F; font-size: 0.85rem; line-height: 1.5;
  border-left: 2px solid #C08B78; padding-left: 0.6rem;
}
span.t-c { display: inline-block; }

/* ------------------------------------------------------------- le contact */
.contact { background: var(--lin); border-top: 1px solid var(--trait); }
.intro { margin: 0 0 1.8rem; max-width: 48ch; color: #2E353C; }
.c-g { display: grid; gap: 2rem; }
.c-d { list-style: none; margin: 0; padding: 0; }
.c-d li {
  padding: 0.75rem 0; border-bottom: 1px solid var(--trait);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.7rem;
  font-size: 0.95rem;
}
.c-d li > span:first-child {
  flex: 0 0 100%; font-size: 0.75rem; color: var(--mine); letter-spacing: 0.03em;
}
.c-d a {
  min-height: 44px; display: inline-flex; align-items: center;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--froid); word-break: break-word;
  transition: color 170ms var(--sortie);
}
.c-d a:active { color: var(--froid); }
@media (hover: hover) and (pointer: fine) { .c-d a:hover { color: var(--froid); } }

/* Un mailto: n'ouvre RIEN sans logiciel de courrier configuré. L'adresse
   reste écrite en toutes lettres, et ce bouton la met dans le presse-papier. */
.copie {
  min-height: 44px; padding: 0.4rem 0.8rem;
  font-family: inherit; font-size: 0.78rem; color: var(--mine);
  background: none; border: 1px solid var(--trait); cursor: pointer;
  transition: color 170ms var(--sortie), border-color 170ms var(--sortie),
              transform 140ms var(--sortie);
}
.copie:active { transform: scale(0.97); }
.copie[data-fait] { color: var(--froid); border-color: var(--froid); }
@media (hover: hover) and (pointer: fine) {
  .copie:hover { color: var(--encre); border-color: var(--mine); }
}

.c-f p { margin: 0 0 1rem; }
.c-f label {
  display: block; font-size: 0.78rem; color: var(--mine); margin-bottom: 0.3rem;
}
.c-f input, .c-f textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0.75rem;
  font-family: inherit; font-size: 1rem; color: var(--encre);
  background: var(--vapeur); border: 1px solid var(--trait);
}
.c-f textarea { min-height: 112px; resize: vertical; }
.c-f input:focus-visible, .c-f textarea:focus-visible {
  outline: 2px solid var(--froid); outline-offset: 1px; border-color: transparent;
}
.c-f button {
  min-height: 44px; padding: 0.7rem 1.6rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--lin); background: var(--encre); border: 0; cursor: pointer;
  transition: background-color 180ms var(--sortie), transform 140ms var(--sortie);
}
.c-f button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .c-f button:hover { background: var(--froid); } }
.c-r { font-size: 0.88rem; color: var(--froid); }
.pot { position: absolute; left: -9999px; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--encre); outline-offset: 3px;
}

/* ------------------------------------------------------------------ le pied */
.pied {
  padding: 1.9rem 1.15rem 2.6rem; border-top: 2px solid var(--encre);
  font-size: 0.83rem; color: var(--mine);
}
.pied p { margin: 0 0 0.3rem; }
.p-n { font-size: 1.05rem; color: var(--encre); }
.pied a {
  text-decoration: underline; text-decoration-color: var(--trait);
  text-underline-offset: 3px;
  display: inline-block; padding: 0.8rem 0; line-height: 1.5;
}
.p-l { margin-top: 0.2rem; }
.nb-i { white-space: nowrap; }

/* ------------------------------------------------------------- les annexes */
.legal { max-width: 62ch; }
.legal h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin: 0 0 1.4rem; max-width: none; }
.legal h2 { font-size: 1.1rem; margin: 2rem 0 0.6rem; max-width: none; }
.legal p { margin: 0 0 0.9rem; font-size: 0.95rem; }
.legal a { text-decoration: none; border-bottom: 2px solid var(--froid); }
.enseigne {
  display: grid; gap: 0.7rem; padding: 1.2rem 1.15rem;
  border-bottom: 2px solid var(--encre); background: var(--lin);
}
.enseigne .ens { margin: 0; padding: 0; }
.enseigne .appel { margin: 0; }

/* -------------------------------------------------------------- les écrans */
@media (min-width: 34em) {
  .enseigne { grid-template-columns: 1fr auto; align-items: center; }
  .enseigne .appel { justify-self: end; }
}

@media (min-width: 46em) {
  section { padding: 3.2rem 2rem; }
  .ouverture { padding-top: 4rem; }
  .pied, .enseigne { padding-left: 2rem; padding-right: 2rem; }
  .c-g { grid-template-columns: 1fr 1.15fr; gap: 2.8rem; }
  .jauges li { grid-template-columns: 9rem 1fr 5rem; }
}

@media (min-width: 64em) {
  section, .pied, .enseigne { padding-left: 3.6rem; padding-right: 3.6rem; }
  .scene {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.4rem; align-items: start;
  }
  .ouverture { padding-top: 5rem; min-height: 90vh; }
  .ouverture .sous { font-size: 1.1rem; }
}

@media (min-width: 92em) {
  section, .pied, .enseigne {
    padding-left: max(3.6rem, calc((100vw - 84rem) / 2));
    padding-right: max(3.6rem, calc((100vw - 84rem) / 2));
  }
}

/* --------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
