/* ═══════════════════════════════════════════════════════════════════════════
   BoothApp — home.css : ce qui n'existe QUE sur la page d'accueil.

   Se charge après theme.css, dont il réutilise tous les jetons. Rien ici ne
   doit être recopié dans une autre page : si un bloc devient commun à deux
   pages, il déménage dans theme.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────
   HERO — texte à gauche, produit à droite, tirage qui déborde du cadre.

   L'ancienne version centrait un titre de trois lignes et poussait la capture
   à 830 px : le produit n'existait pas au premier écran. Ici la borne est
   visible tout de suite, et le tirage qui dépasse du cadre dit le métier
   avant la première phrase.
   ─────────────────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: clamp(36px, 5vw, 66px) 0 clamp(48px, 6.4vw, 88px); overflow: hidden; }

.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 780px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 50% at 78% 34%, color-mix(in srgb, var(--accent) 17%, transparent) 0%, transparent 72%),
    radial-gradient(46% 46% at 8% 4%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 70%);
  opacity: 0;   /* en clair, le hero reste blanc */
}
/* Le sombre garde un souffle de couleur : sans lui, le titre est posé à plat
   sur du noir. Sur blanc au contraire, la nappe teintait toute la page. */
:root[data-theme="dark"] .hero-glow { opacity: .5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-glow { opacity: .5; }
}

/* Grain : casse le côté « aplat vectoriel » sans ajouter d'image. */
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .hero-grain { mix-blend-mode: screen; opacity: .28; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-grain { mix-blend-mode: screen; opacity: .28; }
}

.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(33px, 3.95vw, 50px);
  letter-spacing: -0.04em;
}
.hero h1 em { font-style: normal; color: var(--accent-deep); }

.hero-lead {
  margin-top: 22px; max-width: 47ch;
  font-size: clamp(16.5px, 1.25vw, 18.5px); color: var(--ink-soft);
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hero-facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-faint); font-weight: 500; }
.hero-facts svg { width: 14px; height: 14px; fill: var(--yes); flex: none; }
.hero-fact-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); border-bottom: 1px solid var(--line-firm); padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-fact-link:hover { color: var(--accent-deep); border-color: var(--accent); }
.hero-fact-link svg { width: 14px; height: 14px; fill: var(--yes); flex: none; }

/* Le cadre de borne : bezel sombre dans les deux thèmes — c'est un objet
   physique, pas une surface de l'interface, et il doit le rester en clair. */
.hero-stage { position: relative; }
.booth-frame {
  position: relative; border-radius: 22px; padding: 11px;
  background: linear-gradient(160deg, #2b2f33, #101214 62%);
  box-shadow: var(--shadow-lg);
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg) rotate(.4deg);
  transform-origin: left center;
}
.booth-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, transparent 34%, transparent 66%, rgba(255,255,255,.07) 100%);
}
.booth-frame img { border-radius: 13px; width: 100%; height: auto; }
.booth-foot {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  width: 96px; height: 5px; border-radius: 0 0 6px 6px; background: #241d1c;
}

/* Le tirage qui sort de l'imprimante — signature graphique de la page. */
.printout {
  position: absolute; z-index: 4; left: -76px; bottom: -54px;
  width: 112px; padding: 8px 8px 25px;
  background: #fff; border-radius: 4px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(23,17,15,.06);
  transform: rotate(-9deg);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.booth-frame:hover .printout { transform: rotate(-6deg) translateY(-8px); }
.printout i { display: block; border-radius: 2px; aspect-ratio: 4 / 3; background: var(--tone, #e8dcd6); }
.printout i + i { margin-top: 6px; }
.printout i:nth-child(1) { --tone: #f0c9c2; }
.printout i:nth-child(2) { --tone: #d8c6d4; }
.printout i:nth-child(3) { --tone: #e6d3bd; }
.printout b {
  position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
  font-family: var(--display); font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #17110f;
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .booth-frame { transform: none; }
  .printout { left: auto; right: -16px; bottom: -26px; width: 92px; }
}

/* Accroche courte sous le titre : la promesse d'usage avant le détail. */
.hero-claim {
  margin-top: 14px; font-family: var(--display); font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600; color: var(--ink-soft); letter-spacing: -0.02em;
}

/* Compatibilité matérielle affichée dès le premier écran : c'est la première
   question d'un prestataire qui a déjà un boîtier. */
.hero-gear {
  margin-top: 24px; padding: 12px 15px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.5;
}
.hero-gear b {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px;
}

/* Pastilles de modes posées sur la capture : les options se lisent sans
   avoir à descendre dans la page. */
.mode-pills {
  position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 7px;
}
.mode-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(16, 14, 20, .58); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.mode-pills span.on { background: var(--accent); border-color: transparent; }
.mode-pills svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 560px) {
  .mode-pills { gap: 5px; bottom: 10px; }
  .mode-pills span { padding: 5px 9px; font-size: 10.5px; }
}


/* ───────────────────────────────────────────────────────────────────────────
   TRIPTYQUE — capturer, personnaliser, partager.
   Trois verbes qui résument le produit avant que le détail commence.
   ─────────────────────────────────────────────────────────────────────────── */

.triptych-section { padding: clamp(44px, 5vw, 72px) 0 clamp(20px, 2vw, 30px); }
.triptych { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: clamp(24px, 3vw, 46px); }
.tri { text-align: center; }
.tri-ico {
  width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center;
  border-radius: 15px; background: var(--accent-tint); color: var(--accent-deep);
  border: 1px solid var(--accent-ring);
}
.tri-ico svg { width: 24px; height: 24px; fill: currentColor; }
.tri h3 { margin-top: 16px; font-size: clamp(20px, 1.9vw, 24px); }
.tri p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }


/* ───────────────────────────────────────────────────────────────────────────
   BANDE DE CONTEXTE
   ─────────────────────────────────────────────────────────────────────────── */

.usecases {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.usecases-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 26px; padding: 18px var(--gut);
  font-size: 14px; color: var(--ink-faint); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.usecases-in .sep { color: var(--accent); }


/* ───────────────────────────────────────────────────────────────────────────
   LOCAL ↔ CLOUD — le cœur du positionnement.

   Deux panneaux de même poids : ce qui tourne sur la borne sans rien, et ce
   qui existe en plus quand elle est connectée. La couture entre les deux
   porte le délai réel de propagation (~10 s), qui est l'argument.
   ─────────────────────────────────────────────────────────────────────────── */

.duo { margin-top: 52px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }

.duo-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--shadow-sm);
}
.duo-panel h3 { font-size: 22px; margin-top: 14px; }
.duo-panel > p { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }

.duo-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.duo-tag.local { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.duo-tag.cloud { background: var(--accent-tint); color: var(--accent-deep); border: 1px solid var(--accent-ring); }

.duo-list { margin-top: 20px; display: grid; gap: 11px; }
.duo-list li { list-style: none; display: flex; gap: 11px; font-size: 15px; color: var(--ink-soft); }
.duo-list b { color: var(--ink); font-weight: 600; }
.duo-list svg { width: 16px; height: 16px; fill: var(--yes); flex: none; margin-top: 4px; }

/* La couture : verticale sur grand écran, horizontale une fois empilé. */
.duo-seam { display: grid; place-items: center; padding: 0 clamp(14px, 2vw, 30px); }
.duo-seam-line { position: relative; width: 1px; flex: 1; height: 100%; background: repeating-linear-gradient(to bottom, var(--line-firm) 0 5px, transparent 5px 11px); }
.duo-seam-chip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--paper-deep); padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-firm); box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.duo-seam-chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-ring); } 50% { box-shadow: 0 0 0 7px transparent; } }

@media (max-width: 880px) {
  .duo { grid-template-columns: 1fr; }
  .duo-seam { padding: 26px 0; }
  .duo-seam-line { width: 100%; height: 1px; background: repeating-linear-gradient(to right, var(--line-firm) 0 5px, transparent 5px 11px); }
}


/* ───────────────────────────────────────────────────────────────────────────
   GRILLE DE CAPACITÉS — « plein de possibilités », montré plutôt qu'affirmé.
   ─────────────────────────────────────────────────────────────────────────── */

.caps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap { background: var(--surface); padding: 26px 24px; transition: background .18s ease; }
.cap:hover { background: var(--surface-2); }
.cap-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-tint); color: var(--accent-deep); }
.cap-ico svg { width: 18px; height: 18px; fill: currentColor; }
.cap h3 { margin-top: 15px; font-size: 16.5px; letter-spacing: -0.02em; }
.cap p { margin-top: 7px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }


/* ───────────────────────────────────────────────────────────────────────────
   ZOOMS — une capacité, un visuel, alternés.
   ─────────────────────────────────────────────────────────────────────────── */

.zoom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(34px, 5vw, 76px); align-items: center; }
.zoom + .zoom { margin-top: clamp(56px, 6.4vw, 92px); }
.zoom.flip .zoom-text { order: 2; }
.zoom h3 { font-size: clamp(24px, 2.7vw, 33px); margin-top: 15px; letter-spacing: -0.035em; }
.zoom-text > p { margin-top: 15px; color: var(--ink-soft); font-size: 16.5px; }

.checks { margin-top: 22px; display: grid; gap: 13px; }
.checks li { list-style: none; display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.checks b { color: var(--ink); font-weight: 600; }
.checks svg { width: 17px; height: 17px; fill: var(--accent); flex: none; margin-top: 4px; }

.note { margin-top: 20px; padding: 13px 16px; border-left: 2px solid var(--line-firm); font-size: 14px; color: var(--ink-faint); }

@media (max-width: 900px) {
  .zoom { grid-template-columns: 1fr; }
  .zoom.flip .zoom-text { order: 0; }
}



/* ───────────────────────────────────────────────────────────────────────────
   MAQUETTE D'ÉDITEUR

   Reproduit la disposition réelle : barre d'outils à gauche, toile au centre,
   calques à droite. Les cases photo montrent une vraie image plutôt qu'un
   rectangle vide — une case vide se lit comme un gabarit, pas comme un tirage.
   ─────────────────────────────────────────────────────────────────────────── */

.editor {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: grid; grid-template-columns: 46px 1fr 168px;
}
.editor-bar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.editor-bar b { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--ink); }
.editor-format {
  padding: 3px 9px; border-radius: 999px; background: var(--accent-tint);
  border: 1px solid var(--accent-ring); color: var(--accent-deep);
  font-size: 11px; font-weight: 700;
}
.editor-actions { margin-left: auto; display: flex; gap: 6px; }
.editor-actions i {
  font-style: normal; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 7px;
  border: 1px solid var(--line-firm); color: var(--ink-soft); background: var(--surface);
}
.editor-actions i.save { background: var(--accent); border-color: var(--accent); color: #fff; }

.editor-tools {
  border-right: 1px solid var(--line); background: var(--surface-2);
  padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.editor-tools span {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  color: var(--ink-faint);
}
.editor-tools span.on { background: var(--accent); color: #fff; }
.editor-tools svg { width: 15px; height: 15px; fill: currentColor; }

.editor-canvas {
  padding: 22px 18px; display: grid; place-items: center;
  background:
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25%, transparent 75%, var(--surface-2) 75%) 0 0 / 14px 14px,
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25%, transparent 75%, var(--surface-2) 75%) 7px 7px / 14px 14px,
    var(--surface);
}
.editor-sheet {
  width: min(100%, 150px); background: #fff; border-radius: 3px;
  padding: 7px 7px 34px; box-shadow: var(--shadow-md); position: relative;
}
/* Cadrages différents d'une même photo : trois prises d'une même session. */
.editor-slot {
  aspect-ratio: 4 / 3; border-radius: 2px; position: relative;
  background-image: url("/hero-app.webp"); background-size: 260% auto; background-repeat: no-repeat;
}
.editor-slot.s1 { background-position: 20% 46%; }
.editor-slot.s2 { background-position: 64% 38%; }
.editor-slot.s3 { background-position: 40% 88%; }
.editor-slot + .editor-slot { margin-top: 5px; }
/* La case sélectionnée porte ses poignées, comme dans l'éditeur. */
.editor-slot.s1 { outline: 1.5px solid var(--accent); outline-offset: 1px; }
.editor-slot.s1 em {
  position: absolute; top: -17px; left: -2px; font-style: normal;
  background: var(--accent); color: #fff; font-size: 8px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px; white-space: nowrap;
}
.editor-slot.s1::after {
  content: ''; position: absolute; right: -4px; bottom: -4px; width: 6px; height: 6px;
  background: #fff; border: 1.5px solid var(--accent); border-radius: 1px;
}
.editor-sheet .cap-txt {
  position: absolute; left: 0; right: 0; bottom: 9px; text-align: center;
  font-family: var(--display); font-size: 11px; font-weight: 700; color: #17110f; line-height: 1.25;
}
.editor-sheet .cap-txt i {
  display: block; font-style: normal; font-family: var(--body);
  font-size: 6.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #8b807a; margin-top: 2px;
}

.editor-layers { border-left: 1px solid var(--line); padding: 12px 10px; background: var(--surface-2); }
.editor-layers b { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.editor-layers span {
  display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 7px;
  font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.editor-layers span em {
  font-style: normal; width: 14px; height: 14px; border-radius: 3px; flex: none;
  display: grid; place-items: center; font-size: 8px; font-weight: 800;
  border: 1px solid var(--line-firm); background: var(--surface); color: var(--ink-faint);
}
.editor-layers span.on { background: var(--accent-tint); color: var(--accent-deep); font-weight: 600; }
.editor-layers span.on em { border-color: var(--accent); background: var(--accent); color: #fff; }
.editor-layers .k-slot { background: repeating-linear-gradient(45deg, var(--line-firm) 0 3px, transparent 3px 6px); }
.editor-layers .k-bg { background: var(--line-firm); }

@media (max-width: 560px) {
  .editor { grid-template-columns: 40px 1fr; }
  .editor-layers { display: none; }
}

/* Fiche d'impression. */
.printcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(22px, 2.4vw, 32px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 2.4vw, 34px); align-items: center; }
.strip { width: 108px; background: #fff; border-radius: 4px; padding: 8px 8px 26px; box-shadow: var(--shadow-md), 0 0 0 1px rgba(23,17,15,.06); position: relative; transform: rotate(-2deg); }
.strip i { display: block; border-radius: 2px; aspect-ratio: 4 / 3; background: var(--tone, #e8dcd6); }
.strip i + i { margin-top: 6px; }
.strip i:nth-child(1) { --tone: #f0c9c2; }
.strip i:nth-child(2) { --tone: #d8c6d4; }
.strip i:nth-child(3) { --tone: #e6d3bd; }
.strip b { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #17110f; }

.meters { display: grid; gap: 14px; }
.meter-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }
.meter-row b { font-family: var(--display); font-size: 17px; color: var(--ink); font-weight: 700; }
.meter { height: 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter.ink span { background: var(--ink-faint); }
.queue { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 7px; }
.queue span { padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.queue span.hot { background: var(--accent-tint); border-color: var(--accent-ring); color: var(--accent-deep); }


/* ───────────────────────────────────────────────────────────────────────────
   ÉCRANS DE L'APP MOBILE

   Trois captures superposées, une seule visible. Le cluster incliné précédent
   les rendait toutes illisibles : trois écrans de 170 px penchés ne se lisent
   ni sur grand écran ni sur téléphone. Ici, un écran à taille lisible, les
   deux autres évoqués derrière, et le visiteur choisit.
   ─────────────────────────────────────────────────────────────────────────── */

.phone-show { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.phone-stage { position: relative; width: min(100%, 264px); }
/* Deux plans en retrait derrière l'appareil : la pile se devine sans
   qu'aucune capture illisible ne vienne encombrer. */
.phone-stage::before,
.phone-stage::after {
  content: ''; position: absolute; left: -7%; right: -7%; top: 4%; bottom: -4%;
  border-radius: 30px; background: var(--surface-2); border: 1px solid var(--line); z-index: 0;
}
.phone-stage::before { left: -14%; right: -14%; top: 8%; bottom: -8%; opacity: .5; }

.phone-stage .phone {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; border-radius: 28px; padding: 7px;
  background: linear-gradient(160deg, #2b2f33, #101214 62%);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1), visibility .45s;
}
.phone-stage .phone.is-active { opacity: 1; visibility: visible; transform: none; z-index: 2; }
/* Le premier reste dans le flux : c'est lui qui donne sa hauteur au bloc. */
.phone-stage .phone[data-i="0"] { position: relative; }
.phone-stage .phone img { border-radius: 22px; width: 100%; }

.phone-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.phone-tabs button {
  font-family: var(--body); font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.phone-tabs button:hover { color: var(--ink); border-color: var(--line-firm); }
.phone-tabs button[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

@media (max-width: 560px) {
  .phone-stage { width: min(72vw, 250px); }
  .phone-stage::before, .phone-stage::after { display: none; }
}


/* ───────────────────────────────────────────────────────────────────────────
   PORTAIL WEB

   Reconstitution en attendant les captures du portail réel : la barre latérale
   reprend ses rubriques exactes (Événements, Bornes, Clients, Galerie,
   Abonnement) et les chiffres sont ceux de l'application mobile, pour que les
   deux visuels racontent le même compte.
   ─────────────────────────────────────────────────────────────────────────── */

.browser {
  margin-top: 46px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-firm); background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.browser-bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-firm); flex: none; }
.browser-url {
  margin-left: 10px; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
}
.browser-url svg { width: 11px; height: 11px; fill: var(--yes); }

.browser img { display: block; width: 100%; height: auto; }

/* La capture du portail suit le thème de la PAGE, pas seulement celui du système :
   une capture claire sur un site passé en sombre est un rectangle blanc en pleine
   page, et l'inverse est pire. <picture media="(prefers-color-scheme: dark)"> ne
   voit que la préférence système et ignorerait le bouton de la barre — c'est donc
   le même mécanisme que les deux icônes de ce bouton (theme.css, .theme-toggle),
   qui couvre les trois états : clair, sombre système, sombre choisi.
   Les deux fichiers ont exactement les mêmes dimensions, sinon le cadre du
   navigateur saute d'une hauteur à l'autre quand on bascule le thème. */
.browser .shot-dark { display: none; }
:root[data-theme="dark"] .browser .shot-light { display: none; }
:root[data-theme="dark"] .browser .shot-dark  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .browser .shot-light { display: none; }
  :root:not([data-theme="light"]) .browser .shot-dark  { display: block; }
}

.portal-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.portal-grid h3 { font-size: 17px; }
.portal-grid h3::before { content: ''; display: block; width: 22px; height: 2px; background: var(--accent); margin-bottom: 11px; }
.portal-grid p { margin-top: 7px; font-size: 14.5px; color: var(--ink-soft); }


