/* ════════════════════════════════════════════════════════════
   FYZIO — CSS PARTAGÉ FICHES PRODUIT
   Chargé par les 11 pages fiche-*.html + réutilisable par index.html
   Contient : variables charte, header sticky (repris d'index.html),
   footer (repris d'index.html), + composants propres aux fiches produit.
════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Charte FYZIO 07-26 ── */
  --navy:   #090982;
  --navy2:  #060657;
  --jaune:  #FFEE03;
  --jaune2: #e6d600;
  --orange: #E2472B;
  --orange2:#c73a21;
  --white:  #fff;
  --off:    #F4F4F8;
  --muted:  #6b6b8a;
  --border: #e0dff0;
  --text:   #1a1a2e;
  --font-elza: 'elza', 'Cooper Hewitt', 'Oswald', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--off); color: var(--text); overflow-x: hidden; }

a { color: inherit; }

/* ════════════════════════════════════════════
   HEADER STICKY — repris d'index.html
   Sur les fiches produit, pas de hero à dépasser :
   le header reste visible en permanence (classe .is-visible fixée en dur).
════════════════════════════════════════════ */
.fyzio-sticky-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 190;
  background: var(--navy);
  border-bottom: 3px solid var(--jaune);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  padding: 10px 24px;
  height: 56px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  transform: translateY(0); /* toujours visible sur les fiches produit */
}
.fyzio-sticky-header .fyzio-sticky-fallback {
  font-family: var(--font-elza), 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 24px; font-weight: 800; letter-spacing: .03em;
  color: #fff; text-decoration: none;
}
.fyzio-sticky-header .fyzio-sticky-tagline {
  margin-left: 12px;
  font-family: 'Cooper Hewitt', 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.fyzio-sticky-header .fyzio-sticky-tagline em { color: var(--jaune); font-style: italic; }
.fyzio-sticky-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Cooper Hewitt', 'Inter', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: 7px 16px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.fyzio-sticky-back:hover { background: rgba(255,255,255,.12); color: #fff; }
.fyzio-sticky-back svg { flex-shrink: 0; }
@media (max-width: 700px) {
  .fyzio-sticky-header { padding: 8px 14px; height: 46px; }
  .fyzio-sticky-header .fyzio-sticky-fallback { font-size: 18px; }
  .fyzio-sticky-header .fyzio-sticky-tagline { display: none; }
  .fyzio-sticky-back span.back-label { display: none; }
  .fyzio-sticky-back { padding: 7px 10px; }
}

/* compense la hauteur du header fixe */
.fiche-page { padding-top: 56px; }
@media (max-width: 700px) { .fiche-page { padding-top: 46px; } }

/* ════════════════════════════════════════════
   FOOTER — repris d'index.html
════════════════════════════════════════════ */
footer {
  background: var(--navy2);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 2px solid var(--orange);
}
.footer-brand {
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--white);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 11px; font-weight: 300; color: rgba(255,255,255,.2); }
@media (max-width: 960px) { footer { padding-left: 20px; padding-right: 20px; } }

/* ════════════════════════════════════════════
   FICHE PRODUIT — layout général
════════════════════════════════════════════ */
.fiche-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.fiche-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 56px;
  padding: 40px 24px 56px;
  max-width: 1200px; margin: 0 auto;
  align-items: flex-start;
}

/* ── Galerie : visuel principal + 2 vignettes (avec / sans aplat) ── */
.fiche-gallery { display: flex; flex-direction: column; gap: 14px; }
.fiche-gallery-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--off);
  display: flex; align-items: center; justify-content: center;
}
.fiche-gallery-main.no-aplat { background: #fff; border: 1px solid var(--border); }
.fiche-gallery-main img.fiche-pastille-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.fiche-gallery-main img.fiche-packshot {
  position: relative; z-index: 2;
  width: 78%; height: 78%; object-fit: contain;
}
.fiche-gallery-thumbs { display: flex; gap: 12px; }
.fiche-thumb {
  flex: 1;
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  position: relative;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.fiche-thumb.active { border-color: var(--navy); }
.fiche-thumb img.fiche-pastille-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-thumb img.fiche-packshot { position: relative; z-index: 2; width: 70%; height: 70%; object-fit: contain; }

/* ── Colonne infos produit ── */
.fiche-info { padding-top: 4px; }
.fiche-name {
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  color: var(--fiche-accent, var(--navy));
  margin-bottom: 6px;
}
.fiche-tagline {
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-weight: 700; font-style: italic;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}
.fiche-format {
  font-size: 13px; color: var(--muted); font-weight: 500;
  margin-bottom: 20px;
}
.fiche-desc { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 18px; }
.fiche-bullets { list-style: none; margin-bottom: 24px; }
.fiche-bullets li {
  position: relative; padding-left: 18px; font-size: 14px; font-weight: 500;
  margin-bottom: 6px; color: var(--text);
}
.fiche-bullets li::before {
  content: '•'; position: absolute; left: 0; color: var(--fiche-accent, var(--navy)); font-weight: 700;
}

.fiche-qty-label {
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.fiche-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.fiche-qty {
  display: flex; align-items: center; border: 1.5px solid var(--navy);
  border-radius: 100px; overflow: hidden;
}
.fiche-qty button {
  width: 40px; height: 40px; border: none; background: #fff; color: var(--navy);
  font-size: 18px; cursor: pointer; font-weight: 700;
}
.fiche-qty button:hover { background: var(--off); }
.fiche-qty span { width: 36px; text-align: center; font-weight: 700; }

.fiche-buy-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.fiche-price {
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--navy);
}
.fiche-add-btn {
  background: var(--jaune); color: var(--navy);
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border: none; border-radius: 100px; padding: 15px 32px;
  cursor: pointer; transition: background .15s, transform .15s;
}
.fiche-add-btn:hover { background: var(--jaune2); transform: translateY(-1px); }
.fiche-add-btn.added { background: #2fae5e; color: #fff; }

.fiche-reassurance {
  display: flex; gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.fiche-reassurance-item {
  flex: 1; text-align: center; padding: 16px 8px;
  font-size: 11px; font-weight: 600; color: var(--navy);
  border-right: 1px solid var(--border);
}
.fiche-reassurance-item:last-child { border-right: none; }
.fiche-reassurance-item svg { display: block; margin: 0 auto 8px; }

@media (max-width: 860px) {
  .fiche-hero { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px 36px; }
}

/* ── Bandeau badges (qualité / fabriqué en France / ingrédients) ──
   Pictos officiels studio : fyzio-assets/ORDI(|MOBILE)/HEADER/PICTOS/
   (mêmes assets que la bannière de réassurance d'index.html — le picto
   inclut déjà son libellé, pas besoin de texte à côté) */
.fiche-badges {
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  display: flex; justify-content: center; align-items: center; gap: 72px; flex-wrap: wrap;
}
.fiche-badge { display: flex; align-items: center; justify-content: center; }
.fiche-badge img.fiche-picto-full { height: 68px; width: auto; object-fit: contain; }
@media (max-width: 700px) {
  .fiche-badges { gap: 32px; padding: 20px 16px; }
  .fiche-badge img.fiche-picto-full { height: 46px; }
}

/* ── Section description (fond photo produit + carte blanche) ── */
.fiche-description-section {
  background: var(--fiche-accent, var(--navy));
  padding: 56px 24px;
}
.fiche-description-card {
  max-width: 900px; margin: 0 auto;
  background: #fff; border-radius: 24px; padding: 40px clamp(20px,4vw,48px);
}
.fiche-description-card h2 {
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 30px; font-weight: 800; text-transform: uppercase;
  color: var(--navy); margin-bottom: 16px;
}
.fiche-description-card > p, .fiche-description-card > ul {
  font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 24px;
}
.fiche-description-card ul { padding-left: 18px; }

.fiche-accordion-item { border-top: 1px solid var(--border); }
.fiche-accordion-item:last-child { border-bottom: 1px solid var(--border); }
.fiche-accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  padding: 18px 0;
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  color: var(--navy);
}
.fiche-accordion-btn svg { transition: transform .2s; flex-shrink: 0; }
.fiche-accordion-item.open .fiche-accordion-btn svg { transform: rotate(180deg); }
.fiche-accordion-panel {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.fiche-accordion-item.open .fiche-accordion-panel { max-height: 800px; }
.fiche-accordion-panel-inner { padding-bottom: 20px; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.fiche-accordion-panel-inner p { margin-bottom: 10px; }
.fiche-accordion-panel-inner table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.fiche-accordion-panel-inner th, .fiche-accordion-panel-inner td {
  text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--border);
}
.fiche-accordion-panel-inner th { font-weight: 700; color: var(--navy); }
.fiche-accordion-note { font-size: 11px; font-style: italic; color: var(--muted); margin-top: 6px; }

/* ── Barre récap produit — flotte entre la section Description et "TA PERF' AU MAX" ── */
.fiche-recap-bar {
  max-width: 900px;
  margin: -36px auto;
  position: relative;
  z-index: 5;
  background: #fff; border-radius: 100px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .fiche-recap-bar { margin: -24px 16px; border-radius: 24px; }
}
.fiche-recap-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fiche-recap-left img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.fiche-recap-name { font-family: 'Cooper Hewitt', 'Oswald', sans-serif; font-weight: 800; font-size: 15px; color: var(--navy); }
.fiche-recap-sub { font-size: 11px; color: var(--muted); }
.fiche-recap-right { display: flex; align-items: center; gap: 14px; }
.fiche-recap-price { font-family: 'Cooper Hewitt', 'Oswald', sans-serif; font-weight: 800; font-size: 16px; color: var(--navy); }

/* ── "TA PERF' AU MAX" — produits liés ── */
.fiche-related { background: var(--navy); padding: 56px 24px 64px; }
.fiche-related h2 {
  max-width: 1200px; margin: 0 auto 28px; padding-top: 8px;
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif;
  font-size: 28px; font-weight: 800; text-transform: uppercase; color: #fff;
}
.fiche-related h2 em { color: var(--jaune); font-style: italic; }
.fiche-related-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 780px) { .fiche-related-grid { grid-template-columns: 1fr; } }
.fiche-related-card {
  background: var(--card-accent, var(--navy));
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fiche-related-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,.28); }
.fiche-related-card-img {
  position: relative;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Bande diagonale "Z" — même logique de split que le header (135deg, ~58/42) */
.fiche-related-card-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    var(--card-accent, var(--navy)) 0%,
    var(--card-accent, var(--navy)) 42%,
    rgba(0,0,0,0) 42%,
    rgba(0,0,0,0) 100%);
  opacity: .9;
  z-index: 1;
}
.fiche-related-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%);
  z-index: 1;
}
.fiche-related-card-img img {
  position: relative; z-index: 2;
  max-width: 60%; max-height: 85%; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.3));
}
.fiche-related-card-body { background: #fff; padding: 16px 18px 18px; }
.fiche-related-cat { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.fiche-related-name { font-family: 'Cooper Hewitt', 'Oswald', sans-serif; font-weight: 800; font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.fiche-related-price { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 12px; }
.fiche-related-btn {
  display: inline-block; background: var(--jaune); color: var(--navy);
  font-family: 'Cooper Hewitt', 'Oswald', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  border: none; border-radius: 100px; padding: 10px 18px; cursor: pointer;
}
