/* =========================================================================
   Jumbo Pneus 95 Groslay — Page « Pneus en stock »
   S'appuie sur les tokens de css/styles.css (--green, --yellow, --ink…)
   ========================================================================= */

.stock-main { background: #f4f7f4; min-height: 60vh; }
.stock-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad, 20px); }

/* ---- En-tête de page ---------------------------------------------------- */
.stock-head {
  background: radial-gradient(circle at 80% -20%, #1f8a47 0%, #0d3f20 60%, #082c16 100%);
  color: #fff; padding: 30px 0 26px;
}
.stock-head h1 { font-family: var(--font-head); font-size: 32px; line-height: 1.05; margin: 0; }
.stock-head p { color: #c9dccd; margin: 8px 0 0; font-size: 15px; }
.stock-head .maj { font-size: 12.5px; color: #9bb4a1; margin-top: 10px; }

/* ---- Panneau de recherche par dimension -------------------------------- */
.search-card {
  background: #fff; border-radius: 18px; padding: 18px; margin-top: 18px;
  box-shadow: 0 14px 40px rgba(13,63,32,.12); border: 1px solid #e6ece7;
}
.search-card h2 { font-size: 16px; margin: 0 0 12px; color: var(--ink-2); font-family: var(--font-head); }
.dim-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; }
.dim-field label { display: block; font-size: 12px; font-weight: 700; color: #6b7a70; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.dim-field select, .filters select {
  width: 100%; padding: 13px 12px; border-radius: 12px; border: 1.5px solid #d6ded8;
  font-size: 16px; background: #fff; color: var(--ink-2); font-family: inherit; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d3f20' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.dim-field select:disabled { background-color: #f1f3f0; color: #9aa89f; }
.dim-search-btn { align-self: end; }
.btn--vivid { background: #ff7a00; color: #fff; }
.btn--vivid:hover { box-shadow: 0 14px 34px rgba(255,122,0,.4); }

.shortcuts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shortcuts .lbl { font-size: 13px; color: #6b7a70; font-weight: 600; }
.chip-dim {
  border: 1.5px solid #cfe0d4; background: #eef5ef; color: #0d3f20; cursor: pointer;
  padding: 7px 13px; border-radius: 30px; font-size: 13.5px; font-weight: 700; font-family: inherit;
}
.chip-dim:hover { background: #e0efe3; }

/* ---- Barre de filtres --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 20px 0 6px; }
.filters .f { min-width: 150px; flex: 1 1 150px; }
.filters label { display:block; font-size: 12px; font-weight: 700; color: #6b7a70; margin-bottom:5px; text-transform: uppercase; letter-spacing:.04em; }
.qty-toggle { display: inline-flex; background: #fff; border: 1.5px solid #d6ded8; border-radius: 12px; overflow: hidden; }
.qty-toggle button { border: 0; background: #fff; padding: 12px 16px; font-size: 15px; font-weight: 800; cursor: pointer; color: #6b7a70; font-family: inherit; }
.qty-toggle button.active { background: var(--green); color: #fff; }
.result-count { margin: 14px 0 2px; font-size: 14px; color: #52605a; font-weight: 600; }

/* ---- Grille de pneus ---------------------------------------------------- */
.tyre-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 28px; }
.tyre-card {
  background: #fff; border-radius: 16px; border: 1px solid #e6ece7; overflow: hidden;
  display: grid; grid-template-columns: 112px 1fr; gap: 0; box-shadow: 0 6px 18px rgba(13,63,32,.06);
}
.tyre-photo { position: relative; background: #fff; display: flex; align-items: center; justify-content: center; padding: 8px; }
.tyre-photo img { width: 100%; height: auto; display: block; }
.tyre-photo .brand-on { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 10.5px; font-weight: 800; color: #52605a; text-transform: uppercase; letter-spacing:.03em; }
.tyre-body { padding: 13px 14px; display: flex; flex-direction: column; }
.tyre-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tyre-brand { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--ink-2); line-height: 1.05; }
.tyre-model { font-size: 13px; color: #52605a; margin-top: 2px; }
.tyre-dim { font-size: 12.5px; color: #6b7a70; margin-top: 4px; font-weight: 600; }
.tyre-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.tag--saison { background: #e7f1ea; color: #166a37; }
.tag--gamme  { background: #eef0f3; color: #45505c; }
.tag--idx    { background: #f3efe3; color: #6b5d2e; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.badge-s { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing:.03em; }
.b-promo   { background: #ff3b30; color: #fff; }
.b-malin   { background: #ffc400; color: #1a1300; }
.b-vente   { background: #0d3f20; color: #ffd54a; }
.b-choix   { background: #1a8140; color: #fff; }

.tyre-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-box .pu { font-size: 12px; color: #8a978f; }
.price-box .pv { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--ink-2); line-height: 1; }
.price-box .pv small { font-size: 14px; font-weight: 700; color: #6b7a70; }
.price-box .pm { font-size: 11.5px; color: #8a978f; }
.dispo { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 20px; white-space: nowrap; }
.dispo--ok { background: #e7f1ea; color: #137a3a; }
.dispo--last { background: #fff1e6; color: #c2560a; }
/* statut disponibilité (remplace le bouton d'appel sur la fiche) */
.tyre-status { font-size: 14.5px; font-weight: 800; white-space: nowrap; align-self: flex-end; }
.status--ok { color: #137a3a; }
.status--last { color: #c2560a; }

/* Sélecteur de quantité DANS chaque pneu */
.qty-pick { flex: 1 1 100%; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.qty-pick__lbl { font-size: 12.5px; font-weight: 700; color: #6b7a70; margin-right: 2px; }
.qty-pick button { border: 1.5px solid #d6ded8; background: #fff; color: #41524a; min-width: 42px; height: 36px; border-radius: 10px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; transition: background .12s, border-color .12s; }
.qty-pick button.active { background: var(--green); color: #fff; border-color: var(--green); }
/* bandeau promo parallélisme — bien visible */
.promo-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(100deg, #ffd21e 0%, #ff9e1b 100%);
  color: #1a1300; border-radius: 16px;
  padding: 16px 18px; margin: 18px 0;
  border: 2.5px solid #0d3f20;
  box-shadow: 0 10px 28px rgba(255,158,27,.45);
  animation: promoPulse 2.2s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255,158,27,.38); }
  50%      { box-shadow: 0 12px 36px rgba(255,158,27,.72); }
}
@media (prefers-reduced-motion: reduce) { .promo-strip { animation: none; } }
.promo-strip .ptag { background: #c2560a; color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .06em; padding: 7px 12px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.promo-strip .ptxt { font-size: 17px; font-weight: 700; flex: 1 1 220px; line-height: 1.3; }
.promo-strip .ptxt strong { font-weight: 900; font-size: 19px; }
.promo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-strip .btn--green { color: #fff; }
.promo-devis { background: #fff; color: #0d3f20; border: 1.5px solid #0d3f20; }
.promo-devis:hover { background: #f0f5f1; }

/* Toggle Tourisme / Utilitaire */
.type-toggle { display: inline-flex; background: #eef2ee; border: 1.5px solid #d6ded8; border-radius: 12px; padding: 3px; margin-bottom: 14px; gap: 3px; }
.type-toggle button { border: 0; background: transparent; padding: 10px 16px; border-radius: 9px; font-weight: 800; font-size: 14px; color: #5a675f; cursor: pointer; font-family: inherit; }
.type-toggle button.active { background: var(--green); color: #fff; }

/* Recherche libre « je ne trouve pas ma taille » */
.find-size { margin-top: 14px; border-top: 1px dashed #dde4de; padding-top: 12px; }
.find-size summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #0d3f20; list-style: none; }
.find-size summary::-webkit-details-marker { display: none; }
.find-size summary::before { content: "＋ "; font-weight: 800; color: #1a8140; }
.find-size[open] summary::before { content: "－ "; }
.find-hint { font-size: 13px; color: #6b7a70; margin: 8px 0; }
.find-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.find-row input { width: 82px; padding: 11px 8px; border: 1.5px solid #d6ded8; border-radius: 10px; font-size: 16px; text-align: center; font-family: inherit; }
.find-row span { font-weight: 800; color: #6b7a70; }
.tyre-cta { display: flex; gap: 8px; width: 100%; margin-top: 10px; }
.tyre-cta .btn { flex: 1 1 0; justify-content: center; font-size: 14px; padding: 12px 10px; }
/* bouton secondaire lisible sur fond clair (le ghost d'origine est pour le hero vert) */
.tyre-cta .btn--ghost, .no-stock .btn--ghost {
  background: #fff; color: #0d3f20; border: 1.5px solid #0d3f20;
}
.tyre-cta .btn--ghost:hover, .no-stock .btn--ghost:hover, .other-cta .btn--ghost:hover { background: #eef5ef; }
.other-cta .btn--ghost { background: #fff; color: #0d3f20; border: 1.5px solid #0d3f20; }

/* ---- Bandeau « autre marque / taille » --------------------------------- */
.other-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(100deg, #0d3f20, #14562c); color: #fff;
  border-radius: 16px; padding: 16px 20px; margin: 16px 0;
}
.other-cta__txt { font-size: 15px; line-height: 1.4; max-width: 560px; }
.other-cta__txt strong { color: #ffd54a; }
.other-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.other-cta .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.other-cta .btn--ghost:hover { background: rgba(255,255,255,.22); }
@media (max-width: 820px) {
  .other-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .other-cta__btns { justify-content: center; }
  .other-cta__btns .btn { flex: 1 1 0; justify-content: center; }
}

/* ---- Étiquette européenne (compacte) ------------------------------------ */
.eu { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: #52605a; flex-wrap: wrap; }
.eu .cell { display: inline-flex; align-items: center; gap: 4px; background: #f4f7f4; border: 1px solid #e3e9e4; border-radius: 6px; padding: 3px 7px; font-weight: 700; }
.eu .grade { font-weight: 900; }
.eu--todo { color: #9aa89f; font-style: italic; }

/* ---- Message « dimension pas en stock » -------------------------------- */
.no-stock { background: #fff; border: 1px dashed #c9b26a; border-radius: 16px; padding: 22px; text-align: center; margin: 18px 0; }
.no-stock h3 { margin: 0 0 6px; color: var(--ink-2); font-family: var(--font-head); font-size: 20px; }
.no-stock p { color: #52605a; margin: 0 0 14px; }
.no-stock .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- Où trouver ma dimension ------------------------------------------- */
.dim-help { background: #fff; border-top: 1px solid #e6ece7; padding: 34px 0; }
.dim-help h2 { font-family: var(--font-head); font-size: 24px; color: var(--ink-2); margin: 0 0 6px; }
.dim-help .sub { color: #52605a; margin: 0 0 20px; }
.dim-help-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.dim-ill { border: 1px solid #e6ece7; border-radius: 16px; overflow: hidden; background: #fbfdfb; cursor: zoom-in; }
.dim-ill svg, .dim-ill img { width: 100%; height: auto; display: block; }
.dim-ill .cap { padding: 10px 14px; font-size: 13px; color: #52605a; font-weight: 600; }

/* ---- Zoom (lightbox mobile) -------------------------------------------- */
.zoom-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(6,20,12,.92); display: none; align-items: center; justify-content: center; padding: 16px; }
.zoom-overlay.open { display: flex; }
.zoom-overlay svg, .zoom-overlay img { max-width: 100%; max-height: 92vh; }
.zoom-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; cursor: pointer; }

/* ---- Barre d'appel fixe mobile ----------------------------------------- */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  background: var(--yellow); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; color: #0c2d18; font-weight: 800; font-size: 17px; text-decoration: none; font-family: var(--font-head); }

/* ---- États chargement / erreur ----------------------------------------- */
.stock-note { text-align: center; padding: 30px 16px; color: #52605a; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 820px) {
  .stock-head h1 { font-size: 26px; }
  .dim-row { grid-template-columns: 1fr 1fr; }
  .dim-field--d { grid-column: 1; }
  .dim-search-btn { grid-column: 1 / -1; }
  .dim-search-btn .btn { width: 100%; justify-content: center; }
  .tyre-cta .btn { font-size: 13px; }
  .call-bar { display: block; }
  .stock-main { padding-bottom: 64px; } /* place pour la barre d'appel */
}
@media (min-width: 821px) {
  .tyre-grid { grid-template-columns: 1fr 1fr; }
  .tyre-card { grid-template-columns: 150px 1fr; }
  .dim-help-grid { grid-template-columns: 1.4fr 1fr; }
}
