/* ============================================================
   Dalious — Refonte « Comptoir » (direction 1b, handoff 04/07/2026)
   Source de vérité : design_handoff_refonte_b2b/README.md + maquettes hifi.
   Namespace .cpt-* : aucun sélecteur ne touche l'ancien CSS compilé.
   Chargé après style-*.css et dalious-charte.css.
   ============================================================ */

/* Graisse 800 (maquettes) : pas de fichier ExtraBold — mappée sur Black */
@font-face { font-family: 'Gotham Narrow'; font-weight: 800; font-style: normal;
  src: url('/fonts/gotham/GothamNarrow-Black.woff2') format('woff2'); font-display: swap; }

:root {
  --ink-900: #232323;
  --ink-700: #3d3d3d;
  --ink-500: #6e6e6e;
  --ink-300: #a6a6a6;
  --ink-100: #d9d7d3;
  --paper: #f2f1ef;
  --cream: #ede7dd;
  --cream-border: #d8d1c2;
  --blue-500: #2e74c7;
  --red-500: #e2342c;
  /* Sauge Dalious — système de boutons 7b (05/07) : le cobalt ne reste
     que sur les liens texte, l'action commerce passe en sauge */
  --sage-500: #9ca882;
  --sage-ink: #5d6b42;           /* contraste AA sur pastille claire */
  --sage-100: rgba(156, 168, 130, .18);
  --success: #84984f;
  --warning: #bb9c39;
  --font-display: 'Gotham Narrow', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Mulish', 'Segoe UI', system-ui, sans-serif;
  --radius-s: 8px;
  --radius-card: 14px;
  --shadow-card: 0 8px 24px rgba(35, 35, 35, .07);
  --shadow-card-hover: 0 14px 32px rgba(35, 35, 35, .13);
  --focus-ring: 0 0 0 3px rgba(156, 168, 130, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Primitives communes ---------- */

.cpt-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.cpt-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-900);
  margin: 0;
}

.cpt-tabular { font-variant-numeric: tabular-nums; }

/* Boutons */
.cpt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 180ms var(--ease), transform 180ms var(--ease),
              border-color 180ms var(--ease), background 180ms var(--ease),
              color 180ms var(--ease);
}
.cpt-btn:active { transform: scale(.97); }
.cpt-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* CTA principal (un seul par écran) — sauge pleine, métriques 7b */
.cpt-btn--primary {
  background: var(--sage-500);
  color: #fff;
  padding: 13px 22px;
  font-size: 13px;
  letter-spacing: .03em;
}
.cpt-btn--primary:hover { filter: brightness(.94); color: #fff; }

/* Action répétée (« ＋ Ajouter » listes, « ↓ PDF » factures) — pastille
   sauge claire qui se remplit au survol ; .is-added = feedback AJAX 1,5 s */
.cpt-btn--add {
  background: var(--sage-100);
  color: var(--sage-ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cpt-btn--add:hover { background: var(--sage-500); color: #fff; }
.cpt-btn--add.is-added,
.cpt-btn--primary.is-added { background: var(--sage-500); color: #fff; }

.cpt-btn--ghost {
  background: #fff;
  border-color: var(--ink-100);
  color: var(--ink-700);
  font-weight: 700;
}
.cpt-btn--ghost:hover { border-color: var(--ink-900); color: var(--ink-900); }

.cpt-btn--block { display: flex; width: 100%; }

/* Cartes */
.cpt-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Titre de bloc souligné (eyebrow + filet charbon) */
.cpt-block-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ink-900);
  margin: 0 0 12px;
}

/* Pastille + libellé stock */
.cpt-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.cpt-stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}
.cpt-stock--in { color: var(--success); }
.cpt-stock--low { color: var(--warning); }
.cpt-stock--last { color: var(--red-500); }
.cpt-stock--out { color: var(--ink-300); }

/* Chips statut commande */
.cpt-chip-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
}
.cpt-chip-status--pending { background: rgba(187, 156, 57, .14); color: #8a7b5e; }
.cpt-chip-status--shipped { background: rgba(46, 116, 199, .12); color: var(--blue-500); }
.cpt-chip-status--delivered { background: rgba(35, 35, 35, .08); color: var(--ink-700); }
.cpt-chip-status--validated { background: rgba(132, 152, 79, .14); color: var(--success); }

/* Stepper quantité */
.cpt-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #fff;
}
.cpt-stepper button {
  width: 26px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.cpt-stepper button:hover { background: var(--paper); }
.cpt-stepper input {
  width: 34px;
  border: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}
.cpt-stepper input::-webkit-outer-spin-button,
.cpt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cpt-stepper input:focus { outline: none; }
.cpt-stepper:focus-within { border-color: var(--sage-500); box-shadow: var(--focus-ring); }

/* Champs de formulaire */
.cpt-field { display: flex; flex-direction: column; gap: 6px; }
.cpt-field label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-field input,
.cpt-field select,
.cpt-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-900);
  background: #fff;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-s);
  padding: 10px 13px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.cpt-field input:focus,
.cpt-field select:focus,
.cpt-field textarea:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: var(--focus-ring);
}
.cpt-field input::placeholder { color: var(--ink-300); }

/* Liens d'action */
.cpt-link {
  color: var(--blue-500);
  font-weight: 700;
  text-decoration: none;
}
.cpt-link:hover { color: #1f5fab; }

/* Filet pointillé */
.cpt-dotted { border: 0; border-top: 2px dotted var(--ink-100); margin: 0; }

/* ============================================================
   En-tête commun (pages connectées) — bandeau crème 66 px
   ============================================================ */

.cpt-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
  padding: 0 32px;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-border);
}

.cpt-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  text-decoration: none;
}
.cpt-header__brand img { height: 26px; display: block; }
.cpt-header__brand-sub {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
  border-left: 1px solid var(--ink-100);
  padding-left: 14px;
}

.cpt-header__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-s);
  padding: 0 14px;
  max-width: 520px;
  height: 38px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.cpt-header__search:focus-within { border-color: var(--sage-500); box-shadow: var(--focus-ring); }
.cpt-header__search svg { flex: none; }
/* Loupe = vrai bouton submit (déclenche la recherche au clic, en plus d'Entrée) */
.cpt-header__search-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--ink-300);
  cursor: pointer;
  transition: color 140ms var(--ease);
}
.cpt-header__search-btn:hover,
.cpt-header__search-btn:focus-visible { color: var(--ink-900); }
.cpt-header__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-900);
  box-shadow: none;
  height: 100%;
  padding: 0;
}
.cpt-header__search input:focus { outline: none; box-shadow: none; }
.cpt-header__search input::placeholder { color: var(--ink-300); }
.cpt-header__search kbd {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--ink-500);
  border: 1px solid var(--ink-100);
  border-radius: 4px;
  padding: 1px 5px;
  background: transparent;
}

.cpt-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex: none;
}
.cpt-header__nav > a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
}
.cpt-header__nav > a:hover { color: var(--ink-900); }

/* Sous-menus du nav (repris du CMS) */
.cpt-header__navitem { position: relative; }
.cpt-header__navitem > a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
}
.cpt-header__navitem > a:hover { color: var(--ink-900); }
.cpt-header__subnav {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  transition: opacity 140ms var(--ease);
  z-index: 10;
}
.cpt-header__navitem:hover .cpt-header__subnav { visibility: visible; opacity: 1; }
.cpt-header__subnav ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  min-width: 190px;
}
.cpt-header__subnav li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
}
.cpt-header__subnav li a:hover { background: var(--paper); color: var(--ink-900); }

.cpt-header__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-900);
  border-radius: var(--radius-s);
  padding: 8px 14px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 140ms var(--ease), transform 140ms var(--ease);
}
.cpt-header__cart:hover { background: var(--ink-700); color: #fff; }
.cpt-header__cart:active { transform: scale(.97); }

.cpt-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  flex: none;
  letter-spacing: .02em;
}
.cpt-header__avatar:hover { filter: brightness(1.25); color: #fff; }
/* Initiales toujours blanches : neutralise les couleurs de lien héritées (charte/CSS compilé) */
#desktop_header.cpt-header .cpt-header__avatar,
#desktop_header.cpt-header .cpt-header__avatar:visited,
#desktop_header.cpt-header .cpt-header__avatar:hover { color: #fff !important; }

/* Surcharge du bloc tardif du CSS compilé (#desktop_header { background:#FFF !important; … }) :
   l'id gagne sur .cpt-header, on ré-affirme les propriétés en id+classe. */
#desktop_header.cpt-header {
  background: var(--cream) !important;
  padding: 0 32px !important;
  justify-content: flex-start;
  box-shadow: none;
  border-bottom: 1px solid var(--cream-border);
}

/* Bascule responsive : même seuil que l'existant (tablet_header prend le relais) */
@media (max-width: 1230px) {
  .cpt-header, #desktop_header.cpt-header { display: none !important; }
}
@media (max-width: 1380px) {
  .cpt-header__nav { gap: 14px; }
  .cpt-header { gap: 20px; }
}

/* ============================================================
   Catalogue (réf. 1b) — barre filtres, vue liste tabulaire,
   vue grille (cartes 1a), barre commande sticky
   ============================================================ */

/* Harmonisation « blocs arrondis » (retour Bernard 05/07) : la liste vit dans
   une carte blanche charte sur fond papier, comme les pages légales / panier.
   La filterbar et l'orderbar sont sorties de la carte côté Blade (pleine
   largeur, langage du header). overflow:hidden sûr : plus aucun sticky dedans. */
main.cpt-page { flex: 1 0 auto; background: var(--paper); }
.cpt-catalog {
  background: #fff;
  min-height: 60vh;
  width: min(1360px, calc(100% - 48px));
  margin: 26px auto 56px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* --- Barre de filtres --- */
.cpt-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  /* contenu aligné sur le bord externe de la carte 1360px */
  padding: 14px max(32px, calc((100% - 1360px) / 2));
  border-bottom: 1px solid var(--ink-100);
  background: var(--paper);
  flex-wrap: wrap;
}
.cpt-filterbar__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-right: 4px;
}
.cpt-filterbar__meta {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-500);
  white-space: nowrap;
}

/* Chip active (filtre posé) — sauge tendre, comme le survol des boutons Ajouter
   (choix charte 06/07 : la teinte douce prime sur le contraste AA du texte blanc) */
.cpt-chip--active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage-500);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.cpt-chip--active .cpt-chip__x { opacity: .6; }
.cpt-chip--active:hover .cpt-chip__x { opacity: 1; }

/* Chip fermée (ouvre un menu) + toggle stock */
.cpt-chip--closed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--ink-100);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms var(--ease);
}
.cpt-chip--closed:hover { border-color: var(--ink-900); }
.cpt-chip--closed .cpt-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}
.cpt-chip--closed.is_on { border-color: var(--sage-ink); color: var(--sage-ink); font-weight: 700; }

/* Dropdown de filtre (pattern UX-500 rebrandé) */
.cpt-fdrop { position: relative; }
.cpt-fdrop__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card-hover);
  z-index: 500; /* > orderbar sticky (400), < header (5000) */
  overflow: hidden;
}
.cpt-fdrop.is_open .cpt-fdrop__menu { display: block; }
.cpt-fdrop__search { padding: 10px; border-bottom: 1px solid var(--ink-100); }
.cpt-fdrop__search input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--ink-100);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-body);
}
.cpt-fdrop__search input:focus { outline: none; border-color: var(--sage-500); box-shadow: var(--focus-ring); }
.cpt-fdrop__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}
.cpt-fdrop__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-700);
}
.cpt-fdrop__option:hover { background: var(--paper); }
.cpt-fdrop__option input { width: 16px; height: 16px; accent-color: var(--sage-500); margin: 0; }
.cpt-fdrop__option .cpt-fdrop__num { margin-left: auto; font-size: 12px; color: var(--ink-300); }
.cpt-fdrop__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--sage-500);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
}

/* Switch grille / liste */
.cpt-viewswitch {
  display: inline-flex;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-s);
  overflow: hidden;
  flex: none;
}
.cpt-viewswitch button {
  padding: 6px 10px;
  background: #fff;
  color: var(--ink-500);
  border: 0;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.cpt-viewswitch button.is_active { background: var(--sage-500); color: #fff; }

/* --- Vue liste tabulaire --- */
.cpt-table { padding: 0 32px; }
.cpt-table__head,
.cpt-table__row {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) 130px 110px 90px 90px 150px 110px;
  gap: 12px;
  align-items: center;
}
.cpt-table__head {
  padding: 12px 0 9px;
  border-bottom: 3px solid var(--ink-900);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-table__row {
  padding: 9px 0;
  border-bottom: 2px dotted var(--ink-100);
  transition: background 140ms var(--ease);
}
.cpt-table__row:hover { background: var(--paper); }

.cpt-table__product { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.cpt-table__thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-s);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.cpt-table__thumb img { max-width: 46px; max-height: 48px; object-fit: contain; }
.cpt-table__nameblock { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cpt-table__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cpt-table__product:hover .cpt-table__name { color: var(--blue-500); }
.cpt-table__meta { font-size: 11px; color: var(--ink-500); }
.cpt-table__meta b { color: var(--ink-700); }

.cpt-table__ean { font-size: 11.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.cpt-table__ht {
  text-align: right;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.cpt-table__ttc {
  text-align: right;
  font-size: 12px;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}
.cpt-table__qty { display: flex; justify-content: center; }
.cpt-table__actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
/* Bouton d'ajout compact (maquette 1b) : une seule ligne, jamais de pavé */
.cpt-table__actions .cpt-btn--primary { white-space: nowrap; padding: 7px 14px; font-size: 12px; }

/* Cœur favoris */
.cpt-fav {
  border: 0;
  background: transparent;
  padding: 2px;
  cursor: pointer;
  color: var(--ink-300);
  display: inline-flex;
  transition: color 140ms var(--ease);
}
.cpt-fav:hover, .cpt-fav.is_active { color: var(--red-500); }

/* ≤1280 : masquer la colonne EAN */
@media (max-width: 1280px) {
  .cpt-table__head,
  .cpt-table__row {
    grid-template-columns: minmax(240px, 1.6fr) 110px 90px 90px 150px 110px;
  }
  .cpt-table__head span:nth-child(2),
  .cpt-table__row .cpt-table__ean { display: none; }
}

/* --- Vue grille (cartes 1a) --- */
.cpt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px 32px 0;
}
.cpt-gcard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.cpt-gcard:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.cpt-gcard__imgzone {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cpt-gcard__imgzone img { max-height: 140px; max-width: 80%; object-fit: contain; }
.cpt-gcard__imgzone .cpt-fav { position: absolute; top: 0; right: 0; }
.cpt-gcard__idblock { display: flex; flex-direction: column; gap: 3px; min-height: 58px; }
.cpt-gcard__brand {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-gcard__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  text-decoration: none;
}
.cpt-gcard__name:hover { color: var(--blue-500); }
.cpt-gcard__refs { font-size: 11px; color: var(--ink-300); }
.cpt-gcard__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 2px dotted var(--ink-100);
  padding-top: 10px;
}
.cpt-gcard__ht {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-900);
}
.cpt-gcard__ht-unit { font-size: 11px; color: var(--ink-500); }
.cpt-gcard__ttc { font-size: 11px; color: var(--ink-300); margin-left: auto; }
.cpt-gcard__buy { display: flex; gap: 8px; }
.cpt-gcard__buy .cpt-stepper button { width: 28px; height: 34px; }
.cpt-gcard__buy .cpt-btn { flex: 1; }

@media (max-width: 1500px) { .cpt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .cpt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cpt-grid { grid-template-columns: 1fr; } }

/* --- Vitrine « Nos marques » en liste (même gabarit que le catalogue) --- */
.cpt-brandlist__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 26px 32px 0;
}
.cpt-brandlist__count { font-size: 13px; color: var(--ink-500); }
.cpt-table--brands .cpt-table__head,
.cpt-table--brands .cpt-table__row {
  grid-template-columns: minmax(300px, 1.6fr) 150px 180px;
}
.cpt-table--brands .cpt-table__thumb img { max-width: 42px; max-height: 42px; object-fit: cover; border-radius: 6px; }
.cpt-table--brands .cpt-table__count {
  font-size: 12.5px;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1024px) {
  .cpt-brandlist__head { padding: 18px 16px 0; }
  .cpt-table--brands .cpt-table__row { grid-template-columns: 1fr auto; }
  .cpt-table--brands .cpt-table__count { display: none; }
}

/* --- Brochures / catalogues PDF --- */
.cpt-brochures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px 32px 32px;
}
.cpt-brochures__cover { height: 220px; }
.cpt-brochures__cover img { max-height: 210px; max-width: 92%; object-fit: contain; border-radius: 6px; }
.cpt-brochures .cpt-gcard__buy .cpt-btn { flex: 1; white-space: nowrap; }
@media (max-width: 1200px) { .cpt-brochures { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cpt-brochures { grid-template-columns: 1fr; padding: 16px 16px 24px; } }

/* --- Barre « Commande en cours » sticky --- */
.cpt-orderbar {
  position: sticky;
  bottom: 0;
  z-index: 400;
  background: var(--cream);
  border-top: 1px solid var(--cream-border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.cpt-orderbar__label {
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-500);
}
.cpt-orderbar__detail { font-size: 13.5px; color: var(--ink-700); }
.cpt-orderbar__detail b { color: var(--ink-900); }
.cpt-orderbar__total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-900);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.cpt-orderbar__total small { font-size: 11px; font-weight: 600; color: var(--ink-500); }
.cpt-orderbar .cpt-btn { padding: 11px 22px; font-size: 13px; }

/* --- Pagination --- */
.cpt-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 26px 0;
}
.cpt-pagination a,
.cpt-pagination span {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--ink-100);
  color: var(--ink-700);
  transition: border-color 140ms var(--ease);
}
.cpt-pagination a:hover { border-color: var(--ink-900); color: var(--ink-900); }
.cpt-pagination .is_current {
  background: var(--sage-500);
  color: #fff;
  border-color: var(--sage-500);
  font-weight: 700;
}
.cpt-pagination .is_gap { border: 0; background: transparent; }

/* ≤1024 : le tableau bascule en cartes empilées */
@media (max-width: 1024px) {
  .cpt-filterbar { padding: 12px 16px; }
  .cpt-catalog { width: calc(100% - 24px); margin: 14px auto 36px; }
  .cpt-table { padding: 0 16px; }
  .cpt-table__head { display: none; }
  .cpt-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }
  .cpt-table__ht, .cpt-table__ttc { text-align: left; }
  .cpt-table__qty { justify-content: flex-start; }
  .cpt-table__actions { justify-content: flex-start; }
  .cpt-grid { padding: 18px 16px 0; }
  .cpt-orderbar { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
}

/* ============================================================
   Fiche produit (réf. 2b) — barre contexte + carte d'achat
   ============================================================ */

.cpt-product { background: var(--paper); min-height: 70vh; }

/* Barre contexte sous l'en-tête */
.cpt-pcontext {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--ink-100);
  background: #fff;
  flex-wrap: wrap;
}
.cpt-pcontext__back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
}
.cpt-pcontext__back:hover { color: var(--blue-500); }
.cpt-pcontext__meta { font-size: 12.5px; color: var(--ink-500); }
.cpt-pcontext__meta b { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.cpt-pcontext__meta:first-of-type { margin-left: auto; }

/* Grille principale */
.cpt-product__grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 24px;
  padding: 24px 32px 40px;
}
.cpt-product__col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cpt-product__col--right { gap: 16px; }

/* Carte image */
.cpt-product__imgcard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpt-product__imgcard img {
  max-height: 440px;
  max-width: 60%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(35, 35, 35, .16));
}

/* Carte ingrédients */
.cpt-product__ingredients {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}
.cpt-product__ingredients .cpt-block-title { display: inline-block; border-bottom-width: 3px; margin-bottom: 0; }
.cpt-product__ingredients p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 12px 0 0;
}

/* Carte d'achat */
.cpt-buycard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cpt-buycard__name {
  margin: -8px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-900);
  line-height: 1.3;
}
.cpt-buycard__pricerow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 2px dotted var(--ink-100);
  padding-top: 14px;
}
.cpt-buycard__ht {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.cpt-buycard__ht-unit { font-size: 12px; color: var(--ink-500); }
.cpt-buycard__ttc { font-size: 12.5px; color: var(--ink-300); margin-left: auto; font-variant-numeric: tabular-nums; }

.cpt-buycard__qtylabel {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-buycard__qtylabel small {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-300);
}
.cpt-buycard__qtyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cpt-buycard .cpt-stepper { border-width: 1.5px; }
.cpt-buycard .cpt-stepper button { width: 38px; height: 44px; font-size: 17px; }
.cpt-buycard .cpt-stepper input { width: 52px; font-size: 17px; font-weight: 800; }

.cpt-buycard__tiers { display: flex; gap: 7px; }
.cpt-buycard__tiers button {
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-s);
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-700);
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms var(--ease);
}
.cpt-buycard__tiers button:hover,
.cpt-buycard__tiers button.active { border-color: var(--ink-900); color: var(--ink-900); }

.cpt-buycard__total {
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cpt-buycard__total-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-buycard__total-value {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.cpt-buycard__total-unit { font-size: 11.5px; color: var(--ink-500); }

.cpt-buycard__actions { display: flex; gap: 10px; }
.cpt-buycard__actions .cpt-btn--primary { flex: 1; padding: 14px; font-size: 14px; }
.cpt-buycard__favbtn {
  width: 52px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  color: var(--ink-900);
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.cpt-buycard__favbtn:hover { border-color: var(--ink-900); }
.cpt-buycard__favbtn.is_active { color: var(--red-500); border-color: var(--red-500); }

/* Cartes secondaires : documents, méta */
.cpt-product__docs,
.cpt-product__metacard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 24px;
}
.cpt-product__docs { display: flex; flex-direction: column; gap: 11px; }
.cpt-product__docs a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-500);
  text-decoration: none;
}
.cpt-product__docs a:hover { color: #1f5fab; }
.cpt-product__docs a + a { border-top: 2px dotted var(--ink-100); padding-top: 11px; }
.cpt-product__metacard { display: flex; gap: 22px; font-size: 12.5px; color: var(--ink-700); flex-wrap: wrap; }
.cpt-product__metacard b { color: var(--ink-900); }

@media (max-width: 1200px) {
  .cpt-product__grid { grid-template-columns: 1fr; padding: 20px 16px 32px; }
  .cpt-product__imgcard { height: 380px; }
  .cpt-pcontext { padding: 14px 16px; }
  .cpt-pcontext__meta:first-of-type { margin-left: 0; }
}

/* ============================================================
   Panier (réf. 2c) — stepper d'étapes + lignes + récapitulatif
   ============================================================ */

.cpt-cart { background: var(--paper); min-height: 70vh; }

/* Stepper d'étapes ① ② ③ */
.cpt-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 32px 6px;
  flex-wrap: wrap;
}
.cpt-steps__item { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.cpt-steps__dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid var(--ink-300);
  color: var(--ink-500);
  background: transparent;
}
.cpt-steps__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-steps__item.is_active .cpt-steps__dot,
.cpt-steps__item.is_past .cpt-steps__dot {
  background: var(--sage-500);
  border-color: var(--sage-500);
  color: #fff;
  font-weight: 800;
}
.cpt-steps__item.is_active .cpt-steps__label { color: var(--ink-900); font-weight: 800; }
.cpt-steps__sep { width: 70px; height: 2px; background: var(--ink-100); }

/* Grille panier */
.cpt-cart__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 22px 32px 44px;
  align-items: start;
}

/* Carte lignes */
.cpt-cart__lines {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 6px 26px 14px;
}
.cpt-cart__head,
.cpt-cart__row {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) 150px 110px 110px 40px;
  gap: 12px;
  align-items: center;
}
.cpt-cart__head {
  padding: 16px 0 10px;
  border-bottom: 3px solid var(--ink-900);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-cart__row { padding: 13px 0; border-bottom: 2px dotted var(--ink-100); }

.cpt-cart__product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cpt-cart__thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.cpt-cart__thumb img { max-width: 42px; max-height: 46px; object-fit: contain; }
.cpt-cart__nameblock { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cpt-cart__name { font-size: 13.5px; font-weight: 700; color: var(--ink-900); text-decoration: none; }
.cpt-cart__name:hover { color: var(--blue-500); }
.cpt-cart__meta { font-size: 11px; color: var(--ink-500); }

.cpt-cart__qty { display: flex; justify-content: center; }
.cpt-cart__qty .cpt-stepper button { width: 28px; height: 32px; }
.cpt-cart__qty .cpt-stepper input { width: 38px; font-size: 13.5px; font-weight: 800; }
.cpt-cart__ht {
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.cpt-cart__ttc { text-align: right; font-size: 12.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.cpt-cart__remove {
  border: 0;
  background: transparent;
  color: var(--ink-300);
  font-size: 15px;
  cursor: pointer;
  text-align: right;
  padding: 2px;
  transition: color 140ms var(--ease);
}
.cpt-cart__remove:hover { color: var(--red-500); }
.cpt-cart__back { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 6px; font-size: 13px; }
.cpt-cart__empty { padding: 32px 0; font-size: 14px; color: var(--ink-500); }

/* Variante favoris : 2 actions en dernière colonne */
.cpt-cart--wish .cpt-cart__head,
.cpt-cart--wish .cpt-cart__row {
  grid-template-columns: minmax(280px, 1.7fr) 150px 110px 110px 140px;
}
.cpt-cart--wish .cpt-cart__actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cpt-cart--wish .cpt-cart__actions .cpt-btn { white-space: nowrap; padding: 7px 12px; font-size: 12px; }

/* Carte récapitulatif */
.cpt-cart__recap {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: sticky;
  top: 86px;
}
.cpt-cart__recap-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-900);
  border-bottom: 3px solid var(--ink-900);
  padding-bottom: 11px;
}
.cpt-cart__recap-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-700);
}
.cpt-cart__recap-line b { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.cpt-cart__recap-line--sep { border-top: 2px dotted var(--ink-100); padding-top: 12px; }
.cpt-cart__recap-ttc {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px dotted var(--ink-100);
  padding-top: 12px;
}
.cpt-cart__recap-ttc-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-cart__recap-ttc-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.cpt-cart__recap .cpt-btn--primary { padding: 14px; font-size: 14px; margin-top: 4px; }
.cpt-cart__recap-note { font-size: 11.5px; color: var(--ink-300); text-align: center; line-height: 1.5; }

@media (max-width: 1100px) {
  .cpt-cart__grid { grid-template-columns: 1fr; padding: 18px 16px 32px; }
  .cpt-cart__recap { position: static; }
  .cpt-cart__head { display: none; }
  .cpt-cart__row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .cpt-cart__product { grid-column: 1 / -1; }
  .cpt-cart__ht, .cpt-cart__ttc { text-align: left; }
}

/* ============================================================
   Espace client (réf. 3a/3b) — nav latérale + dashboard + documents
   ============================================================ */

.cpt-account { background: var(--paper); min-height: 70vh; }
.cpt-account__grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: 26px 32px 44px;
  align-items: start;
}

/* Nav latérale */
.cpt-anav { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; }
.cpt-anav__card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 16px;
}
.cpt-anav__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px dotted var(--ink-100);
  padding-bottom: 16px;
}
.cpt-anav__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--sage-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}
.cpt-anav__who { display: flex; flex-direction: column; min-width: 0; }
.cpt-anav__name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cpt-anav__status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.cpt-anav__status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.cpt-anav__status--ok { color: var(--success); }
.cpt-anav__status--pending { color: var(--warning); }
.cpt-anav__status--blocked { color: var(--red-500); }

.cpt-anav__items { display: flex; flex-direction: column; margin-top: 8px; }
.cpt-anav__items a {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  padding: 10px 12px;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.cpt-anav__items a:hover { background: var(--paper); color: var(--ink-900); }
.cpt-anav__items a.is_active { background: var(--sage-500); color: #fff; font-weight: 800; }
.cpt-anav__badge {
  margin-left: auto;
  font-size: 10.5px;
  background: rgba(46, 116, 199, .12);
  color: var(--blue-500);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}
.cpt-anav__logout {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-500);
  padding: 0 8px;
  text-align: left;
  cursor: pointer;
}
.cpt-anav__logout:hover { color: var(--ink-900); }

/* Main */
.cpt-amain { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cpt-amain__titlerow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cpt-amain__titlerow .cpt-link { margin-left: auto; font-size: 12.5px; }

/* Cartes résumé */
.cpt-asummary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cpt-asummary__card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.cpt-asummary__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-asummary__value { font-size: 13px; font-weight: 700; color: var(--ink-900); overflow-wrap: break-word; }
.cpt-asummary__value--big {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cpt-asummary__value--big small { font-size: 11px; color: var(--ink-500); font-weight: 600; }
.cpt-asummary__sub { font-size: 12px; color: var(--ink-500); }

/* Carte tableau (commandes / factures / BL) */
.cpt-atable {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 6px 26px 18px;
}
.cpt-atable__titlerow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0 12px;
  border-bottom: 3px solid var(--ink-900);
}
.cpt-atable__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.cpt-atable__titlerow .cpt-link { margin-left: auto; font-size: 12.5px; }

.cpt-atable__head,
.cpt-atable__row { display: grid; gap: 12px; align-items: center; }
.cpt-atable__head {
  padding: 12px 0 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.cpt-atable__row { padding: 11px 0; border-top: 2px dotted var(--ink-100); transition: background 140ms var(--ease); }
.cpt-atable__row:hover { background: var(--paper); }

.cpt-atable--orders .cpt-atable__head,
.cpt-atable--orders .cpt-atable__row { grid-template-columns: 110px 1.4fr 170px 110px 110px 130px; }
.cpt-atable--invoices .cpt-atable__head,
.cpt-atable--invoices .cpt-atable__row { grid-template-columns: 180px 130px 1fr 130px 230px; }

/* Aperçu PDF dépliable (factures / BL du hub documents) */
.cpt-atable__expand { padding: 4px 0 16px; }
.cpt-atable__expand iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-s);
  background: #fff;
}

.cpt-atable__date { font-size: 12.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.cpt-atable__num { font-size: 13px; font-weight: 700; color: var(--ink-900); }
.cpt-atable__ht { text-align: right; font-size: 13.5px; font-weight: 800; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.cpt-atable__ttc { text-align: right; font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.cpt-atable__actions { display: flex; gap: 8px; justify-content: flex-end; }
.cpt-atable__actions .cpt-btn--ghost,
.cpt-atable__actions .cpt-btn--primary { padding: 5px 11px; font-size: 11.5px; }

/* Onglets pills documents */
.cpt-tabs { display: flex; gap: 8px; margin-left: auto; }
.cpt-tabs button {
  background: #fff;
  border: 1px solid var(--ink-100);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms var(--ease);
}
.cpt-tabs button:hover { border-color: var(--ink-900); }
.cpt-tabs button.is_active {
  background: var(--sage-500);
  border-color: var(--sage-500);
  color: #fff;
  font-weight: 800;
}

/* Justificatifs (KBIS / RIB) */
.cpt-docs__justif { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cpt-jcard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cpt-jcard__titlerow { display: flex; align-items: center; gap: 10px; }
.cpt-jcard__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.cpt-jcard__titlerow .cpt-anav__status { margin-left: auto; }
.cpt-jcard__file {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 12px 14px;
}
.cpt-jcard__pdficon {
  width: 34px;
  height: 40px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--red-500);
  flex: none;
}
.cpt-jcard__fileinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cpt-jcard__filename {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cpt-jcard__filemeta { font-size: 11px; color: var(--ink-500); }
.cpt-jcard__file .cpt-link,
.cpt-jcard__file form { margin-left: auto; }
.cpt-jcard__file form button {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: var(--red-500);
  cursor: pointer;
  padding: 0;
}
.cpt-jcard__upload {
  border: 2px dashed var(--ink-100);
  border-radius: var(--radius-s);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-500);
}
.cpt-jcard__upload input[type="file"] { font-size: 12px; max-width: 100%; }
.cpt-jcard__reject {
  border-left: 3px solid var(--red-500);
  background: var(--paper);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-700);
}

/* Cartes commande (page Mes commandes) */
.cpt-ordercard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cpt-ordercard__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--ink-900);
  padding-bottom: 12px;
}
.cpt-ordercard__ref { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-900); }
.cpt-ordercard__date { font-size: 12.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.cpt-ordercard__totals {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.cpt-ordercard__ht { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink-900); }
.cpt-ordercard__ttc { font-size: 12px; color: var(--ink-500); }
.cpt-ordercard__lines { display: flex; flex-direction: column; }
.cpt-ordercard__line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 2px dotted var(--ink-100);
  font-size: 13px;
}
.cpt-ordercard__line:last-child { border-bottom: 0; }
.cpt-ordercard__qty { color: var(--ink-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cpt-ordercard__linetotal { margin-left: auto; font-weight: 800; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.cpt-ordercard__foot {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 2px dotted var(--ink-100);
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.cpt-ordercard__foot b { color: var(--ink-900); }
.cpt-ordercard__docs { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Formulaires en carte (profil & adresses) */
.cpt-formcard {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 26px 26px;
}
.cpt-formcard .cpt-block-title { display: inline-block; }
.cpt-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.cpt-form__grid .cpt-field--full { grid-column: 1 / -1; }
.cpt-field select {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-900);
  background: #fff;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-s);
  padding: 10px 13px;
}
@media (max-width: 700px) {
  .cpt-form__grid { grid-template-columns: 1fr; }
}

/* Encart info */
.cpt-infobox {
  background: rgba(46, 116, 199, .07);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-700);
}
.cpt-infobox b { color: var(--ink-900); }

/* Bannière statut compte (Comptoir) */
.cpt-banner {
  border-left: 3px solid var(--warning);
  background: #fff;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  box-shadow: var(--shadow-card);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cpt-banner b { color: var(--ink-900); display: block; margin-bottom: 2px; }
.cpt-banner--info { border-left-color: var(--blue-500); }
.cpt-banner--ok { border-left-color: var(--success); }
.cpt-banner .cpt-btn { margin-left: auto; }

@media (max-width: 1100px) {
  .cpt-account__grid { grid-template-columns: 1fr; padding: 18px 16px 32px; }
  .cpt-anav { position: static; }
  .cpt-asummary { grid-template-columns: 1fr; }
  .cpt-docs__justif { grid-template-columns: 1fr; }
  .cpt-atable--orders .cpt-atable__head { display: none; }
  .cpt-atable--orders .cpt-atable__row { grid-template-columns: 1fr 1fr; }
  .cpt-atable--invoices .cpt-atable__head { display: none; }
  .cpt-atable--invoices .cpt-atable__row { grid-template-columns: 1fr 1fr; }
  .cpt-atable__ht, .cpt-atable__ttc { text-align: left; }
  .cpt-atable__actions { justify-content: flex-start; }
  .cpt-tabs { margin-left: 0; }
}

/* ============================================================
   Login (réf. 2a) — écran scindé panneau crème / carte connexion
   ============================================================ */

body.cpt-auth { margin: 0; font-family: var(--font-body); overflow-x: hidden; }

.cpt-login {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 100vh;
  position: relative; /* ancre du portrait 8c */
}

/* Portrait fantôme dans le panneau gauche (design 8c final).
   Réglages fins : opacity, width/height, background-position (cadrage). */
.login-portrait {
  position: absolute;
  left: 24%;                        /* dans le panneau gauche */
  top: 38%;                         /* le vide entre logo et slogan */
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background-image: url('/img/princesse.jpg');
  background-size: 820px auto;      /* zoom sur le visage */
  background-position: 50% 16%;     /* cadrage au niveau du regard */
  mix-blend-mode: multiply;         /* fond de l'œuvre fondu dans le crème */
  opacity: .32;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 22%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 22%, transparent 68%);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .login-portrait { display: none; }
}

.cpt-login__brand {
  background: var(--cream);
  padding: 56px;
  display: flex;
  flex-direction: column;
}
.cpt-login__brand > img { height: 64px; display: block; align-self: flex-start; }
.cpt-login__tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: #8a7b5e;
  margin-top: 12px;
}
.cpt-login__pitch {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cpt-login__pitch-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.cpt-login__pitch-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 360px;
}
/* Hero « partenaire K-Beauty en officine » (prompt 05/07) : badges
   informatifs (pas des boutons — chips neutres) + signature Cormorant,
   reprend le style de l'ex-tagline sous le logo. */
.cpt-login__badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.cpt-login__badges li {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--ink-700); background: #fff;
  border: 1px solid var(--cream-border); border-radius: 999px;
  padding: 6px 12px; white-space: nowrap;
}
.cpt-login__signature {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 17px; color: #8a7b5e;
}
.cpt-login__bars { display: flex; gap: 8px; margin-top: 6px; }
.cpt-login__bars span { height: 3px; width: 44px; }
.cpt-login__bars span:first-child { background: var(--blue-500); }
.cpt-login__bars span:last-child { background: var(--red-500); }

.cpt-login__panel {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
}

.cpt-login__card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(35, 35, 35, .09);
  position: relative;
  z-index: 2; /* au-dessus du portrait 8c */
  padding: 44px 48px;
  width: 420px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}
.cpt-login__card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.cpt-login__card-sub { font-size: 13px; color: var(--ink-500); margin-top: -10px; }

.cpt-login__card .cpt-field input { padding: 12px 14px; }

.cpt-login__pwd { position: relative; }
.cpt-login__pwd input { width: 100%; box-sizing: border-box; padding-right: 74px; }
.cpt-login__pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
}

.cpt-login__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-700);
}
.cpt-login__row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sage-500);
  margin: 0;
}
.cpt-login__row .cpt-link { margin-left: auto; font-size: 12.5px; }

.cpt-login__card .cpt-btn--primary {
  padding: 13px;
  font-size: 14px;
  letter-spacing: .02em;
}

.cpt-login__register {
  border-top: 2px dotted var(--ink-100);
  padding-top: 16px;
  font-size: 13px;
  color: var(--ink-500);
  text-align: center;
}
.cpt-login__register a {
  font-weight: 800;
  color: var(--ink-900);
  text-decoration: none;
}
.cpt-login__register a:hover { color: var(--blue-500); }

/* Erreurs : filet rouge discret, jamais de fond rouge */
.cpt-login__card .cpt-alert {
  border-left: 3px solid var(--red-500);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-700);
  background: var(--paper);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.cpt-login__card .cpt-alert--success { border-left-color: var(--success); }

@media (max-width: 900px) {
  .cpt-login { grid-template-columns: 1fr; }
  .cpt-login__brand { padding: 32px; }
  .cpt-login__brand > img { height: 44px; }
  .cpt-login__pitch { margin-top: 24px; }
  .cpt-login__panel { padding: 32px 16px; }
  .cpt-login__card { padding: 32px 24px; }
}

/* Focus clavier global sur les éléments interactifs cpt */
.cpt-link:focus-visible,
.cpt-header__nav a:focus-visible,
.cpt-header__cart:focus-visible,
.cpt-header__avatar:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---- Bulle d'aide (parcours client, réutilisable) ---------------------- */
.cpt-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  margin-left: 6px;
  user-select: none;
}
.cpt-help::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: var(--paper);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  width: max-content;
  max-width: 260px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 30;
}
.cpt-help:hover::after,
.cpt-help:focus::after {
  opacity: 1;
}

/* ---- Étapes du parcours BDC --------------------------------------------- */
.cpt-steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: cpt-step;
}
.cpt-steps li {
  flex: 1 1 180px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-700);
}
.cpt-steps li::before {
  counter-increment: cpt-step;
  content: counter(cpt-step);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
