/* ==========================================================================
   Peptide & SARMs - feuille de style
   Style sportif musculation : noir profond, rouge du logo, typographie condensee
   ========================================================================== */

:root {
  /* Theme clair. Les noms de variables restent les memes pour ne rien casser :
     --noir designe desormais le fond principal, --noir-2 les blocs, etc. */
  --noir: #ffffff;
  --noir-2: #f7f7f9;
  --noir-3: #eeeef2;
  --bordure: #dcdce4;
  /* Accent repris du logo : rouge, argent, noir */
  --orange: #e2151f;
  --orange-clair: #c1121b;
  --orange-sombre: #8f0d14;
  --rouge: #b3261e;
  --rouge-fond: #fdf2f2;
  --argent: #5a5a66;
  --vert: #1e7f3c;
  --vert-fond: #eef7f0;
  --jaune: #8a6508;
  --texte: #17171c;
  --texte-doux: #4a4a56;
  --texte-faible: #74747f;
  --radius: 6px;
  --max: 1180px;
  --titre: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --corps: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--corps);
  background: var(--noir);
  color: var(--texte);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container-etroit { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); margin-top: 3rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.3vw, 1.45rem); margin-top: 2rem; margin-bottom: .7rem; color: var(--orange-clair); }
h4 { font-size: 1.05rem; margin-top: 1.4rem; margin-bottom: .5rem; }

p { margin-bottom: 1.15rem; }

a { color: var(--orange-clair); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--texte); font-weight: 600; }

ul, ol { margin: 0 0 1.3rem 1.35rem; }
li { margin-bottom: .55rem; }

/* ---------- En-tete ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}

.entete-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--titre);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--texte);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo:hover { text-decoration: none; }
.logo-texte b span { color: var(--orange); }
.logo-marque { display: block; height: 40px; width: auto; }
.logo-texte { display: flex; flex-direction: column; line-height: 1; color: var(--texte); }
.logo-texte b { font-weight: 700; font-size: 1.2rem; letter-spacing: .5px; }
.logo-texte i {
  font-style: normal;
  font-family: var(--corps);
  font-size: .62rem;
  letter-spacing: 2.4px;
  color: var(--texte-faible);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-liens { display: flex; list-style: none; margin: 0; gap: 1.6rem; align-items: center; }
.nav-liens li { margin: 0; }
.nav-liens a {
  color: var(--texte-doux);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.nav-liens a:hover { color: var(--orange); text-decoration: none; }

.bouton-menu {
  display: none;
  background: none;
  border: 1px solid var(--bordure);
  color: var(--texte);
  font-size: 1.35rem;
  line-height: 1;
  padding: .3rem .6rem;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 860px) {
  .bouton-menu { display: block; }
  .nav-liens {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--noir-2);
    border-bottom: 1px solid var(--bordure);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
  }
  .nav-liens.ouvert { display: flex; }
  .nav-liens li { width: 100%; }
  .nav-liens a { display: block; padding: .8rem 1.5rem; }
}

/* ---------- Banniere haute ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(226, 21, 31, .26), transparent 65%),
    linear-gradient(180deg, var(--noir-2) 0%, var(--noir) 100%);
  border-bottom: 1px solid var(--bordure);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 17ch; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-texte { font-size: 1.1rem; color: var(--texte-doux); max-width: 62ch; margin-bottom: 1.8rem; }

.etiquette {
  display: inline-block;
  font-family: var(--titre);
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange-sombre);
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block;
  font-family: var(--titre);
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.bouton:hover { text-decoration: none; transform: translateY(-2px); }
.bouton-plein { background: var(--orange); color: #fff; font-weight: 600; }
.bouton-plein:hover { background: var(--orange-clair); }
.bouton-vide { border-color: var(--bordure); color: var(--texte); }
.bouton-vide:hover { border-color: var(--orange); color: var(--orange); }
.bouton-large { width: 100%; text-align: center; }
.bouton-petit { padding: .55rem 1.1rem; font-size: .85rem; }

/* ---------- Sections ---------- */

.section { padding: 3.8rem 0; }
.section-alt { background: var(--noir-2); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.section-titre { text-align: center; margin-top: 0; }
.section-chapeau { text-align: center; color: var(--texte-doux); max-width: 68ch; margin: .8rem auto 2.4rem; }

/* ---------- Grilles de cartes ---------- */

.grille { display: grid; gap: 1.3rem; }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.carte {
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s ease;
}
.carte:hover { border-color: var(--orange-sombre); }
.carte h3 { margin-top: 0; }
.carte p:last-child { margin-bottom: 0; }
.carte-lien { display: block; color: inherit; }
.carte-lien:hover { text-decoration: none; }

.carte-molecule .code {
  font-family: var(--titre);
  font-size: .78rem;
  letter-spacing: 1.5px;
  color: var(--texte-faible);
  text-transform: uppercase;
}
.carte-molecule .titre-mol { font-family: var(--titre); font-size: 1.35rem; text-transform: uppercase; color: var(--texte); margin: .2rem 0 .5rem; }
.carte-molecule p { color: var(--texte-doux); font-size: .93rem; }

/* ---------- Encadres ---------- */

.encadre {
  border-left: 4px solid var(--orange);
  background: var(--noir-2);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.encadre p:last-child { margin-bottom: 0; }
.encadre-titre {
  font-family: var(--titre);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: .5rem;
  color: var(--orange-clair);
}
.encadre-danger { border-left-color: var(--rouge); background: var(--rouge-fond); }
.encadre-danger .encadre-titre { color: var(--rouge); }
.encadre-vert { border-left-color: var(--vert); background: var(--vert-fond); }
.encadre-vert .encadre-titre { color: var(--vert); }

/* ---------- Tableaux ---------- */

.tableau-zone { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--bordure); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
thead th {
  background: var(--noir-3);
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: .85rem;
  text-align: left;
  padding: .85rem 1rem;
  color: var(--texte);
  border-bottom: 1px solid var(--bordure);
}
thead th.gagnant { color: var(--orange); }
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--bordure); color: var(--texte-doux); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--texte); font-weight: 500; }
td.colonne-phare { background: rgba(226, 21, 31, .09); color: var(--texte); }
.oui { color: var(--vert); font-weight: 600; }
.non { color: var(--rouge); font-weight: 600; }

/* ---------- Fiche produit ---------- */

.produit {
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 168px 1fr 212px;
  gap: 1.7rem;
  align-items: start;
  position: relative;
}
.produit.phare {
  border-color: var(--orange);
  background: linear-gradient(150deg, rgba(226,21,31,.05) 0%, var(--noir-2) 42%);
  box-shadow: 0 14px 34px -24px rgba(226,21,31,.5);
}
.produit-rang {
  position: absolute; top: -12px; left: 20px;
  background: var(--noir-3);
  color: var(--texte-doux);
  font-family: var(--titre);
  font-size: .74rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: .26rem .8rem;
  border: 1px solid var(--bordure);
  border-radius: 100px;
  z-index: 3;
  font-weight: 600;
}
.produit.phare .produit-rang { background: var(--orange); color: #fff; border-color: transparent; }
.produit-visuel {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: .6rem;
  display: block;
}
.produit-corps { display: flex; flex-direction: column; }
.produit-marque { font-size: .76rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--texte-faible); }
.produit-nom { font-family: var(--titre); font-size: 1.26rem; text-transform: uppercase; margin: .2rem 0 .6rem; color: var(--texte); }
.produit-resume { font-size: .94rem; color: var(--texte-doux); margin-bottom: .9rem; }
.produit-liste { list-style: none; margin: 0 0 .9rem; font-size: .9rem; }
.produit-liste li { padding-left: 1.4rem; position: relative; color: var(--texte-doux); }
.produit-liste li::before { content: "\2713"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.produit-liste.moins li::before { content: "\2717"; color: var(--rouge); }

/* colonne de droite : note, prix, avis, bouton */
.produit-aside {
  background: var(--noir-3);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}
.produit-score { font-family: var(--titre); font-size: 2.4rem; line-height: 1; color: var(--orange); }
.produit-score small { font-size: .85rem; color: var(--texte-faible); }
.produit-score-nom {
  font-size: .7rem; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--texte-faible); margin-bottom: .9rem;
}
.produit.interdit .produit-score { color: var(--rouge); }
.produit-prix { font-family: var(--titre); font-size: 1.45rem; color: var(--texte); display: block; margin-top: .8rem; }
.produit-prix small { display: block; font-size: .78rem; color: var(--texte-faible); font-family: var(--corps); line-height: 1.45; }
.produit-note { font-size: .84rem; color: var(--texte-doux); display: block; margin-top: .5rem; }
.etoiles { color: var(--jaune); letter-spacing: 1px; }
.produit-aside .bouton { width: 100%; margin-top: .9rem; }

@media (max-width: 1000px) {
  .produit { grid-template-columns: 130px 1fr; }
  .produit-aside { grid-column: 1 / -1; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
  .produit-aside .bouton { width: auto; margin-top: 0; }
  .produit-prix { margin-top: 0; }
}
@media (max-width: 620px) {
  .produit { grid-template-columns: 1fr; padding: 1.5rem 1.1rem; gap: 1.2rem; }
  .produit-visuel { max-width: 220px; margin: 0 auto; }
  .produit-aside { grid-template-columns: 1fr; text-align: center; }
  .produit-aside .bouton { width: 100%; }
}

.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.badge {
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .22rem .6rem;
  border-radius: 100px;
  border: 1px solid var(--bordure);
  color: var(--texte-doux);
}
.badge-france { border-color: var(--orange-sombre); color: var(--orange-clair); }

/* ---------- Note de risque ---------- */

.jauge { margin: 1rem 0 1.4rem; }
.jauge-ligne { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; font-size: .88rem; }
.jauge-nom { flex: 0 0 150px; color: var(--texte-doux); }
.jauge-barre { flex: 1; height: 8px; background: var(--noir-3); border-radius: 100px; overflow: hidden; }
.jauge-remplie { height: 100%; background: linear-gradient(90deg, var(--jaune), var(--orange)); border-radius: 100px; }
.jauge-remplie.faible { background: linear-gradient(90deg, var(--vert), var(--jaune)); }
.jauge-valeur { flex: 0 0 44px; text-align: right; font-family: var(--titre); color: var(--texte); }

/* ---------- Articles ---------- */

.article-entete { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--bordure); background: linear-gradient(180deg, var(--noir-2), var(--noir)); }
.fil { font-size: .82rem; color: var(--texte-faible); margin-bottom: 1rem; }
.fil a { color: var(--texte-doux); }
.article-meta { font-size: .85rem; color: var(--texte-faible); margin-top: 1rem; }
.article-corps { padding: 2.5rem 0 3.5rem; }
.article-corps img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 1.8rem 0 .6rem; }
.article-corps figure { margin: 1.8rem 0; }
.article-corps figcaption { font-size: .84rem; color: var(--texte-faible); font-style: italic; }

.sommaire { background: var(--noir-2); border: 1px solid var(--bordure); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 2rem 0; }
.sommaire p { font-family: var(--titre); text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; margin-bottom: .6rem; color: var(--texte-doux); }
.sommaire ol { margin-bottom: 0; font-size: .93rem; }

.faq-item { border-bottom: 1px solid var(--bordure); padding: 1.2rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 .5rem; font-size: 1.08rem; color: var(--texte); text-transform: none; font-family: var(--corps); font-weight: 700; }
.faq-item p:last-child { margin-bottom: 0; }

.suite { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5rem; }
.suite a {
  display: block;
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--texte);
  font-size: .93rem;
}
.suite a:hover { border-color: var(--orange); text-decoration: none; }
.suite span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--texte-faible); margin-bottom: .2rem; }

/* ---------- Appel a l'action ---------- */

.appel {
  background: linear-gradient(135deg, var(--rouge-fond), var(--noir-2));
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.appel h3 { margin-top: 0; color: var(--texte); }
.appel p { color: var(--texte-doux); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Encadre produit dans les articles ----------
   L'article expose le probleme, cet encadre presente la solution. */

.encadre-produit {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin: 2.5rem 0;
}
.encadre-produit-visuel {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: .6rem;
  display: block;
}
.encadre-produit-etiquette {
  display: inline-block;
  font-family: var(--titre);
  font-size: .74rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
  padding: .18rem .6rem;
  margin-bottom: .6rem;
}
.encadre-produit h3 { margin: 0 0 .5rem; font-size: 1.28rem; color: var(--texte); }
.encadre-produit p { color: var(--texte-doux); font-size: .95rem; margin-bottom: .9rem; }
.encadre-produit-actifs {
  list-style: none;
  margin: 0 0 1.1rem;
  font-size: .89rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .1rem .9rem;
}
.encadre-produit-actifs li { padding-left: 1.3rem; position: relative; color: var(--texte-doux); }
.encadre-produit-actifs li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--vert); font-weight: 700;
}
.encadre-produit-note { font-size: .82rem; color: var(--texte-faible); margin-top: .7rem; }

@media (max-width: 640px) {
  .encadre-produit { grid-template-columns: 1fr; }
  .encadre-produit-visuel { height: 220px; }
}

/* ---------- Pied de page ---------- */

.pied { background: var(--noir-2); border-top: 1px solid var(--bordure); padding: 3rem 0 1.5rem; font-size: .9rem; }
.pied-grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.pied h4 { font-size: .85rem; letter-spacing: 1.2px; color: var(--texte); margin-top: 0; }
.pied ul { list-style: none; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied a { color: var(--texte-doux); font-size: .89rem; }
.pied a:hover { color: var(--orange); }
.pied-bas { border-top: 1px solid var(--bordure); margin-top: 2.2rem; padding-top: 1.2rem; color: var(--texte-faible); font-size: .82rem; }
.pied-bas p { margin-bottom: .5rem; }

.avertissement {
  background: var(--rouge-fond);
  border-top: 1px solid #f3d9da;
  border-bottom: 1px solid #f3d9da;
  padding: 1rem 0;
  font-size: .87rem;
  color: #7d2b22;
}
.avertissement strong { color: #b3261e; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 2.8rem 0; }
  .jauge-nom { flex-basis: 110px; font-size: .82rem; }
}

/* ---------- Illustration principale de page ---------- */

.illustration {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--bordure);
  margin: 2rem 0 .5rem;
}

/* ---------- Renvoi vers le comparatif depuis les guides de molecules ---------- */

.renvoi-comparatif {
  background: var(--rouge-fond);
  border: 1px solid rgba(226,21,31,.25);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0 2.2rem;
}
.renvoi-etiquette {
  display: inline-block;
  font-family: var(--titre);
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
  padding: .16rem .55rem;
  margin-bottom: .5rem;
}
.renvoi-comparatif p { margin-bottom: 0; font-size: .95rem; color: var(--texte-doux); }

/* ---------- Cartes produit compactes (grille de selection) ----------
   Format repris du comparatif creatine : visuel, badge, tags, prix, acces
   direct a la fiche. Compact et de hauteur egale, contrairement aux fiches
   detaillees .produit qui sont horizontales et pleine largeur. */

.selection-entete { text-align: center; margin-bottom: 2.2rem; }
.selection-entete .surtitre {
  display: inline-block;
  font-family: var(--titre);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: .6rem;
}
.selection-entete h2 { margin: 0 0 .7rem; }
.selection-entete p { color: var(--texte-doux); max-width: 60ch; margin: 0 auto; }

.grille-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.4rem;
}

.carte-produit {
  background: var(--noir-2);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.carte-produit:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -22px rgba(0,0,0,.35); }
.carte-produit.phare { border: 2px solid var(--orange); box-shadow: 0 14px 32px -24px rgba(226,21,31,.6); }

.carte-produit-badge {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  padding: .22rem .7rem;
  border-radius: 100px;
  font-family: var(--titre);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--noir-3);
  color: var(--texte-doux);
  border: 1px solid var(--bordure);
}
.carte-produit-badge.meilleur { background: var(--orange); color: #fff; border-color: transparent; }

.carte-produit-visuel {
  height: 200px;
  background: #fff;
  border-bottom: 1px solid var(--bordure);
  display: flex; align-items: center; justify-content: center;
  padding: 1.1rem;
}
.carte-produit-visuel img { max-height: 178px; max-width: 100%; object-fit: contain; }

.carte-produit-corps { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.carte-produit-corps h3 { font-size: 1.16rem; margin: 0 0 .15rem; color: var(--texte); }
.carte-produit-marque { font-size: .76rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--texte-faible); margin-bottom: .8rem; }

.carte-produit-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.carte-produit-tags span {
  font-size: .71rem;
  letter-spacing: .3px;
  padding: .18rem .55rem;
  border-radius: 100px;
  border: 1px solid var(--bordure);
  color: var(--texte-doux);
  background: var(--noir);
}
.carte-produit-tags span.france { border-color: var(--orange); color: var(--orange-clair); }

.carte-produit-note { font-size: .85rem; color: var(--texte-doux); margin-bottom: .9rem; }
.carte-produit-pied { margin-top: auto; border-top: 1px solid var(--bordure); padding-top: .9rem; }
.carte-produit-prix { font-family: var(--titre); font-size: 1.4rem; color: var(--texte); margin-bottom: .8rem; }
.carte-produit-prix span { font-family: var(--corps); font-size: .8rem; color: var(--texte-faible); font-weight: 400; }
.carte-produit-pied .bouton { width: 100%; text-align: center; }
.carte-produit-pied .bouton + .bouton { margin-top: .5rem; }

/* Variante de l'encadre produit sur les guides de molecules : la formule
   legale y est presentee comme une substitution, d'ou l'accent rouge. */
.encadre-produit.substitution { border-left-color: var(--orange); background: var(--rouge-fond); }
.encadre-produit.substitution .encadre-produit-visuel { background: #fff; }

/* ---------- Tableau comparatif de l'accueil ----------
   Format repris du comparatif creatine : vignette produit, barre de score,
   prix avec sous-ligne, bouton d'acces dans la derniere colonne. */

.tableau-accueil { min-width: 940px; font-size: .9rem; }
.tableau-accueil td { vertical-align: middle; padding: 1rem; }

.cellule-marque { display: flex; align-items: center; gap: .75rem; }
.marque-sigle {
  width: 42px; height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .5px;
  color: #fff;
}
.marque-nom { display: block; font-weight: 700; color: var(--texte); }
.marque-sous { display: block; font-size: .76rem; color: var(--texte-faible); font-weight: 400; }

.badge-n1, .badge-interdit {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 100px;
  font-family: var(--titre);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
}
.badge-n1 { background: var(--orange); color: #fff; }
.badge-interdit { background: #7d2b22; color: #fff; }

.barre-score { display: flex; align-items: center; gap: .5rem; }
.barre-piste { width: 62px; height: 8px; background: var(--noir-3); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.barre-remplie { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--orange-sombre), var(--orange)); }
.barre-remplie.interdite { background: #7d2b22; }
.barre-valeur { font-family: var(--titre); font-size: .95rem; color: var(--texte); }

.prix-cellule { font-family: var(--titre); font-size: 1.05rem; color: var(--texte); display: block; }
.prix-cellule.non { color: #7d2b22; }
.prix-sous { display: block; font-family: var(--corps); font-size: .74rem; color: var(--texte-faible); font-weight: 400; }

.tableau-accueil .ligne-phare td { background: rgba(226,21,31,.07); }
.tableau-accueil .ligne-phare td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.tableau-accueil .ligne-interdite td { background: rgba(125,43,34,.05); }
.tableau-accueil .ligne-interdite td:first-child { box-shadow: inset 3px 0 0 #7d2b22; }
.tableau-accueil .bouton { white-space: nowrap; }


/* Grille de selection sur trois colonnes fixes : deux lignes de trois. */
.grille-selection.par-trois { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grille-selection.par-trois { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grille-selection.par-trois { grid-template-columns: 1fr; } }

/* Cartes des produits interdits dans la grille de selection. */
.carte-produit.interdite { border-color: #c9a49e; }
.carte-produit-badge.interdit { background: #7d2b22; color: #fff; border-color: transparent; }
.carte-produit.interdite .carte-produit-visuel { position: relative; }
.carte-produit.interdite .bandeau-interdit {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #7d2b22; color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; text-align: center;
  padding: .3rem;
}
.carte-produit.interdite .carte-produit-prix { color: #7d2b22; font-size: 1.16rem; }

/* Quatre colonnes pour les grilles de selection qui alignent quatre produits. */
.grille-selection.par-quatre { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grille-selection.par-quatre { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grille-selection.par-quatre { grid-template-columns: 1fr; } }

/* Points cles a l'interieur d'une carte compacte : trois lignes maximum,
   le detail chiffre restant dans les tableaux. */
.carte-produit-points { list-style: none; margin: 0 0 .9rem; font-size: .83rem; }
.carte-produit-points li {
  padding-left: 1.1rem; position: relative; margin-bottom: .4rem;
  color: var(--texte-doux); line-height: 1.5;
}
.carte-produit-points li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--vert); font-weight: 700;
}
.carte-produit-points li:has(em)::before { content: "\2717"; color: var(--rouge); }
.carte-produit-points em { font-style: normal; color: var(--texte-faible); }
.carte-produit.interdite .carte-produit-points li::before { content: "\2717"; color: var(--rouge); }

/* ---------- Bandeau de consentement ----------
   Le site ne depose aucun cookie lui-meme. Le choix porte sur le cookie que
   le marchand depose quand on clique vers sa boutique : en cas de refus,
   cookies.js ajoute rel="noreferrer" a tous les liens sortants. */

.cookies {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9999;
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--noir); color: var(--texte);
  border: 1px solid var(--bordure); border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 1.1rem 1.4rem;
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  font-size: .9rem; line-height: 1.55;
  animation: cookies-entree .35s ease;
}
@keyframes cookies-entree { from { opacity: 0; transform: translateY(16px); } }
.cookies-parti { opacity: 0; transform: translateY(16px); transition: .3s; }
.cookies-txt { flex: 1 1 400px; color: var(--texte-doux); }
.cookies-txt strong { color: var(--orange); }
.cookies-txt a { color: var(--orange-clair); text-decoration: underline; }
.cookies-btns { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookies button {
  font-family: var(--titre); font-size: .88rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  padding: .6rem 1.3rem; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--bordure); transition: .2s;
}
.cookies-refus { background: transparent; color: var(--texte-doux); }
.cookies-refus:hover { background: var(--noir-3); color: var(--texte); }
.cookies-ok { background: var(--orange); color: #fff; border-color: var(--orange); }
.cookies-ok:hover { background: var(--orange-clair); }
@media (max-width: 600px) {
  .cookies { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookies-btns button { flex: 1; }
}
/* Le bandeau est fixe : on degage le bas de page pour qu'il ne recouvre
   jamais le pied de page. */
body.avec-bandeau { padding-bottom: 160px; }
@media (min-width: 900px) { body.avec-bandeau { padding-bottom: 130px; } }
