/* ==================================================================
   Mozu — site vitrine
   ------------------------------------------------------------------
   Application de la charte au web : papier chaud, encre presque
   noire, filets d'un pixel. Spectral pour les titres et les chiffres,
   IBM Plex Mono pour les labels et le texte courant. Cinq couleurs,
   l'or sous les 5 %, le rouge n'apparaît jamais ici (il est réservé
   aux états négatifs de l'interface, pas à la communication).
   Pas de dégradé, pas de verre dépoli, pas d'ombre décorative.
   ================================================================== */

@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url('polices/spectral-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url('polices/spectral-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap; src: url('polices/spectral-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('polices/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('polices/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --encre: #14120f;
  --encre-800: #35312a;
  --encre-600: #6b6555;
  --encre-500: #8b8473;
  --encre-300: #cdc7b6;
  --encre-100: #ebe6da;
  --papier: #f7f2ea;
  --papier-haut: #fdfaf3;
  --papier-creux: #efe9dd;
  --or: #9a7b3f;
  --or-600: #836635;
  --pierre: #cdc7b6;

  --serif: 'Spectral', ui-serif, 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 2px;
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-pop: 0 18px 44px -18px rgb(20 18 15 / 0.3), 0 2px 8px -2px rgb(20 18 15 / 0.08);

  --marge: clamp(20px, 5vw, 72px);
  --colonne: 1240px;
  --entete-h: 72px;
}

/* --- Socle ------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--encre); color: var(--papier); }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }

.acces {
  position: absolute; left: var(--marge); top: -60px;
  padding: 8px 12px; background: var(--encre); color: var(--papier);
  z-index: 100;
}
.acces:focus { top: 8px; }

/* --- Typographie ------------------------------------------------- */

.display { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: 0; }
.display-grand { letter-spacing: -0.02em; line-height: 0.98; }
.display-montant { font-variant-numeric: tabular-nums; }

.label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--encre-600);
}

.chapeau { font-size: 17px; line-height: 1.65; max-width: 56ch; }

.filet { height: 1px; background: var(--encre-300); }

.points li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  color: var(--encre-800);
}
.points li::before {
  content: '';
  position: absolute; left: 0; top: 0.75em;
  width: 10px; height: 1px; background: var(--encre);
}

.lien {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--encre-600);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-quint), border-color 0.3s var(--ease-quint);
}
.lien:hover { color: var(--encre); border-bottom-color: var(--encre); }

/* --- Boutons : chaque variante porte une bordure --------------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--encre);
  background: transparent;
  border: 1px solid var(--encre);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.35s var(--ease-quint), color 0.35s var(--ease-quint), transform 0.35s var(--ease-quint);
}
.bouton:hover { background: var(--encre); color: var(--papier); }
.bouton:active { transform: translateY(1px); }
.bouton-or { background: var(--or); border-color: var(--or); color: var(--papier); }
.bouton-or:hover { background: var(--or-600); border-color: var(--or-600); color: var(--papier); }
.bouton-large { width: 100%; height: 52px; margin-top: 28px; }
.bouton:focus-visible, .lien:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--encre); outline-offset: 3px;
}

/* --- Soroban : géométrie fixe, jamais étirée ------------------------- */

.soroban { aspect-ratio: 1; }
.soroban .tige { fill: currentColor; opacity: 0.28; }
.soroban .barre { fill: currentColor; }
.soroban .perle { fill: currentColor; }
.soroban .perle-or { fill: var(--or); }

/* --- En-tête ------------------------------------------------------ */

.entete {
  position: fixed; inset: 0 0 auto 0;
  height: var(--entete-h);
  padding: 0 var(--marge);
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--papier) 86%, transparent);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid transparent;
  z-index: 50;
}
.entete.est-collee { border-bottom-color: var(--encre-300); height: 60px; }
.entete.est-encre { background: var(--encre); color: var(--papier); border-bottom-color: rgb(247 242 234 / 0.2); }
.entete.est-encre .lockup { color: var(--papier); }
.entete.est-encre .nav > a:not(.bouton) { color: var(--encre-300); }
.entete.est-encre .nav > a:not(.bouton):hover { color: var(--papier); border-bottom-color: var(--papier); }
.entete { transition: border-color 0.4s var(--ease-quint), height 0.4s var(--ease-quint), background-color 0.4s var(--ease-quint), color 0.4s var(--ease-quint); }

.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--encre); }
.lockup .soroban { width: 30px; }
.lockup-nom { font-family: var(--serif); font-size: 22px; letter-spacing: 0.14em; line-height: 1; padding-top: 2px; }
.lockup-pied .soroban { width: 24px; }
.lockup-pied .lockup-nom { font-size: 18px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.bouton) {
  white-space: nowrap;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--encre-600);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-quint), border-color 0.3s var(--ease-quint);
}
.nav > a:not(.bouton):hover { color: var(--encre); border-bottom-color: var(--encre); }
.nav .bouton { height: 38px; padding: 0 16px; }

/* --- Héros -------------------------------------------------------- */

.heros {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--entete-h) + 8vh) var(--marge) 10vh;
  max-width: var(--colonne); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
}

.heros-texte { position: relative; }
.heros-texte h1 { font-size: clamp(44px, 6.2vw, 88px); margin: 18px 0 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 36px; }
.action-beta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.action-mention { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--encre-600); }

.heros-soroban { position: relative; display: flex; flex-direction: column; align-items: center; }
.soroban-heros {
  width: min(100%, 420px);
  color: var(--encre);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.soroban-heros { cursor: none; overflow: visible; }
.soroban-heros .doigt { fill: var(--encre); opacity: 0; transition: opacity 0.25s var(--ease-quint); pointer-events: none; }
.soroban-heros .tige { transform-origin: 50% 10px; transform: scaleY(0); animation: tige-trace 0.9s var(--ease-quint) forwards; }
.soroban-heros .tige:nth-child(2) { animation-delay: 0.14s; }
.soroban-heros .tige:nth-child(3) { animation-delay: 0.28s; }
.soroban-heros .barre { transform-origin: 8px 50%; transform: scaleX(0); animation: barre-trace 0.8s var(--ease-quint) 0.35s forwards; }
@keyframes tige-trace { to { transform: scaleY(1); } }
@keyframes barre-trace { to { transform: scaleX(1); } }


/* --- La chaîne : six étapes, cinq perles --------------------------------
   Mots et perles sont des éléments frères répartis par space-between : chaque
   perle tombe au milieu exact de l'espace entre ses deux mots. Pas de trait. */

.chaine-bloc {
  background: var(--encre); color: var(--papier);
  padding: clamp(44px, 7vh, 72px) var(--marge);
  margin-bottom: 12vh;
}
.chaine-interieur { max-width: calc(var(--colonne) - 2 * var(--marge)); margin: 0 auto; }
.chaine {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 clamp(22px, 3vh, 32px);
  border-bottom: 1px solid rgb(247 242 234 / 0.18);
}
.chaine-mot { font-family: var(--serif); font-size: clamp(15px, 1.9vw, 30px); line-height: 1.1; white-space: nowrap; }
.chaine-perle { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--papier); }
.chaine-texte { color: var(--encre-300); max-width: 64ch; margin-top: clamp(20px, 3vh, 28px); }

/* --- Trois piliers ------------------------------------------------- */

.verbes-tete { padding-bottom: 36px; }
/* Le titre tient sur une ligne : environ 19,6 fois la taille de police, pour une
   colonne de 90 % de l'écran (5vw de marge de chaque côté). */
.verbes-tete h2 { font-size: clamp(28px, 4.4vw, 54px); margin-top: 16px; white-space: nowrap; }

.verbes { max-width: var(--colonne); margin: 0 auto; padding: 0 var(--marge) 2vh; }
.verbes-liste {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding-top: 40px;
  counter-reset: aucun;
}
/* Un pilier : le titre seul, sa description au survol.
   Les colonnes voisines s'effacent, un filet se trace sous le titre, le « + »
   tourne en « × » et la bulle se déplie dessous — même langage que la bulle de
   la recherche. Au doigt, un tap l'ouvre. */
.verbes { position: relative; z-index: 2; }
.pilier { position: relative; transition: opacity 0.45s var(--ease-quint); }
@media (hover: hover) and (pointer: fine) {
  .verbes-liste:has(.pilier:hover) .pilier:not(:hover) { opacity: 0.4; }
}
.pilier-titre { font-size: clamp(22px, 2vw, 27px); margin: 14px 0 0; }
.pilier-bouton {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%;
  font: inherit; line-height: 1.15; color: inherit; text-align: left; letter-spacing: inherit;
  padding: 0 0 14px; cursor: pointer;
  background-image: linear-gradient(var(--encre), var(--encre));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 0.6s var(--ease-quint);
}
.pilier-bouton:focus-visible { outline: 1px solid var(--encre); outline-offset: 4px; }
.pilier-signe {
  position: relative; flex: none; width: 22px; height: 22px; margin-top: 4px;
  border: 1px solid var(--encre-300); border-radius: 50%;
  transition: transform 0.5s var(--ease-quint), border-color 0.3s var(--ease-quint), background-color 0.3s var(--ease-quint);
}
.pilier-signe::before, .pilier-signe::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; margin: -0.5px 0 0 -4.5px;
  background: var(--encre); transition: background-color 0.3s var(--ease-quint);
}
.pilier-signe::after { transform: rotate(90deg); }
.pilier-bulle {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 3;
  margin-top: 12px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.35s var(--ease-quint), transform 0.35s var(--ease-quint);
}
.pilier-bulle::before {
  content: ''; position: absolute; top: -6px; left: 26px; width: 10px; height: 10px;
  background: var(--papier-haut); border-left: 1px solid var(--encre-300); border-top: 1px solid var(--encre-300);
  transform: rotate(45deg);
}
.pilier-bulle-interieur {
  background: var(--papier-haut);
  border: 1px solid var(--encre-300); border-radius: 3px;
  box-shadow: var(--shadow-pop);
  padding: 18px 20px;
}
.pilier-bulle p, .pilier-bulle li { color: var(--encre-800); font-size: 14px; }
.pilier-bulle .points li:first-child { margin-top: 0; }

.pilier-bouton:focus-visible { background-size: 100% 1px; }
.pilier:has(.pilier-bouton:focus-visible) .pilier-signe { transform: rotate(135deg); border-color: var(--encre); background: var(--encre); }
.pilier:has(.pilier-bouton:focus-visible) .pilier-signe::before, .pilier:has(.pilier-bouton:focus-visible) .pilier-signe::after { background: var(--papier); }
.pilier:has(.pilier-bouton:focus-visible) .pilier-bulle { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .pilier:hover .pilier-bouton { background-size: 100% 1px; }
  .pilier:hover .pilier-signe { transform: rotate(135deg); border-color: var(--encre); background: var(--encre); }
  .pilier:hover .pilier-signe::before, .pilier:hover .pilier-signe::after { background: var(--papier); }
  .pilier:hover .pilier-bulle { opacity: 1; transform: none; }
}

/* --- Blocs texte + maquette --------------------------------------- */

.bloc {
  max-width: var(--colonne); margin: 0 auto;
  padding: 10vh var(--marge);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.bloc-inverse .bloc-texte { order: 2; }
.bloc-inverse .bloc-maquette { order: 1; }
.bloc-texte, .bloc-maquette { min-width: 0; }
.bloc-texte h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.01em; margin: 14px 0 20px; }
.bloc-texte > p { color: var(--encre-800); }
.bloc-texte .points { margin-top: 24px; }
.bloc-maquette { will-change: transform; }

/* Un écran de l'application, tel quel : filets, labels, Spectral. */
.ecran {
  background: var(--papier-haut);
  border: 1px solid var(--encre-300);
  border-radius: 3px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  font-size: 13px;
}
.ecran-barre {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 22px 12px;
}
.ecran-nom { font-size: 24px; }
.ecran-onglets { display: flex; gap: 22px; padding: 0 22px; border-bottom: 1px solid var(--encre-300); }
.ecran-onglets span {
  padding: 8px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--encre-500); border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.ecran-onglets .courant { color: var(--encre); border-bottom-color: var(--or); }
.ecran-corps { padding: 18px 22px 22px; }

.seance-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--encre-300); }
.seance-tete .display { font-size: 17px; }
.rubrique { padding: 14px 0 0; }
.rubrique + .rubrique { margin-top: 4px; border-top: 1px solid var(--encre-100); }
.rubrique p { margin-top: 4px; color: var(--encre-800); }

.eva-barre { position: relative; height: 4px; background: var(--encre-100); margin: 12px 0 8px; }
.eva-curseur {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--valeur); background: var(--encre);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.2s var(--ease-quint) 0.4s;
}
.est-visible .eva-curseur { transform: scaleX(1); }
.eva-note { font-size: 22px; }
.eva-note small { font-family: var(--mono); font-size: 11px; color: var(--encre-500); margin-left: 10px; letter-spacing: 0.04em; }

/* L'aperçu de la fiche : la barre de recherche de l'application en tête.
   Elle tape d'elle-même, déroule ses résultats, ouvre la fiche trouvée ; un
   clic la suspend et ouvre la bulle qui la décrit. */
.ecran-fiche { position: relative; }
.ecran-appli { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--encre-300); background: var(--papier); }
.recherche-champ {
  position: relative;
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 42px; padding: 0 12px;
  font: inherit; font-size: 14px; color: var(--encre); text-align: left;
  background: var(--papier-haut);
  border: 1px solid var(--encre-300); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.35s var(--ease-quint), background-color 0.35s var(--ease-quint);
}
.recherche-champ:hover, .recherche-champ[aria-expanded="true"] { border-color: var(--encre); }
.recherche-champ.est-active { border-color: var(--encre); }
.recherche-champ svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.recherche-texte { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 100%; overflow: hidden; white-space: nowrap; }
.recherche-invite {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  color: var(--encre-500); font-size: 13px; pointer-events: none;
  transition: opacity 0.25s var(--ease-quint);
}
.recherche-champ.a-saisie .recherche-invite { opacity: 0; }
.curseur { flex: none; width: 1px; height: 18px; margin-left: 1px; background: var(--encre); opacity: 0; }
.recherche-champ.est-active .curseur { opacity: 1; animation: clignote 1s steps(2, start) infinite; }
.recherche-touche {
  flex: none;
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--encre-500);
  padding: 2px 6px; border: 1px solid var(--encre-300); border-radius: var(--radius);
}
/* L'action offerte : un point d'or qui respire, le seul accent de l'aperçu. */
.recherche-signal {
  position: absolute; right: -4px; top: -4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--or);
  animation: signal 2.4s var(--ease-quart) infinite;
}
.recherche-champ[aria-expanded="true"] .recherche-signal { animation: none; opacity: 0; }
@keyframes signal {
  0%, 100% { box-shadow: 0 0 0 0 rgb(154 123 63 / 0.45); }
  60% { box-shadow: 0 0 0 7px rgb(154 123 63 / 0); }
}

.recherche-deroulant {
  position: absolute; left: 16px; right: 16px; top: calc(100% - 8px); z-index: 2;
  background: var(--papier-haut);
  border: 1px solid var(--encre-300); border-radius: 3px;
  box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.35s var(--ease-quint), transform 0.35s var(--ease-quint);
}
.recherche-deroulant.est-ouvert { opacity: 1; transform: none; }
.resultats { padding: 4px 0; }
.resultats li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
  padding: 10px 14px; border-top: 1px solid var(--encre-100);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s var(--ease-quint), transform 0.45s var(--ease-quint), background-color 0.3s var(--ease-quint);
  transition-delay: calc(var(--j, 0) * 90ms);
}
.resultats li:first-child { border-top: 0; }
.recherche-deroulant.est-ouvert .resultats li { opacity: 1; transform: none; }
.resultats li.est-choisi { background: var(--encre-100); transition-delay: 0s; }
.resultats .display { font-size: 15px; }
.resultats p { grid-column: 1 / -1; color: var(--encre-600); font-size: 12px; }
mark { background: transparent; color: var(--encre); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--or); }

.fiche-contenu { transition: opacity 0.35s var(--ease-quint), filter 0.35s var(--ease-quint); }
.fiche-contenu.est-assourdie { opacity: 0.35; }
.fiche-contenu.change { opacity: 0; }
.eva-curseur { transition: transform 1.2s var(--ease-quint) 0.4s, width 0.8s var(--ease-quint); }

/* --- Bulle : un calque flottant, posé au niveau du document -------------- */

.bulle {
  position: absolute; z-index: 60;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 20px 20px;
  background: var(--papier-haut); color: var(--encre);
  border: 1px solid var(--encre-300); border-radius: 3px;
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease-quint), transform 0.3s var(--ease-quint);
}
.bulle.est-ouverte { opacity: 1; transform: none; }
.bulle:focus { outline: none; }
.recherche-champ:focus-visible { outline: 1px solid var(--encre); outline-offset: 3px; }
.bulle.en-dessus { transform: translateY(-6px); }
.bulle.en-dessus.est-ouverte { transform: none; }
.bulle-fleche {
  position: absolute; top: -6px; left: var(--fleche, 28px);
  width: 10px; height: 10px; background: var(--papier-haut);
  border-left: 1px solid var(--encre-300); border-top: 1px solid var(--encre-300);
  transform: rotate(45deg);
}
.bulle.en-dessus .bulle-fleche { top: auto; bottom: -6px; transform: rotate(225deg); }
.bulle-tete { display: flex; justify-content: space-between; align-items: center; }
.bulle-titre { font-size: 22px; margin: 10px 0 8px; }
.bulle p { color: var(--encre-800); }
.bulle .points { margin-top: 10px; }
.bulle .points li { margin-top: 6px; }

/* Facture : noir sur blanc, elle est du praticien, pas de Mozu. */
.feuille {
  position: relative;
  background: #fff;
  color: #111;
  border: 1px solid var(--encre-300);
  box-shadow: var(--shadow-pop);
  padding: 32px 34px 30px;
  font-size: 13px;
  max-width: 520px; margin: 0 auto;
}
.feuille-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; }
.feuille-praticien { font-size: 20px; display: block; }
.feuille-numero { font-size: 18px; white-space: nowrap; }
.feuille-lignes { padding: 16px 0; }
.feuille-lignes > div { display: flex; justify-content: space-between; gap: 20px; }
.feuille-lignes .display { font-size: 15px; white-space: nowrap; }
.feuille-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.feuille-total .display { font-size: 30px; }
.tampon {
  position: absolute; right: 160px; bottom: 34px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--encre); border-radius: var(--radius);
  transform: rotate(-6deg) scale(1.6); opacity: 0;
  transition: transform 0.5s var(--ease-quint) 0.7s, opacity 0.5s var(--ease-quint) 0.7s;
}
.est-visible .tampon { transform: rotate(-6deg) scale(1); opacity: 1; }

/* Comptabilité */
.ecran-compta { padding: 22px 22px 20px; }
.compta-tete { display: flex; gap: 40px; flex-wrap: wrap; padding-bottom: 18px; }
.compta-tete .display { font-size: 34px; margin-top: 4px; display: block; }
.graphe {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px;
  height: 140px; align-items: end;
  padding: 18px 0 26px;
  position: relative;
}
.graphe span {
  position: relative; height: 100%; display: flex; align-items: flex-end;
}
.graphe span::before {
  content: ''; display: block; width: 100%;
  height: var(--h, 0%); background: var(--encre);
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 1s var(--ease-quint);
  transition-delay: calc(var(--j, 0) * 60ms);
}
.graphe span.courant::before { background: var(--or); }
.graphe span.vide::before { height: 100%; background: transparent; border: 1px dashed var(--encre-300); }
.est-visible .graphe span::before { transform: scaleY(1); }
.graphe span i {
  position: absolute; left: 0; right: 0; bottom: -22px;
  font-style: normal; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; text-align: center;
  color: var(--encre-500);
}
.resultats-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 18px; }
.resultats-deux .display { font-size: 26px; display: block; margin: 4px 0 6px; }
.resultats-deux small { font-size: 11px; color: var(--encre-500); line-height: 1.5; display: block; }

/* La banque : le journal des transactions du compte pro. Les opérations
   arrivent l'une après l'autre ; celle qui attend sa catégorie porte la
   suggestion, seule touche d'or de l'écran. */
.ecran-banque { padding: 22px 22px 18px; }
.banque-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.banque-mois { font-size: 26px; display: block; margin-top: 4px; }
.banque-synchro {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--encre-600); white-space: nowrap; padding-top: 2px;
}
.banque-point { width: 6px; height: 6px; border-radius: 50%; background: var(--encre); animation: statut 1.8s var(--ease-quart) infinite; }
.banque-totaux {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 18px 0 6px; padding: 14px 0; border-top: 1px solid var(--encre-300); border-bottom: 1px solid var(--encre-300);
}
.banque-totaux .display { font-size: 22px; display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.operations { list-style: none; margin: 0; padding: 0; }
.operation {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--encre-100);
}
.js .operation {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease-quint), transform 0.6s var(--ease-quint);
  transition-delay: calc(0.35s + var(--j, 0) * 110ms);
}
.js .est-visible .operation { opacity: 1; transform: none; }
.op-date { font-family: var(--serif); font-size: 16px; color: var(--encre-500); font-variant-numeric: tabular-nums; }
.op-libelle { min-width: 0; }
.op-marchand { display: block; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-libelle small { display: block; font-size: 10px; color: var(--encre-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-categorie {
  font-size: 11px; color: var(--encre-800); white-space: nowrap;
  padding: 3px 8px; border: 1px solid var(--encre-300); border-radius: var(--radius); background: var(--papier);
}
.op-suggestion { border-color: var(--or); color: var(--or-600); background: var(--papier-haut); }
.op-suggere {
  font-size: 9px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  margin-right: 8px; color: var(--or);
}
.op-montant { font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.banque-pied {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 14px 0 0; font-size: 12px; color: var(--encre-600);
}
.banque-pied span { white-space: nowrap; }
.banque-pied span:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--encre-300); }

/* --- Bientôt : un panneau d'encre dans la colonne ------------------------
   En tête, une tige et une perle d'or qui la parcourt : ce qui est en chemin. */

.bientot { max-width: var(--colonne); margin: 0 auto; padding: 12vh var(--marge) 0; }
.bientot + .encre { margin-top: 16vh; }
.panneau {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  background: var(--encre); color: var(--papier);
  border-radius: 4px;
  padding: clamp(48px, 6vw, 84px) clamp(28px, 5vw, 72px) clamp(40px, 5vw, 68px);
}
.panneau-tige { position: absolute; left: clamp(28px, 5vw, 72px); right: clamp(28px, 5vw, 72px); top: clamp(22px, 2.6vw, 34px); height: 1px; background: rgb(247 242 234 / 0.18); }
.panneau-tige span {
  position: absolute; top: 50%; left: 0;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--or);
}
.est-visible .panneau-tige span { animation: parcours 7s var(--ease-quint) infinite; }
@keyframes parcours {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  70% { left: 100%; opacity: 1; }
  80%, 100% { left: 100%; opacity: 0; }
}
.panneau .label { color: var(--encre-300); }
.panneau .panneau-label { color: var(--or); }
.panneau-tete h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.015em; line-height: 1.02; margin: 16px 0 20px; }
.panneau-tete p { color: var(--encre-300); max-width: 46ch; }
.bouton-clair { margin-top: 32px; color: var(--papier); border-color: rgb(247 242 234 / 0.5); }
.bouton-clair:hover { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.panneau-liste { display: grid; align-content: center; }
.nouveaute { padding: 26px 0; border-top: 1px solid rgb(247 242 234 / 0.18); }
.nouveaute:first-child { border-top: 0; padding-top: 4px; }
.nouveaute:last-child { padding-bottom: 0; }
.nouveaute-tete { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nouveaute h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 14px 0 10px; }
.nouveaute p { color: var(--encre-300); font-size: 14px; }
.statut {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--papier);
  padding: 3px 9px; border: 1px solid rgb(247 242 234 / 0.3); border-radius: var(--radius);
  white-space: nowrap;
}
.statut-point { width: 6px; height: 6px; border-radius: 50%; background: var(--papier); animation: statut 1.8s var(--ease-quart) infinite; }
@keyframes statut { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* --- Sécurité : aplat encre, symbole inversé ------------------------- */

.encre {
  position: relative; overflow: hidden;
  background: var(--encre); color: var(--papier);
  margin-top: 8vh;
  padding: 14vh var(--marge) 12vh;
}
.encre .label { color: var(--encre-300); }
.encre-fond {
  position: absolute; right: -6%; top: 50%; width: min(70vw, 720px);
  transform: translateY(-50%);
  opacity: 0.08; color: var(--papier);
  pointer-events: none;
}
.encre-texte { max-width: var(--colonne); margin: 0 auto; position: relative; }
.encre-texte h2 { font-size: clamp(40px, 6vw, 88px); margin: 18px 0 24px; }
.encre-texte .chapeau { color: var(--encre-300); max-width: none; }

.chiffres {
  position: relative;
  max-width: var(--colonne); margin: 10vh auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid rgb(247 242 234 / 0.25);
  padding-top: 32px;
}
.chiffres dd { font-size: clamp(44px, 5vw, 72px); margin: 10px 0 12px; font-variant-numeric: tabular-nums; }
.chiffres p { font-size: 13px; color: var(--encre-300); }

/* --- Bêta ------------------------------------------------------------ */

.beta { max-width: var(--colonne); margin: 0 auto; padding: 12vh var(--marge) 14vh; }
.beta-grille {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
  padding-top: 40px;
}
.beta-texte h2 { font-size: clamp(40px, 5.5vw, 76px); margin: 18px 0 24px; }
.beta-carte {
  background: var(--papier-haut);
  border: 1px solid var(--encre-300);
  border-radius: 3px;
  padding: 28px 30px 30px;
}
.beta-carte .points li:first-child { margin-top: 0; }

/* --- Pied ------------------------------------------------------------ */

.pied { max-width: var(--colonne); margin: 0 auto; padding: 0 var(--marge) 40px; }
.pied-ligne { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.pied-liens { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lien-texte { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--encre-300); }
.lien-texte:hover { text-decoration-color: var(--encre); }

/* --- Pages légales ------------------------------------------------------ */

.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--entete-h) + 8vh) var(--marge) 12vh; }
.legal-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin: 16px 0 14px; }
.legal-date { font-size: 12px; color: var(--encre-500); }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 16px; }
.legal h3.label { margin: 26px 0 10px; }
.legal section { padding: 32px 0; border-top: 1px solid var(--encre-300); }
.legal p, .legal li, .legal address { color: var(--encre-800); }
.legal address { font-style: normal; }
.legal p + p, .legal ul + p, .legal p + ul, .legal dl + p { margin-top: 12px; }
.legal .points { margin: 10px 0; }
.legal dl { display: grid; grid-template-columns: fit-content(250px) 1fr; gap: 10px 28px; margin: 18px 0; }
.legal dt { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-600); padding-top: 3px; }
.legal dd { color: var(--encre-800); }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.legal th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-600); padding: 0 20px 10px 0; border-bottom: 1px solid var(--encre-300); }
.legal td { text-align: left; vertical-align: top; color: var(--encre-800); padding: 10px 20px 10px 0; border-bottom: 1px solid var(--encre-300); }
.legal th:last-child, .legal td:last-child { padding-right: 0; }
.legal table + p { margin-top: 12px; }
.legal .a-completer { color: var(--encre-500); font-style: italic; }
.legal .actions { margin-top: 20px; }
.legal-pied { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 36px; border-top: 1px solid var(--encre-300); }
.impression, .impression-seule { display: none; }

/* --- Impression : le document dans la charte, noir sur blanc ------------ */

@page { size: A4; margin: 18mm 18mm 20mm; }
@media print {
  html { scroll-behavior: auto; }
  body { background: #fff; color: #111; font-size: 10pt; line-height: 1.55; }
  .entete, .pied, .acces, .telecharger { display: none !important; }
  .impression { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8mm; margin-bottom: 8mm; border-bottom: 1px solid #111; }
  .impression-lockup { display: inline-flex; align-items: center; gap: 8px; }
  .impression-lockup .soroban { width: 22px; }
  .impression-lockup .lockup-nom { font-family: var(--serif); font-size: 16px; letter-spacing: 0.14em; }
  .impression .label { color: #555; }
  .impression-seule { display: block; margin-top: 12px; }
  .legal { max-width: none; padding: 0; }
  .legal-tete { padding-bottom: 6mm; }
  .legal h1 { font-size: 30pt; margin: 4mm 0 3mm; }
  .legal h2 { font-size: 15pt; break-after: avoid; }
  .legal h3.label { break-after: avoid; }
  .legal section { padding: 6mm 0; border-top-color: #ccc; }
  .legal p, .legal li, .legal dd, .legal address { color: #111; }
  .legal dt, .legal .label, .legal-date { color: #555; }
  .legal .a-completer { color: #777; }
  .legal .points li::before { background: #111; }
  .legal dl { break-inside: avoid; }
  .legal td { color: #111; border-bottom-color: #ccc; }
  .legal th { color: #555; border-bottom-color: #ccc; }
  .legal tr { break-inside: avoid; }
  .legal li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .lien-texte { text-decoration: underline; text-decoration-color: #999; }
}

@media (max-width: 640px) {
  .legal dl { grid-template-columns: 1fr; gap: 4px; }
  .legal dd { margin-bottom: 10px; }
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--encre-300); }
  .legal td { padding: 0; border: 0; }
  .legal td + td { margin-top: 10px; }
  .legal td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-600); margin-bottom: 4px; }
}

/* --- Animations ------------------------------------------------------- */

/* Sans JavaScript, rien n'est caché : les classes ne s'appliquent que sous html.js. */
.js .revele {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-quint), transform 0.9s var(--ease-quint);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .revele.est-visible { opacity: 1; transform: none; }

.js .trace {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-quint);
}
.js .trace.est-visible { transform: scaleX(1); }

@keyframes clignote { to { visibility: hidden; } }

/* --- Mouvement réduit : tout s'immobilise, rien ne disparaît ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele, .js .trace, .resultats li, .eva-curseur, .graphe span::before, .tampon, .js .operation {
    opacity: 1; transform: none; transition: none;
  }
  .curseur, .recherche-champ.est-active .curseur, .recherche-signal, .statut-point, .banque-point, .est-visible .panneau-tige span { animation: none; }
  .panneau-tige span { left: 62%; }
  .bulle, .recherche-deroulant, .resultats li, .fiche-contenu, .pilier, .pilier-bouton, .pilier-signe, .pilier-bulle { transition: none; }
  .soroban-heros .tige, .soroban-heros .barre { animation: none; transform: none; }
  .soroban-heros { cursor: default; }
  [data-parallaxe] { transform: none !important; }
}

/* --- Écrans étroits ----------------------------------------------------- */

@media (max-width: 960px) {
  .heros { grid-template-columns: 1fr; padding-top: calc(var(--entete-h) + 4vh); min-height: auto; }
  .heros-texte h1 { font-size: clamp(40px, 10vw, 72px); }
  .heros-soroban { margin-top: 6vh; }
  .verbes-liste { grid-template-columns: 1fr; gap: 36px; }
  .bloc { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 8vh var(--marge); }
  .heros { grid-template-columns: minmax(0, 1fr); }
  .verbes-liste { grid-template-columns: minmax(0, 1fr); }
  .verbes { padding-bottom: 2vh; }
  .pilier-bulle { position: static; margin-top: 0; opacity: 1; transform: none; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-quint); }
  .pilier-bulle::before { display: none; }
  .pilier-bulle-interieur { overflow: hidden; min-height: 0; background: none; border: 0; box-shadow: none; padding: 0; }
  .pilier-bulle p, .pilier-bulle .points { padding-top: 14px; }
  .pilier.est-ouvert .pilier-bulle, .pilier:has(.pilier-bouton:focus-visible) .pilier-bulle { grid-template-rows: 1fr; }
  .pilier.est-ouvert .pilier-signe { transform: rotate(135deg); border-color: var(--encre); background: var(--encre); }
  .pilier.est-ouvert .pilier-signe::before, .pilier.est-ouvert .pilier-signe::after { background: var(--papier); }
  .pilier.est-ouvert .pilier-bouton { background-size: 100% 1px; }
  .chaine { flex-direction: column; align-items: flex-start; gap: 14px; }
  .chaine-perle { display: none; }
  .chaine-mot { font-size: 22px; display: inline-flex; align-items: center; gap: 14px; }
  .chaine-mot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--papier); }
  .beta-grille { grid-template-columns: minmax(0, 1fr); }
  .panneau { grid-template-columns: minmax(0, 1fr); }
  .bloc-inverse .bloc-texte { order: 1; }
  .bloc-inverse .bloc-maquette { order: 2; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beta-grille { grid-template-columns: 1fr; }
  .encre-fond { width: 90vw; right: -30%; }
  /* Quatre liens et le bouton ne tiennent plus sur une ligne : le bouton reste. */
  .nav > a:not(.bouton) { display: none; }
}

@media (max-width: 640px) {
  .verbes-tete h2 { white-space: normal; }
  .nav > a:not(.bouton) { display: none; }
  .resultats li { grid-template-columns: minmax(0, 1fr); }
  .nouveaute-tete { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bouton-clair { white-space: normal; text-align: center; }
  .recherche-touche { display: none; }
  .ecran-onglets { gap: 14px; }
  .ecran-onglets span { font-size: 10px; letter-spacing: 0.1em; }
  .ecran-barre { flex-wrap: wrap; }
  .feuille-tete { flex-wrap: wrap; }
  .chiffres { grid-template-columns: 1fr; }
  .resultats-deux { grid-template-columns: 1fr; }
  .compta-tete { gap: 20px; }
  .operation { grid-template-columns: 22px minmax(0, 1fr) auto; row-gap: 6px; }
  .op-categorie { grid-column: 2 / 4; justify-self: start; }
  .op-montant { grid-column: 3; grid-row: 1; }
  .banque-totaux .display { font-size: 18px; }
  .feuille { padding: 24px 22px; }
  .tampon { bottom: 30px; right: 130px; }
}
