/* Relysa — le site (refonte du 17-09-2026).
   Même charte que l'application (Obsidian ▸ PLUME ▸ Charte graphique) : le bleu du
   logo, le pli des pastilles, des titres arrondis, un ton rassurant.
   Une page classique, qui défile normalement — jamais de scène épinglée au
   défilement — et claire partout : aucun grand aplat foncé. De grands titres, peu
   de texte, et des scènes qui montrent le geste (js/scenes.js).
   Titres et textes en Nunito (licence OFL, assets/polices/) : SF Pro Rounded ne
   s'embarque pas sur le web. Les panneaux de Relysa, eux, sont dessinés dans la
   police du système, comme dans l'application. */

@font-face {
  font-family: "Nunito";
  src: url("assets/polices/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Le bleu du logo */
  --marque-clair: #43a5ff;
  --marque: #0a74f0;
  --marque-profond: #0052c4;
  --marque-pale: #a9d3ff;
  --marque-texte: #0062d6;
  /* Le pli des boutons et des touches : deux bleus assez foncés pour du texte blanc (5:1 au moins) */
  --pli: linear-gradient(135deg, #0068e0 49.6%, var(--marque-profond) 50.4%);
  /* Les facettes du bouton principal de l'application (charte §7.1) */
  --facettes: linear-gradient(135deg, #2b8cff 0%, #1a80f8 49.6%, #0b6fe6 50.4%, #0058cc 100%);

  /* Les bleus des pastilles, un par action */
  --bleu-marine: #1f4fd6;
  --bleu-roi: #0a74f0;
  --bleu-ciel: #2f9ff7;
  --bleu-azur: #14aee3;
  --bleu-ardoise: #5a6fd6;

  /* Neutres, à peine teintés de bleu nuit */
  --fond: #ffffff;
  --fond-doux: #f8fafe;
  --fond-bleute: #f1f5fd;
  --encre: #0e1626;
  --encre-2: #465169;
  --encre-3: #5f6b82;
  --encre-pale: #7c889f;
  --filet: rgba(12, 40, 90, 0.1);
  --remplissage: rgba(12, 40, 90, 0.05);
  --selection-mac: #b9d9ff;
  --suppression: #d70015;

  --ombre-carte: 0 1px 2px rgba(10, 30, 70, 0.05), 0 10px 30px rgba(10, 30, 70, 0.06);
  --ombre-feuille: 0 0 0 0.5px var(--filet), 0 2px 4px rgba(10, 30, 70, 0.04), 0 24px 60px rgba(10, 50, 120, 0.11);
  --ombre-fenetre: 0 0 0 0.5px rgba(12, 40, 90, 0.14), 0 2px 6px rgba(10, 30, 70, 0.07), 0 28px 60px rgba(10, 40, 90, 0.17);

  --f-titre: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-texte: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-systeme: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --largeur: 1200px;
  --gouttiere: clamp(20px, 4vw, 40px);
  --courbe: cubic-bezier(0.25, 0.9, 0.3, 1);
  --ressort: cubic-bezier(0.3, 1.5, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 500 17px/1.6 var(--f-texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-titre);
  line-height: 1.15;
  color: var(--encre);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--marque-texte);
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--selection-mac);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--marque) 60%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Une touche du clavier : claire, avec sa tranche. Enfoncée, elle prend le pli bleu. */
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  margin: 0 0.08em;
  border-radius: 7px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(12, 40, 90, 0.14),
    0 1.5px 0 rgba(12, 40, 90, 0.14);
  font: 600 0.82em/1.6 var(--f-systeme);
  color: var(--encre);
  text-align: center;
  white-space: nowrap;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--remplissage);
}

.dedans {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.etroit {
  max-width: 900px;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.planche {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.evitement {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--encre);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.evitement:focus {
  top: 12px;
}

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

.entete {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, #ffffff 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  transition: box-shadow 0.25s ease;
}
.entete.defile {
  box-shadow: 0 0.5px 0 var(--filet);
}
/* Le logo à gauche, un grand vide, puis les liens et le bouton, espacés, à droite. */
.entete-dedans {
  display: flex;
  align-items: center;
  gap: 38px;
  height: 70px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--encre);
  text-decoration: none;
  font: 800 22px/1 var(--f-titre);
  letter-spacing: -0.02em;
}
.menu {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.menu a {
  color: var(--encre-2);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 700;
  transition: color 0.15s ease;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--marque-texte);
}
.bouton-menu {
  display: none;
}

/* ─── Boutons : le pli aux deux bleus du logo ─────────────────────────────── */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-family: var(--f-titre);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.2s ease,
    transform 0.15s var(--courbe);
}
.bouton svg {
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bouton-petit,
.bouton-grand {
  background: var(--pli);
  color: #ffffff;
}
.bouton-petit:hover,
.bouton-grand:hover {
  filter: brightness(1.07);
}
.bouton:active {
  transform: scale(0.98);
}
.bouton-petit {
  flex: none;
  min-height: 38px;
  padding: 0 18px;
  font-size: 15px;
}
.bouton-grand,
.bouton-contour {
  min-height: 56px;
  padding: 0 30px;
  font-size: 18px;
}
.bouton-grand {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 28px color-mix(in srgb, var(--marque) 30%, transparent);
}
.bouton-grand:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 16px 34px color-mix(in srgb, var(--marque) 36%, transparent);
  transform: translateY(-1px);
}
.bouton-contour {
  background: #ffffff;
  color: var(--marque-texte);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--marque) 45%, white);
}
.bouton-contour:hover {
  background: color-mix(in srgb, var(--marque) 7%, white);
}

@media (max-width: 820px) {
  .entete-dedans {
    gap: 12px;
  }
  .entete .bouton-petit {
    margin-left: auto;
  }
  .bouton-menu {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: none;
    cursor: pointer;
  }
  .traits,
  .traits::before {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--encre);
    transition: transform 0.25s var(--courbe);
  }
  .traits {
    transform: translateY(-3.5px);
  }
  .traits::before {
    content: "";
    transform: translateY(7px);
  }
  .entete.ouvert .traits {
    transform: rotate(45deg);
  }
  .entete.ouvert .traits::before {
    transform: rotate(-90deg);
  }
  .menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--ombre-fenetre);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.25s var(--courbe),
      visibility 0s 0.25s;
  }
  .menu a {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 17px;
    color: var(--encre);
  }
  .menu a:hover {
    background: var(--fond-bleute);
  }
  .entete.ouvert .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.2s ease,
      transform 0.25s var(--courbe);
  }
}
/* Sans JavaScript, pas de menu à déplier : les liens restent dans le pied de page. */
html:not(.js) .bouton-menu {
  display: none;
}

/* ─── Apparitions au défilement ───────────────────────────────────────────── */

.js [data-apparition] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--courbe),
    transform 0.8s var(--courbe);
}
.js [data-apparition].visible {
  opacity: 1;
  transform: none;
}
/* Le haut de page arrive en cascade ; les cartes d'une même rangée aussi. */
.js .heros .accroche[data-apparition] {
  transition-delay: 0.07s;
}
.js .heros .appel[data-apparition] {
  transition-delay: 0.14s;
}
.js .heros .cadre[data-apparition] {
  transition-delay: 0.22s;
}
.js .heros .etapes[data-apparition] {
  transition-delay: 0.3s;
}
.js .garanties li:nth-child(2)[data-apparition],
.js .tuiles .tuile:nth-child(2)[data-apparition],
.js .offres .offre:nth-child(2)[data-apparition] {
  transition-delay: 0.09s;
}
.js .garanties li:nth-child(3)[data-apparition] {
  transition-delay: 0.18s;
}

/* ─── Haut de page ────────────────────────────────────────────────────────── */

.heros {
  position: relative;
  padding-block: clamp(40px, 5.4vw, 76px) clamp(64px, 8vw, 112px);
  text-align: center;
  /* Une lumière très pâle derrière la feuille, rien de plus. */
  background:
    radial-gradient(58% 46% at 50% 70%, color-mix(in srgb, var(--marque-pale) 38%, transparent), transparent 72%),
    linear-gradient(180deg, #ffffff 30%, var(--fond-doux));
}
.heros-dedans {
  display: grid;
  justify-items: center;
}
.heros h1 {
  font-size: clamp(50px, 8.6vw, 124px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.mot-marque {
  /* Le dégradé de l'aile éclairée ; départ assez foncé pour rester lisible sur fond clair. */
  background: linear-gradient(120deg, #2b8fff, var(--marque) 45%, var(--marque-profond));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Sans cela, le bas du « ç » ou du « g » se fait rogner par la boîte du dégradé. */
  padding-bottom: 0.08em;
}
.accroche {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 36ch;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: var(--encre-2);
  text-wrap: balance;
}
.appel {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: clamp(24px, 2.6vw, 34px);
}
.note-appel {
  font-size: 15px;
  font-weight: 600;
  color: var(--encre-3);
}
.cadre-heros {
  width: 100%;
  max-width: 940px;
  margin-top: clamp(40px, 4.6vw, 64px);
}

/* Les trois temps du geste : ils s'allument avec la scène du dessus. */
.etapes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(18px, 3.4vw, 48px);
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--encre-3);
}
.etapes li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}
.numero {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--marque) 10%, white);
  color: var(--marque-texte);
  font: 800 14.5px/1 var(--f-titre);
  font-variant-numeric: tabular-nums;
  transition:
    color 0.3s ease,
    transform 0.4s var(--ressort);
}
.etapes kbd {
  margin: 0 0 0 1px;
  font-size: 0.86em;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.etapes li.active {
  color: var(--encre);
}
.etapes li.active .numero {
  background: var(--pli);
  color: #ffffff;
  transform: scale(1.12);
}
.etapes kbd.enfoncee {
  background: var(--pli);
  color: #ffffff;
  transform: translateY(1.5px);
  box-shadow: 0 0 0 1px rgba(12, 40, 90, 0.14);
}
@media (max-width: 640px) {
  .etapes {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-inline: auto;
  }
}

/* ─── Haut de page : les fenêtres de Messages et de Notes ─────────────────────
   Un cas concret, là où l'on écrit vraiment (demande d'Alexis du 18-09-2026) : on
   répond à son chef dans Messages, on prépare une lettre dans Notes. Les deux
   fenêtres sont dessinées d'après macOS 26 — panneau latéral flottant, boutons en
   verre, police du système — et alternent dans le même cadre : la scène pose
   data-app="messages" ou "notes" sur sa racine. Le texte s'y tape, s'y sélectionne
   et s'y corrige comme dans les autres scènes (.texte-app, voir « La feuille »). */

.scene-heros {
  --lateral: clamp(214px, 27%, 272px);
  display: grid;
  text-align: left;
}
.scene-heros[data-app="messages"] .fenetre-notes,
.scene-heros[data-app="notes"] .fenetre-messages {
  display: none;
}
.fenetre {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: var(--lateral) minmax(0, 1fr);
  height: clamp(440px, 41vw, 540px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow:
    0 0 0 0.5px rgba(10, 30, 70, 0.16),
    0 2px 6px rgba(10, 30, 70, 0.06),
    0 32px 80px rgba(10, 45, 110, 0.18);
  overflow: hidden;
  font: 400 14px/1.35 var(--f-systeme);
  color: #1d1d1f;
}
/* Remise à zéro sans poids (:where) : les marges propres à chaque élément gardent la main. */
.fenetre :where(p, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
  text-wrap: wrap;
}
.fenetre svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Les trois pastilles de la fenêtre */
.fenetre .feux {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.fenetre .feux i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.16);
}
.fenetre .feux i:nth-child(2) {
  background: #febc2e;
}
.fenetre .feux i:nth-child(3) {
  background: #28c840;
}
/* Le panneau latéral de macOS 26 : flottant, arrondi, à peine teinté. */
.fenetre .lateral {
  min-width: 0;
  margin: 8px 0 8px 8px;
  padding: 50px 8px 8px;
  border-radius: 19px;
  position: relative;
  background: linear-gradient(180deg, #f3f5f9, #eef1f6);
  box-shadow: 0 0 0 0.5px rgba(10, 30, 70, 0.11);
  overflow: hidden;
}
.fenetre .lateral .nouveau {
  position: absolute;
  right: 10px;
  top: 8px;
}
.zone-principale {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
/* Un bouton en verre : rond, ou en capsule quand il regroupe plusieurs pictogrammes. */
.bouton-verre,
.groupe-verre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: none;
  height: 34px;
  min-width: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 0.5px rgba(10, 30, 70, 0.12),
    0 2px 8px rgba(10, 30, 70, 0.08);
  color: #55565c;
}
.groupe-verre {
  padding: 0 13px;
}
.monogramme {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b4b9c6, #8b91a1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.monogramme.petit {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

/* — Messages — */
.fenetre .recherche {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin: 0 4px 8px;
  padding: 0 9px;
  border-radius: 10px;
  background: rgba(10, 30, 70, 0.07);
  color: #85868c;
}
.fenetre .recherche svg {
  width: 14px;
  height: 14px;
}
.fenetre .conv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 13px;
}
.conv-texte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  min-width: 0;
  flex: 1;
}
.conv-nom {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-heure {
  font-size: 12.5px;
  color: #85868c;
}
.conv-apercu {
  display: -webkit-box;
  grid-column: 1 / -1;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.3;
  color: #85868c;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
/* La conversation ouverte : la couleur d'accent du système. */
.fenetre .conv.choisie {
  background: #0a7aff;
  color: #ffffff;
}
.fenetre .conv.choisie .conv-heure,
.fenetre .conv.choisie .conv-apercu {
  color: rgba(255, 255, 255, 0.86);
}
.entete-conv {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 62px;
  padding: 0 16px;
}
.entete-conv .bouton-verre {
  position: absolute;
  right: 16px;
}
.fenetre .contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 0.5px rgba(10, 30, 70, 0.12),
    0 2px 8px rgba(10, 30, 70, 0.08);
  font-weight: 600;
}
.fenetre .contact svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
  color: #a0a1a8;
}
.fenetre .fil {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 0 22px 6px;
  overflow: hidden;
}
.horodatage {
  align-self: center;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: #85868c;
}
.horodatage b {
  font-weight: 600;
}
.fenetre .bulle {
  position: relative;
  max-width: min(74%, 440px);
  margin-top: 8px;
  padding: 8px 14px 9px;
  border-radius: 19px;
  font-size: clamp(15.5px, 1.75vw, 17px);
  line-height: 1.32;
}
.fenetre .bulle.recue {
  align-self: flex-start;
  background: #e9e9eb;
  color: #000000;
}
.fenetre .bulle.envoyee {
  align-self: flex-end;
  background: linear-gradient(180deg, #2a93ff, #0a7cff);
  color: #ffffff;
}
/* La petite queue des bulles : une corne de la couleur de la bulle, rognée par le blanc du fond. */
.fenetre .bulle::before,
.fenetre .bulle::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 18px;
}
.fenetre .bulle.recue::before {
  left: -7px;
  width: 20px;
  border-bottom-right-radius: 16px 14px;
  background: #e9e9eb;
}
.fenetre .bulle.recue::after {
  left: -26px;
  width: 26px;
  border-bottom-right-radius: 10px;
  background: #ffffff;
}
.fenetre .bulle.envoyee::before {
  right: -7px;
  width: 20px;
  border-bottom-left-radius: 16px 14px;
  background: #0a7cff;
}
.fenetre .bulle.envoyee::after {
  right: -26px;
  width: 26px;
  border-bottom-left-radius: 10px;
  background: #ffffff;
}
.distribue {
  align-self: flex-end;
  margin-top: 3px;
  padding-right: 4px;
  font-size: 11.5px;
  color: #85868c;
}
/* « … » : l'autre est en train d'écrire. */
.fenetre .bulle.ecrit {
  display: inline-flex;
  gap: 5px;
  padding: 13px 14px;
}
.fenetre .bulle.ecrit i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b9ba3;
  animation: points 1.2s ease-in-out infinite;
}
.fenetre .bulle.ecrit i:nth-child(2) {
  animation-delay: 0.18s;
}
.fenetre .bulle.ecrit i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes points {
  0%,
  60%,
  100% {
    opacity: 0.35;
  }
  30% {
    opacity: 1;
  }
}
/* Une bulle qui arrive dans le fil */
.fenetre .arrive {
  animation: arrivee-bulle 0.42s var(--ressort) both;
}
.fenetre .bulle.envoyee.arrive {
  transform-origin: bottom right;
}
.fenetre .bulle.recue.arrive {
  transform-origin: bottom left;
}
@keyframes arrivee-bulle {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }
}
.fenetre .saisie {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: none;
  padding: 8px 16px 16px;
}
.fenetre .champ {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 38px 7px 14px;
  border-radius: 19px;
  box-shadow: inset 0 0 0 1px #d4d4d9;
  font-size: clamp(15.5px, 1.75vw, 17px);
  line-height: 1.32;
  --curseur: #0a7aff;
}
.fenetre .indice {
  color: #b4b4ba;
}
.fenetre .champ.rempli .indice {
  display: none;
}
.fenetre .champ .dictee {
  position: absolute;
  right: 11px;
  bottom: 9px;
  color: #8e8e95;
}

/* — Notes — */
.fenetre-notes {
  --selection-app: #fbe39a;
}
.liste-titre {
  padding: 0 10px 8px;
  font-size: 15px;
  font-weight: 700;
}
.liste-periode {
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #85868c;
}
.note-ligne {
  display: grid;
  gap: 2px;
  padding: 8px 10px 9px;
  border-radius: 11px;
}
.note-nom {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-apercu {
  overflow: hidden;
  font-size: 12.5px;
  color: #85868c;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-apercu b {
  font-weight: 400;
  color: #1d1d1f;
}
/* La note ouverte : le jaune de Notes. */
.note-ligne.choisie {
  background: #fbe39a;
}
.note-ligne.choisie .note-apercu {
  color: #6f6544;
}
.outils-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
  height: 62px;
  padding: 0 16px;
}
.fenetre .aa {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.fenetre .note {
  flex: 1;
  min-height: 0;
  padding: 0 clamp(20px, 3.4vw, 44px) 20px;
  overflow: hidden;
}
.note-date {
  margin-bottom: 12px;
  font-size: 12px;
  text-align: center;
  color: #9a9ba1;
}
.note-titre {
  margin-bottom: 8px;
  font-size: clamp(21px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.note-corps {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.5;
  --curseur: #e0a400;
}

/* Les touches et l'indicateur se posent là où la fenêtre est libre : au-dessus du
   champ dans Messages (le fil y est encore vide), sous le texte dans Notes. */
.scene-heros > .touches,
.scene-heros > .capsule {
  left: calc(var(--lateral) + (100% - var(--lateral)) / 2);
}
.scene-heros[data-app="messages"] > .touches {
  top: 27%;
  bottom: auto;
}
/* Dans Messages, l'indicateur prend la place des touches : plus bas, il couvrirait les bulles. */
.scene-heros[data-app="messages"] > .capsule {
  top: calc(27% + 11px);
  bottom: auto;
}
.scene-heros[data-app="notes"] > .touches {
  bottom: 34px;
}
.scene-heros[data-app="notes"] > .capsule {
  bottom: 46px;
}
/* Le bouton pause se range sous la fenêtre : dessus, il couvrirait le champ de Messages. */
.cadre-heros .bouton-pause {
  right: 6px;
  bottom: -44px;
}
/* Téléphone : la fenêtre se réduit à sa partie principale, comme une fenêtre rétrécie. */
@media (max-width: 700px) {
  .scene-heros {
    --lateral: 0px;
  }
  .fenetre {
    grid-template-columns: minmax(0, 1fr);
    height: 430px;
    border-radius: 22px;
  }
  .fenetre .lateral {
    display: none;
  }
  .entete-conv {
    justify-content: center;
  }
  .fenetre .feux {
    left: 18px;
    top: 24px;
  }
  .fenetre .feux i {
    width: 12px;
    height: 12px;
  }
  .outils-notes {
    padding-left: 88px;
  }
  .outils-notes .groupe-verre:first-child {
    display: none;
  }
  .fenetre .fil {
    padding-inline: 16px;
  }
  .fenetre .bulle {
    max-width: 82%;
  }
}

/* ─── Bandes, grands titres ───────────────────────────────────────────────── */

.bande {
  padding-block: clamp(84px, 11vw, 160px);
}
/* Une bande bleutée sur deux, posée comme une grande feuille aux coins arrondis. */
.bleutee {
  margin-inline: clamp(8px, 1.4vw, 24px);
  border-radius: clamp(30px, 4.4vw, 60px);
  background: var(--fond-bleute);
}

.titre-geant {
  font-size: clamp(42px, 7vw, 100px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.chapeau {
  margin-top: clamp(16px, 1.8vw, 24px);
  max-width: 30ch;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.45;
  color: var(--encre-2);
  text-wrap: balance;
}
.surtitre {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 800;
  color: var(--marque-texte);
}
.entete-section.centre,
.pile .entete-section {
  display: grid;
  justify-items: center;
  text-align: center;
}
.entete-section.centre .chapeau,
.pile .chapeau {
  max-width: 40ch;
}

/* Titre au-dessus, scène dessous, tout centré. */
.pile {
  display: grid;
  justify-items: center;
  gap: clamp(40px, 5.4vw, 72px);
}
/* Titre d'un côté, scène de l'autre ; « inverse » échange les côtés. */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.duo.inverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.duo.inverse .entete-section {
  order: 2;
}
.duo .titre-geant {
  font-size: clamp(42px, 6.2vw, 88px);
}
@media (max-width: 900px) {
  .duo,
  .duo.inverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .duo.inverse .entete-section {
    order: 0;
  }
}

/* ─── Les scènes : ce qu'elles ont en commun ──────────────────────────────── */

.cadre {
  position: relative;
  width: 100%;
}
.scene {
  position: relative;
  width: 100%;
}
/* Sans JavaScript, les scènes ne peuvent pas se jouer : le texte reste, leurs cadres s'effacent. */
html:not(.js) .cadre:not(.cadre-partout),
html:not(.js) .gestes-curseur {
  display: none;
}
/* Les scènes se remettent à zéro sans rejouer leurs transitions à l'envers. */
.instantane,
.instantane * {
  transition: none !important;
}
.scene.fondu > * {
  opacity: 0;
  transition: opacity 0.38s ease;
}
.scene > * {
  transition: opacity 0.38s ease;
}

/* Mettre en pause, reprendre : un petit bouton au coin de chaque scène, qui n'arrête qu'elle. */
.bouton-pause {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--encre) 7%, transparent);
  color: var(--encre-2);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background-color 0.15s ease;
}
.bouton-pause svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.cadre:hover .bouton-pause,
.bouton-pause:focus-visible,
.bouton-pause[aria-pressed="true"] {
  opacity: 1;
}
.bouton-pause:hover {
  background: color-mix(in srgb, var(--encre) 13%, transparent);
}
@media (hover: none) {
  .bouton-pause {
    opacity: 0.75;
  }
}

/* ─── La feuille : le texte se tape, se sélectionne, puis se transforme ───── */

.feuille {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.8vw, 50px) clamp(26px, 4.2vw, 58px) 116px;
  border-radius: clamp(26px, 3vw, 36px);
  background: #ffffff;
  box-shadow: var(--ombre-feuille);
  text-align: left;
}
.texte-feuille {
  width: 100%;
  /* La place du plus long des textes : la feuille ne change pas de taille en boucle. */
  min-height: calc(var(--lignes, 3) * 1.38em);
  font: 700 clamp(23px, 2.9vw, 38px) / 1.38 var(--f-titre);
  letter-spacing: -0.02em;
  color: var(--encre);
}
.texte-feuille .contenu,
.texte-app .contenu {
  padding-block: 0.1em;
  border-radius: 3px;
  /* La sélection balaie le texte de gauche à droite, ligne après ligne ; elle
     disparaît d'un coup, comme dans une vraie application. */
  background-image: linear-gradient(var(--selection-app, var(--selection-mac)), var(--selection-app, var(--selection-mac)));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition:
    opacity 0.23s ease,
    filter 0.23s ease,
    transform 0.23s ease;
}
.texte-feuille.selectionne .contenu,
.texte-app.selectionne .contenu {
  background-size: 100% 100%;
  transition:
    background-size 0.6s cubic-bezier(0.35, 0.1, 0.25, 1),
    opacity 0.23s ease,
    filter 0.23s ease,
    transform 0.23s ease;
}
/* Le curseur de saisie, au bout du texte en train de s'écrire */
.texte-feuille.tape .contenu::after,
.texte-app.tape .contenu::after,
.fiche-valeur.active::after,
.apercu-texte.ecrit::after {
  content: "";
  display: inline-block;
  width: 2.5px;
  height: 1em;
  margin-left: 2px;
  border-radius: 2px;
  vertical-align: -0.12em;
  background: var(--curseur, var(--marque));
  animation: pulsation 0.9s steps(2, jump-none) infinite;
}
.texte-app.tape .contenu::after {
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
}
@keyframes pulsation {
  50% {
    opacity: 0.25;
  }
}
/* Un texte qui en remplace un autre : il se floute en partant, se précise en arrivant. */
.sortie,
.entree {
  opacity: 0;
  filter: blur(5px);
}
.sortie {
  transform: translateY(-5px);
}
.entree {
  transform: translateY(5px);
  transition: none !important;
}

/* L'étiquette (la langue, le nombre de mots) : une annotation du site, à cheval sur le
   bord bas de la fenêtre — ce n'est pas un élément de Mail. */
.etiquette {
  position: absolute;
  left: 24px;
  bottom: -14px;
  z-index: 7;
  padding: 5px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--marque) 13%, white);
  box-shadow:
    0 0 0 0.5px color-mix(in srgb, var(--marque) 30%, transparent),
    0 6px 14px rgba(10, 40, 90, 0.12);
  color: var(--marque-texte);
  font: 800 13.5px/1.4 var(--f-titre);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition:
    opacity 0.23s ease,
    filter 0.23s ease,
    transform 0.23s ease;
}

/* L'indicateur de Relysa pendant le traitement : l'avion prend son envol, là où
   étaient les touches. */
.capsule {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 0 0.5px rgba(12, 40, 90, 0.16),
    0 8px 22px rgba(10, 40, 90, 0.16);
  font: 500 15px/1 var(--f-systeme);
  color: var(--encre);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.94);
  transition:
    opacity 0.2s ease,
    transform 0.28s var(--courbe);
}
.scene > .capsule.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.avion-capsule {
  flex: none;
  overflow: visible;
  color: var(--marque);
}
.avion-capsule .trainee {
  stroke-opacity: 0.55;
  stroke-dasharray: 1;
}
.capsule.visible .trainee {
  animation: tracer 1.4s ease-out infinite;
}
.capsule.visible .corps {
  animation: envol-capsule 1.4s ease-out infinite;
}
@keyframes tracer {
  0% {
    stroke-dashoffset: 1;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes envol-capsule {
  0% {
    transform: translate(-120px, 120px);
    opacity: 0.35;
  }
  60% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(24px, -24px);
    opacity: 1;
  }
}

/* Les touches du raccourci, par-dessus la scène */
.touches {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 8;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translate(-50%, 14px) scale(0.96);
  transition:
    opacity 0.22s ease,
    transform 0.3s var(--courbe);
  pointer-events: none;
}
.scene > .touches.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.touches kbd,
.partout-touches kbd {
  display: grid;
  place-items: center;
  min-width: 60px;
  height: 60px;
  margin: 0;
  padding: 0 17px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  box-shadow:
    0 0 0 1px rgba(12, 40, 90, 0.12),
    0 5px 0 rgba(12, 40, 90, 0.16),
    0 20px 40px rgba(10, 40, 90, 0.22);
  font: 600 27px/1 var(--f-systeme);
  color: var(--encre);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.touches kbd.enfoncee {
  background: var(--pli);
  color: #ffffff;
  transform: translateY(4px);
  box-shadow:
    0 0 0 1px rgba(12, 40, 90, 0.12),
    0 1px 0 rgba(12, 40, 90, 0.16),
    0 10px 22px rgba(10, 40, 90, 0.2);
}

/* Corriger : le mot fautif laisse la place au bon */
.echange {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  transition: width 0.45s var(--courbe);
}
.echange .avant,
.echange .apres {
  display: inline-block;
  transition:
    opacity 0.32s ease,
    transform 0.45s var(--courbe),
    filter 0.32s ease;
}
/* Le mot fautif : souligné d'une vague bleue — le bleu de Relysa propose, il ne sanctionne pas. */
.echange .avant {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.18em;
  transition:
    opacity 0.32s ease,
    transform 0.45s var(--courbe),
    filter 0.32s ease,
    text-decoration-color 0.3s ease;
}
.echange.souligne .avant {
  text-decoration-color: var(--marque);
}
.echange .apres {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--marque-texte);
  opacity: 0;
  transform: translateY(45%);
}
.echange.corrige .avant {
  opacity: 0;
  transform: translateY(-45%);
  filter: blur(6px);
}
.echange.corrige .apres {
  opacity: 1;
  transform: none;
  border-radius: 5px;
  animation: surligne 1.6s ease-out both;
}
@keyframes surligne {
  0% {
    background-color: color-mix(in srgb, var(--marque) 20%, transparent);
  }
  100% {
    background-color: transparent;
  }
}
/* Sans animation : le mot fautif barré, le bon à côté. */
.echange.statique .avant {
  color: var(--encre-3);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--suppression) 60%, transparent);
}
.echange.statique .apres {
  position: static;
  opacity: 1;
  transform: none;
}

/* Simplifier : ce qui n'apporte rien se barre, puis s'efface */
.coupe {
  font-size: 1em;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  transition:
    text-decoration-color 0.3s ease,
    color 0.3s ease,
    font-size 0.75s var(--courbe),
    opacity 0.5s ease;
}
.coupe.barree {
  color: var(--encre-3);
  text-decoration-color: color-mix(in srgb, var(--suppression) 65%, transparent);
}
.coupe.retiree {
  font-size: 0;
  opacity: 0;
}

/* ─── Les pastilles : deux aplats du même bleu, une arête en diagonale ────── */

.pastille {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 24%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--teinte) 80%, white) 49.6%, var(--teinte) 50.4%);
  box-shadow:
    inset 0 0 0 0.5px rgba(0, 30, 80, 0.1),
    0 8px 18px color-mix(in srgb, var(--teinte) 26%, transparent);
  color: #ffffff;
}
.pastille svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pastille.mini {
  width: 22px;
  height: 22px;
  box-shadow: inset 0 0 0 0.5px rgba(0, 30, 80, 0.1);
}
.pastille.mini svg {
  stroke-width: 2.2;
}
.glyphe {
  font: 700 13px/1 var(--f-systeme);
  color: #ffffff;
}
.marine {
  --teinte: var(--bleu-marine);
}
.roi {
  --teinte: var(--bleu-roi);
}
.ciel {
  --teinte: var(--bleu-ciel);
}
.azur {
  --teinte: var(--bleu-azur);
}
.ardoise {
  --teinte: var(--bleu-ardoise);
}

/* ─── La vitrine : quatre grands mots, une feuille ────────────────────────── */

.vitrine {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(32px, 4.6vw, 72px);
}
.vitrine .surtitre {
  margin-left: 24px;
}
/* Les rangées d'un menu, en très grand : le nom de l'action, son raccourci à droite. */
.gestes {
  position: relative;
  display: grid;
  gap: 4px;
  container-type: inline-size;
}
.gestes-curseur {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--ombre-carte), 0 0 0 0.5px var(--filet);
  transition:
    transform 0.55s var(--courbe),
    height 0.55s var(--courbe);
}
.geste {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 3cqi, 20px);
  width: 100%;
  padding: clamp(12px, 2.6cqi, 18px) clamp(14px, 4cqi, 24px);
  border: 0;
  border-radius: 26px;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--encre-pale);
  transition: color 0.35s ease;
}
.geste-nom {
  font: 800 clamp(30px, 10.6cqi, 64px) / 1.08 var(--f-titre);
  letter-spacing: -0.035em;
}
.geste .pastille {
  width: clamp(36px, 8.6cqi, 50px);
  height: clamp(36px, 8.6cqi, 50px);
  opacity: 0.4;
  transition: opacity 0.35s ease;
}
.touche-geste {
  min-width: 0;
  margin: 0;
  padding: 7px 13px;
  border-radius: 12px;
  font-size: clamp(15px, 3.4cqi, 19px);
  letter-spacing: 0.06em;
  box-shadow:
    0 0 0 1px rgba(12, 40, 90, 0.14),
    0 3px 0 rgba(12, 40, 90, 0.16);
  /* Éteinte, la touche reste lisible : 4,5:1 au moins. */
  opacity: 0.68;
  /* Couleurs sans transition : le dégradé ne s'anime pas, et un texte blanc qui fonce
     lentement sur fond déjà blanc ferait clignoter la touche au relâchement. */
  transition:
    opacity 0.35s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.geste:hover {
  color: var(--encre-2);
}
.geste[aria-selected="true"] {
  color: var(--encre);
}
.geste[aria-selected="true"] .pastille,
.geste[aria-selected="true"] .touche-geste,
.geste:hover .pastille,
.geste:hover .touche-geste {
  opacity: 1;
}
.touche-geste.enfoncee {
  background: var(--pli);
  color: #ffffff;
  transform: translateY(3px);
  box-shadow:
    0 0 0 1px rgba(12, 40, 90, 0.14),
    0 0 0 rgba(12, 40, 90, 0.16);
}
/* Les quatre actions se jouent dans un nouveau message de Mail (demande d'Alexis du
   18-09-2026 : « fais pareil », comme le haut de page, « avec une autre application »).
   La fenêtre de rédaction de macOS 26 : le bouton d'envoi, le titre, les outils, les
   champs À et Objet, puis le texte. Sa hauteur est fixe : rien ne bouge autour quand
   les textes changent. Les bases (.fenetre, .feux, boutons en verre) sont celles du
   haut de page. */
.scene-vitrine {
  text-align: left;
}
.fenetre-mail {
  display: flex;
  flex-direction: column;
  height: clamp(400px, 33vw, 440px);
}
.outils-mail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 60px;
  padding: 0 14px 0 88px;
}
.titre-fenetre {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.champ-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  margin-inline: 20px;
  border-top: 1px solid rgba(10, 30, 70, 0.09);
  font-size: 15px;
  white-space: nowrap;
}
.champ-mail > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.libelle-mail {
  color: #85868c;
}
/* Un destinataire reconnu par Mail : une pastille bleutée. */
.jeton-mail {
  padding: 2px 9px;
  border-radius: 7px;
  background: #dbe8fd;
}
.corps-mail {
  flex: 1;
  min-height: 0;
  margin-inline: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 30, 70, 0.09);
  overflow: hidden;
  font-size: clamp(16px, 1.42vw, 17.5px);
  line-height: 1.5;
  --curseur: #0a7aff;
}
.legendes {
  min-height: 3.2em;
  margin-top: 22px;
  padding-inline: 8px;
}
.legende {
  max-width: 46ch;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--encre-2);
  animation: arrivee 0.5s var(--courbe);
}
@keyframes arrivee {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (max-width: 960px) {
  .vitrine {
    grid-template-columns: minmax(0, 1fr);
  }
  .vitrine .surtitre {
    margin-left: 16px;
  }
  .fenetre-mail {
    height: 400px;
  }
  .corps-mail {
    font-size: 16.5px;
  }
}
@media (max-width: 560px) {
  .fenetre-mail {
    border-radius: 22px;
  }
  .outils-mail {
    padding-left: 78px;
  }
  .outils-mail .groupe-verre svg:last-child {
    display: none;
  }
}

/* ─── Partout : les applications en orbite autour du mot ───────────────────
   Deux anneaux inclinés tournent autour de « Partout. », en sens contraires. Chaque
   icône reste de face, grandit en passant devant, pâlit en passant derrière le mot.
   Toutes les 7 secondes (--battement), ⌥C s'enfonce au centre, une onde part dans le
   plan de l'orbite, et chaque anneau rebondit quand elle l'atteint.

   L'orbite est calculée par js/scenes.js (scène « partout ») : à chaque image, la
   perspective de chaque icône est calculée et appliquée en 2D (translate, scale,
   opacité, ordre d'empilement) — le même rendu dans tous les navigateurs. Ici, les
   mesures (lues par la scène) et le battement, en CSS. La pause de la scène fige
   les deux : l'horloge de l'orbite est une animation, comme le battement.

   Les tailles sont en cqi (1 % de la largeur du cadre) : l'orbite garde ses
   proportions de l'ordinateur à la tablette ; sur téléphone, elle déborde de l'écran. */

/* L'orbite peut frôler les bords de l'écran (et les dépasser sur téléphone) : jamais de
   défilement horizontal pour autant. */
#partout {
  overflow: clip;
}
.cadre-partout {
  container-type: inline-size;
  max-width: 1000px;
  margin-inline: auto;
}
.scene-partout {
  /* Lues par la scène : rayons des deux anneaux, distance de la perspective. */
  --r1: 28cqi;
  --r2: 48cqi;
  --profondeur: 130cqi;
  --icone: 7.2cqi;
  --onde: 102cqi;
  --centre: 40%;
  --battement: 7s;
  height: 60cqi;
  /* Pour l'onde seulement : les icônes, elles, sont placées par la scène. */
  perspective: var(--profondeur);
  perspective-origin: 50% var(--centre);
}
.systeme {
  position: absolute;
  inset: 0;
}
/* Le mot et les touches : les icônes passent derrière, puis devant (z-index 1000). */
.partout-centre {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--centre);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8cqi;
  translate: 0 -50%;
  text-align: center;
  pointer-events: none;
}
.partout-centre .titre-geant {
  font-size: clamp(34px, 10cqi, 100px);
  line-height: 0.94;
}
.partout-touches {
  display: flex;
  gap: 10px;
}
.orbite {
  position: absolute;
  inset: 0;
}
.app-orbite {
  position: absolute;
  left: 50%;
  top: var(--centre);
  width: var(--icone);
  height: var(--icone);
  margin: calc(var(--icone) / -2) 0 0 calc(var(--icone) / -2);
  will-change: translate, scale, opacity;
}
.app-orbite img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.8cqi 1.2cqi rgba(10, 30, 70, 0.18));
}

/* L'onde : un cercle dans le plan de l'orbite (incliné de 64°, comme les anneaux),
   qui s'élargit depuis le mot. Derrière le mot, devant les icônes du fond. */
.onde {
  position: absolute;
  left: 50%;
  top: var(--centre);
  z-index: 999;
  width: var(--onde);
  height: var(--onde);
  margin: calc(var(--onde) / -2) 0 0 calc(var(--onde) / -2);
  border: 2px solid color-mix(in srgb, var(--marque) 60%, transparent);
  border-radius: 50%;
  opacity: 0;
  transform: rotateX(64deg) scale(0.45);
  pointer-events: none;
}

/* Les touches : le pli bleu passe dessous quand elles s'enfoncent. */
.partout-touches kbd {
  position: relative;
  isolation: isolate;
  /* À la taille de l'orbite : les touches rétrécissent avec elle. */
  min-width: clamp(38px, 6cqi, 60px);
  height: clamp(38px, 6cqi, 60px);
  padding: 0 clamp(10px, 1.7cqi, 17px);
  border-radius: clamp(10px, 1.6cqi, 16px);
  font-size: clamp(18px, 2.7cqi, 27px);
}
.partout-touches kbd::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--pli);
  opacity: 0;
}

/* Le battement : la scène ajoute .en-orbite quand elle est à l'écran. */
.en-orbite .onde {
  animation: onde var(--battement) infinite;
}
.en-orbite .partout-touches kbd {
  animation: appui var(--battement) ease-out infinite;
}
.en-orbite .partout-touches kbd::after {
  animation: appui-pli var(--battement) ease-out infinite;
}
.en-orbite .partout-touches kbd + kbd,
.en-orbite .partout-touches kbd + kbd::after {
  animation-delay: 90ms;
}
.en-orbite .app-orbite[data-anneau="1"] img {
  animation: rebond-1 var(--battement) ease-out infinite;
}
.en-orbite .app-orbite[data-anneau="2"] img {
  animation: rebond-2 var(--battement) ease-out infinite;
}
@keyframes onde {
  0%,
  4% {
    opacity: 0;
    transform: rotateX(64deg) scale(0.45);
    animation-timing-function: ease-out;
  }
  6% {
    opacity: 0.7;
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);
  }
  30%,
  100% {
    opacity: 0;
    transform: rotateX(64deg) scale(1);
  }
}
@keyframes rebond-1 {
  0%,
  6%,
  12%,
  100% {
    scale: 1;
  }
  8.5% {
    scale: 1.18;
  }
}
@keyframes rebond-2 {
  0%,
  15%,
  23%,
  100% {
    scale: 1;
  }
  18.5% {
    scale: 1.18;
  }
}
@keyframes appui {
  0%,
  8.5%,
  100% {
    translate: 0 0;
    color: #0e1626;
    box-shadow:
      0 0 0 1px rgba(12, 40, 90, 0.12),
      0 5px 0 rgba(12, 40, 90, 0.16),
      0 20px 40px rgba(10, 40, 90, 0.22);
  }
  0.8%,
  7% {
    translate: 0 4px;
    color: #ffffff;
    box-shadow:
      0 0 0 1px rgba(12, 40, 90, 0.12),
      0 1px 0 rgba(12, 40, 90, 0.16),
      0 10px 22px rgba(10, 40, 90, 0.2);
  }
}
@keyframes appui-pli {
  0%,
  8.5%,
  100% {
    opacity: 0;
  }
  0.8%,
  7% {
    opacity: 1;
  }
}

/* Sans JavaScript : le mot, puis les icônes en rangée. */
html:not(.js) .scene-partout {
  height: auto;
  perspective: none;
}
html:not(.js) .systeme,
html:not(.js) .orbite,
html:not(.js) .partout-centre {
  position: static;
  translate: none;
}
html:not(.js) .orbite {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
html:not(.js) .app-orbite {
  position: static;
  margin: 0;
}
html:not(.js) .onde {
  display: none;
}

.chapeau-partout {
  max-width: 40ch;
  margin: clamp(10px, 2vw, 28px) auto 0;
  text-align: center;
}
/* Téléphone : l'orbite est plus grande que l'écran. L'anneau extérieur sort par les
   côtés et revient ; les tailles suivent la largeur de l'écran (vw), pas celle du cadre. */
@media (max-width: 560px) {
  .scene-partout {
    --r1: 40vw;
    --r2: 58vw;
    --profondeur: 230vw;
    --icone: 14vw;
    --onde: 124vw;
    height: 92vw;
  }
  .partout-centre {
    gap: 8px;
  }
  .partout-centre .titre-geant {
    font-size: 12vw;
  }
  .partout-touches kbd {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 17px;
  }
}

/* ─── Les tuiles : l'aperçu, et ⌘Z ────────────────────────────────────────── */

.tuiles {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(40px, 5vw, 68px);
}
.tuile {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 42px);
  border-radius: clamp(28px, 3vw, 38px);
  background: #ffffff;
  box-shadow: 0 0 0 0.5px var(--filet);
}
.tuile h3 {
  font-size: clamp(24px, 2.5vw, 33px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.tuile > p:not(.visuellement-cache) {
  margin-top: 10px;
  max-width: 44ch;
  font-size: 17.5px;
  color: var(--encre-2);
}
.touche-titre {
  margin: 0 0.1em 0 0;
  padding: 0.04em 0.4em;
  border-radius: 0.32em;
  font-size: 0.82em;
  vertical-align: 0.06em;
  box-shadow:
    0 0 0 1px rgba(12, 40, 90, 0.14),
    0 0.12em 0 rgba(12, 40, 90, 0.16);
}
.cadre-tuile {
  display: flex;
  flex: 1;
  margin-top: clamp(24px, 3vw, 36px);
}
@media (max-width: 900px) {
  .tuiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* L'aperçu de Relysa, tel qu'il s'ouvre au-dessus de votre application */
.scene-apercu {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: clamp(16px, 2.4vw, 30px);
  border-radius: 26px;
  background:
    radial-gradient(80% 70% at 85% 0%, color-mix(in srgb, var(--marque-pale) 45%, transparent), transparent 70%),
    var(--fond-bleute);
}
.panneau-apercu {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 254, 0.94));
  box-shadow: var(--ombre-fenetre);
  font: 400 14px/1.4 var(--f-systeme);
  color: var(--encre);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition:
    opacity 0.25s ease,
    transform 0.32s var(--courbe);
}
.panneau-apercu.ouvert {
  opacity: 1;
  transform: none;
}
.apercu-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 0 2px;
}
.apercu-entete .pastille {
  width: 28px;
  height: 28px;
}
.apercu-titre {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.apercu-titre strong {
  font-size: 15px;
  font-weight: 600;
}
.apercu-titre span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--encre-2);
  white-space: nowrap;
}
.apercu-titre .point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marque);
  animation: pulsation 1.2s ease-in-out infinite;
}
/* Le contrôle segmenté de macOS 26 : une capsule, le segment choisi en relief. */
.segments {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(12, 40, 90, 0.07);
}
.segments span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}
.segments span.actif {
  background: #ffffff;
  box-shadow:
    0 0 0 0.5px rgba(12, 40, 90, 0.1),
    0 1px 2.5px rgba(10, 30, 70, 0.16);
  color: var(--marque-texte);
  font-weight: 600;
}
.segments span.eteint {
  opacity: 0.4;
}
.apercu-texte {
  min-height: 9em;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 0.5px var(--filet);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: wrap;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}
/* La couleur ne porte jamais seule le sens : ajout souligné, suppression barrée. */
.apercu-texte ins {
  color: var(--marque-texte);
  background: color-mix(in srgb, var(--marque-texte) 12%, transparent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  border-radius: 3px;
}
.apercu-texte del {
  color: var(--suppression);
  background: color-mix(in srgb, var(--suppression) 10%, transparent);
  text-decoration: line-through;
  border-radius: 3px;
}
.apercu-texte del + ins {
  margin-left: 0.28em;
}
/* Avant le premier mot : trois lignes d'attente qui respirent, comme dans l'application. */
.apercu-texte.attente::before {
  content: "";
  display: block;
  height: 3.6em;
  margin-top: 0.35em;
  border-radius: 6px;
  background:
    linear-gradient(rgba(12, 40, 90, 0.08), rgba(12, 40, 90, 0.08)) 0 0 / 92% 0.62em no-repeat,
    linear-gradient(rgba(12, 40, 90, 0.08), rgba(12, 40, 90, 0.08)) 0 1.45em / 78% 0.62em no-repeat,
    linear-gradient(rgba(12, 40, 90, 0.08), rgba(12, 40, 90, 0.08)) 0 2.9em / 54% 0.62em no-repeat;
  animation: pulsation 1.4s ease-in-out infinite;
}
.apercu-pied {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pousse {
  flex: 1;
}
/* Chaque bouton montre sa touche : l'aperçu se pilote au clavier. */
.bouton-mac {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 0 0.5px rgba(12, 40, 90, 0.16),
    0 1px 2px rgba(10, 30, 70, 0.1);
  font-size: 13.5px;
  white-space: nowrap;
  transition:
    filter 0.12s ease,
    scale 0.12s ease;
}
.bouton-mac.discret {
  background: rgba(12, 40, 90, 0.06);
  box-shadow: none;
}
.bouton-mac.principal {
  background: var(--facettes);
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--marque) 40%, transparent);
}
.bouton-mac kbd {
  min-width: 0;
  margin: 0 0 0 6px;
  padding: 0;
  background: none;
  box-shadow: none;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--encre-3);
}
.bouton-mac.principal kbd {
  color: rgba(255, 255, 255, 0.78);
}
.presse {
  filter: brightness(0.9);
  scale: 0.95;
}
@media (max-width: 560px) {
  .apercu-pied .facultatif {
    display: none;
  }
  .segments {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .segments span {
    flex: 1;
    justify-content: center;
    padding: 0 6px;
  }
}
/* Téléphone : le panneau se resserre, les touches des boutons secondaires s'effacent. */
@media (max-width: 480px) {
  .scene-apercu {
    padding: 10px;
    border-radius: 22px;
  }
  .panneau-apercu {
    padding: 12px;
    border-radius: 20px;
  }
  .apercu-texte {
    padding: 12px;
    font-size: 15px;
  }
  .bouton-mac {
    padding: 0 11px;
    font-size: 13px;
  }
  .bouton-mac:not(.principal) kbd {
    display: none;
  }
}
@media (max-width: 370px) {
  .bouton-mac {
    padding: 0 9px;
    font-size: 12.5px;
  }
  .apercu-pied .bouton-mac:not(.principal, .discret) {
    display: none;
  }
}

/* ⌘Z : la feuille, en petit, sur le fond de la tuile */
.feuille-tuile {
  --lignes: 2;
  flex: 1;
  justify-content: center;
  min-height: 300px;
  padding: clamp(24px, 2.6vw, 34px) clamp(22px, 2.6vw, 34px) 112px;
  border-radius: 26px;
  background: var(--fond-bleute);
  box-shadow: none;
}
.feuille-tuile .texte-feuille {
  min-height: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}
@media (max-width: 900px) {
  .feuille-tuile {
    min-height: 250px;
  }
  .feuille-tuile .texte-feuille {
    font-size: clamp(24px, 4.4vw, 34px);
  }
}

/* ─── Vos actions ─────────────────────────────────────────────────────────── */

/* L'estrade : un fond pâle où se posent les cartes de la scène. */
.estrade {
  padding: clamp(18px, 3vw, 44px);
  border-radius: clamp(28px, 3vw, 40px);
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--marque-pale) 40%, transparent), transparent 70%),
    var(--fond-bleute);
}
.scene-actions {
  display: grid;
  gap: 16px;
  max-width: 540px;
  margin-inline: auto;
  font-family: var(--f-systeme);
  font-weight: 400;
  text-align: left;
}
.fiche {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--ombre-fenetre);
}
.fiche-titre {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
}
.fiche-champ {
  display: grid;
  gap: 6px;
}
.fiche-libelle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--encre-3);
}
.fiche-valeur {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--fond-bleute);
  box-shadow: inset 0 0 0 1px transparent;
  font-size: 16px;
  line-height: 1.45;
  transition: box-shadow 0.2s ease;
}
.fiche-valeur[data-consigne] {
  min-height: 69px;
}
.fiche-valeur.active {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--marque) 55%, transparent);
}
.fiche-valeur.active::after {
  width: 2px;
  height: 1.1em;
  vertical-align: text-bottom;
}
.fiche-touches {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fiche-touches kbd {
  min-width: 34px;
  margin: 0;
  font-size: 16px;
  animation: apparaitre 0.28s var(--ressort) both;
}
@keyframes apparaitre {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.liste-actions {
  display: grid;
  align-content: start;
  gap: 2px;
  /* La place de la troisième rangée est déjà là : rien ne bouge autour quand elle arrive. */
  min-height: 140px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ombre-carte), 0 0 0 0.5px var(--filet);
}
.ligne-action {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15px;
}
.ligne-action kbd,
.ligne-menu kbd {
  min-width: 0;
  margin: 0 0 0 auto;
  padding: 0;
  background: none;
  box-shadow: none;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--encre-3);
}
.ligne-action.nouvelle {
  background: color-mix(in srgb, var(--bleu-ardoise) 11%, white);
  font-weight: 600;
}
.js .ligne-action.nouvelle {
  height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  transition:
    height 0.35s var(--courbe),
    opacity 0.3s ease,
    transform 0.35s var(--courbe);
}
.js .ligne-action.nouvelle.visible {
  height: 40px;
  opacity: 1;
  transform: none;
}

/* ─── Toujours là : la barre des menus, et le panneau de Relysa ───────────── */

.scene-barre {
  min-height: 486px;
  border-radius: clamp(24px, 2.6vw, 32px);
  background:
    radial-gradient(110% 80% at 8% 0%, #d3e4ff, transparent 62%),
    radial-gradient(90% 80% at 100% 100%, #cfeafb, transparent 60%),
    linear-gradient(160deg, #dfeaff, #f4f8ff);
  box-shadow: var(--ombre-feuille);
  overflow: hidden;
  font: 400 14px/1.4 var(--f-systeme);
  text-align: left;
}
.barre-menus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 13.5px;
}
.barre-gauche,
.barre-droite {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.barre-gauche {
  min-width: 0;
  overflow: hidden;
}
.barre-gauche b {
  font-weight: 700;
}
.avion-barre {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border-radius: 7px;
  color: #000000;
  transition: background-color 0.15s ease;
}
.avion-barre svg {
  max-width: none;
  transition: opacity 0.25s ease;
}
.avion-barre.ouvert {
  background: rgba(0, 0, 0, 0.1);
}
.avion-barre.en-pause svg {
  opacity: 0.4;
}
/* À la manière du Centre de contrôle : un module d'état, les actions, le menu. */
.panneau-barre {
  position: absolute;
  top: 42px;
  right: 12px;
  display: grid;
  gap: 4px;
  width: min(296px, calc(100% - 24px));
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  box-shadow:
    0 0 0 0.5px rgba(12, 40, 90, 0.14),
    0 22px 50px rgba(10, 40, 90, 0.2);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.22s ease,
    transform 0.28s var(--courbe);
}
.scene > .panneau-barre.ouvert {
  opacity: 1;
  transform: none;
}
.module {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(12, 40, 90, 0.07);
}
.module img {
  flex: none;
  margin: -3px;
}
.module-texte {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}
.module-texte strong {
  font-weight: 600;
}
.module-texte span {
  font-size: 11.5px;
  color: var(--encre-2);
}
.interrupteur {
  position: relative;
  flex: none;
  width: 38px;
  height: 23px;
  border-radius: 999px;
  background: var(--marque);
  transition:
    background-color 0.2s ease,
    filter 0.12s ease,
    scale 0.12s ease;
}
.interrupteur::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s var(--courbe);
}
.interrupteur[data-actif="false"] {
  background: rgba(12, 40, 90, 0.2);
}
.interrupteur[data-actif="false"]::after {
  transform: translateX(-15px);
}
.panneau-section {
  margin: 4px 12px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--encre-2);
}
.ligne-panneau,
.ligne-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  transition: opacity 0.25s ease;
}
.ligne-panneau {
  height: 34px;
}
.ligne-menu {
  height: 26px;
}
/* Dans le panneau, chaque touche d'un raccourci a sa capsule — comme dans
   l'application depuis sa refonte du 18-09-2026 (app/src/lib/Touche.svelte),
   où le raccourci est devenu ce qui se voit en premier. Les raccourcis du menu
   (⌘, et ⌘Q) restent en texte, comme dans tous les menus de macOS. */
.touches-panneau {
  display: inline-flex;
  gap: 3px;
  margin-left: auto;
}
.touches-panneau kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin: 0;
  padding: 0 5px;
  border-radius: 6px;
  background: #f3f5f9;
  box-shadow:
    0 0 0 0.5px rgba(12, 40, 90, 0.2),
    0 1px 0 rgba(12, 40, 90, 0.2);
  font: 500 12px/1 var(--f-systeme);
  color: var(--encre);
}
.panneau-barre.en-pause .ligne-panneau {
  opacity: 0.45;
}
.panneau-filet {
  height: 0;
  margin: 2px 12px;
  border-top: 0.5px solid rgba(12, 40, 90, 0.16);
}
.vide {
  position: absolute;
  left: 20%;
  top: 72%;
  width: 10px;
  height: 10px;
}
/* Le pointeur de la souris. Sa place passe par `translate`, son clic par `scale` : deux
   propriétés distinctes, pour que le clic ne rapproche pas le pointeur du coin de la
   scène (avec `transform`, la mise à l'échelle raccourcissait aussi le déplacement). Il
   rétrécit autour de sa pointe, qui ne bouge pas. */
.pointeur {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: 26px;
  height: 26px;
  opacity: 0;
  pointer-events: none;
  transform-origin: 21% 10%;
  transition-property: translate, opacity, scale;
  transition-duration: 1100ms, 200ms, 140ms;
  transition-timing-function: cubic-bezier(0.4, 0.05, 0.2, 1), ease, ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}
.pointeur path {
  fill: #111111;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.scene > .pointeur.visible {
  opacity: 1;
}
.pointeur.clic {
  scale: 0.82;
}
@media (max-width: 520px) {
  .facultatif {
    display: none;
  }
}

/* ─── Vos textes ──────────────────────────────────────────────────────────── */

.garanties {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin: clamp(40px, 5vw, 68px) 0 0;
  padding: 0;
  list-style: none;
}
.garanties li {
  padding: clamp(26px, 2.8vw, 38px);
  border-radius: clamp(26px, 2.8vw, 34px);
  background: var(--fond-bleute);
}
.garanties h3 {
  margin-top: 22px;
  font-size: clamp(21px, 1.9vw, 25px);
  font-weight: 800;
}
.garanties p {
  margin-top: 8px;
  font-size: 16.5px;
  color: var(--encre-2);
}
@media (max-width: 860px) {
  .garanties {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Tarifs ──────────────────────────────────────────────────────────────── */

.offres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 840px;
}
.offre {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 38px 30px 30px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--ombre-carte), 0 0 0 0.5px var(--filet);
  text-align: center;
}
.offre h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--encre-2);
}
.offre .prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 8px;
  margin-top: 4px;
}
.montant {
  font: 900 clamp(46px, 5vw, 58px) / 1.1 var(--f-titre);
  letter-spacing: -0.035em;
  color: var(--marque-texte);
  font-variant-numeric: tabular-nums;
}
.periode {
  font-size: 17px;
  font-weight: 600;
  color: var(--encre-2);
}
.offre .detail {
  margin-bottom: 24px;
  font-size: 15.5px;
  color: var(--encre-3);
}
.offre .bouton {
  width: 100%;
  margin-top: auto;
  font-size: 17px;
}
/* La formule annuelle : la plus avantageuse, cerclée du bleu du logo. */
.offre.recommandee {
  box-shadow: var(--ombre-carte), 0 0 0 2px var(--marque);
}
.etiquette-offre {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--pli);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.inclus-bloc {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.inclus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.inclus li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 0.5px var(--filet);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--encre-2);
}
/* Un petit pli du logo en guise de puce. */
.inclus li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--marque-clair) 49.6%, var(--marque) 50.4%);
}
.mention-prix {
  font-size: 13.5px;
  color: var(--encre-3);
}
@media (max-width: 760px) {
  .offres {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ─── Questions ───────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 10px;
  margin-top: clamp(36px, 4.4vw, 60px);
}
.faq-groupe {
  margin: 26px 0 4px 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--marque-texte);
}
.faq-groupe:first-child {
  margin-top: 0;
}
.faq details {
  border-radius: 22px;
  background: var(--fond-bleute);
  transition: background-color 0.2s ease;
}
.faq details[open] {
  background: color-mix(in srgb, var(--marque) 7%, white);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 20px 26px;
  border-radius: 22px;
  cursor: pointer;
  list-style: none;
  font: 800 clamp(17.5px, 1.6vw, 19.5px) / 1.35 var(--f-titre);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%230062d6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat,
    #ffffff;
  transition: transform 0.3s var(--courbe);
}
.faq details[open] summary::after {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 60px 24px 26px;
  color: var(--encre-2);
}
/* La réponse se déplie en douceur, là où le navigateur le permet. */
@supports (interpolate-size: allow-keywords) {
  .faq details {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition:
      block-size 0.4s var(--courbe),
      opacity 0.3s ease,
      content-visibility 0.4s allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}
.faq-suite {
  margin-top: 30px;
  text-align: center;
  color: var(--encre-2);
}
.faq-suite a {
  font-weight: 700;
  text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .faq details p {
    padding-right: 26px;
  }
}

/* ─── L'envol ─────────────────────────────────────────────────────────────── */

.final {
  padding-block: clamp(88px, 12vw, 170px);
  background:
    radial-gradient(50% 80% at 50% 100%, color-mix(in srgb, var(--marque-clair) 24%, transparent), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--fond-bleute));
  text-align: center;
  overflow: hidden;
}
.final-dedans {
  display: grid;
  justify-items: center;
  gap: 24px;
}
.final .titre-geant {
  font-weight: 900;
  font-size: clamp(44px, 8vw, 116px);
  letter-spacing: -0.04em;
}
.envol {
  width: clamp(150px, 17vw, 220px);
  height: auto;
  margin-bottom: 6px;
  overflow: visible;
  filter: drop-shadow(0 18px 24px rgba(0, 58, 140, 0.16));
}
.trainee-envol {
  stroke-dasharray: 1;
}
/* L'avion part d'en bas à gauche, suit sa traînée et prend sa place. */
.js .envol .trainee-envol {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s;
}
.js .envol .corps-envol {
  opacity: 0;
  transform: translate(-520px, 520px) scale(0.5);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.45s ease;
}
.js .envol.parti .trainee-envol {
  stroke-dashoffset: 0;
}
.js .envol.parti .corps-envol {
  opacity: 1;
  transform: none;
}
.final .bouton-grand {
  margin-top: 10px;
}

/* ─── Pied de page ────────────────────────────────────────────────────────── */

.pied {
  padding-block: 36px 46px;
  background: #ffffff;
}
.pied-dedans {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 34px;
}
.pied .marque {
  font-size: 19px;
}
.pied-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.pied-liens a {
  color: var(--encre-2);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 700;
}
.pied-liens a:hover,
.pied-liens a[aria-current="page"] {
  color: var(--marque-texte);
}
.mentions {
  margin-left: auto;
  color: var(--encre-3);
  font-size: 14.5px;
}
.mentions a {
  color: inherit;
  text-decoration: none;
}
.mentions a:hover {
  color: var(--marque-texte);
}
.marques {
  width: 100%;
  padding-top: 18px;
  border-top: 0.5px solid var(--filet);
  font-size: 13px;
  line-height: 1.55;
  color: var(--encre-3);
}
@media (max-width: 760px) {
  .mentions {
    margin-left: 0;
    width: 100%;
  }
}

/* ─── Page d'aide ─────────────────────────────────────────────────────────── */

.aide {
  padding-block: clamp(36px, 5vw, 64px) clamp(64px, 9vw, 110px);
  background: linear-gradient(180deg, var(--fond-bleute), #ffffff 460px);
}
.aide-grille {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 72px);
  align-items: start;
}
.aide-entete {
  grid-column: 2;
}
.aide-entete .surtitre {
  margin-bottom: 12px;
}
.aide-entete h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.aide-entete .accroche {
  max-width: 46ch;
  margin-top: 16px;
  font-size: clamp(18px, 1.7vw, 21px);
  text-wrap: pretty;
}
/* Le sommaire accompagne toute la page ; sur mobile, il passe sous le titre. */
.sommaire {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 94px;
}
.sommaire nav {
  display: grid;
  gap: 2px;
}
.sommaire-titre {
  margin: 0 0 8px 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--encre-3);
}
.sommaire a {
  padding: 7px 14px;
  border-radius: 12px;
  color: var(--encre-2);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.sommaire a:hover {
  background: color-mix(in srgb, var(--marque) 8%, transparent);
  color: var(--marque-texte);
}
.sommaire a.courant {
  background: #ffffff;
  box-shadow: var(--ombre-carte), 0 0 0 0.5px var(--filet);
  color: var(--marque-texte);
  font-weight: 800;
}
.contenu-aide {
  grid-column: 2;
  display: grid;
  gap: 22px;
  max-width: 780px;
}
.contenu-aide section {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--ombre-carte), 0 0 0 0.5px var(--filet);
}
.contenu-aide h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 29px);
  font-weight: 800;
}
.contenu-aide section > p + p,
.contenu-aide section > p + ul,
.contenu-aide section > ul + p,
.contenu-aide section > p + table,
.contenu-aide section > table + p,
.contenu-aide section > p + ol,
.contenu-aide section > ol + p {
  margin-top: 14px;
}
.contenu-aide p,
.contenu-aide li,
.contenu-aide td {
  color: var(--encre-2);
}
.contenu-aide strong {
  color: var(--encre);
  font-weight: 800;
}
.etapes-aide {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.etapes-aide li {
  position: relative;
  padding-left: 46px;
  counter-increment: etape;
}
.etapes-aide li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pli);
  color: #ffffff;
  font: 800 15px/1 var(--f-titre);
}
.puces {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}
.puces li::marker {
  color: var(--marque);
}
.tableau-aide {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.tableau-aide th {
  padding: 10px 12px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--encre-3);
  border-bottom: 0.5px solid var(--filet);
}
.tableau-aide td {
  padding: 13px 12px;
  vertical-align: top;
  border-bottom: 0.5px solid var(--filet);
}
.tableau-aide tr:last-child td {
  border-bottom: 0;
}
.tableau-aide td:first-child {
  color: var(--encre);
  font-weight: 800;
  white-space: nowrap;
}
.action-aide {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.touches-aide {
  max-width: 440px;
}
.aide-suite {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 30px;
  background: var(--fond-bleute);
  text-align: center;
}
.aide-suite p {
  font: 800 clamp(22px, 2.4vw, 28px) / 1.2 var(--f-titre);
  letter-spacing: -0.02em;
  color: var(--encre);
}
@media (max-width: 880px) {
  .aide-grille {
    grid-template-columns: minmax(0, 1fr);
  }
  .aide-entete,
  .sommaire,
  .contenu-aide {
    grid-column: 1;
    grid-row: auto;
  }
  .sommaire {
    position: static;
  }
  .sommaire nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sommaire-titre {
    width: 100%;
    margin: 0 0 2px;
  }
  .sommaire a,
  .sommaire a.courant {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 0.5px var(--filet);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--encre-2);
  }
}
/* Écran étroit : chaque action tient sur deux lignes — nom et raccourci, puis ce qu'elle fait. */
@media (max-width: 560px) {
  .tableau-aide:not(.touches-aide),
  .tableau-aide:not(.touches-aide) tbody {
    display: block;
  }
  .tableau-aide:not(.touches-aide) thead {
    display: none;
  }
  .tableau-aide:not(.touches-aide) tr {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 12px;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--filet);
  }
  .tableau-aide:not(.touches-aide) tr:last-child {
    border-bottom: 0;
  }
  .tableau-aide:not(.touches-aide) td {
    padding: 0;
    border: 0;
  }
  .tableau-aide:not(.touches-aide) td:last-child {
    grid-column: 1 / -1;
  }
}

/* ─── Page introuvable ────────────────────────────────────────────────────── */

.introuvable {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  padding-block: 60px 90px;
  background:
    radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--marque-clair) 20%, transparent), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--fond-bleute));
  text-align: center;
}
.introuvable .dedans {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.introuvable img {
  width: clamp(130px, 16vw, 190px);
  filter: drop-shadow(0 18px 24px rgba(0, 58, 140, 0.16));
}
.introuvable h1 {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.introuvable p {
  max-width: 34ch;
  font-size: clamp(18px, 1.9vw, 22px);
  color: var(--encre-2);
}

/* ─── Mouvement réduit : tout s'affiche, rien ne bouge ────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-apparition] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .texte-feuille.tape .contenu::after,
  .texte-app.tape .contenu::after,
  .fenetre .arrive,
  .fenetre .bulle.ecrit i,
  .fiche-valeur.active::after,
  .apercu-texte.ecrit::after,
  .apercu-texte.attente::before,
  .apercu-titre .point,
  .fiche-touches kbd,
  .legende,
  .echange.corrige .apres,
  .capsule.visible .trainee,
  .capsule.visible .corps {
    animation: none;
  }
  .avion-capsule .trainee {
    stroke-dasharray: none;
  }
  .js .envol .trainee-envol,
  .js .envol .corps-envol,
  .gestes-curseur,
  .panneau-apercu,
  .js .ligne-action.nouvelle,
  .faq details::details-content {
    transition: none;
  }
}
