/* L'interface d'un utilitaire macOS sur un fond bleu très pâle : groupes blancs, boutons système, captures de l'app.
   Clair, et sombre quand le système l'est (S43). Chaque couleur est un jeton ; les jetons de texte tiennent 4,5:1 sur le
   fond et sur la carte, dans les deux thèmes : scripts/contraste.py le mesure (S06). */
:root {
  --window: #edf2f8;          /* le fond de la page */
  --group: #ffffff;           /* les cartes, les groupes, la bulle */
  --sunken: #f4f7fb;          /* un pied de carte, à peine gris */
  --control: #ffffff;         /* un bouton, l'onglet choisi */
  --control-hover: #eaf0f7;
  --text: #142338;
  --body: #2c3a50;
  --secondary: #566175;
  --accent: #0064d2;
  --accent-soft: #e6eef9;     /* le fond d'une étiquette à l'accent */
  --warn: #a34a00;
  --warn-soft: #f6e7dc;       /* le fond d'une étiquette à l'avertissement */
  --problem: #8a5a00;
  --edge: #7d8aa0;            /* un trait qui doit se voir : chevron, bord de champ, onglet choisi (3:1) */
  --line: 20 40 80;           /* traits fins et voiles, en rgb(var(--line) / a) */
  --shade: 20 40 80;          /* ombres, en rgb(var(--shade) / a) */
  --border: rgb(var(--line) / .14);
  --nav-bg: rgb(237 242 248 / .88);
  --dock-bg: rgb(255 255 255 / .6);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  /* Titres : une grotesque récente et soignée, en graisse moyenne ; le reste garde la police du système. */
  --display: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* Cinq tailles de texte, plus les titres (S40). */
  --t-small: 13px; --t-note: 15px; --t-ui: 16px; --t-body: 17px; --t-lead: clamp(18px, 2.1vw, 20px);
  --focus: 0 0 0 3px rgb(0 100 210 / .45);
}
/* Le sombre suit le système, sur les pages qui le déclarent (<meta name="color-scheme" content="light dark">) :
   toutes, pages de version comprises. */
@media (prefers-color-scheme: dark) {
  :root:has(meta[name="color-scheme"][content~="dark"]) {
    --window: #0e1520;
    --group: #18212e;
    --sunken: #1f2a38;
    --control: #263243;
    --control-hover: #2e3b4e;
    --text: #eef3f9;
    --body: #cdd6e2;
    --secondary: #9ba8ba;
    --accent: #5aa5ff;
    --accent-soft: #16233a;
    --warn: #ff9d4d;
    --warn-soft: #33210f;
    --problem: #e0b25a;
    --edge: #7d8aa0;
    --line: 200 215 235;
    --shade: 0 0 0;
    --nav-bg: rgb(14 21 32 / .88);
    --dock-bg: rgb(38 50 67 / .6);
    --focus: 0 0 0 3px rgb(90 165 255 / .55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--window);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.col { max-width: 760px; margin: 0 auto; }

/* Boutons système */
.button {
  display: inline-block; font-size: var(--t-note); font-weight: 500; line-height: 1;
  padding: 9px 16px; border-radius: 7px;
  background: var(--control); color: var(--text);
  border: 0; box-shadow: 0 0 0 1px rgb(var(--line) / .16), 0 1px 1px rgb(var(--shade) / .08);
  cursor: pointer;
}
.button.default { background: linear-gradient(#2a86f5, #0064d2); color: #fff; box-shadow: 0 0 0 .5px rgba(0,60,180,.5), 0 1px 1px rgb(var(--shade) / .12); }
.button.large { font-size: 18px; padding: 14px 26px; border-radius: 10px; }
/* Bouton principal du haut : plus grand, avec l'icône de l'app. */
.button.hero {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; letter-spacing: -.01em;
  padding: 12px 14px 12px 24px; border-radius: 18px;
  background: var(--control);
  box-shadow: 0 0 0 1px rgb(var(--line) / .1), 0 2px 4px rgb(var(--shade) / .04);
  transition: box-shadow .15s ease, background .15s ease;
}
.button.hero::after {
  content: ""; flex: none; width: 34px; height: 34px; margin-left: 10px; border-radius: 50%;
  background: var(--control-hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23142338' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v9M4 8.5 8 12.5l4-4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: background-color .15s ease;
}
.button.hero:hover { filter: none; box-shadow: 0 0 0 1px rgb(var(--line) / .14), 0 4px 12px rgb(var(--shade) / .08); }
.button.hero:hover::after { filter: brightness(.96); }
.button.hero:active { background: var(--control-hover); }
.button-icon { width: 40px; height: 40px; flex: none; margin: 0; filter: drop-shadow(0 1px 2px rgb(var(--shade) / .25)); }
a.button:hover { text-decoration: none; filter: brightness(1.04); }

/* En-tête, comme un écran « À propos ». Le titre, le sous-titre et le micro se règlent sur un même corps, celui du
   titre, par le même calcul à toutes les largeurs.
   Le micro de radio a le corps du titre, donc son échelle. Le titre tient sur trois lignes ; sa deuxième ligne,
   « vous de tout », fait 5.4 cadratins et sert de repère, la troisième passe sous le micro. Le micro se centre dans l'espace qui reste à droite de cette ligne, sans
   jamais s'en approcher à moins d'un demi-cadratin : sur téléphone, il déborde alors du bord droit et seule sa tête
   entre. Sa tête, au septième de sa hauteur, vient au milieu des deux lignes. Le mât descend derrière les onglets et la
   fenêtre Appels. Le texte ne passe jamais sur le dessin : le sous-titre s'arrête avant le mât, qui commence à 85 % de
   la largeur de l'image, avec une marge. */
.about {
  position: relative; text-align: left; padding: 0;
  --corps: clamp(40px, 7.4vw, 84px);
  --titre: calc(5.4 * var(--corps));
  --micro: max(3.4 * var(--corps), 180px);
  --micro-gauche: max(var(--titre) + .5 * var(--corps), (100% + var(--titre) - var(--micro)) / 2);
  --mat-gauche: calc(var(--micro-gauche) + .848 * var(--micro));
}
.about .app-mic {
  position: absolute; z-index: -1; pointer-events: none;
  width: var(--micro); height: auto; left: var(--micro-gauche);
  top: calc(var(--about-top) + 1.04 * var(--corps) - .412 * var(--micro));
}
/* Le mât ne se montre que s'il descend derrière la fenêtre Appels, qui a la largeur du contenu. Son bord droit est à
   micro-gauche + .935 micro. Sous 540 px, corps, micro et titre ne bougent plus (40 px, 180 px, 216 px) et le micro est
   calé à son écart minimal du titre : le mât finit à 404 px du bord gauche du contenu. Il faut donc 404 px de contenu,
   16 px de marge en plus, soit un écran de 452 px. En dessous, le micro entre par le bord droit de l'écran, qui coupe
   le bras aux sept dixièmes de l'image, avant l'articulation : rien n'est découpé dans le dessin, c'est l'écran qui
   coupe. Le bord de l'écran est à 16 px du contenu (la marge de .wrap). Sur un écran très étroit, l'écart minimal au
   titre l'emporte et la coupe remonte le long du bras. */
@media (max-width: 452px) {
  .about { --micro-gauche: max(var(--titre) + .5 * var(--corps), 100% + 16px - .7 * var(--micro)); }
}
/* Le bord de l'écran coupe le micro sans élargir la page (S13) : la coupe se fait sur .about, prolongé jusqu'au bord
   droit de l'écran par la marge de .wrap ; le mât descend toujours (overflow-x seulement). */
@media (max-width: 760px) {
  .about { overflow-x: clip; margin-right: -16px; padding-right: 16px; }
}
.about h1 { font-family: var(--display); font-size: var(--corps); line-height: 1.04; letter-spacing: -0.025em; font-weight: 500; max-width: 7em; margin: 0 0 48px; }
/* Mini logos des marques citées, dans le fil du texte */
img.logo { width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin-right: .22em; }
.nobr { white-space: nowrap; }
/* Le trait d'union du titre, dessiné large par la grotesque : ramené à la largeur d'un trait d'union de texte (S41). */
.about h1 .trait { display: inline-block; transform: scaleX(.62); margin: 0 -.09em; }
/* Retours à la ligne : titres et textes centrés équilibrés, paragraphes sans mot seul en fin de bloc. */
p, li, h3 { text-wrap: pretty; hyphens: manual; }
h1, h2, .about .lead, .intro p, .req, .notes { text-wrap: balance; }
.about .req { font-size: var(--t-note); color: var(--secondary); margin-top: 16px; }
/* Le bouton d'installation, sous les illustrations : on a vu ce que ça fait avant qu'on propose de l'installer. */
.cta { text-align: center; margin-top: 136px; }
.cta .req { font-size: var(--t-note); color: var(--secondary); margin: 16px 0 0; text-wrap: balance; }
.cta + .dock-label { margin-top: 120px; }
@media (max-width: 640px) { .cta { margin-top: 56px; } .cta + .dock-label { margin-top: 88px; } }

/* La fenêtre Appels : la liste à gauche, l'appel choisi à droite */
.stage { position: relative; max-width: 1048px; margin: 96px auto 0; }
/* L'arrondi des fenêtres de macOS 26 (26 points sur une fenêtre de 1280 × 789), à l'échelle de l'image. */
.stage > img {
  width: 100%; height: auto; display: block;
  border-radius: 2.03% / 3.3%; border: .5px solid rgb(var(--line) / .25);
  box-shadow: 0 22px 50px -16px rgb(var(--shade) / .28);
}
.stage .detail {
  position: absolute; right: 0; bottom: 0; width: 60%; height: auto; display: block;
  border-radius: 2.2% / 3.3%; border: .5px solid rgb(var(--line) / .25);
  box-shadow: 0 26px 60px -18px rgb(var(--shade) / .32), 0 8px 18px -10px rgb(var(--shade) / .18);
}

/* Onglets au-dessus de l'illustration : un contrôle segmenté de macOS. */
.tabs { display: flex; width: fit-content; margin: 80px auto 0; padding: 3px; gap: 2px; border-radius: 10px; background: rgb(var(--line) / .07); }
/* Le corps et la marge des onglets suivent la largeur, sans palier : trois onglets tiennent à 320 px (S13, S15). */
.tabs button { font: 500 clamp(13px, 3.6vw, 15px)/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: none; border: 0; border-radius: 8px; padding: 8px clamp(6px, 4vw - 6px, 22px); white-space: nowrap; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--control); box-shadow: 0 0 0 1px var(--edge), 0 1px 3px rgb(var(--shade) / .12); }
.tabs button:not([aria-selected="true"]):hover { background: rgb(var(--line) / .06); }
.about + .tabs { margin: 56px 0 0; }
.tabs + .stage { margin-top: 28px; }
.stage .claude { z-index: 2; }
.claude[hidden] { display: none; }
/* Devant la liste du Mac, un Pixel 7 sur la même liste : l'app Android. L'image garde son contour, l'ombre le suit. */
.stage > img.pixel { position: absolute; z-index: 3; left: max(-4%, calc((100% - 100vw) / 2 + 16px)); top: 15cqw; width: 23cqw; height: auto; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 28px rgb(var(--shade) / .3)) drop-shadow(0 6px 10px rgb(var(--shade) / .16)); }
.stage .pixel[hidden] { display: none; }

/* Par-dessus la fenêtre Appels : une conversation avec Claude qui s'appuie sur un appel enregistré. */
.stage { container-type: inline-size; }
.claude {
  position: absolute; right: max(-6%, calc((100% - 100vw) / 2 + 16px)); bottom: -8%; width: 58%;
  font: clamp(12px, 1.6cqw, 17px)/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #29261b; background: #faf9f5; text-align: left;
  border-radius: 11px; border: .5px solid rgba(0,0,0,.25);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.38), 0 10px 22px -12px rgba(0,0,0,.2);
  overflow: hidden;
}
.claude .bar { display: flex; align-items: center; gap: 6px; padding: .8em 1em; border-bottom: 1px solid #ebe8de; }
.claude .bar i { width: .85em; height: .85em; border-radius: 50%; background: #dcdad3; }
.claude .bar span { flex: 1; text-align: center; margin-right: 3em; font-weight: 600; color: #6b6759; font-size: .92em; }
.claude .body { padding: 1.2em 1.4em 1.4em; }
.claude .ask { margin: 0 0 1.1em auto; width: fit-content; max-width: 85%; padding: .6em .95em; border-radius: 1em; background: #f0eee6; }
.claude .tool { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 .9em; padding: .35em .75em; border-radius: .6em; border: 1px solid #e6e2d6; color: #6b6759; font-size: .9em; }
.claude .tool img { width: 1.25em; height: 1.25em; }
.claude .answer { display: flex; gap: .7em; }
.claude .answer > img { width: 1.4em; height: 1.4em; flex: none; margin-top: .1em; }
.claude p { margin: 0 0 .55em; }
.claude .mail { background: #fff; border: 1px solid #e6e2d6; border-radius: .7em; padding: .75em .95em; }
.claude .mail b { display: block; margin-bottom: .35em; }
.claude ul { margin: .35em 0 0; padding-left: 1.2em; }
.claude li { margin: .15em 0; }
.claude .sub { color: #6e6a5c; }
.claude .quotes { list-style: none; padding: 0; margin: 0; }
.claude .quotes li + li { margin-top: .4em; }
/* La source sous la citation, sur sa propre ligne (S37). */
.claude .quotes .sub { display: block; font-size: .92em; }
.claude .next { margin: .7em 0 0; }
/* En tête : la pile des outils d'appel × les assistants. */
.pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3vw, 28px); margin: 0 0 56px; }
.pair figure { margin: 0; text-align: center; display: flex; flex-direction: column; align-self: stretch; }
.pair figcaption { margin-top: auto !important; padding-top: 6px; white-space: nowrap; }
.pair figure > img { width: clamp(46px, 11vw, 112px); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 8px 14px rgb(var(--shade) / .14)); }
.pair figcaption { font-size: 14px; color: var(--secondary); margin-top: 6px; }
.pair .times { font-family: var(--display); font-size: clamp(24px, 5vw, 52px); line-height: clamp(46px, 11vw, 112px); color: var(--secondary); margin: 0 clamp(4px, 1.5vw, 16px); }
.pair .times img { display: inline-block; box-sizing: content-box; width: .5em; height: auto; padding: 0 .039em; vertical-align: middle; }
/* Les icônes en éventail, comme des cartes tenues en main. */
.pile { display: flex; justify-content: center; padding: 0 0 0 calc(clamp(34px, 9.6vw, 98px) * .22); }
.pile span {
  width: clamp(34px, 9.6vw, 98px); aspect-ratio: 1; margin-left: calc(clamp(34px, 9.6vw, 98px) * -.22);
  margin-top: clamp(4px, .7vw, 7px); border-radius: 23%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(var(--line) / .08), 0 8px 18px -6px rgb(var(--shade) / .28);
}
.pile span:nth-child(1) { transform: rotate(-9deg) translateY(6px); }
.pile span:nth-child(2) { transform: rotate(-4deg) translateY(1px); }
.pile span:nth-child(4) { transform: rotate(4deg) translateY(1px); }
.pile span:nth-child(5) { transform: rotate(9deg) translateY(6px); }
.pile img { width: 100%; height: 100%; display: block; }
.pile .meet img { padding: 18%; box-sizing: border-box; }
/* Les icônes à l'encre et au lavis : l'image déborde de la tuile pour garder le trait du bord. */
.pile span:has(img[src*="encre/"]) { background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.pile img[src*="encre/"] { width: 112.5%; height: auto; margin: -6.25%; max-width: none; filter: drop-shadow(0 2px 3px rgb(var(--shade) / .09)); }
.pair figure > img.encre { box-sizing: border-box; padding: calc(clamp(46px, 11vw, 112px) * .025); filter: drop-shadow(0 2px 3px rgb(var(--shade) / .09)); }
.about .lead { font-size: clamp(19px, 2.3vw, 23px); color: var(--body); max-width: min(560px, var(--mat-gauche) - 24px); margin: -24px 0 0; }
@media (max-width: 640px) {
  .pair { gap: 8px; }
  .claude { position: relative; right: auto; bottom: auto; width: auto; margin: -24px 8px 0; font-size: 12.5px; }
}

/* Rythme vertical : 160 px entre les parties, 56 px entre un titre de partie et son contenu. */
section { padding: 160px 0 0; }
section.follow { padding-top: 56px; }
h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; margin: 0 0 20px; }
.intro { text-align: center; max-width: 700px; margin: 0 auto; }
.intro p { font-size: var(--t-lead); color: var(--body); margin: 0 0 14px; }
.intro p:last-child { margin-bottom: 0; }
.req.warn { color: var(--warn); }
.said { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.45; text-align: center; max-width: 640px; margin: 0 auto; }

/* Groupes à la Réglages Système */
.group-label { font-size: var(--t-note); font-weight: 600; color: var(--text); margin: 0 0 10px 14px; }
.group {
  background: var(--group); border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border);
}
.row { padding: 18px 20px; }
.row h3 { font-size: var(--t-body); font-weight: 600; margin: 0 0 4px; }
.row h3:only-child { margin: 0; }
.row p { font-size: var(--t-ui); color: var(--secondary); margin: 0; }


/* Dock sous l'illustration : les apps et services dont les appels sont enregistrés. Le nom s'affiche au survol. */
.dock {
  display: flex; justify-content: center; align-items: flex-end; gap: 2px;
  width: fit-content; max-width: 100%; margin: 104px auto 0; padding: 6px 8px;
  background: var(--dock-bg); border: 1px solid rgb(var(--line) / .08); border-radius: 22px;
  box-shadow: 0 16px 40px -18px rgb(var(--shade) / .3);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.dock .app { position: relative; display: block; width: clamp(22px, 5.6vw, 56px); height: clamp(22px, 5.6vw, 56px); flex: none; }
.dock .app img { width: 100%; height: 100%; display: block; transition: transform .15s; }
/* Icônes de l'App Store, carrées : arrondies et rentrées comme celles de macOS. */
.dock .app.tile img { width: 80%; height: 80%; margin: 10%; border-radius: 22.5%; box-shadow: 0 1px 2px rgb(var(--shade) / .2); }
.dock .app.glyph img { background: #fff; padding: 14%; box-sizing: border-box; }
.dock-label { text-align: center; font-size: 14px; color: var(--secondary); margin: 168px 0 10px; }
.dock + .dock-label { margin-top: 16px; }
.dock-label + .dock { margin-top: 0; }
.dock .app:hover img { transform: translateY(-6px) scale(1.12); }
.dock .app::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 7px; background: var(--control); color: var(--text);
  font-size: var(--t-small); white-space: nowrap; box-shadow: 0 0 0 1px rgb(var(--line) / .12), 0 4px 12px rgb(var(--shade) / .15);
  display: none; pointer-events: none;
}
.dock .app:hover::after { display: block; }
.dock .sep { width: 1px; align-self: stretch; margin: 6px 6px; background: rgb(var(--line) / .18); flex: none; }

/* Installation : intitulé au-dessus du groupe, commande dans le groupe, explication en dessous. */
.intro .req { font-size: var(--t-note); color: var(--secondary); margin: 20px 0 0; }
.intro .req.warn { color: var(--warn); }
.install { margin-top: 56px; }
/* Installation par le Terminal : une fenêtre sombre, comme le Terminal de macOS. */
/* Le cartouche au-dessus d'un titre de partie : de quoi elle parle, en deux mots. */
.intro p.tag { display: inline-block; margin: 0 0 32px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--t-small); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.or { text-align: center; font-size: var(--t-note); font-weight: 600; color: var(--secondary); margin: 0 0 16px; }
.install .group-label { margin-top: 0; }
.steps li b { font-weight: 600; color: var(--text); }
/* Les étapes dans un cadre, comme un groupe des Réglages ; l'aide en dessous, hors du cadre. */
.install .card { background: var(--group); border-radius: 16px; box-shadow: 0 0 0 1px var(--border); padding: 30px 32px 0; overflow: hidden; }
@media (max-width: 640px) { .install .card { padding: 24px 18px 0; } .install .help { margin: 0 -18px; padding: 14px 18px; } }
/* La ligne à copier, sous la configuration requise, telle qu'elle apparaîtra dans le Terminal. */
/* La ligne à copier, en tête du cadre, telle qu'elle apparaîtra dans le Terminal : un clic n'importe où la copie. */
.cmdline {
  position: relative; display: block; width: 100%; margin: 56px 0 24px; padding: 12px 16px; border: 0; border-radius: 10px;
  background: #1e1e1e; text-align: left; cursor: pointer; transition: background .15s, transform .1s;
}
.cmdline:hover { background: #2c2c2e; }
.cmdline:active { transform: scale(.995); }
.cmdline code { display: block; font: 13px/1.4 var(--mono); color: #e8e8e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Au survol, « Copier » en bout de ligne, sur un fondu qui recouvre la fin de la commande. */
.cmdline .hint {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; padding: 0 16px 0 48px;
  border-radius: 0 10px 10px 0; background: linear-gradient(to right, rgba(44,44,46,0), #2c2c2e 40%);
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: #fff; opacity: 0; transition: opacity .15s;
}
.cmdline:hover .hint, .cmdline:focus-visible .hint { opacity: 1; }
/* « Copié », qui monte au-dessus du clic et s'efface. */
.cmdline .copied {
  position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; pointer-events: none;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--control);
  padding: 6px 10px; border-radius: 7px; box-shadow: 0 0 0 .5px rgb(var(--line) / .15), 0 8px 20px -8px rgb(var(--shade) / .35);
  animation: rise 1.6s ease-out forwards;
}
@keyframes rise {
  0% { opacity: 0; transform: translateY(6px); }
  15%, 55% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes rise { 0%, 100% { opacity: 0; } 15%, 55% { opacity: 1; } }
}
.steps .sub { display: block; font-size: var(--t-ui); line-height: 1.55; color: var(--secondary); margin-top: 2px; }
.steps .sub b { font-weight: 600; color: var(--body); }
/* Les touches, petites : un repère, pas un dessin de clavier. */
.steps kbd { font-size: 12px; padding: 2px 5px; border-radius: 5px; vertical-align: 1px; }
/* L'aide, au pied du cadre, sur un fond à peine gris (pas de filet). */
.install .help { margin: 0 -32px; padding: 16px 32px; background: var(--sunken); font-size: var(--t-note); color: var(--secondary); }
.install .help p { margin: 0; }
.install .help p + p { margin-top: 4px; }
.install .steps { margin-bottom: 8px; }
/* Les onglets en haut à gauche du cadre des étapes. */
.install-tabs { margin: 0 0 28px; }
.install-tabs button { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.install-tabs img { width: 16px; height: 16px; border-radius: 4px; }
.install [hidden] { display: none; }
/* Les trois gestes de l'installation, numérotés ; les touches dessinées comme sur le clavier. */
.steps { list-style: none; counter-reset: step; margin: 0 0 28px; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; font-size: var(--t-body); line-height: 1.6; color: var(--body); margin: 0 0 22px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--secondary); font-size: var(--t-small); font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--border);
}
kbd {
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); white-space: nowrap;
  padding: 3px 7px; border-radius: 6px; background: var(--group); box-shadow: 0 0 0 1px var(--border), 0 1px 0 1px var(--border);
}
/* Le téléchargement : l'icône, le nom, la version et la taille, un bouton bleu. */
.download { display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 18px; }
.download > img { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 2px 4px rgb(var(--shade) / .2)); }
.download div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.download b { font-size: 18px; font-weight: 600; }
.download span { font-size: 14px; color: var(--secondary); }
.download .dl { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-ui); padding: 11px 18px; border-radius: 9px; }
.download .dl::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v9M4 7.5 8 11.5l4-4M3 14h10'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 480px) { .download { flex-wrap: wrap; } .download .dl { width: 100%; justify-content: center; } }
.file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; }
.file span { font: 15px var(--mono); }
.notes { font-size: var(--t-note); color: var(--secondary); text-align: center; max-width: 620px; margin: 40px auto 0; }

footer { padding: 160px 0 96px; }
footer .col { font-size: var(--t-note); color: var(--secondary); }
footer h3 { font-size: var(--t-note); font-weight: 600; color: var(--text); margin: 0 0 10px; }
footer p { margin: 0 0 8px; }
footer .signature { margin-top: 40px; color: var(--text); }
.author { display: flex; align-items: flex-end; gap: 28px; margin: 64px 0 -96px; }
.author img { display: block; }
.author img { flex: none; width: 168px; height: auto; }
/* La bulle et, dessous, les liens : une colonne qui finit au-dessus du bas du portrait. */
.author .says { min-width: 0; max-width: 420px; margin: 0 0 64px; }
.author .bubble { position: relative; margin: 0; padding: 20px 24px; border-radius: 20px; background: var(--group); color: var(--text); font-size: var(--t-ui); line-height: 1.5; }
.author .contact { margin: 10px 0 0 24px; font-size: var(--t-note); }
.author .bubble::before { content: ""; position: absolute; left: -10px; bottom: 22px; width: 22px; height: 22px; background: var(--group); border-radius: 0 0 0 6px; transform: rotate(45deg); }
.author .bubble { min-width: 0; }
.author .bubble p { margin: 0; }
/* Le message pour Gildas : en haut, ce qui ne va pas s'il y a lieu, puis le texte, puis Dicter et Envoyer. */
.author .bubble .sign { margin-top: 10px; font-weight: 500; }
.author .open-message { display: inline-block; margin-top: 14px; }
.author .open-message[hidden], .message[hidden], .rec-bar[hidden] { display: none; }
.message { margin-top: 14px; }
/* Au-dessus du texte, seulement ce qui ne va pas (micro, envoi). Pendant la dictée, le bouton suffit. */
.rec-bar { margin-bottom: 8px; font-size: 14px; color: var(--secondary); }
.author .rec-state { margin: 0; line-height: 1.4; }
.rec-state.problem { color: var(--problem); }
/* Dicter : une pastille avec un micro, en bas à gauche face à Envoyer. Pendant la dictée, le micro devient un rond
   rouge dont le halo suit le volume de la voix (--niveau, de 0 à 1, posé par note.js) ; le bouton dit Pause. L'icône
   est un pseudo-élément : le texte du bouton change sans la perdre. À côté, quand le bouton a le focus, on dit que la
   barre d'espace fait la même chose ; pas sur téléphone, sans clavier. */
.rec-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 11px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--window); color: var(--accent);
  font: inherit; font-weight: 500; cursor: pointer;
}
.rec-toggle::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='9' y='2.5' width='6' height='11.5' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='9' y='2.5' width='6' height='11.5' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rec-toggle:hover { border-color: var(--accent); }
.rec-toggle[hidden] { display: none; }
.rec-toggle.on::before {
  -webkit-mask: none; mask: none; width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; background: #e0352b;
  box-shadow: 0 0 0 calc(2px + var(--niveau, 0) * 7px) rgba(224,53,43,.22);
}
.rec-key { font-size: var(--t-small); color: var(--secondary); visibility: hidden; }
.rec-toggle:focus + .rec-key { visibility: visible; }
.rec-toggle[hidden] + .rec-key { display: none; }
@media (hover: none), (max-width: 640px) { .rec-key { display: none; } }
.message textarea { display: block; box-sizing: border-box; width: 100%; min-height: 84px; max-height: 240px; resize: none; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; background: var(--control); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.message-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.message-actions .send { margin-left: auto; }
.message .send:disabled { opacity: .45; cursor: default; }
.message.sent .rec-bar, .message.sent textarea, .message.sent .message-actions { display: none; }
.author .sent-status { display: none; margin: 0; }
.author .message.sent .sent-status { display: block; }
.author .sent-status .another { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
@media (max-width: 640px) {
  .message-actions { column-gap: 8px; }
  .rec-toggle { font-size: 14px; gap: 5px; padding: 5px 11px 5px 9px; }
  .rec-toggle::before { width: 14px; height: 14px; }
  .rec-toggle.on::before { width: 9px; height: 9px; margin: 0 2.5px; box-shadow: 0 0 0 calc(2px + var(--niveau, 0) * 5px) rgba(224,53,43,.22); }
  .message .send { padding: 9px 13px; }
}
@media (max-width: 640px) { .author { gap: 16px; margin-bottom: -96px; } .author img { width: 112px; } .author .says { flex: 1; margin-bottom: 28px; } .author .bubble { font-size: var(--t-note); padding: 16px 18px; } .author .contact { margin-left: 18px; } }

/* Guides : une question par ligne, la réponse se déplie. */
details.row { padding: 0; }
details.row summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 20px; position: relative;
  font-size: var(--t-body); font-weight: 600;
}
details.row summary::-webkit-details-marker { display: none; }
details.row summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--edge); border-bottom: 2px solid var(--edge); transform: rotate(45deg); transition: transform .15s;
}
details.row[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.row .answer { padding: 0 20px 20px; font-size: var(--t-ui); color: var(--body); }
details.row .answer p { margin: 0 0 10px; }
details.row .answer ol { margin: 0 0 10px; padding-left: 1.3em; }
details.row .answer li { margin: 4px 0; }
details.row .answer code { font: 14px/1.4 var(--mono); background: rgb(var(--line) / .05); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
details.row .answer img { width: 100%; max-width: 560px; height: auto; display: block; margin: 14px 0 6px; border-radius: 9px; border: .5px solid rgb(var(--line) / .2); }
.answer b { font-weight: 600; color: var(--text); }

/* Versions : la plus récente en haut, la date et les nouveautés, une capture quand il y a quelque chose à voir. */
.version { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 6px 20px; }
.version .num { font-weight: 600; }
.version .num small { display: block; font-weight: 400; font-size: 14px; color: var(--secondary); }
.version .num a.detail { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; }
.version p { color: var(--body); }
.version a.thumb { display: block; margin-top: 12px; width: 240px; max-width: 100%; }
.version a.thumb img { width: 100%; height: auto; display: block; border-radius: 7px; border: .5px solid rgb(var(--line) / .2); box-shadow: 0 8px 20px -10px rgb(var(--shade) / .3); }
.version .latest { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; vertical-align: 2px; }

/* En dessous de 980 px, la transcription passe sous la capture au lieu de la recouvrir. */
@media (max-width: 980px) {
  .stage { padding-bottom: 0; }
  .stage > img { width: 100%; }
  .stage .detail { position: relative; width: 80%; margin: -48px 0 0 auto; }
}

@media (max-width: 760px) {
  .stage { margin-top: 72px; padding-bottom: 0; }
  .stage > img { width: 100%; }
  .stage .detail { position: relative; width: 94%; margin: -40px 0 0 auto; }
  section { padding-top: 112px; }
  section.follow { padding-top: 40px; }
  .version { grid-template-columns: minmax(0, 1fr); }
}

/* Barre du haut : le nom à gauche, la doc et l'installation à droite. Sur toutes les pages. */
/* Le logo du site est le cartouche ; son nom et les liens partagent la même ligne de base. */
.nav { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0 0; }
.nav .home { display: inline-flex; align-items: baseline; color: var(--text); }
.nav .home:hover { text-decoration: none; }
.nav .home .marque { font-family: Archivo, var(--display); font-weight: 500; font-stretch: 112%; font-size: var(--t-ui); letter-spacing: -0.01em; user-select: none;
  /* Cartouche : trait de l'épaisseur des fûts d'Archivo 500 (0,115 em), coins continus façon Apple. */
  --trait: 0.115em; box-sizing: border-box; height: 26px; line-height: calc(26px - 2 * var(--trait)); padding: 0 0.5em 0 0.55em;
  margin: 3px 0; background: var(--group); border: var(--trait) solid var(--text); border-radius: 0.45em; }
@supports (corner-shape: squircle) { .nav .home .marque { border-radius: 0.75em; corner-shape: squircle; } }
@media (max-width: 480px) { .nav { gap: 8px; } .nav .links { gap: 12px; } }
.nav .links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: var(--t-note); }
.nav .links a { color: var(--text); }
.nav .links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav .links .button { padding: 8px 14px; }
.about { --about-top: 96px; padding-top: var(--about-top); }
@media (max-width: 760px) { .about { --about-top: 56px; } }

/* En-tête des pages intérieures : un titre et une phrase, centrés. */
.page-head { text-align: center; padding: 96px 0 0; }
.page-head h1 { font-family: var(--display); font-size: clamp(36px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 20px; }
.page-head p { font-size: var(--t-lead); color: var(--body); max-width: 640px; margin: 0 auto; text-wrap: balance; }
.page-head + section { padding-top: 80px; }
section.tight { padding-top: 64px; }
.group + .group-label { margin-top: 48px; }

/* Lien discret vers la suite, sous un bloc. */
.more { text-align: center; font-size: var(--t-body); margin: 40px 0 0; }
.more a::after { content: "\00a0→"; }  /* insécable : au toucher, le lien devient inline-flex et une espace ordinaire y tombe */

/* Accueil : la dernière version, sous l'installation. */

/* Fonctionnalités : une par bloc, le texte puis la capture, plus large que le texte. */
.feature { padding-top: 120px; }
.feature:first-of-type { padding-top: 80px; }
.feature .col > h2 { text-align: left; }
.feature .col > p { font-size: var(--t-body); color: var(--body); margin: 0 0 12px; }
.feature .col > p b { color: var(--text); font-weight: 600; }
.feature .meta { font-size: var(--t-note); color: var(--secondary); margin: 16px 0 0 !important; }
.feature .meta a + a::before { content: "\00a0· "; color: var(--secondary); }
.feature figure { margin: 40px auto 0; max-width: 960px; }
.feature figure img { width: 100%; height: auto; display: block; border-radius: 12px; border: .5px solid rgb(var(--line) / .2); box-shadow: 0 22px 50px -16px rgb(var(--shade) / .25); }
.feature figure.narrow { max-width: 620px; }
.feature figure.strip { max-width: 760px; }
.feature figure.strip img { border-radius: 9px; }
.feature figure.plain img { border: 0; box-shadow: none; border-radius: 0; }
.feature figure + figure { margin-top: 20px; }
@media (max-width: 760px) { .feature { padding-top: 88px; } }

/* Versions, sur leur page : les captures plus grandes. */
.versions-page .version a.thumb { width: 420px; }

/* Pied de page court, le même partout. */
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; }
footer .links a { color: var(--text); }
.legal p { font-size: var(--t-body); color: var(--body); margin: 0 0 16px; }
.legal h2 { font-size: 24px; margin: 48px 0 12px; }

/* Fonctionnalités : un menu vertical à gauche, qui reste à l'écran et suit la lecture. Sous 1000 px, il disparaît. */
.toc { display: none; }
@media (min-width: 1000px) {
  .with-toc { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 48px; align-items: start; }
  .toc { display: block; position: sticky; top: 32px; padding-top: 80px; }
  .toc nav { display: flex; flex-direction: column; gap: 2px; }
  .toc a { font-size: var(--t-note); color: var(--secondary); padding: 6px 12px; border-radius: 7px; }
  .toc a:hover { color: var(--text); text-decoration: none; background: rgb(var(--line) / .04); }
  .toc a[aria-current] { color: var(--text); font-weight: 500; background: rgb(var(--line) / .06); }
  .with-toc .col { margin: 0; }
  .with-toc .feature figure { margin-left: 0; }
}
html { scroll-padding-top: 24px; }

/* La barre du haut se cache quand on descend et revient dès qu'on remonte (nav.js). Son fond couvre toute la largeur. */
.nav {
  position: sticky; top: 0; z-index: 10; padding: 12px 0;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 100vmax var(--nav-bg); clip-path: inset(0 -100vmax);
  transition: transform .25s ease;
}
.nav.hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .nav, .toc { transition: none; } }

/* Grand écran : le menu sort dans la marge de gauche, le contenu reste centré sous le titre de la page. */
@media (min-width: 1600px) {
  .with-toc { display: block; position: relative; }
  .toc { position: absolute; top: 0; bottom: 0; left: -236px; width: 188px; padding-top: 80px; }
  .toc nav { position: sticky; top: 32px; }
  .with-toc .col { margin: 0 auto; }
  .with-toc .feature figure { margin-left: auto; }
}

/* Accueil : les bénéfices, des cartes horizontales empilées. Le titre et un paragraphe à gauche, l'objet détouré à
   droite, qui entre par le bord ou le bas de la carte. Sur téléphone, l'objet passe sous le texte. */
.benefits { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.benefits li {
  position: relative; min-height: 232px; overflow: hidden;
  background: var(--group); border-radius: 20px; box-shadow: 0 0 0 1px var(--border), 0 10px 30px -18px rgb(var(--shade) / .25);
}
.benefits li > div { width: 54%; padding: 32px 0 32px 36px; }
.benefits h3 { display: block; margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.benefits p { margin: 10px 0 0; font-size: var(--t-ui); line-height: 1.55; color: var(--secondary); }
.benefits img { position: absolute; height: auto; }
/* Chaque objet à sa place : coupé par le bord droit ou le bas, à peu près du même poids. */
.benefits li.o-jack { min-height: 180px; }
.benefits li.o-jack img { width: 37%; left: 0; bottom: 50%; transform: translateY(50%); }
.benefits li.o-cassettes { min-height: 340px; }
.benefits li.o-cassettes > div { width: 50%; }
.benefits li.o-cassettes img { width: 44%; right: 28px; bottom: -44px; }
.benefits li.o-reunion { min-height: 330px; }
.benefits li.o-reunion > div { width: 46%; }
.benefits li.o-reunion img { width: 50%; left: 20px; bottom: -34px; }
/* Vos téléphones : le texte à gauche, l'objet entre par le bas à droite (S09). */
.benefits li.o-telephones { min-height: 280px; }
.benefits li.o-telephones img { width: 40%; right: 24px; bottom: -36px; }
.benefits li.o-telephone { min-height: 250px; }
.benefits li.o-telephone img { width: 34%; right: 60px; bottom: 0; }
.benefits li.o-ordinateur { min-height: 260px; }
.benefits li.o-ordinateur img { width: 42%; right: 30px; bottom: -40px; }
/* Le rythme : le texte change de côté d'une carte à l'autre, l'objet prend l'autre. */
.benefits li.text-right > div { margin-left: auto; padding: 32px 36px 32px 0; }
.benefits li.o-telephone img { right: auto; left: 60px; }
@media (max-width: 640px) {
  .benefits { gap: 12px; }
  .benefits li, .benefits li[class] { min-height: 0; display: flex; flex-direction: column; }
  .benefits li > div, .benefits li.text-right > div, .benefits li.o-cassettes > div { width: auto; margin-left: 0; padding: 18px 20px 12px; }
  .benefits h3 { font-size: 18px; }
  .benefits p { font-size: 14px; }
  .benefits img { position: relative; align-self: flex-end; margin-top: auto; }
  .benefits li.o-jack img { width: 70%; left: auto; align-self: flex-start; bottom: auto; margin-bottom: 28px; transform: none; }
  .benefits li.o-cassettes img { width: 76%; right: 20px; bottom: auto; margin-bottom: -36px; }
  .benefits li.o-telephone img { width: 62%; left: auto; right: 40px; }
  .benefits li.o-reunion img { width: 92%; left: auto; align-self: center; bottom: auto; margin-bottom: -24px; }
  .benefits li.o-telephones img { width: 72%; right: 16px; bottom: auto; margin-bottom: -28px; }
    .benefits li.o-ordinateur img { width: 82%; right: -20px; bottom: auto; margin-bottom: -28px; }
}

/* Une image qui porte son contour (coins transparents, fenêtre, pastille) : ni cadre, ni arrondi imposé, ni ombre
   rectangulaire. L'ombre suit sa forme, et sa matière reste celle de la capture. Voir CLAUDE.md, « Les captures ». */
.stage > img.decoupe, .stage .detail.decoupe, .feature figure img.decoupe, .version a.thumb img.decoupe, details.row .answer img.decoupe {
  border: 0; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 1px 1px rgb(var(--shade) / .14)) drop-shadow(0 14px 22px rgb(var(--shade) / .22));
}
/* Un extrait a du texte posé sur le fond : une ombre seulement large, pour ne pas le salir. */
.feature figure img.decoupe.extrait, .version a.thumb img.decoupe.extrait, details.row .answer img.decoupe.extrait { filter: drop-shadow(0 10px 18px rgb(var(--shade) / .1)); }
/* Un petit objet garde sa taille : agrandi, il perd sa netteté. Son ombre reste à son échelle. */
.version a.thumb.nue { width: auto; display: inline-block; margin: 14px 0 12px; }
.version a.thumb.nue img:not(.petite) { width: auto; max-width: 100%; }  /* une vignette à sa taille ne dépasse pas sa carte */
.version a.thumb img.decoupe.petite { width: 144px; height: auto; filter: drop-shadow(0 1px 1px rgb(var(--shade) / .16)) drop-shadow(0 6px 10px rgb(var(--shade) / .16)); }

/* Un seul anneau de focus, au clavier, sur tout ce qui se touche (S33). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabs button:focus-visible, .message textarea:focus-visible { outline-offset: 1px; }
/* « Aller au contenu » : le premier arrêt de Tab, visible seulement au clavier (S10). */
.evitement { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 10px 16px; border-radius: 9px; background: var(--control); color: var(--text); box-shadow: 0 0 0 1px var(--border), 0 8px 20px -8px rgb(var(--shade) / .35); }
.evitement:focus { top: 12px; }
main:focus { outline: none; }

/* Des masses, pas des filets (S36) : chaque ligne d'un groupe est sa propre carte blanche, l'espace les sépare. */
.group { background: none; box-shadow: none; display: flex; flex-direction: column; gap: 8px; }
.group > .row { background: var(--group); border-radius: 12px; box-shadow: 0 0 0 1px var(--border); }
/* Confidentialité : quatre masses titrées (S08). L'obligation d'informer en tête, la date de mise à jour en pied. */
.legal .masse { background: var(--group); border-radius: 16px; box-shadow: 0 0 0 1px var(--border); padding: 28px 32px 12px; }
.legal .masse + .masse { margin-top: 16px; }
.legal .masse h2 { font-size: 24px; margin: 0 0 14px; }
.legal .obligation { font-size: var(--t-lead); color: var(--text); text-align: center; text-wrap: balance; margin: 0 0 40px; }
.legal .mise-a-jour { font-size: var(--t-note); color: var(--secondary); margin: 24px 0 0; text-align: center; }
@media (max-width: 640px) { .legal .masse { padding: 22px 20px 6px; } }

/* La commande d'installation entière, qui passe à la ligne, et « Copier » toujours visible (S01). */
.cmdline { display: flex; align-items: center; gap: 12px; }
.cmdline code { flex: 1; min-width: 0; white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; }
.cmdline .hint { position: static; flex: none; opacity: 1; padding: 6px 12px; border-radius: 7px; background: rgb(255 255 255 / .12); }
/* Hors d'un Mac, une phrase et « Envoyer le lien » à la place de la commande (S14). */
.ailleurs { margin: 56px 0 24px; padding: 18px 20px; border-radius: 12px; background: var(--group); box-shadow: 0 0 0 1px var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ailleurs p { flex: 1 1 220px; margin: 0; font-size: var(--t-ui); color: var(--body); }
.ailleurs[hidden], .cmdline[hidden] { display: none; }

/* Le sommaire des pages longues : sous 1000 px, des pastilles collées en haut, qui défilent de côté (S28). */
@media (max-width: 999px) {
  .toc { display: block; position: sticky; top: var(--haut-nav, 0px); transition: top .25s ease; z-index: 5; margin: 32px -16px 0; padding: 8px 16px; background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .toc nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .toc nav::-webkit-scrollbar { display: none; }
  .toc a { flex: none; font-size: 14px; color: var(--text); padding: 7px 12px; border-radius: 999px; background: var(--group); box-shadow: 0 0 0 1px var(--border); }
  .toc a[aria-current] { box-shadow: 0 0 0 1px var(--edge); font-weight: 600; }
  .toc a:hover { text-decoration: none; }
}

/* Au toucher, 44 px pour chaque lien et bouton hors du fil d'un texte (S07). */
@media (pointer: coarse) {
  .nav .links a, footer .links a, .author .contact a, .more a, .toc a, .version a.detail, .evitement { display: inline-flex; align-items: center; min-height: 44px; }
  .nav .home { min-height: 44px; align-items: center; }
  /* « Détails » d'une version : 44 px au doigt, sans pousser le texte de la carte. */
  .version a.detail { margin: -11px 0; }
  /* Le texte reste au milieu des 44 px, pas collé en haut. */
  .button, .tabs button, .rec-toggle, .author .sent-status .another { min-height: 44px; align-content: center; }
  .tabs button { display: inline-flex; align-items: center; }
  footer .links { gap: 0 24px; }
  .author .contact { margin-top: 0; }
  details.row summary { min-height: 44px; }
}
/* Le Dock, au toucher : pas de bond, des icônes de 40 px sur deux rangées, le nom au toucher et au clavier (S05). */
.dock .app:focus-visible::after, .dock .app:active::after { display: block; }
@media (hover: none) {
  .dock .app:hover img { transform: none; }
  .dock .app:hover::after { display: none; }
}
@media (max-width: 640px) {
  .dock { flex-wrap: wrap; justify-content: center; max-width: 360px; row-gap: 4px; }
  .dock .app { width: 40px; height: 40px; }
  .dock .sep { display: none; }
}

/* La barre du haut tient à 320 px : sur petit écran, Installer laisse sa place, l'accueil l'a sous les yeux (S15). */
@media (max-width: 480px) {
  .nav .links .button { display: none; }
}

/* En sombre, ce que le jeton ne règle pas seul. */
@media (prefers-color-scheme: dark) {
  :root:has(meta[name="color-scheme"][content~="dark"]) .button.hero::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23eef3f9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v9M4 8.5 8 12.5l4-4'/%3E%3C/svg%3E");
  }
}

/* Le titre d'une page à sommaire s'aligne sur le bord gauche du texte, pas au centre de l'écran (S38). */
.page-head.avec-sommaire { text-align: left; }
@media (min-width: 1000px) and (max-width: 1599px) { .page-head.avec-sommaire { padding-left: 236px; } }
@media (min-width: 1600px) { .page-head.avec-sommaire { max-width: 760px; margin: 0 auto; } }



/* Installer en partant de son IA (#231, callrecorder-app#510) : une question, l'IA du Mac ou pas d'IA, puis une seule carte. */
#installation .col { max-width: 820px; }
.install { margin-top: 56px; }
.install .carte[hidden], .install [hidden] { display: none; }

.install .question { margin: 8px 0 4px; text-align: center; font-size: var(--t-ui); font-weight: 600; color: var(--text); }
.agents { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.agents button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 12px 4px 10px; border: 0; border-radius: 14px;
  background: none; color: var(--text); font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; cursor: pointer;
  transition: background .15s, opacity .15s, box-shadow .15s;
}
.agents .ic { position: relative; display: block; width: 44px; height: 44px; transition: transform .15s; }
.agents .ic img { width: 100%; height: 100%; display: block; object-fit: contain; }
.agents .ic.app img { border-radius: 22.5%; }
.agents .ic.pile img { position: absolute; width: 32px; height: 32px; border-radius: 22.5%; }
.agents .ic.pile img:first-child { left: 0; top: 0; }
.agents .ic.pile img:last-child { right: 0; bottom: 0; filter: drop-shadow(0 1px 3px rgb(var(--shade) / .25)); }
.agents .ic.vide { border-radius: 22.5%; box-shadow: inset 0 0 0 1.5px rgb(var(--line) / .22); }
.agents .ic.vide::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 20px/1 -apple-system, sans-serif; color: var(--secondary); }
.agents button:hover .ic { transform: translateY(-3px); }
.agents button[aria-selected="true"] { background: var(--group); box-shadow: 0 0 0 1px var(--border); }
.agents.choisi button:not([aria-selected="true"]) { opacity: .5; }
.agents.choisi button:not([aria-selected="true"]):hover { opacity: 1; }

.install .carte { margin-top: 20px; padding: 28px 32px 0; border-radius: 18px; background: var(--group); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.roles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 6px; padding: 0; font-size: var(--t-ui); color: var(--secondary); }
.roles li { display: inline-flex; align-items: center; gap: 7px; }
.roles li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(var(--line) / .3); }
.roles li[data-ok="1"] { color: var(--text); }
.roles li[data-ok="1"]::before { background: #2e9d5b; box-shadow: none; }
.install .ajout { margin: 4px 0 0; font-size: var(--t-note); color: var(--secondary); }
.install .ajout a { color: var(--accent); }
.install .avec { margin-top: 24px; }
.prompt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 28px; padding: 14px 14px 14px 18px;
  border: 0; border-radius: 18px 18px 18px 6px; background: var(--accent-soft); color: var(--text); text-align: left; cursor: pointer;
  font: 400 var(--t-ui)/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; transition: transform .1s;
}
.prompt:active { transform: scale(.995); }
.prompt > span:first-child { flex: 1; min-width: 0; }
.prompt .url { white-space: nowrap; }
.prompt .hint { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--control); box-shadow: 0 0 0 1px var(--border); font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); }
.prompt .copied {
  position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; pointer-events: none;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--control);
  padding: 6px 10px; border-radius: 7px; box-shadow: 0 0 0 .5px rgb(var(--line) / .15), 0 8px 20px -8px rgb(var(--shade) / .35);
  animation: rise 1.6s ease-out forwards;
}
.install .carte .cmdline { margin: 0 0 28px; }
.install .carte .steps { margin-bottom: 8px; }
.install .carte .help { margin: 0 -32px; padding: 16px 32px; background: var(--sunken); font-size: var(--t-note); color: var(--secondary); }
.install .conseil { margin: 0 0 18px; font-size: var(--t-body); line-height: 1.5; color: var(--body); }
.install .actions { margin: 0 0 28px; }
@media (max-width: 640px) {
  .agents button { width: 30%; }
  .install .carte { padding: 22px 18px 0; }
  .install .carte .help { margin: 0 -18px; padding: 14px 18px; }
  .prompt .url { white-space: normal; overflow-wrap: anywhere; }
}
.install .precision { margin: 0 auto 16px; max-width: 520px; text-align: center; font-size: var(--t-note); line-height: 1.45; color: var(--secondary); text-wrap: balance; }

/* Sur téléphone (audit du 21 novembre). */
/* Le sommaire collé en haut : un fond plein, pour que le texte qui défile ne se lise pas au travers ; un fondu au bord
   qui a encore des pastilles cachées, pour montrer qu'il défile (nav.js pose .avant et .apres). */
@media (max-width: 999px) {
  .toc { background: var(--window); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgb(var(--line) / .1); }
  .toc nav.apres { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .toc nav.avant { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
  .toc nav.avant.apres { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
}
/* Moins de vide entre les blocs. */
@media (max-width: 640px) {
  section { padding-top: 72px; }
  .more { margin-top: 28px; }
  #installation .install { margin-top: 28px; }
  .ailleurs { margin: 0; }
  footer { padding-top: 56px; }
}
/* Un long paragraphe centré se lit mal : sous 600 px, l'en-tête des pages s'aligne à gauche. */
@media (max-width: 600px) {
  .page-head, .page-head p, .page-version .page-head .statut { text-align: left; }
  .page-head p { text-wrap: pretty; }
}
/* Une capture de l'app, trop petite pour être lue sur téléphone, s'agrandit au toucher (nav.js) : elle s'ouvre à sa
   taille, et se parcourt du doigt. */
.agrandissable { cursor: zoom-in; }
dialog.agrandie { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--window); color: var(--text); }
dialog.agrandie::backdrop { background: var(--window); }
dialog.agrandie .defile { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; display: grid; place-items: center; }
dialog.agrandie img { display: block; width: auto; max-width: none; height: auto; padding: 72px 16px 24px; box-sizing: content-box; }
dialog.agrandie .fermer { position: fixed; top: 12px; right: 12px; z-index: 1; min-height: 44px; }
/* Les versions d'avant, repliées. */
details.anciennes { margin-top: 8px; }
details.anciennes > summary { list-style: none; cursor: pointer; padding: 14px 18px; border-radius: 12px; background: var(--group); box-shadow: 0 0 0 1px var(--border); color: var(--accent); font-size: var(--t-ui); }
details.anciennes > summary::-webkit-details-marker { display: none; }
details.anciennes > summary::after { content: "\00a0↓"; }
details.anciennes[open] > summary { margin-bottom: 8px; }
details.anciennes[open] > summary::after { content: "\00a0↑"; }

/* L'installation en onglets latéraux : Claude Code ouvert d'emblée, les autres IA en icônes dans une colonne à gauche,
   leur nom au survol et en titre de la carte. Sur téléphone, les icônes passent en une ligne au-dessus de la carte. */
#installation .col { max-width: 860px; }
.volets { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; }
.volets .agents { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; position: sticky; top: calc(var(--haut-nav, 0px) + 16px); }
.volets .agents button { position: relative; width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 14px; }
.volets .agents .ic { width: 34px; height: 34px; }
.volets .agents .ic.pile img { width: 25px; height: 25px; }
.volets .agents button:hover .ic { transform: none; }
.volets .agents button:not([aria-selected="true"]):hover { background: rgb(var(--line) / .06); }
.volets .agents.choisi button:not([aria-selected="true"]) { opacity: .55; }
.volets .agents.choisi button:not([aria-selected="true"]):hover { opacity: 1; }
/* Le nom au survol et au clavier, à droite de l'icône, comme dans le Dock. */
.volets .agents button::after {
  content: attr(aria-label); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); z-index: 3;
  padding: 4px 10px; border-radius: 7px; background: var(--control); color: var(--text); font-size: var(--t-small); white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(var(--line) / .12), 0 4px 12px rgb(var(--shade) / .15); display: none; pointer-events: none;
}
.volets .agents button:hover::after, .volets .agents button:focus-visible::after { display: block; }
.volets .agents button[aria-selected="true"]::after { display: none; }
.volets .carte { margin-top: 0; }
.install .titre-carte { margin: 0 0 14px; font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
@media (hover: none) { .volets .agents button::after { display: none !important; } }
@media (max-width: 640px) {
  .volets { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .volets .agents { position: static; flex-direction: row; justify-content: space-between; gap: 0; }
  .volets .agents button { width: auto; height: auto; flex: 1 1 0; min-width: 0; max-width: 56px; aspect-ratio: 1; border-radius: 12px; }
  .volets .agents .ic { width: min(32px, 8vw); height: min(32px, 8vw); }
  .volets .agents .ic.pile img { width: 72%; height: 72%; }
  .install .titre-carte { font-size: 20px; margin-bottom: 10px; }
}
/* « Autre chose » : des points de suspension, pour qui n'a pas trouvé son IA. */
.agents .ic.suite { border-radius: 22.5%; background: rgb(var(--line) / .08); }
.agents .ic.suite::before { content: ""; position: absolute; inset: 0; margin: auto; width: 4px; height: 4px; border-radius: 50%; background: var(--secondary); box-shadow: -8px 0 0 var(--secondary), 8px 0 0 var(--secondary); }
/* Sur téléphone, le message à copier prend toute la largeur ; « Copier » passe dessous, à droite. */
@media (max-width: 640px) {
  .prompt { flex-direction: column; align-items: stretch; gap: 10px; }
  .prompt .hint { align-self: flex-end; }
  .prompt .url { overflow-wrap: normal; }
}
@media (max-width: 640px) {
  .cmdline { flex-direction: column; align-items: stretch; gap: 10px; }
  .cmdline .hint { align-self: flex-end; }
}
/* Le nom au survol passe toujours par-dessus la carte : la colonne d'onglets a son propre plan, au-dessus. En ligne
   (fenêtre étroite), il s'affiche sous l'icône, centré. */
.volets .agents { z-index: 4; }
@media (max-width: 640px) {
  .volets .agents { position: relative; }
  .volets .agents button::after { left: 50%; top: calc(100% + 6px); transform: translateX(-50%); }
  .volets .agents button:first-child::after { left: 0; transform: none; }
  .volets .agents button:last-child::after { left: auto; right: 0; transform: none; }
}
/* Sur petit écran, les icônes forment un contrôle segmenté, comme les onglets du haut de page : une piste grise, l'onglet
   choisi en blanc dedans. Des cases de taille fixe : l'onglet choisi ne déborde plus sur la carte (Safari étire les
   cases à aspect-ratio). */
@media (max-width: 640px) {
  .volets { gap: 12px; }
  .volets .agents { justify-content: space-between; padding: 3px; border-radius: 12px; background: rgb(var(--line) / .07); }
  .volets .agents button { flex: 0 1 48px; width: 48px; height: 44px; max-width: none; aspect-ratio: auto; border-radius: 9px; }
  .volets .agents button[aria-selected="true"] { background: var(--control); box-shadow: 0 0 0 1px var(--edge), 0 1px 3px rgb(var(--shade) / .12); }
  .volets .agents .ic { width: 28px; height: 28px; }
  .volets .agents .ic.suite { background: none; }
}
@media (max-width: 640px) { .volets .agents { top: auto; } }
/* Le contrôle segmenté du téléphone prend la largeur de ses icônes, calé à gauche : pas étiré sur toute la ligne. */
@media (max-width: 640px) {
  .volets .agents { width: fit-content; max-width: 100%; justify-content: flex-start; gap: 2px; }
  .volets .agents button { flex: 0 1 44px; width: 44px; }
}
