/* Ritma — landing statique.
   Les visuels sont dessinés en HTML/CSS, en `em` : chaque scène suit la largeur de
   son conteneur (`container-type`), si bien qu'elle se redimensionne d'un bloc.
   Le mouvement n'utilise que les trois courbes du design system. Sans JavaScript
   ou avec `prefers-reduced-motion`, chaque scène s'affiche dans son état final. */

/* Geist et Geist Mono (SIL OFL 1.1, assets/fonts/OFL.txt), servies avec la page : une
   feuille de polices tierce bloquait le premier rendu d'une seconde et demie en 4G.
   Variables (400 à 700), sous-ensemble latin, qui couvre le français (é, œ, «, ’). */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --page: #faf8ff;
  --card: #ffffff;
  --ink: #1a1620;
  --ink-2: #2d2935;
  --muted: #4b4658;
  --muted-2: #6b6678;
  --line: #ececf0;
  --line-2: #d8d5dd;
  --v: #6f4cd1;
  --v-600: #5e35b1;
  --v-700: #4a2997;
  --v-800: #2d1a55;
  --v-100: #efe6ff;
  --v-50: #f6f3ff;
  --v-200: #e0d2ff;
  --v-300: #c9b8eb;
  --warn: #d97706;
  --warn-bg: #fdf1e0;
  --warn-ink: #92400e;
  --ok-bg: #e6f6ea;
  --ok-ink: #166534;

  --m12-bg: #d4f4d4;
  --m12-bd: #8fd58f;
  --m12-fg: #1b4d1b;
  --s12-bg: #2e7d32;
  --s12-bd: #1b5e20;
  --s12-fg: #ffffff;
  --ja-bg: #efe6ff;
  --ja-bd: #c9b8eb;
  --ja-fg: #4a3070;
  --rh-bg: #c9b8eb;
  --rh-bd: #9775fa;
  --rh-fg: #2d1a55;
  --rc-bg: #6f4cd1;
  --rc-bd: #5e35b1;
  --rc-fg: #ffffff;

  /* Les trois courbes du design system, et rien d'autre. */
  --tap: 120ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --state: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --pop: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-state: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);

  --sh-card: 0 1px 3px rgb(45 26 85 / 6%), 0 12px 32px rgb(45 26 85 / 8%);
  --sh-float: 0 2px 6px rgb(45 26 85 / 8%), 0 24px 60px rgb(45 26 85 / 14%);
  --sh-glow: 0 8px 24px rgb(111 76 209 / 32%);

  --sans: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --rhythm: clamp(88px, 11vw, 152px);
}

/* ─────────── Base ─────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
/* Zones sûres (viewport-fit=cover) : en paysage, rien ne passe sous l'encoche. */
body {
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(111 76 209 / 18%);
}
h1,
h2,
h3,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--v);
  outline-offset: 4px;
  border-radius: 6px;
}
::selection {
  background: var(--v-100);
  color: var(--ink);
}
.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--v-600);
}
.skip-link:focus {
  top: 12px;
}

/* ─────────── Typographie de page ─────────── */
h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}
.copy > p,
.lead {
  color: var(--muted);
  font-size: 1.0625rem;
}
.copy > * + * {
  margin-top: 18px;
}
.copy > h2 + p {
  margin-top: 26px;
}
.copy h3 {
  margin-top: 40px;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
.copy h3 + p {
  margin-top: 12px;
}
.copy .punch {
  color: var(--ink);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* « aides-soignantes » ne se coupe pas au trait d'union. */
.nowrap {
  white-space: nowrap;
}

/* ─────────── Boutons ─────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    transform var(--tap),
    background-color var(--tap),
    border-color var(--tap),
    color var(--tap);
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button-primary {
  background: linear-gradient(135deg, var(--v-600) 0%, var(--v) 100%);
  box-shadow: var(--sh-glow);
  color: #fff;
}
.button-secondary {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--ink);
}
.button-secondary:hover {
  border-color: var(--v);
  color: var(--v-600);
}
.button-quiet {
  min-height: 44px;
  padding: 8px 16px;
  border-color: var(--line-2);
  border-radius: 12px;
  font-size: 0.9375rem;
}
.button-quiet:hover {
  border-color: var(--v);
  color: var(--v-600);
}
.button-white {
  background: #fff;
  color: var(--v-600);
}
.button-white:hover {
  background: var(--v-100);
}

/* ─────────── En-tête ─────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(250 248 255 / 94%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--state);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
}
.brand img {
  width: 112px;
}
.header-nav {
  display: none;
}
.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--tap);
}
.header-nav a:hover {
  color: var(--v-600);
}

/* ─────────── Hero ─────────── */
.hero {
  padding-block: 36px 24px;
}
.hero-layout {
  display: grid;
  gap: 40px;
}
.hero-layout > * {
  min-width: 0;
}
.hero h1 {
  font-size: clamp(2.75rem, 5.7vw, 4.75rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.hero .lead {
  max-width: 460px;
  margin-top: 24px;
  font-size: 1.125rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.actions .button {
  flex: 1 1 auto;
}
.fine {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.field-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ─────────── Sections ─────────── */
.section {
  padding-block: var(--rhythm);
}
.split {
  display: grid;
  gap: 48px;
}
.split > * {
  min-width: 0;
}
.glance,
.notify {
  background: var(--card);
}
.cadres {
  background: var(--v-50);
}

/* ─────────── Les cases : la même anatomie partout ─────────── */
.c {
  display: grid;
  place-content: center;
  place-items: center;
  border: 0.1em solid transparent;
  border-radius: 0.72em;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.c b {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
}
.m12 {
  background: var(--m12-bg);
  border-color: var(--m12-bd);
  color: var(--m12-fg);
}
.s12 {
  background: var(--s12-bg);
  border-color: var(--s12-bd);
  color: var(--s12-fg);
}
.ja {
  background: var(--ja-bg);
  border-color: var(--ja-bd);
  color: var(--ja-fg);
}
.rh {
  background: var(--rh-bg);
  border-color: var(--rh-bd);
  color: var(--rh-fg);
}
.rc {
  background: var(--rc-bg);
  border-color: var(--rc-bd);
  color: var(--rc-fg);
}
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.1em solid;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Une scène : le conteneur mesure, la scène se règle sur lui. */
.art {
  container-type: inline-size;
  min-width: 0;
}
.stage {
  position: relative;
}
.tag {
  color: var(--v-700);
  font-weight: 500;
  line-height: 1.3;
}
.tag > span {
  font-size: 1.35em;
}

/* ═════════════ Hero : l'iPhone et ses repères ═════════════ */
.art-hero .stage {
  font-size: calc(100cqi / 40);
  display: grid;
  gap: 2.4em;
  justify-items: center;
}
.phone {
  position: relative;
  width: 32em;
  padding: 0.7em;
  border-radius: 5em;
  background: var(--ink);
  box-shadow: var(--sh-float);
}
.screen {
  overflow: hidden;
  height: 100%;
  padding: 0 1.5em;
  border-radius: 4.3em;
  background: #f7f5fb;
}
.art-hero .phone {
  height: 47em;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
}
.statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4em;
  padding: 0.6em 1.4em 0;
  font-size: 1em;
  font-weight: 600;
}
.statusbar span {
  font-size: 1.35em;
}
.island {
  position: absolute;
  top: 1em;
  left: 50%;
  width: 9.6em;
  height: 2.8em;
  border-radius: 2em;
  background: var(--ink);
  transform: translateX(-50%);
}
.sb-icons {
  width: 4.4em;
  height: 1.2em;
  fill: currentColor;
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.2em;
}
.app-head strong {
  font-size: 2.05em;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.round-btns {
  display: flex;
  gap: 0.6em;
}
.round-btns i {
  position: relative;
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(45 26 85 / 6%);
}
.round-btns i::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.8em;
  height: 0.8em;
  border: solid var(--ink);
  border-width: 0 0.16em 0.16em 0;
  transform: translateX(-0.12em) rotate(-45deg);
}
.round-btns i:first-child::after {
  transform: translateX(0.12em) rotate(135deg);
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 3.6em;
  margin-bottom: 1.2em;
  padding: 0.3em;
  border-radius: 1.2em;
  background: #efedf3;
  font-size: 1em;
}
.segmented span {
  display: grid;
  place-items: center;
  border-radius: 0.95em;
  color: var(--muted-2);
  font-size: 1.3em;
  font-weight: 500;
}
.segmented .on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(45 26 85 / 8%);
}
.dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5em;
  height: 2.2em;
  color: var(--muted-2);
  font-size: 1em;
  text-align: center;
}
.dow span {
  font-size: 1.15em;
  font-weight: 500;
}
.month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 4.2em;
  gap: 0.5em;
}
.month .c {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.45em 0.5em 0.4em;
  font-size: 1em;
}
.month .c,
.month .c b {
  font-size: 1.12em;
}
.month .c b {
  font-size: 1em;
}
.month .void {
  border: 0;
}
.c.today {
  box-shadow:
    0 0 0 0.16em #f7f5fb,
    0 0 0 0.34em var(--v);
}
.note {
  display: flex;
  align-items: center;
  gap: 1em;
  color: var(--ink);
  font-size: 1em;
}
.note > span:last-child {
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.note em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.86em;
  font-style: normal;
  font-weight: 500;
}
.note .chip {
  width: 4.8em;
  height: 3.4em;
  border-radius: 0.8em;
  font-size: 1.1em;
}
.art-hero .phone {
  grid-column: 1 / -1;
}
/* Un halo discret sous le téléphone, pas une tache de couleur. */
.art-hero .stage::before {
  content: "";
  position: absolute;
  top: 6em;
  left: 50%;
  width: 40em;
  height: 40em;
  margin-left: -20em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(111 76 209 / 13%), transparent);
  pointer-events: none;
}
/* Petit écran : les repères passent sous le téléphone, en légende sur trois colonnes. */
.art-hero .stage {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.2em;
}
.art-hero .note {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em;
}

@container (min-width: 520px) {
  .art-hero .stage {
    display: block;
    height: 49em;
    font-size: calc(100cqi / 56);
  }
  .art-hero .stage::before {
    left: 17em;
    width: 46em;
    margin-left: -23em;
  }
  .art-hero .note {
    flex-direction: row;
    align-items: center;
    gap: 1em;
  }
  .art-hero .phone {
    position: absolute;
    top: 1em;
    left: 1em;
  }
  .art-hero .note {
    position: absolute;
    left: 36em;
    display: flex;
    width: 20em;
  }
  /* Chaque repère tient la ligne de la case qu'il désigne, dans la colonne du dimanche. */
  .art-hero .note::before {
    content: "";
    position: absolute;
    right: calc(100% + 0.8em);
    top: 50%;
    width: 5.6em;
    border-top: 0.1em solid var(--v);
  }
  .art-hero .note::after {
    content: "";
    position: absolute;
    right: calc(100% + 6.1em);
    top: 50%;
    width: 0.7em;
    height: 0.7em;
    margin-top: -0.3em;
    border-radius: 50%;
    background: var(--v);
    box-shadow: 0 0 0 0.25em rgb(111 76 209 / 20%);
  }
  /* Haut de la grille : 1 (scène) + 0,7 (cadre) + 15,6 (écran) = 17,3em ; une ligne fait 4,7em. */
  .note-s12 {
    top: calc(17.3em + 2.1em - 1.87em);
  }
  .note-m12 {
    top: calc(17.3em + 6.8em - 1.87em);
  }
  .note-rh {
    top: calc(17.3em + 11.5em - 1.87em);
  }
}

/* ═════════════ 1. D'un coup d'œil ═════════════ */
.art-glance .stage {
  font-size: calc(100cqi / 36);
  display: grid;
  gap: 2.4em;
}
.today-card {
  padding: 2.4em 2.4em 2.2em;
  border: 1px solid var(--line);
  border-radius: 3em;
  background: #fff;
  box-shadow: var(--sh-float);
}
.tc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 1.5em;
}
.pill {
  height: 1.9em;
  padding: 0 0.7em;
  border-radius: 0.5em;
  font-size: 0.95em;
}
.tc-title {
  display: block;
  margin-top: 0.5em;
  font-size: 3.4em;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.tc-hours {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.5em;
}
.tc-hours span {
  font-family: var(--mono);
  font-size: 2.7em;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.tc-hours em {
  color: var(--v);
  font-size: 1.7em;
  font-style: normal;
  font-weight: 600;
}
.tc-team {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-top: 1.8em;
  color: var(--muted);
}
.tc-team > span:last-child {
  font-size: 1.45em;
}
.avatars {
  display: flex;
}
.avatars i {
  display: grid;
  place-items: center;
  width: 3.6em;
  height: 3.6em;
  margin-right: -0.7em;
  border: 0.2em solid #fff;
  border-radius: 50%;
  background: var(--v-100);
  color: var(--v);
  font-size: 1em;
  font-style: normal;
  font-weight: 600;
}
.avatars i:last-child {
  margin-right: 0;
}
.week p {
  margin-bottom: 1.6em;
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6em;
  padding-top: 2.4em;
}
.week-row .c {
  position: relative;
  display: grid;
  place-items: center;
  height: 3.9em;
  font-size: 1em;
}
.week-row .c,
.week-row .c b {
  font-size: 1.2em;
}
.week-row .c b {
  position: absolute;
  top: -2em;
  left: 0;
  right: 0;
  color: var(--muted-2);
  font-size: 1em;
  text-align: center;
}
.week-row .c.today b {
  color: var(--v);
}
.week-row .c.today {
  box-shadow: none;
  border-width: 0.18em;
}
.week-row .c.next {
  box-shadow:
    0 0 0 0.2em #fff,
    0 0 0 0.4em var(--v);
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 4.4em;
  border: 1px solid var(--line-2);
  border-radius: 1.4em;
  background: #fff;
  font-size: 1em;
}
.share-btn > span {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.45em;
}
.share-btn svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.arc {
  display: none;
}
.thread {
  display: grid;
  justify-items: start;
  gap: 1.2em;
  padding: 2em;
  border: 1px solid var(--line);
  border-radius: 3em;
  background: #fcfbfe;
}
.thread-head {
  display: flex;
  align-items: center;
  gap: 0.8em;
  width: 100%;
  padding-bottom: 1.2em;
  border-bottom: 1px solid var(--line);
  font-size: 1.4em;
  font-weight: 600;
}
.thread-head i {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--m12-bg), var(--v-100));
}
.bubble.in {
  max-width: 80%;
  padding: 0.7em 1em;
  border-radius: 1.2em 1.2em 1.2em 0.3em;
  background: #ececf0;
  font-size: 1.45em;
  line-height: 1.35;
}
.shot {
  justify-self: end;
  width: 72%;
  padding: 1.4em;
  border: 1px solid var(--line);
  border-radius: 1.8em 1.8em 0.4em 1.8em;
  background: #fff;
  box-shadow: var(--sh-card);
}
.shot-head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--v);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shot-head img {
  width: 1.5em;
  height: 1.5em;
}
.shot strong {
  display: block;
  margin-top: 0.7em;
  font-size: 1.7em;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.shot small {
  display: block;
  margin-top: 0.3em;
  color: var(--muted);
  font-size: 1.05em;
}
.mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35em;
  margin-top: 1em;
}
.mini i {
  aspect-ratio: 1.15;
  border: 0.08em solid transparent;
  border-radius: 0.4em;
}
.seen {
  justify-self: end;
  color: var(--muted-2);
  font-size: 1.1em;
}

@container (min-width: 600px) {
  .art-glance .stage {
    display: block;
    height: 52em;
    font-size: calc(100cqi / 66);
  }
  .today-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 34em;
    z-index: 2;
  }
  .week {
    position: absolute;
    top: 25.5em;
    left: 2.4em;
    width: 31em;
  }
  .share-btn {
    position: absolute;
    top: 42em;
    left: 2.4em;
    width: 31em;
  }
  .arc {
    position: absolute;
    z-index: 3;
    display: block;
    top: 27em;
    left: 33.6em;
    width: 13.6em;
    height: 17.4em;
    overflow: visible;
    fill: none;
    stroke: var(--v);
    stroke-width: 1.4;
    stroke-dasharray: 3 5;
    vector-effect: non-scaling-stroke;
  }
  .arc path {
    vector-effect: non-scaling-stroke;
  }
  .thread {
    position: absolute;
    top: 3em;
    right: 0;
    width: 27em;
  }
}

/* ═════════════ 2. L'échange ═════════════ */
.art-swap .stage {
  font-size: calc(100cqi / 36);
  display: grid;
  gap: 1.8em;
}
.sheet {
  position: relative;
  padding: 3.2em 2.4em 2.4em;
  border: 1px solid var(--line);
  border-radius: 3em;
  background: #fff;
  box-shadow: var(--sh-float);
}
.sheet::before {
  content: "";
  position: absolute;
  top: 1.1em;
  left: 50%;
  width: 4.4em;
  height: 0.5em;
  margin-left: -2.2em;
  border-radius: 1em;
  background: var(--line-2);
}
.sheet-title {
  font-size: 2.3em;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.sheet-sub {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.8em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.3em;
}
.swap-grid {
  position: relative;
  display: grid;
  grid-template-columns: 6.4em 1fr 1fr;
  grid-template-rows: 2.8em 6.4em 6.4em;
  gap: 1em 1.2em;
  margin-top: 2.4em;
  padding: 1.4em;
  border-radius: 2em;
  background: var(--v-50);
}
.sg-day {
  align-self: end;
  color: var(--muted-2);
  font-size: 1.25em;
  font-weight: 500;
  text-align: center;
}
.sg-who {
  align-self: center;
  font-size: 1.45em;
  font-weight: 600;
}
.sg-who.you {
  color: var(--v);
}
.swap-grid > .sg-day:nth-child(2) {
  grid-area: 1 / 2;
}
.swap-grid > .sg-day:nth-child(3) {
  grid-area: 1 / 3;
}
.sg-who.you {
  grid-area: 2 / 1;
}
.sg-who.ines {
  grid-area: 3 / 1;
}
.swap-grid .mv {
  position: relative;
  z-index: 1;
}
.swap-grid .mv.s12 {
  z-index: 2;
}
.mv {
  display: grid;
  place-items: center;
  border-radius: 1em;
  font-size: 1em;
}
.swap-grid .mv {
  font-size: 1.9em;
  border-width: 0.07em;
  border-radius: 0.55em;
}
.mv-down {
  grid-area: 3 / 2;
}
.mv-up {
  grid-area: 2 / 3;
}
.mv-left {
  grid-area: 2 / 2;
}
.mv-right {
  grid-area: 3 / 3;
}
.ok {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.8em;
  padding: 0.55em 1em 0.55em 0.7em;
  border-radius: 2em;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 1.35em;
  font-weight: 600;
}
.ok svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nope {
  padding: 1.8em 2em;
  border: 0.12em dashed var(--line-2);
  border-radius: 2.2em;
  background: #faf9fb;
}
.nope-head {
  display: flex;
  align-items: center;
  gap: 1.2em;
}
.nope .c.off {
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 3.6em;
  border-radius: 0.6em;
  font-size: 1.25em;
  opacity: 0.45;
  filter: grayscale(1);
}
.nope strong {
  display: block;
  font-size: 1.4em;
  letter-spacing: -0.02em;
}
.nope em {
  display: block;
  color: var(--muted);
  font-size: 1.2em;
  font-style: normal;
}
.nope p {
  margin-top: 1em;
  color: var(--ink-2);
  font-size: 1.4em;
  line-height: 1.35;
}
.art-swap .tag {
  display: none;
}

@container (min-width: 600px) {
  .art-swap .stage {
    display: block;
    height: 56em;
    font-size: calc(100cqi / 64);
  }
  .sheet {
    position: absolute;
    top: 0;
    left: 16em;
    width: 36em;
  }
  .nope {
    position: absolute;
    top: 40em;
    left: 38em;
    width: 26em;
    box-shadow: var(--sh-card);
  }
  .art-swap .tag {
    position: absolute;
    left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8em;
    width: 13.5em;
  }
  .art-swap .tag svg {
    flex: none;
    width: 2em;
    height: 2em;
    fill: none;
    stroke: var(--v);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  /* Face aux deux lignes de la grille : « Toi », puis « Inès ». */
  .tag-day {
    top: 17.2em;
  }
  .tag-rest {
    top: 24.6em;
  }
}

/* ═════════════ 3. Ne rien louper ═════════════ */
.ticks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.ticks li {
  color: var(--ink);
  font-size: 1.0625rem;
}
.art-notify .stage {
  font-size: calc(100cqi / 36);
  display: grid;
  justify-items: center;
}
.lock {
  position: relative;
  width: 36em;
  height: 50em;
  padding: 5.4em 1.8em 0;
  overflow: hidden;
  border: 0.7em solid var(--ink);
  border-bottom: 0;
  border-radius: 5em 5em 0 0;
  background: radial-gradient(120% 60% at 50% 0%, #2a2140 0%, transparent 70%), var(--ink);
  color: #fff;
  text-align: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.lock::before {
  content: "";
  position: absolute;
  top: 1em;
  left: 50%;
  width: 9.6em;
  height: 2.8em;
  margin-left: -4.8em;
  border-radius: 2em;
  background: #000;
}
.lock-date {
  font-size: 1.7em;
  font-weight: 500;
  opacity: 0.86;
}
.lock-time {
  font-size: 8.4em;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.notifs {
  display: grid;
  gap: 0.8em;
  margin-top: 3.2em;
  text-align: left;
}
.notifs li {
  display: flex;
  gap: 1em;
  padding: 1.2em 1.3em;
  border-radius: 2em;
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
}
.notifs i {
  flex: none;
  width: 3.4em;
  height: 3.4em;
  border-radius: 0.9em;
  background: var(--v)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23fff'%3E%3Cpath d='M12 12H32A4 4 0 0 1 36 16V24A4 4 0 0 1 32 28H12A4 4 0 0 1 8 24V16A4 4 0 0 1 12 12Z'/%3E%3Cpath d='M48 11.5H52A4 4 0 0 1 56 15.5V24.5A4 4 0 0 1 52 28.5H48A4 4 0 0 1 44 24.5V15.5A4 4 0 0 1 48 11.5Z'/%3E%3Cpath d='M12 35.5H16A4 4 0 0 1 20 39.5V48.5A4 4 0 0 1 16 52.5H12A4 4 0 0 1 8 48.5V39.5A4 4 0 0 1 12 35.5Z'/%3E%3Cpath d='M32 36H52A4 4 0 0 1 56 40V48A4 4 0 0 1 52 52H32A4 4 0 0 1 28 48V40A4 4 0 0 1 32 36Z'/%3E%3C/svg%3E")
    center / 64% no-repeat;
}
.notifs span {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.6em;
  font-size: 1.28em;
  line-height: 1.3;
}
.notifs b {
  font-weight: 600;
}
.notifs small {
  color: var(--muted-2);
  font-size: 0.85em;
  text-align: right;
}
.notifs span > :not(b, small) {
  grid-column: 1 / -1;
}
.art-notify .tag {
  display: none;
}
@container (min-width: 560px) {
  .art-notify .stage {
    display: block;
    height: 50em;
    font-size: calc(100cqi / 58);
  }
  .lock {
    justify-self: start;
    margin-left: 4em;
  }
  /* Deuxième notification : 20,4em (haut de la pile) + 5,7em + 0,8em, milieu à 29,8em. */
  .art-notify .tag {
    position: absolute;
    display: block;
    top: 28.9em;
    left: 44em;
    width: 14em;
  }
  .art-notify .tag::before {
    content: "";
    position: absolute;
    top: 0.9em;
    right: calc(100% + 0.6em);
    width: 6em;
    border-top: 0.07em solid var(--v);
  }
}

/* ═════════════ 4. Côté cadre ═════════════ */
.cadre-head {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}
.cadre-head > p {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.0625rem;
}
.art-cadre .stage {
  font-size: calc(100cqi / 40);
}
.desk {
  overflow: hidden;
  border: 1px solid #e3ddec;
  border-radius: 2em;
  background: #fff;
  box-shadow: var(--sh-float);
}
.desk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  padding: 1.6em 2em;
  border-bottom: 1px solid var(--line);
}
.desk-bar strong {
  margin-right: auto;
  font-size: 2.2em;
  letter-spacing: -0.04em;
}
.desk-bar .seg,
.desk-bar .state {
  display: none;
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  height: 3.4em;
  padding: 0 1.3em;
  border-radius: 1em;
  background: linear-gradient(135deg, var(--v-600), var(--v));
  color: #fff;
  font-size: 1.2em;
  font-weight: 600;
}
.desk-body {
  position: relative;
  display: grid;
  gap: 1.6em;
  padding: 1.6em;
}
.team {
  display: grid;
  gap: 0.6em;
}
.t-row {
  display: grid;
  grid-template-columns: 8.4em repeat(4, 1fr);
  gap: 0.6em;
  align-items: center;
}
/* Petit écran : quatre jours, du lundi au jeudi. */
.art-cadre .t-row > :nth-child(n + 6) {
  display: none;
}
.t-head span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 1.05em;
  line-height: 1.2;
  text-align: center;
}
.t-head b {
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.who {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.3em;
  font-weight: 500;
}
.who i {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--v-100);
  color: var(--v);
  font-size: 0.8em;
  font-style: normal;
  font-weight: 600;
}
.team .c {
  position: relative;
  display: grid;
  place-items: center;
  height: 3.6em;
  font-size: 1em;
}
.team .c {
  font-size: 1.15em;
  border-radius: 0.6em;
}
.flag-swap::after,
.flag-rule::after {
  content: "";
  position: absolute;
  top: -0.45em;
  right: -0.45em;
  width: 1.1em;
  height: 1.1em;
  border: 0.15em solid #fff;
  border-radius: 50%;
}
.flag-swap::after {
  background: var(--v);
}
.flag-rule::after {
  background: var(--warn);
}
.t-count {
  margin-top: 0.4em;
}
.t-count span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.1em;
  text-align: center;
}
.t-count span:first-child {
  font-family: var(--sans);
  text-align: left;
}
.t-count + .t-count {
  margin-top: -0.2em;
}
.rule-tip {
  display: flex;
  gap: 0.9em;
  padding: 1.1em 1.3em;
  border: 1px solid #f3d9b5;
  border-radius: 1.2em;
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.rule-tip .dot {
  flex: none;
  width: 1em;
  height: 1em;
  margin-top: 0.35em;
  border-radius: 50%;
  background: var(--warn);
}
.rule-tip p {
  font-size: 1.2em;
  line-height: 1.35;
}
.rule-tip strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.inbox {
  padding: 1.6em;
  border: 1px solid var(--line);
  border-radius: 1.6em;
  background: #fcfbfe;
}
.inbox-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.inbox-title span {
  display: grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--v);
  color: #fff;
  font-size: 0.7em;
  letter-spacing: 0;
}
.req {
  margin-top: 1.2em;
  padding: 1.4em;
  border: 1px solid var(--line);
  border-radius: 1.4em;
  background: #fff;
}
.req-kind {
  color: var(--muted);
  font-size: 1.1em;
}
.req-who {
  margin-top: 0.3em;
  font-size: 1.45em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.req-swap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-top: 1em;
}
.req-swap > span {
  display: grid;
  gap: 0.4em;
}
.req-swap small {
  color: var(--muted);
  font-size: 1em;
}
.req-swap .c {
  display: grid;
  place-items: center;
  height: 2.4em;
  font-size: 1.05em;
  border-radius: 0.5em;
}
.req-swap em {
  font-family: var(--mono);
  font-size: 1.05em;
  font-style: normal;
}
.req .ok {
  margin-top: 1.2em;
  font-size: 1.05em;
}
.req-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
  margin-top: 1.2em;
}
.req-actions span {
  display: grid;
  place-items: center;
  height: 3.2em;
  border: 1px solid var(--line-2);
  border-radius: 0.9em;
  font-size: 1.1em;
  font-weight: 600;
}
.req-actions .go {
  border-color: transparent;
  background: var(--v);
  color: #fff;
}
.cadre-notes {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}
.cadre-notes p {
  color: var(--muted);
}
.cadre-notes strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
}
.cadre-notes a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--v-600);
  font-weight: 600;
  transition: color var(--tap);
}
.cadre-notes a:hover,
.text-link:hover {
  color: var(--v-800);
}
.footer-email:hover {
  color: var(--v-600);
}

@container (min-width: 760px) {
  .art-cadre .stage {
    font-size: calc(100cqi / 112);
  }
  .desk-bar .seg {
    display: flex;
    padding: 0.3em;
    border-radius: 1em;
    background: #f2f0f6;
  }
  .desk-bar .seg span {
    padding: 0.5em 1em;
    border-radius: 0.8em;
    color: var(--muted-2);
    font-size: 1.2em;
    font-weight: 500;
  }
  .desk-bar .seg .on {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 2px rgb(45 26 85 / 8%);
  }
  .desk-bar .state {
    display: inline-flex;
    align-items: center;
    height: 2.6em;
    padding: 0 1em;
    border-radius: 2em;
    background: var(--v-100);
    color: var(--v-700);
    font-size: 1.15em;
    font-weight: 500;
  }
  .desk-bar strong {
    margin-right: 0.4em;
  }
  .desk-bar .state {
    margin-right: auto;
  }
  .desk-body {
    grid-template-columns: 1fr 30em;
    align-items: start;
    gap: 2.4em;
    padding: 2.4em;
  }
  .t-row {
    grid-template-columns: 10em repeat(7, 1fr);
  }
  .art-cadre .t-row > :nth-child(n + 6) {
    display: block;
  }
  .art-cadre .t-row > .c:nth-child(n + 6) {
    display: grid;
  }
  .rule-tip {
    position: absolute;
    top: 21.6em;
    left: 44em;
    width: 25em;
    box-shadow: var(--sh-card);
  }
  .rule-tip::before {
    content: "";
    position: absolute;
    top: 1.6em;
    right: 100%;
    width: 3.2em;
    border-top: 0.1em solid var(--warn);
  }
  .inbox {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* ═════════════ La feuille devient le planning ═════════════ */
.paper {
  background: var(--page);
}
.paper-layout {
  display: grid;
  gap: 48px;
}
.before {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}
.before li {
  position: relative;
  width: fit-content;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.4;
}
.before li span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}
.after {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.after h3 {
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}
.after p {
  margin-top: 14px;
  color: var(--muted);
}
.art-paper .stage {
  display: grid;
  justify-items: center;
  font-size: calc(100cqi / 38);
}
/* La feuille du bureau : du papier, pas une interface. */
.paper-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.4em 1.8em 2em;
  border-radius: 0.3em;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(26 22 32 / 12%),
    0 14px 36px rgb(26 22 32 / 9%);
  color: var(--ink-2);
  transform: rotate(-2deg);
}

.tape {
  position: absolute;
  top: -1.1em;
  left: 50%;
  width: 9em;
  height: 2.2em;
  margin-left: -4.5em;
  background: rgb(216 213 221 / 70%);
  transform: rotate(2deg);
}
.ps-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  font-size: 1.2em;
  font-weight: 600;
}
.ps-title span + span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-weight: 500;
}
.ps-grid {
  display: grid;
  grid-template-columns: 6em repeat(7, 1fr);
  border-top: 1px solid #cfcbd6;
  border-left: 1px solid #cfcbd6;
}
.ps-grid > span {
  display: grid;
  place-items: center;
  height: 2.8em;
  border-right: 1px solid #cfcbd6;
  border-bottom: 1px solid #cfcbd6;
  font-family: var(--mono);
  font-size: 1.05em;
}
.ps-grid > .ps-h {
  background: #f5f4f7;
  font-weight: 600;
}
.ps-grid > .ps-n {
  justify-items: start;
  padding-left: 0.6em;
  font-family: var(--sans);
  font-weight: 500;
}
/* Le téléphone, sur la vue « L'équipe » de l'app. */
.phone-team {
  position: relative;
  z-index: 2;
  width: 31em;
  height: 42em;
  margin-top: -5em;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
}
.tv {
  display: grid;
  grid-template-columns: 6.2em repeat(4, 1fr);
  gap: 0.7em 0.5em;
  align-items: center;
}
.tv-h {
  color: var(--muted-2);
  font-size: 1.05em;
  text-align: center;
}
.tv-n {
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tv-n.you {
  color: var(--v);
}
.tv .q {
  height: 3.1em;
  font-size: 1.1em;
  border-radius: 0.55em;
}
.tv-hint {
  margin-top: 1.6em;
  color: var(--muted);
  font-size: 1.2em;
}
@container (min-width: 560px) {
  .art-paper .stage {
    display: block;
    height: 46em;
    font-size: calc(100cqi / 58);
  }
  .paper-sheet {
    position: absolute;
    top: 7em;
    left: 0;
    width: 44em;
    transform: rotate(-3deg);
  }
  .phone-team {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }
}

/* ─────────── Confiance ─────────── */
.trust-layout {
  display: grid;
  gap: 40px;
}
.trust-intro > p:last-child {
  margin-top: 22px;
  color: var(--muted);
}
.trust-list {
  display: grid;
  border-top: 1px solid var(--line-2);
}
.trust-list > div {
  padding-block: 24px;
  border-bottom: 1px solid var(--line-2);
}
.trust-list dt {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.trust-list dd {
  margin-top: 6px;
  color: var(--muted);
}

/* ─────────── Dernier appel ─────────── */
.final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--v);
  color: #fff;
}
/* « La mesure », le symbole de Ritma, en très grand et en ton sur ton. Ses quatre
   modules se posent comme des cases, repris du tracé de ritma-symbole.svg (sur 64). */
.mark {
  --s: min(56vw, 560px);
  position: absolute;
  right: -14%;
  bottom: -22%;
  width: var(--s);
  height: var(--s);
  pointer-events: none;
}
.mark i {
  position: absolute;
  border-radius: calc(var(--s) * 0.0625);
  background: #7d5cd8;
}
.mark i:nth-child(1) {
  left: 12.5%;
  top: 18.75%;
  width: 43.75%;
  height: 25%;
}
.mark i:nth-child(2) {
  left: 68.75%;
  top: 17.97%;
  width: 18.75%;
  height: 26.56%;
}
.mark i:nth-child(3) {
  left: 12.5%;
  top: 55.47%;
  width: 18.75%;
  height: 26.56%;
}
.mark i:nth-child(4) {
  left: 43.75%;
  top: 56.25%;
  width: 43.75%;
  height: 25%;
}
.final-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  justify-items: start;
}
.final h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.final p {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.final a:focus-visible {
  outline-color: #fff;
}

/* ─────────── Pied de page ─────────── */
.site-footer {
  padding-block: 32px calc(32px + env(safe-area-inset-bottom));
  background: #fff;
}
.footer-top,
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.footer-logo {
  width: 104px;
}
.footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 0 24px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--v-600);
  text-decoration: underline;
}

/* ─────────── Grands écrans ─────────── */
@media (min-width: 640px) {
  .container {
    width: min(100% - 64px, 1200px);
  }
  .header-nav {
    display: flex;
    gap: 28px;
    margin-right: 12px;
  }
  .actions .button {
    flex: 0 0 auto;
  }
  .cadre-notes {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
@media (min-width: 960px) {
  .header-inner {
    min-height: 76px;
  }
  .brand img {
    width: 124px;
  }
  .hero {
    padding-block: 40px 28px;
  }
  .hero-layout {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 40px;
  }
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 7%;
  }
  /* Les `fr` suivent la position : la scène passe à gauche, elle garde la grande colonne. */
  .split-reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .split-reverse .copy {
    order: 2;
  }
  .cadre-head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 7%;
  }
  .paper-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 7%;
  }
  .trust-layout {
    grid-template-columns: 0.8fr 1.4fr;
    gap: 7%;
  }
  .trust-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    border-top: 0;
  }
  .trust-list > div {
    padding-block: 26px;
    border-top: 1px solid var(--line-2);
    border-bottom: 0;
  }
  .mark {
    right: 4%;
    bottom: 50%;
    transform: translateY(50%);
  }
}

/* ═════════════ Mouvement ═════════════
   Tout ce qui suit ne vaut que sans réduction de mouvement, et les scènes du bas
   qu'avec JavaScript. L'état final est l'état par défaut : c'est lui qu'on voit si
   rien ne joue. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero : le mois se pose, case après case, au chargement. */
  .art-hero .month .c:not(.void) {
    animation: poser 280ms var(--ease-state) both;
    animation-delay: calc(240ms + var(--i) * 34ms);
  }
  .art-hero .c.today {
    animation:
      poser 280ms var(--ease-state) both,
      marquer 500ms var(--ease-pop) both;
    animation-delay: calc(240ms + 13 * 34ms), 1500ms;
  }
  .art-hero .note {
    animation: montrer 280ms var(--ease-state) both;
  }
  .art-hero .note-s12 {
    animation-delay: 1500ms;
  }
  .art-hero .note-m12 {
    animation-delay: 1620ms;
  }
  .art-hero .note-rh {
    animation-delay: 1740ms;
  }
  @container (min-width: 520px) {
    .art-hero .note::before {
      transform-origin: left;
      animation: tracer 280ms var(--ease-state) both;
      animation-delay: inherit;
    }
  }

  /* Les scènes suivantes attendent d'entrer dans l'écran (script.js pose `.is-in`).
     `!important` est voulu : chaque raccourci `animation:` plus bas remet la lecture
     à `running`, et à spécificité égale c'est lui qui gagnerait. */
  .js [data-anim]:not(.is-in) .stage *,
  .js [data-anim]:not(.is-in) .stage *::before,
  .js [data-anim]:not(.is-in) .stage *::after {
    animation-play-state: paused !important;
  }

  /* 1. La carte répond, puis le mois part chez les proches. */
  .js .art-glance .today-card {
    animation: monter 280ms var(--ease-state) both 100ms;
  }
  .js .art-glance .tc-title,
  .js .art-glance .tc-hours,
  .js .art-glance .tc-team {
    animation: montrer 280ms var(--ease-state) both;
  }
  .js .art-glance .tc-title {
    animation-delay: 260ms;
  }
  .js .art-glance .tc-hours {
    animation-delay: 380ms;
  }
  .js .art-glance .tc-team {
    animation-delay: 500ms;
  }
  .js .art-glance .week-row .c {
    animation: poser 280ms var(--ease-state) both;
    animation-delay: calc(520ms + var(--w, 0) * 40ms);
  }
  .js .art-glance .week-row .c:nth-child(2) {
    --w: 1;
  }
  .js .art-glance .week-row .c:nth-child(3) {
    --w: 2;
  }
  .js .art-glance .week-row .c:nth-child(4) {
    --w: 3;
  }
  .js .art-glance .week-row .c:nth-child(5) {
    --w: 4;
  }
  .js .art-glance .week-row .c:nth-child(6) {
    --w: 5;
  }
  .js .art-glance .week-row .c:nth-child(7) {
    --w: 6;
  }
  .js .art-glance .share-btn {
    animation:
      montrer 280ms var(--ease-state) both 900ms,
      appuyer 120ms cubic-bezier(0.2, 0.7, 0.3, 1) 1500ms 2 alternate;
  }
  .js .art-glance .arc {
    animation: reveler 500ms var(--ease-state) both 1650ms;
  }
  .js .art-glance .thread {
    animation: montrer 280ms var(--ease-state) both 1100ms;
  }
  .js .art-glance .bubble.in {
    animation: montrer 280ms var(--ease-state) both 1300ms;
  }
  .js .art-glance .shot {
    transform-origin: 100% 100%;
    animation: arriver 500ms var(--ease-pop) both 2150ms;
  }
  .js .art-glance .seen {
    animation: montrer 280ms var(--ease-state) both 2600ms;
  }

  /* 2. L'échange : les postes changent de ligne, les repos changent de jour. */
  .js .art-swap .sheet {
    animation: monter 280ms var(--ease-state) both 100ms;
  }
  .js .art-swap .mv {
    animation: 280ms var(--ease-state) both 1200ms;
  }
  .js .art-swap .mv-down {
    animation-name: depuis-le-haut;
  }
  .js .art-swap .mv-up {
    animation-name: depuis-le-bas;
  }
  .js .art-swap .mv-left {
    animation-name: depuis-la-droite;
  }
  .js .art-swap .mv-right {
    animation-name: depuis-la-gauche;
  }
  .js .art-swap .sheet .ok {
    transform-origin: left center;
    animation: arriver 500ms var(--ease-pop) both 1750ms;
  }
  .js .art-swap .tag {
    animation: montrer 280ms var(--ease-state) both 700ms;
  }
  .js .art-swap .tag-rest {
    animation-delay: 820ms;
  }
  .js .art-swap .nope {
    animation: monter 280ms var(--ease-state) both 2300ms;
  }

  /* 3. Les notifications se posent, de la plus ancienne à la plus récente. */
  .js .art-notify .notifs li {
    animation: descendre 280ms var(--ease-state) both;
    animation-delay: calc(300ms + var(--n) * 520ms);
  }
  .js .art-notify .notifs li:first-child {
    animation: arriver 500ms var(--ease-pop) both;
    animation-delay: calc(300ms + 3 * 520ms);
  }
  .js .art-notify .tag {
    animation: montrer 280ms var(--ease-state) both 2400ms;
  }

  /* 4. La semaine se pose colonne par colonne ; l'alerte prévient, la demande arrive. */
  .js .art-cadre .team .c {
    animation: poser 280ms var(--ease-state) both;
    animation-delay: calc(150ms + var(--d, 0) * 70ms);
  }
  .js .art-cadre .team .c:nth-child(3) {
    --d: 1;
  }
  .js .art-cadre .team .c:nth-child(4) {
    --d: 2;
  }
  .js .art-cadre .team .c:nth-child(5) {
    --d: 3;
  }
  .js .art-cadre .team .c:nth-child(6) {
    --d: 4;
  }
  .js .art-cadre .team .c:nth-child(7) {
    --d: 5;
  }
  .js .art-cadre .team .c:nth-child(8) {
    --d: 6;
  }
  .js .art-cadre .t-count {
    animation: montrer 280ms var(--ease-state) both 800ms;
  }
  .js .art-cadre .flag-rule::after {
    animation: arriver 500ms var(--ease-pop) both 1100ms;
  }
  .js .art-cadre .flag-swap::after {
    animation: arriver 500ms var(--ease-pop) both 1500ms;
  }
  .js .art-cadre .rule-tip {
    animation: montrer 280ms var(--ease-state) both 1300ms;
  }
  .js .art-cadre .req {
    animation: glisser 280ms var(--ease-state) both 1700ms;
  }

  /* Dernier appel : les quatre modules du symbole se posent. */
  .js .final .mark i {
    animation: poser 280ms var(--ease-state) both;
    animation-delay: calc(200ms + var(--m, 0) * 110ms);
  }
  .js .final .mark i:nth-child(2) {
    --m: 1;
  }
  .js .final .mark i:nth-child(3) {
    --m: 2;
  }
  .js .final .mark i:nth-child(4) {
    --m: 3;
  }

  /* La feuille : script.js fait passer les cases, une à une, dans le téléphone. */
  .js [data-paper] .q {
    transition:
      background-color var(--state),
      border-color var(--state),
      color var(--state);
  }
  .js [data-paper] .q:not(.on) {
    border-style: dashed;
    border-color: var(--line-2);
    background: transparent;
    color: transparent;
  }
  .js [data-paper] .q.on {
    animation: marquer 500ms var(--ease-pop);
  }
  .js [data-paper] .p {
    transition:
      color var(--state),
      background-color var(--state);
  }
  .js [data-paper] .p.taken {
    background: var(--v-50);
    color: #c9c5d0;
  }
  .js [data-paper] .paper-sheet {
    transition: opacity var(--state);
  }
  .js [data-paper].st-5 .paper-sheet {
    opacity: 0.72;
  }
  .js [data-paper] .before li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 100%;
    border-top: 2px solid var(--v);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--state);
  }
  .js [data-paper].st-2 .before li:nth-child(1)::after,
  .js [data-paper].st-3 .before li:nth-child(2)::after,
  .js [data-paper].st-4 .before li:nth-child(3)::after {
    transform: scaleX(1);
  }
  .js [data-paper] .after {
    transition:
      opacity var(--state),
      transform var(--state);
  }
  .js [data-paper]:not(.st-5) .after {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
  /* Sur grand écran, la scène tient pendant que le défilement la transforme. */
  .js [data-paper] {
    padding-block: 0;
  }
  .js [data-paper] .paper-track {
    height: 240vh;
  }
  .js [data-paper] .paper-layout {
    position: sticky;
    top: 76px;
    min-height: calc(100dvh - 76px);
  }
}

@keyframes poser {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
}
@keyframes marquer {
  50% {
    transform: scale(1.12);
  }
}
@keyframes montrer {
  from {
    opacity: 0;
    transform: translateY(0.8em);
  }
}
@keyframes monter {
  from {
    opacity: 0;
    transform: translateY(2.4em);
  }
}
@keyframes descendre {
  from {
    opacity: 0;
    transform: translateY(-1.6em) scale(0.96);
  }
}
@keyframes glisser {
  from {
    opacity: 0;
    transform: translateX(2em);
  }
}
@keyframes arriver {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes appuyer {
  to {
    transform: scale(0.95);
    background: var(--v-100);
  }
}
@keyframes tracer {
  from {
    transform: scaleX(0);
  }
}
/* Un pas de grille = la case (100 %) + l'espace entre deux cases, exprimé dans le corps
   de la case (1,9em) : 1em ÷ 1,9 entre les lignes, 1,2em ÷ 1,9 entre les colonnes. */
@keyframes depuis-le-haut {
  from {
    transform: translateY(calc(-100% - 0.53em));
  }
}
@keyframes depuis-le-bas {
  from {
    transform: translateY(calc(100% + 0.53em));
  }
}
@keyframes depuis-la-droite {
  from {
    transform: translateX(calc(100% + 0.63em));
  }
}
@keyframes depuis-la-gauche {
  from {
    transform: translateX(calc(-100% - 0.63em));
  }
}
@keyframes reveler {
  from {
    clip-path: inset(0 100% 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
