/* =========================================================================
   Feuille de style — thème « grande surface électro » (rouge / blanc)
   Modifiez les variables ci-dessous pour changer toute l'identité visuelle.
   ========================================================================= */

:root {
  --fond: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --encre: #1d1d1b;
  --encre-2: #4a4a48;
  --encre-3: #8a8a88;
  --ligne: #e1e1e1;
  --rouge: #d7141a;
  --rouge-fonce: #b00f14;
  --rouge-clair: #fde8e8;
  --jaune: #ffd400;
  --bleu: #0d3b66;
  --succes: #1b8a3d;
  --succes-clair: #e4f4e8;
  --alerte: #c41e1e;
  --alerte-clair: #fdeceb;
  --avertissement: #b25e00;
  --avertissement-clair: #fff2dc;
  --etoile: #f5a623;

  --police: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --rayon: 6px;
  --rayon-petit: 4px;
  --ombre: 0 1px 3px rgba(0, 0, 0, .08);
  --ombre-forte: 0 10px 30px rgba(0, 0, 0, .16);
  --transition: .2s ease;
  --largeur: 1320px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 14px;
  line-height: 1.5;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.conteneur--etroit { max-width: 820px; }
.cache { display: none !important; }

.ic { width: 20px; height: 20px; flex-shrink: 0; }

.surtitre {
  margin: 0 0 .4em;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rouge);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em;
  border: 1px solid transparent; border-radius: var(--rayon-petit);
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn--rouge { background: var(--rouge); color: #fff; }
.btn--rouge:hover { background: var(--rouge-fonce); }
.btn--noir { background: var(--encre); color: #fff; }
.btn--noir:hover { background: #000; }
.btn--blanc { background: #fff; color: var(--encre); }
.btn--blanc:hover { background: var(--encre); color: #fff; }
.btn--contour { border-color: var(--ligne); background: var(--surface); }
.btn--contour:hover { border-color: var(--encre); }
.btn--lien { background: none; padding-inline: 0; color: var(--encre-2); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.btn--lien:hover { color: var(--rouge); }
.btn--grand { padding: 1em 1.8em; font-size: 1rem; }
.btn--petit { padding: .45em .9em; font-size: .82rem; }
.btn--bloc { width: 100%; }
.btn--flex { flex: 1; }

.icone-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; transition: background var(--transition);
}
.icone-btn:hover { background: var(--surface-2); }
.pastille {
  position: absolute; top: -6px; right: -10px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--rouge); color: #fff; border: 2px solid #fff;
  font-size: .68rem; font-weight: 700; line-height: 15px; text-align: center;
}
.pastille.pop { animation: pop .4s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

.lien-fleche { display: inline-flex; align-items: center; gap: .2em; font-weight: 500; color: var(--rouge); }
.lien-fleche .ic { width: 16px; transition: transform var(--transition); }
.lien-fleche:hover .ic { transform: translateX(3px); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--surface-2); border-bottom: 1px solid var(--ligne); font-size: .78rem; color: var(--encre-2); }
.topbar__barre { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 34px; }
.topbar__atouts { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar__atouts li { display: flex; align-items: center; gap: 6px; }
.topbar__atouts .ic { width: 16px; height: 16px; color: var(--rouge); }
.topbar__liens { display: flex; gap: 18px; }
.topbar__liens a:hover { color: var(--rouge); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--ligne); }
.entete__barre { display: flex; align-items: center; gap: 28px; height: 76px; }
.entete__burger { display: none; }
.logo {
  display: inline-block; padding: 8px 14px; border-radius: var(--rayon-petit);
  background: var(--rouge); color: #fff;
  font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
}
.logo--clair { margin-bottom: 14px; }

.recherche { display: flex; flex: 1; max-width: 680px; }
.recherche input {
  flex: 1; min-width: 0; padding: .8em 1.1em;
  border: 2px solid var(--encre); border-right: 0; border-radius: var(--rayon-petit) 0 0 var(--rayon-petit);
  background: var(--surface);
}
.recherche input:focus { outline: 0; border-color: var(--rouge); }
.recherche button {
  display: grid; place-items: center; width: 56px; border: 0; cursor: pointer;
  border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; background: var(--encre); color: #fff;
  transition: background var(--transition);
}
.recherche input:focus + button, .recherche button:hover { background: var(--rouge); }

.entete__actions { display: flex; gap: 22px; margin-left: auto; }
.entete__action { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .75rem; color: var(--encre-2); }
.entete__action .ic { width: 26px; height: 26px; color: var(--encre); }
.entete__action:hover, .entete__action:hover .ic { color: var(--rouge); }
.entete__icone { position: relative; display: block; height: 26px; }

/* ---------- Navigation & méga-menu ---------- */
.nav { background: var(--encre); color: #fff; }
.nav__barre { display: flex; align-items: stretch; height: 46px; }
.nav__liens { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.nav__liens::-webkit-scrollbar { display: none; }
.nav__liens a { display: flex; align-items: center; padding: 0 16px; white-space: nowrap; font-weight: 500; font-size: .9rem; transition: background var(--transition); }
.nav__liens a:hover, .nav__liens a.actif { background: rgba(255, 255, 255, .12); }
.nav__promo { background: var(--jaune); color: var(--encre); font-weight: 700 !important; }
.nav__liens .nav__promo:hover { background: #ffe34d; }

.mega__bouton {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 22px;
  border: 0; background: var(--rouge); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
}
.mega__panneau {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); color: var(--encre); box-shadow: var(--ombre-forte);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.mega:hover .mega__panneau, .mega.ouvert .mega__panneau { visibility: visible; opacity: 1; transform: none; }
.mega__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; padding-block: 28px; }
.mega__colonne { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; }
.mega__colonne a:hover { color: var(--rouge); }
.mega__titre { display: flex; gap: 8px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 2px solid var(--rouge); font-weight: 700; font-size: .95rem; text-transform: uppercase; }
.mega__tout { color: var(--rouge); font-weight: 500; margin-top: 4px; }

/* ---------- Mise en avant (slider accueil) ---------- */
.une { display: grid; grid-template-columns: 1fr 300px; gap: 16px; padding-top: 20px; }
.slider { position: relative; overflow: hidden; border-radius: var(--rayon); min-height: 340px; }
.slider__piste { display: flex; height: 100%; transition: transform .6s cubic-bezier(.3, .7, .3, 1); }
.slide {
  position: relative; flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 44px 64px; overflow: hidden; color: #fff;
}
.slide h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin-bottom: .4em; }
.slide p { max-width: 42ch; opacity: .92; margin-bottom: 1.4em; }
.slide > div { position: relative; z-index: 1; }
.slide__sur { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6em !important; }
.slide__gros { font-size: clamp(4rem, 12vw, 9rem); font-weight: 900; line-height: 1; opacity: .18; letter-spacing: -.04em; }
.slide--rouge { background: linear-gradient(120deg, var(--rouge) 40%, #ff4b2b); }
.slide--sombre { background: linear-gradient(120deg, #111 40%, #3a3a3a); }
.slide--bleu { background: linear-gradient(120deg, var(--bleu) 40%, #1f78c1); }
.slider__fleche {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--encre); cursor: pointer; box-shadow: var(--ombre);
}
.slider__fleche--prec { right: auto; left: 12px; }
.slider__fleche--prec .ic { transform: scaleX(-1); }
.slider__points { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider__points button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width var(--transition), background var(--transition); }
.slider__points button.actif { width: 26px; background: #fff; }

.une__cotes { display: grid; gap: 16px; }
.tuile { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border-radius: var(--rayon); transition: transform var(--transition); }
.tuile:hover { transform: translateY(-2px); }
.tuile strong { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; }
.tuile--jaune { background: var(--jaune); }
.tuile--gris { background: var(--surface); border: 1px solid var(--ligne); }
.tuile--gris strong { color: var(--rouge); }

/* ---------- Raccourcis catégories ---------- */
.raccourcis { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; }
.raccourci {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px;
  background: var(--surface); border-radius: var(--rayon); text-align: center; font-weight: 500; font-size: .88rem;
  border: 1px solid transparent; transition: border-color var(--transition), box-shadow var(--transition);
}
.raccourci:hover { border-color: var(--rouge); box-shadow: var(--ombre); color: var(--rouge); }
.raccourci__icone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); font-size: 1.6rem; }
.raccourci--promo .raccourci__icone { background: var(--jaune); font-weight: 900; }

/* ---------- Sections ---------- */
.section { padding-top: 36px; }
.section__entete { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.section__entete h2 { text-transform: uppercase; font-weight: 900; }
.section:last-child { padding-bottom: 48px; }

.carrousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.carrousel__piste { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; }
.carrousel__piste > * { scroll-snap-align: start; }

.bandeaux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bandeau { padding: 32px 36px; border-radius: var(--rayon); color: #fff; }
.bandeau h3 { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; margin-bottom: .3em; }
.bandeau--sombre { background: var(--encre); }
.bandeau--rouge { background: var(--rouge); }
.code { padding: .1em .5em; border: 1px dashed currentColor; border-radius: 4px; letter-spacing: .06em; }

.marques { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.marques a {
  display: grid; place-items: center; height: 72px; background: var(--surface); border-radius: var(--rayon);
  font-weight: 900; font-size: 1.1rem; text-transform: uppercase; color: var(--encre-2); letter-spacing: .02em;
  border: 1px solid transparent; transition: border-color var(--transition), color var(--transition);
}
.marques a:hover { border-color: var(--rouge); color: var(--rouge); }

/* ---------- Cartes produit ---------- */
.grille-produits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grille-produits--3 { grid-template-columns: repeat(4, 1fr); }
.grille-produits--5 { grid-template-columns: repeat(5, 1fr); }

.carte {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--rayon); padding: 14px;
  border: 1px solid transparent; transition: box-shadow var(--transition), border-color var(--transition);
}
.carte:hover { box-shadow: var(--ombre-forte); border-color: var(--ligne); }
.carte__visuel { position: relative; display: block; aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; }
.carte__visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.carte__badges { position: absolute; top: 0; left: 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.carte__offre {
  display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 8px;
  border-radius: var(--rayon-petit); background: var(--rouge-clair); color: var(--rouge); font-size: .74rem; font-weight: 700;
}
.carte__offre .ic { width: 14px; height: 14px; }
.carte__infos { flex: 1; }
.carte__nom { font-size: .86rem; font-weight: 700; text-transform: uppercase; line-height: 1.3; margin-bottom: 6px; }
.carte__nom a:hover { color: var(--rouge); }
.carte__points { font-size: .78rem; color: var(--encre-3); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte__bas { margin-top: 8px; }
.carte__livraison { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .76rem; color: var(--succes); font-weight: 500; }
.carte__livraison .ic { width: 16px; height: 16px; }
.carte__livraison--epuise { color: var(--alerte); }
.carte .prix { margin-bottom: 12px; }
.carte__ajout .btn { padding: .65em .8em; font-size: .85rem; }

.badge {
  display: inline-block; padding: .3em .6em; border-radius: var(--rayon-petit);
  background: var(--encre); color: #fff; font-size: .72rem; font-weight: 700;
}
.badge--promo { background: var(--rouge); font-size: .85rem; }
.badge--nouveau { background: var(--bleu); }
.badge--gris { background: var(--encre-3); }

.etoiles { display: flex; align-items: center; gap: 1px; margin-bottom: 6px; font-size: .76rem; color: var(--encre-3); }
.etoiles span { margin-left: 6px; }
.etoile { width: 14px; height: 14px; fill: #d6d6d6; }
.etoile--pleine { fill: var(--etoile); }
.etoile--demi { fill: var(--etoile); opacity: .5; }
.etoiles--grand .etoile { width: 20px; height: 20px; }

.prix { display: flex; flex-direction: column; margin: 0; }
.prix__actuel { font-size: 1.35rem; font-weight: 900; color: var(--rouge); letter-spacing: -.01em; }
.prix__conseille { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--encre-3); }
.prix__barre { color: var(--encre-3); font-size: .85em; }
.remise { padding: 1px 5px; border-radius: 3px; background: var(--rouge); color: #fff; font-weight: 700; font-size: .72rem; }
.remise--grand { font-size: .8rem; padding: 3px 8px; }

/* ---------- Réassurance & pied de page ---------- */
.reassurance { background: var(--surface); border-top: 1px solid var(--ligne); margin-top: 48px; }
.reassurance__grille { display: grid; grid-template-columns: repeat(5, 1fr); }
.reassurance__grille > div { display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 12px; align-items: center; padding: 22px 12px; }
.reassurance .ic { grid-row: span 2; width: 32px; height: 32px; color: var(--rouge); }
.reassurance strong { font-size: .88rem; }
.reassurance span { font-size: .78rem; color: var(--encre-3); }

.pied { background: var(--encre); color: #bdbdbb; padding-top: 48px; font-size: .86rem; }
.pied__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.pied h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1em; }
.pied a { display: block; margin-bottom: .55em; transition: color var(--transition); }
.pied a:hover { color: #fff; }
.pied__texte { max-width: 32ch; }
.newsletter strong { display: block; color: #fff; margin: 18px 0 8px; }
.newsletter__form { display: flex; max-width: 320px; }
.newsletter__form input { flex: 1; min-width: 0; padding: .7em 1em; border: 0; border-radius: var(--rayon-petit) 0 0 var(--rayon-petit); }
.newsletter__form .btn { border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; }
.pied__bas {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem;
}
.pied__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .76rem; line-height: 1.6; }
.pied__legal p { margin-bottom: .5em; max-width: 110ch; }
.pied__legal a, .pied__credits { display: inline !important; text-decoration: underline; }
.pied__livro { display: inline-block !important; margin-top: 6px; padding: 6px 10px; border: 1px solid #bdbdbb; border-radius: 4px; font-weight: 700; color: #fff; }
.pied__paiements { display: flex; flex-wrap: wrap; gap: 6px; }
.pied__paiements b { padding: 4px 8px; border-radius: 3px; background: #fff; color: var(--encre); font-size: .7rem; }

/* ---------- Pages intérieures ---------- */
.fil-ariane { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 0; font-size: .8rem; color: var(--encre-3); }
.fil-ariane a:hover { color: var(--rouge); text-decoration: underline; }
.fil-ariane > span:last-child { color: var(--encre); }
.page-entete { padding: 16px 0 20px; }
.page-entete h1 { text-transform: uppercase; }
.page-entete p { color: var(--encre-2); margin-top: .6em; max-width: 70ch; }
.page-entete small { font-size: .9rem; font-weight: 400; color: var(--encre-3); text-transform: none; }
.page-entete--centre { text-align: center; }
.page-entete--centre p { margin-inline: auto; }

.sous-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sous-categorie { padding: 8px 16px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 999px; font-weight: 500; font-size: .85rem; }
.sous-categorie:hover { border-color: var(--rouge); color: var(--rouge); }

/* ---------- Catalogue & filtres ---------- */
.catalogue { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.filtres { position: sticky; top: 140px; padding: 18px; background: var(--surface); border-radius: var(--rayon); max-height: calc(100vh - 160px); overflow-y: auto; }
.filtres__bloc { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--ligne); }
.filtres h3 { font-size: .8rem; text-transform: uppercase; margin-bottom: 10px; }
.filtres__liens, .filtres__sous { list-style: none; margin: 0; padding: 0; }
.filtres__sous { padding-left: 12px; border-left: 2px solid var(--ligne); margin: 4px 0 6px; }
.filtres__liens a { display: block; padding: 4px 0; color: var(--encre-2); }
.filtres__liens a:hover, .filtres__liens a.actif { color: var(--rouge); }
.filtres__liens a.actif { font-weight: 700; }
.filtres__prix { display: flex; align-items: center; gap: 8px; }
.filtres__prix input { width: 100%; padding: .5em .6em; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.case { display: flex; align-items: center; gap: 10px; padding: 3px 0; cursor: pointer; color: var(--encre-2); }
.case input { width: 16px; height: 16px; accent-color: var(--rouge); margin: 0; }
.filtres-toggle { display: none; }

.barre-outils { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; padding: 10px 14px; background: var(--surface); border-radius: var(--rayon); }
.barre-outils p { margin: 0; color: var(--encre-2); }
.barre-outils__droite { display: flex; gap: 10px; align-items: center; }
.select { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--encre-3); }
.select select { padding: .45em 2em .45em .8em; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); background: var(--surface); cursor: pointer; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); font-size: .88rem;
}
.pagination a:hover { border-color: var(--rouge); color: var(--rouge); }
.pagination .actif { background: var(--rouge); color: #fff; border-color: var(--rouge); font-weight: 700; }

.vide { text-align: center; padding: 64px 20px 80px; background: var(--surface); border-radius: var(--rayon); }
.vide > .ic { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--surface-2); color: var(--encre-3); margin: 0 auto 20px; }
.vide h2 { margin-bottom: .4em; }
.vide p { color: var(--encre-2); margin-bottom: 1.6em; }

/* ---------- Fiche produit ---------- */
.fiche {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start;
  margin-top: 16px; padding: 28px; background: var(--surface); border-radius: var(--rayon);
}
.galerie { position: sticky; top: 150px; }
.galerie__principale { position: relative; aspect-ratio: 1; overflow: hidden; }
.galerie__principale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.galerie__badge { position: absolute; top: 0; left: 0; z-index: 1; font-size: 1rem; padding: .35em .7em; }
.galerie__vignettes { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: thin; }
.galerie__vignettes button { flex: 0 0 72px; height: 72px; padding: 4px; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); cursor: pointer; background: #fff; }
.galerie__vignettes button:hover, .galerie__vignettes button.actif { border: 2px solid var(--rouge); }
.galerie__vignettes img { width: 100%; height: 100%; object-fit: contain; }

.fiche__infos h1 { text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.fiche__sous-titre { margin: 6px 0 10px; color: var(--encre-2); text-transform: uppercase; font-size: .88rem; }
.fiche__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ligne); font-size: .8rem; color: var(--encre-3); }
.fiche__meta a:hover { color: var(--rouge); }
.fiche__meta .etoiles { margin: 0; }
.fiche__offre { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--rouge-clair); color: var(--rouge); font-size: .88rem; }

.achat { margin-top: 16px; padding: 20px; border: 1px solid var(--ligne); border-radius: var(--rayon); }
.achat__prix { padding-bottom: 16px; border-bottom: 1px solid var(--ligne); }
.achat__conseille { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; font-size: .85rem; color: var(--encre-3); }
.achat__actuel { font-size: 2.6rem; font-weight: 900; color: var(--rouge); line-height: 1.05; margin-bottom: 4px; letter-spacing: -.02em; }
.achat__economie { font-size: .88rem; color: var(--succes); font-weight: 700; margin-bottom: 8px; }
.etiquette-meilleur { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--rayon-petit); background: var(--jaune); font-size: .78rem; font-weight: 700; margin-bottom: 10px !important; }
.etiquette-meilleur .ic { width: 14px; height: 14px; }
.achat__mensualite { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--encre-2); }
.achat__mensualite .ic { color: var(--rouge); }

.achat__livraison { list-style: none; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--ligne); display: grid; gap: 10px; font-size: .86rem; }
.achat__livraison li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.achat__livraison .ic { color: var(--encre-2); }
.achat__livraison small { display: block; color: var(--succes); font-size: .78rem; }
.achat__livraison b { color: var(--succes); font-size: .82rem; }
.achat__livraison .indispo { opacity: .45; }
.achat .stock { margin-top: 14px; }
.achat__note { margin-top: 10px; font-size: .72rem; color: var(--encre-3); }

.stock { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--succes); font-weight: 700; }
.stock__point { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.stock--faible { color: var(--avertissement); }
.stock--epuise { color: var(--alerte); }

.fiche__achat { display: flex; gap: 10px; margin: 16px 0 0; }
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); background: var(--surface); }
.quantite button { width: 40px; height: 50px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--encre-2); }
.quantite button:hover { color: var(--rouge); }
.quantite input { width: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; font-weight: 700; }
.quantite input::-webkit-inner-spin-button, .quantite input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantite input:focus { outline: 0; }
.quantite--petit button { width: 32px; height: 36px; font-size: 1rem; }
.quantite--petit input { width: 30px; }

.garanties { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: .84rem; color: var(--encre-2); }
.garanties li { display: flex; gap: 10px; align-items: center; }
.garanties .ic { color: var(--rouge); width: 18px; height: 18px; }

.ancres {
  position: sticky; top: 122px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin-top: 16px;
  background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); scrollbar-width: none;
}
.ancres a { padding: 14px 20px; font-weight: 700; font-size: .88rem; white-space: nowrap; text-transform: uppercase; border-bottom: 3px solid transparent; }
.ancres a:hover, .ancres a.actif { color: var(--rouge); border-color: var(--rouge); }

.bloc-fiche { margin-top: 16px; padding: 28px; background: var(--surface); border-radius: var(--rayon); }
.bloc-fiche > h2 { text-transform: uppercase; font-weight: 900; margin-bottom: 20px; }
.bloc-fiche .grille-produits { gap: 10px; }
.bloc-fiche .carte { border-color: var(--ligne); }
.texte { color: var(--encre-2); max-width: 90ch; line-height: 1.7; }

.specs { columns: 2 380px; column-gap: 32px; }
.specs__groupe { width: 100%; border-collapse: collapse; margin-bottom: 20px; break-inside: avoid; font-size: .86rem; }
.specs__groupe caption { text-align: left; padding: 8px 12px; background: var(--encre); color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.specs__groupe th, .specs__groupe td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ligne); }
.specs__groupe th { width: 48%; font-weight: 400; color: var(--encre-3); }
.specs__groupe td { font-weight: 500; }
.specs__groupe tr:nth-child(even) { background: var(--surface-2); }

.avis { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.avis__note { display: grid; justify-items: center; gap: 4px; padding: 20px 32px; background: var(--surface-2); border-radius: var(--rayon); }
.avis__note strong { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.avis__note small { font-size: 1rem; color: var(--encre-3); }
.avis__note .etoiles { margin: 0; }
.avis__note span { font-size: .8rem; color: var(--encre-3); }

.barre-achat {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
  transform: translateY(110%); transition: transform .3s ease;
}
.barre-achat.visible { transform: none; }
.barre-achat__contenu { display: flex; align-items: center; gap: 16px; height: 72px; }
.barre-achat img { width: 52px; height: 52px; object-fit: contain; }
.barre-achat__nom { flex: 1; margin: 0; font-weight: 700; text-transform: uppercase; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-achat__prix { margin: 0; font-size: 1.4rem; font-weight: 900; color: var(--rouge); white-space: nowrap; }

/* ---------- Panier ---------- */
.panier { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.panier > :first-child { padding: 24px; background: var(--surface); border-radius: var(--rayon); }
.livraison-progres { padding: 16px 18px; margin-bottom: 8px; border-radius: var(--rayon); background: var(--surface-2); font-size: .88rem; }
.livraison-progres p { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.livraison-progres .ic { color: var(--succes); }
.barre { height: 6px; border-radius: 999px; background: var(--ligne); overflow: hidden; }
.barre span { display: block; height: 100%; border-radius: inherit; background: var(--rouge); transition: width .6s ease; }

.lignes { list-style: none; margin: 0 0 20px; padding: 0; }
.ligne { display: grid; grid-template-columns: 96px 1fr auto 120px auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ligne); }
.ligne__img { position: relative; aspect-ratio: 1; overflow: hidden; }
.ligne__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ligne__infos .surtitre { color: var(--encre-3); font-size: .66rem; }
.ligne__nom { font-weight: 700; text-transform: uppercase; font-size: .88rem; }
.ligne__nom:hover { color: var(--rouge); }
.ligne__pu { font-size: .82rem; color: var(--encre-3); margin: 2px 0 0; }
.ligne .stock { font-size: .78rem; margin-top: 4px; }
.ligne__total { font-weight: 900; font-size: 1.05rem; text-align: right; margin: 0; }

.recap { padding: 24px; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); }
.recap--collant { position: sticky; top: 140px; }
.recap h2 { text-transform: uppercase; margin-bottom: 16px; }
.recap__lignes { margin: 16px 0 20px; }
.recap__lignes > div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--encre-2); }
.recap__lignes dd { margin: 0; color: var(--encre); font-weight: 500; }
.recap__remise dd, .recap__remise dt { color: var(--succes) !important; }
.recap__total { margin-top: 10px; padding-top: 14px !important; border-top: 1px solid var(--ligne); font-size: 1.2rem; color: var(--encre) !important; font-weight: 900; }
.recap__total dd { color: var(--rouge) !important; font-weight: 900 !important; }
.recap__note { display: flex; justify-content: center; gap: 8px; margin-top: 12px; font-size: .78rem; color: var(--encre-3); }
.recap__note .ic { width: 16px; }
.recap .btn--noir { background: var(--rouge); }
.recap .btn--noir:hover { background: var(--rouge-fonce); }

.promo { display: flex; gap: 8px; }
.promo input { flex: 1; min-width: 0; padding: .6em .9em; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); text-transform: uppercase; }
.promo__actif { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: .5em 1em; border-radius: var(--rayon-petit); background: var(--succes-clair); color: var(--succes); font-weight: 700; }
.promo__actif span { display: flex; gap: 6px; align-items: center; }
.promo__actif .ic { width: 16px; }

/* ---------- Checkout ---------- */
.etapes { display: flex; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 24px 0; counter-reset: etape; font-size: .86rem; color: var(--encre-3); flex-wrap: wrap; }
.etapes li { display: flex; align-items: center; gap: 10px; counter-increment: etape; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ligne); font-size: .8rem; }
.etapes li + li::after { order: -1; content: ''; width: 40px; height: 2px; background: var(--ligne); }
.etapes .actif { color: var(--encre); font-weight: 700; }
.etapes .actif::before { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.etapes .fait { color: var(--encre-2); }
.etapes .fait::before { content: '✓'; background: var(--succes); color: #fff; border-color: transparent; }

.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; }
.bloc { margin: 0 0 16px; padding: 24px; border: 0; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); }
.bloc legend { float: left; width: 100%; margin-bottom: 18px; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; }
.champs { display: grid; gap: 14px; clear: both; }
.champs--2 { grid-template-columns: 1fr 1fr; }
.champ--large { grid-column: 1 / -1; }
.champ label { display: block; margin-bottom: 5px; font-size: .82rem; font-weight: 500; color: var(--encre-2); }
.champ input, .champ textarea, .champ select {
  width: 100%; padding: .75em .9em;
  border: 1px solid var(--ligne); border-radius: var(--rayon-petit); background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: 0; border-color: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-clair); }
.champ small { display: block; margin-top: 5px; color: var(--alerte); font-size: .78rem; }
.champ--erreur input, .champ--erreur textarea { border-color: var(--alerte); }

.options { display: grid; gap: 10px; clear: both; }
.options > div { display: contents; }
.option {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--ligne); border-radius: var(--rayon-petit); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.option:hover { border-color: var(--encre-3); }
.option:has(input:checked) { border-color: var(--rouge); background: var(--rouge-clair); box-shadow: inset 0 0 0 1px var(--rouge); }
.option input { width: 18px; height: 18px; accent-color: var(--rouge); margin: 0; }
.option__texte { flex: 1; }
.option__prix { font-weight: 700; }
.aide { margin-top: 12px; font-size: .8rem; color: var(--encre-3); }

.mini-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-lignes li { display: flex; align-items: center; gap: 14px; font-size: .86rem; }
.mini-lignes__img { position: relative; width: 56px; height: 56px; flex-shrink: 0; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); background: #fff; }
.mini-lignes__img img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.mini-lignes__img b { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; border-radius: 999px; background: var(--encre); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.mini-lignes__nom { flex: 1; }

/* ---------- Confirmation & suivi ---------- */
.succes { text-align: center; padding: 16px 0 28px; }
.succes__icone { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; background: var(--succes-clair); color: var(--succes); animation: pop .6s ease; }
.succes__icone .ic { width: 34px; height: 34px; }
.succes h1 { margin-bottom: .4em; }
.succes p { color: var(--encre-2); max-width: 52ch; margin-inline: auto; }
.resume-commande { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--ligne); }
.resume-commande span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 4px; }
.resume-commande p { font-size: .84rem; color: var(--encre-2); margin-top: 4px; }
.actions-centre { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 0; }

.statut { display: inline-block; padding: .3em .9em; border-radius: var(--rayon-petit); font-size: .8rem; font-weight: 700; background: var(--surface-2); }
.statut--en_attente { background: var(--avertissement-clair); color: var(--avertissement); }
.statut--confirmee, .statut--expediee { background: #e3edf8; color: var(--bleu); }
.statut--livree { background: var(--succes-clair); color: var(--succes); }
.statut--annulee { background: var(--alerte-clair); color: var(--alerte); }

.suivi-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.suivi-entete { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.frise { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 0 28px; padding: 0; font-size: .84rem; text-align: center; color: var(--encre-3); }
.frise li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.frise li + li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--ligne); z-index: 0; }
.frise li.fait { color: var(--encre); font-weight: 500; }
.frise li.fait::before { background: var(--succes); }
.frise__point { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: transparent; }
.frise .fait .frise__point { background: var(--succes); color: #fff; }
.frise__point .ic { width: 16px; }

.lien-souligne { text-decoration: underline; color: var(--rouge); }
.instructions { margin: 0 0 20px; padding: 18px 20px; border: 2px solid var(--rouge); border-radius: var(--rayon); background: var(--rouge-clair); }
.instructions h2 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: 8px; }
.instructions p { font-size: 1rem; }
.alerte { padding: 14px 18px; border-radius: var(--rayon-petit); background: var(--alerte-clair); color: var(--alerte); }

/* ---------- Connexion / inscription ---------- */
.auth { padding-block: 28px 48px; }
.auth__carte {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-width: 940px; margin: 0 auto;
  border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--ombre), 0 12px 32px rgba(0, 0, 0, .06);
}
.auth__form { padding: 40px 44px; }
.auth__form h1 { text-transform: uppercase; font-weight: 900; }
.auth__intro { margin: 8px 0 24px; color: var(--encre-2); }
.auth__info { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 22px; padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--rouge-clair); color: var(--rouge-fonce); font-size: .88rem; }
.auth__info .ic { margin-top: 1px; }
.auth__lien { justify-self: start; margin-top: -4px; font-size: .85rem; color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px; }
.auth__lien:hover { color: var(--rouge); }
.auth__cote { display: flex; flex-direction: column; padding: 40px 36px; background: var(--encre); color: #fff; }
.auth__cote h2 { font-weight: 900; text-transform: uppercase; }
.auth__cote > p { margin: 8px 0 20px; color: #bdbdbb; }
.auth__atouts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; flex: 1; align-content: start; }
.auth__atouts li { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: #e6e6e4; }
.auth__atouts .ic { padding: 7px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--jaune); }
.auth__cote .btn--noir { background: #fff; color: var(--encre); }
.auth__cote .btn--noir:hover { background: var(--jaune); }
.champ__mdp { position: relative; }
.champ__mdp input { padding-right: 46px; }
.auth__oeil {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: var(--rayon-petit);
  background: none; color: var(--encre-3); cursor: pointer;
}
.auth__oeil:hover, .auth__oeil.actif { color: var(--rouge); }
.conteneur--auth { max-width: 480px; padding-bottom: 40px; }
.conteneur--auth > .btn { margin-top: 8px; }
.champ .aide { margin-top: 5px; }
.aide ul { margin: 4px 0 0; padding-left: 16px; }
.aide li + li { margin-top: 2px; }

/* ---------- Espace client ---------- */
.compte { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 8px 40px; }
.compte__menu { position: sticky; top: 140px; padding: 20px 14px; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); }
.compte__moi { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--ligne); }
.compte__moi strong { display: block; line-height: 1.25; }
.compte__moi small { display: block; color: var(--encre-3); font-size: .78rem; word-break: break-all; }
.compte__avatar { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--rouge); color: #fff; font-weight: 900; font-size: 1.1rem; }
.compte__menu nav { display: grid; gap: 2px; }
.compte__menu nav a, .compte__sortie {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-radius: var(--rayon-petit);
  background: none; font-weight: 500; color: var(--encre-2); cursor: pointer; text-align: left;
  transition: background var(--transition), color var(--transition);
}
.compte__menu nav a:hover, .compte__sortie:hover { background: var(--surface-2); color: var(--encre); }
.compte__menu nav a.actif { background: var(--rouge-clair); color: var(--rouge); font-weight: 700; }
.compte__menu form { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--ligne); }
.compte__sortie { color: var(--encre-3); }
.compte__entete { margin-bottom: 18px; }
.compte__entete h1 { text-transform: uppercase; }
.compte__entete p { margin-top: 6px; color: var(--encre-2); }
.compte__titre { font-size: 1.05rem; font-weight: 900; text-transform: uppercase; margin-bottom: 16px; }
.compte__actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.compte__form-mdp { max-width: 560px; }
.compte__retour { margin-bottom: 14px; }
.compte__commandes { list-style: none; margin: 0; padding: 0; }
.compte__commandes li + li { border-top: 1px solid var(--ligne); }
.compte__commandes a { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; }
.compte__commandes a:hover strong { color: var(--rouge); }
.compte__ligne { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.compte__commandes small { display: block; color: var(--encre-3); font-size: .8rem; }
.compte__credit { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 8px; }
.compte__credit div { padding: 14px 16px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.compte__credit span { display: block; font-size: .78rem; color: var(--encre-3); }
.compte__credit strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.compte__credit--du { background: var(--rouge-clair) !important; }
.compte__credit--du strong { color: var(--rouge); }
.compte__vide { display: grid; justify-items: center; gap: 12px; padding: 24px 0 8px; text-align: center; color: var(--encre-2); }
.compte__vide .ic { width: 44px; height: 44px; color: var(--encre-3); }
@media (max-width: 900px) {
  .auth__carte, .compte { grid-template-columns: minmax(0, 1fr); }
  .auth__form, .auth__cote { padding: 28px 20px; }
  .compte { gap: 14px; }
  .compte__menu { position: static; display: flex; align-items: center; gap: 6px; padding: 6px; }
  .compte__moi { display: none; }
  .compte__menu nav { display: flex; flex: 1; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .compte__menu nav a { width: auto; white-space: nowrap; padding: 8px 12px; font-size: .85rem; }
  .compte__menu nav .ic { display: none; }
  .compte__menu form { margin: 0; padding: 0 0 0 6px; border-top: 0; border-left: 1px solid var(--ligne); }
  .compte__sortie { padding: 8px; font-size: 0; gap: 0; }
  .compte__sortie .ic { width: 20px; height: 20px; }
}
@media (max-width: 560px) { .compte__commandes a { grid-template-columns: 1fr auto; } .compte__commandes a > strong { grid-column: 2; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 90px; right: 24px; z-index: 100; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 48px)); }
.toast {
  padding: 14px 18px 14px 44px; position: relative;
  border-radius: var(--rayon-petit); background: var(--encre); color: #fff;
  box-shadow: var(--ombre-forte); font-size: .88rem;
  animation: toast-entree .35s cubic-bezier(.2, .7, .3, 1);
}
.toast::before { content: '●'; position: absolute; left: 18px; top: 13px; color: #6fdc8c; }
.toast--warning::before { color: #fbd38d; }
.toast--error::before { color: #feb2b2; }
.toast--info::before { color: #bee3f8; }
.toast.sortie { animation: toast-sortie .3s ease forwards; }
@keyframes toast-entree { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-sortie { to { opacity: 0; transform: translateX(24px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grille-produits, .grille-produits--3 { grid-template-columns: repeat(3, 1fr); }
  .grille-produits--5 { grid-template-columns: repeat(4, 1fr); }
  .carrousel__piste { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .reassurance__grille { grid-template-columns: repeat(3, 1fr); }
  .topbar__atouts li:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 130px; }
  .conteneur { padding: 0 14px; }
  .topbar { display: none; }
  .entete__barre { flex-wrap: wrap; gap: 10px 12px; height: auto; padding-block: 10px; }
  .entete__burger { display: inline-grid; order: -1; }
  .logo { font-size: 1.05rem; padding: 6px 10px; }
  .recherche { order: 5; flex-basis: 100%; max-width: none; }
  .entete__actions { gap: 14px; }
  .entete__action span:not(.entete__icone):not(.pastille) { display: none; }

  .nav { display: none; }
  .nav.ouvert { display: block; max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav.ouvert .nav__barre { flex-direction: column; height: auto; padding: 0; }
  .nav.ouvert .mega__bouton { display: none; }
  .nav.ouvert .mega__panneau { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
  .nav.ouvert .mega__grille { grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 14px; }
  .nav.ouvert .nav__liens { display: none; }

  .une { grid-template-columns: 1fr; }
  .une__cotes { grid-template-columns: 1fr 1fr; }
  .slide { padding: 32px 28px 44px; }
  .slide__gros { display: none; }
  .slider { min-height: 280px; }
  .bandeaux { grid-template-columns: 1fr; }
  .carrousel__piste { grid-auto-columns: 42%; }

  .fiche, .panier, .checkout, .catalogue { grid-template-columns: minmax(0, 1fr); }
  .fiche { padding: 16px; gap: 20px; }
  .galerie, .recap--collant { position: static; }
  .ancres { top: 108px; }
  .bloc-fiche { padding: 20px 16px; }
  .achat__actuel { font-size: 2.1rem; }

  .filtres { display: none; position: static; max-height: none; }
  .filtres.ouvert { display: block; }
  .filtres-toggle { display: inline-flex; }
  .barre-outils .select span { display: none; }

  .reassurance__grille { grid-template-columns: 1fr 1fr; }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 28px; }

  .ligne { grid-template-columns: 72px 1fr auto; grid-template-areas: 'img infos retirer' 'img qte total'; gap: 8px 14px; }
  .ligne__img { grid-area: img; align-self: start; }
  .ligne__infos { grid-area: infos; }
  .ligne .quantite { grid-area: qte; justify-self: start; }
  .ligne__total { grid-area: total; }
  .ligne__retirer { grid-area: retirer; }
  .panier > :first-child { padding: 16px; }

  .champs--2, .suivi-form, .resume-commande { grid-template-columns: 1fr; }
  .bloc, .recap { padding: 20px 16px; }
  .barre-achat__nom { display: none; }
  .barre-achat__contenu { justify-content: space-between; }
}

@media (max-width: 560px) {
  .grille-produits, .grille-produits--3, .grille-produits--5 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .carrousel__piste { grid-auto-columns: 62%; }
  .carte { padding: 10px; }
  .carte__nom { font-size: .78rem; }
  .prix__actuel { font-size: 1.1rem; }
  .carte__ajout .btn { font-size: 0; gap: 0; }
  .carte__ajout .btn .ic { width: 20px; height: 20px; }
  .section__entete { align-items: center; }
  .une__cotes { grid-template-columns: 1fr; }
  .raccourcis { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .raccourci { font-size: .76rem; overflow-wrap: anywhere; hyphens: auto; }
  .slider__fleche { top: auto; bottom: 14px; transform: none; width: 34px; height: 34px; }
  .slide { padding-bottom: 64px; }
  .fiche__achat { flex-direction: column; }
  .fiche__achat .quantite { align-self: flex-start; }
  .reassurance__grille, .pied__grille { grid-template-columns: 1fr; }
  .etapes li + li::after { width: 16px; }
  .frise { font-size: .72rem; }
  .barre-achat img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Pages d'erreur ---------- */
.erreur-page { padding-block: 64px 80px; text-align: center; }
.erreur-page__code { margin: 0; font-size: clamp(4rem, 14vw, 7rem); font-weight: 900; line-height: 1; color: var(--rouge); }
.erreur-page h1 { margin-top: 8px; text-transform: uppercase; }
.erreur-page > p:not(.erreur-page__code) { margin-top: 10px; color: var(--encre-2); }
.erreur-page__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Paiement en ligne (ifthenpay) ---------- */
.instructions--paiement { background: var(--surface); }
.paiement { display: grid; gap: 14px; }
.paiement__etat { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--rayon-petit); }
.paiement__etat p { margin: 4px 0 0; font-size: .9rem; }
.paiement__etat .ic { width: 24px; height: 24px; flex-shrink: 0; }
.paiement__etat--ok { background: var(--succes-clair); color: var(--succes); }
.paiement__etat--ok p, .paiement__etat--attente p, .paiement__etat--erreur p { color: var(--encre-2); }
.paiement__etat--attente { background: var(--surface-2); }
.paiement__etat--erreur { background: var(--alerte-clair); color: var(--alerte); }
.paiement__roue { flex-shrink: 0; width: 24px; height: 24px; border: 3px solid var(--ligne); border-top-color: var(--rouge); border-radius: 50%; animation: roue 1s linear infinite; }
@keyframes roue { to { transform: rotate(360deg); } }
.paiement__expire { color: var(--alerte); font-weight: 500; }
.paiement__form label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; color: var(--encre-2); }
.paiement__form > div { display: flex; gap: 10px; flex-wrap: wrap; }
.paiement__form input { flex: 1; min-width: 180px; padding: .75em .9em; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.paiement__form input:focus { outline: 0; border-color: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-clair); }
.paiement__form--discret { opacity: .75; }
.multibanco { display: flex; align-items: center; gap: 20px; padding: 18px 20px; border: 2px solid var(--encre); border-radius: var(--rayon); }
.multibanco__logo { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; background: #1d5bbf; color: #fff; font-weight: 900; font-size: 1.25rem; letter-spacing: -.03em; }
.multibanco dl { display: grid; gap: 6px; margin: 0; flex: 1; }
.multibanco dl div { display: flex; justify-content: space-between; gap: 16px; }
.multibanco dt { color: var(--encre-3); }
.multibanco dd { margin: 0; font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ---------- Comprovativo de pagamento (envoi du reçu par le client) ---------- */
.comprovativo { margin: 0 0 20px; padding: 18px 20px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); }
.comprovativo h2 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: 8px; }
.comprovativo > p { font-size: .95rem; color: var(--encre-2); }
.comprovativo__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.comprovativo__fichier { flex: 1; min-width: 220px; }
.comprovativo__fichier span { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; color: var(--encre-2); }
.comprovativo__fichier input { width: 100%; padding: .6em .7em; border: 1px dashed var(--ligne); border-radius: var(--rayon-petit); background: var(--surface-2); font: inherit; font-size: .88rem; }
.comprovativo__recu { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--succes-clair); color: var(--succes); font-weight: 500; font-size: .92rem; }
.comprovativo__recu .ic { width: 18px; height: 18px; flex-shrink: 0; }
