/* statut: brouillon | auteur: agent | date: 2026-11-23
   Page d'attente de sitelier.fr (décisions 39 et 42), version 3. Charte : docs/charte-sitelier.md (Outfit seule ; ivoire,
   sable, camel, cognac, taupe et noir ; thème sombre selon les jetons de la charte).
   Idée d'ensemble : le logo est le héros, et son geste (le carré déplacé au-dessus de son fantôme en pointillés) est
   repris par quatre plaques qui portent chacune un objet lié à la création de sites. Un seul moment animé, au chargement : le carré du logo
   quitte son fantôme, puis les quatre plaques font le même geste. Rien ne bouge pour qui limite les animations. */

@font-face { font-family: "Outfit"; font-weight: 300; font-style: normal; font-display: swap; src: url("../polices/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("../polices/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("../polices/outfit-latin-500-normal.woff2") format("woff2"); }

:root {
  --canvas: #F7F1EC;
  --paper: #FFFFFF;
  --ink: #111111;
  --on-ink: #F7F1EC;
  --ink-muted: #6B4F42;
  --line: #EADBD0;
  --sable: #EADBD0;
  --camel: #C9A184;
  --cognac: #966131;
  --cognac-ink: #966131;
  --focus: #966131;
  --logo-carre: #966131;
  --logo-fantome: .7;
  --plaque-sombre: #111111;
  --ombre-objet: rgba(60, 36, 16, .28);
  --fond: linear-gradient(180deg, #F7F1EC 0%, #F7F1EC 48%, #EADBD0 100%); /* gradient-soft, étiré vers le bas */
  --pose: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171311;
    --paper: #221C19;
    --ink: #F7F1EC;
    --on-ink: #111111;
    --ink-muted: #A39388;
    --line: #3A302B;
    --sable: #2E241F;
    --cognac-ink: #C9A184;
    --focus: #C9A184;
    --logo-carre: #C9A184;
    --logo-fantome: .6;
    --plaque-sombre: #F7F1EC;
    --ombre-objet: rgba(0, 0, 0, .5);
    --fond: linear-gradient(180deg, #171311 0%, #171311 48%, #221C19 100%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--canvas) var(--fond);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 44px) clamp(16px, 5vw, 56px) clamp(16px, 2.5vw, 28px);
}

a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ Accueil */

.accueil {
  display: grid;
  align-content: center;
  gap: clamp(28px, 5.5vh, 64px);
}

/* La scène : le logo au centre, trois plaques au-dessus et trois en dessous sur téléphone,
   trois de chaque côté sur ordinateur. */
.scene {
  --u: clamp(54px, 17.5vw, 76px); /* côté d'une plaque moyenne */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: end;
  row-gap: calc(var(--u) * .46);
  padding-top: calc(var(--u) * .5);
}
.objets { display: contents; margin: 0; padding: 0; list-style: none; }

.marque {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  width: min(100%, 44rem);
  line-height: 0;
}
.marque svg { display: block; width: 100%; height: auto; overflow: visible; }
.marque__mot { fill: var(--ink); }
.marque__fantome { fill: var(--ink); fill-opacity: var(--logo-fantome); }
.marque__carre { fill: var(--logo-carre); }

/* Une plaque : le fantôme en pointillés reste à sa place, la plaque pleine est déplacée en haut à droite
   (même direction que dans le logo) et porte l'objet, qui déborde. */
.tuile {
  --t: var(--u);
  position: relative;
  width: var(--t);
  height: var(--t);
  grid-row: 1;
}
.tuile:nth-child(n+3) { grid-row: 3; align-self: start; margin-top: calc(var(--u) * .5); }
.tuile--petite { --t: calc(var(--u) * .8); }
.tuile--grande { --t: calc(var(--u) * 1.18); }

.tuile__fantome,
.tuile__plaque {
  position: absolute;
  inset: 0;
  border-radius: 21%;
}
.tuile__fantome { border: 2px dashed var(--camel); }
.tuile__porte {
  position: absolute;
  inset: 0;
  transform: translate(16%, -33%);
  transition: transform .45s var(--pose);
}
.tuile__plaque { background: var(--sable); }
.tuile--papier .tuile__plaque { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.tuile--camel .tuile__plaque { background: var(--camel); }
.tuile--cognac .tuile__plaque { background: var(--cognac); }
.tuile--noir .tuile__plaque { background: var(--plaque-sombre); }
.tuile--taupe .tuile__plaque { background: #8C6A5B; }

.tuile__objet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124%;
  height: auto;
  margin: -62% 0 0 -62%;
  filter: drop-shadow(0 calc(var(--t) * .07) calc(var(--t) * .06) var(--ombre-objet));
  transition: transform .45s var(--pose);
}
.tuile--tourne-g .tuile__objet { rotate: -7deg; }
.tuile--tourne-d .tuile__objet { rotate: 6deg; }

/* Décalages : pas deux plaques sur la même ligne. */
.tuile--a { grid-column: 1; translate: 4% 0; }
.tuile--b { grid-column: 2; translate: 30% -40%; }
.tuile--c { grid-column: 2; translate: -30% 30%; }
.tuile--d { grid-column: 3; translate: -6% 0; }

/* Au survol, la plaque retrouve sa place sur le fantôme et l'objet se soulève. */
@media (hover: hover) {
  .tuile:hover .tuile__porte { transform: translate(0, 0); }
  .tuile:hover .tuile__objet { transform: translateY(-9%) scale(1.06); }
}

/* ------------------------------------------------------------------ Le propos */

.propos { display: grid; gap: clamp(20px, 3vh, 28px); }

.titre { display: grid; gap: 0; }
.accroche {
  margin: 0;
  max-width: 20ch;
  font-weight: 500;
  font-size: clamp(1.75rem, 7.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.metier {
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  font-weight: 500;
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  line-height: 1.3;
  color: var(--cognac-ink);
}
.services {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink-muted);
}
.services li { display: inline; white-space: nowrap; }
.services li + li::before { content: "·"; margin: 0 .5em; color: var(--camel); font-weight: 500; }
/* Sur téléphone, deux lignes de deux, sans point en début de ligne. */
@media (max-width: 559px) {
  .services li:nth-child(2)::after { content: "\A"; white-space: pre; }
  .services li:nth-child(3)::before { content: none; }
}

.suite { display: grid; justify-items: start; gap: 18px; max-width: 26rem; }
.phrase {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: balance;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 26px 12px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .14s, box-shadow .14s;
}
.bouton__pastille {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cognac);
  color: #F7F1EC;
  transition: rotate .3s var(--pose);
}
.bouton__pastille svg { width: 16px; height: 16px; }
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cognac); }
.bouton:hover .bouton__pastille { rotate: -12deg; }
.bouton:active { transform: translate(0, 0); box-shadow: none; }

.signature { margin: 0; font-size: .9375rem; color: var(--ink-muted); }
.signature strong { font-weight: 500; color: var(--ink); }

.pied {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(20px, 4vh, 40px);
  font-size: .8125rem;
  font-weight: 300;
}
.pied a { color: var(--ink-muted); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.pied a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ Ordinateur */

@media (min-width: 900px) {
  .scene {
    --u: clamp(84px, 7.4vw, 100px);
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    row-gap: 0;
    padding: 0;
    min-height: clamp(330px, 46vh, 420px);
  }
  .marque { grid-row: 1; width: min(46%, 38rem); }
  .tuile,
  .tuile:nth-child(n+3) { position: absolute; grid-row: auto; grid-column: auto; translate: none; margin-top: 0; }
  .tuile--a { left: 2.5%;  top: 14%; }
  .tuile--c { left: 12.5%; top: 68%; }
  .tuile--b { right: 12.5%; top: 12%; }
  .tuile--d { right: 2.5%;  top: 56%; }

  .propos {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(32px, 8vw, 120px);
    align-items: end;
  }
  .accroche { max-width: 22ch; }
  .suite { padding-bottom: 6px; }
}

/* ------------------------------------------------------------------ Le moment d'entrée */

@media (prefers-reduced-motion: no-preference) {
  .marque__mot,
  .marque__fantome { animation: paraitre .7s ease-out both; }
  .marque__carre { animation: carre-se-deplace 1.1s var(--pose) .45s both; }

  .tuile__porte { animation: plaque-se-deplace 1.1s var(--pose) both; animation-delay: calc(.95s + var(--rang) * .09s); }
  .tuile__fantome { animation: paraitre .5s ease-out both; animation-delay: calc(.8s + var(--rang) * .09s); }
  .tuile--a { --rang: 0; } .tuile--b { --rang: 1; } .tuile--c { --rang: 2; } .tuile--d { --rang: 3; }

  .propos { animation: monter .8s var(--pose) 1.25s both; }
  .pied { animation: paraitre .8s ease-out 1.6s both; }

  @keyframes paraitre { from { opacity: 0; } }
  @keyframes monter { from { opacity: 0; transform: translateY(14px); } }
  /* Le carré part de son fantôme (24 unités à gauche, 49 plus bas dans le dessin du logo). */
  @keyframes carre-se-deplace { from { transform: translate(-24px, 49px); opacity: 0; } 25% { opacity: 1; } }
  @keyframes plaque-se-deplace { from { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } }

  /* Au défilement (téléphone surtout), les plaques glissent très légèrement, les petites plus que les grandes. */
  @supports (animation-timeline: scroll()) {
    .tuile { animation: glisser linear both; animation-timeline: scroll(root); }
    .tuile--petite { --glisse: -22px; }
    .tuile--grande { --glisse: -8px; }
    @keyframes glisser { to { transform: translateY(var(--glisse, -14px)); } }
  }
}

/* Pour qui limite les animations : aucun mouvement, y compris au survol. */
@media (prefers-reduced-motion: reduce) {
  .tuile__porte, .tuile__objet, .bouton, .bouton__pastille { transition: none; }
}

/* ------------------------------------------------------------------ Page des mentions légales */

.page--texte { grid-template-rows: auto 1fr; max-width: 72rem; }
.logo { display: block; width: clamp(120px, 26vw, 168px); height: auto; }
.texte { max-width: 42rem; padding: clamp(32px, 6vh, 64px) 0; font-weight: 300; font-size: 1.0625rem; line-height: 1.55; }
.texte h1 { margin: 0 0 8px; font-weight: 500; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.texte h2 { margin: 36px 0 8px; font-weight: 500; font-size: 1.1875rem; line-height: 1.3; }
.texte p { margin: 0 0 12px; }
.texte a { color: var(--cognac-ink); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.texte a:hover { text-decoration-thickness: 2px; }
.texte .discret { font-size: 0.8125rem; color: var(--ink-muted); }
.retour { color: var(--ink-muted); text-underline-offset: 0.2em; }
.texte .retour { color: var(--ink-muted); }
