/* =====================================================================
   Charte du site acheteur : sobre, aérée, typographie fine.
   Police Inter (300 à 600), traits fins, une seule couleur d'accent.
   ===================================================================== */
:root {
  --fond: #ffffff;
  --fond-doux: #f6f6f4;
  --surface: #ffffff;
  --texte: #171717;
  --texte-doux: #6f6f6f;
  --texte-pale: #9a9a9a;
  --trait: #ececec;
  --trait-fort: #dcdcdc;
  --accent: #1e5245;          /* vert sapin */
  --accent-fonce: #143a31;
  --accent-clair: #eaf1ee;
  --vert: #1e5245;
  --rouge: #b42318;
  --rayon: 6px;
  --rayon-grand: 12px;
  --largeur: 1280px;
  --ombre: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--texte);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-clair); }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }

/* ----- En-tête ----- */
#entete { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 20; }
.bandeau-demo { background: var(--fond-doux); color: var(--texte-doux); text-align: center; font-size: 12px;
  padding: 6px 16px; letter-spacing: .01em; border-bottom: 1px solid var(--trait); }
.barre { max-width: var(--largeur); margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.logo { font-weight: 600; font-size: 21px; color: var(--accent); white-space: nowrap; letter-spacing: -0.035em; }
.recherche { flex: 1; position: relative; max-width: 720px; }
.recherche .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--texte-pale); width: 18px; height: 18px; }
.recherche input { width: 100%; padding: 9px 14px 9px 38px; border-radius: var(--rayon); border: 1px solid transparent;
  background: var(--fond-doux); font-size: 14px; font-weight: 400; transition: background .15s, border-color .15s; }
.recherche input::placeholder { color: var(--texte-pale); }
.recherche input:focus { outline: none; background: #fff; border-color: var(--trait-fort); }
.actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.lien-entete { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--rayon);
  font-size: 14px; color: var(--texte-doux); position: relative; }
.lien-entete:hover { color: var(--texte); background: var(--fond-doux); }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
  border-radius: var(--rayon); background: var(--accent); color: #fff; font-weight: 500; font-size: 14px;
  border: 1px solid var(--accent); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton.discret, .bouton.secondaire { background: #fff; color: var(--accent); border-color: var(--accent); }
.bouton.discret:hover, .bouton.secondaire:hover { background: var(--accent-clair); }
.bouton[disabled], .bouton[aria-disabled="true"] { background: var(--fond-doux); color: var(--texte-pale);
  border-color: var(--trait); cursor: not-allowed; }
.bouton.large { width: 100%; padding: 12px; font-size: 15px; margin-top: 10px; }
.bouton.dedans { background: var(--accent-clair); color: var(--accent); border-color: var(--accent-clair); }
.pastille-panier { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 600; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex;
  align-items: center; justify-content: center; }
.pastille-panier[hidden] { display: none; }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--texte); }

/* ----- Onglets et menu au survol ----- */
.onglets { max-width: var(--largeur); margin: 0 auto; display: flex; gap: 2px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { padding: 10px 10px 11px; font-size: 14px; color: var(--texte-doux); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .15s; }
.onglets a:hover, .onglets a.actif { color: var(--texte); border-bottom-color: var(--texte); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--trait);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .07); display: flex; max-width: var(--largeur); margin: 0 auto; min-height: 340px;
  border-radius: 0 0 var(--rayon-grand) var(--rayon-grand); overflow: hidden; }
.mega[hidden] { display: none; }
.mega-gauche { width: 260px; border-right: 1px solid var(--trait); padding: 10px 0; background: #fcfcfb; }
.mega-gauche a { display: flex; justify-content: space-between; padding: 10px 22px; font-size: 14px; color: var(--texte-doux); }
.mega-gauche a span { color: var(--texte-pale); }
.mega-gauche a:hover, .mega-gauche a.actif { background: #fff; color: var(--texte); font-weight: 500; }
.mega-droite { flex: 1; padding: 22px 32px; }
.tout-voir { display: inline-block; color: var(--accent); font-weight: 500; font-size: 14px; margin-bottom: 18px; }
.tout-voir:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 28px; }
.mega-groupe { display: flex; flex-direction: column; gap: 7px; }
.mega-titre { font-weight: 500; font-size: 14px; }
.mega-lien { color: var(--texte-doux); font-size: 13.5px; font-weight: 400; }
.mega-titre:hover, .mega-lien:hover { color: var(--accent); }

/* ----- Tiroir (téléphone) ----- */
.tiroir { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 30; animation: fondu .15s; }
.tiroir[hidden] { display: none; }
.tiroir-contenu { background: var(--surface); width: min(86vw, 360px); height: 100%; overflow-y: auto; animation: glisse .2s ease-out; }
@keyframes fondu { from { opacity: 0; } }
@keyframes glisse { from { transform: translateX(-24px); opacity: .6; } }
.tiroir-haut { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid var(--trait); font-size: 15px; }
.tiroir-haut strong { font-weight: 500; }
.tiroir-haut button { background: none; border: 0; font-size: 15px; color: var(--accent); cursor: pointer; padding: 4px; }
.tiroir-haut .fermer { font-size: 26px; color: var(--texte-doux); line-height: 1; font-weight: 300; }
.tiroir-ligne { display: flex; justify-content: space-between; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--trait); padding: 15px 16px; font-size: 15px; color: var(--texte); cursor: pointer; }
.tiroir-ligne span { color: var(--texte-pale); }
.tiroir-ligne.tout { color: var(--accent); font-weight: 500; }
.tiroir-liens { padding: 8px 0; border-top: 6px solid var(--fond-doux); }
.tiroir-liens a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 15px; color: var(--texte-doux); }

/* ----- Contenu ----- */
main { max-width: var(--largeur); margin: 0 auto; padding: 28px 24px; min-height: 60vh; }

/* Accueil : bannière */
.accroche { position: relative; border-radius: var(--rayon-grand); overflow: hidden; margin-bottom: 36px; min-height: 380px;
  display: flex; align-items: center; padding: 40px;
  background:
    radial-gradient(120% 140% at 85% 20%, #d9e6df 0%, rgba(217, 230, 223, 0) 55%),
    radial-gradient(90% 120% at 100% 100%, #efe3d6 0%, rgba(239, 227, 214, 0) 60%),
    linear-gradient(135deg, #f3f1ec 0%, #e8eee9 100%); }
.accroche-mosaique { position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  display: grid; grid-template-columns: repeat(3, 120px); gap: 12px; }
.accroche-mosaique > span { display: block; aspect-ratio: 3 / 4; border-radius: 10px; box-shadow: var(--ombre); }
.accroche-mosaique > span:nth-child(2) { transform: translateY(-22px); }
.accroche-mosaique > span:nth-child(5) { transform: translateY(-22px); }
.accroche-carte { position: relative; background: #fff; border-radius: var(--rayon-grand); padding: 32px; max-width: 420px;
  box-shadow: var(--ombre); }
.accroche h1 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.025em; }
.accroche p { margin: 0 0 22px; color: var(--texte-doux); font-size: 15px; font-weight: 400; }
.accroche .bouton { width: 100%; padding: 12px; }
.accroche-lien { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--accent); }
.accroche-lien:hover { text-decoration: underline; text-underline-offset: 3px; }

.promesses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trait);
  border: 1px solid var(--trait); border-radius: var(--rayon-grand); overflow: hidden; margin: -12px 0 40px; }
.promesse { background: #fff; padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; }
.promesse .ico { color: var(--accent); width: 22px; height: 22px; margin-top: 1px; }
.promesse strong { display: block; font-weight: 500; font-size: 14px; }
.promesse span { font-size: 13px; color: var(--texte-doux); }

.tuiles { display: flex; gap: 8px; margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tuiles::-webkit-scrollbar { display: none; }
.tuile { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--trait-fort); font-weight: 400;
  font-size: 14px; white-space: nowrap; transition: border-color .15s, background .15s; }
.tuile:hover { border-color: var(--texte); }
.titre-section { font-size: 20px; font-weight: 500; margin: 0 0 18px; letter-spacing: -0.02em;
  display: flex; justify-content: space-between; align-items: baseline; }
.titre-section a { font-size: 14px; font-weight: 400; color: var(--accent); letter-spacing: 0; }
.titre-section a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fil { font-size: 13px; color: var(--texte-pale); margin-bottom: 10px; }
.fil a:hover { color: var(--texte); }
.fil span { color: var(--texte-doux); }
main > h1 { margin: 4px 0 16px; font-size: 28px; font-weight: 500; letter-spacing: -0.025em; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.puce { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--trait-fort); font-size: 13.5px; }
.puce:hover { border-color: var(--texte); }
.compte { color: var(--texte-pale); font-size: 13px; margin: 0 0 16px; }

/* Grille d'articles */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 16px; }
.carte { display: block; }
.carte-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--rayon); overflow: hidden; background: var(--fond-doux); }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.carte:hover .carte-photo img { transform: scale(1.025); }
.sans-photo { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; color: rgba(23, 23, 23, .55); font-weight: 400; font-size: 14px; letter-spacing: .01em; }
.sans-photo::before { content: ""; width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(23, 23, 23, .18); }
.sans-photo.grande { aspect-ratio: 4 / 5; border-radius: var(--rayon-grand); font-size: 20px; }
.carte-texte { padding: 10px 2px 0; }
.carte-boutique { font-size: 12px; color: var(--texte-pale); display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.carte-boutique b { font-weight: 500; color: var(--accent); }
.carte-titre { font-size: 13.5px; color: var(--texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-details { font-size: 12.5px; color: var(--texte-pale); min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-prix { font-weight: 500; font-size: 15px; margin-top: 6px; letter-spacing: -0.01em; }
.carte-prix-total { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.carte-prix-total .ico { width: 13px; height: 13px; }

/* ----- Fiche article ----- */
.fiche { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: 40px; align-items: start; }
.photo-principale { width: 100%; border-radius: var(--rayon-grand); aspect-ratio: 4 / 5; object-fit: cover; background: var(--fond-doux); }
.miniatures { display: flex; gap: 8px; margin-top: 10px; }
.miniatures img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--rayon); cursor: pointer; opacity: .75; transition: opacity .15s; }
.miniatures img:hover, .miniatures img.actif { opacity: 1; }
.fiche-achat { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-grand); padding: 24px;
  position: sticky; top: 130px; }
.fiche-achat h1 { font-size: 20px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.02em; }
.fiche-sous-titre { color: var(--texte-pale); font-size: 13.5px; margin-bottom: 16px; }
.prix { font-size: 15px; color: var(--texte-doux); font-weight: 400; }
.prix-total { color: var(--accent); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.prix-total small { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.detail-prix { margin: 10px 0 0; font-size: 13.5px; color: var(--texte-doux); }
.detail-prix summary { cursor: pointer; color: var(--texte-doux); list-style: none; text-decoration: underline;
  text-decoration-color: var(--trait-fort); text-underline-offset: 3px; }
.detail-prix summary::-webkit-details-marker { display: none; }
.detail-prix p { margin: 8px 0 0; }
.caracteristiques { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 20px 0; font-size: 14px; }
.caracteristiques dt, .caracteristiques dd { padding: 9px 0; border-bottom: 1px solid var(--trait); }
.caracteristiques dt { color: var(--texte-pale); padding-right: 24px; }
.caracteristiques dd { margin: 0; text-align: right; }
.vendeur { display: flex; gap: 12px; align-items: center; padding: 16px 0; font-size: 14px; }
.vendeur small { display: block; color: var(--texte-pale); margin-top: 2px; font-size: 12.5px; }
.vendeur strong { font-weight: 500; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--accent-clair); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none; }
.badge-pro { background: var(--accent-clair); color: var(--accent); font-size: 11px; font-weight: 500; padding: 2px 7px;
  border-radius: 4px; margin-left: 6px; vertical-align: 1px; letter-spacing: .02em; }
.note { font-size: 12.5px; color: var(--texte-pale); margin: 10px 0 0; }
.description { max-width: 760px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--trait); }
.description h2 { font-size: 17px; margin: 0 0 10px; }
.description p { color: var(--texte-doux); margin: 0; white-space: pre-line; }
.vide { font-size: 15px; color: var(--texte-doux); padding: 60px 0; text-align: center; }

/* ----- Pied de page ----- */
.pied { border-top: 1px solid var(--trait); margin-top: 64px; background: #fcfcfb; color: var(--texte-doux); font-size: 13px; }
.pied-haut { max-width: var(--largeur); margin: 0 auto; padding: 40px 24px 28px; display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pied-haut strong { display: block; color: var(--texte); font-weight: 500; margin-bottom: 12px; font-size: 13.5px; }
.pied-haut a { display: block; padding: 3px 0; }
.pied-haut a:hover { color: var(--texte); }
.pied-marque .logo { font-size: 18px; display: inline-block; margin-bottom: 8px; }
.pied-marque p { margin: 0; max-width: 280px; }
.pied-bas { max-width: var(--largeur); margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--trait);
  color: var(--texte-pale); font-size: 12px; }

/* ----- Panier et commandes ----- */
.page-etroite { max-width: 820px; }
.page-etroite > h1 { font-size: 26px; }
.encart { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-grand); padding: 24px; margin: 16px 0; }
.encart h2 { font-size: 16px; font-weight: 500; margin: 0 0 14px; }
.encart label { display: block; font-size: 13px; font-weight: 500; color: var(--texte-doux); margin: 14px 0 0; }
.encart input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--trait-fort);
  border-radius: var(--rayon); font-size: 15px; background: #fff; transition: border-color .15s; }
.encart input:focus { outline: none; border-color: var(--texte); }
.encart form .bouton:not(.large) { margin-top: 14px; }
.deux-champs { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.lignes-panier { list-style: none; padding: 0; margin: 0; }
.lignes-panier li { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 14px; }
.lignes-panier li:last-child { border-bottom: 0; }
.lignes-panier li.barre .titre-ligne, .lignes-panier li.barre > span:last-child { color: var(--texte-pale); text-decoration: line-through; }
.mini-photo { width: 56px; height: 70px; border-radius: var(--rayon); overflow: hidden; background: var(--fond-doux); display: block; }
.mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.titre-ligne { overflow: hidden; text-overflow: ellipsis; color: var(--texte); }
.lien { background: none; border: 0; color: var(--texte-pale); cursor: pointer; font-size: 13px; padding: 4px; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--trait-fort); }
.lien:hover { color: var(--rouge); }
.lien-accent { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.choix-transport { border: 0; padding: 0; margin: 20px 0 0; }
.choix-transport legend { font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.encart label.option { display: flex; align-items: center; gap: 12px; font-weight: 400; color: var(--texte); font-size: 14px;
  margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--trait-fort); border-radius: var(--rayon); cursor: pointer;
  transition: border-color .15s, background .15s; }
.encart label.option input { width: auto; margin: 0; accent-color: var(--accent); }
.encart label.option span:nth-child(2) { flex: 1; }
.encart label.option:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); }
.recap { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 20px 0 0; font-size: 14px; color: var(--texte-doux); }
.recap dd { margin: 0; text-align: right; color: var(--texte); }
.recap .total { font-weight: 500; font-size: 16px; color: var(--texte); border-top: 1px solid var(--trait); padding-top: 12px; margin-top: 4px; }
.alerte { background: #fef3f2; color: var(--rouge); padding: 12px 14px; border-radius: var(--rayon); font-size: 14px; }
.info { background: var(--accent-clair); color: var(--accent-fonce); padding: 12px 14px; border-radius: var(--rayon); font-size: 14px; }
.cmd-haut { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.etape { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--fond-doux); color: var(--texte-doux); }
.etape.a_confirmer, .etape.a_expedier, .etape.expediee, .etape.paiement_en_cours { background: #fff7e6; color: #8a5a00; }
.etape.terminee, .etape.livree { background: var(--accent-clair); color: var(--accent); }
.etape.litige, .etape.retour_demande { background: #fef3f2; color: var(--rouge); }
.boutons-cmd { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.boutons-cmd:empty { display: none; }

/* ----- Tablette et téléphone ----- */
@media (max-width: 1100px) {
  .accroche-mosaique { grid-template-columns: repeat(2, 110px); }
  .accroche-mosaique > span:nth-child(n+5) { display: none; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .onglets, .mega, .lien-entete.commandes { display: none !important; }
  .barre { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .recherche { order: 3; flex-basis: 100%; max-width: none; }
  main { padding: 18px 16px; }
  .accroche { padding: 0; min-height: 0; display: block; background: none; margin-bottom: 24px; }
  .accroche-mosaique { position: static; transform: none; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: -40px; padding: 0 8px; }
  .accroche-mosaique > span:nth-child(n+4) { display: none; }
  .accroche-mosaique > span:nth-child(2) { transform: translateY(-10px); }
  .accroche-carte { max-width: none; padding: 24px 20px; margin: 0 4px; }
  .promesses { grid-template-columns: 1fr; margin: 0 0 28px; }
  .promesse { padding: 14px 16px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .fiche { grid-template-columns: 1fr; gap: 20px; }
  .fiche-achat { position: static; padding: 20px; }
  .deux-champs { grid-template-columns: 1fr; }
  .lignes-panier li { grid-template-columns: 48px 1fr auto; }
  .lignes-panier li .retirer { grid-column: 2 / 4; justify-self: start; }
  .pied-haut { grid-template-columns: 1fr 1fr; padding: 28px 16px 20px; }
  .pied-marque { grid-column: 1 / -1; }
  .pied-bas { padding: 14px 16px 24px; }
}
