/* Just Click — CSS spécifique au projet (jamais de CSS dans les vues). Chargé après theme.css. */

/* === Lot L0b === */

/* Toast discret (JC.notifier) */
.jc-toast {
  position: fixed; left: 50%; bottom: var(--space-lg); transform: translate(-50%, 16px);
  z-index: 1200; max-width: min(92vw, 420px);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.35;
  color: var(--color-text-invert); background: var(--color-ink);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.jc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.jc-toast--succes { border-left-color: var(--color-ok); }
.jc-toast--erreur { border-left-color: var(--color-hot); }
.jc-toast--attention { border-left-color: var(--color-warn); }

/* Tags de statut client (Premium = .tag-premium de la maquette) */
.tag-plus,
.tag-standard {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px var(--space-xs); border-radius: var(--radius-xs);
}
.tag-plus { color: var(--color-text-invert); background: var(--color-brand); }
.tag-standard { color: var(--color-text); background: var(--color-paper-3); }

/* Barre compte : liens anonymes / compte BO */
.account-strip__links { display: inline-flex; gap: var(--space-md); }
.account-strip__links a { text-decoration: underline; text-underline-offset: 2px; }
.account-strip__bo { display: inline-flex; align-items: center; gap: var(--space-xs); }
.account-strip__bo a { text-decoration: underline; text-underline-offset: 2px; }

/* Bandeau d'impersonation (un commercial navigue en tant que client) */
.impersonation-bar {
  background: var(--color-hot); color: var(--color-text-invert);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
}
.impersonation-bar__in {
  display: flex; align-items: center; justify-content: center; gap: var(--space-md);
  padding: var(--space-2xs) 0; flex-wrap: wrap;
}
.impersonation-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Messages Flash (CakePHP) dans le layout front, avec les tokens du thème */
.message {
  margin: var(--space-md) auto 0; max-width: var(--shell-max, 1280px);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body); font-size: var(--text-sm);
  border-radius: var(--radius-sm); border: 1px solid var(--color-line);
  background: var(--color-paper-2); color: var(--color-text);
}
.message.success { border-color: var(--color-ok); }
.message.error { border-color: var(--color-hot); background: var(--color-hot-soft); }

/* Lot L69 : règles d'habillage des écrans d'authentification purgées (site.css, section L69). Restent les règles
   génériques de formulaire encore lues par d'autres écrans (case à cocher, select pleine largeur, erreurs). */
.field--checkbox { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-md); }
.field--checkbox label { font-size: var(--text-sm); font-weight: 400; }
.field--checkbox.is-disabled label { color: var(--color-text-muted); }
.check-jc { width: 17px; height: 17px; accent-color: var(--color-accent-deep); flex: none; }
.select-jc--full { width: 100%; min-height: 44px; }
fieldset.is-disabled { opacity: 0.6; }

/* === Lot L1a === (onglets et pages d'authentification : purgés par L69, site.css) */
.field--checkbox-haut { align-items: flex-start; }
.field--checkbox-haut .check-jc { margin-top: 3px; }
.field--error .input-jc, .field--error .select-jc { border-color: var(--color-hot); }
textarea.input-jc { min-height: 110px; resize: vertical; }

/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */

/* === Lot L2a === (accueil dynamique, catalogue, fiche produit / pack, recherche, favoris) */

/* Autocomplétion de la recherche (barre principale) */
.nav-search { position: relative; }
.jc-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1100;
  margin: 0; padding: var(--space-2xs); list-style: none;
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
  max-height: min(70vh, 480px); overflow-y: auto;
}
.jc-suggestions li a { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; }
.jc-suggestions li a:hover, .jc-suggestions li[aria-selected="true"] a { background: var(--color-paper-2); }
.jc-suggestions img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: var(--radius-xs); flex: none; }
.jc-suggestions__corps { display: flex; flex-direction: column; min-width: 0; }
.jc-suggestions__corps b { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-suggestions__corps small { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); }
.jc-suggestions__tout a { justify-content: center; font-size: var(--text-sm); font-weight: 600; border-top: var(--rule-hair) solid var(--color-line); border-radius: 0; margin-top: var(--space-2xs); }

/* Cartes produit : compléments (stock sous le prix, motif, réservé, sans image) */
.price-row__prefixe { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-inline-end: var(--space-3xs); }
.prod__stock { font-size: var(--text-xs); }
.prod__motif { font-size: var(--text-xs); color: var(--color-text-muted); font-style: italic; }
.prod__sans-image { display: block; width: 100%; aspect-ratio: 1; background: var(--color-paper-2); }
.prod--reserve .prod__media img { opacity: 0.85; }
.prod__foot .qty { flex: 0 0 auto; }
.prod__foot .qty input { width: 52px; }
.prod__media > a { display: block; }

/* Modale de déclinaisons : options de pack, prix / stock de la variante */
.modal-jc__option { gap: var(--space-xs); }
.modal-jc__option .select-jc { min-height: 40px; }
.modal-jc__quantite { width: 90px; }
.modal-jc__check { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); }
.modal-jc__ancien { margin-inline-start: var(--space-xs); font-size: var(--text-sm); color: var(--color-text-muted); }
.modal-jc__stock { display: block; font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; margin-top: 2px; }
.modal-jc__media img[hidden] { display: none; }

/* Accueil : commande rapide, marques sans logo, packs, vitrine réservée, fidélité */
.commande-rapide__tableau { display: grid; gap: var(--space-xs); }
.commande-rapide__ligne { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: var(--space-md); align-items: center; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-line); border-radius: var(--radius-md); background: var(--color-paper); }
.commande-rapide__media { width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.commande-rapide__media img { width: 100%; height: 100%; object-fit: contain; }
.commande-rapide__infos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.commande-rapide__nom { font-weight: 600; color: var(--color-text); text-decoration: none; }
.commande-rapide__meta { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.commande-rapide__prix { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.commande-rapide__action { display: flex; align-items: center; gap: var(--space-xs); }
.commande-rapide__action .qty input { width: 56px; }
.marquee__logo--texte { display: inline-flex; align-items: center; justify-content: center; height: 36px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.pack__compo li { display: flex; align-items: center; gap: var(--space-xs); }
.pack__compo-img { width: 28px; height: 28px; object-fit: contain; background: #fff; border-radius: var(--radius-xs); flex: none; }
.loyalty__gauge-fill { width: 82%; }

@media (max-width: 960px) {
  .commande-rapide__ligne { grid-template-columns: 56px minmax(0, 1fr); }
  .commande-rapide__prix { grid-column: 2; align-items: flex-start; text-align: left; }
  .commande-rapide__action { grid-column: 1 / -1; justify-content: flex-end; }
}
/* Lot L66 : règles de mise en page du catalogue, de la fiche et des avis reprises dans site.css (section L66). */

/* === Lot L4 === */

/* Panier, validation, merci / paiement : habillage repris par le lot L67 (site.css, section L67). */

/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */

/* === Lot L10 === (bannières éditoriales, avis, préventes, pages de contenu, contact, compléments Mon compte) */
/* Bannière éditoriale — élément `front/banniere.php`, variantes `section` et `compact`. */
.banniere { display: grid; gap: var(--space-lg); align-items: center; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; }
.banniere--visuel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.banniere__media { margin: 0; height: 100%; }
.banniere__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banniere__corps { padding: var(--space-lg) var(--space-xl); }
.banniere--visuel .banniere__corps { padding-left: 0; }
.banniere__titre { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; margin: 0 0 var(--space-xs); }
.banniere__sous-titre { margin: 0 0 var(--space-sm); color: var(--color-text-muted); }
.banniere__contenu { font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.banniere__code { font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.banniere__cta { margin-top: var(--space-xs); }
.banniere--compact { margin-bottom: var(--space-lg); }
.banniere--compact .banniere__titre { font-size: var(--text-lg); }
.banniere--compact .banniere__corps { padding: var(--space-md) var(--space-lg); }



/* Pages de contenu, plan du site, contact ADV et « Trouver mon commercial » : purgés par L69 (site.css, section L69). */
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */

@media (max-width: 900px) {
  .avis-page__grille { grid-template-columns: minmax(0, 1fr); }
  .banniere--visuel { grid-template-columns: minmax(0, 1fr); }
  .banniere--visuel .banniere__corps { padding: var(--space-lg); }
  .banniere__media img { max-height: 220px; }
}

/* === Lot L7 === (paiement CB : mention du mode TEST / SIMULATION, page simulée) */
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */

/* === Lot L13 === (retours client n° 1 : carte « Votre commercial », « Modifier ma commande ») */
.carte-commercial { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.carte-commercial--compacte { padding: var(--space-md); margin-bottom: var(--space-lg); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-line); border-radius: var(--radius-md); }
.carte-commercial__titre { display: block; }
.carte-commercial__identite { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.carte-commercial__photo, .carte-commercial__initiales { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; }
.carte-commercial__photo { object-fit: cover; border: 2px solid var(--color-paper); box-shadow: 0 0 0 1px var(--color-line-strong); background: var(--color-paper-3); }
.carte-commercial__initiales { display: inline-flex; align-items: center; justify-content: center; background: var(--color-brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.carte-commercial--adv .carte-commercial__initiales { font-size: 1rem; }
.carte-commercial--compacte .carte-commercial__photo, .carte-commercial--compacte .carte-commercial__initiales { width: 48px; height: 48px; font-size: 1.05rem; }
.carte-commercial__nom { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.carte-commercial__nom strong { display: block; overflow-wrap: anywhere; }
.carte-commercial__code { font-size: var(--text-xs); color: var(--color-text-muted); }
.carte-commercial__coordonnees { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.carte-commercial__coordonnees a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
.carte-commercial--compacte .carte-commercial__coordonnees { display: flex; flex-wrap: wrap; column-gap: var(--space-md); }
.carte-commercial__note { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.carte-commercial__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
/* Barre compte (fond sombre) : avatar rond 28 px devant « Votre commercial : … ». */
.carte-commercial--avatar { display: inline-flex; vertical-align: middle; margin-right: var(--space-xs); }
.carte-commercial--avatar .carte-commercial__photo, .carte-commercial--avatar .carte-commercial__initiales { width: 28px; height: 28px; font-size: 11px; border-width: 1px; box-shadow: none; }
.carte-commercial--avatar .carte-commercial__initiales { background: var(--color-brand-hi); box-shadow: 0 0 0 1px var(--color-line-invert); }
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
.panier-modification { margin-top: var(--space-sm); }

/* === Lot L15 === (support : « Mes demandes ») — Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */

/* === Lot L17 === (retours client n° 2 : toast d'attente, tableaux et pagination de l'espace client) */
/* Toast d'attente : même composant .jc-toast (emplacement, fond, liseré), liseré neutre et spinner CSS. */
.jc-toast--attente { display: inline-flex; align-items: center; gap: var(--space-sm); border-left-color: var(--color-invert-muted); }
.jc-toast__spinner {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--color-line-invert); border-top-color: var(--color-text-invert);
  animation: jc-rotation 0.8s linear infinite;
}
@keyframes jc-rotation { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .jc-toast { transition: none; }
  .jc-toast__spinner { animation-duration: 2.4s; }
}
[data-add-cart][aria-busy="true"] { cursor: progress; }

/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */

/* === Lot L16 === (support : carte « Votre commercial » en tête de Mon compte, destinataire d'une demande) */
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */

/* === Lot L20 === (adresse e-mail du compte client non vérifiée : bandeau, badge du profil) */
.email-a-verifier { background: oklch(96% 0.05 75); border-bottom: 1px solid var(--color-warn); color: var(--color-ink); font-size: var(--text-sm); }
.email-a-verifier__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; }
.email-a-verifier__texte { flex: 1 1 320px; overflow-wrap: anywhere; }
.email-a-verifier__form { margin: 0; flex: 0 0 auto; }
.email-a-verifier__bouton { padding: 6px 14px; font-size: var(--text-sm); white-space: nowrap; }
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
@media (max-width: 575.98px) {
  .email-a-verifier__form, .email-a-verifier__bouton { width: 100%; }
}

/* === Lot L19 === appel « Économisez … par carte » : repris par le lot L67 (site.css). */

/* === Lot L21 === (JustCoins : encadré de navigation, sous-menu ludique, bloc panier, page « Mes JustCoins ») */
.jc-coins { position: relative; }
.jc-coins__btn { display: inline-flex; align-items: center; gap: var(--space-2xs); height: 40px; padding: 0 var(--space-sm) 0 var(--space-2xs); background: var(--color-ink-2); border: var(--rule-hair) solid var(--color-line-invert); border-radius: var(--radius-pill); color: var(--color-text-invert); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.jc-coins__btn:hover, .jc-coins.is-open .jc-coins__btn { border-color: var(--color-highlight); background: var(--color-ink-3); }
.jc-coins__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.jc-coins__ico { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; object-fit: cover; transition: transform var(--dur-mid) var(--ease-out); }
.jc-coins__btn:hover .jc-coins__ico { transform: rotate(-14deg) scale(1.08); }
.jc-coins__solde { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--color-highlight); white-space: nowrap; }
.jc-coins--negatif .jc-coins__solde { color: var(--color-hot-soft); }
.jc-coins__menu { display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 1030; width: 360px; max-width: calc(100vw - 2 * var(--shell-pad)); }
.jc-coins__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.jc-coins.is-open .jc-coins__menu { display: block; animation: jc-menu-in var(--dur-mid) var(--ease-out); }
@keyframes jc-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.jc-menu { background: var(--color-paper); color: var(--color-text); border: var(--rule-hair) solid var(--color-line); border-top: 3px solid var(--color-highlight); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: var(--space-md); max-height: min(78vh, 620px); overflow-y: auto; overscroll-behavior: contain; }
.jc-menu__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xs); }
.jc-menu__eyebrow { color: var(--color-brand); }
.jc-menu__fermer { display: none; width: 36px; height: 36px; place-items: center; border: var(--rule-hair) solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-text-muted); cursor: pointer; }
.jc-menu__solde { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--color-ink); color: var(--color-text-invert); background-image: radial-gradient(circle at 88% 20%, oklch(79.6% 0.161 68 / 0.28), transparent 55%); }
.jc-menu__piece { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 4px 10px oklch(79.6% 0.161 68 / 0.45)); animation: jc-piece 3.2s var(--ease-in-out) infinite; }
@keyframes jc-piece { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-8deg); } }
.jc-menu__nombre { display: inline-block; font-family: var(--font-display); font-stretch: 85%; font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--color-highlight); font-variant-numeric: tabular-nums; }
.jc-menu__nombre.is-negatif { color: var(--color-hot-soft); }
.jc-menu__unite { margin-left: var(--space-2xs); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-invert-muted); }
.jc-menu__valeur { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--color-text-invert); }
.jc-menu__attente { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-ok); font-weight: 600; }
.jc-menu__attente small { color: var(--color-text-muted); font-weight: 400; }
.jc-menu__alerte { margin: var(--space-xs) 0 0; padding: var(--space-2xs) var(--space-xs); border-left: 3px solid var(--color-hot); background: var(--color-hot-soft); font-size: var(--text-sm); }
.jc-menu__regles { list-style: none; margin: var(--space-sm) 0; padding: 0; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.jc-menu__regles li { display: flex; align-items: center; gap: var(--space-xs); }
.jc-menu__puce { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--color-highlight); color: var(--color-ink); font-weight: 800; font-size: var(--text-xs); }
.jc-menu__sous-titre { display: block; margin: var(--space-sm) 0 var(--space-2xs); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.jc-menu__vide { font-size: var(--text-sm); color: var(--color-text-muted); }
.jc-menu__liste { list-style: none; margin: 0 0 var(--space-sm); padding: 0; }
.jc-menu__ligne { display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: var(--space-xs); padding: var(--space-2xs) 0; border-bottom: var(--rule-hair) solid var(--color-line); font-size: var(--text-sm); }
.jc-menu__ligne:last-child { border-bottom: 0; }
.jc-menu__date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.jc-menu__libelle { min-width: 0; overflow-wrap: anywhere; }
.jc-menu__points { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.is-credit .jc-menu__points, .jc-points--credit { color: var(--color-ok); }
.is-debit .jc-menu__points, .jc-points--debit { color: var(--color-hot); }
.is-annule .jc-menu__points, .is-annule .jc-menu__libelle, .jc-points--annule { color: var(--color-text-muted); text-decoration: line-through; }
.jc-badge { display: inline-block; margin-left: var(--space-3xs); padding: 0 var(--space-2xs); border-radius: var(--radius-xs); background: var(--color-paper-3); color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; vertical-align: middle; }
.jc-badge--attente { background: var(--color-highlight); color: var(--color-ink); }
.jc-badge--repris { background: var(--color-hot-soft); color: var(--color-hot); }
@media (max-width: 991.98px) {
  .jc-coins__btn { padding: 0 var(--space-xs) 0 var(--space-3xs); gap: var(--space-3xs); }
  .jc-coins__solde { font-size: var(--text-xs); max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; }
  .jc-coins__menu { position: fixed; top: var(--nav-bottom, 68px); left: 0; right: 0; bottom: 0; width: auto; max-width: none; }
  .jc-coins__menu::before { display: none; }
  .jc-menu { height: 100%; max-height: none; border-radius: 0; border-inline: 0; padding: var(--space-md) var(--shell-pad) calc(var(--space-xl) + env(safe-area-inset-bottom)); }
  .jc-menu__fermer { display: inline-grid; }
}
@media (prefers-reduced-motion: reduce) {
  .jc-menu__piece, .jc-coins.is-open .jc-coins__menu { animation: none; }
  .jc-coins__btn:hover .jc-coins__ico { transform: none; }
}

/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
.jc-menu__regles b { white-space: nowrap; }

/* === Lot L28 === (retours client n° 4 — sections ajoutées : familles, top 10, offres, packs de la semaine, rangée
   B2B, zoom. Lot L34 : charte « claire » retirée — barre compte, navbar, hero, services, titres, orange d'action,
   fonds bleu clair — au profit de theme.css ; ne restent ici que la mise en page des nouveaux composants, en tokens
   d'avant.) */

.sec-head__intro { margin: var(--space-xs) 0 0; font-size: var(--text-base); color: var(--color-text-muted); max-width: 62ch; }

/* Lot L65 : règles de la carte `.prod`, du top 10, du diaporama et de la bannière des packs de la semaine purgées
   (accueil, en-tête, cartes et packs repris par site.css, section L65). */
/* ---------- Rangée d'informations B2B (élément front/infos_b2b, dans le style .prod__b2b de theme.css) ---------- */
.infos-b2b { flex-wrap: wrap; gap: 2px var(--space-md); margin-bottom: 0; }
.infos-b2b__cellule { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; cursor: help; }
.infos-b2b dt { font-weight: 400; }
.infos-b2b dd { margin: 0; color: var(--color-text); font-weight: 500; white-space: nowrap; }


/* === Lot L30 === panier et validation : habillage repris par le lot L67 (site.css). Reste : « Mes JustCoins ». */
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
/* === Fin Lot L30 === */

/* === Lot L29 === (retours client n° 4 — fiche produit en parcours guidé, commande rapide en tableau, barre « Ma
   sélection ». Lot L34 : charte « vague 10 » retirée — prix .price, variantes .variant et paliers .tier-table de
   theme.css, encadrés papier / encre, bleu de marque pour les numéros d'étape et les sélections.) */

/* --- Commande rapide en tableau --- */
.cr__entete { align-items: flex-end; gap: var(--space-md); }
.cr__selection {
  display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-line-strong); border-radius: var(--radius-pill); background: var(--color-paper);
  color: var(--color-text); text-decoration: none; font-weight: 600; font-size: var(--text-sm); flex: none;
}
.cr__selection:hover { border-color: var(--color-ink); }
.cr__selection b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: var(--space-3xs); padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-brand); color: #fff; font-size: var(--text-xs); }
.cr__selection small { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--color-text-muted); }
.cr-outils { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.cr-outils__recherche { position: relative; flex: 1 1 280px; min-width: 0; }
.cr-outils__recherche svg { position: absolute; left: var(--space-sm); top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.cr-outils__recherche .input-jc { width: 100%; padding-left: calc(var(--space-sm) * 2 + 18px); min-height: 42px; }
.cr-outils__filtre { flex: 0 1 200px; min-width: 0; }
.cr-outils__filtre .select-jc { width: 100%; min-height: 42px; }
.cr-outils__envoyer[hidden] { display: none; }
.cr-outils__compteur { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); margin-left: auto; }
.cr-tableau { position: relative; container: commande-rapide / inline-size; border: var(--rule-hair) solid var(--color-line); border-radius: var(--radius-md); background: var(--color-paper); overflow-x: auto; }
.cr-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.cr-table[aria-busy="true"] tbody { opacity: 0.5; transition: opacity var(--dur-fast); }
.cr-table thead th {
  padding: var(--space-xs) var(--space-sm); text-align: left; white-space: nowrap; background: var(--color-paper-2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted);
  border-bottom: var(--rule-hair) solid var(--color-line);
}
.cr-table td { padding: var(--space-xs) var(--space-sm); vertical-align: middle; border-bottom: var(--rule-hair) solid var(--color-line); }
/* annule custom.css L2a .commande-rapide__ligne (grille en cartes) et .commande-rapide__infos (flex) : classes
   conservées sur les lignes du tableau pour les sélecteurs existants (contrat L17, outil navigateur L2a / L10) */
.cr-table tr.commande-rapide__ligne { display: table-row; grid-template-columns: none; padding: 0; border: 0; border-radius: 0; background: none; }
.cr-table td.commande-rapide__infos { display: table-cell; }
.cr-ligne:hover > td { background: var(--color-paper-2); }
.cr-table__favori { width: 40px; }
/* annule theme.css .prod__fav (positionné sur la carte) : bouton en ligne */
.cr-ligne .prod__fav.cr-ligne__coeur { position: static; }
.cr-ligne__media { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: var(--rule-hair) solid var(--color-line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; cursor: zoom-in; }
.cr-ligne__media img { width: 100%; height: 100%; object-fit: contain; }
.cr-ligne__media--vide { background: var(--color-paper-2); cursor: default; }
.cr-ligne__produit { min-width: 220px; }
.cr-ligne__marque, .cr-ligne__sku { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.cr-ligne__nom { display: block; font-weight: 600; color: var(--color-text); text-decoration: none; line-height: 1.3; }
.cr-ligne__nom:hover { color: var(--color-brand); text-decoration: underline; }
.cr-ligne__puces { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.cr-ligne__puces .chip { font-size: 11px; padding: 1px var(--space-2xs); }
.cr-ligne__prix { white-space: nowrap; }
.cr-ligne__ancien { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.cr-ligne__prix-ligne { display: inline-flex; align-items: center; gap: var(--space-3xs); }
.cr-ligne__montant { color: var(--color-text); font-weight: 700; font-size: var(--text-base); font-variant-numeric: tabular-nums; }
.cr-ligne__chevron { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: var(--rule-hair) solid var(--color-line); border-radius: 50%; background: #fff; color: var(--color-brand); cursor: pointer; }
.cr-ligne__chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
.cr-ligne__pu { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.cr-ligne__ppc, .cr-ligne__coef { font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; }
.cr-ligne__total { white-space: nowrap; }
.cr-ligne__total b { display: block; font-variant-numeric: tabular-nums; }
.cr-ligne__total small { font-size: var(--text-xs); color: var(--color-text-muted); }
.cr-ligne__quantite .qty input { width: 52px; }
.cr-ligne__action { text-align: right; white-space: nowrap; }
.cr-paliers > td { background: var(--color-paper-2); padding: var(--space-xs) var(--space-md); }
.cr-paliers[hidden] { display: none; }
.cr-paliers__table { max-width: 520px; background: #fff; }
.cr-vide { padding: var(--space-lg); margin: 0; text-align: center; color: var(--color-text-muted); }
.cr-vide[hidden] { display: none; }
.cr-pied { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); }
.cr-pied__plus[hidden], .cr-pied__pager[hidden] { display: none; }
/* Mon compte › Commande rapide : l'élément est déjà dans la grille du compte (pas de bande ni de marge de page) */
.compte-commande-rapide { min-width: 0; }
.compte-commande-rapide .cr.band { padding-block: 0; background: none; }
.compte-commande-rapide .cr > .shell { padding-inline: 0; max-width: none; }

/* Lot L65 : barre « Ma sélection » au dessin « claire v2 » (classes .selection, site.css section L65) — anciennes règles purgées. */

/* Tableau étroit (colonne de « Mon compte », tablette) : chaque ligne sur deux rangées, sans défilement horizontal */
@container commande-rapide (max-width: 1000px) {
  .cr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cr-table tbody { display: block; }
  .cr-table tr.cr-ligne {
    display: grid; grid-template-columns: 40px 56px minmax(0, 1fr) auto auto auto auto; align-items: center;
    grid-template-areas: "favori visuel produit produit produit stock prix" "favori visuel ppc coef total quantite action";
    gap: var(--space-2xs) var(--space-sm); padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-line);
  }
  .cr-table tr.cr-ligne > td { display: block; padding: 0; border: 0; }
  .cr-table tr.cr-ligne > td.cr-ligne__favori { grid-area: favori; }
  .cr-table tr.cr-ligne > td.cr-ligne__visuel { grid-area: visuel; }
  .cr-table tr.cr-ligne > td.cr-ligne__produit { grid-area: produit; min-width: 0; }
  .cr-table tr.cr-ligne > td.cr-ligne__stock { grid-area: stock; }
  .cr-table tr.cr-ligne > td.cr-ligne__prix { grid-area: prix; text-align: right; }
  .cr-table tr.cr-ligne > td.cr-ligne__ppc { grid-area: ppc; }
  .cr-table tr.cr-ligne > td.cr-ligne__coef { grid-area: coef; }
  .cr-table tr.cr-ligne > td.cr-ligne__total { grid-area: total; text-align: right; }
  .cr-table tr.cr-ligne > td.cr-ligne__quantite { grid-area: quantite; }
  .cr-table tr.cr-ligne > td.cr-ligne__action { grid-area: action; }
  .cr-ligne__ppc::before, .cr-ligne__coef::before { content: attr(data-label) " · "; color: var(--color-text-muted); }
  .cr-table tr.cr-paliers { display: block; }
  .cr-table tr.cr-paliers[hidden] { display: none; }
  .cr-table tr.cr-paliers > td { display: block; }
}

@media (max-width: 767.98px) {
  /* Tableau → cartes : même HTML, en-têtes masqués, grille par ligne */
  .cr-tableau { border: 0; background: none; overflow: visible; }
  .cr-table, .cr-table tbody { display: block; }
  .cr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cr-table tr.cr-ligne {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas:
      "visuel produit favori" "stock stock prix" "ppc ppc coef" "total total total" "quantite action action";
    gap: var(--space-2xs) var(--space-sm); padding: var(--space-sm); margin-bottom: var(--space-xs);
    border: var(--rule-hair) solid var(--color-line); border-radius: var(--radius-md); background: var(--color-paper);
  }
  .cr-table tr.cr-ligne > td { display: block; padding: 0; border: 0; background: none; }
  .cr-ligne:hover > td { background: none; }
  .cr-ligne__favori { grid-area: favori; }
  .cr-ligne__visuel { grid-area: visuel; }
  .cr-ligne__produit { grid-area: produit; min-width: 0; }
  .cr-ligne__stock { grid-area: stock; align-self: center; }
  .cr-ligne__prix { grid-area: prix; text-align: right; }
  .cr-ligne__ppc { grid-area: ppc; }
  .cr-ligne__coef { grid-area: coef; text-align: right; }
  .cr-ligne__ppc::before, .cr-ligne__coef::before { content: attr(data-label) " · "; color: var(--color-text-muted); }
  .cr-table tr.cr-ligne > td.cr-ligne__total { grid-area: total; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-xs); padding-top: var(--space-2xs); border-top: var(--rule-hair) solid var(--color-line); }
  .cr-ligne__total::before { content: attr(data-label); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); margin-right: auto; }
  .cr-ligne__quantite { grid-area: quantite; }
  .cr-ligne__action { grid-area: action; align-self: center; }
  .cr-ligne__action .btn-jc { width: 100%; }
  .cr-table tr.cr-paliers { display: block; margin: calc(-1 * var(--space-xs)) 0 var(--space-xs); }
  .cr-table tr.cr-paliers[hidden] { display: none; }
  .cr-table tr.cr-paliers > td { display: block; border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .cr-outils__filtre { flex: 1 1 calc(50% - var(--space-xs)); }
  .cr-outils__compteur { margin-left: 0; }
}
/* === Fin Lot L29 === */

/* === Lot L33 === (revue MASTER vague 10 — contraste AA des petites pastilles rouges. Lot L34 : les pastilles de
   remise du panier et de la fiche reprennent le gabarit .flag--promo d'avant, texte encre sur orange ; seul le
   badge « repris » des JustCoins garde son texte rouge AA.) */
.jc-badge--repris { color: var(--color-hot-texte); }
/* === Fin Lot L33 === */

/* === Lot L34 === (retour au design d'avant sur le site : composants de theme.css, mise en page des fonctions de la
   vague 10 conservée. Aucune nouvelle couleur : tokens d'origine seulement.) */

/* Lot L65 : tuiles familles, vitrine néon et cagnotte .loyalty purgées (accueil « claire v2 » : rayons, cartes, carte .fidelite — site.css). */

/* Rangée B2B (.prod__b2b) : cellule masquée par la fiche (variantes sans PPC, etc.) */
.infos-b2b__cellule[hidden] { display: none; }
/* fiche : étiquette au-dessus de la valeur (« Vendu par » / « par 10 » se lisent sans redoublement) */
.prod__b2b--fiche .infos-b2b__cellule { flex-direction: column; align-items: flex-start; gap: 0; }
/* === Fin Lot L34 === */
/* === Lot L40 === inscription : bloc des justificatifs — purgé par L69 (site.css, section L69 : dépôt de fichiers). */
/* === Lot L39 === catalogue : cartes cliquables, quantité directe, fenêtre « Aperçu » ; barre de navigation mobile. */
/* Carte entière cliquable (JS `data-carte-url`, clic délégué) ; boutons, champs et liens internes gardent leur action. */
[data-carte-url] { cursor: pointer; }
.pack[data-carte-url]:hover, .neon-card[data-carte-url]:hover { box-shadow: var(--shadow-lift); }
.prod--cliquable:hover .prod__name { color: var(--color-accent-deep); }
/* Quantité directe : 0 = rien au panier ; état occupé pendant la synchronisation. */
.qty--directe input { width: 44px; text-align: center; }
.qty--directe.is-au-panier { border-color: var(--color-accent); }
.qty--directe.is-au-panier input { font-weight: 700; }
.qty--directe[aria-busy="true"] { opacity: 0.6; }
/* Retour client : contenu coupé en bas. La rangée de la grille est bornée à la hauteur de la boîte (sans `min-height: 0`,
   la colonne s'étirait à la hauteur du contenu et `overflow: hidden` de la boîte la coupait) : le corps défile, la
   quantité et « Ajouter au panier » restent collés en bas, visibles. */
.modal-jc__box { grid-template-rows: minmax(0, 1fr); }
.modal-jc__body { min-height: 0; overscroll-behavior: contain; padding-bottom: 0; }
.modal-jc__media { min-height: 0; }
.modal-jc__foot { position: sticky; bottom: 0; z-index: 1; background: var(--color-paper); padding-bottom: var(--space-sm); }
.modal-jc__note { padding-bottom: var(--space-lg); }
@media (max-width: 640px) {
  .modal-jc__box { grid-template-rows: auto minmax(0, 1fr); }
}
/* Lot L65 : barre de navigation mobile remplacée par celle de la maquette « claire v2 » (site.css, < 60 rem). Restent
   les décalages des barres collantes (fiche L29, panier L30) et des toasts au-dessus d'elle. */
@media (max-width: 59.99rem) {
  body.avec-nav-mobile .panier-barre-mobile:not([hidden]) { bottom: var(--jc-nav-mobile-h); }
  body.avec-nav-mobile .jc-toast { bottom: calc(var(--jc-nav-mobile-h) + var(--space-md)); }
}
/* === Fin Lot L39 === */
/* === Lot L38 === offre « Prix normal + JustCoins » (fiche), menu ▾ des offres d'une ligne du panier, composant
   offert d'un pack. Classes existantes (.pdp-offre, .puce-regle, .flag) complétées seulement. */
.pack-composition__part--offert .flag { white-space: nowrap; }
/* === Fin Lot L38 === */

/* === Lot L42a === « Mes factures » : bouton « Exporter mes factures » (fenêtre de période, export ZIP). */
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
/* === Fin Lot L42a === */

/* === Lot L44 === (panier : articles offerts visibles, bloc JustCoins refait ; JustCoins côté client : pièce 3D
   « flip & squish », page « Mes JustCoins » gamifiée — esprit casino sans kitsch. Thème sombre d'avant (L34),
   accent doré --color-highlight, aucune animation en boucle hors pulsation discrète du bouton, tout coupé sous
   prefers-reduced-motion.) */

/* Articles offerts et bloc JustCoins du panier : repris par le lot L67 ; « Mes commandes » : lot L68 (site.css). */

/* Pièce 3D (popover, page) */
.jc-piece { --jc-piece-d: 44px; --jc-piece-e: 4px; position: relative; display: inline-block; width: var(--jc-piece-d); height: var(--jc-piece-d); flex: 0 0 var(--jc-piece-d); perspective: 600px; }
.jc-piece--page { --jc-piece-d: 76px; --jc-piece-e: 6px; }
.jc-piece--bouton { --jc-piece-d: 22px; --jc-piece-e: 2px; }
.jc-piece__corps { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; }
.jc-piece__face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden; background: #ffa62f; box-shadow: inset 0 0 0 2px oklch(60% 0.14 68 / 0.6); }
.jc-piece__face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.jc-piece__face--avant { transform: translateZ(calc(var(--jc-piece-e) / 2)); }
.jc-piece__face--arriere { transform: rotateY(180deg) translateZ(calc(var(--jc-piece-e) / 2)); }
.jc-piece__tranche { position: absolute; top: 4%; bottom: 4%; left: 50%; width: var(--jc-piece-e); margin-left: calc(var(--jc-piece-e) / -2); border-radius: 2px; background: repeating-linear-gradient(0deg, #c97a12 0 2px, #ffcf6e 2px 4px); transform: rotateY(90deg); }
.jc-piece__reflet { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; overflow: hidden; }
.jc-piece__reflet::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; background: linear-gradient(90deg, transparent, oklch(100% 0 0 / 0.65), transparent); transform: rotate(20deg); opacity: 0; }
.jc-piece__ombre { position: absolute; left: 12%; right: 12%; bottom: -14%; height: 12%; border-radius: 50%; background: oklch(16% 0.02 260 / 0.45); filter: blur(3px); }
.jc-piece.is-flip .jc-piece__corps { animation: jc-piece-flip 1.1s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
.jc-piece.is-flip .jc-piece__reflet::after { animation: jc-piece-reflet 1.1s ease-out both; }
.jc-piece.is-flip .jc-piece__ombre { animation: jc-piece-ombre 1.1s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
@keyframes jc-piece-flip {
  0%   { transform: translateY(0) rotateY(0) scale(1, 1); }
  12%  { transform: translateY(6%) rotateY(0) scale(1.12, 0.86); }
  45%  { transform: translateY(-38%) rotateY(540deg) scale(0.95, 1.06); }
  68%  { transform: translateY(0) rotateY(720deg) scale(1.2, 0.78); }
  80%  { transform: translateY(-6%) rotateY(720deg) scale(0.92, 1.1); }
  91%  { transform: translateY(0) rotateY(720deg) scale(1.04, 0.97); }
  100% { transform: translateY(0) rotateY(720deg) scale(1, 1); }
}
@keyframes jc-piece-reflet { 0%, 70% { left: -60%; opacity: 0; } 75% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
@keyframes jc-piece-ombre { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(0.55); opacity: 0.4; } 68% { transform: scale(1.25); opacity: 1; } }
.jc-menu__piece-3d { filter: drop-shadow(0 4px 10px oklch(79.6% 0.161 68 / 0.45)); }

/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
@media (prefers-reduced-motion: reduce) {
  .jc-piece.is-flip .jc-piece__corps, .jc-piece.is-flip .jc-piece__reflet::after, .jc-piece.is-flip .jc-piece__ombre { animation: none; }
}
/* === Fin Lot L44 === */

/* === Lot L42c === retours client n° 6 (menu cliquable, carte « œil », fenêtre « Choisissez votre offre », image de
   fiche sans bords blancs, ombre des cartes claires) et revue L39 (menu mobile sous la barre du bas, rubrique active). */

/* R1 — menu : intitulés de colonnes cliquables (style de l'intitulé conservé), « Tout voir » au toucher / mobile. */
.mega__col > h4 > .mega__titre {
  display: inline; padding: 0; border: 0; color: inherit; font: inherit; letter-spacing: inherit;
  text-transform: inherit; white-space: normal; text-decoration: none;
}
.mega__col > h4 > .mega__titre:hover, .mega__col > h4 > .mega__titre:focus-visible { color: var(--color-brand); text-decoration: underline; }
.nav-links .mega__tout-voir { display: none; } /* MASTER (vague 13) : `.nav-links a` (theme.css, inline-flex) l’emportait ⇒ « Tout voir » visible au bureau. */
@media (hover: none), (max-width: 991.98px) {
  .nav-links .mega__tout-voir {
    display: block; grid-column: 1 / -1; padding-block: var(--space-2xs); font-weight: 700;
    text-transform: none; letter-spacing: 0; white-space: normal;
  }
}
/* Mineur L39 : le panneau du menu mobile ne passe plus sous la barre de navigation du bas. */
@media (max-width: 991.98px) {
  body.avec-nav-mobile .nav-links.is-open { padding-bottom: calc(var(--space-2xl) + var(--jc-nav-mobile-h, 60px)); }
  .nav-mobile__item[data-actif] { color: var(--color-highlight); }
}

/* R2 — carte : petit bouton « œil » (Aperçu) à gauche, sélecteur `− 0 +` à droite. */
.prod__foot .prod__oeil {
  order: -1; flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: var(--rule-hair) solid var(--color-line-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--color-text); cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.prod__foot .prod__oeil:hover, .prod__foot .prod__oeil:focus-visible { color: var(--color-brand); border-color: var(--color-brand); }
.prod__foot .prod__oeil:disabled { opacity: 0.45; cursor: not-allowed; }
.prod__foot .qty--directe { margin-left: auto; }
@media (max-width: 575.98px) {
  .prod__foot .qty.qty--directe { flex: 1 1 auto; }
}


/* R4 — relief des cartes claires (fond clair et liseré gris) ; jamais sur les cartes sombres. */
:root { --jc-ombre-carte: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06); }
.card:not(.text-bg-dark):not(.bg-dark),
.pdp__box,
.compte-bloc,
.summary,
.bloc-panier,
.livraison-carte,
.carte-commercial--compacte {
  box-shadow: var(--jc-ombre-carte);
}
/* === Fin Lot L42c === */

/* === Lot L45b === */
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
/* === Fin Lot L45b === */

/* === Lot L45c === (C6) portable tactile (`hover: hover` + doigt) : « Tout voir : <famille> » affiché quand le dernier
   appui était un toucher / stylet (`html.nav-tactile`, posée par app.js section L42c § 1). */
html.nav-tactile .nav-links .mega__tout-voir {
  display: block; grid-column: 1 / -1; padding-block: var(--space-2xs); font-weight: 700;
  text-transform: none; letter-spacing: 0; white-space: normal;
}
/* === Fin Lot L45c === */

/* === Lot L47 === retours client n° 7 : site au téléphone (zoom des champs, barre du bas, safe-area), bloc JustCoins du
   panier, cartes de « Mes JustCoins ». */

/* 1. Plus aucun zoom d'iOS au toucher d'un champ : police calculée ≥ 16 px sur les écrans tactiles (et sous 992 px en
   repli). `!important` voulu : chaque composant fixe sa propre taille (.qty input, steppers, recherche…). Le zoom à deux
   doigts reste permis (aucun maximum-scale / user-scalable dans le viewport). */
@media (pointer: coarse), (max-width: 991.98px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
  select, textarea,
  .form-control, .form-select, .form-control-sm, .form-select-sm, .input-jc, .select-jc,
  .qty input, .qty--directe input, .pdp-quantite__stepper input, .cr-ligne__quantite input, .cr-outils__recherche input,
  .modal-jc__quantite input, .commande__qte input, .jc-bloc__saisie .input-jc,
  .nav-search input, .recherche__formulaire input, .jc-suggestions input {
    font-size: max(16px, 1em) !important;
  }
  /* Plus de zoom au double appui (le pincement reste possible). */
  a, button, label, summary, [role="button"], input, select, textarea, .qty button, .btn-jc, .btn {
    touch-action: manipulation;
  }
}

/* 2. viewport-fit=cover (layouts) : contenu hors des encoches en paysage, barres collantes et toasts au-dessus de
   l'indicateur d'accueil quand la barre du bas est absente (bureau, tunnel de commande). */
.shell {
  padding-inline: max(var(--shell-pad), env(safe-area-inset-left, 0px)) max(var(--shell-pad), env(safe-area-inset-right, 0px));
}
.barre-selection { padding-bottom: calc(var(--space-xs) + env(safe-area-inset-bottom, 0px)); }
.jc-toast { bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 991.98px) {
  /* La barre du bas porte déjà la safe-area : les barres posées au-dessus n'en ajoutent pas une seconde. */
  body.avec-nav-mobile .barre-selection { padding-bottom: var(--space-xs); }
  body.avec-nav-mobile .jc-toast { bottom: calc(var(--jc-nav-mobile-h) + var(--space-md)); }
  .nav-mobile { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
}

/* Panneaux plein écran / fenêtres du site : hauteur de la fenêtre visible (`dvh`) ; le repli `vh` de theme.css et des
   sections précédentes reste appliqué par les navigateurs sans `dvh` (déclaration invalide ignorée). Le menu burger
   (theme.css) a déjà son repli `100dvh`. */
.modal-jc__box { max-height: min(92dvh, 660px); }
.zoom-overlay img { max-height: 92dvh; }
.jc-menu { max-height: min(78dvh, 620px); }
.jc-suggestions { max-height: min(70dvh, 480px); }
@media (max-width: 640px) {
  .modal-jc__box { max-height: 92dvh; }
}
@media (max-width: 991.98px) {
  .jc-menu { max-height: none; }
}


/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
/* === Fin Lot L47 === */

/* === Lot L48 === commande rapide (retours client n° 7) : tout le catalogue en tableau, quantité = panier (stepper
   `− 0 +`, « Composer » pour un pack ouvert), offres de la ligne (flèche ▾), « Voir ma sélection (N) », sélecteur de
   source (Mon compte), « Ouvrir tableau » en plein écran (même DOM). Mise en page seulement : composants de la maquette
   (`.qty`, `.btn-line`, `.tier-table`, `.pdp-offre`), habillage sombre du site (L34). */
.cr__actions { display: flex; align-items: center; gap: var(--space-xs); flex: none; }
.cr__ouvrir, .cr__fermer { display: inline-flex; align-items: center; gap: var(--space-2xs); white-space: nowrap; }
.cr__ouvrir[hidden], .cr__fermer[hidden] { display: none; }
.cr__entete--compact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.cr__titre-compact { margin: 0; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.cr__entete--compact .cr__actions { margin-left: auto; }
.cr-sources { display: inline-flex; gap: 2px; padding: 3px; border: var(--rule-hair) solid var(--color-line-strong); border-radius: var(--radius-pill); background: var(--color-paper); }
.cr-sources__choix { padding: 6px 14px; border-radius: var(--radius-pill); color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cr-sources__choix:hover { color: var(--color-text); }
.cr-sources__choix[aria-pressed="true"] { background: var(--color-brand); color: #fff; }
.cr-outils__selection {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 42px; padding: 0 var(--space-md); flex: none;
  border: var(--rule-hair) solid var(--color-line-strong); border-radius: var(--radius-pill); background: var(--color-paper);
  color: var(--color-text); font-weight: 600; font-size: var(--text-sm); white-space: nowrap; cursor: pointer;
}
.cr-outils__selection:hover { border-color: var(--color-ink); }
.cr-outils__selection[aria-pressed="true"] { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.cr-outils__selection b { font-variant-numeric: tabular-nums; }
.cr-ligne__declinaison { display: block; margin: 1px 0; font-size: var(--text-xs); color: var(--color-text); line-height: 1.35; }
.cr-ligne__offre-choisie { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--color-brand); white-space: normal; }
.cr-ligne__offre-choisie[hidden], .cr-ligne__autres[hidden], .cr-ligne__au-panier[hidden] { display: none; }
.cr-ligne__autres, .cr-ligne__au-panier { display: block; margin-top: 4px; font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.cr-ligne__autres a { color: var(--color-brand); }
.cr-ligne__au-panier { font-weight: 600; color: var(--color-text); }
.cr-ligne__indisponible { color: var(--color-text-muted); }
.cr-qty[aria-busy="true"] { opacity: 0.65; }
.cr-ligne.is-au-panier > td:first-child { box-shadow: inset 3px 0 0 var(--color-brand); }
.cr-ligne.is-au-panier .cr-qty input { font-weight: 700; color: var(--color-brand); }
.cr-offres-ligne > td { background: var(--color-paper-2); padding: var(--space-sm) var(--space-md); }
.cr-offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-sm) var(--space-md); align-items: start; }
.cr-offres__titre { margin: 0 0 var(--space-2xs); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.cr-offres__liste { list-style: none; margin: 0; padding: 0; }
.cr-offres .pdp-etape__titre { font-size: var(--text-sm); margin-bottom: var(--space-2xs); }
.cr-offres .pdp-etape__numero { display: none; }
.cr-offres[aria-busy="true"], .cr-offres__choix[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.cr-offres__note, .cr-offres__vide { margin: var(--space-2xs) 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.cr-vide { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.cr-vide__catalogue[hidden] { display: none; }

/* Plein écran : le même composant (filtres, lignes chargées, sélection conservés), barre d'outils et en-tête du
   tableau collants, défilement interne ; au mobile, les cartes restent. Sous les fenêtres (2000) et les toasts
   (1200) ; la barre « Ma sélection » reste visible au-dessus (la barre de navigation mobile est recouverte). */
html.cr-plein-ecran-actif, html.cr-plein-ecran-actif body { overflow: hidden; }
.commande-rapide.cr.cr--plein-ecran {
  position: fixed; inset: 0; z-index: 1050; height: 100vh; height: 100dvh; margin: 0;
  padding: 0 0 calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); overflow: auto; overscroll-behavior: contain;
  background: var(--color-paper);
}
body.avec-barre-selection .commande-rapide.cr.cr--plein-ecran { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.commande-rapide.cr--plein-ecran > .shell { max-width: none; padding-inline: var(--space-md); }
.commande-rapide.cr--plein-ecran .cr__haut { position: sticky; top: 0; z-index: 5; padding-top: var(--space-sm); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-line); }
.commande-rapide.cr--plein-ecran .cr__entete { margin-bottom: var(--space-xs); }
.commande-rapide.cr--plein-ecran .sec-head__eyebrow, .commande-rapide.cr--plein-ecran .sec-head__intro { display: none; }
.commande-rapide.cr--plein-ecran .cr-tableau { overflow: visible; border-top: 0; border-radius: 0; }
.commande-rapide.cr--plein-ecran .cr-table thead th { position: sticky; top: var(--cr-haut-h, 0px); z-index: 4; }
.commande-rapide.cr--plein-ecran .cr-ligne__produit { min-width: 340px; }
.commande-rapide.cr--plein-ecran .cr-table td { padding-block: var(--space-2xs); }
html.cr-plein-ecran-actif .barre-selection { z-index: 1060; bottom: 0; }
/* Mode panier : plus de colonne « Action » — la quantité occupe sa place (tableau étroit et cartes). */
@container commande-rapide (max-width: 1000px) {
  .cr--panier .cr-table tr.cr-ligne { grid-template-areas: "favori visuel produit produit produit stock prix" "favori visuel ppc coef total quantite quantite"; }
  .cr--panier .cr-table tr.cr-ligne > td.cr-ligne__quantite { justify-self: end; text-align: right; }
}
@media (max-width: 767.98px) {
  .cr--panier .cr-table tr.cr-ligne { grid-template-areas: "visuel produit favori" "stock stock prix" "ppc ppc coef" "total total total" "quantite quantite quantite"; }
  .cr--panier .cr-table tr.cr-ligne > td.cr-ligne__quantite { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2xs) var(--space-sm); }
  .cr--panier .cr-ligne__composer { flex: 1 1 auto; }
  .cr__entete--compact .cr__actions { margin-left: 0; }
  .cr-outils__selection { flex: 1 1 100%; justify-content: center; }
  .cr-sources { width: 100%; }
  .cr-sources__choix { flex: 1 1 50%; text-align: center; }
  .commande-rapide.cr--plein-ecran > .shell { padding-inline: var(--space-sm); }
  .commande-rapide.cr--plein-ecran .cr__entete { flex-direction: row; align-items: center; justify-content: space-between; }
  .commande-rapide.cr--plein-ecran .sec-head__title { font-size: var(--text-lg); }
  .cr-ligne__autres, .cr-ligne__au-panier { white-space: normal; }
}
/* === Fin Lot L48 === */

/* === Lot L54 === retours client n° 8 : « Mes JustCoins » — historique en accordéon par mois (Bootstrap `collapse`).
   En-tête = bouton pleine largeur (mois, nombre d'opérations, solde net), chevron qui pivote, cible tactile 44 px ;
   le détail gagnés / utilisés reste visible panneau fermé. Commande rapide de l'accueil : bouton « Voir tous les
   produits » sous le tableau (style `.btn-jc` du site sombre, jamais `btn-cta`). */
/* Lot L68 : habillage de « Mon compte » repris dans site.css (section L68). */
.cr-pied__tout { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
/* === Fin Lot L54 === */

/* === Lot L60 === packs : prix d'un composant remisé — fiche pack (le panier : site.css, section L67) */
.pack-composition__barre { color: var(--color-text-muted); text-decoration-thickness: 1px; }
.pack-composition__badge { font-size: 10px; padding: 1px 6px; margin-left: 2px; vertical-align: baseline; }
/* === Fin Lot L60 === */
/* === Lot L55 === logos des transporteurs : repris par le lot L67 (site.css). */
/* === Fin Lot L55 === */
