/* Vide-grenier — complète /styles.css d'odile.cloud */
.vg-section { padding-top: 56px; }
.vg-titre-page { font-size: clamp(28px, 4vw, 40px); font-style: italic; line-height: 1.15; }
.vg-sous-titre { font-size: 22px; margin-top: 30px; }
.vg-retour { margin-bottom: 22px; }
.vg-vide { font-size: 16px; color: var(--ink-soft); padding: 40px 0; }
.vg-note { font-size: 13px; color: var(--ink-soft); margin-top: 40px; max-width: 70ch; }
.vg-alerte { background: var(--paper); border-left: 3px solid var(--calm); padding: 14px 18px; margin: 18px 0; }
.vg-ok { background: var(--paper); border-left: 3px solid var(--teal); padding: 14px 18px; margin-top: 18px; }
.ref { font-family: monospace; color: var(--gold); font-style: normal; }
.petit { font-size: 12.5px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* Panier flottant */
.vg-panier-flottant { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--gold); color: var(--bg);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; text-decoration: none; padding: 12px 18px;
  border-radius: 30px; box-shadow: 0 6px 20px rgba(0,0,0,.35); display: flex; gap: 8px; align-items: center; }
.vg-panier-flottant span { background: var(--bg); color: var(--gold); border-radius: 20px; padding: 1px 8px; font-size: 12.5px; }
.vg-panier-flottant.vide { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); box-shadow: none; }

/* Filtres */
.vg-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.vg-filtres button { font-family: 'Inter', sans-serif; font-size: 13.5px; padding: 8px 14px; border-radius: 20px; cursor: pointer;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.vg-filtres button.actif { color: var(--ink); border-color: var(--gold); background: rgba(232,166,98,.1); }

/* Grille des objets */
.vg-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.vg-carte { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.vg-carte:hover { transform: translateY(-2px); border-color: var(--gold); }
.vg-carte-photo { position: relative; aspect-ratio: 1; background: #261d31; display: flex; align-items: center; justify-content: center; }
.vg-carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.vg-sans-photo { font-size: 46px; opacity: .55; }
.vg-carte-texte { padding: 14px 16px 18px; }
.vg-carte h2 { font-size: 17px; line-height: 1.3; margin: 4px 0 8px; font-weight: 500; }
.vg-cat { font-family: 'Inter', sans-serif; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.vg-prix { font-family: 'Inter', sans-serif; font-weight: 600; color: var(--gold); font-size: 16px; }
.vg-badge { position: absolute; top: 10px; left: 10px; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 2px; background: rgba(23,17,31,.85); }
.b-reserve { color: var(--gold); } .b-vendu { color: var(--ink-soft); } .b-encombrant { color: var(--teal); }
.vg-carte.statut-vendu img, .vg-carte.statut-vendu .vg-sans-photo { filter: grayscale(1); opacity: .45; }
.vg-carte.statut-vendu .vg-prix { color: var(--ink-soft); text-decoration: line-through; }

/* Fiche objet */
.vg-fiche { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.vg-photo-principale { width: 100%; aspect-ratio: 1; object-fit: contain; background: #261d31; border-radius: 3px; display: block; }
.vg-sans-photo-grand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 70px; }
.vg-sans-photo-grand small { font-size: 13px; color: var(--ink-soft); font-family: 'Inter', sans-serif; }
.vg-vignettes { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.vg-vignettes button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 3px; }
.vg-vignettes button.actif { border-color: var(--gold); }
.vg-vignettes img { width: 72px; height: 72px; object-fit: cover; display: block; border-radius: 2px; }
.vg-infos h1 { font-size: clamp(26px, 3.4vw, 36px); font-style: italic; line-height: 1.15; margin-top: 6px; }
.vg-prix-grand { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 26px; color: var(--gold); margin-top: 12px; }
.vg-carac { margin: 22px 0 0; display: grid; gap: 8px; }
.vg-carac div { display: flex; gap: 12px; font-size: 14.5px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.vg-carac dt { color: var(--ink-soft); min-width: 110px; }
.vg-carac dd { margin: 0; }
.vg-description { margin-top: 20px; font-size: 15.5px; line-height: 1.6; }
.vg-envoi { margin-top: 22px; background: var(--paper); border-left: 3px solid var(--teal); padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.vg-bouton { margin-top: 24px; width: 100%; text-align: center; padding: 15px; font-size: 15px; border: none; }
.vg-etat-vente { margin-top: 24px; padding: 14px; text-align: center; border: 1px solid var(--line); font-weight: 600; }
.vg-etat-vente.reserve { color: var(--gold); } .vg-etat-vente.vendu { color: var(--ink-soft); }
.vg-infos .vg-note { margin-top: 14px; }

/* Panier */
.vg-panier { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; margin-top: 28px; }
.vg-lignes { list-style: none; padding: 0; margin: 0; }
.vg-lignes li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vg-ligne-photo { width: 64px; height: 64px; background: #261d31; border-radius: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; font-size: 26px; }
.vg-ligne-photo img { width: 100%; height: 100%; object-fit: cover; }
.vg-ligne-texte a { color: var(--ink); text-decoration: none; font-weight: 500; }
.vg-ligne-texte small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; }
.vg-ligne-prix { font-family: 'Inter', sans-serif; font-weight: 600; }
.vg-retirer { background: none; border: none; color: var(--ink-soft); font-size: 12.5px; cursor: pointer; text-decoration: underline; font-family: 'Inter', sans-serif; }

/* Formulaires (même style que la boutique trèfle) */
.vg-commande { display: flex; flex-direction: column; gap: 14px; }
.vg-commande h2 { font-size: 19px; margin-top: 10px; }
.vg-commande h2:first-of-type { margin-top: 0; }
.vg-commande label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; font-family: 'Inter', sans-serif; }
.vg-commande input, .vg-commande select, .vg-commande textarea { width: 100%; padding: 11px 12px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; font-size: 15px; font-family: 'Inter', sans-serif; }
.vg-commande input:focus, .vg-commande select:focus, .vg-commande textarea:focus { outline: none; border-color: var(--gold); }
.vg-commande .deux { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.vg-commande button[type=submit] { align-self: stretch; padding: 15px; font-size: 15px; border: none; cursor: pointer; }
.choix { display: grid; gap: 8px; }
.choix label { flex-direction: row; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 2px; cursor: pointer; font-size: 14.5px; }
.choix input { width: auto !important; accent-color: var(--gold); }
.choix label:has(input:checked) { border-color: var(--gold); }
.choix label span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.choix label small { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; }
.choix label em { font-style: normal; font-weight: 600; white-space: nowrap; }
.recap { background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink-soft); padding: 2px 0; }
.recap .total { color: var(--ink); font-weight: 600; font-size: 16.5px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }

/* Confirmation */
.vg-confirmation { max-width: 680px; }
.vg-paiement { background: var(--paper); border: 1px solid var(--gold); padding: 18px 20px; margin-top: 14px; }
.vg-adresse-ln { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.vg-adresse-ln code { font-size: 17px; color: var(--gold); }
.vg-adresse-ln .btn { padding: 8px 14px; font-size: 13px; }

@media (max-width: 820px) {
  .vg-fiche, .vg-panier { grid-template-columns: 1fr; gap: 30px; }
  .vg-grille { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vg-carte h2 { font-size: 15px; }
  .vg-carte-texte { padding: 10px 12px 14px; }
  .vg-lignes li { grid-template-columns: 56px 1fr auto; }
  .vg-lignes li form { grid-column: 2 / 4; }
  .vg-section { padding: 40px 20px 70px; }
}

/* Agrandissement des photos */
img.vg-photo-principale { cursor: zoom-in; }
.vg-zoom { position: fixed; inset: 0; z-index: 100; background: rgba(10,7,14,.94); display: flex; align-items: center; justify-content: center; }
.vg-zoom img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.vg-zoom button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2);
  width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vg-zoom button:hover { background: rgba(255,255,255,.18); }
.vg-zoom-fermer { top: 18px; right: 18px; }
.vg-zoom-prec { left: 18px; top: 50%; transform: translateY(-50%); }
.vg-zoom-suiv { right: 18px; top: 50%; transform: translateY(-50%); }
.vg-vignettes button { cursor: pointer; }
.vg-vignettes button:not(.actif) img { opacity: .7; }
.vg-vignettes button:hover img { opacity: 1; }

/* ----- Accueil : les rayons ----- */
.vg-chiffres { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.vg-chiffres li { font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 30px; padding: 8px 16px; background: var(--paper); }
.vg-chiffres strong { color: var(--gold); font-size: 15px; margin-right: 4px; }
.vg-titre-rayons { font-size: clamp(24px, 3vw, 30px); font-style: italic; margin-bottom: 24px; }
.vg-rayons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.vg-rayon { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.vg-rayon:hover, .vg-rayon:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.vg-rayon-mosaique { aspect-ratio: 16 / 10; display: grid; gap: 2px; background: var(--line); overflow: hidden; }
.vg-rayon-mosaique.n1 { grid-template-columns: 1fr; }
.vg-rayon-mosaique.n2 { grid-template-columns: 1fr 1fr; }
.vg-rayon-mosaique.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.vg-rayon-mosaique.n3 img:first-child { grid-row: span 2; }
.vg-rayon-mosaique.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.vg-rayon-mosaique img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; transition: transform .5s ease; }
.vg-rayon:hover .vg-rayon-mosaique img { transform: scale(1.05); }
.vg-rayon-mosaique .vg-sans-photo { display: flex; align-items: center; justify-content: center; font-size: 64px; background: #261d31; }
.vg-rayon-texte { position: relative; padding: 18px 56px 20px 20px; }
.vg-rayon-picto { position: absolute; top: -26px; left: 18px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.vg-rayon-texte h3 { font-size: 22px; font-style: italic; margin: 14px 0 4px; font-weight: 500; }
.vg-rayon-texte p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 12px; }
.vg-rayon-infos { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--gold); }
.vg-rayon-fleche { position: absolute; right: 20px; bottom: 18px; font-size: 22px; color: var(--gold); transition: transform .2s ease; }
.vg-rayon:hover .vg-rayon-fleche { transform: translateX(4px); }

/* ----- Page d'un rayon ----- */
.vg-entete-rayon { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.vg-rayon-picto.grand { position: static; width: 64px; height: 64px; font-size: 30px; flex: none; }
.vg-accroche { color: var(--ink-soft); margin-top: 6px; font-size: 16px; }
.vg-filtres a { font-family: 'Inter', sans-serif; font-size: 13.5px; padding: 8px 14px; border-radius: 20px; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; }
.vg-filtres a:hover { color: var(--ink); border-color: var(--ink-soft); }
.vg-filtres a.actif { color: var(--ink); border-color: var(--gold); background: rgba(232,166,98,.1); }
.vg-fil { color: var(--ink-soft); margin: 0 6px; }
@media (max-width: 820px) {
  .vg-filtres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -20px; padding-inline: 20px; }
  .vg-rayon-texte h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .vg-rayon, .vg-rayon img, .vg-rayon-fleche { transition: none; } }

/* ----- Filtre par état ----- */
.vg-etats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -10px 0 28px; }
.vg-etats-titre { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-soft); margin-right: 2px; }
.vg-etats a { font-family: 'Inter', sans-serif; font-size: 13px; text-decoration: none; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 4px; border: 1px dashed var(--line); white-space: nowrap; }
.vg-etats a span { display: inline-block; min-width: 18px; text-align: center; margin-left: 4px; padding: 0 5px; border-radius: 10px;
  background: var(--line); color: var(--ink); font-size: 11.5px; }
.vg-etats a:hover { color: var(--ink); border-color: var(--ink-soft); }
.vg-etats a.actif { color: var(--bg); background: var(--teal); border: 1px solid var(--teal); font-weight: 600; }
.vg-etats a.actif span { background: rgba(0,0,0,.18); color: var(--bg); }

/* ----- Filtres en orange Bitcoin ----- */
:root { --btc: #F7931A; }
.vg-etats a, .vg-filtres a { border: 1px solid rgba(247,147,26,.45); color: var(--ink); }
.vg-etats a:hover, .vg-filtres a:hover { border-color: var(--btc); color: var(--btc); }
.vg-etats a span { background: rgba(247,147,26,.18); color: var(--btc); }
.vg-etats a.actif, .vg-filtres a.actif { background: var(--btc); border-color: var(--btc); color: #1a1208; font-weight: 600; }
.vg-etats a.actif span { background: rgba(0,0,0,.2); color: #1a1208; }
.vg-etats a:focus-visible, .vg-filtres a:focus-visible { outline: 2px solid var(--btc); outline-offset: 2px; }

/* Réservation de panier */
.vg-reserve-info { margin-top: 12px; background: rgba(247,147,26,.1); border-left: 3px solid var(--btc, #F7931A); padding: 10px 14px; font-size: 14px; }
.vg-etat-vente.reserve { font-weight: 500; font-size: 14.5px; line-height: 1.5; text-align: left; }
