/* ============================================================
   LSCS Events — css/public-v2.css
   Refonte visuelle du site public (fiche article, cartes, catalogue,
   catégories, accueil, panier, blog). Mobile d'abord.
   Identité : noir / or, Playfair Display + Raleway.
   Préfixe .v2- pour ne rien casser du style existant.
   ============================================================ */

:root {
  --v2-or: #c9a84c;
  --v2-or-clair: #e8c96a;
  --v2-or-pale: #fbf5e6;
  --v2-noir: #0d0d0d;
  --v2-noir-2: #171717;
  --v2-texte: #1b1b1b;
  --v2-muet: #7a7a76;
  --v2-bord: #ebe9e3;
  --v2-fond: #f7f6f2;
  --v2-ok: #1f7a43;
  --v2-warn: #b45f06;
  --v2-err: #c62828;
  --v2-bleu: #1e5fa8;
  --v2-rayon: 14px;
  --v2-ombre: 0 10px 30px rgba(0,0,0,.07);
}

.v2-page { background: #fff; padding-top: var(--nav-height, 72px); }
.v2-sec { padding: 56px 0; }
.v2-sec-fond { background: var(--v2-fond); }
.v2-sur { font: 700 10.5px 'Raleway', sans-serif; letter-spacing: 2.6px; text-transform: uppercase; color: var(--v2-or); margin-bottom: 8px; display: inline-flex; align-items: center; gap: 10px; }
.v2-sur::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.v2-h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; margin: 0; color: var(--v2-texte); }
.v2-h2 em { font-style: italic; color: var(--v2-or); }
.v2-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.v2-lien { font: 700 11px 'Raleway', sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--v2-texte); text-decoration: none; border-bottom: 2px solid var(--v2-or); padding-bottom: 3px; white-space: nowrap; }
.v2-lien:hover { color: var(--v2-or); }

/* Boutons */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer; font: 700 13px 'Raleway', sans-serif; letter-spacing: .6px; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.v2-btn:active { transform: scale(.98); }
.v2-btn-or { background: var(--v2-or); color: #111; box-shadow: 0 6px 18px rgba(201,168,76,.35); }
.v2-btn-or:hover { background: var(--v2-or-clair); }
.v2-btn-noir { background: var(--v2-noir); color: var(--v2-or); }
.v2-btn-noir:hover { background: #222; }
.v2-btn-clair { background: #fff; color: var(--v2-texte); border: 1.5px solid var(--v2-bord); }
.v2-btn-clair:hover { border-color: var(--v2-texte); }
.v2-btn-bloc { width: 100%; }
.v2-btn[disabled] { opacity: .55; cursor: default; }

/* Badges */
.v2-badge { display: inline-flex; align-items: center; gap: 6px; font: 800 10px 'Raleway', sans-serif; letter-spacing: 1px; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.v2-badge-promo { background: #c62828; color: #fff; }
.v2-badge-pack { background: #ede7f6; color: #5e35b1; }
.v2-badge-dernier { background: #fff1de; color: var(--v2-warn); }
.v2-badge-bientot { background: #e5effb; color: var(--v2-bleu); }
.v2-badge-indispo { background: #f3f3f1; color: #777; }
.v2-badge-ok { background: #e6f4ea; color: var(--v2-ok); }
.v2-badge-noir { background: rgba(13,13,13,.82); color: var(--v2-or); }
.v2-point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ─── Cartes articles ─────────────────────────────────────── */
.v2-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px)  { .v2-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .v2-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.v2-carte { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--v2-bord); border-radius: var(--v2-rayon); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; min-width: 0; }
.v2-carte:hover { box-shadow: var(--v2-ombre); transform: translateY(-3px); border-color: #ddd8cc; }
.v2-carte-sombre { background: #141414; border-color: #262626; }
.v2-carte-photo { position: relative; display: block; aspect-ratio: 1 / 1; background: #f3f2ee; overflow: hidden; }
.v2-carte-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s; display: block; }
.v2-carte:hover .v2-carte-photo img { transform: scale(1.04); }
.v2-carte-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 1; pointer-events: none; }
.v2-carte-corps { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.v2-carte-cat { font: 700 9.5px 'Raleway', sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--v2-muet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-carte-nom { font: 700 14px/1.3 'Raleway', sans-serif; color: var(--v2-texte); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.v2-carte-sombre .v2-carte-nom { color: #f2f2f2; }
.v2-carte-nom::after { content: ''; position: absolute; inset: 0; } /* toute la carte cliquable */
.v2-carte-pied { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.v2-prix { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; color: var(--v2-texte); line-height: 1; white-space: nowrap; }
.v2-carte-sombre .v2-prix { color: var(--v2-or); }
.v2-prix small { font: 500 11px 'Raleway', sans-serif; color: var(--v2-muet); margin-left: 2px; }
.v2-prix s { font: 500 12px 'Raleway', sans-serif; color: #aaa; margin-right: 5px; }
.v2-prix-promo { color: #c62828 !important; }
.v2-ajout { position: relative; z-index: 2; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; border: 0; background: var(--v2-noir); color: var(--v2-or); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, transform .12s; }
.v2-ajout:hover { background: var(--v2-or); color: #111; }
.v2-ajout:active { transform: scale(.94); }
.v2-ajout svg { width: 18px; height: 18px; }
.v2-carte-etat { position: relative; z-index: 2; font: 700 11px 'Raleway', sans-serif; color: var(--v2-muet); white-space: nowrap; }
.v2-carte-etat.bientot { color: var(--v2-bleu); }
@media (max-width: 420px) {
  .v2-carte-corps { padding: 10px 10px 11px; }
  .v2-carte-nom { font-size: 13px; }
  .v2-prix { font-size: 17px; }
  .v2-ajout { width: 36px; height: 36px; }
}

/* ─── Bandeau de page (catalogue, catégorie, blog) ─────────── */
.v2-bandeau { background: radial-gradient(120% 140% at 100% 0%, #2a2416 0%, #111 45%, #0b0b0b 100%); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.v2-bandeau::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(201,168,76,.18); }
.v2-bandeau .breadcrumb { margin-bottom: 14px; }
.v2-bandeau .breadcrumb a { color: #9a9a95; }
.v2-bandeau .breadcrumb-current { color: #e6e1d3; font-size: 12px; }
.v2-bandeau h1 { font-family: 'Playfair Display', serif; font-size: clamp(30px, 5vw, 48px); font-weight: 700; margin: 0 0 8px; color: #fff; line-height: 1.08; }
.v2-bandeau h1 em { color: var(--v2-or); font-style: italic; }
.v2-bandeau p { color: #a9a9a4; font-size: 14px; max-width: 620px; margin: 0; line-height: 1.6; }

/* Barre de filtres collante */
.v2-filtres { position: sticky; top: var(--nav-height, 72px); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--v2-bord); }
.v2-filtres-in { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 900px) { .v2-filtres-in { flex-direction: row; align-items: center; } }
.v2-puces { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: 1; min-width: 0; padding-bottom: 1px; }
.v2-puces::-webkit-scrollbar { display: none; }
.v2-puce { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--v2-bord); background: #fff; color: var(--v2-texte); font: 700 12px 'Raleway', sans-serif; text-decoration: none; white-space: nowrap; transition: all .15s; }
.v2-puce:hover { border-color: var(--v2-texte); }
.v2-puce.on { background: var(--v2-noir); border-color: var(--v2-noir); color: var(--v2-or); }
.v2-puce b { font-weight: 800; font-size: 10.5px; opacity: .65; }
.v2-outils { display: flex; gap: 8px; align-items: center; }
.v2-recherche { position: relative; flex: 1; min-width: 0; }
@media (min-width: 900px) { .v2-recherche { width: 260px; flex: none; } }
.v2-recherche input { width: 100%; height: 42px; border: 1.5px solid var(--v2-bord); border-radius: 12px; padding: 0 12px 0 38px; font: 500 14px 'Raleway', sans-serif; background: #fff; outline: none; box-sizing: border-box; }
.v2-recherche input:focus { border-color: var(--v2-or); }
.v2-recherche svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #999; }
.v2-select { height: 42px; border: 1.5px solid var(--v2-bord); border-radius: 12px; padding: 0 30px 0 12px; font: 600 13px 'Raleway', sans-serif; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; -webkit-appearance: none; appearance: none; color: var(--v2-texte); max-width: 46vw; }
.v2-compteur { font: 600 12.5px 'Raleway', sans-serif; color: var(--v2-muet); margin: 18px 0 14px; }
.v2-compteur strong { color: var(--v2-texte); }
.v2-vide { text-align: center; padding: 56px 16px; color: var(--v2-muet); }
.v2-vide-ico { font-size: 40px; margin-bottom: 10px; }
.v2-vide h3 { font-family: 'Playfair Display', serif; color: var(--v2-texte); margin: 0 0 6px; font-size: 22px; }

/* Sous-catégories en tuiles */
.v2-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .v2-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.v2-tuile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 14px; border-radius: var(--v2-rayon); overflow: hidden; background: #151515; color: #fff; text-decoration: none; isolation: isolate; }
@media (min-width: 720px) { .v2-tuile { min-height: 170px; padding: 18px; } }
.v2-tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .4s, opacity .3s; }
.v2-tuile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); }
.v2-tuile:hover img { transform: scale(1.06); opacity: .7; }
.v2-tuile-nom { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; line-height: 1.15; }
@media (min-width: 720px) { .v2-tuile-nom { font-size: 21px; } }
.v2-tuile-nb { font: 700 10.5px 'Raleway', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--v2-or); margin-top: 4px; }

/* Pagination */
.v2-pages { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.v2-pages a, .v2-pages span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--v2-bord); font: 700 13px 'Raleway', sans-serif; color: var(--v2-texte); text-decoration: none; }
.v2-pages .on { background: var(--v2-noir); color: var(--v2-or); border-color: var(--v2-noir); }

/* « Prévenez-moi » (articles bientôt disponibles) */
.v2-alerte { border: 1.5px solid #cfe0f5; background: #f3f8fe; border-radius: var(--v2-rayon); padding: 16px; }
.v2-alerte-titre { font: 800 14px 'Raleway', sans-serif; color: var(--v2-bleu); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.v2-alerte p { font-size: 13px; color: #4b5563; margin: 0 0 12px; line-height: 1.55; }
.v2-alerte form { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-alerte input[type=email] { flex: 1 1 200px; min-width: 0; height: 48px; border: 1.5px solid #cfe0f5; border-radius: 12px; padding: 0 14px; font: 500 15px 'Raleway', sans-serif; background: #fff; outline: none; }
.v2-alerte input[type=email]:focus { border-color: var(--v2-bleu); }
.v2-alerte .v2-btn { flex: 0 0 auto; background: var(--v2-bleu); color: #fff; }
.v2-alerte .v2-btn:hover { background: #164a85; }
.v2-alerte-ok { display: none; font: 700 13.5px 'Raleway', sans-serif; color: var(--v2-ok); padding: 10px 0 2px; }
.v2-alerte.envoye form { display: none; }
.v2-alerte.envoye .v2-alerte-ok { display: block; }
.v2-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Barre fixe en bas d'écran (téléphone) */
.v2-barre-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: rgba(13,13,13,.97); backdrop-filter: blur(10px); border-top: 1px solid #262626; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s; }
.v2-barre-bas.on { transform: none; }
.v2-barre-bas-prix { color: #fff; min-width: 0; flex: 1; }
.v2-barre-bas-prix strong { display: block; font-family: 'Playfair Display', serif; font-size: 21px; color: var(--v2-or); line-height: 1.05; white-space: nowrap; }
.v2-barre-bas-prix span { font-size: 11px; color: #9a9a95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.v2-barre-bas .v2-btn { min-height: 46px; padding: 0 18px; }
@media (min-width: 900px) { .v2-barre-bas { display: none; } }
.v2-ajout { font-size: 0; line-height: 0; }           /* le retour « ✓ Ajouté ! » n'affiche que l'icône */
.v2-ajout svg { flex-shrink: 0; }
.v2-ajout.added { background: var(--v2-ok); color: #fff; }

/* Accueil : étapes */
.v2-etapes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 820px) { .v2-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.v2-etape { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--v2-bord); border-radius: var(--v2-rayon); padding: 18px; background: #fff; }
.v2-etape .n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--v2-noir); color: var(--v2-or); display: flex; align-items: center; justify-content: center; font: 700 18px 'Playfair Display', serif; }
.v2-etape strong { display: block; font: 800 15px 'Raleway', sans-serif; margin-bottom: 4px; color: var(--v2-texte); }
.v2-etape p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5f5f5b; }
/* Accueil : bande chiffres plus compacte sur téléphone */
@media (max-width: 700px) {
  .stats-band-inner { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  .stats-band .stat-num { font-size: 26px !important; }
  .stats-band .stat-label { font-size: 8.5px !important; letter-spacing: 1px !important; }
  .stats-band { padding: 18px 0 !important; }
}
.v2-tuile-or { background: linear-gradient(135deg, #d8b85a, #9c7a22); }
.v2-tuile-or::after { display: none; }

/* Catalogue : catégories sur une ligne, sous-catégories sur une 2e ligne */
.v2-filtres-in { padding-left: 0; padding-right: 0; }
.v2-puces:not(.v2-fin), .v2-sous:not(.v2-fin) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.v2-sous { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 0 12px; margin-top: -2px; }
.v2-sous::-webkit-scrollbar { display: none; }
.v2-sp { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 8px; background: var(--v2-or-pale, #f8f1de); color: var(--v2-texte); font: 600 12px 'Raleway', sans-serif; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: all .15s; }
.v2-sp:hover { border-color: var(--v2-or, #c9a84c); }
.v2-sp.on { background: #fff; border-color: var(--v2-or, #c9a84c); color: var(--v2-texte); box-shadow: inset 0 -2px 0 var(--v2-or, #c9a84c); }
.v2-sp b { font-weight: 800; font-size: 10.5px; opacity: .55; }
@media (max-width: 899px) { .v2-filtres-in { flex-direction: column-reverse; } }
