/* ============================================================================
 * MYCELL — composants de l'annuaire               build mycell-2026-10-04-2
 * Téléphone  (< 760 px)  : en-tête compact, onglets en bas, rail A–Z vertical
 * Tablette   (760–999)   : cartes sur 2 colonnes, onglets en bas
 * PC         (≥ 1000 px) : barre latérale fixe, 3 colonnes, fiche en tiroir
 * ========================================================================== */

/* ─── Structure ─── */
.appli { position: relative; z-index: 1; min-height: 100dvh; }
main { outline: none; padding: 0 var(--gout) calc(96px + env(safe-area-inset-bottom, 0px)); max-width: 1180px; margin: 0 auto; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--bleu); color: #fff; padding: 10px 14px; border-radius: 10px; }
.evitement:focus { left: 8px; }
.vue { animation: vue-entree .35s var(--ease) both; }
@keyframes vue-entree { from { opacity: .4; transform: translateY(6px); } }

/* ─── En-tête mobile ─── */
.tete {
  position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px;
  margin: 0 calc(-1 * var(--gout)); padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gout) 10px;
  background: var(--verre); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--ligne);
}
.marque { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marque img { filter: drop-shadow(0 4px 10px rgba(217,165,43,.35)); }
.marque b { font-family: var(--font-titre); font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.marque small { display: block; font-size: var(--t-xs); color: var(--ink2); font-weight: 600; line-height: 1.3; }
.marque.petite b { font-size: 18px; }
.tete .marque { margin-right: auto; }
.tete { gap: 8px; }
.icb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte); color: var(--ink2); }
.icb:hover { color: var(--accent-t); }
.pastille-demo { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--or-t); background: var(--or-fond); padding: 4px 9px; border-radius: 99px; }

/* ─── Barre latérale (PC) ─── */
.cote { display: none; }

/* ─── Bandeau d'état (démo, hors ligne) ─── */
.bandeau { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-s); font-size: var(--t-s); font-weight: 600; background: var(--or-fond); color: var(--or-t); display: flex; gap: 8px; align-items: center; }
.bandeau.ko { background: var(--ko-fond); color: var(--ko-t); }

/* ─── Accroche ─── */
.accroche { padding: 22px 0 14px; }
.accroche h1 { font-family: var(--font-titre); font-size: var(--t-xxl); font-weight: 850; letter-spacing: -.8px; line-height: 1.1; text-wrap: balance; }
.accroche h1 span { background: linear-gradient(120deg, var(--bleu), var(--lagon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chiffres { margin-top: 8px; color: var(--ink2); font-size: var(--t-m); max-width: 62ch; font-variant-numeric: tabular-nums; }
.chiffres b { color: var(--ink); }

/* ─── Recherche ─── */
.recherche {
  position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 6;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; height: 56px;
  background: var(--carte); border: 1px solid var(--ligne); border-radius: 18px; box-shadow: var(--ombre);
  transition: box-shadow .2s, border-color .2s;
}
.recherche:focus-within { border-color: var(--bleu2); box-shadow: 0 0 0 4px rgba(59,140,255,.16), var(--ombre); }
.recherche-ic { color: var(--ink3); display: grid; }
.recherche input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; outline: none; }
.recherche input::placeholder { color: var(--ink3); }
.recherche input::-webkit-search-cancel-button { display: none; }
.recherche-effacer { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--neutre-fond); color: var(--ink2); }
.recherche-kbd { display: none; font-family: var(--mono); font-size: 12px; color: var(--ink3); border: 1px solid var(--ligne); border-radius: 6px; padding: 1px 7px; margin-right: 6px; }

/* ─── Puces de catégories ─── */
.puces { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; margin: 0 calc(-1 * var(--gout)); padding-left: var(--gout); padding-right: var(--gout); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gout); }
.puces::-webkit-scrollbar { display: none; }
.puce {
  flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 99px; border: 1px solid var(--ligne); background: var(--carte);
  font-size: var(--t-s); font-weight: 650; color: var(--ink2); white-space: nowrap; transition: background .15s, color .15s, transform .15s;
}
.puce .ic { width: 17px; height: 17px; color: oklch(var(--av-tl) var(--av-tc) var(--h, 250)); }
.puce[aria-pressed="true"] { background: var(--ink); color: var(--fond); border-color: transparent; }
.puce[aria-pressed="true"] .ic { color: inherit; }
.puce:active { transform: scale(.96); }
.puce em { font-style: normal; font-size: 11.5px; opacity: .65; font-variant-numeric: tabular-nums; }

/* ─── Filtres ─── */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 4px; }
.filtres select {
  height: 38px; padding: 0 32px 0 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte); font-size: var(--t-s); font-weight: 650; color: var(--ink);
  appearance: none; -webkit-appearance: none; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat;
}
.bascule { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte); font-size: var(--t-s); font-weight: 650; color: var(--ink2); }
.bascule .point { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); }
.bascule[aria-pressed="true"] { border-color: var(--bleu2); color: var(--accent-t); background: rgba(59,140,255,.1); }
.bascule[aria-pressed="true"] .point { background: var(--vert); box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.segment { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 12px; background: var(--neutre-fond); border: 1px solid var(--ligne); }
.segment button { height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-size: var(--t-s); font-weight: 700; color: var(--ink2); }
.segment button[aria-pressed="true"] { background: var(--carte); color: var(--ink); box-shadow: 0 1px 4px rgba(15,45,90,.12); }

.resume { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; padding: 6px 0; font-size: var(--t-s); color: var(--ink2); font-variant-numeric: tabular-nums; }
.resume b { color: var(--ink); }
.lien { border: 0; background: none; color: var(--accent-t); font-weight: 700; font-size: inherit; padding: 4px 2px; }

/* ─── À la une ─── */
.une { margin: 8px 0 6px; }
.une-titre, .groupe-titre { display: flex; align-items: center; gap: 8px; font-family: var(--font-titre); font-weight: 800; font-size: var(--t-l); letter-spacing: -.2px; }
.une-titre .ic { color: var(--or); }
.une-rang { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding: 10px 2px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.une-rang::-webkit-scrollbar { display: none; }
.une-carte {
  scroll-snap-align: start; position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--r); border: 1px solid rgba(217,165,43,.35); background: var(--carte); box-shadow: var(--ombre);
}
.une-carte::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--or2), var(--or)); }
.une-carte .haut { display: flex; gap: 12px; align-items: center; min-width: 0; }
.une-carte p { font-size: var(--t-s); color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Liste et groupes ─── */
.liste { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.groupe { display: flex; flex-direction: column; gap: 8px; }
.groupe-titre { position: sticky; top: calc(124px + env(safe-area-inset-top, 0px)); z-index: 3; padding: 6px 2px; }
.groupe-titre .lettre { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 11px; background: var(--ink); color: var(--fond); font-size: 17px; }
.groupe-titre .compte { font-family: var(--font); font-size: var(--t-xs); font-weight: 700; color: var(--ink3); font-variant-numeric: tabular-nums; }
.groupe-titre .ic-cat { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: oklch(var(--av-l) var(--av-c) var(--h)); color: oklch(var(--av-tl) var(--av-tc) var(--h)); }
.grille { display: grid; grid-template-columns: 1fr; gap: 8px; }

.carte-c {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; text-align: left;
  padding: 12px 12px 12px 12px; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--carte); box-shadow: 0 1px 2px rgba(15,45,90,.04);
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.carte-c:hover { border-color: rgba(59,140,255,.35); box-shadow: var(--ombre); }
.carte-c:active { transform: scale(.985); }
.carte-c .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.carte-c .nom { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 750; font-size: var(--t-m); }
.carte-c .nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-c .sous { font-size: var(--t-s); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-c mark, .fiche mark { background: rgba(242,196,90,.38); color: inherit; border-radius: 3px; padding: 0 1px; }
.ouvrir { position: absolute; inset: 0; border: 0; background: transparent; border-radius: inherit; }
.carte-c .fav { position: relative; z-index: 1; }

.avatar {
  flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; overflow: hidden;
  background: oklch(var(--av-l) var(--av-c) var(--h, 250)); color: oklch(var(--av-tl) var(--av-tc) var(--h, 250));
  font-weight: 800; font-size: 16px; letter-spacing: -.3px;
}
.avatar .ic { width: 24px; height: 24px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grand { width: 68px; height: 68px; border-radius: 20px; }
.avatar.grand .ic { width: 32px; height: 32px; }

.etat { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; }
.etat i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.etat.ouvert { color: var(--ok-t); } .etat.ouvert i { background: var(--vert); }
.etat.bientot { color: var(--ambre); } .etat.bientot i { background: var(--or); }
.etat.ferme { color: var(--ko-t); } .etat.ferme i { background: var(--rouge); }
.etat.inconnu { color: var(--ink3); } .etat.inconnu i { background: var(--ink3); }
.ligne-etat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.badge.vitrine { color: var(--or-t); background: var(--or-fond); }
.badge.demo { color: var(--ink3); background: var(--neutre-fond); }

.fav { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink3); transition: transform .25s var(--ressort), color .15s; }
.fav:hover { color: var(--rouge); }
.fav[aria-pressed="true"] { color: var(--rouge); }
.fav[aria-pressed="true"] .ic { fill: currentColor; }
.fav.pop { transform: scale(1.25); }
.fav.icb { border: 1px solid var(--ligne); background: var(--carte); width: 40px; height: 40px; }
.fiche:focus { outline: none; }

.vide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 20px; border-radius: var(--r-l); border: 1px dashed var(--ligne); background: var(--verre); color: var(--ink2); }
.vide .ic { width: 34px; height: 34px; color: var(--ink3); }
.vide b { color: var(--ink); font-size: var(--t-l); }
.vide p { max-width: 42ch; font-size: var(--t-s); }

.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 14px; font-weight: 750; font-size: var(--t-m);
  color: #fff; background: linear-gradient(160deg, var(--bleu2), var(--bleu)); box-shadow: 0 6px 18px rgba(29,111,224,.28); transition: transform .15s, opacity .15s; }
.bt:active { transform: scale(.97); }
.bt:disabled { opacity: .55; cursor: default; }
.bt.second { color: var(--ink); background: var(--carte); border: 1px solid var(--ligne); box-shadow: none; }
.bt.or { color: #2A1B00; background: linear-gradient(160deg, var(--or2), var(--or)); box-shadow: 0 6px 18px rgba(217,165,43,.3); }
#plus { display: flex; justify-content: center; padding: 18px 0 4px; }

/* ─── Rail A–Z ─── */
.az { display: flex; gap: 2px; }
.az button { border: 0; background: transparent; font-weight: 800; color: var(--accent-t); font-variant-numeric: tabular-nums; }
.az button:disabled { color: var(--ink3); opacity: .45; cursor: default; }

/* ─── Tuiles de catégories ─── */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; min-height: 128px; text-align: left; border-radius: var(--r); border: 1px solid var(--ligne); background: var(--carte); box-shadow: var(--ombre); transition: transform .2s var(--ease); }
.tuile:hover { transform: translateY(-2px); }
.tuile .ic-cat { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: oklch(var(--av-l) var(--av-c) var(--h)); color: oklch(var(--av-tl) var(--av-tc) var(--h)); }
.tuile .ic-cat .ic { width: 24px; height: 24px; }
.tuile b { font-size: var(--t-m); line-height: 1.25; }
.tuile small { font-size: var(--t-xs); color: var(--ink2); font-weight: 650; font-variant-numeric: tabular-nums; margin-top: auto; }

/* ─── Espace pro ─── */
.offres { display: grid; grid-template-columns: 1fr; gap: 12px; }
.offre { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-l); border: 1px solid var(--ligne); background: var(--carte); box-shadow: var(--ombre); }
.offre.vedette { border-color: rgba(217,165,43,.55); box-shadow: 0 0 0 3px rgba(242,196,90,.18), var(--ombre); }
.offre .etiquette { position: absolute; top: 16px; right: 16px; }
.offre h3 { font-family: var(--font-titre); font-size: var(--t-l); font-weight: 800; }
.offre .prix { font-family: var(--font-titre); font-size: 28px; font-weight: 850; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.offre .prix small { font-size: var(--t-s); font-weight: 650; color: var(--ink2); letter-spacing: 0; }
.offre ul { list-style: none; display: grid; gap: 8px; }
.offre li { display: flex; gap: 8px; font-size: var(--t-s); color: var(--ink2); }
.offre li .ic { width: 17px; height: 17px; color: var(--lagon); margin-top: 1px; }
.titre2 { font-family: var(--font-titre); font-size: var(--t-xl); font-weight: 800; letter-spacing: -.4px; margin: 30px 0 12px; }
.etapes { list-style: none; counter-reset: etape; display: grid; gap: 10px; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 14px; border-radius: var(--r); background: var(--verre); border: 1px solid var(--ligne); }
.etapes li::before { content: counter(etape); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(150deg, var(--bleu2), var(--lagon)); color: #fff; font-weight: 800; }
.etapes b { font-size: var(--t-m); }
.etapes span { font-size: var(--t-s); color: var(--ink2); }

.formulaire { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 20px; border-radius: var(--r-l); background: var(--carte); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ > label, .champ > .legende { font-size: var(--t-s); font-weight: 700; color: var(--ink2); }
.champ > label em { font-style: normal; color: var(--ink3); font-weight: 600; }
.champ input, .champ select, .champ textarea { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--ligne); background: var(--carte2); font-size: 16px; }
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu2); box-shadow: 0 0 0 4px rgba(59,140,255,.15); }
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border-color: var(--rouge); }
.champ .msg { font-size: var(--t-xs); font-weight: 650; color: var(--ko-t); min-height: 0; }
.choix { display: grid; gap: 8px; }
.choix label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--ligne); background: var(--carte2); font-weight: 650; font-size: var(--t-s); cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--bleu2); background: rgba(59,140,255,.08); }
.choix input { accent-color: var(--bleu); width: 18px; height: 18px; }
.champ > label.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); font-weight: 500; color: var(--ink2); }
.consentement input { accent-color: var(--bleu); width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.pot-de-miel { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.envoye { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 10px; }
.envoye .rond { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--ok-fond); color: var(--ok-t); }
.envoye .rond .ic { width: 32px; height: 32px; }
.envoye b { font-size: var(--t-l); }
.envoye p { color: var(--ink2); font-size: var(--t-s); max-width: 44ch; }

/* ─── Onglets mobiles ─── */
.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--verre); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--ligne);
}
.onglets button, .cote-nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: transparent; color: var(--ink3); font-size: 11px; font-weight: 700; border-radius: 12px; }
.onglets button .ic { width: 23px; height: 23px; }
.onglets button[aria-current="page"], .cote-nav button[aria-current="page"] { color: var(--accent-t); }
.compteur { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--rouge); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ─── Fiche (feuille mobile / tiroir PC) ─── */
.voile { position: fixed; inset: 0; z-index: 20; background: rgba(8,16,32,.42); animation: fondu .25s both; }
@keyframes fondu { from { opacity: 0; } }
.fiche {
  /* Fiche d'un commerce : PLEIN ÉCRAN sur téléphone, tablette et ordinateur (le contenu reste centré, lisible) */
  position: fixed; z-index: 21; inset: 0; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px);
  background: var(--fond); background-image: var(--grad-ciel); box-shadow: var(--ombre-forte);
  animation: monte .32s var(--ease) both; overflow: hidden;
}
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.fiche-poignee { width: 42px; height: 5px; border-radius: 99px; background: var(--ink3); opacity: .45; margin: 8px auto 0; flex-shrink: 0; position: relative; touch-action: none; transition: opacity .2s, width .2s; }
/* Zone de prise large autour de la poignée (glisser vers le bas pour fermer) */
.fiche-poignee::before { content: ''; position: absolute; inset: -14px -90px -10px; }
.fiche:active > .fiche-poignee, .feuille:active > .fiche-poignee { opacity: .7; width: 54px; }
.fiche-defil { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px max(var(--gout), calc((100% - 860px) / 2)) calc(24px + env(safe-area-inset-bottom, 0px)); }
/* Fermer / partager / favori : toujours à portée de pouce, même en bas d'une longue vitrine */
.fiche-barre { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 8px; padding: 8px 0 6px; margin: 0 -4px; background: linear-gradient(var(--fond) 70%, transparent); }
.fiche-tete { display: flex; gap: 14px; align-items: center; padding: 6px 0 14px; }
.fiche-tete .corps { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fiche-tete h2 { font-family: var(--font-titre); font-size: var(--t-xl); font-weight: 850; letter-spacing: -.4px; line-height: 1.15; text-wrap: balance; }
.fiche-tete .sous { color: var(--ink2); font-size: var(--t-s); font-weight: 600; }
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 66px; padding: 8px 4px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--carte); color: var(--accent-t); font-size: 12px; font-weight: 750; text-decoration: none; text-align: center; }
.action .ic { width: 22px; height: 22px; }
.action.whatsapp { color: #128C4A; }
:root[data-theme="dark"] .action.whatsapp { color: #4ADE80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .action.whatsapp { color: #4ADE80; } }
/* thème sombre choisi, ou nuit en automatique (indépendant du téléphone) */
:root[data-theme="dark"] .action.whatsapp { color: #4ADE80; }
.action[aria-disabled="true"] { color: var(--ink3); opacity: .6; }
.onglets-fiche { display: flex; gap: 4px; padding: 3px; margin-bottom: 12px; border-radius: 13px; background: var(--neutre-fond); border: 1px solid var(--ligne); }
.onglets-fiche button { flex: 1; height: 36px; border: 0; border-radius: 10px; background: transparent; font-weight: 750; font-size: var(--t-s); color: var(--ink2); }
.onglets-fiche button[aria-selected="true"] { background: var(--carte); color: var(--ink); box-shadow: 0 1px 4px rgba(15,45,90,.12); }
.bloc { padding: 16px; border-radius: var(--r); background: var(--carte); border: 1px solid var(--ligne); margin-bottom: 10px; }
.bloc h3 { font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--ink3); margin-bottom: 10px; }
.bloc p { color: var(--ink2); font-size: var(--t-m); max-width: 65ch; }
.adresse { display: flex; gap: 10px; align-items: flex-start; }
.adresse .ic { color: var(--ink3); margin-top: 2px; }
.horaires { width: 100%; border-collapse: collapse; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.horaires td { padding: 7px 0; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.horaires tr:last-child td { border-bottom: 0; }
.horaires td:first-child { text-transform: capitalize; font-weight: 650; width: 40%; }
.horaires td:last-child { text-align: right; color: var(--ink2); }
.horaires tr.auj td { color: var(--accent-t); font-weight: 800; }
.horaires tr.ferme td:last-child { color: var(--ink3); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquettes span { font-size: var(--t-xs); font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--neutre-fond); color: var(--ink2); }
.produits { display: grid; grid-template-columns: 1fr; gap: 8px; }
.produit { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--carte); border: 1px solid var(--ligne); }
.produit .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.produit b { font-size: var(--t-m); }
.produit p { font-size: var(--t-s); color: var(--ink2); }
.produit .prix { font-weight: 850; font-size: var(--t-m); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.produit .prix small { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink3); }
.produit .droite { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.produit.indispo { opacity: .6; }
.mini-bt { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--carte2); color: var(--accent-t); font-weight: 750; font-size: 12.5px; }
.mini-bt:disabled { color: var(--ink3); cursor: default; }
.note-demo { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-xs); color: var(--ink2); padding: 10px 12px; border-radius: 12px; background: var(--neutre-fond); margin-bottom: 12px; }
.note-demo .ic { width: 16px; height: 16px; color: var(--ink3); }

/* ─── Toast ─── */
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--fond); font-weight: 650; font-size: var(--t-s); box-shadow: var(--ombre-forte); transition: opacity .25s, transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 40px 16px; text-align: center; }

/* Squelette de chargement */
.squelette { height: 74px; border-radius: var(--r); background: linear-gradient(90deg, var(--neutre-fond), var(--carte), var(--neutre-fond)); background-size: 200% 100%; animation: brille 1.3s linear infinite; }
@keyframes brille { to { background-position: -200% 0; } }

/* ═══ Téléphone : rail A–Z vertical ═══ */
@media (max-width: 759px) {
  .az { position: fixed; right: 2px; top: 50%; transform: translateY(-40%); z-index: 7; flex-direction: column; padding: 6px 2px; border-radius: 99px; background: var(--verre); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); touch-action: none; }
  .az button { width: 22px; height: clamp(14px, 2.35dvh, 20px); font-size: 10.5px; line-height: 1; padding: 0; }
  .liste.avec-rail { padding-right: 22px; }
  /* Filtres sur une seule ligne défilante : les résultats restent visibles */
  .filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gout)); padding-left: var(--gout); padding-right: var(--gout); }
  .filtres::-webkit-scrollbar { display: none; }
  .filtres > * { flex-shrink: 0; }
  .segment { margin-left: 0; }
}

/* ═══ Tablette ═══ */
@media (min-width: 760px) {
  :root { --gout: 24px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .produits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formulaire { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px; }
  .formulaire .large { grid-column: 1 / -1; }
  .az { flex-wrap: wrap; padding: 6px 0 2px; }
  .az button { min-width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
  .az button:not(:disabled):hover { background: rgba(59,140,255,.12); }
  .recherche-kbd { display: inline-block; }
  /* A–Z : la lettre dans une colonne à gauche, pas sur une ligne à elle seule */
  .groupe.g-lettre { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; }
  .groupe.g-lettre .groupe-titre { flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; }
}

/* ═══ PC : barre latérale ═══ */
@media (min-width: 1000px) {
  .appli { display: grid; grid-template-columns: 272px minmax(0, 1fr); }
  .tete, .onglets { display: none; }
  main { width: 100%; padding: 12px 32px 48px; }
  .cote {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: 22px 16px; border-right: 1px solid var(--ligne); background: var(--verre); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .cote .marque { padding: 0 8px 14px; }
  .cote-nav { display: flex; flex-direction: column; gap: 2px; }
  .cote-nav button { flex-direction: row; gap: 12px; padding: 10px 12px; font-size: var(--t-m); color: var(--ink2); }
  .cote-nav button:hover { background: var(--neutre-fond); }
  .cote-nav button[aria-current="page"] { background: rgba(59,140,255,.12); }
  .cote-nav .compteur { position: static; margin-left: auto; }
  .cote-titre { margin: 16px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink3); }
  .cote-cats { display: flex; flex-direction: column; gap: 1px; }
  .cote-cats button { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: var(--t-s); font-weight: 600; color: var(--ink2); }
  .cote-cats button .ic { width: 18px; height: 18px; color: oklch(var(--av-tl) var(--av-tc) var(--h)); }
  .cote-cats button em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
  .cote-cats button:hover { background: var(--neutre-fond); }
  .cote-cats button[aria-pressed="true"] { background: var(--carte); color: var(--ink); box-shadow: 0 1px 4px rgba(15,45,90,.1); }
  .cote-pied { margin-top: auto; padding-top: 14px; }
  .bt-theme { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--carte); font-size: var(--t-s); font-weight: 650; color: var(--ink2); }
  .recherche { top: 12px; }
  .groupe-titre { top: 76px; }
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toast { bottom: 28px; left: calc(50% + 136px); }
  /* Fiche plein écran, contenu centré (860 px) */
  .fiche-poignee { display: none; }
  .fiche-defil { padding-top: 16px; }
}
@media (min-width: 1000px) and (max-width: 1199px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─── Numéros MyCell (C0001 client, E0001 entreprise) ─── */
.numero-puce { display: inline-flex; align-items: center; gap: 5px; font: 700 12.5px/1 var(--mono); letter-spacing: .6px; color: var(--ink2, var(--ink)); background: var(--neutre-fond); border: 1px solid transparent; border-radius: 8px; padding: 6px 9px; min-height: 30px; cursor: pointer; }
.numero-puce svg { width: 14px; height: 14px; opacity: .7; }
.numero-puce:hover { border-color: var(--bleu); }
.numero-puce:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.numero-puce.statique { cursor: default; min-height: 0; padding: 3px 7px; font-size: 11.5px; vertical-align: 1px; }
.numero-puce.statique:hover { border-color: transparent; }

/* Application du commerçant hébergée par MyCell (0023) : bouton de la fiche et bandeau de l'Espace pro */
.bt-app { margin-bottom: 8px; background: linear-gradient(135deg, #E2552D, #C0352A); color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(192,53,42,.25); }
.bt-app:hover { filter: brightness(1.06); }
.bt-app .fleche { width: 18px; height: 18px; margin-left: 2px; opacity: .85; }
.bt-app small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: rgba(255,255,255,.22); border-radius: 8px; padding: 2px 7px; margin-left: 6px; }
.bt-app.inactif { opacity: .82; cursor: pointer; }
/* Ouverture de l'app : la galerie s'efface aux couleurs du réseau, les filaments partent du commerce */
.app-ouverture { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 42%, #1d4478, #071830 70%); color: #FFF6DC; opacity: 0; transition: opacity .28s ease; }
.app-ouverture.voir { opacity: 1; }
.app-ouverture p { font-size: var(--t-m, 17px); letter-spacing: .2px; }
.app-ouv-coeur { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.app-ouv-coeur .avatar { transform: scale(1.25); box-shadow: 0 0 0 3px rgba(242,181,68,.55), 0 12px 40px rgba(0,0,0,.45); }
.app-ouv-fils { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); fill: none; stroke: #F2B544; stroke-width: 1.6; stroke-linecap: round; }
.app-ouv-fils path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: app-fil .5s ease-out forwards; }
@keyframes app-fil { to { stroke-dashoffset: 0; opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .app-ouverture { transition: none; } .app-ouv-fils path { animation: none; stroke-dashoffset: 0; } }
.bandeau-app { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 14px; border-radius: 18px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, #E2552D 14%, var(--carte2)), var(--carte2)); border: 1px solid color-mix(in srgb, #E2552D 35%, transparent); }
.bandeau-app > svg:first-child { width: 26px; height: 26px; color: #C0352A; flex: 0 0 auto; }
.bandeau-app span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bandeau-app small { opacity: .75; }
.bandeau-app .fleche { width: 18px; height: 18px; opacity: .6; }

/* Créateur : MyCell Studio depuis Mon compte */
.studio-createur { background: linear-gradient(135deg, color-mix(in srgb, #2BD47A 14%, var(--carte)), var(--carte)); }
.studio-carte { display: flex; gap: 12px; align-items: flex-start; }
.studio-logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; font-size: 26px; background: var(--carte); box-shadow: 0 6px 16px -10px rgba(15,45,90,.5); }
.studio-carte h3 { margin: 0 0 2px; } .studio-carte p { margin: 0; color: var(--ink2); }
.studio-adresse { display: grid; gap: 6px; margin-top: 10px; }
.studio-adresse label { font-weight: 800; font-size: var(--t-s); }
.studio-adresse input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte); color: var(--ink); font-size: 16px; }

/* ─── Visite guidée animée (noyau/coach.js) ─── */
.coach { position: fixed; inset: 0; z-index: 2000; }
.coach-voile { position: absolute; inset: 0; }
.coach-projecteur { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(8,18,36,.62), 0 0 0 3px #2BD47A, 0 0 26px 6px rgba(43,212,122,.55);
  transition: left .45s cubic-bezier(.34,1.3,.64,1), top .45s cubic-bezier(.34,1.3,.64,1), width .45s ease, height .45s ease; pointer-events: none; animation: coach-pouls 2.2s ease-in-out infinite; }
@keyframes coach-pouls { 50% { box-shadow: 0 0 0 9999px rgba(8,18,36,.62), 0 0 0 5px #2BD47A, 0 0 36px 12px rgba(43,212,122,.45); } }
.coach-projecteur[style*="none"] ~ .coach-bulle { box-shadow: 0 0 0 9999px rgba(8,18,36,.62), 0 24px 60px -20px rgba(0,0,0,.6); }
.coach-bulle { position: fixed; display: grid; gap: 10px; padding: 18px 18px 14px; border-radius: 22px; background: var(--carte); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); outline: none;
  transition: left .45s cubic-bezier(.34,1.3,.64,1), top .45s cubic-bezier(.34,1.3,.64,1); }
.coach-bulle.entre .coach-corps { animation: coach-entre .5s cubic-bezier(.34,1.4,.64,1) both; }
@keyframes coach-entre { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.coach-mascotte { position: absolute; top: -22px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; background: linear-gradient(180deg, #2BD47A, #0E9F55); box-shadow: 0 8px 18px -8px rgba(14,159,85,.9); animation: coach-saute 2.4s ease-in-out infinite; }
@keyframes coach-saute { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-6px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
.coach-corps h2 { margin: 0 0 4px; font-family: var(--font-titre); font-size: 19px; font-weight: 850; letter-spacing: -.2px; }
.coach-corps p { margin: 0; line-height: 1.45; color: var(--ink2); }
.coach-corps .coach-emoji { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.coach-corps .bt { margin-top: 10px; }
.coach-pied { display: flex; align-items: center; gap: 8px; }
.coach-pied .lien { margin-right: auto; min-height: 44px; }
.coach-pied .bt { min-height: 40px; }
.coach-points { display: inline-flex; gap: 4px; order: -1; margin-right: 6px; }
.coach-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--ligne); transition: width .3s ease, background .3s ease; }
.coach-points i.on { width: 18px; border-radius: 99px; background: #2BD47A; }
@media (prefers-reduced-motion: reduce) { .coach-projecteur, .coach-bulle { transition: none; animation: none; } .coach-mascotte, .coach-bulle.entre .coach-corps { animation: none; } }

/* ═══ Écran de bienvenue propre à chaque app (affiche.json → « bienvenue ») ═══
   braise : snack (noir, rouge, étincelles) · couture : créatrice (crème, point de couture qui se dessine) · lagon */
.app-ouverture.bienvenue-app { gap: 10px; text-align: center; padding: 24px; background: var(--u-f, #0a0a0c); color: var(--u-t, #fff); }
.bienvenue-app .ba-scene { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-bottom: 10px; }
.bienvenue-app .ba-logo { position: relative; z-index: 2; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 18px 40px -10px rgba(0,0,0,.55); animation: ba-logo .7s cubic-bezier(.34,1.56,.64,1) both; }
.bienvenue-app .ba-halo { position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--u-a) 55%, transparent), transparent 70%); animation: ba-halo 1.6s ease-in-out infinite alternate; }
.bienvenue-app .ba-anneau { position: absolute; inset: 22px; border-radius: 50%; border: 3px solid var(--u-a); opacity: 0; animation: ba-anneau 1.4s ease-out infinite; }
.bienvenue-app .ba-anneau.a2 { animation-delay: .7s; }
.bienvenue-app .ba-point { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; fill: none; stroke: var(--u-a); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); }
.bienvenue-app .ba-point { animation: ba-coud 6s linear infinite; will-change: transform; }   /* rotation (compositeur) au lieu de stroke-dashoffset : plus de saccade */
.bienvenue-app .ba-point circle { stroke-dasharray: 4 3; animation: ba-texte .5s ease both; }
.bienvenue-app .ba-halo, .bienvenue-app .ba-anneau, .bienvenue-app .ba-parts i, .bienvenue-app .ba-barre i, .bienvenue-app .ba-logo { will-change: transform, opacity; }
.bienvenue-app .ba-parts { position: absolute; inset: -40px; z-index: 1; pointer-events: none; }
.bienvenue-app .ba-parts i { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 26px; opacity: 0; transform: translate(-50%, -50%);
  animation: ba-jaillit 1.4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i) * .07s); --a: calc(var(--i) * 45deg); }
.bienvenue-app .ba-titre { margin: 0; font-family: var(--font-titre); font-size: clamp(24px, 7vw, 34px); font-weight: 900; letter-spacing: -.01em; animation: ba-texte .6s ease .2s both; }
.bienvenue-app .ba-sous { margin: 0; max-width: 320px; font-weight: 600; opacity: .85; animation: ba-texte .6s ease .35s both; }
.bienvenue-app .ba-barre { width: 140px; height: 5px; margin-top: 14px; border-radius: 99px; background: color-mix(in srgb, var(--u-t, #fff) 18%, transparent); overflow: hidden; }
.bienvenue-app .ba-barre i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--u-a); animation: ba-charge 1s ease-in-out infinite; }
.bienvenue-app.style-braise .ba-logo { box-shadow: 0 0 0 4px #0a0a0c, 0 0 0 7px var(--u-a), 0 0 60px 6px color-mix(in srgb, var(--u-a) 60%, transparent); }
.bienvenue-app.style-braise .ba-titre { font-family: 'Impact', 'Arial Black', var(--font-titre); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.bienvenue-app.style-braise .ba-titre::after { content: ''; display: block; height: 4px; width: 60%; margin: 6px auto 0; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--u-a), #f0c33c, transparent); }
.bienvenue-app.style-couture { background: radial-gradient(circle at 50% 38%, #fff, var(--u-f, #fff7e8) 70%); }
.bienvenue-app.style-couture .ba-logo { box-shadow: 0 0 0 6px #fff, 0 16px 34px -10px rgba(120,70,40,.4); }
.bienvenue-app.style-couture .ba-titre { color: var(--u-a); font-style: italic; }
.bienvenue-app.style-lagon { background: linear-gradient(160deg, #0e7490, #22d3ee); color: #fff; }
@keyframes ba-logo { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes ba-halo { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
@keyframes ba-anneau { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
@keyframes ba-coud { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@keyframes ba-jaillit { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) rotate(calc(-1 * var(--a))) scale(.4); }
  35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-120px) rotate(calc(-1 * var(--a))) scale(1.1); } }
@keyframes ba-texte { from { opacity: 0; transform: translateY(10px); } }
@keyframes ba-charge { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .bienvenue-app *, .bienvenue-app *::after { animation: none !important; } .ba-parts { display: none; } }

/* ─── Recherche dans la barre du haut (téléphone et tablette) ─── */
.tete-recherche { flex: 1; min-width: 0; display: flex; }
.recherche-en-haut .tete .marque { margin-right: 0; flex-shrink: 0; }
.recherche-en-haut .tete .marque span { display: none; }
.recherche-en-haut .tete .icb { width: 38px; height: 38px; flex-shrink: 0; }
.recherche-en-haut .rail-recherche { display: none; }
.tete-recherche .recherche { position: static; flex: 1; min-width: 0; height: 42px; gap: 6px; padding: 0 4px 0 11px; border-radius: 14px; box-shadow: none; }
.tete-recherche .recherche input { font-size: 15px; }
.tete-recherche .recherche-ic .ic { width: 17px; height: 17px; }
.tete-recherche .bt-filtres { height: 34px; padding: 0 8px; border-radius: 10px; }
.tete-recherche .bt-filtres span { display: none; }
.tete-recherche .recherche-effacer { width: 30px; height: 30px; }
@media (max-width: 430px) { .recherche-en-haut .pastille-demo { display: none; } }

/* ═══ Barre du bas en couleur + lanceur d'apps (build mycell-2026-10-12-1) ═══
   Chaque onglet : un émoji sur une pastille teintée (--h) → on se repère d'un coup d'œil.
   L'onglet actif : pastille pleine et saut léger. « Apps » au centre : bulle irisée. */
.nav-emo { position: relative; display: grid; place-items: center; width: 34px; height: 30px; border-radius: 11px; font-size: 19px; line-height: 1;
  background: oklch(.95 .045 var(--h)); box-shadow: inset 0 0 0 1px oklch(.86 .07 var(--h) / .7); transition: transform .25s var(--ressort), background .2s; }
.onglets button span:not(.nav-emo):not(.compteur), .cote-nav button span:not(.nav-emo):not(.compteur) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.onglets button[aria-current="page"] .nav-emo, .cote-nav button[aria-current="page"] .nav-emo { background: linear-gradient(160deg, oklch(.83 .13 var(--h)), oklch(.68 .17 var(--h))); box-shadow: 0 6px 14px -6px oklch(.6 .18 var(--h)); transform: translateY(-2px) scale(1.06); }
.onglets button[aria-current="page"] { color: oklch(.48 .14 var(--h, 250)); }
.onglets button:has(.nav-emo) { --h: 250; }
.onglets button:active .nav-emo { transform: scale(.9); }
.nav-apps .nav-emo { width: 44px; height: 44px; margin-top: -16px; border-radius: 50%; font-size: 22px; border: 3px solid var(--fond);
  background: conic-gradient(from 210deg, #FF7A59, #FF4FA3, #8B5CF6, #3B8CFF, #14B8A6, #F2C45A, #FF7A59); box-shadow: 0 10px 22px -8px rgba(139, 92, 246, .7); animation: nav-irise 6s linear infinite; }
@keyframes nav-irise { to { filter: hue-rotate(360deg); } }
.nav-apps { color: var(--ink2) !important; }
html[data-operation] .nav-apps .nav-emo::after { content: ''; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #F2C45A; border: 2px solid var(--fond); }
html[data-theme="dark"] .nav-emo { background: oklch(.32 .06 var(--h)); box-shadow: inset 0 0 0 1px oklch(.45 .08 var(--h) / .6); }
html[data-theme="dark"] .onglets button[aria-current="page"] { color: oklch(.82 .12 var(--h, 250)); }
/* Lanceur : grille d'icônes façon écran d'accueil */
.feuille.feuille-apps { background: linear-gradient(180deg, color-mix(in srgb, #8B5CF6 10%, var(--fond)), var(--fond) 220px); }
.apps-sous { margin: -4px 0 14px; color: var(--ink3); font-weight: 650; }
.apps-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; padding-bottom: 8px; }
.app-tuile { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; color: var(--ink); text-align: center; text-decoration: none; font: inherit; cursor: pointer;
  animation: app-pop .45s var(--ressort) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes app-pop { from { opacity: 0; transform: translateY(14px) scale(.8); } }
.app-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 32px; overflow: hidden;
  background: linear-gradient(160deg, oklch(.9 .09 var(--h)), oklch(.72 .16 var(--h))); box-shadow: 0 10px 20px -10px oklch(.55 .18 var(--h)), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .2s var(--ressort); }
.app-tuile[data-op] .app-ic { background: linear-gradient(150deg, var(--o1), var(--o2)); }
.app-ic > * { width: 100%; height: 100%; }
.app-tuile:active .app-ic { transform: scale(.9); }
.app-tuile:hover .app-ic { transform: translateY(-2px); }
.app-tuile b { font-size: 12.5px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-tuile small { font-size: 10.5px; color: var(--ink3); line-height: 1.2; }
/* Mes apps : catalogue en mode « choisir » (✓ gardée, + à ajouter) */
.app-tuile[data-garder] { position: relative; }
.app-tuile[data-garder] .app-ic { opacity: .55; filter: saturate(.6); transition: opacity .2s, filter .2s, transform .2s var(--ressort); }
.app-tuile.gardee .app-ic { opacity: 1; filter: none; }
.app-garde { position: absolute; top: 0; right: calc(50% - 40px); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 900;
  background: var(--carte); color: var(--ink2); border: 2px solid var(--ligne); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.app-tuile.gardee .app-garde { background: #16A34A; color: #fff; border-color: #fff; }
.app-ajout .app-ic { background: linear-gradient(160deg, oklch(.95 .03 var(--h)), oklch(.85 .08 var(--h))); color: oklch(.45 .15 var(--h)); font-weight: 800; }
/* PC : les apps dans la colonne de gauche */
.cote-apps { display: none; }
@media (min-width: 1000px) {
  .cote-apps { display: block; }
  .cote-apps-liste { display: flex; flex-direction: column; gap: 2px; }
  .cote-apps .app-tuile { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; align-items: center; column-gap: 12px; row-gap: 0; padding: 7px 12px; border-radius: 12px; text-align: left; animation: none; }
  .cote-apps .app-tuile:hover { background: var(--neutre-fond); }
  .cote-apps .app-ic { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 11px; font-size: 18px; box-shadow: 0 4px 10px -6px oklch(.55 .18 var(--h)); }
  .cote-apps .app-tuile b { font-size: var(--t-s); -webkit-line-clamp: 1; }
  .cote-apps .app-tuile small { font-size: 11px; }
  .cote-nav .nav-apps { display: none; }
  .cote-nav .nav-emo { width: 32px; height: 28px; font-size: 17px; }
}
/* Rond de l'opération à thème (Rentrée, Noël…) en tête des stories */
.story-op .story-rond { background: conic-gradient(from 180deg, var(--o1), var(--o2), var(--o1)); animation: op-pulse 2.4s ease-in-out infinite; }
.story-op .so-emo { position: relative; font-size: 30px; animation: dv-flotte 3s ease-in-out infinite; }
@keyframes op-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--o2) 25%, transparent); } }
@keyframes dv-flotte { 50% { transform: translateY(-4px) rotate(6deg); } }
html[data-mouvement="reduit"] .nav-apps .nav-emo, html[data-mouvement="reduit"] .app-tuile, html[data-mouvement="reduit"] .story-op .story-rond, html[data-mouvement="reduit"] .story-op .so-emo { animation: none; }
@media (prefers-reduced-motion: reduce) { .nav-apps .nav-emo, .app-tuile, .story-op .story-rond, .story-op .so-emo { animation: none; } }
