/* Feuille du site vitrine (docs/site-vitrine.md) : l'accueil, les pages légales et la page introuvable du site. Elle se
   charge après app.css, sur ces pages seulement, et prend ses jetons : le site suit la direction sobre et pro de
   l'application (.builder/design.md). Elle n'écrit aucune couleur ; elle déclare Inter, la police de l'application, et
   ajoute à ses jetons les tailles propres au site. Son seul mouvement, la conversation menée par le défilement, est à
   la fin : il ne joue que si le navigateur le sait et que le système l'autorise ; ailleurs, rien ne bouge. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.8909904ab6.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.f3779f1efc.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.f9a06e79cd.woff2") format("woff2");
}

/* Les tailles propres au site, sur un téléphone puis sur un ordinateur : la colonne, ses marges, la promesse, la ligne
   qui la suit, les titres de section, l'air autour des sections, l'en-tête et les pastilles d'icône. */
:root {
  --site-width: 70rem;
  --site-gutter: 1.25rem;
  --site-display: 2.125rem;
  --site-lead: 1.125rem;
  --site-title: var(--text-xl);
  --site-section: var(--space-16);
  --site-header: 3.5rem;
  --tile: 2.75rem;
}

@media (min-width: 48rem) {
  :root {
    --site-gutter: 2rem;
    --site-display: 3rem;
    --site-title: var(--text-2xl);
    --site-section: 6rem;
  }
}

/* La base */

main {
  padding: 0;
}

main section + section {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}

h2 {
  font-size: var(--site-title);
  line-height: var(--leading-title);
}

h3 {
  font-size: var(--text-md);
  line-height: var(--leading-title);
}

p {
  text-wrap: pretty;
}

.frame {
  width: min(100% - 2 * var(--site-gutter), var(--site-width));
  margin-inline: auto;
}

.icon {
  flex: none;
  width: 1em;
  height: 1em;
}

/* Un mot composé tenu d'un bloc : « rendez-vous » ne se coupe pas à son trait d'union. */
.unbroken {
  white-space: nowrap;
}

/* Les petites marques : « Conseillée », « Exemple », les réductions. */

.tag,
.shot-tag,
.discount {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 var(--space-2);
  border-radius: var(--radius-small);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: var(--leading-body);
  white-space: nowrap;
}

.tag {
  background: var(--color-accent-surface);
  color: var(--color-accent);
}

.shot-tag {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-muted);
}

.discount {
  padding-inline: var(--space-1);
  background: var(--color-success-surface);
  color: var(--color-success);
}

/* Les boutons : l'essai en indigo, la seule action principale de la page ; le reste en contour. */

.actions {
  gap: var(--space-3);
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: var(--leading-title);
  text-align: center;
  text-decoration: none;
}

.action:hover {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
}

.action-quiet,
.masthead-login {
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  color: var(--color-text);
}

.action-quiet:hover,
.masthead-login:hover {
  border-color: var(--color-border-strong);
  background: var(--color-hover);
}

@media (pointer: coarse) {
  .action {
    min-height: var(--touch-target);
  }
}

/* L'en-tête : le logo, les sections de l'accueil (grand écran), l'autre langue, la connexion, et l'essai hors de
   l'accueil. */

.masthead {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.masthead-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  min-height: var(--site-header);
}

.masthead-nav ul {
  display: flex;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.masthead-nav a,
.lang-switch {
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.masthead-nav a:hover,
.lang-switch:hover {
  color: var(--color-text);
}

.masthead-login {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.masthead-nav,
.masthead-trial {
  display: none;
}

.masthead-trial {
  min-height: var(--control-height);
  padding-inline: var(--space-3);
}

@media (min-width: 48rem) {
  .masthead-trial {
    display: inline-flex;
  }
}

@media (min-width: 64rem) {
  .masthead .brand {
    margin-inline-end: var(--space-6);
  }

  .masthead-nav {
    display: block;
    margin-inline-end: auto;
  }
}

/* Les sections de l'accueil : beaucoup d'air, un filet fin entre elles. */

.hero,
.journey,
.feature,
.story,
.pricing,
.faq,
.closing {
  padding-block: var(--site-section);
}

.journey,
.feature,
.story,
.pricing,
.faq,
.closing {
  border-top: 1px solid var(--color-border);
}

/* L'ouverture : la promesse, sa ligne, le bouton et sa note, puis la conversation où l'agent a pris le rendez-vous. */

.hero {
  padding-top: var(--space-12);
}

.hero h1 {
  max-width: 16em;
  font-size: var(--site-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pitch {
  max-width: 36rem;
  margin: var(--space-5) 0 0;
  color: var(--color-muted);
  font-size: var(--site-lead);
}

.hero .actions {
  margin-top: var(--space-8);
}

.trial-note {
  color: var(--color-muted);
  font-size: var(--text-base);
}

/* Une capture mise en scène : un cadre gris pâle, sa barre (« Exemple » et le nom de l'écran), l'image dans un filet,
   un repère indigo sur ce qui compte, et la même pastille devant l'annotation. */

.shot {
  margin: 0;
}

.hero .shot {
  margin-top: var(--space-12);
}

.shot-frame {
  padding: 0 var(--space-2) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
}

.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2.25rem;
  margin: 0;
  padding-inline: var(--space-1);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.shot-view {
  position: relative;
}

.shot-view img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.shot-marker {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  outline: 2px solid var(--color-bg);
  translate: -50% -50%;
}

@media (min-width: 48rem) {
  .shot-marker {
    width: 0.75rem;
    height: 0.75rem;
    outline-width: 3px;
  }
}

/* La place du repère sur chaque image, en part de sa largeur et de sa hauteur (src/web/public/shots.ts). */

.shot-marker-conversation {
  top: 34.7%;
  left: 50%;
}

.shot-marker-dashboard {
  top: 84.6%;
  left: 66.9%;
}

.shot-marker-context {
  top: 42.5%;
  left: 28.5%;
}

.shot-marker-campaign {
  top: 67.3%;
  left: 45.8%;
}

.shot-marker-meetings {
  top: 85.4%;
  left: 2.2%;
}

.shot-marker-usage {
  top: 69.1%;
  left: 53.1%;
}

.shot-marker-approval {
  top: 89.9%;
  left: 2.4%;
}

.shot-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: var(--text-base);
}

.shot-note::before {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45em;
  border-radius: var(--radius-round);
  background: var(--color-accent);
  content: "";
}

/* Les pastilles d'icône des étapes : dans le schéma, et devant le titre de leur section ; le rendez-vous en indigo. */

.tile {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-bg);
  color: var(--color-text);
}

.tile-accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.tile .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.brand-mark {
  fill: currentColor;
}

.brand-mark line {
  stroke: currentColor;
}

/* Le parcours : six étapes, les pastilles reliées par un filet, debout sur un téléphone, couchées sur un ordinateur. */

.journey h2 {
  max-width: 24ch;
}

.journey-steps {
  display: grid;
  gap: var(--space-8);
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--tile) minmax(0, 1fr);
  column-gap: var(--space-4);
  align-content: start;
}

.journey-step > .tile {
  grid-row: 1 / span 3;
}

.journey-step h3 {
  padding-top: var(--space-1);
}

.journey-step p {
  margin: var(--space-1) 0 0;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.journey-step:not(:last-child)::before {
  position: absolute;
  top: var(--tile);
  bottom: calc(-1 * var(--space-8));
  left: calc(var(--tile) / 2);
  width: 1px;
  background: var(--color-border-strong);
  content: "";
}

@media (min-width: 64rem) {
  .journey-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.5fr);
    column-gap: var(--space-6);
  }

  .journey-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-step h3 {
    padding-top: var(--space-4);
  }

  .journey-step:not(:last-child)::before {
    top: calc(var(--tile) / 2);
    right: calc(-1 * var(--space-6));
    bottom: auto;
    left: var(--tile);
    width: auto;
    height: 1px;
  }
}

/* Les outils que cite une étape : leur nom, et l'icône de leur marque quand elle peut être montrée. */

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 1.5rem;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.brand-icon {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

.journey-dashboard {
  margin-top: var(--site-section);
}

/* Une section qui détaille une étape : la pastille, le titre et une phrase à gauche, l'image à droite ; l'une sous
   l'autre sur un téléphone. */

.feature-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-16);
    align-items: start;
  }
}

.feature-text {
  display: grid;
  justify-items: start;
}

.feature-text h2,
.feature-text h3 {
  max-width: 22ch;
}

.tile + h2 {
  margin-top: var(--space-5);
}

.feature-lead {
  max-width: 34rem;
  margin: var(--space-3) 0 0;
  color: var(--color-muted);
  font-size: var(--site-lead);
}

/* La réponse automatique : la conversation en cinq étapes, sur un écran pareil à celui de l'application. Ici, sans
   mouvement, les étapes se lisent l'une sous l'autre, chacune sa phrase puis son message ; la scène fixe que mène le
   défilement est à la fin de la feuille. */

.story-head {
  margin-bottom: var(--space-12);
}

.story-mark,
.story-dots {
  display: none;
}

.story-screen {
  padding: 0 var(--space-2) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
}

.story-steps {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  list-style: none;
}

.story-step {
  padding: var(--space-5);
}

.story-step + .story-step {
  border-top: 1px solid var(--color-border);
}

.story-line {
  max-width: 30ch;
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-title);
  text-wrap: balance;
}

/* Un message du fil, avec les mots de l'application : les nôtres et ceux de l'agent tenus par un filet, celui de
   l'agent en indigo. */

.mail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
  margin: 0;
  font-size: var(--text-base);
}

.mail-from {
  font-weight: var(--weight-semibold);
}

.mail-detail {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.mail-subject,
.mail-text,
.mail-signature {
  margin: var(--space-2) 0 0;
  font-size: var(--text-base);
}

.mail-subject {
  font-weight: var(--weight-medium);
}

.mail-ours {
  padding-inline-start: var(--space-4);
  border-inline-start: 2px solid var(--color-border-strong);
}

.mail-agent {
  border-inline-start-color: var(--color-accent);
}

.agenda-banner {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-success-surface);
  font-size: var(--text-base);
}

.agenda-title {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

/* La semaine de Camille : cinq jours de 9 h à 17 h, en demi-heures, et trois jours sur un téléphone. Chaque bloc est
   placé par sa première demi-heure et sa durée ; le rendez-vous de Léa en indigo. */

.week-board {
  --half: 1.125rem;
  display: grid;
  grid-template-columns: 2.75rem repeat(5, minmax(0, 1fr));
  gap: 0 var(--space-1);
  font-size: var(--text-xs);
  line-height: var(--leading-title);
}

@media (max-width: 30rem) {
  .week-board {
    grid-template-columns: 2.75rem repeat(3, minmax(0, 1fr));
  }

  .week-day:nth-child(2),
  .week-day:nth-child(6) {
    display: none;
  }
}

.week-hours {
  display: grid;
  grid-template-rows: repeat(4, calc(var(--half) * 4));
  padding-top: var(--space-6);
  color: var(--color-muted);
}

.week-hours span {
  transform: translateY(-0.5em);
  white-space: nowrap;
}

.week-day {
  display: grid;
  grid-template-rows: var(--space-6) auto;
  min-width: 0;
}

.week-day-name {
  color: var(--color-muted);
  font-weight: var(--weight-medium);
  text-align: center;
}

.week-slots {
  display: grid;
  grid-template-rows: repeat(16, var(--half));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.week-slots > span {
  grid-column: 1;
  min-width: 0;
  margin: 1px;
  padding: 0 var(--space-1);
  overflow: hidden;
  border-radius: var(--radius-small);
  white-space: nowrap;
}

.week-busy {
  background: var(--color-hover);
  color: var(--color-muted);
}

.week-meeting {
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: var(--weight-medium);
}

.week-from-1 {
  grid-row-start: 1;
}

.week-from-2 {
  grid-row-start: 2;
}

.week-from-3 {
  grid-row-start: 3;
}

.week-from-5 {
  grid-row-start: 5;
}

.week-from-11 {
  grid-row-start: 11;
}

.week-from-12 {
  grid-row-start: 12;
}

.week-from-13 {
  grid-row-start: 13;
}

.week-span-1 {
  grid-row-end: span 1;
}

.week-span-3 {
  grid-row-end: span 3;
}

.week-span-4 {
  grid-row-end: span 4;
}

.week-span-5 {
  grid-row-end: span 5;
}

/* Les offres : le choix de la période et ses réductions, puis Solo, Pro et Croissance, Pro cernée d'indigo, puis la
   consommation du mois. Le choix est un groupe de boutons radio : la feuille ne montre que les prix de la période
   cochée, sans script. */

.pricing-head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 64rem) {
  .pricing-head {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--space-16);
    align-items: end;
  }
}

.pricing-intro .feature-lead {
  max-width: 38rem;
}

.periods {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.periods legend {
  margin-bottom: var(--space-2);
  padding: 0;
  color: var(--color-muted);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

.period-choices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
}

.periods input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.periods label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 2.25rem;
  padding: 0 var(--space-2);
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
}

@media (min-width: 48rem) {
  .periods label {
    gap: var(--space-2);
    padding: 0 var(--space-3);
  }
}

.periods label:hover {
  color: var(--color-text);
}

.periods input:checked + label {
  background: var(--color-accent-surface);
  color: var(--color-accent);
}

.periods input:focus-visible + label {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.plans {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-bg);
}

.plan-featured {
  border-color: var(--color-accent);
}

/* Sur un ordinateur, les offres côte à côte partagent leurs rangées : leurs prix et leurs boutons s'alignent, quelle
   que soit la longueur de la phrase au-dessus. */
@media (min-width: 64rem) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: var(--space-3);
  }
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.plan-name {
  font-size: var(--text-lg);
}

.plan-for {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.plan-price {
  display: none;
  margin: var(--space-2) 0 0;
}

.plan-price-monthly {
  display: block;
}

.pricing:has(#period-quarterly:checked) .plan-price-monthly,
.pricing:has(#period-yearly:checked) .plan-price-monthly {
  display: none;
}

.pricing:has(#period-monthly:checked) .plan-price-monthly,
.pricing:has(#period-quarterly:checked) .plan-price-quarterly,
.pricing:has(#period-yearly:checked) .plan-price-yearly {
  display: block;
}

.plan-amount {
  font-size: var(--text-2xl);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-title);
}

.plan-per {
  color: var(--color-muted);
  font-size: var(--text-base);
}

.plan-billed {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.plan .actions {
  margin: var(--space-2) 0 0;
}

.plan .action {
  width: 100%;
}

.plan-features {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-base);
  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.plan-features .icon {
  transform: translateY(0.15em);
}

.feature-off {
  color: var(--color-muted);
}

.pricing-usage {
  margin-top: var(--site-section);
}

/* Les questions : le titre et la réponse de l'agent qui attend son accord à gauche, chacune s'ouvre au clic. */

.faq-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 64rem) {
  .faq-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-16);
    align-items: start;
  }
}

.faq-side {
  display: grid;
  gap: var(--space-8);
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--touch-target);
  padding-block: var(--space-4);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item h3 {
  font-weight: var(--weight-medium);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item .icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-muted);
}

.faq-item[open] .toggle-bar {
  display: none;
}

.faq-item p {
  max-width: 40rem;
  margin: 0;
  padding-bottom: var(--space-5);
  color: var(--color-muted);
}

/* L'appel final, sur le gris de retrait. */

.closing {
  background: var(--color-surface);
}

.closing-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 64rem) {
  .closing-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.closing .actions {
  margin: 0;
}

/* Le pied de page : ce que fait le produit, et les pages légales. */

.colophon {
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--text-base);
}

.colophon-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .colophon-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.colophon .logo {
  color: var(--color-text);
}

.colophon-brand p {
  max-width: 28rem;
  margin: var(--space-3) 0 0;
}

.colophon ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon a {
  display: inline-block;
  padding-block: var(--space-1);
  color: var(--color-muted);
}

.colophon a:hover {
  color: var(--color-text);
}

/* Les pages légales : un bandeau de titre, puis une colonne de lecture. */

.legal-head {
  padding-block: var(--space-12);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.legal-back {
  margin: 0 0 var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

.legal-head h1 {
  max-width: 24ch;
  font-size: var(--site-title);
  line-height: var(--leading-title);
}

.legal-updated {
  margin: var(--space-3) 0 0;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.legal-body {
  padding-block: var(--space-12) var(--site-section);
  line-height: 1.6;
}

.legal-body > *,
.legal-body section > * {
  max-width: 68ch;
}

.legal-body h2 {
  margin: var(--space-10) 0 var(--space-3);
  font-size: var(--text-lg);
}

.legal-body > :first-child,
.legal-body > section:first-child > h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: var(--space-6) 0 var(--space-2);
}

.legal-body p,
.legal-body ul {
  margin: 0 0 var(--space-4);
}

.legal-body ul {
  padding-inline-start: var(--space-5);
}

.legal-body li + li {
  margin-top: var(--space-1);
}

.legal-body dl {
  display: grid;
  gap: 0 var(--space-6);
  margin: 0 0 var(--space-4);
}

@media (min-width: 40rem) {
  .legal-body dl {
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  }
}

.legal-body dt {
  color: var(--color-muted);
}

.legal-body dd {
  margin: 0 0 var(--space-3);
  overflow-wrap: anywhere;
}

/* La page introuvable du site */

.lost {
  padding-block: var(--site-section);
}

.lost h1 {
  font-size: var(--site-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lost-text {
  max-width: 34rem;
  margin: var(--space-4) 0 0;
  color: var(--color-muted);
  font-size: var(--site-lead);
}

/* Le seul mouvement de la page, quand le navigateur sait le lier au défilement et que le système l'autorise
   (docs/site-vitrine.md, « Mouvement »).

   La conversation devient une scène fixe : la course (.story-track) est haute de plusieurs écrans, la scène
   (.story-stage) y reste collée en haut, et la progression de la course dans l'écran mène chaque étape. Cinq paliers
   d'un cinquième de la course : à chacun, la phrase de l'étape prend la place de la précédente, et son message s'ajoute
   au fil ; au dernier, la semaine de Camille recouvre le fil et le rendez-vous s'y pose. Seuls l'opacité et le
   déplacement changent : tout le texte reste dans la page. Ailleurs, les étapes restent l'une sous l'autre, immobiles. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* La scène se centre dans l'écran : le titre de la section n'a pas besoin d'air en plus. */
    .story-head {
      margin-bottom: 0;
    }

    /* Un palier par étape, de sept huitièmes d'écran : ce que fait défiler la touche Page suivante. */
    .story-track {
      position: relative;
      height: calc(100svh + 5 * 87.5svh);
      view-timeline: --story block;
    }

    /* Le palier de chaque étape, là où sa phrase et son message sont en place : à 8, 30, 50, 70 et 97 % de la course. */
    .story-mark {
      position: absolute;
      left: 0;
      display: block;
      width: 1px;
      height: 1px;
    }

    .story-mark:nth-child(1) {
      top: 35svh;
    }

    .story-mark:nth-child(2) {
      top: 131.25svh;
    }

    .story-mark:nth-child(3) {
      top: 218.75svh;
    }

    .story-mark:nth-child(4) {
      top: 306.25svh;
    }

    .story-mark:nth-child(5) {
      top: 424.375svh;
    }

    .story-stage {
      position: sticky;
      top: 0;
      display: grid;
      align-content: center;
      height: 100svh;
      padding-block: 7rem var(--space-12);
    }

    /* Les points des étapes, sous l'écran sur un téléphone, sous la phrase sur un ordinateur : celui de l'étape en
       cours est indigo, et ils grossissent d'étape en étape, comme ceux du logo. */
    .story-dots {
      position: absolute;
      bottom: var(--space-4);
      left: 0;
      display: flex;
      align-items: center;
      gap: var(--space-1);
      margin: 0;
    }

    .story-dot {
      display: grid;
      place-items: center;
      width: var(--space-6);
      height: var(--space-6);
      border-radius: var(--radius-round);
    }

    .story-dot::before {
      width: var(--dot);
      height: var(--dot);
      border-radius: var(--radius-round);
      background: var(--color-border-strong);
      content: "";
    }

    .story-dot:nth-child(1) {
      --dot: 0.5rem;
    }

    .story-dot:nth-child(2) {
      --dot: 0.625rem;
    }

    .story-dot:nth-child(3) {
      --dot: 0.75rem;
    }

    .story-dot:nth-child(4) {
      --dot: 0.875rem;
    }

    .story-dot:nth-child(5) {
      --dot: 1rem;
    }

    /* La liste et ses étapes ne placent plus rien : les phrases se placent dans la scène, les messages dans le fil. */
    .story-step {
      display: block;
      grid-column: 1;
      padding: var(--space-4) var(--space-5);
    }

    .story-step + .story-step {
      border-top: 0;
    }

    .story-step:nth-child(-n + 3) {
      border-bottom: 1px solid var(--color-border);
    }

    .story-step:nth-child(1) {
      grid-row: 1;
    }

    .story-step:nth-child(2) {
      grid-row: 2;
    }

    .story-step:nth-child(3) {
      grid-row: 3;
    }

    .story-step:nth-child(4) {
      grid-row: 4;
    }

    /* La semaine recouvre le fil, de tout son fond. */
    .story-step:nth-child(5) {
      grid-row: 1 / 5;
      padding: 0;
    }

    .story-step:nth-child(5) .story-shot {
      height: 100%;
      padding: var(--space-4) var(--space-5);
      background: var(--color-bg);
    }

    /* La phrase de l'étape : au-dessus de l'écran sur un téléphone, à sa gauche sur un ordinateur. */
    .story-line {
      position: absolute;
      top: var(--space-6);
      inset-inline: 0;
      max-width: none;
      margin: 0;
      font-size: var(--text-xl);
    }

    @media (min-width: 64rem) {
      .story-stage {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: var(--space-16);
        padding-block: var(--space-6);
      }

      .story-screen {
        grid-column: 2;
      }

      .story-line {
        top: 50%;
        right: auto;
        width: calc((100% - var(--space-16)) * 5 / 12);
        font-size: var(--text-2xl);
        translate: 0 -50%;
      }

      .story-dots {
        top: calc(50% + 6rem);
        bottom: auto;
      }
    }

    .story-line,
    .story-step:nth-child(n + 2) .story-shot,
    .story-step:nth-child(5) .week-meeting,
    .story-dot::before {
      animation-timeline: --story;
      animation-fill-mode: both;
      animation-timing-function: linear;
    }

    .story-dot::before {
      animation-name: story-dot;
    }

    .story-dot:nth-child(1)::before {
      animation-name: story-dot-first;
      animation-range: contain 0% contain 20%;
    }

    .story-dot:nth-child(2)::before {
      animation-range: contain 20% contain 40%;
    }

    .story-dot:nth-child(3)::before {
      animation-range: contain 40% contain 60%;
    }

    .story-dot:nth-child(4)::before {
      animation-range: contain 60% contain 80%;
    }

    .story-dot:nth-child(5)::before {
      animation-name: story-dot-last;
      animation-range: contain 80% contain 100%;
    }

    .story-line {
      animation-name: story-line;
    }

    .story-step:nth-child(1) .story-line {
      animation-name: story-line-first;
      animation-range: contain 0% contain 20%;
    }

    .story-step:nth-child(2) .story-line {
      animation-range: contain 17% contain 40%;
    }

    .story-step:nth-child(3) .story-line {
      animation-range: contain 37% contain 60%;
    }

    .story-step:nth-child(4) .story-line {
      animation-range: contain 57% contain 80%;
    }

    .story-step:nth-child(5) .story-line {
      animation-name: story-line-last;
      animation-range: contain 77% contain 100%;
    }

    .story-step:nth-child(n + 2) .story-shot {
      animation-name: story-shot;
    }

    .story-step:nth-child(2) .story-shot {
      animation-range: contain 17% contain 23%;
    }

    .story-step:nth-child(3) .story-shot {
      animation-range: contain 37% contain 43%;
    }

    .story-step:nth-child(4) .story-shot {
      animation-range: contain 57% contain 63%;
    }

    /* La semaine paraît sur le fil, avec son fond : le fil disparaît dessous. */
    .story-step:nth-child(5) .story-shot {
      animation-name: story-agenda;
      animation-range: contain 77% contain 83%;
    }

    /* Le rendez-vous se pose dans sa case. */
    .story-step:nth-child(5) .week-meeting {
      animation-name: story-meeting;
      animation-range: contain 83% contain 93%;
    }
  }
}

/* Les étapes de la conversation menée par le défilement : la première phrase part, les suivantes arrivent puis
   partent, la dernière reste ; chaque message monte en place, la semaine paraît sur le fil, le rendez-vous s'y pose. */

@keyframes story-line-first {
  85% {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateY(-1rem);
  }
}

@keyframes story-line {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  15%,
  85% {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateY(-1rem);
  }
}

@keyframes story-line-last {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  15% {
    opacity: 1;
    transform: none;
  }
}

@keyframes story-shot {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes story-agenda {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

@keyframes story-meeting {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
}

/* Le point de l'étape en cours : indigo. */

@keyframes story-dot-first {
  from,
  92% {
    background: var(--color-accent);
  }
}

@keyframes story-dot {
  8%,
  92% {
    background: var(--color-accent);
  }
}

@keyframes story-dot-last {
  8%,
  to {
    background: var(--color-accent);
  }
}
