/* ═══════════════════════════════════════════════════════════════════
   agene.fr — l'administration.

   Un outil de travail, pas une vitrine : on scanne, on clique, on
   revient dix fois par jour. Donc peu de couleur, beaucoup de calme,
   et l'état des choses lisible d'un coup d'œil.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --fond:    #F1F2EE;
  --carte:   #FFFFFF;
  --creux:   #E7E9E2;
  --encre:   #16181C;
  --encre-2: #565B63;
  --encre-3: #868C94;
  --filet:   #DCDFD6;
  --vif:     #1F6E4C;
  --vif-fd:  #E4F0E9;
  --alerte:  #9A5B12;
  --alerte-fd:#F7EBD9;
  --rouge:   #A32B22;
  --rayon:   10px;
  --ombre:   0 1px 2px rgba(20,22,27,.06), 0 10px 26px -18px rgba(20,22,27,.5);
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond:#0E1014; --carte:#171A20; --creux:#1F232B; --encre:#E7E8E3;
    --encre-2:#A6ABB4; --encre-3:#7C828B; --filet:#2A2F38;
    --vif:#5CA981; --vif-fd:#12241B; --alerte:#D9A253; --alerte-fd:#2A2013;
    --rouge:#DC7A70;
    --ombre: 0 1px 2px rgba(0,0,0,.5), 0 12px 30px -18px rgba(0,0,0,.9);
  }
}
:root[data-theme="dark"] {
  --fond:#0E1014; --carte:#171A20; --creux:#1F232B; --encre:#E7E8E3;
  --encre-2:#A6ABB4; --encre-3:#7C828B; --filet:#2A2F38;
  --vif:#5CA981; --vif-fd:#12241B; --alerte:#D9A253; --alerte-fd:#2A2013;
  --rouge:#DC7A70;
  --ombre: 0 1px 2px rgba(0,0,0,.5), 0 12px 30px -18px rgba(0,0,0,.9);
}

*,*::before,*::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { margin: 0; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.12rem; }
h3 { font-size: .96rem; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--vif); outline-offset: 2px; border-radius: 4px; }

/* ── boutons ─────────────────────────────────────────────────────── */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-size: .91rem; font-weight: 500; text-decoration: none;
  padding: .58rem 1rem; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s, opacity .14s;
}
.b-plein { background: var(--encre); color: var(--fond); }
.b-plein:hover { opacity: .88; }
.b-vide { background: var(--carte); border-color: var(--filet); color: var(--encre); }
.b-vide:hover { border-color: var(--encre-3); }
.b-fin { background: transparent; color: var(--encre-2); padding: .4rem .6rem; }
.b-fin:hover { color: var(--encre); background: var(--creux); }
.b-danger { background: transparent; border-color: var(--filet); color: var(--rouge); }
.b[disabled] { opacity: .5; cursor: not-allowed; }
.b svg { width: 15px; height: 15px; flex: none; }

/* ── champs ──────────────────────────────────────────────────────── */
label.champ { display: block; margin-bottom: .95rem; }
label.champ > span {
  display: block; font-size: .82rem; font-weight: 500;
  color: var(--encre-2); margin-bottom: .3rem;
}
input[type=text], input[type=email], input[type=password], input[type=search] {
  width: 100%; font: inherit; font-size: .95rem; color: var(--encre);
  background: var(--carte); border: 1px solid var(--filet);
  border-radius: 8px; padding: .58rem .7rem;
}
input:focus { outline: none; border-color: var(--vif); box-shadow: 0 0 0 3px var(--vif-fd); }
label.champ > span.aide,
.aide { display: block; font-size: .82rem; font-weight: 400;
        color: var(--encre-3); margin-top: .3rem; margin-bottom: 0; }

/* Le champ d'adresse de boutique, avec son suffixe collé.
   La règle est écrite « label.champ > span.avec-suffixe » et pas
   « .avec-suffixe » : sinon le « display:block » des libellés, plus
   spécifique, l'emporte et le suffixe tombe sous le champ. */
label.champ > span.avec-suffixe,
.avec-suffixe { display: flex; align-items: stretch; }
.avec-suffixe input { border-radius: 8px 0 0 8px; }
.avec-suffixe .suffixe {
  display: flex; align-items: center; padding: 0 .7rem;
  background: var(--creux); border: 1px solid var(--filet); border-left: 0;
  border-radius: 0 8px 8px 0; color: var(--encre-2);
  font-family: var(--mono); font-size: .86rem; white-space: nowrap;
}

/* ── messages ────────────────────────────────────────────────────── */
.mot {
  border-radius: 8px; padding: .6rem .8rem; font-size: .89rem;
  margin-bottom: 1rem; border: 1px solid var(--filet); background: var(--creux);
}
.mot-mal { color: var(--rouge); border-color: color-mix(in srgb, var(--rouge) 35%, var(--filet)); }
.mot-bien { color: var(--vif); background: var(--vif-fd);
            border-color: color-mix(in srgb, var(--vif) 30%, var(--filet)); }
.mot:empty { display: none; }

/* ── le portail ──────────────────────────────────────────────────────
   Une porte, oui — mais une porte avec un nom dessus. La version d'avant
   était une boîte de connexion posée sur du gris : elle ne disait ni où
   l'on venait d'arriver, ni ce qu'il y avait derrière. Un commerçant qui
   tape « agene.fr » doit le savoir en une seconde, sans lire d'argumentaire.
   Le formulaire garde la vedette et le curseur y est déjà. */
.page-portail { display: grid; place-items: center; min-height: 100vh; padding: 24px; }

.portail {
  width: 100%;
  max-width: 396px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

/* Deux colonnes dès qu'il y a la place : l'identité à gauche, la porte à
   droite. En dessous, tout s'empile et l'identité passe devant — sur un
   téléphone on veut d'abord savoir où l'on est. */
.portail:has(.portail-qui) { max-width: 880px; }
.portail-porte { width: 100%; max-width: 396px;
  display: flex; flex-direction: column; align-items: center; gap: 1.15rem; }
.portail-qui { width: 100%; max-width: 396px; text-align: center; }

@media (min-width: 860px) {
  .portail:has(.portail-qui) {
    display: grid;
    grid-template-columns: 1fr 396px;
    align-items: center;
    gap: 4.5rem;
  }
  .portail-qui { max-width: 400px; text-align: left; justify-self: end; }
}

.portail-qui .logo-grand { display: inline-block; margin-bottom: 1.1rem; }
.portail-quoi {
  font-size: 1.32rem; line-height: 1.35; font-weight: 600;
  letter-spacing: -.015em; text-wrap: balance; margin: 0 0 1.15rem;
}
.portail-liste {
  list-style: none; margin: 0 0 1.3rem; padding: 0;
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .92rem; color: var(--encre-2);
}
.portail-liste li { position: relative; padding-left: 1.35rem; }
.portail-liste li::before {
  content: ""; position: absolute; left: .25rem; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--vif);
}
/* Sur un téléphone, la porte d'abord : il reste le nom et la phrase qui
   dit où l'on est, et le formulaire arrive sans qu'on ait à faire défiler.
   Le reste est du confort de grand écran. */
@media (max-width: 859px) {
  .portail-liste, .portail-note { display: none; }
  .portail-quoi { font-size: 1.15rem; margin-bottom: 0; }
  .portail-qui .logo-grand { margin-bottom: .8rem; }
}
.portail-note {
  margin: 0; font-size: .85rem; line-height: 1.5; color: var(--encre-3);
  border-top: 1px solid var(--filet); padding-top: .9rem;
}
.portail-note b { color: var(--encre-2); font-family: var(--mono); font-weight: 500; }

/* Une session déjà ouverte qui ne mène nulle part : sans cette barre, la
   page renvoyait ailleurs avant qu'on ait pu taper une lettre. */
.dejala {
  width: 100%; background: var(--vif-fd); color: var(--encre);
  border: 1px solid color-mix(in srgb, var(--vif) 28%, var(--filet));
  border-radius: 12px; padding: .9rem 1rem;
}
.dejala-mot { margin: 0 0 .7rem; font-size: .9rem; }
.dejala-b { display: flex; gap: .5rem; flex-wrap: wrap; }
.dejala-b .b { flex: 1 1 auto; justify-content: center; }

/* « Mot de passe oublié » : un aveu honnête, pas un faux bouton. */
.oubli-ligne { margin: .9rem 0 0; text-align: center; }
.oubli-ligne button {
  font: inherit; font-size: .87rem; color: var(--encre-2);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.oubli-ligne button:hover { color: var(--encre); }
.oubli-boite {
  margin-top: .9rem; padding: .9rem 1rem;
  background: var(--creux); border-radius: 10px;
  font-size: .86rem; line-height: 1.55; color: var(--encre-2);
}
.oubli-pied { color: var(--encre-3); font-size: .82rem; }

.logo {
  font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
  letter-spacing: -.02em; text-decoration: none;
}
.logo b { color: var(--vif); }
.logo-grand { font-size: 1.35rem; }

.boite {
  width: 100%;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--ombre);
}
.boite h1 { font-size: 1.3rem; }
.sous-titre { color: var(--encre-2); font-size: .92rem; margin: .25rem 0 1.35rem; }

.b-large { width: 100%; padding: .72rem 1rem; font-size: .95rem; }

/* Même précaution que pour le suffixe : le libellé « label.champ > span »
   est plus spécifique qu'une simple classe et écraserait la couleur. */
label.champ > span.aide-ok,  .aide-ok  { color: var(--vif); }
label.champ > span.aide-non, .aide-non { color: var(--rouge); }

/* La bascule connexion / création : une phrase, pas deux onglets. Un
   commerçant sait s'il a déjà un compte ; on ne lui pose pas la question
   avant même qu'il ait lu le titre. */
.bascule {
  margin: 0; font-size: .9rem; color: var(--encre-2);
  display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap;
  justify-content: center;
}
.bascule button {
  font: inherit; font-weight: 500; color: var(--vif);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.bascule button:hover { color: var(--encre); }

.pied-portail { margin: 0; font-size: .84rem; color: var(--encre-3); text-align: center; }

/* ═══════════ BANDEAU D'INSTALLATION ═══════════
   ⚠️ Classes en « poseur- » et non « bandeau- » : « .bandeau » existe
   déjà plus bas dans ce fichier, pour les alertes du tableau de bord.
   Il y pose display:flex, un padding et une marge — ma barre en
   héritait, son contenu débordait de soixante pixels à droite, et le
   bouton « Installer » sortait de l'écran. Aucune erreur nulle part :
   juste la seconde règle qui gagne, étant la dernière.
   La forme qu'on connaît : une barre fine en haut, une croix à droite.
   Elle doit s'ignorer aussi facilement qu'elle se remarque — d'où la
   hauteur contenue, le fond discret, et le seul filet vert pour dire
   qu'il se passe quelque chose.

   ⚠️ « fixed » et non « sticky » : le corps de cette page est une grille
   centrée (place-items: center), qui transformerait un poseur en flux en
   une case centrée large comme son texte. Hors du flux, il fait toute la
   largeur — et le corps se décale d'autant, sinon la boîte de connexion
   passerait dessous. */
.poseur {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--carte);
  border-bottom: 1px solid var(--filet);
  box-shadow: 0 1px 0 rgba(31, 110, 76, .55);
}
.poseur-l {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem .6rem .45rem .7rem;
  max-width: 640px; margin: 0 auto;
}
.poseur-i { border-radius: 7px; flex: 0 0 auto; display: block; }
/* Le nom et la raison sur deux lignes serrées : la raison compte plus que
   le nom, mais le nom fait reconnaître d'un coup d'œil de quoi il s'agit. */
.poseur-t {
  margin: 0; flex: 1 1 auto; min-width: 0;
  font-size: .78rem; line-height: 1.25; color: var(--encre-2);
}
.poseur-t b { display: block; font-size: .84rem; color: var(--encre); font-weight: 600; }
.poseur-t span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poseur-b {
  flex: 0 0 auto;
  font: inherit; font-size: .8rem; font-weight: 600;
  color: var(--fond); background: var(--encre);
  border: 0; border-radius: 999px; padding: .38rem .85rem;
  cursor: pointer;
}
.poseur-b:hover { opacity: .88; }
.poseur-b:disabled { opacity: .5; cursor: default; }
.poseur-x {
  flex: 0 0 auto;
  font: inherit; font-size: 1.2rem; line-height: 1;
  color: var(--encre-3); background: none; border: 0;
  padding: .25rem .3rem; cursor: pointer;
}
.poseur-x:hover { color: var(--encre); }
.poseur-pas {
  margin: 0; padding: .5rem .75rem .6rem;
  max-width: 640px; margin: 0 auto;
  border-top: 1px solid var(--filet);
  font-size: .8rem; line-height: 1.5; color: var(--encre-2);
}
.poseur-pas b { color: var(--encre); font-weight: 600; }
/* Le poseur étant hors du flux, c'est au corps de lui faire sa place. */
body.a-poseur { padding-top: 4.1rem; }

/* Un numéro de téléphone coupé en deux ne se compose pas : il reste entier
   même si la ligne doit passer à la suivante. */
.pied-portail a, .oubli-boite a { color: var(--encre-2); white-space: nowrap; }
.oubli-boite a { color: var(--vif); }

/* ── l'administration ────────────────────────────────────────────── */
.cadre { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
@media (max-width: 860px) { .cadre { grid-template-columns: 1fr; } }
/* ⚠️ Un enfant de grille porte « min-width: auto » : la colonne ne descend
   jamais sous la largeur minimale de son contenu. Un seul mot trop long,
   et toute la page se met à glisser de gauche à droite — mesuré à 320 px,
   où la colonne réclamait 327 px pour un écran de 320. On l'autorise à
   rétrécir ; ce qui est vraiment large (tableaux, catalogues) porte déjà
   son propre « overflow-x: auto ». */
.cadre > * { min-width: 0; }

.cote {
  background: var(--carte); border-right: 1px solid var(--filet);
  padding: 1rem .75rem; display: flex; flex-direction: column; gap: 1.1rem;
}
@media (max-width: 860px) {
  .cote { border-right: 0; border-bottom: 1px solid var(--filet); }
  .menu { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
}
.cote .logo { padding: .3rem .55rem; }
.menu { display: flex; flex-direction: column; gap: 1px; }
.menu a {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  padding: .5rem .55rem; border-radius: 7px; font-size: .92rem;
  color: var(--encre-2); white-space: nowrap;
}
.menu a:hover { background: var(--creux); color: var(--encre); }
.menu a[aria-current="page"] { background: var(--creux); color: var(--encre); font-weight: 500; }
.menu svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.cote .bas { margin-top: auto; display: grid; gap: .4rem; }

.plan { padding: clamp(18px, 3vw, 34px); max-width: 940px; }
.barre {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.barre h1 { margin-right: auto; }

/* Une panne de plateforme — quota, fiche illisible — dite sans fermer la
   page. Le ton est celui d'un avertissement, pas d'un refus : ce n'est
   pas la faute du compte qui regarde. */
.panne {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: var(--alerte-fd); color: var(--encre);
  border: 1px solid color-mix(in srgb, var(--alerte) 34%, var(--filet));
  border-radius: var(--rayon); padding: .85rem 1rem; margin-bottom: 1.2rem;
}
.panne p { margin: 0; flex: 1 1 22rem; font-size: .9rem; line-height: 1.5; }

/* Le résultat de l'essai de caisse, sous son bouton : une phrase, pas
   une carte de plus. */
.caisse-essai { align-items: center; margin-top: .2rem; }
.caisse-essai .aide { margin: 0; flex: 1 1 20rem; }

.carte {
  background: var(--carte); border: 1px solid var(--filet);
  border-radius: var(--rayon); padding: 1.1rem 1.2rem; margin-bottom: 1rem;
}
.carte > h2 { margin-bottom: .25rem; }
.carte > .sous { color: var(--encre-2); font-size: .9rem; margin-bottom: 1rem; }

.rang {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .75rem 0; border-top: 1px solid var(--filet);
}
.rang:first-of-type { border-top: 0; }
.rang .nom { font-family: var(--mono); font-size: .93rem; }
.rang .actions { margin-left: auto; display: flex; gap: .4rem; }

.puce {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .02em;
  padding: .16rem .5rem; border-radius: 999px;
  border: 1px solid var(--filet); color: var(--encre-2); background: var(--creux);
  white-space: nowrap;
}
.puce::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--encre-3); }
.puce-ok { color: var(--vif); background: var(--vif-fd);
           border-color: color-mix(in srgb, var(--vif) 30%, var(--filet)); }
.puce-ok::before { background: var(--vif); }
.puce-attente { color: var(--alerte); background: var(--alerte-fd);
                border-color: color-mix(in srgb, var(--alerte) 30%, var(--filet)); }
.puce-attente::before { background: var(--alerte); }

/* la marche à suivre DNS : un tableau qu'on recopie sans se tromper */
.recette {
  background: var(--creux); border: 1px solid var(--filet); border-radius: 8px;
  padding: .8rem .9rem; margin-top: .7rem; font-size: .88rem;
}
.recette dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .35rem .9rem; margin: .5rem 0 0; }
.recette dt { color: var(--encre-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.recette dd { margin: 0; font-family: var(--mono); word-break: break-all; }

/* La messagerie reprise, ou pas : deux nouvelles qui ne se lisent pas de
   la même façon, donc deux couleurs. */
.recette-ok {
  background: var(--vif-fd);
  border-color: color-mix(in srgb, var(--vif) 30%, var(--filet));
}
.recette-attention {
  background: var(--alerte-fd);
  border-color: color-mix(in srgb, var(--alerte) 34%, var(--filet));
}

.grille-dom { display: grid; gap: .5rem; margin-top: .8rem; }
.trouve {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .6rem .8rem; border: 1px solid var(--filet);
  border-radius: 8px; background: var(--fond);
}
.trouve .nom { font-family: var(--mono); font-size: .93rem; }
.trouve .prix { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--encre-2); font-size: .9rem; }

.vide { color: var(--encre-3); font-size: .9rem; padding: .4rem 0; }
.chargement { color: var(--encre-3); font-size: .9rem; }
[hidden] { display: none !important; }

/* ── la carte de boutique ────────────────────────────────────────────
   Ce que le commerçant vient voir en se connectant : sa boutique, son
   adresse, et de quoi l'ouvrir ou la modifier sans chercher. */
.boutique-carte {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 1.2rem;
  align-items: start;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
@media (max-width: 620px) { .boutique-carte { grid-template-columns: 1fr; } }

/* L'aperçu : la vraie page, réduite. Pas une image de catalogue. */
.apercu {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--filet);
  border-radius: 8px;
  overflow: hidden;
  background: var(--creux);
}
.apercu iframe {
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 960px;
  transform: scale(.1156);
  transform-origin: 0 0;
  border: 0;
  pointer-events: none;
}
.apercu-voile { position: absolute; inset: 0; }

.boutique-info h2 { font-size: 1.18rem; margin-bottom: .15rem; }
.boutique-adresse {
  font-family: var(--mono); font-size: .88rem; color: var(--encre-2);
  text-decoration: none; word-break: break-all;
}
.boutique-adresse:hover { color: var(--vif); }
.boutique-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: .55rem 0 1rem; }
.boutique-info .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── L'en-tête d'une carte, avec son état à droite ───────────────────
   Le commerçant doit voir « où j'en suis » avant de lire le texte. */
.carte-tete {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-bottom: .25rem;
}
.carte-tete h2 { margin-right: auto; }

/* Les trois gestes à faire de l'autre côté, chez Stripe. */
.pas {
  margin: .8rem 0 0; padding-left: 1.35rem;
  font-size: .9rem; line-height: 1.6; color: var(--encre-2);
}
.pas li { margin-bottom: .3rem; }
.pas b { color: var(--encre); font-weight: 500; }

/* ── Les compteurs en tête de section ────────────────────────────────
   Ce qu'on veut savoir avant de lire quoi que ce soit : combien est
   rentré, combien reste dû, combien reste à faire. */
.chiffres {
  display: grid; gap: .7rem; margin-bottom: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
}
.chiffre {
  background: var(--carte); border: 1px solid var(--filet);
  border-radius: var(--rayon); padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .1rem;
}
.chiffre-t {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--encre-3);
}
.chiffre b {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.chiffre-n { font-size: .8rem; color: var(--encre-3); }

/* ── Une commande ────────────────────────────────────────────────────
   L'essentiel sur une ligne, le détail dessous en plus discret : on
   parcourt d'abord, on lit ensuite. */
.cmd { border-top: 1px solid var(--filet); padding: .85rem 0; }
.cmd:first-child { border-top: 0; }
.cmd-tete { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.cmd-tete b { font-weight: 500; }
.cmd-quand { font-size: .84rem; color: var(--encre-3); }
.cmd-somme {
  margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 500;
}
.cmd-tete .b { padding: .4rem .7rem; font-size: .85rem; }
.cmd-corps {
  display: flex; flex-wrap: wrap; gap: .3rem 1.1rem;
  margin-top: .35rem; font-size: .87rem; color: var(--encre-2);
}
.cmd-corps a { color: var(--vif); text-decoration: none; }

.sous-ligne { display: block; font-size: .82rem; color: var(--encre-3); }
.rang .actions { text-align: right; }

/* ── La régie ────────────────────────────────────────────────────────
   Une liste qu'on parcourt à la centaine : chaque ligne tient sur une
   ligne, et l'action la plus fréquente est la plus à droite, là où le
   pouce et la souris arrivent. */
.plan-large { max-width: 1280px; }
.regie-tag {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--encre-3); font-weight: 500;
}

.filtres { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
/* Le compte dans le bouton de métier. Il dit d'un coup d'œil s'il y a cinq
   food-trucks ou quatre-vingt-dix-neuf ateliers derrière — l'information
   qu'on cherche AVANT de cliquer, pas après. Plus pâle que le libellé :
   c'est un chiffre de service, pas le nom du bouton. */
.filtre-n { opacity: .55; font-variant-numeric: tabular-nums; margin-left: .15rem; }
.b.on .filtre-n { opacity: .7; }
.filtres .b { padding: .38rem .75rem; font-size: .85rem; }
.filtres .b.on { background: var(--encre); color: var(--fond); border-color: var(--encre); }

/* ⚠️ QUATRE COLONNES, PAS CINQ — et la deuxième n'est plus « auto ».
   La règle déclarait cinq pistes pour quatre enfants, et posait les
   pastilles sur une piste « auto » : à cinq pastilles, elles réclamaient
   six cents pixels de largeur minimale et la colonne du nom, en
   « minmax(0, 2fr) », s'écrasait à presque rien. Le nom de la boutique
   se coupait en deux et son adresse passait par-dessus les pastilles —
   visible sur la capture du 12 septembre 2026, et aggravé le jour où un
   bouton de plus est arrivé dans la ligne.

   Maintenant : le nom a un plancher (11 rem), les pastilles ont le droit
   de passer à la ligne dans une piste souple, et les actions gardent
   leur largeur naturelle. */
.parc-l {
  display: grid; align-items: center; gap: .8rem;
  grid-template-columns: minmax(11rem, 1.3fr) minmax(0, 2.2fr) auto auto;
  padding: .7rem 0; border-top: 1px solid var(--filet);
}
.parc-l:first-child { border-top: 0; }
.parc-n { min-width: 0; }
.parc-n b { font-weight: 500; display: block; }
.parc-n a { font-family: var(--mono); text-decoration: none; }
.parc-n a:hover { color: var(--vif); }
.parc-m { display: flex; gap: .35rem; flex-wrap: wrap; }
.parc-d { font-size: .84rem; color: var(--encre-3); white-space: nowrap; }
.parc-l .actions { display: flex; gap: .35rem; justify-content: flex-end;
  flex-wrap: wrap; }
.parc-l .b { padding: .38rem .7rem; font-size: .84rem; }

/* Cinq boutons par ligne : on passe en colonne plus tôt qu'avant, sinon
   le nom se remet à se couper. */
@media (max-width: 1180px) {
  .parc-l { grid-template-columns: 1fr; gap: .45rem; }
  .parc-l .actions { justify-content: flex-start; }
}

.deux-champs {
  display: grid; gap: 0 1rem; margin-bottom: .4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Une carte qui demande une décision : le filet à gauche la distingue
   sans crier, et elle passe avant tout le reste. */
.carte-alerte {
  border-left: 3px solid var(--alerte);
  background: color-mix(in srgb, var(--alerte-fd) 55%, var(--carte));
}

/* ── Les bandeaux ────────────────────────────────────────────────────
   Un manque, un bandeau. Ils disparaissent l'un après l'autre : ce qui
   reste à l'écran est exactement ce qui reste à faire. */
.bandeau {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.1rem; margin-bottom: .7rem;
  border: 1px solid color-mix(in srgb, var(--alerte) 35%, var(--filet));
  border-radius: var(--rayon);
  background: color-mix(in srgb, var(--alerte-fd) 60%, var(--carte));
  font-size: .93rem;
}
.bandeau-t { flex: 1; min-width: 16rem; }
.bandeau .b { padding: .48rem .9rem; font-size: .88rem; }

/* ── Le panneau des étapes ───────────────────────────────────────────
   Un carré par condition : plein et coché quand c'est fait, vide quand
   il reste à le faire. On voit où on en est sans lire. */
.encadre {
  margin-top: 1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--filet); border-radius: var(--rayon);
  background: var(--carte);
}
.encadre h3 { font-size: 1rem; }
.encadre .sous { margin: .2rem 0 .9rem; }

.etape {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem 0; border-top: 1px solid var(--filet);
}
.etape:first-of-type { border-top: 0; }
.etape > span:nth-child(2) { flex: 1; min-width: 12rem; }
.etape b { font-weight: 500; }
.etape-fin { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Ce qui est réglé s'efface un peu ; ce qui reste garde le contraste plein.
   L'œil doit tomber sur le travail restant, pas sur le travail fait. */
.etape.faite > span:nth-child(2) { color: var(--encre-3); }
.etape.faite b { color: var(--encre-2); }

.carre {
  width: 20px; height: 20px; flex: none; border-radius: 5px;
  border: 1.5px solid var(--filet); background: var(--fond);
  display: grid; place-items: center;
  font-size: .74rem; font-weight: 700; color: var(--fond);
}
.etape.faite .carre { background: var(--vif); border-color: var(--vif); }
.etape.reste .carre { border-style: dashed; border-color: var(--alerte); }

/* Le bouton « Désactiver le mot de passe » ramène ici : un battement, et
   on comprend où regarder. */
@keyframes appel {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--alerte) 55%, transparent); }
  to   { box-shadow: 0 0 0 9px transparent; }
}
.encadre.appel { animation: appel .9s ease-out 2; }
@media (prefers-reduced-motion: reduce) {
  .encadre.appel { animation: none; border-color: var(--alerte); }
}

/* Boutique fermée : l'aperçu n'a rien à montrer, on l'écrit. */
.apercu.apercu-ferme {
  display: grid; place-items: center; text-align: center;
  font-size: .78rem; line-height: 1.4; color: var(--encre-3);
  background: var(--creux);
}

/* ── Écarts qui étaient écrits dans le HTML ──────────────────────────
   Sortis de l'attribut « style » : la politique de sécurité interdit
   désormais tout style inline, et un seul suffirait à rouvrir la porte
   pour tous. */
.actions-serrees { margin-top: 0; }
.actions-proches { margin-top: .2rem; }
.champ-large { max-width: 34rem; margin-top: 1.1rem; }

/* ── « Comment ça marche ? » ─────────────────────────────────────────
   L'explication est là, repliée. Un commerçant qui sait passe devant ;
   celui qui doute l'ouvre, et n'a personne à appeler. C'est ce pli-là qui
   remplace la formation. */
.explique{margin-top:.7rem}
.explique > summary{
  display:inline-flex;align-items:center;gap:.4rem;cursor:pointer;list-style:none;
  font-size:.82rem;font-weight:500;color:var(--vif);
  padding:.25rem 0;border-radius:4px}
.explique > summary::-webkit-details-marker{display:none}
.explique > summary::before{content:"›";display:inline-block;font-size:1rem;line-height:1;
  transition:transform .18s ease}
.explique[open] > summary::before{transform:rotate(90deg)}
.explique > summary:hover{text-decoration:underline}
.explique p{margin:.55rem 0 0;font-size:.85rem;line-height:1.6;color:var(--encre-2);
  max-width:62ch}
.explique p + p{margin-top:.5rem}
.etape .explique{margin-top:.5rem}

/* ── Les trois univers ───────────────────────────────────────────────
   On choisit un habillage avec les yeux : chaque carte montre la vraie
   police du thème et sa palette. Trois lignes de texte ne diraient pas
   ce qu'un « Aa » dit en une seconde. */
.univers-grille{display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem;margin-top:1rem}
.univers-c{display:flex;flex-direction:column;gap:.55rem;padding:.9rem;
  border:1px solid var(--filet);border-radius:var(--rayon);background:var(--fond);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.univers-c:hover{border-color:color-mix(in srgb,var(--encre-3) 40%,var(--filet));
  transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.06)}
.univers-c.on{border-color:var(--vif);box-shadow:0 0 0 1px var(--vif)}
.univers-ap{height:74px;display:grid;place-items:center;border-radius:9px;
  font-size:1.9rem;font-weight:600;letter-spacing:-.02em;
  border:1px solid var(--filet)}
.univers-pal{display:flex;gap:5px}
.univers-pal i{flex:1;height:7px;border-radius:99px;border:1px solid var(--filet)}
.univers-c > b{font-size:.95rem;font-weight:600}
.univers-c .sous-ligne{display:block;font-size:.79rem;line-height:1.5;flex:1}
.univers-c .b,.univers-c .puce{margin-top:.2rem;justify-content:center;text-align:center}
@media(max-width:900px){.univers-grille{grid-template-columns:1fr}}

/* ── L'aperçu de l'étiquette ─────────────────────────────────────── */
.apercu-etiquette{display:flex;align-items:center;gap:.9rem;margin-top:1rem;
  padding:.85rem 1rem;border:1px dashed var(--filet);border-radius:var(--rayon);
  background:var(--creux)}
.apercu-etiquette-l{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--encre-3);font-weight:700}
.apercu-etiquette b{font-size:1.05rem;font-weight:600}

/* Le carré d'une étape porte son numéro tant qu'elle n'est pas faite : on
   voit alors l'ordre, pas seulement le reste à faire. */
.etape.reste .carre{color:var(--alerte);font-size:.72rem}
.etape > span:nth-child(2){min-width:14rem}

/* ── La miniature d'un thème ─────────────────────────────────────────
   Dessinée, pas photographiée : une capture vieillit dès qu'on retouche
   une couleur, celle-ci suit les jetons du thème sans qu'on y pense.
   Un chrome de navigateur, un en-tête, une bannière, trois produits :
   assez pour reconnaître un site en une seconde. */
.mini{position:relative;overflow:hidden;border:1px solid var(--filet);
  aspect-ratio:16/11;display:flex;flex-direction:column;
  box-shadow:0 1px 2px rgba(0,0,0,.05)}
.mini-barre{height:13px;display:flex;align-items:center;gap:3px;padding:0 6px;flex:0 0 auto}
.mini-barre i{width:4px;height:4px;border-radius:50%;opacity:.45}
.mini-tete{height:22px;display:flex;align-items:center;gap:5px;padding:0 8px;
  border-bottom:1px solid;flex:0 0 auto}
.mini-logo{width:11px;height:11px;flex:0 0 auto}
.mini-tete b{font-size:7px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.mini-menu{display:flex;gap:5px;margin-left:auto}
.mini-menu i{width:13px;height:3px;border-radius:2px}
.mini-tete em{width:22px;height:9px;flex:0 0 auto}
.mini-heros{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;
  gap:5px;padding:0 12px}
.mini-heros.ctr{align-items:center;text-align:center}
.mini-heros b{font-size:16px;font-weight:700;line-height:1}
.mini-heros i{display:block;width:56%;height:3px;border-radius:2px}
.mini-heros.ctr i{width:44%}
.mini-heros em{width:34px;height:10px}
.mini-grille{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,1fr);
  gap:5px;padding:7px 8px 8px}
.mini-grille > div{border:1px solid;padding:4px;display:flex;flex-direction:column;gap:3px}
.mini-grille i{display:block;width:100%;aspect-ratio:4/3}
.mini-grille u{display:block;height:2.5px;border-radius:2px;text-decoration:none;opacity:.75}
.mini-grille u.court{width:42%;opacity:1}
.mini-petite{max-width:118px;flex:0 0 118px;aspect-ratio:16/12}

/* ── La carte d'un thème dans la boutique ─────────────────────────── */
.th-grille{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.1rem}
.th-c{display:flex;flex-direction:column;gap:.7rem;padding:.85rem;
  border:1px solid var(--filet);border-radius:var(--rayon);background:var(--fond);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.th-c:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.07);
  border-color:color-mix(in srgb,var(--encre-3) 34%,var(--filet))}
.th-c.on{border-color:var(--vif);box-shadow:0 0 0 1px var(--vif)}
.th-haut{display:flex}
.th-t{display:flex;flex-direction:column;gap:.25rem;flex:1}
.th-t > b{font-size:1rem;font-weight:600}
.th-pour{font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--encre-3);font-weight:700}
.th-t .sous-ligne{font-size:.79rem;line-height:1.5;margin-top:.15rem}
.th-prix{margin-top:.3rem;font-size:.83rem;font-weight:600;color:var(--encre-2);
  font-variant-numeric:tabular-nums}
.th-pied{display:flex}
.th-pied .b,.th-pied .puce{flex:1;justify-content:center;text-align:center}
.puce-deja{color:#8a6d1f;background:#fbf2da;
  border-color:color-mix(in srgb,#c9a227 32%,var(--filet))}
.puce-deja::before{background:#c9a227}
.puce-neutre{color:var(--encre-3)}
.puce-neutre::before{background:var(--encre-3)}
@media(max-width:1000px){.th-grille{grid-template-columns:repeat(2,1fr)}}
@media(max-width:660px){.th-grille{grid-template-columns:1fr}}

/* ── La bibliothèque installée ───────────────────────────────────── */
.th-biblio{display:flex;flex-direction:column;gap:.6rem;margin-top:1rem}
.th-l{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;padding:.7rem;
  border:1px solid var(--filet);border-radius:var(--rayon);background:var(--fond)}
.th-l.on{border-color:var(--vif);background:var(--vif-fd)}
.th-l-t{flex:1;min-width:9rem;display:flex;flex-direction:column;gap:.15rem}
.th-l-t > b{font-size:.95rem;font-weight:600}
.th-l .actions{margin-left:auto}

/* ── Le bandeau du devis ─────────────────────────────────────────── */
.carte-devis{border-left:3px solid var(--vif)}
.devis-fort{margin:.75rem 0;font-size:.92rem;line-height:1.6;color:var(--encre)}
.devis-fort b{font-weight:600}

/* ── Le thème du moment, sur l'accueil ───────────────────────────── */
.univers-actuel{display:flex;align-items:center;gap:1rem;margin-top:1rem;flex-wrap:wrap}
.univers-actuel .mini{flex:0 0 190px;max-width:190px}
.univers-actuel-t{flex:1;min-width:12rem;display:flex;flex-direction:column;gap:.2rem}
.univers-actuel-t > b{font-size:1rem;font-weight:600}

/* Le prix d'un thème, dans la régie : un champ court, aligné à droite. */
.ed-prix{width:5.5rem;font:inherit;font-size:.9rem;text-align:right;
  padding:.5rem .6rem;border-radius:8px;border:1px solid var(--filet);
  background:var(--fond);color:var(--encre);font-variant-numeric:tabular-nums}
.ed-prix:focus{outline:none;border-color:var(--vif);box-shadow:0 0 0 3px var(--vif-fd)}

/* Le nom du thème installé, lisible d'un coup d'œil sur « Mon magasin ». */
.univers-nom{font-size:1.25rem;font-weight:600;letter-spacing:-.015em;line-height:1.2}
.univers-actuel-t .puce{align-self:flex-start;margin-top:.1rem}
.th-qui{font-size:.78rem;color:var(--encre-3);line-height:1.4}
#th-familles{margin-top:1rem}
.puce-mal{color:var(--alerte);background:var(--alerte-fd);
  border-color:color-mix(in srgb,var(--alerte) 34%,var(--filet))}
.puce-mal::before{background:var(--alerte)}

/* ── La carte de la boutique, et ses trois thèmes ────────────────────
   L'ancien cadre montrait « Aperçu protégé par mot de passe » : un
   rectangle gris qui ne montrait rien et faisait douter de tout le reste.
   On dessine maintenant les thèmes réellement installés, avec leurs
   couleurs et leur police — c'est plus juste, et c'est toujours là. */
.carte-boutique{display:flex;flex-direction:column;gap:1.1rem}
.boutique-tete{display:flex;align-items:flex-start;gap:1.2rem;flex-wrap:wrap}
.boutique-tete .boutique-info{flex:1;min-width:14rem}
.boutique-tete .actions{margin-left:auto}

.th-tete{display:flex;align-items:flex-end;gap:1rem;flex-wrap:wrap;
  padding-top:1rem;border-top:1px solid var(--filet)}
.th-tete-t{font-size:1rem;font-weight:600;letter-spacing:-.01em}
.th-tete-s{margin-top:.2rem;font-size:.82rem;line-height:1.5;color:var(--encre-2);
  max-width:46ch}
.th-tete .b{margin-left:auto;flex:0 0 auto}

.th-mes{display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem}
.th-v{display:flex;flex-direction:column;gap:.6rem;padding:.7rem;
  border:1px solid var(--filet);border-radius:var(--rayon);background:var(--fond);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.th-v:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.06);
  border-color:color-mix(in srgb,var(--encre-3) 32%,var(--filet))}
.th-v.on{border-color:var(--vif);box-shadow:0 0 0 1px var(--vif)}
.th-v .mini{aspect-ratio:16/12}
.th-v-b{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}
.th-v-b > b{font-size:.92rem;font-weight:600}
.th-v-b .puce{font-size:.72rem}
.th-v-b .b{width:100%;justify-content:center;text-align:center;padding:.55rem .7rem;
  font-size:.83rem}
@media(max-width:820px){.th-mes{grid-template-columns:1fr}}

/* Le pied de la colonne de gauche ne doit pas se mériter : il porte les
   deux gestes qu'on fait le plus souvent. On le colle en bas. */
.cote{display:flex;flex-direction:column}
.cote .bas{margin-top:auto;position:sticky;bottom:0;
  padding-top:.7rem;padding-bottom:.2rem;
  background:linear-gradient(to bottom,transparent,var(--creux) 38%)}

/* ══════════════════════════════════════════════════════════════════
   LA PAGE DES FILMS — comment refaire une démonstration filmée
   ══════════════════════════════════════════════════════════════════ */
.films-pas{list-style:none;counter-reset:pas;margin:18px 0 0;padding:0;
  display:grid;gap:20px}
.films-pas>li{counter-increment:pas;position:relative;padding-left:44px}
.films-pas>li::before{content:counter(pas);position:absolute;left:0;top:-2px;
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:var(--enc,#101614);color:#fff;font-weight:600;font-size:.86rem}
.films-pas>li>b{display:block;font-size:1rem}
.films-q{display:block;font-size:.86rem;color:var(--gris,#5c6b68);
  margin:2px 0 9px;line-height:1.5}
.films-cmd{display:flex;align-items:stretch;gap:0;border:1px solid var(--filet,#e3e6e4);
  border-radius:9px;overflow:hidden;background:#0f1513}
.films-cmd code{flex:1;min-width:0;overflow-x:auto;white-space:nowrap;
  padding:12px 14px;font:500 .84rem/1.5 'Spline Sans Mono',ui-monospace,monospace;
  color:#d9e6e0}
.films-cmd .films-copie{border:0;border-left:1px solid rgba(255,255,255,.14);
  border-radius:0;background:rgba(255,255,255,.06);color:#d9e6e0;flex-shrink:0;
  padding:0 16px;font-size:.8rem;cursor:pointer}
.films-cmd .films-copie:hover{background:rgba(255,255,255,.14)}
.films-note{font-size:.85rem;color:var(--gris,#5c6b68);margin-top:10px;line-height:1.55}

.films-etat{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;margin-top:16px}
.films-th h3{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gris,#5c6b68);margin-bottom:10px}
.films-l{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:baseline;
  padding:10px 12px;border:1px solid var(--filet,#e3e6e4);border-radius:9px;
  margin-bottom:8px;border-left-width:3px}
.films-l.bon{border-left-color:#1c6b41}
.films-l.mal{border-left-color:#b3392b;background:#fdf3f1}
.films-l b{font-size:.92rem;font-weight:600}
.films-l span{grid-column:1;font-size:.79rem;color:var(--gris,#5c6b68)}
.films-l em{grid-row:1;grid-column:2;font-style:normal;font-size:.82rem;
  font-variant-numeric:tabular-nums;color:var(--gris,#5c6b68)}
.films-voir{grid-row:2;grid-column:2;font-size:.79rem;text-decoration:underline;
  text-underline-offset:2px}

.films-tab{width:100%;border-collapse:collapse;margin-top:14px}
.films-tab th{text-align:left;vertical-align:top;width:34%;padding:12px 16px 12px 0;
  font-size:.9rem;font-weight:600;border-top:1px solid var(--filet,#e3e6e4)}
.films-tab td{vertical-align:top;padding:12px 0;font-size:.9rem;line-height:1.6;
  color:var(--gris,#5c6b68);border-top:1px solid var(--filet,#e3e6e4)}
.films-tab code,.films-note code,.carte p code{background:var(--doux,#f1f5f3);
  border-radius:5px;padding:1px 6px;
  font:500 .86em/1 'Spline Sans Mono',ui-monospace,monospace}
.films-err{margin-top:12px;padding:12px 14px;border-radius:9px;background:#0f1513;
  color:#ff9f92;font:500 .84rem/1.6 'Spline Sans Mono',ui-monospace,monospace;
  overflow-x:auto}
@media(max-width:640px){
  .films-tab th,.films-tab td{display:block;width:auto;padding:10px 0 0}
  .films-tab td{padding-bottom:12px;border-top:0}
}

/* L'avertissement « aucune clé Stripe » de la régie. Il n'apparaît que
   lorsque la caisse est réellement fermée : le reste du temps, il n'existe
   pas — un bandeau permanent finit par ne plus se lire. */
.cle-vide { margin: 0 0 14px; padding: 12px 15px; border-radius: 10px;
  font-size: .89rem; line-height: 1.6;
  color: var(--alerte); background: var(--alerte-fd);
  border: 1px solid color-mix(in srgb, var(--alerte) 34%, transparent); }
.cle-vide b { font-weight: 650; }

/* ── « AGENE travaille avec Stripe » ─────────────────────────────────
   La carte qui répond à la première question de tout le monde : où va mon
   argent, et qui voit ma carte. Quatre réponses courtes, en grille — pas
   un pavé, parce qu'un pavé sur ce sujet-là ne se lit pas. */
.carte-stripe .stripe-quoi { display: grid; gap: 18px 26px; margin: 18px 0 4px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.carte-stripe .stripe-quoi > div { padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 34%, transparent); }
/* ⚠️ « > div > b » et pas « b » : la règle attrapait aussi les mots en
   gras DANS les paragraphes, qui partaient chacun à la ligne — « PCI DSS
   niveau 1 » se retrouvait seul au milieu d'une phrase coupée en deux. */
.carte-stripe .stripe-quoi > div > b { display: block; margin-bottom: 5px;
  font-size: .92rem; font-weight: 650; }
.carte-stripe .stripe-quoi p { margin: 0; font-size: .87rem; line-height: 1.62;
  color: var(--doux, #5f6f71); }
.carte-stripe .stripe-note { margin-top: 16px; padding-top: 15px;
  border-top: 1px solid var(--filet, rgba(0,0,0,.09)); }

/* ── La boutique des thèmes, expliquée ───────────────────────────────
   Trois phrases numérotées avant la grille : « essayer coûte-t-il quelque
   chose », « est-ce que je perds mon contenu », « quand est-ce que je
   paie ». Sans elles, personne n'osait cliquer. */
.carte-mode .mode-pas { margin: 14px 0 0; padding: 0; list-style: none;
  counter-reset: pas; display: grid; gap: 12px; }
.carte-mode .mode-pas li { counter-increment: pas; position: relative;
  padding-left: 38px; font-size: .92rem; line-height: 1.62; }
.carte-mode .mode-pas li::before { content: counter(pas); position: absolute;
  left: 0; top: 1px; width: 25px; height: 25px; border-radius: 99px;
  display: grid; place-items: center; font-size: .78rem; font-weight: 650;
  background: var(--accent); color: #fff; }
.carte-mode .mode-att { margin-top: 18px; padding-top: 15px;
  border-top: 1px solid var(--filet, rgba(0,0,0,.09)); }

/* Le badge « vitrine » : ambre, comme tout ce qui demande un arbitrage. */
.puce-vitrine { color: var(--alerte); background: var(--alerte-fd); }
.puce-vitrine::before { background: var(--alerte); }
.th-vitrine { display: block; margin-top: 9px; padding: 9px 11px; border-radius: 9px;
  font-size: .79rem; line-height: 1.55;
  color: var(--alerte); background: var(--alerte-fd);
  border: 1px solid color-mix(in srgb, var(--alerte) 26%, transparent); }
.filtres-paiement { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   LE GUIDE EN IMAGES — deux fenêtres, sept étapes dessinées.

   Tout est en SVG à plat plutôt qu'en captures d'écran : le tableau de
   bord de Stripe change deux fois par an, une capture pèse deux cents
   kilo-octets, et celle qui a servi de modèle portait une clé publique
   en clair. Un rond rouge dit où appuyer, une flèche fait le curseur.
   ═══════════════════════════════════════════════════════════════════ */
.gd-fond { position: fixed; inset: 0; z-index: 300; overflow: auto;
  background: rgba(16, 20, 22, .58); backdrop-filter: blur(3px);
  padding: clamp(14px, 3vw, 40px); }
.gd-lot { display: grid; gap: 18px; max-width: 1160px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); align-items: start; }
.gd-f { background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32); }
.gd-t { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--filet, rgba(0,0,0,.09));
  position: sticky; top: 0; background: #fff; z-index: 2; }
.gd-t b { font-size: 1rem; }
.gd-x { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-size: 1.35rem; line-height: 1; color: var(--doux, #5f6f71); }
.gd-x:hover { background: var(--creux, #eef3f2); color: var(--encre, #111); }
.gd-in { padding: 16px; }
.gd-int { margin: 0 0 16px; font-size: .9rem; line-height: 1.62;
  color: var(--doux, #5f6f71); }
.gd-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px;
  background: var(--creux, #eef3f2); font-size: .85rem; line-height: 1.6; }
.gd-pas { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.gd-pas li { display: grid; grid-template-columns: 27px 1fr; gap: 11px; align-items: start; }
.gd-n { width: 25px; height: 25px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 650; }
.gd-c > b { display: block; font-size: .92rem; line-height: 1.4; }
.gd-c > p { margin: 4px 0 9px; font-size: .84rem; line-height: 1.6;
  color: var(--doux, #5f6f71); }

/* ── Les écrans dessinés ─────────────────────────────────────────── */
.gd-mk { display: block; width: 100%; height: auto; border-radius: 9px;
  border: 1px solid var(--filet, rgba(0,0,0,.1)); }
.gd-mk text { font: 500 8px/1 system-ui, -apple-system, sans-serif; }
.mk-fond { fill: #fff; stroke: rgba(0,0,0,.08); }
.mk-side, .mk-panneau { fill: #f6f7f9; }
.mk-panneau { stroke: rgba(0,0,0,.07); }
.mk-carte { fill: #fff; stroke: rgba(0,0,0,.1); }
.mk-champ { fill: #fff; stroke: rgba(0,0,0,.16); }
.mk-bar { fill: rgba(0,0,0,.09); }
.mk-bar-l { fill: rgba(0,0,0,.14); }
.mk-gris { fill: #eceef1; }
.mk-choisi { fill: #e3e7ec; }
.mk-t { fill: #6b7480; }
.mk-t-s { fill: #8d959f; }
.mk-t-a { fill: #1b2126; font-weight: 600; }
.mk-t-p { fill: #fff; font-weight: 600; }
.mk-souligne { fill: #635bff; }
/* Ce sur quoi il faut appuyer : plein, à la couleur de Stripe. */
.mk-vis { fill: #635bff; }
.mk-vis-c { fill: #f2f1ff; stroke: #635bff; stroke-width: 1.6; }
.mk-coche { fill: #635bff; }
.mk-coche-v { fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.mk-alerte { fill: #fdf1e0; }
.mk-t-alerte { fill: #9a6410; font-weight: 600; }
.mk-ok { fill: #e6f4ec; }
.mk-t-ok { fill: #1c6b45; font-weight: 600; }
.mk-rond-ok { fill: #1f8a5b; }
/* Le rond du clic, et le curseur. */
.mk-clic circle { fill: none; stroke: #d4382a; stroke-width: 2.2; }
.mk-clic .mk-clic-2 { stroke: rgba(212, 56, 42, .34); stroke-width: 2; }
.mk-cur { fill: #16181c; stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .mk-clic .mk-clic-2 { transform-box: fill-box; transform-origin: center;
    animation: gd-pouls 2.2s ease-in-out infinite; }
}
@keyframes gd-pouls { 0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: .15; transform: scale(1.22); } }


/* ═══════════════════════════════════════════════════════════════════
   Mentions légales — l'écran d'administration.

   Deux cartes : ce qu'elle doit remplir, puis ses quatre pages fermées.
   Les champs tiennent sur un écran parce qu'on n'y montre que ce qui la
   concerne ; le reste attend sous « Champs facultatifs ».
   ═══════════════════════════════════════════════════════════════════ */

/* ⚠️ Trois colonnes, pas quatre. Quatre tenaient en trois rangées au
   lieu de quatre — mais à 177 px de large les libellés se coupaient en
   deux, la pastille « obligatoire » tombait sur sa propre ligne et les
   champs ne s'alignaient plus. Sept pixels gagnés en hauteur, un
   formulaire illisible : mesuré, puis annulé. */
.lg-champs {
  display: grid; gap: 0 1rem; margin-top: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.lg-champs label.champ { margin-bottom: .7rem; }
/* Les notes d'aide serrées : à trois lignes chacune, onze champs ne
   tenaient plus sur un écran — et un formulaire qu'on ne voit pas en
   entier se remplit à moitié. */
.lg-champs .aide { font-size: .78rem; line-height: 1.42; margin-top: .22rem; }
.lg-champs label.champ > span:first-child {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
}
.lg-champs .champ-obl > span:first-child { color: var(--encre); }
/* « obligatoire » écrit en toutes lettres plutôt qu'une étoile : une
   étoile demande une légende, et la légende n'est jamais lue. */
.champ-etoile {
  font-style: normal; font-size: .66rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--encre-3); border: 1px solid var(--filet);
  padding: .05rem .34rem; border-radius: 999px;
}
.champ-manque .champ-etoile { color: var(--alerte); border-color: var(--alerte); }
.champ-manque input, .champ-manque select {
  border-color: var(--alerte); background: var(--alerte-fd);
}
/* Pour QUI ce champ est fait : plus lisible que la note du dessous,
   parce que c'est la première chose à savoir. */
.aide-pour { color: var(--encre-2) !important; font-weight: 500; }
.aide-lien { color: var(--vif) !important; text-decoration: underline; }

.lg-plus { margin: .1rem 0 .85rem; }
.lg-plus > summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline;
  gap: .6rem; flex-wrap: wrap; padding: .6rem .75rem; border-radius: 8px;
  border: 1px solid var(--filet); background: var(--creux);
  font-size: .88rem; font-weight: 500;
}
.lg-plus > summary::-webkit-details-marker { display: none; }
.lg-plus > summary::after { content: "＋"; margin-left: auto; color: var(--encre-3); }
.lg-plus[open] > summary::after { content: "−"; }
.lg-plus > summary em {
  font-style: normal; font-weight: 400; font-size: .82rem; color: var(--encre-3);
}
.lg-plus[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.lg-plus > .lg-champs {
  margin-top: 0; padding: 1rem .75rem .1rem;
  border: 1px solid var(--filet); border-top: 0;
  border-radius: 0 0 8px 8px;
}

.lg-manque {
  margin: .9rem 0 0; padding: .7rem .85rem; border-radius: 8px;
  background: var(--alerte-fd); color: var(--alerte);
  font-size: .88rem; line-height: 1.55;
}
.lg-manque code {
  font-family: var(--mono); font-size: .82em;
  background: color-mix(in srgb, var(--alerte) 12%, transparent);
  padding: .05rem .3rem; border-radius: 4px;
}

/* ── Les quatre pages ─────────────────────────────────────────────── */

.lg-pages { margin-top: 1rem; display: grid; gap: .55rem; }
.lg-page { border: 1px solid var(--filet); border-radius: var(--rayon);
  background: var(--carte); overflow: hidden; }
.lg-page.on { border-color: var(--encre-3); }
.lg-page-t {
  display: grid; width: 100%; text-align: left; cursor: pointer;
  grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: center;
  padding: .85rem 1rem; border: 0; background: transparent;
  font: inherit; color: var(--encre);
}
.lg-page-t:hover { background: var(--creux); }
.lg-page-n { grid-column: 1; font-weight: 600; font-size: .97rem; }
.lg-page-q { grid-column: 1; font-size: .85rem; color: var(--encre-2); }
.lg-page-c { grid-column: 1; font-size: .78rem; color: var(--encre-3);
  margin-top: .15rem; }
.lg-page-trou { color: var(--alerte); font-weight: 600; }
/* Le chevron. Il tourne, donc on sait si un clic ouvre ou referme. */
.lg-page-f {
  grid-column: 2; grid-row: 1 / span 3; width: 11px; height: 11px;
  border-right: 2px solid var(--encre-3); border-bottom: 2px solid var(--encre-3);
  transform: rotate(45deg); transition: transform .16s;
}
.lg-page.on .lg-page-f { transform: rotate(-135deg); }
.lg-page-c-in { padding: .2rem 1rem 1rem; border-top: 1px solid var(--filet); }
.lg-loi {
  margin: .8rem 0 .2rem; font-size: .78rem; line-height: 1.5;
  color: var(--encre-3); font-style: italic;
}

.lg-bloc { border-top: 1px solid var(--filet); padding: 1rem 0 .2rem; }
.lg-bloc h3 {
  margin: 0 0 .5rem; font-size: .95rem; font-weight: 600;
  letter-spacing: -.01em;
}
.lg-bloc textarea {
  display: block; width: 100%; box-sizing: border-box;
  font: inherit; font-size: .92rem; line-height: 1.65;
  color: var(--encre); background: var(--carte);
  border: 1px solid transparent; border-radius: 8px;
  padding: .5rem .6rem; margin-left: -.6rem; resize: none;
  overflow: hidden; min-height: 2.4rem;
  transition: border-color .12s, background .12s;
}
/* Au repos, le texte se lit. Au survol et à la frappe, il devient
   visiblement modifiable : c'est le seul indice dont elle a besoin pour
   comprendre que chaque ligne lui appartient. */
.lg-bloc textarea:hover { border-color: var(--filet); }
.lg-bloc textarea:focus {
  outline: none; border-color: var(--vif);
  box-shadow: 0 0 0 3px var(--vif-fd); background: var(--carte);
}
.lg-alerte {
  margin: 0 0 .5rem; font-size: .84rem; line-height: 1.5;
  color: var(--alerte); background: var(--alerte-fd);
  padding: .45rem .6rem; border-radius: 7px;
}

/* ═══════════════════════════════════════════════════════════════════
   Vos accès — les deux mots de passe, côte à côte et nommés.
   ═══════════════════════════════════════════════════════════════════ */
.ac-bloc { border-top: 1px solid var(--filet); padding-top: .9rem; margin-top: .9rem; }
.ac-bloc:first-of-type { border-top: 0; padding-top: .2rem; margin-top: .4rem; }
.ac-bloc h3 { margin: 0 0 .4rem; font-size: .92rem; font-weight: 600; }
.ac-form {
  margin: .5rem 0 .2rem; padding: .9rem .95rem .2rem;
  border: 1px solid var(--filet); border-radius: var(--rayon);
  background: var(--creux);
}
/* Le seul geste qui enlève le mot de passe de la boutique pour de bon.
   Encadré, à côté de celui qui ne fait que le remplacer : sans cela on
   croit que « en changer » finit par ouvrir la boutique. */
.ac-achat {
  margin-top: .9rem; padding: .85rem .95rem; border-radius: var(--rayon);
  background: var(--vif-fd); border: 1px solid color-mix(in srgb, var(--vif) 26%, transparent);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.ac-achat p { margin: 0; flex: 1 1 260px; font-size: .87rem; line-height: 1.55; }
.ac-achat .b { flex: none; }

/* ═══════════════════════════════════════════════════════════════════
   L'attente de la régie, dite à l'écran.

   Un « Chargement… » immobile sur trois cartes pendant quinze secondes,
   c'est une page cassée pour celui qui la regarde. Un rond qui tourne et
   un compteur qui monte, c'est du travail en cours.
   ═══════════════════════════════════════════════════════════════════ */
.chargement-long {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  color: var(--encre-2); font-size: .9rem;
}
.chargement-long b { font-variant-numeric: tabular-nums; color: var(--encre-3); font-weight: 500; }
.chargement-long em { font-style: normal; color: var(--encre-3); font-size: .84rem; }
.chargement-r {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--filet); border-top-color: var(--encre-3);
}
@media (prefers-reduced-motion: no-preference) {
  .chargement-r { animation: rg-tourne .8s linear infinite; }
}
@keyframes rg-tourne { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════
   L'AGENDA DE L'ESPACE ADMIN

   Un service se lit à l'heure : c'est elle qu'on cherche des yeux, pas le
   nom. Elle est donc en colonne fixe à gauche, en chiffres tabulaires,
   pendant que le reste se déroule. Les journées sont séparées par leur
   titre — « Aujourd'hui », puis « jeudi 18 septembre ».
   ═══════════════════════════════════════════════════════════════════════ */
.ag-jour{margin:22px 0 8px;font-size:.82rem;font-weight:700;
  letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.ag-jour:first-child{margin-top:4px}
.ag-j{display:flex;flex-direction:column;gap:1px;
  border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ag-e{display:flex;gap:14px;align-items:flex-start;
  padding:12px 14px;background:var(--fond,#fff)}
.ag-e + .ag-e{border-top:1px solid var(--line)}
.ag-h{flex:0 0 3.6em;font-variant-numeric:tabular-nums;
  font-size:1.02rem;font-weight:700;line-height:1.5}
.ag-c{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;
  min-width:0;font-size:.9rem}
.ag-c > b{font-weight:600}
.ag-ou{opacity:.72}
.ag-mot{flex:1 1 100%;opacity:.7;font-size:.86rem;line-height:1.45}
/* La pastille d'heure sur une commande, dans la liste des commandes. */
.puce-h{font-variant-numeric:tabular-nums;font-weight:700}

@media(max-width:560px){
  .ag-e{gap:10px;padding:11px 12px}
  .ag-h{flex-basis:3.1em;font-size:.95rem}
  .ag-c{font-size:.86rem}
}
