/* The Pot Sitters — site. Palette de l'app : Nuit, Feuille, Lune, Brume (app/src/ui/theme.ts), et
   l'ivoire du site. Aucun script : les animations au defilement sont en CSS (fin du fichier), et
   rien n'est cache hors de leur bloc. Police hebergee ici (assets/fonts/, Inter, licence OFL). */

/* ------------------------------------------------------------------ */
/* Polices                                                              */
/* ------------------------------------------------------------------ */

/* Inter, une seule famille pour tout le site. Son axe de taille optique (opsz) dessine les grands
   titres et le texte differemment, comme SF Pro Display et SF Pro Text chez Apple ; le navigateur le
   regle seul (font-optical-sizing: auto). Les fichiers sont reduits aux graisses 400 a 700, les seules
   que le site emploie (fonttools varLib.instancer wght=400:700) : 53 Ko au lieu de 73. Pas
   d'italique : les mots mis en avant sont en or, droits. Le fichier latin-ext ne se charge que si une
   page en a besoin (le francais n'en a pas besoin). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("/assets/fonts/inter-latin-opsz-400-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("/assets/fonts/inter-latin-ext-opsz-400-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* « optional » : si Inter n'est pas la au premier affichage (elle est prechargee), la page garde sa
   police de repli, et l'aura a la suivante. Sinon, les lignes changeraient de longueur a son arrivee,
   et tout ce qui suit sauterait. Polices de repli ajustees aux metriques d'Inter (capsize) ; Safari
   n'applique que size-adjust. */
@font-face {
  font-family: "Inter Fallback";
  font-weight: 100 599;
  src: local("Arial"), local("ArialMT");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
@font-face {
  font-family: "Inter Fallback Android";
  font-weight: 100 599;
  src: local("Roboto Regular"), local("Roboto-Regular");
  ascent-override: 90.24%;
  descent-override: 22.47%;
  line-gap-override: 0%;
  size-adjust: 107.35%;
}
/* Le gras des titres a son propre repli (Arial Bold, Roboto Bold), compare a Inter 600 en taille
   optique de titre : sinon, faute de gras de synthese (font-synthesis: none), les titres
   tomberaient en maigre. */
@font-face {
  font-family: "Inter Fallback";
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT");
  ascent-override: 103.05%;
  descent-override: 25.66%;
  line-gap-override: 0%;
  size-adjust: 94.01%;
}
@font-face {
  font-family: "Inter Fallback Android";
  font-weight: 600 900;
  src: local("Roboto Bold"), local("Roboto-Bold");
  ascent-override: 96.81%;
  descent-override: 24.11%;
  line-gap-override: 0%;
  size-adjust: 100.06%;
}

/* ------------------------------------------------------------------ */
/* Jetons                                                               */
/* ------------------------------------------------------------------ */

:root {
  /* Marque */
  --c-night: #0e1424;
  --c-nuit: #1f2a44;
  --c-dusk: #171e30;
  --c-ivory: #f6f1e7;
  --c-paper: #fbf8f2;
  --c-lune: #e0ae2a;
  --c-lune-bright: #f2c94c;
  --c-feuille: #276b43;
  --c-feuille-bright: #7fd19c;

  /* Echelle : des rem, qui suivent la taille du texte choisie sur le telephone. */
  --step--2: 0.8125rem;
  --step--1: 0.9375rem;
  --step-0: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.3rem + 2.6vw, 3.5rem);
  --step-4: clamp(2.125rem, 1.35rem + 3.6vw, 4.5rem);
  --step-5: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);

  /* En pixels : les marges ne doublent pas quand le texte grossit, et lui laissent la place. */
  --gutter: clamp(20px, 5vw, 40px);
  --space-section: clamp(5rem, 3rem + 9vw, 10rem);
  --header-h: 3.5rem;
  --radius: clamp(1.25rem, 2.5vw, 2rem);
  --radius-sm: 0.875rem;

  --font-sans: "Inter", "Inter Fallback", "Inter Fallback Android", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

/* Les roles de couleur, par contexte. Une section claire (ivoire) ou de nuit redefinit les memes
   jetons : chaque composant marche dans les deux. En mode sombre, l'ivoire devient « crepuscule ». */
:root,
.s-ivory,
.doc-page main {
  --bg: var(--c-ivory);
  --bg-raised: var(--c-paper);
  --ink: var(--c-nuit);          /* 12,7:1 sur ivoire */
  --ink-2: #4b5470;              /* 6,7:1 */
  --ink-3: #5f667a;              /* 5,1:1 */
  --line: rgb(31 42 68 / 0.14);
  --accent: var(--c-lune);       /* filets, lune : jamais du texte (1,8:1) */
  --accent-ink: #7a5b12;         /* texte or : 5,6:1 */
  --accent-display: #a67c14;     /* grands titres seulement : 3,4:1 */
  --link: var(--c-feuille);      /* 5,7:1 */
  --produit: var(--c-feuille);   /* le nom « Pot » : 5,7:1 */
  --focus: var(--c-nuit);
  --ph-1: #ede5d4;
  --ph-2: #e0d3ba;
  --ph-line: #9a8c70;
  --btn-bg: var(--c-nuit);
  --btn-ink: var(--c-ivory);
  color-scheme: light;
}

.s-night,
.site-header,
.site-footer {
  --bg: var(--c-night);
  --bg-raised: #161d2f;
  --ink: #f5f1e8;                /* 16:1 sur nuit */
  --ink-2: #c3c8d4;              /* 11:1 */
  --ink-3: #969fb2;              /* 6,9:1 */
  --line: rgb(255 255 255 / 0.12);
  --accent: var(--c-lune-bright);
  --accent-ink: var(--c-lune-bright);
  --accent-display: var(--c-lune-bright);
  --link: var(--c-feuille-bright);
  --produit: var(--c-feuille-bright); /* 10:1 */
  --focus: var(--c-lune-bright);
  --ph-1: #18203a;
  --ph-2: #222b47;
  --ph-line: #6f7a96;
  --btn-bg: var(--c-lune-bright);
  --btn-ink: var(--c-night);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root,
  .s-ivory,
  .doc-page main {
    --bg: var(--c-dusk);
    --bg-raised: #1f2740;
    --ink: #f5f1e8;
    --ink-2: #c3c8d4;            /* 9,9:1 sur crepuscule */
    --ink-3: #969fb2;            /* 6,2:1 */
    --line: rgb(255 255 255 / 0.12);
    --accent: var(--c-lune-bright);
    --accent-ink: var(--c-lune-bright);
    --accent-display: var(--c-lune-bright);
    --link: var(--c-feuille-bright);
    --produit: var(--c-feuille-bright);
    --focus: var(--c-lune-bright);
    --ph-1: #1e2640;
    --ph-2: #283252;
    --ph-line: #76819c;
    --btn-bg: var(--c-lune-bright);
    --btn-ink: var(--c-night);
    color-scheme: dark;
  }
}

/* Chaque section est un contexte d'empilement : la lueur du telephone ne deborde pas sur la suivante. */
.s-night,
.s-ivory {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */

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

/* Le fond du document est celui de l'en-tete et du pied : le rebond du defilement, en haut comme en
   bas, ne montre jamais une autre couleur. Une ancre s'arrete sous l'en-tete collant. */
html {
  background-color: var(--c-night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: block;
  background-color: var(--bg);
  color: var(--ink);
}
main:focus {
  outline: none;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
@media (hover: hover) {
  a:hover {
    text-decoration-thickness: 2px;
  }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--c-lune-bright);
  color: var(--c-night);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* Les grands titres se resserrent, comme chez Apple : plus la taille monte, plus l'interlettrage
   est negatif. */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 em,
h2 em,
h3 em {
  font-style: normal;
  color: var(--accent-display);
}

.display {
  font-size: var(--step-5);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h-xl {
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.h-xxl {
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.026em;
}

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

.lead {
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 450;
  color: var(--ink-2);
}

.fine {
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-3);
}

/* Le nom du produit, « le Pot » (decision du 22/11) : en vert Feuille et un peu plus gras que le
   texte autour, pour le distinguer du pot de la plante. Jamais dans un titre ni un lien. Dans un
   texte en gras, il garde ce gras. */
.produit {
  color: var(--produit);
  font-weight: 650;
}
strong .produit {
  font-weight: inherit;
}

/* Une mise en garde a part, sous un texte fin : a la ligne, plus petite. */
.fine-sm {
  font-size: var(--step--2);
  line-height: 1.5;
}
.split-text > .fine + .fine-sm {
  margin-top: 0.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.center {
  text-align: center;
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Mise en page                                                         */
/* ------------------------------------------------------------------ */

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

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

.stack > * + * {
  margin-top: var(--stack, 1.25rem);
}

.measure {
  max-width: 34rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (min-width: 56em) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split-rev > :first-child {
    order: 2;
  }
}

.split-text > * + * {
  margin-top: 1.25rem;
}
.split-text > .eyebrow + h2 {
  margin-top: 1rem;
}

/* ------------------------------------------------------------------ */
/* En-tete et pied                                                      */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgb(14 20 36 / 0.94);
  color: var(--ink);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background-color: rgb(14 20 36 / 0.82);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    backdrop-filter: saturate(1.4) blur(18px);
  }
}
/* Avec un tres grand texte, l'en-tete ne colle plus : il prendrait l'ecran. */
@media (max-width: 20em), (max-height: 30em) {
  .site-header {
    position: static;
  }
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo svg {
  width: 2rem;
  height: 2rem;
}
.wordmark {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
@media (max-width: 29.99em) {
  .site-header .wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
  border-radius: 999px;
}
@media (hover: hover) {
  .nav a:hover {
    color: var(--ink);
  }
}
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
/* Le lien de langue (« English », « Français ») : la meme page dans l'autre langue, un contour fin
   pour le distinguer des sections ; sur un telephone, « EN » ou « FR » (nav-short). Sa hauteur et
   ses marges gardent la cible de 2,75rem. */
.nav .nav-lang a {
  min-height: 2.25rem;
  margin-block: 0.25rem;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
}
.nav-short,
.nav-wide,
.site-header .header-cta {
  display: none;
}
@media (max-width: 47.99em) {
  .nav-long {
    display: none;
  }
  .nav-short {
    display: inline;
  }
}
@media (min-width: 64em) {
  .nav-wide {
    display: list-item;
  }
}
/* Un telephone de 320 px : le menu anglais, un peu plus long que le francais, avec le lien de
   langue, tient encore sur la ligne du logo (l'ancre s'arrete sous un en-tete d'une seule ligne). */
@media (max-width: 22.49em) {
  .header-row {
    column-gap: 0.5rem;
  }
  .nav a {
    padding-inline: 0.45rem;
  }
}
@media (min-width: 48em) {
  .site-header .header-cta {
    display: inline-flex;
  }
}

.site-footer {
  background-color: var(--bg);
  color: var(--ink-2);
  font-size: var(--step--1);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.footer-brand .wordmark {
  white-space: normal;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 26rem;
}
.footer-links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 30em) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}
@media (hover: hover) {
  .footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
  }
}
.footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ */
/* Boutons et liens d'action                                            */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.6rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.btn-gold {
  background-color: var(--c-lune-bright);
  color: var(--c-night);              /* 11,6:1 */
}
.btn-small {
  min-height: 2.25rem;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
}
.header-cta {
  margin-block: 0.25rem;
}
@media (hover: hover) {
  .btn:hover {
    filter: brightness(1.07);
  }
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
  color: var(--link);
  font-weight: 650;
  text-decoration: none;
}
.btn-link::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
@media (hover: hover) {
  .btn-link:hover {
    text-decoration: underline;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

/* ------------------------------------------------------------------ */
/* Photos                                                               */
/* ------------------------------------------------------------------ */

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--ph-1);
  aspect-ratio: 4 / 3;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.r-1-1 { aspect-ratio: 1 / 1; }
.r-4-5 { aspect-ratio: 4 / 5; }
.r-3-4 { aspect-ratio: 3 / 4; }
.r-2-3 { aspect-ratio: 2 / 3; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-3-2 { aspect-ratio: 3 / 2; }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-21-9 { aspect-ratio: 21 / 9; }
@media (min-width: 48em) {
  .rw-1-1 { aspect-ratio: 1 / 1; }
  .rw-4-5 { aspect-ratio: 4 / 5; }
  .rw-3-4 { aspect-ratio: 3 / 4; }
  .rw-2-3 { aspect-ratio: 2 / 3; }
  .rw-4-3 { aspect-ratio: 4 / 3; }
  .rw-3-2 { aspect-ratio: 3 / 2; }
  .rw-16-9 { aspect-ratio: 16 / 9; }
  .rw-21-9 { aspect-ratio: 21 / 9; }
}

/* L'emplacement d'une photo a venir : un fond chaud, une lueur de lune, le pot du logo au trait. */
.photo-todo {
  display: grid;
  place-items: center;
  background-color: var(--ph-1);
  background-image:
    radial-gradient(circle at 72% 22%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 46%),
    radial-gradient(circle at 18% 95%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 50%),
    linear-gradient(160deg, var(--ph-1), var(--ph-2));
  border: 1px solid var(--line);
}
.photo-pot {
  width: clamp(5rem, 22%, 10rem);
  height: auto;
  color: var(--ph-line);
  transform: translateY(-0.75rem);
}
.photo-pot .photo-moon {
  stroke: var(--accent);
}
.photo-todo figcaption {
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 3vw, 1.5rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.4rem 0.9rem;
  border: 1px dashed var(--ph-line);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--ink-2);
  font-size: var(--step--2);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Accueil                                                              */
/* ------------------------------------------------------------------ */

/* Ouverture */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(3rem, 2rem + 5vw, 6rem);
  /* clip, pas hidden : hidden en ferait un conteneur de defilement, et l'animation de sa photo
     suivrait la section au lieu de la page. */
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto auto;
  width: min(60rem, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(242 201 76 / 0.14), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  text-align: center;
}
.hero-inner > * + * {
  margin-top: 1.5rem;
}
.hero .display {
  max-width: 20ch;
  margin-inline: auto;
}
.hero .eyebrow {
  flex-direction: column;
  gap: 0.9rem;
  line-height: 1.6;
}
/* Sur un telephone, deux lignes fixes et des boutons l'un sous l'autre : la mise en page ne depend
   pas de la largeur exacte de la police. */
@media (max-width: 47.99em) {
  .eyebrow-text > span:not(.eyebrow-sep) {
    display: block;
  }
  .eyebrow-sep {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .hero .actions {
    flex-direction: column;
  }
}
.hero .display em {
  display: block;
}
.hero .lead {
  max-width: 32rem;
  margin-inline: auto;
}
.hero .actions {
  margin-top: 2.25rem;
}
.hero .btn-link {
  color: var(--ink);
}
.hero-moon {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
}
.hero-media {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

/* L'idee, en une phrase */
.statement {
  text-align: center;
}
.statement .h-xxl {
  max-width: 18ch;
  margin-inline: auto;
}
.statement .lead {
  max-width: 30rem;
  margin: 2rem auto 0;
}

/* Pastilles au style de l'app */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg-raised);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
}
.chip::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: var(--chip, var(--c-feuille-bright));
}
.chip-amber {
  --chip: #f2b441;
}

/* Tuiles */
.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.section-head > * + * {
  margin-top: 1.25rem;
}
.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 56em) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: min(2.75rem, 7vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  overflow-wrap: anywhere;
}
.tile-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  color: var(--accent-ink);
}
.tile h3 {
  font-size: var(--step-2);
  line-height: 1.1;
}
.tile-lead {
  font-weight: 700;
  color: var(--ink);
}
.tile p:not(.tile-lead) {
  color: var(--ink-2);
}

/* Le telephone : une vraie capture de l'accueil de l'app (iPhone, 22/11/2026), la barre d'etat remplacee par le fond
   de l'app ; le cadre dessine l'ilot et l'heure. La capture est en clair : le telephone l'est aussi en mode sombre. */
.phone-wrap {
  display: grid;
  justify-items: center;
}
.phone {
  --app-ground: #f2f4ef;
  --app-ink: #1f2a44;
  position: relative;
  width: min(19rem, 82vw);
  aspect-ratio: 9 / 19;
  padding: 0.7rem;
  border-radius: 3rem;
  background: linear-gradient(145deg, #2b3550, #05080f 40%, #1b2236);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 40px 80px -20px rgb(0 0 0 / 0.6),
    0 0 120px -30px rgb(242 201 76 / 0.25);
  font-family: var(--font-app);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.35rem;
  background-color: var(--app-ground);
  color: var(--app-ink);
}
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* Le bas de l'ecran se fond dans le fond de l'app, sous la barre d'accueil d'iOS. */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background:
    linear-gradient(var(--app-ink), var(--app-ink)) center bottom 0.5rem / 34% 0.25rem no-repeat,
    linear-gradient(to bottom, transparent, var(--app-ground) 55%);
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 5.2rem;
  height: 1.45rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background-color: #000;
}
.app-time {
  position: absolute;
  top: 0.95rem;
  left: 1.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
}
/* Le conseil du jour : la carte d'exemple */
.advice {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  box-shadow: 0 0 0 1px rgb(242 201 76 / 0.08), 0 30px 80px -40px rgb(242 201 76 / 0.35);
}
.advice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}
.advice-head svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent);
}
.tag {
  margin-left: auto;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: var(--step--2);
  font-weight: 600;
}
.advice-plant {
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: var(--step--1);
  font-weight: 600;
}
.advice-summary {
  margin-top: 0.5rem;
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}
.advice-steps {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.advice-steps li {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
/* Carte trop etroite (petit ecran, grand texte) : le jour passe au-dessus de son geste. */
.advice {
  container-type: inline-size;
}
@container (max-width: 16rem) {
  .advice-steps li {
    grid-template-columns: minmax(0, 1fr);
  }
}
.advice-when {
  overflow-wrap: anywhere;
  color: var(--accent-ink);
  font-weight: 700;
}

/* Votre assistant : la question, et une reponse d'exemple */
.assistant {
  margin-top: var(--space-section);
  text-align: center;
}
.assistant .h-xl {
  max-width: 20ch;
  margin-inline: auto;
}
.bubble {
  max-width: 34rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem 1.5rem 1.5rem 0.4rem;
  background-color: var(--bg-raised);
  text-align: left;
}
.bubble-who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink-3);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.assistant .lead {
  max-width: 36rem;
  margin: 2.5rem auto 0;
}
.assistant .fine {
  max-width: 36rem;
  margin: 1rem auto 0;
}
/* Brancher son assistant : trois pas, alignes a gauche sous la phrase centree. */
.how {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 1.75rem auto 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
  text-align: left;
}
.how li {
  position: relative;
  min-height: 1.75rem;
  padding-left: 2.6rem;
  counter-increment: how;
  color: var(--ink-2);
}
.how li::before {
  content: counter(how);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.how strong {
  color: var(--ink);
}
.assistant .how + p {
  max-width: 36rem;
  margin: 1.75rem auto 0;
  color: var(--ink-2);
}

/* Trois gestes */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 56em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.steps li {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 56em) {
  .steps li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
.step-n {
  display: block;
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-display);
}
.steps p {
  margin-top: 1rem;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
}
.steps-note {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  text-align: center;
}

/* Vos donnees */
.promises {
  display: grid;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 56em) {
  .promises {
    grid-template-columns: repeat(3, 1fr);
  }
}
.promises li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.promises svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
}
.data-more {
  margin-top: 2.5rem;
  text-align: center;
}
.data-more .fine {
  margin-top: 0.75rem;
}

/* Ou en est le projet */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.tl-dot {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.35em;
  border: 2px solid var(--accent-ink);
  border-radius: 50%;
}
.tl-test .tl-dot {
  background-color: var(--accent-ink);
}
.tl-cours .tl-dot {
  background: linear-gradient(90deg, var(--accent-ink) 50%, transparent 50%);
}
.tl-state {
  grid-column: 2;
  color: var(--accent-ink);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.timeline p {
  grid-column: 2;
  color: var(--ink-2);
}
.timeline p strong {
  color: var(--ink);
}

/* L'appel */
.cta {
  text-align: center;
}
.cta .h-xxl {
  max-width: 16ch;
  margin-inline: auto;
}
.cta .lead {
  max-width: 30rem;
  margin: 1.5rem auto 0;
}
.cta .actions {
  margin-top: 2.25rem;
}
.cta .btn {
  overflow-wrap: anywhere;
}

/* Caracteristiques, comme une fiche technique */
.specs-title {
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.022em;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.specs {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.spec {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48em) {
  .spec {
    grid-template-columns: minmax(10rem, 1fr) 3fr;
    gap: 2rem;
  }
}
.spec dt {
  font-weight: 700;
}
.spec dd {
  margin: 0;
  color: var(--ink-2);
}
.spec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec li + li {
  margin-top: 0.35rem;
}

/* Plusieurs produits : un sous-titre par fiche, et le tableau qui les compare. Sur un telephone,
   chaque ligne du tableau devient une carte (data-label, ajoute par build.ts), comme les tableaux
   des pages legales. */
.specs-sub {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: 1rem;
  font-size: var(--step-2);
  line-height: 1.15;
}
.specs-title + .specs-sub,
.specs-title + .compare > .specs-sub {
  margin-top: 0;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: var(--step--1);
  line-height: 1.5;
}
.compare th {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  vertical-align: bottom;
}
.compare td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.compare td:first-child {
  color: var(--ink);
  font-weight: 650;
}
@media (min-width: 40em) {
  .compare td:first-child {
    width: 28%;
  }
}
@media (max-width: 39.99em) {
  .compare table.stack,
  .compare table.stack tbody,
  .compare table.stack tr,
  .compare table.stack td {
    display: block;
  }
  .compare table.stack {
    border-top: 0;
  }
  .compare table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .compare table.stack tr {
    margin-bottom: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--bg-raised);
  }
  .compare table.stack td {
    padding: 0;
    border: 0;
  }
  .compare table.stack td + td {
    margin-top: 0.75rem;
  }
  .compare table.stack td:not(:first-child)::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    margin-bottom: 0.15rem;
    color: var(--accent-ink);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}
/* Une tuile qui mene a sa section : le lien en bas, quelle que soit la longueur du texte. */
.tile > .btn-link {
  margin-top: auto;
  align-self: flex-start;
}
/* La suite d'une section, sous son texte et sa photo (des tuiles, par exemple). */
.section-more {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

/* ------------------------------------------------------------------ */
/* Pages de lecture : aide, pages legales, 404                          */
/* ------------------------------------------------------------------ */

.doc {
  width: min(44rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(4rem, 3rem + 6vw, 7rem);
  line-height: 1.65;
}
.doc {
  overflow-wrap: break-word;
}
.doc > header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.doc h1 {
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.026em;
}
.doc h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
  line-height: 1.15;
}
.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1rem;
}
.doc ul,
.doc ol {
  padding-left: 1.3rem;
}
.doc li + li {
  margin-top: 0.4rem;
}
.doc li::marker {
  color: var(--accent-ink);
}
.updated {
  margin-top: 1rem !important;
  color: var(--ink-3);
  font-size: var(--step--1);
}
.note {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background-color: var(--bg-raised);
}
.note p:last-child {
  margin-bottom: 0;
}
.toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-raised);
}
.toc ol {
  margin: 0;
}
@media (min-width: 40em) {
  .toc ol {
    columns: 2;
    column-gap: 2.5rem;
  }
}
.toc li {
  break-inside: avoid;
}

/* Tableaux : une carte par ligne sur un telephone (data-label, ajoute par build.ts) */
.doc table {
  width: 100%;
  margin: 1rem 0 1.75rem;
  border-collapse: collapse;
  font-size: var(--step--1);
  line-height: 1.5;
}
.doc th {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--ink);
  color: var(--accent-ink);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
}
.doc td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
@media (min-width: 40em) {
  .doc table.stack td:first-child {
    width: 38%;
  }
}
@media (max-width: 39.99em) {
  .doc table.stack,
  .doc table.stack tbody,
  .doc table.stack tr,
  .doc table.stack td {
    display: block;
  }
  .doc table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .doc table.stack tr {
    margin-bottom: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--bg-raised);
  }
  .doc table.stack td {
    padding: 0;
    border: 0;
  }
  .doc table.stack td + td {
    margin-top: 0.75rem;
  }
  .doc table.stack td:first-child {
    font-weight: 650;
    color: var(--ink);
  }
  .doc table.stack td:not(:first-child)::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    margin-bottom: 0.15rem;
    color: var(--accent-ink);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* Aide : sommaire et questions */
.aide-intro {
  margin-top: 1.25rem !important;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.45;
}
.aide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0 !important;
  padding: 0 !important;
  list-style: none;
}
.aide-toc li + li {
  margin-top: 0;
}
.aide-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg-raised);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) {
  .aide-toc a:hover {
    border-color: var(--ink-3);
  }
}
.doc details {
  border-bottom: 1px solid var(--line);
}
.doc h2 + details {
  border-top: 1px solid var(--line);
}
.doc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.9rem 0;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  cursor: pointer;
  list-style: none;
}
.doc summary::-webkit-details-marker {
  display: none;
}
.doc summary::after {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--accent-ink);
  transition: transform 0.2s ease;
}
.doc details[open] > summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.doc details > :not(summary) {
  color: var(--ink-2);
}
.doc details > :last-child {
  padding-bottom: 0.75rem;
}
.doc details strong {
  color: var(--ink);
}
/* Les textes des licences (/licences/) : tels quels, retours a la ligne compris, sans deborder sur un
   telephone. La police a chasse fixe du systeme : rien de plus a charger. */
.doc pre.licence {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  font: var(--step--2) / 1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.aide-contact {
  margin-top: 3.5rem !important;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-raised);
  border: 1px solid var(--line);
}

/* 404 */
.lost {
  text-align: center;
}
.lost .photo-pot {
  width: 6rem;
  margin: 0 auto 2rem;
  color: var(--ink-3);
  transform: none;
}
.lost p {
  margin-top: 1rem;
  color: var(--ink-2);
}
.lost .actions {
  margin-top: 2rem;
}
/* La page 404 est unique (ErrorDocument) : le francais, puis l'anglais, sous un filet. */
.lost-other {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.lost-other h2 {
  margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Mouvement : seulement si le navigateur sait animer au defilement et  */
/* que l'utilisateur n'a pas demande moins d'animations. Hors de ce     */
/* bloc, rien n'est transparent : Firefox, iOS d'avant 26, l'impression  */
/* et les captures voient tout.                                         */
/* ------------------------------------------------------------------ */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes settle {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
@keyframes ink-in {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @supports (animation-timeline: view()) {
    /* La plage « entry » : un bloc entierement a l'ecran est toujours entierement visible. */
    .reveal,
    .reveal-group > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    .reveal-group > :nth-child(2) {
      animation-range: entry 8% entry 92%;
    }
    .reveal-group > :nth-child(3) {
      animation-range: entry 16% entry 100%;
    }

    /* La photo se pose pendant qu'elle traverse l'ecran (transformation seule, jamais cachee). */
    .photo img,
    .photo-todo .photo-pot {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 60%;
    }

    /* La phrase de l'idee s'encre au fil du defilement, et finit pleine des qu'elle est a l'ecran. */
    .ink-in {
      background-image: linear-gradient(90deg, var(--ink) 50%, color-mix(in srgb, var(--ink) 22%, transparent) 50%);
      background-size: 200% 100%;
      background-position: 0 0;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: ink-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }
    .ink-in em {
      color: transparent;
      background-image: linear-gradient(90deg, var(--accent-display) 50%, color-mix(in srgb, var(--accent-display) 22%, transparent) 50%);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      animation: ink-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }
  }
}

/* ------------------------------------------------------------------ */
/* Transitions entre les pages : en CSS seul, par les transitions de    */
/* vue entre documents (Chrome et Edge 126+, Safari 18.2+). Ailleurs,   */
/* la page change d'un coup, comme avant. L'en-tete reste en place ; la */
/* page d'arrivee apparait en fondu par-dessus celle de depart, qui     */
/* s'assombrit a peine. Celle de depart reste opaque, a sa taille et a  */
/* sa place jusqu'au bout, et celle d'arrivee ne glisse pas : sous      */
/* l'en-tete, les deux images portent le meme fond nuit, que l'en-tete  */
/* couvre, et rien ne passe entre deux pages ivoire.                    */
/* ------------------------------------------------------------------ */

@keyframes page-leave {
  to {
    filter: brightness(0.9);
  }
}
@keyframes page-enter {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .site-header {
    view-transition-name: site-header;
  }
  /* Un en-tete qui ne colle plus (telephone a l'horizontale, fort zoom) defile avec sa page : nomme,
     il traverserait l'ecran pendant la transition. Il reste alors dans l'image de la page. */
  @media (max-width: 20em), (max-height: 30em) {
    .site-header {
      view-transition-name: none;
    }
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    mix-blend-mode: normal;
  }
  ::view-transition-old(root) {
    animation: page-leave 0.45s cubic-bezier(0.4, 0, 0.6, 1) both;
  }
  ::view-transition-new(root) {
    animation: page-enter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  /* Ce qui se touche repond au doigt et a la souris, sans a-coup. */
  .btn,
  .btn-link,
  .nav a,
  .footer-links a,
  .aide-toc a {
    transition:
      color 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      filter 0.2s ease,
      transform 0.2s ease;
  }
  .btn:active {
    transform: scale(0.97);
  }
  .btn-link::after {
    transition: transform 0.2s ease;
  }
  @media (hover: hover) {
    .btn-link:hover::after {
      transform: translateX(0.2em) rotate(45deg);
    }
  }
}

/* ------------------------------------------------------------------ */
/* Impression et couleurs forcees                                       */
/* ------------------------------------------------------------------ */

/* L'impression (et la brochure commerciale du dossier de l'ANSSI, qui en sort) : A4, tout en clair,
   sans bloc coupe entre deux pages. Chaque contexte reprend les jetons de l'ivoire sur papier blanc :
   les jetons de nuit (texte clair, cartes sombres) y seraient illisibles. Contrastes sur le papier
   des cartes (le pire cas ; sur blanc, un peu plus) : --ink 13,5:1, --ink-2 9,4:1, --ink-3 6,7:1,
   --accent-ink 7,2:1, --accent-display 5,3:1, --produit 6,1:1 ; les icones (--accent) 3,6:1. */
@media print {
  @page {
    size: A4;
    margin: 14mm 15mm 15mm;
  }
  .site-header,
  .site-footer nav,
  .skip,
  .photo-todo,
  .hero::before {
    display: none !important;
  }
  *,
  *::before {
    animation: none !important;
  }
  :root,
  .s-ivory,
  .s-night,
  .site-header,
  .site-footer,
  .doc-page main {
    --bg: #fff;
    --bg-raised: var(--c-paper);
    --ink: var(--c-nuit);
    --ink-2: #3a425c;
    --ink-3: #50586d;
    --line: rgb(31 42 68 / 0.2);
    --accent: #a67c14;
    --accent-ink: #6b4f0f;
    --accent-display: #85620f;
    --link: var(--c-feuille);
    --produit: var(--c-feuille);
    --focus: var(--c-nuit);
    --btn-bg: var(--c-nuit);
    --btn-ink: var(--c-ivory);
    color-scheme: light;
  }
  html,
  body,
  main,
  .s-night,
  .s-ivory,
  .site-footer {
    background: #fff !important;
    color: var(--ink) !important;
  }
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .phone {
    box-shadow: none;
  }
  /* Le telephone, un peu plus petit et a cote de son texte : l'app et « Partout » tiennent
     sur la meme page. Sans le fondu du bas de l'ecran, qui palissait la derniere carte sur le papier. */
  .phone-wrap {
    zoom: 0.85;
  }
  .split:has(.phone-wrap) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8mm;
  }
  .split:has(.phone-wrap) > * + * {
    margin-top: 0;
  }
  .phone-screen::after {
    background: linear-gradient(var(--app-ink), var(--app-ink)) center bottom 0.5rem / 34% 0.25rem no-repeat;
  }
  /* Les pastilles, plus foncees sur le papier. */
  .chip {
    --chip: var(--c-feuille);
  }
  .chip-amber {
    --chip: #a8740a;
  }
  .advice,
  .bubble,
  .tile,
  .chip {
    box-shadow: none;
  }
  .section {
    padding-block: 6mm;
  }
  .hero {
    padding-block: 4mm 8mm;
  }
  .assistant {
    margin-top: 12mm;
  }
  .section-head {
    margin-bottom: 7mm;
  }
  .wrap {
    width: 100%;
  }
  /* Une colonne : le texte, puis ce qui l'illustre ; un titre ne reste plus seul en bas de page. */
  .split {
    display: block;
  }
  .split > * + * {
    margin-top: 7mm;
  }
  /* Une photo, 80 mm de large au plus : avec son texte, sa section tient encore sur une page. */
  .photo {
    max-width: 80mm;
    margin-inline: auto;
  }
  /* L'aide imprimee (le guide d'utilisation du dossier de l'ANSSI) : chaque reponse ouverte, sans
     le signe qui l'ouvre a l'ecran. */
  .doc details::details-content {
    content-visibility: visible;
    display: block;
  }
  .doc summary {
    min-height: 0;
    padding-bottom: 0.35rem;
  }
  .doc summary::after {
    display: none;
  }
  .eyebrow {
    display: flex;
  }
  .hero .eyebrow {
    align-items: center;
  }
  .section-head .eyebrow,
  .center .eyebrow {
    justify-content: center;
  }
  /* La phrase qui s'encre au defilement : pleine, sans son degrade (il laissait des filets). */
  .ink-in {
    background: none !important;
    color: var(--ink) !important;
  }
  .ink-in em {
    background: none !important;
    color: var(--accent-display) !important;
  }
  /* Les trois mesures cote a cote, et les caracteristiques sur deux colonnes. */
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4mm;
  }
  .tile {
    padding: 5mm;
  }
  .tile h3 {
    font-size: var(--step-1);
  }
  .tile-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0;
  }
  .specs-title {
    padding-bottom: 5mm;
  }
  .specs {
    columns: 2;
    column-gap: 8mm;
    font-size: var(--step--1);
  }
  .spec {
    padding-block: 2.5mm;
  }
  .site-footer {
    padding-block: 6mm 0;
    break-inside: avoid;
  }
  /* Le logo en ligne est dessine pour la nuit (INK_DARK de app/src/ui/logo.ts : trait et yeux blancs) ;
     sur le papier, les couleurs d'INK_LIGHT. */
  .brand-logo [stroke="#FFFFFF"] {
    stroke: #1f2a44;
  }
  .brand-logo [fill="#FFFFFF"] {
    fill: #1f2a44;
  }
  .brand-logo [stroke="#7FD19C"] {
    stroke: #2f7d4f;
  }
  .brand-logo [fill="#7FD19C"] {
    fill: #2f7d4f;
  }
  .brand-logo [fill="#F2C94C"] {
    fill: #e0ae2a;
  }
  .footer-note {
    margin-top: 4mm;
    padding-top: 3mm;
  }
  /* Rien ne se coupe au milieu : un paragraphe, une carte, le telephone, une ligne des
     caracteristiques. Un titre reste avec ce qui le suit. */
  p,
  li,
  dt,
  dd,
  h1,
  h2,
  h3,
  figure,
  tr,
  details,
  .tile,
  .advice,
  .bubble,
  .phone-wrap,
  .chips,
  .how,
  .spec,
  .section-head,
  .data-more,
  .actions {
    break-inside: avoid;
  }
  h1,
  h2,
  h3,
  .eyebrow,
  .section-head,
  .specs-title {
    break-after: avoid;
  }
  /* Une section tient sur une page, quitte a passer entiere a la suivante ; le conseil du jour et
     l'assistant, trop longs ensemble, y sont deux blocs. Seules les caracteristiques, plus longues
     qu'une page, se coupent, entre deux lignes. */
  .section > .wrap:not(.assistant):not(:has(.specs)),
  .split,
  .assistant {
    break-inside: avoid;
  }
}

@media (forced-colors: active) {
  .btn,
  .chip,
  .tile,
  .advice,
  .bubble,
  .promises li,
  .aide-toc a {
    border: 1px solid CanvasText;
  }
  .ink-in,
  .ink-in em {
    color: CanvasText !important;
    background: none !important;
  }
}
