/* ==========================================================================
   App BEMY : ce qui s'ajoute au design d'Andy & Co (chargé après vitrine.css).
   - cartes produit en carrousel : photos du lot qui défilent (vue d'ensemble,
     modèles avec leur nom, mises en scène), points de position, « 9 modèles » ;
   - un ou deux produits par ligne sur téléphone ;
   - Produits : Catégories ou Thèmes ;
   - fiche produit : galerie, lignes du catalogue, grille des modèles, photo en grand.
   ========================================================================== */

/* ---------- Carrousel d'une carte ---------- */
.pcard-tile, .hcard-tile, .mini-tile { isolation: isolate; }
/* rangée Nouveautés : la photo reste dans sa tuile carrée (le « + » se place par rapport à la carte) */
.tile-box { position: relative; display: block; width: 100%; height: 100%; }
.pc-car, .pc-one { position: absolute; inset: 0; display: block; }
.pc-one img, .pc-slide img { width: 100%; height: 100%; object-fit: contain; padding: 0; display: block; }
.pc-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
/* rangées qui défilent déjà (accueil) et petites vignettes : les photos changent en fondu, sans glissement */
.pc-car.is-fondu .pc-track { display: block; position: relative; overflow: hidden; }
.pc-car.is-fondu .pc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.pc-car.is-fondu .pc-slide.is-on { opacity: 1; z-index: 1; }
/* nom du modèle, discret, sur sa photo */
.pc-label {
  position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); z-index: 2;
  max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.pc-dots { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); z-index: 3; display: flex; gap: 4px; pointer-events: none; }
.pc-dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--ink); opacity: 0.22; transition: opacity 0.2s, width 0.2s; }
.pc-dots i.on { opacity: 0.85; width: 12px; }
/* « 9 modèles » */
.pc-count {
  position: absolute; top: 0; right: 0; z-index: 3; padding: 4px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap;
}
.pcard-tile .badge-new, .hcard-tile .badge-new { z-index: 3; }
.pcard-tile .tag-stock, .hcard-tile .tag-stock { z-index: 3; }
.hcard-tile .chip-qty { z-index: 3; }
.hcard-tile .round-btn.on-tile { z-index: 4; }
.pcard-tile.is-out .pc-slide img, .hcard-tile.is-out .pc-slide img, .pcard-tile.is-out .pc-one img, .hcard-tile.is-out .pc-one img { opacity: 0.45; filter: grayscale(1); }
.mini-tile .badge-stock { z-index: 3; }
/* Best-sellers de l'accueil : la vignette défile aussi */
.best-photo { position: relative; width: 64px; height: 64px; flex-shrink: 0; display: block; }
.best-photo .pc-dots, .mini-tile .pc-dots { display: none; }
.best-item .best-link { gap: 0; }

/* Longues listes : tranche suivante (chargée toute seule au défilement ; le bouton reste en secours) */
.plus-produits { width: 100%; margin-top: 6px; border-radius: 999px; }
@media (min-width: 768px) { .plus-produits { max-width: 420px; margin: 10px auto 0; display: flex; } }
/* Tailles d'un nom de produit (« T36-40 ») jamais coupées en fin de ligne */
.nw { white-space: nowrap; }

/* ---------- Un ou deux produits par ligne (téléphone) ---------- */
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.list-tools > .tabs { flex: 1; min-width: 0; }
.list-tools > p { margin: 0; }
.cols-switch { display: inline-flex; flex-shrink: 0; padding: 3px; border-radius: 999px; background: var(--soft); }
.cols-btn { width: 40px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.cols-btn.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(40, 20, 10, 0.12); }
.cols-btn::after { content: ''; position: absolute; }
@media (max-width: 767px) {
  .pgrid.is-1 { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .pgrid.is-1 .pcard-name .t-name { font-size: 16px; line-height: 21px; }
  .pgrid.is-1 .pc-label { font-size: 12px; bottom: 18px; padding: 3px 10px; }
  .pgrid.is-1 .pc-count { font-size: 12px; padding: 5px 10px; }
}
@media (min-width: 768px) {
  .cols-switch { display: none; }
  .list-tools { min-height: 0; }
  .list-tools:not(:has(.tabs)):not(:has(p)) { display: none; }
}

/* ---------- Produits : Catégories ou Thèmes ---------- */
.seg-vue { display: flex; padding: 4px; border-radius: 999px; background: var(--soft); }
.seg-vue-btn { flex: 1; min-height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.seg-vue-btn.is-on { background: var(--ink); color: #FFFFFF; box-shadow: 0 6px 16px var(--cta-shadow, rgba(40, 20, 10, 0.2)); }
.theme-tile .t-strong-14 { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 20px; }
@media (min-width: 768px) {
  .seg-vue { max-width: 420px; }
  .theme-tile .t-strong-14 { font-size: 19px; line-height: 23px; }
}
/* Thèmes de l'accueil : même carte que les sélections d'Andy & Co */
.sel-card img { object-fit: contain; }

/* ---------- Fiche produit ---------- */
.gal-car { position: relative; }
.gal-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { position: relative; flex: 0 0 100%; margin: 0; height: 420px; scroll-snap-align: start; scroll-snap-stop: always; }
.gal-zoom { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 22px 30px; border: 0; background: transparent; cursor: zoom-in; }
.gal-zoom img { width: 100%; height: 100%; object-fit: contain; }
.gal-label { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.gal-count { position: absolute; right: 16px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.gal-dots { bottom: 14px; }
.gal-dots i { width: 6px; height: 6px; }
.gal-dots i.on { width: 14px; }
.gal-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 4px 14px rgba(40, 20, 10, 0.14); align-items: center; justify-content: center; }
.gal-nav.is-prev { left: 12px; }
.gal-nav.is-next { right: 12px; }
.thumbs { overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex-shrink: 0; }
.lot-line { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: var(--red-soft); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 20px; }
.lot-line svg { flex-shrink: 0; color: var(--red); }
/* Calendrier, coffret : « Chaque calendrier contient 24 surprises » */
.lot-line.is-contenu { background: var(--soft); }
.details { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--soft); font-size: 15px; line-height: 21px; color: var(--ink); }
.details .t-muted-15 { font-size: 15px; }
.mod-sec { padding-top: 6px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.mod-item { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: zoom-in; }
.mod-img { width: 100%; aspect-ratio: 1 / 1; display: block; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mod-img img { width: 100%; height: 100%; object-fit: contain; }
.mod-nom { font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; line-height: 14px; text-align: center; text-transform: uppercase; min-height: 14px; }
.mod-mention { color: var(--ink-2); font-weight: 600; }
.logo-load { width: 220px; height: auto; }

/* ---------- Photo en grand ---------- */
.zoom { position: fixed; inset: 0; z-index: 70; background: #FFFFFF; animation: zoom-in 0.18s ease-out; }
.zoom-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.zoom-track::-webkit-scrollbar { display: none; }
.zoom-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(68px + var(--safe-t, 0px)) 14px calc(34px + var(--safe-b)); }
.zoom-slide img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; }
.zoom-slide figcaption { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); text-align: center; }
.zoom-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t, 0px)) 12px 10px 20px; pointer-events: none; }
.zoom-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.zoom-x { pointer-events: auto; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.zoom-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); align-items: center; justify-content: center; }
.zoom-nav.is-prev { left: 20px; }
.zoom-nav.is-next { right: 20px; }
@keyframes zoom-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- iPad et ordinateur ---------- */
@media (min-width: 768px) {
  .product-main .gal-slide { height: min(520px, 62vh); }
  .product-main .gal-zoom { padding: 56px 32px 34px; }
  .mod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
  .zoom-slide { padding: 72px 96px 40px; }
}
@media (hover: hover) and (min-width: 768px) {
  .gal-nav, .zoom-nav { display: flex; }
  .gal-nav:hover, .zoom-nav:hover, .zoom-x:hover { background: var(--line); }
  .mod-item:hover .mod-img { box-shadow: inset 0 0 0 2px var(--ink); }
  .pcard-tile:hover .pc-slide img, .hcard-tile:hover .pc-slide img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-car.is-fondu .pc-slide { transition: none; }
}

/* ---------- Bon de commande à l'écran : face de tour et ses produits ---------- */
.bon-view .bon-table tr.bon-face td { border-bottom: 0; padding-top: 0; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.bon-view .bon-table tr.bon-sub td { border-bottom: 0; padding-top: 1px; padding-bottom: 1px; font-size: 10.5px; color: var(--ink-2); }
.bon-view .bon-table tr.bon-sub td:nth-child(2) { padding-left: 12px; }
.bon-view .bon-table tr:has(+ tr.bon-face) td { border-bottom: 0; }
.bon-view .bon-table tr.bon-sub:not(:has(+ tr.bon-sub)) td { border-bottom: 1px solid var(--line); padding-bottom: 5px; }

/* ---------- Barre du bas à 5 onglets : Accueil, Produits, Thèmes, Panier, Compte (décision d'Andy du 30/11/2026) ----------
   Téléphone (360 à 430 px) : libellés entiers, onglet actif en pastille blanche (icône et libellé côte à côte). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-label { display: block; min-width: 0; }
@media (max-width: 1023px) {
  .tabbar.is-5 { padding: 6px 5px; gap: 0; }
  .tabbar.is-5 .nav-item { min-width: 0; gap: 3px; font-size: 11px; letter-spacing: 0; }
  .tabbar.is-5 .nav-item.is-active { flex: 1.62; gap: 6px; font-size: 13px; }
  .tabbar.is-5 .nav-item.is-active svg { width: 21px; height: 21px; flex-shrink: 0; }
  .tabbar.is-5 .nav-badge { right: calc(50% - 22px); }
}
@media (max-width: 374px) {
  .tabbar.is-5 { width: calc(100% - 20px); padding: 6px 4px; }
  .tabbar.is-5 .nav-item { font-size: 10.5px; }
  .tabbar.is-5 .nav-item.is-active { flex: 1.7; gap: 5px; font-size: 12.5px; }
  .tabbar.is-5 .nav-item.is-active svg { width: 19px; height: 19px; }
}
@media (min-width: 1024px) {
  #app.has-nav > .tabbar.is-5 { gap: 4px; }
  #app.has-nav .tabbar.is-5 .nav-item { height: 68px; }
}

/* ---------- Faces de tour : pastille, produits de la face (fiche, panier, validation) ---------- */
.pc-count.is-face { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.face-sec { padding-top: 4px; }
.face-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.face-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
a.face-item:active { background: var(--soft); }
.face-img { width: 56px; height: 56px; flex-shrink: 0; display: block; padding: 3px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.face-img img { width: 100%; height: 100%; object-fit: contain; }
.face-q { flex-shrink: 0; min-width: 52px; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.face-q strong { font-size: 17px; line-height: 20px; font-weight: 800; }
.face-mini { display: flex; flex-direction: column; gap: 3px; margin: 2px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--soft); font-size: 12.5px; line-height: 16px; color: var(--ink-2); }
.face-mini li { display: flex; gap: 8px; align-items: baseline; }
.face-mini-q { flex-shrink: 0; min-width: 24px; text-align: right; font-weight: 800; color: var(--ink); }
.face-recap { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (hover: hover) and (min-width: 768px) {
  a.face-item:hover { background: var(--line-soft); }
}

/* ---------- Écran de connexion ---------- */
/* « Appeler » reste caché tant qu'aucun numéro n'est réglé (admin > Paramètres > Numéro « Appeler ») :
   sans cette règle, le display: flex de .btn-dark-sm l'emportait sur l'attribut hidden (bouton qui n'appelait rien) */
#help-call[hidden] { display: none; }

/* ---------- Demande d'Andy du 01/12/2026 : app à toute la largeur de l'écran, moins de produits par ligne
   (5 au plus sur un grand écran, comme les sites de vêtements), petites photos sous chaque carte ---------- */
.pc-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: -2px; }
.pc-th {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; min-width: 0;
  padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); overflow: hidden; cursor: pointer;
}
.pc-th img { width: 100%; height: 100%; object-fit: contain; padding: 2px; display: block; }
.pc-th.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pc-th-plus { font-size: 11px; font-weight: 800; color: var(--muted); }
.pc-thumbs.is-vide .pc-th { visibility: hidden; }
.pcard-tile .pc-dots, .hcard-tile .pc-dots { display: none; }

@media (min-width: 768px) {
  :root { --app-w: 100%; --gutter: 40px; }
  .pad-home { max-width: none; }
  .product-main { max-width: 1440px; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
  .hscroll { gap: 22px; }
  .hcard { width: calc((100% - 2 * 22px) / 3); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .type-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .pc-th { border-radius: 8px; }
}
@media (min-width: 1024px) {
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hcard { width: calc((100% - 3 * 22px) / 4); }
}
@media (min-width: 1280px) {
  .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 24px; }
  .hscroll { gap: 24px; }
  .hcard { width: calc((100% - 4 * 24px) / 5); }
  .grid-3 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .grid-3 > :nth-child(n+6) { display: none; }
}

/* ==========================================================================
   Chantier du 02/12/2026 : filtre par catalogue, précommandes, magasins de
   livraison (un ou plusieurs pour le même panier), couvertures des catalogues.
   ========================================================================== */
.self-start { align-self: flex-start; }
.self-center { align-self: center; }

/* ---------- Filtre par catalogue : « Tous / Atout Beauté / Corsica… » (même bouton que l'ancien Catégories / Thèmes) ---------- */
.seg-cat { overflow-x: auto; scrollbar-width: none; gap: 2px; }
.seg-cat::-webkit-scrollbar { display: none; }
.seg-cat .seg-vue-btn { flex: 1 0 auto; padding: 0 14px; white-space: nowrap; border: 0; background: transparent; font-family: inherit; font-size: 14px; cursor: pointer; }
.seg-cat.is-deborde { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.seg-cat .seg-vue-btn.is-on { background: var(--ink); color: #FFFFFF; }
@media (min-width: 768px) { .seg-cat { max-width: none; width: fit-content; min-width: min(420px, 100%); } }

/* ---------- Précommande : étiquette, note de la fiche, panier, commandes ---------- */
.tag-stock.is-preco { background: var(--red-tint); color: var(--red-dark); }
.cart-line .tag-stock.is-preco { white-space: normal; text-align: left; }
.stock-note.is-preco { background: var(--red-soft); color: var(--ink); }
.stock-note.is-preco svg { color: var(--red); }
.preco-recap { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); font-size: 13px; line-height: 18px; color: var(--ink); }
.preco-recap li { display: flex; gap: 8px; align-items: flex-start; }
.preco-recap svg { flex-shrink: 0; margin-top: 1px; color: var(--red); }
.order-note.is-preco { background: var(--red-soft); color: var(--ink); }
.order-note.is-preco svg { color: var(--red); }
.order-note.is-retire { background: #FDF0D5; color: #5C3A00; }
.order-note.is-retire svg { color: #8A5A00; }
.order-card .t-sub-13 svg { vertical-align: -2px; }

/* ---------- Magasins de livraison : cases à cocher (plusieurs magasins), bandeau très visible, totaux multipliés ---------- */
.check-box { width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; flex-shrink: 0; background: var(--white); border: 2px solid #B8AFA3; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.radio-card.is-check.is-active .check-box { background: var(--red); border-color: var(--red); }
.radio-card .t-xs { margin-top: 1px; }
.multi-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #FFFFFF; font-size: 14px; line-height: 19px; }
.multi-note svg { flex-shrink: 0; margin-top: 1px; }
.multi-note strong { font-size: 15px; line-height: 20px; font-weight: 800; }
.multi-note.is-attente { background: var(--soft); color: var(--ink-2); font-weight: 600; }
.multi-totals { padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
#shop-results:empty { display: none; }
/* Libellés longs dans un récapitulatif (nom d'un produit en précommande, « Total TTC des 3 commandes ») : ils passent à la ligne */
.totals .txt-long dt { white-space: normal; min-width: 0; }
.totals .txt-long dd { flex-shrink: 0; max-width: 58%; }
.totals .totals-final.txt-long dd { white-space: nowrap; }

/* ---------- Mes catalogues : couverture de chaque catalogue (page 1, vignette 480 px) ---------- */
.coll-chip img, .coll-chip .coll-dot { width: 46px; height: 64px; border-radius: 6px; box-shadow: 0 2px 8px rgba(40, 20, 10, 0.16); background: #FFFFFF; }
.coll-chip img { object-fit: cover; object-position: top; }

/* ---------- Compte commercial : identifiants donnés à ses clients (décision 15 d'Andy du 02/12/2026) ---------- */
/* Mes clients : sous chaque client, l'état de son accès et « Donner l'accès » ou « Nouveau mot de passe » */
.client-li .client-pick { min-height: 0; padding-bottom: 6px; }
.acces-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 12px; }
.acces-line.is-panel { padding: 12px 0 0; border-top: 1px solid var(--line-soft); }
.acces-etat { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.acces-etat::before { content: ''; width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; background: var(--field); transform: translateY(-1px); }
.acces-etat.is-sent::before { background: #C98A12; }
.acces-etat.is-on::before { background: var(--green); }
.acces-etat.is-err { color: var(--danger); }
.acces-etat.is-err::before { background: var(--danger); }
.btn-acces {
  min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ink); background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.btn-acces.is-first { background: var(--ink); color: var(--white); }
.btn-acces:disabled { opacity: 0.55; }
.acces-erreur { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 13px; line-height: 18px; }
.acces-erreur svg { flex-shrink: 0; margin-top: 1px; }
/* Fenêtre des identifiants : adresse, identifiant et mot de passe, montrés une seule fois */
.cred-app { margin: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
/* La fenêtre défile quand elle est pleine : rien ne s'y tasse (le mot de passe reste toujours lisible) */
.sheet .cred-app, .sheet .mail-etat, .sheet .acces-aide, .sheet .acces-actions { flex-shrink: 0; }
.cred-app > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.cred-app > div:last-child { border-bottom: 0; }
.cred-app dt { font-size: 12px; color: var(--muted); }
.cred-app dd { margin: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cred-app code { font-family: Menlo, Consolas, 'SF Mono', monospace; font-size: 17px; letter-spacing: 0.02em; user-select: all; -webkit-user-select: all; }
.cred-app .cred-mdp { font-size: 22px; }
.cred-url { font-weight: 600; color: var(--ink-2); }
.mail-etat.is-ok { background: #E7EFE4; color: #1E4D28; }
.mail-etat.is-ko { background: var(--danger-soft); color: var(--danger); }
.acces-aide { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; }
/* Téléphone étroit : état sur une ligne, bouton dessous à droite */
@media (max-width: 359px) {
  .acces-line { flex-wrap: wrap; }
  .btn-acces { margin-left: auto; }
}
