/* ===========================================================================
   Page vitrine — feuille de style unique, servie depuis notre domaine.

   Aucune police externe : la CSP déclare `font-src 'self' data:`, donc un
   appel à fonts.googleapis.com serait bloqué sans le moindre message visible.
   On s'appuie sur les piles système, qui ont l'avantage d'être déjà en
   mémoire — zéro octet téléchargé, zéro rendu différé.
   ======================================================================== */

:root {
  /* Fond vert nuit plutôt qu'un gris neutre : la couleur vient du produit,
     pas d'un thème par défaut. */
  --nuit:      #04241b;
  --nuit-2:    #052e23;
  --nuit-3:    #073a2c;
  --craie:     #f4f1e9;
  --brume:     #9fb7ad;
  --emeraude:  #2fbf87;
  --emeraude-vif: #3ee09e;
  --or:        #e9b949;
  --brique:    #d8734a;
  --trait:     rgba(159, 183, 173, .18);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rythme: clamp(4rem, 9vw, 7.5rem);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--craie);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.01em;
}

p { margin: 0; }

a { color: inherit; }

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

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--craie);
  color: var(--nuit);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

/* La gouttière est posée UNE fois, ici, et pas répétée sur chaque bloc :
   c'est ce qui garantit l'alignement d'une section à l'autre. */
.enveloppe {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.surtitre {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--emeraude);
  margin-bottom: 1rem;
}

.titre-section {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  margin-bottom: 1.5rem;
}

.chapeau {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--brume);
  max-width: 34rem;
}

.mention {
  font-size: .85rem;
  color: var(--brume);
  opacity: .8;
}

/* ---------------------------------------------------------------- Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.bouton--plein {
  background: var(--emeraude);
  color: #032019;
}
.bouton--plein:hover { background: var(--emeraude-vif); transform: translateY(-2px); }

.bouton--fantome {
  border-color: var(--trait);
  color: var(--craie);
}
.bouton--fantome:hover { border-color: var(--emeraude); transform: translateY(-2px); }

.bouton--discret {
  padding: .55rem 1.05rem;
  font-size: .88rem;
  border-color: var(--trait);
}
.bouton--discret:hover { border-color: var(--emeraude); }

.bouton--grand { padding: 1rem 2rem; font-size: 1.05rem; }

/* La flèche oblique du bouton d'accès à l'application.
 *
 * Oblique et non horizontale : vers le haut à droite, c'est la convention de
 * « on quitte cette page pour aller ailleurs » — ce qui est exactement le
 * cas, la vitrine et l'application étant deux choses distinctes. Une flèche
 * horizontale annoncerait la suite d'un même parcours.
 *
 * Dimensionnée en `em` : elle suit la taille du texte du bouton, sans qu'il
 * faille la régler pour chaque variante.
 */
.bouton__fleche {
  width: .95em;
  height: .95em;
  flex: none;
  transition: transform .2s ease;
}
.bouton:hover .bouton__fleche { transform: translate(2px, -2px); }

/* ----------------------------------------------------------------- Entête */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--nuit) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.entete__barre {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.01em;
}
/* La marque reprend l'icône de l'application : le globe de lucide sur un
   carré émeraude. C'est le même tracé que celui de scripts/generer-icones.cjs,
   donc la même image que sur l'écran d'accueil du téléphone et dans l'onglet
   du navigateur. Quelqu'un qui arrive ici depuis un lien doit reconnaître
   l'application qu'on lui a recommandée. */
.marque__pastille {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: .5rem;
  background: linear-gradient(140deg, var(--emeraude-vif), var(--emeraude) 60%, #0d8a5f);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px -8px var(--emeraude);
  flex: none;
  display: grid;
  place-items: center;
  /* Le tracé hérite de cette couleur par `currentColor`. */
  color: #ffffff;
}
.marque__pastille svg {
  width: 64%;
  height: 64%;
  display: block;
}
.marque__nom b { font-weight: 400; color: var(--brume); }

.entete__liens {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: .9rem;
}
.entete__liens a {
  text-decoration: none;
  color: var(--brume);
  transition: color .18s ease;
}
.entete__liens a:hover { color: var(--craie); }

/* Le sélecteur de langue.
 *
 * Deux segments et non un lien « English » : un lien seul indique la langue
 * vers laquelle on va, jamais celle où l'on est. Ici les deux sont visibles
 * et l'active est remplie — on sait où l'on se trouve avant même de lire.
 *
 * Le segment actif est un <span>, pas un lien : un lien vers la page qu'on
 * regarde déjà est un piège pour qui navigue au clavier, et une redirection
 * inutile pour un robot d'indexation.
 *
 * L'ordre FR puis EN est identique sur les deux pages : l'œil retrouve
 * l'anglais au même endroit, qu'il arrive de l'une ou de l'autre.
 */
.bascule-langue {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: .2rem;
  border-radius: 999px;
  border: 1px solid var(--trait);
  background: rgba(255,255,255,.03);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  flex: none;
}

.bascule-langue__actif,
.bascule-langue__autre {
  padding: .3rem .65rem;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  transition: color .18s ease, background-color .18s ease;
}

.bascule-langue__actif {
  background: var(--emeraude);
  color: #032019;
}

.bascule-langue__autre { color: var(--brume); }
.bascule-langue__autre:hover {
  color: var(--craie);
  background: rgba(255,255,255,.07);
}

/* Quand la navigation est affichée, c'est elle qui pousse le reste à droite :
   sans ce retour à zéro, le sélecteur ajouterait une seconde poussée et
   collerait le bouton au bord. */
.entete__liens ~ .bascule-langue { margin-left: 0; }

/* ------------------------------------------------------------------ Héros */

.heros {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) 0;
  overflow: hidden;
}

.heros__grille {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.heros h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin-bottom: 1.5rem;
}

/* Le trait sous « vérifier » se dessine tout seul à l'arrivée : c'est le mot
   qui porte la promesse, il mérite qu'on le désigne.

   Il est peint en arrière-plan plutôt que dessiné en position absolue.
   La différence compte dès qu'on ne maîtrise plus le texte : une traduction
   automatique peut remplacer « vérifier » par deux mots, et un trait absolu
   avec `white-space: nowrap` déborderait alors de l'écran. Peint ainsi, il
   suit le texte et se recopie sur chaque ligne. */
.souligne {
  color: var(--emeraude-vif);
  background-image: linear-gradient(var(--or), var(--or));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - .04em);
  background-size: 0 .09em;
  animation: trait .7s .75s cubic-bezier(.2,.8,.3,1) forwards;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@keyframes trait { to { background-size: 100% .09em; } }

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block: 2rem 1.25rem;
}

/* Halo animé. Trois taches floues qui dérivent lentement — l'arrière-plan
   respire sans jamais attirer l'œil plus que le texte. */
.aurore {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
  opacity: .55;
}
.aurore__tache {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.aurore__tache--a {
  width: 38vw; height: 38vw; min-width: 260px; min-height: 260px;
  background: radial-gradient(circle, rgba(47,191,135,.55), transparent 70%);
  top: 2%; left: -6%;
  animation: derive-a 19s ease-in-out infinite alternate;
}
.aurore__tache--b {
  width: 32vw; height: 32vw; min-width: 220px; min-height: 220px;
  background: radial-gradient(circle, rgba(233,185,73,.32), transparent 70%);
  top: 36%; right: -4%;
  animation: derive-b 23s ease-in-out infinite alternate;
}
.aurore__tache--c {
  width: 26vw; height: 26vw; min-width: 180px; min-height: 180px;
  background: radial-gradient(circle, rgba(216,115,74,.26), transparent 70%);
  bottom: 4%; left: 42%;
  animation: derive-c 27s ease-in-out infinite alternate;
}
@keyframes derive-a { to { transform: translate3d(8%, 6%, 0) scale(1.12); } }
@keyframes derive-b { to { transform: translate3d(-9%, -7%, 0) scale(1.08); } }
@keyframes derive-c { to { transform: translate3d(5%, -9%, 0) scale(1.15); } }

.heros__texte, .heros__appareil { position: relative; z-index: 1; }

/* ---------------------------------------------------- Maquette du téléphone */

.heros__appareil { display: flex; justify-content: center; }

.appareil {
  position: relative;
  width: min(20rem, 100%);
  border-radius: 2.2rem;
  padding: .55rem;
  background: linear-gradient(160deg, #0d4433, #052e23 55%);
  border: 1px solid rgba(159,183,173,.22);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.35);
  animation: flottement 7s ease-in-out infinite alternate;
}
@keyframes flottement { to { transform: translateY(-10px); } }

.appareil__encoche {
  width: 32%;
  height: .38rem;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  margin: .1rem auto .55rem;
}

.appareil__ecran {
  background: #031c15;
  border-radius: 1.75rem;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid rgba(159,183,173,.12);
}

.ecran__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: 1rem;
}
.ecran__titre { font-weight: 600; font-size: .92rem; }

.pastille-directe {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--emeraude);
}
.pastille-directe i {
  width: .42rem; height: .42rem;
  border-radius: 50%;
  background: var(--emeraude-vif);
  animation: battement 2.2s ease-in-out infinite;
}
@keyframes battement {
  0%, 100% { opacity: 1;  box-shadow: 0 0 0 0 rgba(62,224,158,.5); }
  50%      { opacity: .5; box-shadow: 0 0 0 .3rem rgba(62,224,158,0); }
}

.ecran__solde {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem .9rem;
  border-radius: 1rem;
  background: linear-gradient(140deg, rgba(47,191,135,.16), rgba(47,191,135,.04));
  border: 1px solid rgba(47,191,135,.22);
  margin-bottom: .9rem;
}
.ecran__libelle { font-size: .72rem; color: var(--brume); letter-spacing: .04em; }
.ecran__montant {
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
}

.journal { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.journal__ligne {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: .5rem .1rem;
  border-bottom: 1px solid rgba(159,183,173,.09);
  font-size: .78rem;
  opacity: 0;
  animation: ligne-entre .55s cubic-bezier(.2,.8,.3,1) forwards;
  animation-delay: calc(1s + var(--r) * .25s);
}
@keyframes ligne-entre {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

.journal__type {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .18rem .45rem;
  border-radius: .4rem;
  font-weight: 600;
}
.journal__type--vente  { background: rgba(47,191,135,.18);  color: var(--emeraude-vif); }
.journal__type--charge { background: rgba(159,183,173,.14); color: var(--brume); }
.journal__type--perte  { background: rgba(216,115,74,.18);  color: #f0956c; }

.journal__intitule { color: var(--craie); min-width: 0; }
.journal__intitule b { color: var(--or); font-weight: 600; }

.journal__montant {
  font-variant-numeric: tabular-nums;
  color: var(--brume);
  white-space: nowrap;
}
.journal__montant--plus { color: var(--emeraude-vif); }

.ecran__note {
  margin-top: .8rem;
  font-size: .65rem;
  text-align: center;
  color: var(--brume);
  opacity: .6;
  letter-spacing: .05em;
}

/* --------------------------------------------------------------- Bandeau */

.bandeau {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-block: 1px solid var(--trait);
  padding-block: .9rem;
  overflow: hidden;
  /* Les extrémités s'effacent : le défilement paraît continu au lieu de
     buter sur le bord de l'écran. */
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.bandeau__piste {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: defile 38s linear infinite;
}
.bandeau__piste span {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brume);
  white-space: nowrap;
}
.bandeau__piste span::after {
  content: "·";
  margin-left: 2.5rem;
  color: var(--emeraude);
}
/* La piste contient la liste deux fois : à −50 % la seconde moitié occupe
   exactement la place de la première, et la boucle est invisible. */
@keyframes defile { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- Sections */

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

.section--sombre {
  background: linear-gradient(180deg, var(--nuit-2), var(--nuit));
  border-block: 1px solid var(--trait);
}

.section--probleme .titre-section { max-width: 18ch; }

.constats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.constat {
  padding-top: 1.25rem;
  border-top: 2px solid var(--trait);
  transition: border-color .3s ease;
}
.constat:hover { border-top-color: var(--emeraude); }
.constat__numero {
  display: block;
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--or);
  margin-bottom: .6rem;
  letter-spacing: .1em;
}
.constat p { color: var(--brume); }
/* La première phrase porte le temps du récit — elle doit se lire seule,
   même en diagonale. */
.constat b { color: var(--craie); font-weight: 600; }

.conclusion {
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  line-height: 1.35;
  max-width: 30ch;
  color: var(--brume);
}
.conclusion strong { color: var(--craie); font-weight: 600; }

/* --------------------------------------------------- Quatre outils, ou un

   La bascule « avant / après ». À gauche, des étiquettes légèrement de
   travers, aux bords pointillés : le désordre se voit avant d'être lu. À
   droite, une liste alignée dans un cadre net. Aucune image — c'est la mise
   en forme elle-même qui porte le propos.                                 */

.bascule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-top: 3rem;
}

.bascule__titre {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brume);
  margin-bottom: 1.25rem;
}
.bascule__titre--vert { color: var(--emeraude); }

.bascule__note {
  margin-top: 1.25rem;
  font-size: .88rem;
  color: var(--brume);
  font-style: italic;
}
.bascule__note--vert { color: var(--emeraude-vif); font-style: normal; font-weight: 600; }

.fragments { display: grid; gap: .7rem; }

.fragment {
  display: grid;
  gap: .25rem;
  padding: .8rem 1rem;
  border-radius: .8rem;
  border: 1px dashed rgba(159,183,173,.3);
  background: rgba(255,255,255,.02);
  font-size: .85rem;
  color: var(--brume);
  line-height: 1.5;
  transform: rotate(var(--a, 0deg));
}
.fragment b {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--craie);
  opacity: .8;
}

/* Les angles vivent ici, et non dans l'attribut `style` : une valeur en
   ligne ne pourrait pas être annulée par la requête média du téléphone. */
.fragment:nth-child(1) { --a: -3.5deg; }
.fragment:nth-child(2) { --a:  2.5deg; }
.fragment:nth-child(3) { --a: -1.5deg; }
.fragment:nth-child(4) { --a:  3deg;   }
.fragment:nth-child(5) { --a: -2.5deg; }

.js .eparpille .fragment { opacity: 0; }
.js .eparpille.vu .fragment {
  animation: fragment-entre .55s cubic-bezier(.2,.8,.3,1) forwards;
  animation-delay: calc(var(--i, 0) * .12s);
}
@keyframes fragment-entre {
  from { opacity: 0; transform: rotate(0deg) translateY(14px) scale(.96); }
  to   { opacity: 1; transform: rotate(var(--a, 0deg)); }
}

/* La flèche est dessinée, pas écrite : un caractère « → » change de forme
   d'une police système à l'autre. */
.bascule__fleche {
  width: 2.2rem;
  height: 2.2rem;
  position: relative;
  justify-self: center;
  opacity: .8;
}
.bascule__fleche::before,
.bascule__fleche::after {
  content: "";
  position: absolute;
  background: var(--or);
  border-radius: 2px;
}
.bascule__fleche::before {
  top: 50%; left: 10%;
  width: 80%; height: 2px;
  transform: translateY(-50%);
}
.bascule__fleche::after {
  top: 50%; right: 10%;
  width: .8rem; height: .8rem;
  border-top: 2px solid var(--or);
  border-right: 2px solid var(--or);
  background: none;
  transform: translate(0, -50%) rotate(45deg);
}

.rassemble {
  padding: 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(47,191,135,.35);
  background: linear-gradient(160deg, rgba(47,191,135,.1), rgba(47,191,135,.02));
  box-shadow: 0 24px 50px -32px rgba(47,191,135,.5);
}
.rassemble__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rassemble__liste li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .92rem;
}
.rassemble__liste li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .45em;
  width: .5rem;
  height: .28rem;
  border-left: 2px solid var(--emeraude-vif);
  border-bottom: 2px solid var(--emeraude-vif);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------- Étapes */

.etapes {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  counter-reset: none;
}

.etape { position: relative; padding-left: 3.5rem; }
.etape__rang {
  position: absolute;
  left: 0;
  top: -.15rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--trait);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--emeraude);
  background: var(--nuit-2);
}
.etape h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.etape p { color: var(--brume); font-size: .95rem; }

/* --------------------------------------------------------------- Cartes */

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.carte {
  padding: 1.5rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--trait);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.carte:hover {
  transform: translateY(-4px);
  border-color: rgba(47,191,135,.45);
  background: rgba(47,191,135,.06);
}
.carte h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.carte p { color: var(--brume); font-size: .92rem; }
.carte strong { color: var(--craie); }

/* ------------------------------------------------- Fil de discussion humain */

.bloc-fil {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .94rem;
  color: var(--brume);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--emeraude);
}
.points b { color: var(--craie); font-weight: 600; }

.fil {
  display: grid;
  gap: .7rem;
  padding: 1.25rem;
  border-radius: 1.3rem;
  border: 1px solid var(--trait);
  background: linear-gradient(170deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
}

.fil__jour {
  justify-self: center;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brume);
  opacity: .6;
  padding-bottom: .3rem;
}

.msg {
  max-width: 86%;
  padding: .7rem .95rem;
  border-radius: 1.05rem;
  font-size: .9rem;
  line-height: 1.5;
  display: grid;
  gap: .4rem;
}
.msg--eux {
  justify-self: start;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--trait);
  border-bottom-left-radius: .3rem;
}
.msg--moi {
  justify-self: end;
  background: rgba(47,191,135,.14);
  border: 1px solid rgba(47,191,135,.3);
  border-bottom-right-radius: .3rem;
}

.msg__auteur {
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--emeraude);
  text-transform: uppercase;
}

/* --- La note vocale : c'est le détail qui parle le plus à quelqu'un dont
       l'interlocuteur écrit peu. L'onde bouge, donc on comprend sans légende
       que c'est de l'audio et non un fichier. --- */
.vocal {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.vocal__lecture {
  width: 1.7rem; height: 1.7rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emeraude);
  color: #032019;
  font-size: .6rem;
  padding-left: .1rem;
}
.onde { display: flex; align-items: center; gap: .16rem; height: 1.35rem; flex: 1; }
.onde i {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: var(--brume);
  height: 35%;
  opacity: .65;
  animation: onde-bat 1.5s ease-in-out infinite;
  animation-delay: calc(var(--b) * .1s);
}
@keyframes onde-bat {
  0%, 100% { height: 28%; opacity: .5; }
  50%      { height: 92%; opacity: 1; }
}
.vocal__duree {
  font-size: .72rem;
  color: var(--brume);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.piece-jointe {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--craie);
}
/* Vignette dessinée : un dégradé de terre et un « soleil », plutôt qu'une
   photo à télécharger. */
.piece-jointe__vignette {
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  border-radius: .55rem;
  background:
    radial-gradient(circle at 70% 28%, var(--or) 0 14%, transparent 15%),
    linear-gradient(180deg, #0f5c44 0 52%, #8a5a2b 52% 100%);
  border: 1px solid var(--trait);
}

.lu {
  justify-self: end;
  font-size: .66rem;
  color: var(--emeraude-vif);
  opacity: .85;
  letter-spacing: .03em;
}

/* Les messages arrivent l'un après l'autre, comme une vraie conversation. */
.js .fil .msg { opacity: 0; }
.js .fil.vu .msg {
  animation: msg-entre .5s cubic-bezier(.2,.8,.3,1) forwards;
  animation-delay: calc(.25s + var(--m) * .65s);
}
@keyframes msg-entre {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- Assistant */

.assistant__grille {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 3rem;
}

/* Les questions d'exemple valent mieux qu'une liste de capacités : elles
   montrent la portée de l'outil dans les mots de la personne. */
.exemples__titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--brume);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
}
.langue {
  padding: .2rem .55rem;
  border-radius: .45rem;
  border: 1px solid rgba(47,191,135,.35);
  background: rgba(47,191,135,.1);
  color: var(--emeraude-vif);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: none;
}

.exemples__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.exemples__liste li {
  padding: .7rem .9rem;
  border-radius: .8rem;
  border: 1px solid var(--trait);
  background: rgba(255,255,255,.025);
  font-size: .9rem;
  color: var(--brume);
  font-style: italic;
  transition: border-color .22s ease, color .22s ease;
}
.exemples__liste li:hover { border-color: rgba(47,191,135,.4); color: var(--craie); }

/* La discussion. Les bulles n'apparaissent qu'une fois la section atteinte
   (classe `vu` posée par l'observateur) : jouée au chargement, l'animation
   serait terminée bien avant que le regard arrive. */
.discussion { display: grid; gap: .75rem; justify-items: start; }

.bulle {
  max-width: 88%;
  padding: .85rem 1.1rem;
  border-radius: 1.1rem;
  font-size: .95rem;
  line-height: 1.55;
}
.bulle--moi {
  justify-self: end;
  background: rgba(47,191,135,.14);
  border: 1px solid rgba(47,191,135,.3);
  border-bottom-right-radius: .3rem;
}
.bulle--assistant {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--trait);
  border-bottom-left-radius: .3rem;
  color: var(--brume);
}
.bulle--assistant b { color: var(--craie); font-weight: 600; }

/* Les trois points : l'attente rend la réponse crédible.
   Décoration purement JavaScript — sans lui, elle n'existe pas du tout,
   plutôt que de rester figée entre les deux bulles. Le script la retire du
   document une fois la réponse arrivée : masquée mais présente, elle
   laissait un trou dans la conversation. */
.saisie { display: none; }

.js .saisie {
  display: inline-flex;
  gap: .3rem;
  padding: .8rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--trait);
  background: rgba(255,255,255,.04);
  border-bottom-left-radius: .3rem;
}
.saisie i {
  width: .4rem; height: .4rem;
  border-radius: 50%;
  background: var(--brume);
  animation: rebond 1.25s ease-in-out infinite;
}
.saisie i:nth-child(2) { animation-delay: .16s; }
.saisie i:nth-child(3) { animation-delay: .32s; }
@keyframes rebond {
  0%, 60%, 100% { transform: translateY(0);     opacity: .45; }
  30%           { transform: translateY(-.28rem); opacity: 1; }
}

.js .discussion .bulle,
.js .discussion .saisie { opacity: 0; }

.js .discussion.vu .bulle--moi {
  animation: bulle-entre .5s cubic-bezier(.2,.8,.3,1) forwards;
}
.js .discussion.vu .saisie {
  animation: bulle-entre .3s .55s cubic-bezier(.2,.8,.3,1) forwards,
             sort .25s 1.75s ease forwards;
}
.js .discussion.vu .bulle--assistant {
  animation: bulle-entre .5s 1.95s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes bulle-entre {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes sort { to { opacity: 0; transform: scale(.9); } }

/* ------------------------------------------------------- Plusieurs projets */

.bloc-projets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.bloc-projets__texte { display: grid; gap: 1rem; }
.bloc-projets__texte .chapeau { margin: 0; }

.projets { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }

.projet {
  display: grid;
  gap: .4rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--trait);
  background: rgba(255,255,255,.03);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.projet:hover {
  transform: translateX(5px);
  border-color: rgba(47,191,135,.4);
  background: rgba(47,191,135,.06);
}

.projet__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  justify-content: space-between;
}
.projet__nom { font-weight: 600; font-size: .98rem; }
.projet__meta {
  font-size: .82rem;
  color: var(--brume);
  font-variant-numeric: tabular-nums;
}

/* La dernière carte est une invitation, pas une donnée : traits pointillés
   et couleur en retrait pour qu'on ne la lise pas comme un quatrième projet. */
.projet--muet {
  border-style: dashed;
  background: none;
  color: var(--brume);
  opacity: .6;
}
.projet--muet .projet__nom { font-weight: 400; }

.etiquette {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: .4rem;
  border: 1px solid var(--trait);
  color: var(--brume);
  white-space: nowrap;
}
/* Un seul projet a l'assistant actif : c'est exactement le propos — il
   s'active là où il sert, et nulle part ailleurs. */
.etiquette--active {
  border-color: rgba(47,191,135,.45);
  background: rgba(47,191,135,.12);
  color: var(--emeraude-vif);
}

/* Les projets entrent par la droite, l'un après l'autre : on comprend qu'on
   peut en ajouter autant qu'on veut. */
.js .projets .reveal { transform: translateX(24px); }
.js .projets .reveal.vu { transform: none; }

/* --- Les huit domaines ------------------------------------------------
   Une rangée de pastilles, volontairement discrète : la page tire sa force
   des exemples concrets (l'arachide, les Almadies, Grand Yoff). Cette liste
   est là pour que personne ne se dise « ce n'est pas pour moi », pas pour
   remplacer le récit.                                                     */

.secteurs__titre {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brume);
}

.secteurs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.secteur {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--trait);
  background: rgba(255,255,255,.03);
  font-size: .88rem;
  color: var(--brume);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.secteur span {
  font-size: 1rem;
  line-height: 1;
  /* Sur les systèmes sans police couleur, l'émoji tombe en glyphe
     monochrome : on ne s'appuie dessus pour aucune information. */
  filter: saturate(1.1);
}
.secteur:hover {
  transform: translateY(-2px);
  border-color: rgba(47,191,135,.45);
  color: var(--craie);
}

/* ----------------------------------- Transparence, justificatifs, traçabilité

   Les trois mots portent la section. Ils sont composés en grand, dans la
   même graisse que les titres, avec un trait qui se dessine sous chacun à
   son arrivée — l'œil les retient avant même d'avoir lu le paragraphe.   */

.piliers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: 3.5rem;
}

.pilier__mot {
  position: relative;
  display: inline-block;
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  margin-bottom: 1.1rem;
  padding-bottom: .35rem;
}
.pilier__mot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--or), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .75s cubic-bezier(.2,.8,.3,1);
  transition-delay: calc(.2s + var(--i, 0) * 80ms);
}
.pilier.vu .pilier__mot::after { transform: scaleX(1); }

.pilier p { color: var(--brume); font-size: .96rem; }

/* Sans JavaScript, le trait n'attend aucune classe : il est simplement là. */
html:not(.js) .pilier__mot::after { transform: scaleX(1); }

/* ----------------------------------------------------------- Appel final */

.section--final {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(47,191,135,.14), transparent 70%),
    var(--nuit);
  border-top: 1px solid var(--trait);
  text-align: center;
}
.final { display: grid; justify-items: center; gap: 1.25rem; }
.final h2 { font-size: clamp(2rem, 5.5vw, 3rem); }
.final p { color: var(--brume); max-width: 38rem; }

/* ------------------------------------------------------------------ Pied */

.pied {
  border-top: 1px solid var(--trait);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  background: #031a13;
}

/* Trois colonnes et non deux : à deux, les trois liens légaux flottaient
   seuls à droite d'un grand vide. Le poids 1.7 de la première colonne tient
   compte de ce qu'elle porte — marque, phrase et deux badges. */
.pied__grille {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.pied__marque { display: grid; justify-items: start; gap: .9rem; }
.pied__note {
  margin: 0;
  max-width: 26rem;
  font-size: .88rem;
  color: var(--brume);
}
/* Les badges de magasin.
 *
 * Même anatomie que les badges officiels — fond noir, logo à gauche, petite
 * ligne au-dessus d'un nom en gros — mais avec notre propre libellé.
 *
 * DEUX RAISONS DE NE PAS REPRENDRE L'ARTWORK OFFICIEL. Les chartes d'Apple et
 * de Google le réservent aux applications réellement publiées. Et surtout, un
 * badge « Télécharger » qui ne télécharge rien abîme la confiance que toute
 * la page s'emploie à construire.
 *
 * Ce sont des <span>, pas des liens : un badge cliquable qui ne mène nulle
 * part est plus frustrant qu'un badge inerte qui annonce une date.
 */
.magasins {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .9rem;
  border-radius: .55rem;
  background: #000;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  line-height: 1.15;
}

.badge__logo { flex: none; }
/* Tailles différentes pour un poids identique à l'œil : la pomme est une
   silhouette pleine, le triangle du Play est ajouré. */
.badge__logo--apple { width: 1.5rem;  height: 1.5rem; }
.badge__logo--play  { width: 1.35rem; height: 1.35rem; }

.badge__texte { display: grid; }

.badge__petit {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .85;
}

.badge__grand {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.pied__colonne { display: grid; align-content: start; gap: .55rem; }
.pied__titre {
  margin-bottom: .35rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--emeraude);
}
.pied__colonne a {
  font-size: .9rem;
  color: var(--brume);
  text-decoration: none;
  transition: color .18s ease;
}
.pied__colonne a:hover { color: var(--craie); text-decoration: underline; }

/* Le bas de page se détache par un filet : l'avertissement légal n'est pas
   du même ordre que le reste, et doit se lire comme une note de bas de page
   plutôt que comme une quatrième colonne. */
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .6rem 2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.25rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--trait);
  font-size: .78rem;
  color: var(--brume);
  opacity: .7;
}
.pied__bas p { margin: 0; }
.pied__droits { white-space: nowrap; }

/* =========================================================== Animations ==
   Les éléments `.reveal` ne sont masqués QUE si le JavaScript a répondu
   présent (classe `js` posée dans le <head>). Sans lui, la page s'affiche
   entièrement : un visiteur au JavaScript coupé, et surtout Googlebot, ne
   doivent jamais tomber sur une page vide.
   ======================================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.vu { opacity: 1; transform: none; }

/* Le héros, lui, n'attend aucun observateur : il s'anime au chargement. */
.anim {
  opacity: 0;
  animation: monte .7s cubic-bezier(.2,.8,.3,1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes monte {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- Petits écrans */

@media (max-width: 62rem) {
  .heros__grille { grid-template-columns: 1fr; }
  .heros__appareil { order: -1; }
  .appareil { width: min(17rem, 80%); }
  .assistant__grille { grid-template-columns: 1fr; }
  .bloc-fil { grid-template-columns: 1fr; }
  .bloc-projets { grid-template-columns: 1fr; }
  /* Trois colonnes ne tiennent pas : la marque garde toute la largeur,
     les deux listes de liens se rangent dessous. */
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__marque { grid-column: 1 / -1; }
  .entete__liens { display: none; }

  /* La bascule passe à la verticale, et la flèche pivote avec elle :
     horizontale, elle désignerait le vide. */
  .bascule { grid-template-columns: 1fr; }
  .bascule__fleche { transform: rotate(90deg); }
}

@media (max-width: 30rem) {
  .fil { padding: .9rem; }
  .pied__grille { grid-template-columns: 1fr; }
  .msg { max-width: 94%; }
  /* Les étiquettes de travers débordent de la gouttière sur un téléphone. */
  .fragment { --a: 0deg !important; }
}

@media (max-width: 26rem) {
  .heros__actions .bouton { width: 100%; }
}

/* --------------------------------------------- Mouvement réduit : on arrête

   Ce réglage n'est pas une politesse : le mouvement peut déclencher des
   nausées ou des migraines. Quand il est demandé, tout s'arrête et tout
   reste lisible.                                                          */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .anim { opacity: 1; }
  .journal__ligne { opacity: 1; }
  .souligne { background-size: 100% .09em; }

  /* La discussion se lit d'un bloc : sans animation, l'attente des trois
     points n'a plus de sens et resterait affichée entre les deux bulles. */
  .js .discussion .bulle { opacity: 1; }
  .js .fil .msg { opacity: 1; }
  .js .eparpille .fragment { opacity: 1; transform: rotate(var(--a, 0deg)); }
  .saisie { display: none; }

  /* L'onde est décorative : figée, elle doit rester lisible comme un
     graphique et non comme une rangée de traits écrasés. */
  .onde i { height: 55%; opacity: .7; }
}
