/* Mamie : « Mamie est le nuage ». Un seul objet de particules : elle. Le
   reste est du texte. Aucun cadre, aucune icône, aucun graphique, pas de
   fil : la réponse remplace, elle ne s'empile pas. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("polices/CormorantGaramond-wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
}

:root {
  --fond: #FAF8F5;
  --encre: #1C1712;
  --encre-2: #7A746E;
  --encre-3: #ABA49B;
  --vert: #1E3A2F;
  --or: #B8890A;
  --violet: #9B8CF6;
  --rouge: #b3412f;
  --voix: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #171512; --encre: #EFEAE2; --encre-2: #A39C92; --encre-3: #6E6860;
    --vert: #8FBFA6; --or: #D9A72E; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 15px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
input, .lettre, .tout { -webkit-user-select: text; user-select: text; }

#ciel { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 28px 24px 28px 300px;
  max-width: 960px;
}
.ou {
  position: fixed; top: 22px; right: 28px; z-index: 2;
  font: 13px var(--ui); color: var(--encre-2); letter-spacing: .02em;
  background: none; border: 0; cursor: pointer;
}
.ou:hover { color: var(--encre); }
.corps { flex: 1; max-width: 36rem; }

/* L'espace libre : rien quand rien n'est demandé. Pas de zone, pas de cadre.
   L'objet s'y révèle en fondu pendant que la matière du nuage se pose. */
.espace { max-width: 36rem; }
.espace:empty { display: none; }
.objet { opacity: 0; transition: opacity .9s ease .35s; margin: 46px 0 4px; }
.objet.la { opacity: 1; }
.objet.part { opacity: 0; transition: opacity .45s ease; }
@media (prefers-reduced-motion: reduce) { .objet { transition: none; } }
.chiffre { font-family: var(--voix); font-size: 96px; line-height: 1; letter-spacing: -.01em; margin: 0; }

/* Les écarts, en classes : la fenêtre refuse tout style en ligne. */
.haut { margin-top: 34px; }
.pousse { margin-top: 12px; }
.serre { margin: 2px 0 0; }
.quoi.douce { color: var(--encre-2); }
.gestes.pousse { margin-top: 8px; }

/* ------------------------------------------------------------ la voix */
.voix { font-family: var(--voix); font-weight: 400; margin: 0; }
h1.voix { font-size: 44px; line-height: 1.05; margin: 34px 0 22px; }
p.voix { font-size: 22px; line-height: 1.35; margin: 0 0 6px; }
p.voix.douce { color: var(--encre-2); }
p.voix.doute { color: var(--or); }
p.voix.titre { margin-top: 44px; margin-bottom: 14px; }
p.voix.attente { color: var(--encre-2); font-style: italic; }
.petit { font: 13px/1.5 var(--ui); color: var(--encre-2); }
.quoi { font-family: var(--voix); font-size: 20px; line-height: 1.3; }
ul.puces, ol.puces { margin: 4px 0 10px; padding-left: 22px; font-family: var(--voix); font-size: 20px; line-height: 1.35; }
.verdict { font: 13px var(--ui); margin: 6px 0 0; }
.verdict.oui { color: var(--vert); }
.verdict.non { color: var(--or); }

/* --------------------------------------------------- ce qu'on peut faire */
button, .lien {
  font: 13px var(--ui); color: var(--vert);
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; text-decoration: none;
}
.lien { border-bottom: 1px solid color-mix(in srgb, var(--vert) 35%, transparent); padding-bottom: 1px; }
.lien:hover, button:hover { border-bottom-color: var(--vert); }
.plein {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--vert); color: var(--fond); font-weight: 500; border-bottom: 0;
}
.plein:hover { opacity: .88; }
.gestes { display: flex; gap: 22px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

/* ------------------------------------------------------------ les lignes */
ul.lignes { list-style: none; margin: 0; padding: 0; }
ul.lignes > li { position: relative; padding: 6px 0 6px 26px; }
/* Le repère : là où une particule vient se poser. Invisible en soi. */
.pt { position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; }
li .quoi + .lien { margin-left: 10px; }
li .pourquoi { margin: 4px 0 2px; max-width: 32rem; }
li .tout { margin-top: 6px; white-space: pre-line; color: var(--encre-2); font-size: 13px; line-height: 1.55; }
li .qui { display: block; font: 13px var(--ui); color: var(--encre-2); margin-top: 2px; }
li .qui.personne { color: var(--or); }
.retrait { margin: 14px 0 0 26px; }

/* ----------------------------------------------------- les autres */
.groupes { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 4px; }
.groupes button { font-family: var(--voix); font-size: 19px; color: var(--encre); border-bottom: 1px solid transparent; }
.groupes button[aria-pressed="true"] { border-bottom-color: var(--encre); }
.groupes button small { font: 12px var(--ui); color: var(--encre-2); margin-left: 5px; }

/* --------------------------------------------------------------- parler */
.parler { margin-top: 56px; max-width: 36rem; }
.parler input {
  width: 100%; border: 0; border-bottom: 1px solid var(--encre-3);
  background: transparent; color: var(--encre);
  font: 400 21px var(--voix); padding: 8px 0 8px 22px; outline: none;
}
.parler input::placeholder { color: var(--encre-2); }
.parler input:focus { border-bottom-color: var(--encre); }
.parler .champ { position: relative; }
.parler .champ .pt { left: 0; top: 16px; }
.exemples { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.exemples button { color: var(--encre-2); }
.exemples button:hover { color: var(--vert); }
.indice { margin-top: 18px; color: var(--encre-3); }

/* --------------------------------------------------------- le brouillon */
.titre-brouillon { font-family: var(--voix); font-size: 26px; line-height: 1.2; margin: 0 0 4px; }
.lettre {
  font-family: var(--voix); font-size: 20px; line-height: 1.45;
  padding: 18px 0; margin: 10px 0 8px; max-width: 34rem;
  border-top: 1px dotted var(--encre-3); border-bottom: 1px dotted var(--encre-3);
}
.lettre p { margin: 0 0 12px; white-space: pre-line; }   /* l'en-tête d'une lettre a des retours à la ligne, et ils comptent */
.lettre p:last-child { margin-bottom: 0; }
.fonde li { padding: 2px 0 2px 26px; }
.fonde .pt { top: 9px; }

/* --------------------------------------------------------------- la porte */
/* Les entreprises sont des lignes ; leur nom est la voix, pas un bouton. */
.entreprises .nom { font: 400 24px/1.3 var(--voix); color: var(--encre); border: 0; padding: 0; text-align: left; }
.entreprises .nom:hover { color: var(--vert); border: 0; }
.entreprises .nom.douce { color: var(--encre-2); font-size: 20px; }
.entreprises .qui { display: block; margin-top: 1px; }
.entreprises > li { padding: 10px 0 10px 26px; }
.entreprises > li.li-naissance { padding-top: 0; padding-bottom: 0; }
.entreprises > li.li-genres { padding-bottom: 4px; }
.entreprises > li.li-genres .groupes { flex-direction: column; gap: 8px; margin: 0; }
.entreprises > li.li-genres .groupes button { font-size: 24px; text-align: left; }
.entreprises > li.li-naissance:has(form[hidden]) { display: none; }
.naissance { position: relative; max-width: 30rem; padding: 6px 0 12px; }
.naissance .champ { position: relative; }
.naissance .champ .pt { left: -22px; top: 15px; }
.naissance input {
  width: 100%; border: 0; border-bottom: 1px solid var(--encre-3);
  background: transparent; color: var(--encre);
  font: 400 24px var(--voix); padding: 6px 0; outline: none;
}
.naissance input::placeholder { color: var(--encre-3); }
.naissance input:focus { border-bottom-color: var(--encre); }
.porte .voix.douce { margin-bottom: 18px; }

/* -------------------------------------------------------------- secret */
form.motif.secret input { font-family: var(--ui); letter-spacing: .12em; }
.cle-du-moteur { margin-top: 10px; max-width: 30rem; }
.suites { margin-top: 18px; }

/* ------------------------------------------------------------ répondre */
.reponse form.motif { max-width: 30rem; }
.reponse .gestes { margin-top: 6px; }

/* ----------------------------------------------------------- le motif */
form.motif { margin-top: 10px; display: flex; gap: 16px; align-items: baseline; }
form.motif input {
  flex: 1; border: 0; border-bottom: 1px solid var(--encre-3); background: transparent;
  font: 15px var(--ui); color: var(--encre); padding: 4px 0; outline: none;
}

/* ------------------------------------------------------------ mouvement */
.corps > section { animation: pose .5s ease-out both; }
@keyframes pose { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .corps > section { animation: none; } }

/* ------------------------------------------------------------- étroit */
@media (max-width: 720px) {
  .page { padding: 236px 20px 24px; }
  .ou { top: 18px; right: 20px; }
  h1.voix { font-size: 36px; margin-top: 8px; }
  p.voix { font-size: 20px; }
}

/* ------------------------------------------------------- ce que je vois */
.gestes.serre { margin: 4px 0 22px; }
