/* ==========================================================================
   ABSA METAL — Click & collect (catalogue, chariot, confirmation)
   Fichier séparé : modifier style.css ne le casse pas. Reprend les jetons
   de couleur et d'espacement définis dans :root de style.css.
   ========================================================================== */

/* En-tête : bouton chariot ------------------------------------------------ */
.header-cart {
  position: relative; order: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: 0 .7rem;
  color: var(--c-graphite); text-decoration: none; font-weight: 650;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease);
}
.header-cart:hover { border-color: var(--c-graphite); color: var(--c-graphite); text-decoration: none; }
.header-cart svg { width: 22px; height: 22px; }
.header-cart__label { display: none; }
.header-cart__count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--c-orange); color: var(--c-graphite);
  font-size: .8rem; font-weight: 800; border-radius: 11px; line-height: 1;
}
.header-cart__count[hidden] { display: none; }
.logo { margin-right: auto; }
@media (min-width: 1024px) {
  .header-cart { order: 3; }
  .header-cart__label { display: inline; }
  .btn.header-cta { order: 4; }
}
@media (min-width: 1024px) {
  .nav-link, .btn.header-cta { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .header-cart__label { display: none; }
  .header-cart { padding: 0 .55rem; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-link { padding-inline: .45rem; font-size: .95rem; }
  .btn.header-cta { padding-inline: 1rem; }
}

/* Étapes sous le titre ---------------------------------------------------- */
.page-hero--court { padding-bottom: var(--s-5); }
.page-hero--court p { max-width: 46rem; }
.cc-etapes {
  list-style: none; counter-reset: e; padding: 0; margin: var(--s-5) 0 0;
  display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cc-etapes li { counter-increment: e; position: relative; padding-left: 2.75rem; margin: 0; color: var(--c-acier-clair); min-height: 1.9rem; }
.cc-etapes li::before {
  content: counter(e); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border: 1.5px solid var(--c-orange); color: var(--c-orange-vif); font-weight: 800; border-radius: 50%;
}
.cc-etapes strong { color: var(--c-blanc); }

/* Barre d'outils ---------------------------------------------------------- */
.cc-entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }
.cc-entete h2 { margin: 0; }
.cc-tarif { margin: 0; color: var(--text-soft); font-size: var(--fs-small); }
.cc-provisoire { display: block; padding: .6rem .9rem; margin: 0 0 var(--s-4); }
.cc-provisoire[hidden] { display: none; }
.cc-recherche { display: flex; flex-direction: column; gap: .35rem; max-width: 560px; margin-bottom: var(--s-4); }
.cc-recherche label { font-weight: 600; font-size: var(--fs-small); color: var(--text); }

/* Niveau 1 : rubriques à icône */
.rubs { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .rubs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .rubs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rub {
  font: inherit; cursor: pointer; text-align: left; color: var(--c-graphite);
  display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-card);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.rub:hover { border-color: var(--c-graphite); transform: translateY(-2px); }
.rub[aria-pressed="true"] { border-color: var(--c-orange); box-shadow: inset 0 0 0 2px var(--c-orange); }
.rubs.is-choisi .rub[aria-pressed="false"] { opacity: .72; }
.rubs.is-choisi .rub[aria-pressed="false"]:hover { opacity: 1; }
.rub__img { display: block; background: #f4f5f6; }
.rub__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.rub__txt { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .85rem .85rem; }
.rub__nom { font-weight: 750; font-size: 1.08rem; line-height: 1.2; font-stretch: 105%; }
.rub__sous { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.35; }
.rub__nb { font-size: var(--fs-xs); font-weight: 650; color: var(--accent-text); margin-top: .2rem; }
.rubs.is-choisi .rub__img img { aspect-ratio: 2 / 1; }
@media (prefers-reduced-motion: reduce) { .rub:hover { transform: none; } }

/* Niveau 2 : types (IPE, IPN…) */
.sous-menu { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 2px solid var(--c-graphite); scroll-margin-top: calc(var(--header-h) + 1rem); }
.sous-menu[hidden], .cc-zone-produit[hidden] { display: none; }
.sous__titre { font-size: 1.35rem; margin: 0 0 var(--s-3); color: var(--c-graphite); }
.sous__liste { display: flex; flex-wrap: wrap; gap: .6rem; }
.sous {
  font: inherit; cursor: pointer; color: var(--c-graphite);
  display: grid; grid-template-columns: 72px auto; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; text-align: left;
  min-height: 64px; padding: .35rem 1rem .35rem .35rem;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-card);
}
.sous img { grid-row: 1 / 3; width: 72px; height: 48px; object-fit: contain; background: #f4f5f6; border-radius: var(--radius); }
.sous__nom { font-weight: 750; line-height: 1.15; align-self: end; }
.sous__nb { font-size: var(--fs-xs); color: var(--text-soft); align-self: start; }
.sous:hover { border-color: var(--c-graphite); }
.sous[aria-pressed="true"] { background: var(--c-graphite); border-color: var(--c-graphite); color: var(--c-blanc); }
.sous[aria-pressed="true"] .sous__nb { color: var(--c-acier-clair); }
@media (max-width: 639px) { .sous__liste { display: grid; grid-template-columns: 1fr 1fr; } .sous { padding-right: .5rem; } }

/* Niveau 3 : fiche du type et tableau des dimensions */
.cc-zone-produit { margin-top: var(--s-4); scroll-margin-top: calc(var(--header-h) + 1rem); }
.fiche { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); margin-bottom: var(--s-4); }
.fiche__tete { display: grid; gap: var(--s-3); padding: var(--s-4); align-items: center; border-bottom: 1px solid var(--line); }
.fiche__tete img { width: 100%; max-width: 240px; aspect-ratio: 3 / 2; object-fit: contain; background: #f4f5f6; border-radius: var(--radius); }
.fiche__titre { font-size: 1.6rem; margin: 0 0 .35rem; }
.fiche__desc { color: var(--text-soft); margin: 0 0 .5rem; max-width: 60ch; }
.fiche__prix { margin: 0; font-weight: 650; color: var(--text); }
@media (min-width: 640px) { .fiche__tete { grid-template-columns: 240px 1fr; } }
.dims-wrap { padding: 0 var(--s-4) var(--s-3); }
.dims { width: 100%; border-collapse: collapse; color: var(--text); font-size: var(--fs-small); }
.dims thead th { text-align: left; font-size: var(--fs-xs); font-weight: 650; color: var(--text-soft); padding: .7rem .5rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dims tbody th, .dims td { padding: .5rem; border-bottom: 1px solid #e3e6e8; vertical-align: middle; text-align: left; }
.dims tbody th { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.dims tbody tr:hover { background: #fafbfb; }
.dims tbody tr.is-ajoute { background: #e7f2eb; }
.dims__prix { font-weight: 750; white-space: nowrap; }
.dims td { white-space: nowrap; }
.dims__saisie { display: flex; gap: .4rem; }
.dims__champ { display: flex; flex-direction: column; gap: .1rem; font-size: var(--fs-xs); color: var(--text-soft); font-weight: 600; }
.dims__champ input { width: 5.2rem; min-height: 42px; padding: .35rem .5rem; }
.dims__total strong { display: block; }
.dims__total small { color: var(--text-soft); }
.dims__ajout { min-height: 42px; padding: .4rem .9rem; gap: .4rem; white-space: nowrap; }
.dims__ajout:disabled { opacity: .45; cursor: not-allowed; }
.dims__ajout.is-ajoute { background: var(--c-succes); color: var(--c-blanc); }
.dims .field__error { white-space: normal; margin: .25rem 0 0; font-size: var(--fs-xs); }
/* Mobile : chaque dimension devient une carte */
@media (max-width: 959px) {
  .dims-wrap { padding: 0 var(--s-3) var(--s-3); }
  .dims thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dims, .dims tbody { display: block; min-width: 0; }
  .dims tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .2rem .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .dims tbody th, .dims td { border: 0; padding: 0; white-space: normal; }
  .dims tbody th { grid-column: 1 / -1; font-size: 1.1rem; }
  .dims td[data-label]::before { content: attr(data-label) " : "; color: var(--text-soft); font-size: var(--fs-xs); }
  .dims__saisie, .dims__action { grid-column: 1 / -1; }
  .dims__saisie { margin-top: .4rem; }
  .dims__saisie .dims__champ { flex: 1; }
  .dims__champ input { width: 100%; }
  .dims__total { grid-column: 1 / -1; }
  .dims__total strong, .dims__total small { display: inline; margin-right: .4rem; }
  .dims__ajout { width: 100%; margin-top: .3rem; }
}

/* Cartes produit ---------------------------------------------------------- */
.pcard[hidden] { display: none; }
.pcard .card__media img { aspect-ratio: 3 / 2; object-fit: contain; background: #f4f5f6; }
.pcard:hover .card__media img { transform: none; }
.pcard__body { gap: 0; }
.pcard__groupe { margin: 0 0 .25rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; color: var(--accent-text) !important; }
.pcard__body > p:not([class]) { font-size: var(--fs-small); margin: 0 0 var(--s-3); }
.pcard__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; padding-top: var(--s-3); border-top: 1px dashed var(--line); color: var(--text); }
.pcard__prix strong { font-size: 1.6rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; }
.pcard__prix span { color: var(--text-soft); }
.pcard__ttc { flex-basis: 100%; font-size: var(--fs-small); }
.pcard__stock { margin: .35rem 0 var(--s-3) !important; font-size: var(--fs-small); font-weight: 600; }
.pcard__stock--stock { color: var(--c-succes) !important; }
.pcard__stock--commande { color: var(--accent-text) !important; }
.pcard__stock--rupture { color: var(--c-erreur) !important; }
.pc-champs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pc-champ { display: flex; flex-direction: column; gap: .25rem; }
.pc-champ--large { grid-column: 1 / -1; }
.pc-champ label { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.pc-champ input, .pc-champ select { min-height: 46px; padding: .5rem .7rem; }
.pcard__calc { margin: .75rem 0 0 !important; font-size: var(--fs-small); min-height: 1.5em; }
.pcard__ajout { margin-top: auto; width: 100%; }
.pcard .field__error { margin-top: .5rem; }
.pcard form > .field__error:empty { display: none; }
.pcard__body .pc-champs { margin-bottom: 0; }
.pcard__ajout { margin-top: var(--s-3); }
.pcard__ajout.is-ajoute { background: var(--c-succes); color: var(--c-blanc); }
.pcard__ajout.is-ajoute::after { content: " ✓"; }

/* Notification « ajouté au chariot » */
.cc-toast {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  max-width: 560px; margin-inline: auto; padding: .75rem .75rem .75rem 1.1rem;
  background: var(--c-graphite); color: var(--c-blanc); border-radius: var(--radius-card);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.45);
}
.cc-toast[hidden] { display: none; }
.cc-toast p { margin: 0; flex: 1 1 220px; }
.cc-toast .btn { min-height: 44px; }

/* Chariot ------------------------------------------------------------------ */
.cc-panier { display: grid; gap: var(--s-5); }
.cc-panier[hidden] { display: none; }
/* Lignes compactes : une ligne par article sur ordinateur, deux sur téléphone */
.lignes__tete { display: none; }
.lignes { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--c-graphite); }
.lignes__groupe {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap;
  margin: 0; padding: .55rem .6rem .45rem; background: var(--bg-alt); border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-graphite);
}
.lignes__groupe span + span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ligne {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .35rem .7rem; align-items: center;
  padding: .55rem .25rem; margin: 0; border-bottom: 1px solid #e3e6e8; color: var(--text); font-size: .9rem; line-height: 1.3;
}
.ligne:nth-child(even of .ligne) { background: #fafbfb; }
.ligne__img { grid-row: 1; width: 40px; height: 28px; object-fit: contain; background: #f1f3f4; border-radius: 2px; }
.ligne__info { min-width: 0; }
.ligne__info p { margin: 0; }
.ligne__nom { font-size: .92rem; }
.ligne__nom strong { font-weight: 700; }
.ligne__var { color: var(--text); font-weight: 500; }
.ligne__detail { font-size: .78rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ligne__champs { grid-column: 1 / 3; display: flex; gap: .4rem .9rem; flex-wrap: wrap; padding-left: 0; }
.ligne__champ { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; color: var(--text-soft); }
.ligne__champ input { width: 3.9rem; min-height: 38px; padding: .25rem .45rem; font-size: .92rem; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.ligne__total { grid-column: 3; grid-row: 1; margin: 0; font-weight: 800; font-size: .98rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ligne__suppr {
  grid-column: 3; grid-row: 2; justify-self: end; width: 38px; height: 38px; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: var(--radius); color: var(--text-soft); cursor: pointer;
}
.ligne__suppr:hover, .ligne__suppr:focus-visible { border-color: var(--c-erreur); color: var(--c-erreur); }
.ligne__suppr svg { width: 18px; height: 18px; }
@media (min-width: 760px) {
  .lignes__tete, .ligne { grid-template-columns: 48px minmax(0, 1fr) 10.2rem 7.4rem 36px; }
  .lignes__tete {
    display: grid; gap: .7rem; padding: 0 .25rem .4rem; font-size: var(--fs-xs); font-weight: 650; color: var(--text-soft);
  }
  .lignes__tete > span:first-child { grid-column: 1 / 3; }
  .lignes__tete > span:nth-child(3) { text-align: right; }
  .lignes__tete small { font-weight: 500; margin-left: .3rem; }
  .ligne { padding: .4rem .25rem; }
  .ligne__img { width: 48px; height: 32px; }
  .ligne__champs { grid-column: auto; flex-wrap: nowrap; }
  .ligne__champ { position: relative; }
  .ligne__lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ligne__champ input { width: 4.8rem; min-height: 36px; }
  .ligne__total, .ligne__suppr { grid-column: auto; grid-row: auto; }
  .ligne__suppr { width: 36px; height: 36px; }
}

/* Barre de total collante (téléphone) */
.cc-barre { display: none; }
@media (max-width: 1023.98px) {
  .cc-barre {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--c-graphite); color: #fff;
    box-shadow: 0 -10px 30px -12px rgba(0,0,0,.5); transition: transform .2s ease;
  }
  .cc-barre.is-cache { transform: translateY(110%); }
  .cc-barre span { display: grid; line-height: 1.15; }
  .cc-barre small { color: var(--c-acier-clair); font-size: var(--fs-xs); }
  .cc-barre small span { display: inline; }
  .cc-barre strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
  .cc-barre .btn { min-height: 44px; }
  .cc-panier { padding-bottom: 4rem; }
}
@media print { .cc-barre { display: none !important; } }
.cc-conseil { margin: var(--s-3) 0 0; padding: .75rem 1rem; background: #fff4e8; border-left: 3px solid var(--c-orange); color: var(--c-graphite); }
.cc-conseil[hidden] { display: none; }
.cc-vider { margin-top: var(--s-4); min-height: 44px; }

.cc-h3 { font-size: 1.5rem; margin: 0 0 var(--s-3); }
.cc-panier__recap { align-self: start; padding: var(--s-4); background: var(--bg-alt); border-radius: var(--radius-card); }
.recap { margin: 0; color: var(--text); }
.recap > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.recap dt { color: var(--text-soft); }
.recap dd { margin: 0; font-weight: 650; text-align: right; }
.recap .recap__ttc dt { color: var(--text); font-weight: 700; }
.recap .recap__ttc dd { font-size: 1.6rem; font-weight: 800; font-stretch: 108%; }
.recap .recap__info { font-size: var(--fs-small); }

.cc-form { padding-top: var(--s-4); border-top: 2px solid var(--c-graphite); color: var(--text); }
.cc-choix { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.cc-choix legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.cc-choix label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.cc-choix input { width: 20px; height: 20px; min-height: 0; accent-color: var(--c-graphite); }
.cc-choix--paiement { flex-direction: column; gap: .5rem; }
.cc-carte-choix { align-items: flex-start !important; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); }
.cc-carte-choix:has(input:checked) { border-color: var(--c-graphite); box-shadow: inset 0 0 0 1px var(--c-graphite); }
.cc-carte-choix[hidden] { display: none !important; }
.cc-carte-choix input { margin-top: 3px; flex-shrink: 0; }
.checkbox { flex-wrap: wrap; }
.checkbox .field__error { flex-basis: 100%; }
.cc-valider { width: 100%; }
.cc-valider[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (min-width: 640px) { .cc-form .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .cc-panier { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .cc-panier__lignes { grid-column: 1; grid-row: 1; }
  .cc-panier__recap { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 1rem); }
  .cc-form { grid-column: 1; grid-row: 2; }
  .cc-valider { width: auto; }
}

/* Confirmation */
.cc-numero { font-size: 1.4rem; color: var(--c-orange-vif); letter-spacing: .02em; }
[data-detail] .recap { max-width: 34rem; margin-bottom: var(--s-3); }

@media print {
  .header-cart, .cc-toast, .cc-vider, .ligne__suppr { display: none !important; }
}

/* Option d'un produit (ex. feutre anti-condensation) */
.fiche__options { margin: 0 0 var(--s-3); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff8f1; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; min-width: 0; }
.fiche__options legend { font-weight: 700; padding: 0 .3rem; }
.fiche__opt { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; cursor: pointer; font-weight: 600; }
.fiche__opt input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.fiche__opt small { font-weight: 400; color: var(--text-soft); }
.fiche__opt-aide { flex-basis: 100%; margin: 0; font-size: var(--fs-xs); color: var(--text-soft); }
.cc-acompte { margin: .2rem 0 .4rem; padding: .55rem .8rem; background: #fff6ee; border-left: 4px solid var(--accent); font-size: var(--fs-small); }
.cc-acompte[hidden] { display: none; }

/* Pièces jointes du formulaire de devis (contact.html) */
.pj__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pj__zone { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 2px dashed var(--c-acier-clair); border-radius: var(--radius-card); background: #fafbfc; cursor: pointer; transition: border-color .15s, background .15s; }
.pj__zone svg { width: 28px; height: 28px; flex: none; color: var(--accent-text); }
.pj__zone:hover, .pj.is-survol .pj__zone { border-color: var(--accent); background: #fff6ee; }
.pj__input:focus-visible + .pj__liste, .pj:focus-within .pj__zone { outline: 3px solid var(--c-graphite); outline-offset: 2px; }
.pj__liste { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.pj__liste:empty { display: none; }
.pj__item { display: grid; grid-template-columns: 52px 1fr auto; gap: .7rem; align-items: center; margin: 0; padding: .35rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pj__item img, .pj__ico { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; background: var(--c-zinc); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--text-soft); }
.pj__nom { font-size: var(--fs-small); overflow-wrap: anywhere; }
.pj__nom small { display: block; color: var(--text-soft); }
.pj__suppr { min-width: 44px; min-height: 44px; border: 0; background: none; cursor: pointer; color: var(--text-soft); font-size: 1.4rem; }
.pj__suppr:hover { color: var(--c-erreur); }

/* Choix de la couleur en pastilles (bac acier, bardage, faîtières…) */
.fiche__couleurs { margin: 0 var(--s-4) var(--s-3); padding: 0; border: 0; min-width: 0; }
.fiche__couleurs legend { padding: 0; margin: 0 0 .6rem; font-weight: 600; color: var(--text-soft); }
.fiche__couleurs legend strong { color: var(--text); font-weight: 750; }
.teintes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .5rem; max-width: 640px; }
.teinte { position: relative; display: grid; justify-items: center; gap: .25rem; padding: .35rem .3rem .3rem; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-card); background: #fff; transition: border-color .15s, box-shadow .15s; }
.teinte input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.teinte__pastille { width: 100%; aspect-ratio: 3 / 2; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 -8px 12px -8px rgba(0,0,0,.4); }
.teinte__code { font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.teinte:hover { border-color: var(--c-acier-clair); }
.teinte:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #fff6ee; }
.teinte:has(input:focus-visible) { outline: 3px solid var(--c-graphite); outline-offset: 2px; }
.fiche__options + .fiche__couleurs { margin-top: var(--s-3); }
.dims--couleur tbody tr:hover { background: transparent; }
@media (max-width: 760px) {
  .fiche__couleurs { margin: 0 var(--s-3) var(--s-3); }
  .teintes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
