/* ==========================================================================
   DECOMAT · boutique : visuels produits, grille, fiche, panier, commande
   ========================================================================== */

/* --- Le décor d'un produit : mur enduit à la couleur de la gamme, sol, objet posé --- */
.scene {
  position: relative; display: block; overflow: hidden;
  background-color: var(--g-mur, #8d8b85);
  background-image: url("../img/matiere.webp"); background-size: 280px; background-blend-mode: soft-light;
}
.scene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0) 55%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .16) 100%);
}
.scene::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 17%; pointer-events: none;
  background-color: var(--g-sol, #6d6b66);
  background-image: url("../img/matiere.webp"); background-size: 280px; background-blend-mode: soft-light;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .18);
}
.scene img {
  position: absolute; left: 50%; bottom: 4.5%; z-index: 2; height: 84%; width: auto; max-width: none;
  transform: translateX(-50%); transform-origin: 50% 92%; transition: transform .6s var(--doux);
}
/* photo sur fond blanc : fondue dans un mur clair */
.scene--photo { --g-mur: #cfccc3; }
.scene--photo::after { display: none; }
.scene--photo img { left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; transform: none; transform-origin: 50% 50%; mix-blend-mode: multiply; }
/* photo plein cadre */
.scene--couvre::before, .scene--couvre::after { display: none; }
.scene--couvre img { left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; transform: none; transform-origin: 50% 50%; }

/* --- Filtres --- */
.filtres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.puce { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 18px; border: 2px solid var(--filet); border-radius: 999px; background: #fff; font-weight: 800; font-size: .95rem; color: var(--noir); white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s, transform .3s var(--doux); }
.puce i { flex: none; width: 10px; height: 10px; background: var(--g); transform: rotate(45deg); transition: transform .3s var(--doux); }
.puce:hover { border-color: var(--noir); transform: translateY(-3px); }
.puce:hover i { transform: rotate(45deg) scale(1.35); }
.puce[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: #fff; }
.puces--fines .puce { min-height: 40px; padding: 6px 15px; font-size: .88rem; font-weight: 700; background: transparent; }
.puces--fines .puce[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: var(--noir); }
.filtres__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.recherche { display: flex; align-items: center; gap: 10px; flex: 0 1 320px; min-height: 48px; padding: 0 18px; border: 2px solid #cfc9b8; border-radius: 999px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.recherche:focus-within { border-color: var(--noir); box-shadow: 0 0 0 4px rgba(222, 187, 69, .55); }
.recherche input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; }
.resultat { margin-bottom: 14px; font-size: .9rem; color: var(--gris); }
.vide { padding: 36px 0; font-size: 1.05rem; }

/* --- Carte produit --- */
.pgrille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.pgrille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcarte { position: relative; display: flex; flex-direction: column; border-radius: var(--rayon); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--filet); transition: transform .45s var(--doux), box-shadow .45s; }
.pgrille .pcarte { animation: arrive .5s var(--doux) backwards; animation-delay: calc(var(--n, 0) * 45ms); }
.pcarte:hover, .pcarte:focus-within { transform: translateY(-8px); box-shadow: 0 0 0 1px var(--filet), 0 30px 46px -24px rgba(20, 20, 20, .5); }
.pcarte__visuel { aspect-ratio: 1 / .92; }
.pcarte:hover .scene img, .pcarte:focus-within .scene img { transform: translateX(-50%) scale(1.1); }
.pcarte:hover .scene--photo img, .pcarte:hover .scene--couvre img, .pcarte:focus-within .scene--photo img, .pcarte:focus-within .scene--couvre img { transform: scale(1.08); }
.pcarte__badge { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--noir); font-size: .76rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
.pcarte__corps { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 18px 18px; }
.pcarte__type { font-size: .8rem; font-weight: 800; color: var(--g-texte); line-height: 1.3; }
.pcarte .pcarte__nom { margin: 0; font-size: 1.22rem; line-height: 1.12; letter-spacing: -0.02em; }
.pcarte__nom a { color: var(--noir); text-decoration: none; }
.pcarte__nom a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.pcarte__nom a:focus-visible { outline: 0; }
.pcarte:has(.pcarte__nom a:focus-visible) { outline: 3px solid var(--noir); outline-offset: 3px; }
.pcarte__accroche { font-size: .9rem; color: var(--gris); line-height: 1.4; }
.pcarte__bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.pcarte__prix { display: grid; font-size: .8rem; color: var(--gris); line-height: 1.25; }
.pcarte__prix b { font-size: 1.42rem; font-weight: 900; color: var(--noir); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.02em; }
.pcarte__prix small { font-size: .72rem; font-weight: 800; letter-spacing: 0; }
.pcarte__prix--demande b { font-size: 1.05rem; }
.pcarte__ajout { position: relative; z-index: 4; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--noir); color: #fff; font-size: 1.2rem; transition: background-color .25s, color .25s, transform .35s var(--doux); }
.pcarte__ajout:hover { background: var(--or); color: var(--noir); transform: scale(1.15) rotate(90deg); }
.pcarte__ajout.fait, .pcarte__ajout.fait:hover { background: var(--succes); color: #fff; transform: scale(1.12); }
.pcarte__choisir { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--noir); border-radius: 999px; font-size: .88rem; font-weight: 800; color: var(--noir); transition: background-color .25s, color .25s; }
.pcarte:hover .pcarte__choisir, .pcarte:focus-within .pcarte__choisir { background: var(--noir); color: #fff; }
.pcarte__choisir .ico { transition: transform .3s var(--doux); }
.pcarte:hover .pcarte__choisir .ico { transform: translateX(4px); }

/* --- Fiche produit --- */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; font-size: .9rem; color: var(--gris); }
.fil a { color: var(--noir); font-weight: 700; text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fil .ico { width: .9em; height: .9em; }
.fp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fp__visuel { position: sticky; top: 104px; display: grid; gap: 16px; }
.fp__image { aspect-ratio: 1 / .96; border-radius: 26px; }
.fp__image:hover img { transform: translateX(-50%) scale(1.08); }
.fp__image.scene--photo:hover img, .fp__image.scene--couvre:hover img { transform: scale(1.06); }
.fp__image img.change { animation: pose-fiche .55s var(--doux); }
@keyframes pose-fiche { from { transform: translateX(-50%) translateY(6%) scale(.94); } }
.fp__pictos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.picto { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: var(--rayon-s); background: var(--g-fond, var(--sable)); font-size: .8rem; font-weight: 700; line-height: 1.25; text-align: center; color: var(--noir); transition: transform .35s var(--doux); }
.picto:hover { transform: translateY(-4px); }
.picto svg { width: 34px; height: 34px; fill: none; stroke: var(--g-texte, var(--noir)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fp__visuel .mention { margin-top: 0; }
.fp__type { font-size: .9rem; font-weight: 800; color: var(--g-texte); }
.fp__infos h1 { margin-top: 6px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; }
.fp__accroche { margin-top: 10px; font-size: 1.2rem; font-weight: 700; color: var(--noir); }
.fp__desc { margin-top: 12px; }
.fp__infos .losanges { margin-top: 16px; }
.fp__infos h2 { margin: 36px 0 12px; font-size: 1.4rem; }
.note-produit { margin-top: 12px; padding: 12px 16px; border-left: 4px solid var(--noir); background: var(--sable); font-size: .92rem; font-style: italic; border-radius: 0 var(--rayon-s) var(--rayon-s) 0; }
.docs { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--rayon); background: var(--sable); }
.docs .ico { color: var(--or-texte); }
.docs p { font-size: .95rem; }

/* bloc d'achat */
.achat { display: grid; gap: 18px; margin-top: 26px; padding: 22px; border-radius: 24px; background: var(--sable); }
.achat legend { margin-bottom: 8px; font-weight: 900; color: var(--noir); font-size: 1rem; }
.achat__variantes { display: grid; gap: 8px; }
.variante { position: relative; display: block; cursor: pointer; }
.variante input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.variante__in { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; border: 2px solid #d9d3c3; border-radius: 16px; background: #fff; transition: border-color .2s, transform .3s var(--doux), box-shadow .3s; }
.variante:hover .variante__in { border-color: var(--noir); transform: translateX(4px); }
.variante__in::before { content: ""; width: 22px; height: 22px; border: 2px solid #9c9584; border-radius: 50%; background: #fff; transition: border-color .2s, box-shadow .2s; }
.variante input:checked + .variante__in { border-color: var(--noir); box-shadow: 0 10px 22px -14px rgba(20, 20, 20, .5); }
.variante input:checked + .variante__in::before { border-color: var(--noir); box-shadow: inset 0 0 0 5px var(--noir), inset 0 0 0 10px var(--or); background: var(--or); }
.variante input:focus-visible + .variante__in { outline: 3px solid var(--noir); outline-offset: 3px; }
.variante__cond { display: grid; line-height: 1.3; }
.variante__cond b { font-weight: 900; color: var(--noir); }
.variante__cond small { font-size: .82rem; color: var(--gris); }
.variante__prix { display: grid; justify-items: end; line-height: 1.25; }
.variante__prix b { font-size: 1.25rem; font-weight: 900; color: var(--noir); font-variant-numeric: tabular-nums; white-space: nowrap; }
.variante__prix small { font-size: .78rem; color: var(--gris); white-space: nowrap; }
.surdemande { font-weight: 800; color: var(--noir); font-size: .95rem; }
.achat__teinte { display: grid; gap: 8px; }
.achat__options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; display: inline-flex; cursor: pointer; }
.option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid #d9d3c3; border-radius: 999px; background: #fff; font-weight: 800; font-size: .93rem; color: var(--noir); transition: border-color .2s, background-color .2s, color .2s; }
.option:hover span { border-color: var(--noir); }
.option input:checked + span { background: var(--noir); border-color: var(--noir); color: #fff; }
.option input:focus-visible + span { outline: 3px solid var(--noir); outline-offset: 3px; }
.achat__teinte .champ { margin-top: 4px; }
.achat__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.achat__bouton { flex: 1 1 220px; min-height: 56px; font-size: 1.05rem; }
.achat__bouton.fait { background: var(--succes); color: #fff; }
.achat__bouton.fait::before { display: none; }
.achat__rassure { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid #ddd6c4; font-size: .92rem; }
.achat__rassure li { display: flex; align-items: center; gap: 10px; }
.achat__rassure .ico { color: var(--or-texte); }

.quantite { display: inline-flex; align-items: center; border: 2px solid #cfc9b8; border-radius: 999px; background: #fff; }
.quantite button { display: grid; place-items: center; width: 42px; height: 48px; border: 0; border-radius: 999px; background: transparent; color: var(--noir); transition: background-color .2s, transform .2s var(--doux); }
.quantite button:hover { background: var(--sable); }
.quantite button:active { transform: scale(.88); }
.quantite input { width: 44px; height: 48px; padding: 0; border: 0; background: transparent; text-align: center; font-weight: 900; color: var(--noir); -moz-appearance: textfield; appearance: textfield; }
.quantite input::-webkit-outer-spin-button, .quantite input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantite--petite button { width: 36px; height: 40px; }
.quantite--petite input { width: 36px; height: 40px; font-size: .95rem; }

/* --- Panier (aperçu latéral) --- */
.tiroir { position: fixed; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(440px, 100vw); height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: -30px 0 80px rgba(0, 0, 0, .3); }
.tiroir:not([open]) { display: none; }
.tiroir[open] { animation: tiroir-entree .45s var(--doux); }
@keyframes tiroir-entree { from { transform: translateX(100%); } }
.tiroir__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--filet); }
.tiroir__tete h2 { font-size: 1.35rem; }
.tiroir__corps { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.tiroir > .alerte { position: static; transform: none; width: auto; max-width: none; margin: 0 14px 12px; border-radius: 16px; justify-content: space-between; box-shadow: none; animation: none; }
.tiroir__pied { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--filet); background: var(--sable); }
.tiroir__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 800; color: var(--noir); }
.tiroir__total b { font-size: 1.55rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.tiroir__note { margin-top: -6px; font-size: .82rem; color: var(--gris); }
.tiroir__pied .lien-bouton { justify-self: center; min-height: 40px; }
.panier-vide { display: grid; justify-items: center; gap: 12px; padding: 44px 12px; text-align: center; }
.panier-vide .scene { width: 150px; aspect-ratio: 1; border-radius: 50%; }
.panier-vide b { font-size: 1.3rem; font-weight: 900; color: var(--noir); }
.panier-vide p { max-width: 36ch; color: var(--gris); }

/* --- Lignes du panier --- */
.ligne { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 120px 44px; gap: 6px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.ligne__img { width: 84px; aspect-ratio: 1; border-radius: 16px; }
.ligne__img:hover img { transform: translateX(-50%) scale(1.12); }
.ligne__img.scene--photo:hover img, .ligne__img.scene--couvre:hover img { transform: scale(1.1); }
.ligne__infos { display: grid; gap: 2px; min-width: 0; }
.ligne__nom { font-weight: 900; font-size: 1.1rem; line-height: 1.2; color: var(--noir); text-decoration: none; }
.ligne__nom:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--or); text-underline-offset: 4px; }
.ligne__cond { font-size: .88rem; color: var(--gris); }
.ligne__teinte { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: .86rem; font-weight: 700; color: var(--noir); }
.ligne__teinte input { flex: 1 1 150px; min-width: 0; max-width: 240px; min-height: 40px; padding: 6px 12px; border: 2px solid #cfc9b8; border-radius: 10px; background: #fff; font-weight: 400; }
.ligne__teinte input:focus { border-color: var(--noir); outline: 0; box-shadow: 0 0 0 4px rgba(222, 187, 69, .55); }
.ligne__teinte small { flex-basis: 100%; font-weight: 400; color: var(--gris); }
.ligne__prix { display: grid; justify-items: end; line-height: 1.25; text-align: right; }
.ligne__prix b { font-size: 1.2rem; font-weight: 900; color: var(--noir); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne__prix small { font-size: .8rem; color: var(--gris); white-space: nowrap; }
.ligne__suppr { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--gris); font-size: 1.1rem; transition: background-color .2s, color .2s, transform .3s var(--doux); }
.ligne__suppr:hover { background: #f4e8e5; color: var(--alerte); transform: scale(1.1) rotate(-8deg); }
.ligne--mini { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 8px 14px; padding: 14px 0; }
.ligne--mini .ligne__img { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 64px; border-radius: 12px; }
.ligne--mini .ligne__infos { grid-column: 2; grid-row: 1; }
.ligne--mini .ligne__nom { font-size: 1rem; }
.ligne--mini .ligne__suppr { grid-column: 3; grid-row: 1; width: 40px; height: 40px; align-self: start; }
.ligne--mini .ligne__bas { grid-column: 2 / span 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ligne--mini .ligne__prix b { font-size: 1.05rem; }
.panier__outils { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; padding-top: 8px; font-size: .92rem; }
.panier__outils .lien-bouton, .commandes__outils .lien-bouton { min-height: 44px; }
.apres-panier { display: grid; gap: 14px; margin-top: 26px; }
.info-commande { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: var(--rayon-s); background: var(--sable); font-size: .93rem; }
.info-commande .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--or-texte); }
.info-commande b { color: var(--noir); }
.deroule { border: 1px solid var(--filet); border-radius: var(--rayon-s); font-size: .93rem; }
.deroule summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 18px; font-weight: 800; color: var(--noir); cursor: pointer; list-style: none; border-radius: var(--rayon-s); transition: background-color .2s; }
.deroule summary::-webkit-details-marker { display: none; }
.deroule summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 3px solid var(--noir); border-bottom: 3px solid var(--noir); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--doux); }
.deroule[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.deroule summary:hover { background: var(--sable); }
.deroule ol { list-style: decimal; display: grid; gap: 8px; padding: 4px 18px 0 38px; }
.deroule p { padding: 12px 18px 16px; color: var(--gris); }
.deroule b { color: var(--noir); }
.deroule pre { margin: 4px 18px 16px; }

/* --- Commande en cinq étapes --- */
.etapier { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 26px; counter-reset: etape; }
.etapier:empty { display: none; }
.etape { position: relative; display: grid; justify-items: center; }
.etape::before { content: ""; position: absolute; left: -50%; right: 50%; top: 17px; height: 3px; background: #d6d0bf; }
.etape:first-child::before { display: none; }
.etape--faite::before, .etape--active::before { background: var(--noir); }
.etape > * { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 0 4px; text-align: center; text-decoration: none; font-size: .9rem; font-weight: 800; line-height: 1.2; color: var(--gris); }
.etape b { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #d6d0bf; border-radius: 9px; background: #f1eee6; transform: rotate(45deg); transition: transform .35s var(--doux), background-color .25s, border-color .25s; }
.etape b i { transform: rotate(-45deg); font-style: normal; font-weight: 900; font-size: .95rem; line-height: 1; color: var(--gris); display: grid; place-items: center; }
.etape--faite > * { color: var(--noir); }
.etape--faite b { background: var(--noir); border-color: var(--noir); }
.etape--faite b i { color: var(--or); font-size: 1.05rem; }
.etape--active > * { color: var(--noir); }
.etape--active b { background: var(--or); border-color: var(--noir); transform: rotate(45deg) scale(1.18); }
.etape--active b i { color: var(--noir); }
a.etape__lien:hover b { transform: rotate(45deg) scale(1.18); }
a.etape__lien:hover span { text-decoration: underline; text-underline-offset: 3px; }

.tunnel { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px clamp(24px, 4vw, 60px); align-items: start; }
.tunnel--vide { grid-template-columns: minmax(0, 1fr); }
.tunnel--vide .tunnel__resume, .tunnel--seul .tunnel__resume { display: none; }
.tunnel--seul { grid-template-columns: minmax(0, 1fr); }
.tunnel--seul .tunnel__principal { max-width: 900px; }
#k-bloc-livraison { display: grid; gap: 18px; }
.tunnel__principal { grid-column: 1; grid-row: 1; min-width: 0; }
.tunnel__resume { grid-column: 2; grid-row: 1 / span 2; }
.tunnel > .apres-panier { grid-column: 1; grid-row: 2; margin-top: 0; }
.volet { display: grid; gap: 18px; align-content: start; }
.volet > h2 { margin-bottom: 0; }
.pret .volet:not([hidden]) { animation: vue-entree .45s var(--doux); }
.volet__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.tunnel__resume { position: sticky; top: 104px; display: grid; gap: 14px; padding: 24px; border-radius: 24px; background: var(--sable); }
.tunnel__resume h2 { margin: 0; font-size: 1.35rem; }
.resume__lignes { display: grid; gap: 10px; }
.resume__lignes li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.3; }
.vignette { width: 52px; aspect-ratio: 1; border-radius: 12px; }
.resume__lignes b { display: block; font-weight: 800; color: var(--noir); }
.resume__lignes small { color: var(--gris); font-size: .82rem; }
.resume__lignes .prix { font-weight: 800; color: var(--noir); font-variant-numeric: tabular-nums; white-space: nowrap; }
.totaux { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid #ddd6c4; font-size: .95rem; }
.totaux div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.totaux dd { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--noir); text-align: right; }
.totaux .totaux__total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--noir); }
.totaux .totaux__total dt { font-weight: 900; color: var(--noir); font-size: 1.05rem; }
.totaux .totaux__total dd { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; }
.nature { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: var(--rayon-s); background: #fff; font-size: .88rem; line-height: 1.45; }
.nature .ico { width: 22px; height: 22px; color: var(--or-texte); }
.nature b { color: var(--noir); }
.nature ul { display: grid; gap: 2px; margin-top: 4px; list-style: disc; padding-left: 18px; }
.verif > .nature { background: var(--sable); padding: 16px 18px; font-size: .93rem; }

.choix-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choix-cartes--liste { grid-template-columns: minmax(0, 1fr); }
.choix-carte { position: relative; display: block; cursor: pointer; }
.choix-carte input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix-carte__corps { display: grid; gap: 4px; align-content: start; height: 100%; padding: 18px; border: 2px solid #cfc9b8; border-radius: 18px; background: #fff; font-size: .9rem; line-height: 1.35; color: var(--gris); transition: border-color .2s, background-color .25s, color .25s, transform .35s var(--doux), box-shadow .35s; }
.choix-carte__corps .ico { margin-bottom: 6px; color: var(--or-texte); transition: transform .45s var(--doux), color .25s; }
.choix-carte__corps b { font-size: 1.08rem; font-weight: 900; color: var(--noir); line-height: 1.2; transition: color .25s; }
.choix-carte__corps em { justify-self: start; margin-top: 8px; padding: 3px 11px; border-radius: 999px; background: var(--sable); font-style: normal; font-size: .8rem; font-weight: 800; color: var(--noir); }
.choix-carte:hover .choix-carte__corps { border-color: var(--noir); transform: translateY(-4px); box-shadow: 0 20px 30px -22px rgba(20, 20, 20, .5); }
.choix-carte:hover .ico { transform: scale(1.15) rotate(-6deg); }
.choix-carte input:checked + .choix-carte__corps { border-color: var(--noir); background: var(--noir); color: #d6d6d6; }
.choix-carte input:checked + .choix-carte__corps b { color: #fff; }
.choix-carte input:checked + .choix-carte__corps .ico { color: var(--or); }
.choix-carte input:checked + .choix-carte__corps em { background: var(--or); }
.choix-carte input:focus-visible + .choix-carte__corps { outline: 3px solid var(--noir); outline-offset: 3px; }
.choix-carte input:disabled { cursor: not-allowed; }
.choix-carte input:disabled + .choix-carte__corps { border-style: dashed; background: transparent; opacity: .62; transform: none; box-shadow: none; }
.choix-cartes--liste .choix-carte__corps { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
.choix-cartes--liste .choix-carte__corps .ico { grid-row: 1 / span 2; margin: 0; }
.choix-cartes--liste .choix-carte__corps b, .choix-cartes--liste .choix-carte__corps > span { grid-column: 2; }
.choix-cartes--liste .choix-carte__corps em { grid-column: 3; grid-row: 1 / span 2; margin: 0; }

.verif { display: grid; gap: 14px; }
.verif__bloc { padding: 20px 22px; border: 1px solid var(--filet); border-radius: var(--rayon); }
.verif__tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.verif__tete h3 { font-size: 1.15rem; }
.verif__modif { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border-radius: 999px; font-size: .88rem; font-weight: 800; color: var(--noir); text-decoration: none; background: var(--sable); transition: background-color .2s, transform .3s var(--doux); }
.verif__modif:hover { background: var(--or); transform: translateY(-2px); }
.verif__lignes { display: grid; }
.verif__lignes li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--filet); font-size: .95rem; line-height: 1.3; }
.verif__lignes li:last-child { border-bottom: 0; padding-bottom: 0; }
.verif__lignes b { display: block; font-weight: 900; color: var(--noir); }
.verif__lignes small { color: var(--gris); font-size: .85rem; }
.verif__lignes .prix { display: grid; justify-items: end; font-weight: 900; color: var(--noir); font-variant-numeric: tabular-nums; white-space: nowrap; }
.verif__lignes .prix small { font-weight: 400; }
.verif__duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.verif__bloc p { font-size: .97rem; }
.verif__bloc p b { color: var(--noir); }
.verif__bloc .totaux { border-top: 0; padding-top: 0; }
.confirmer { display: grid; gap: 14px; margin-top: 8px; padding: 22px; border: 2px solid var(--noir); border-radius: 24px; }
.case { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; font-weight: 700; color: var(--noir); }
.case input { width: 28px; height: 28px; margin: 0; accent-color: var(--noir); cursor: pointer; }
.case a { font-weight: 900; }
.btn--final { min-height: 60px; padding-inline: 30px; font-size: 1.08rem; }
.btn--final .ico { transition: transform .3s var(--doux); }
.btn--final:hover .ico { transform: translateX(5px); }

/* --- Confirmation --- */
.recu { display: grid; gap: 28px; max-width: 920px; margin-inline: auto; }
.recu__tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.recu__coche { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--or); color: var(--noir); animation: coche-pop .7s var(--doux) backwards; }
.recu__coche svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.recu__coche path { stroke-dasharray: 30; animation: coche-trait .6s ease-out .35s backwards; }
@keyframes coche-pop { from { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.12); } }
@keyframes coche-trait { from { stroke-dashoffset: 30; } }
.recu__num { font-size: .9rem; font-weight: 800; letter-spacing: .08em; color: var(--or-texte); }
.recu h1 { margin: 4px 0 8px; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.04em; }
.recu__envoi { display: grid; gap: 14px; padding: 24px; border: 2px solid var(--noir); border-radius: 24px; }
.recu__envoi h2 { margin: 0; font-size: 1.4rem; }
.recu__suite { padding: 24px; border-radius: 24px; background: var(--sable); }
.recu__suite h2 { margin-bottom: 4px; font-size: 1.4rem; }
.recu .verif h2 { font-size: 1.4rem; margin-bottom: 0; }

/* --- Mes commandes --- */
.commandes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.commande { display: grid; gap: 12px; padding: 22px 24px; border-radius: var(--rayon); box-shadow: 0 0 0 1px var(--filet); transition: transform .4s var(--doux), box-shadow .4s; }
.commande:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--filet), 0 24px 40px -26px rgba(20, 20, 20, .45); }
.commande__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.commande .commande__num { margin: 0; font-size: 1.25rem; font-weight: 900; color: var(--noir); letter-spacing: -0.01em; }
.commande__date { font-size: .9rem; color: var(--gris); }
.commande__total { font-size: 1.35rem; font-weight: 900; color: var(--noir); font-variant-numeric: tabular-nums; white-space: nowrap; }
.statut { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--sable); font-size: .8rem; font-weight: 800; color: var(--noir); white-space: nowrap; }
.statut::before { content: ""; width: 8px; height: 8px; background: var(--or); transform: rotate(45deg); }
.statut--envoyee { background: #e3f2e8; color: var(--succes); }
.statut--envoyee::before { background: currentColor; }
.commande__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.commandes__outils { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--filet); font-size: .9rem; color: var(--gris); }

/* --- Galerie de chantiers --- */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.galerie figure { position: relative; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--doux); }
.galerie figure:hover img { transform: scale(1.08); }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 44px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); }
.galerie figcaption b { font-size: 1.1rem; font-weight: 900; line-height: 1.15; }
.galerie figcaption span { font-size: .88rem; color: #e9e9e9; }

/* --- Adaptation aux écrans --- */
@media (max-width: 1180px) {
  .pgrille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tunnel { grid-template-columns: minmax(0, 1fr) 330px; }
  .ligne { grid-template-columns: 84px minmax(0, 1fr) auto 44px; }
  .ligne__img { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .ligne__infos { grid-column: 2 / span 2; grid-row: 1; }
  .ligne__suppr { grid-column: 4; grid-row: 1; align-self: start; }
  .ligne > .quantite { grid-column: 2; grid-row: 2; justify-self: start; }
  .ligne__prix { grid-column: 3 / span 2; grid-row: 2; }
}
@media (max-width: 960px) {
  .fp { grid-template-columns: minmax(0, 1fr); }
  .fp__visuel { position: static; }
  .fp__image { max-width: 560px; }
  .tunnel { grid-template-columns: minmax(0, 1fr); }
  .tunnel__principal, .tunnel__resume, .tunnel > .apres-panier { grid-column: 1; grid-row: auto; }
  .tunnel__resume { position: static; }
  /* fiche produit : le nom et le prix passent avant les pictogrammes */
  .fp__visuel { display: contents; }
  .fp__image { order: 1; }
  .fp__infos { order: 2; }
  .fp__pictos { order: 3; }
  .fp__visuel .mention { order: 4; }
  .commandes { grid-template-columns: minmax(0, 1fr); }
  .pgrille--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .pgrille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .etape > * span { display: none; }
  .etape--active > * span { display: block; position: absolute; top: 46px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .etapier { padding-bottom: 28px; }
  .etape:first-child.etape--active > * span { left: 0; transform: none; }
  .etape:last-child.etape--active > * span { left: auto; right: 0; transform: none; }
}
@media (max-width: 640px) {
  .pcarte__corps { padding: 12px 12px 14px; }
  .pcarte .pcarte__nom { font-size: 1.05rem; }
  .pcarte__accroche { display: none; }
  .pcarte__type { font-size: .74rem; }
  .pcarte__prix b { font-size: 1.2rem; }
  .pcarte__ajout { width: 44px; height: 44px; }
  .pcarte__choisir { justify-content: center; width: 44px; padding: 0; font-size: 0; }
  .pcarte__choisir .ico { font-size: 1.05rem; }
  .pcarte__badge { left: 8px; top: 8px; font-size: .7rem; padding: 4px 9px; }
  .filtres__ligne { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .recherche { flex: 1 1 auto; }
  .puces { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--marge)); padding: 4px var(--marge); scrollbar-width: none; }
  .puces::-webkit-scrollbar { display: none; }
  .puce:hover { transform: none; }
  .fp__pictos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .picto { font-size: .74rem; padding: 12px 6px 10px; }
  .achat { padding: 16px; margin-inline: calc(-1 * var(--marge) + 6px); border-radius: 20px; }
  .variante__in { padding: 12px; gap: 10px; }
  .docs { grid-template-columns: auto minmax(0, 1fr); }
  .docs .btn { grid-column: 1 / -1; justify-self: start; }
  .choix-cartes { grid-template-columns: minmax(0, 1fr); }
  .choix-carte__corps { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .choix-carte__corps .ico { grid-row: 1 / span 2; margin: 0; }
  .choix-carte__corps b, .choix-carte__corps > span { grid-column: 2; }
  .choix-carte__corps em { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .choix-cartes--liste .choix-carte__corps em { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .ligne { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 8px 12px; }
  .ligne__img { width: 64px; border-radius: 12px; }
  .ligne__infos { grid-column: 2; }
  .ligne__suppr { grid-column: 3; width: 40px; height: 40px; }
  .ligne > .quantite { grid-column: 2; grid-row: 2; }
  .ligne__prix { grid-column: 2 / span 2; grid-row: 2; justify-self: end; }
  .ligne .quantite button { width: 38px; height: 42px; }
  .ligne .quantite input { width: 38px; height: 42px; }
  .verif__duo { grid-template-columns: minmax(0, 1fr); }
  .verif__bloc { padding: 16px; }
  .confirmer { padding: 16px; }
  .volet__actions { flex-direction: column-reverse; align-items: stretch; }
  .volet__actions .btn { width: 100%; }
  .recu__tete { grid-template-columns: minmax(0, 1fr); }
  .recu__coche { width: 68px; height: 68px; }
  .galerie { grid-template-columns: minmax(0, 1fr); }
  .tunnel__resume { padding: 18px; }
}
@media (max-width: 339px) {
  .pgrille, .pgrille--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) {
  .pcarte:hover, .commande:hover, .choix-carte:hover .choix-carte__corps, .variante:hover .variante__in { transform: none; }
}

/* ---------- Paiement par carte (étape 4) ---------- */
.carte-securisee { display: flex; justify-content: flex-start; margin: 18px 0 6px; }
.carte-securisee__carte { position: relative; display: grid; grid-template-rows: auto 1fr auto; width: min(300px, 100%); aspect-ratio: 1.586; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #2b2b2b, #4a4a46 60%, #6b5a26); color: #f4efe1; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); font-weight: 800; letter-spacing: .06em; }
.carte-securisee__puce { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e9cf7a, #b8963a); }
.carte-securisee__num { align-self: center; font-size: 1.15rem; }
.carte-securisee__bas { display: flex; justify-content: space-between; font-size: .85rem; opacity: .85; }
.aide--cadenas { padding: 14px 16px; border-left: 4px solid var(--or); border-radius: 0 var(--rayon-s) var(--rayon-s) 0; background: var(--sable); }
.aide--cadenas b { color: var(--noir); }
.aide--compte { margin-bottom: 6px; }
.recu__payer { padding: 22px 24px; border: 2px solid var(--or); border-radius: var(--rayon-s); background: #fff8e3; }
.recu__payer h2 { margin-bottom: 6px; }

/* ---------- Compte client ---------- */
.compte-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); align-items: start; margin-top: 22px; }
.compte-carte { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--filet); border-radius: 22px; background: #fff; }
.compte-carte h2 { font-size: 1.5rem; }
.compte-carte__h2 { margin-top: 10px; }
.compte-carte .volet__actions { margin-top: 0; }
.mdp { position: relative; display: block; }
.mdp input { width: 100%; padding-right: 92px; }
.mdp__voir { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 34px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--sable); font: inherit; font-size: .85rem; font-weight: 800; color: var(--noir); cursor: pointer; }
.mdp__voir:hover { background: #e8e1cc; }
.deroule--danger summary { color: #9b2c1f; }
@media (max-width: 860px) { .compte-duo { grid-template-columns: minmax(0, 1fr); } }
