/* ==========================================================================
   ARTICLES broyeur-vert : mise en forme commune à tous les articles
   Chargé UNIQUEMENT sur les fiches affichées en mode article (voir product.tpl).
   Toutes les règles sont préfixées par .article-bv : rien ne déborde sur le thème.
   Charte reprise de la fiche produit du thème multi_sport (v3 : arrondis, traits orange #fdb909) :
     polices Oswald-Regular / Oswald-Light, texte #414141, titres #333,
     boutons dégradé vert #87bf17 > #6c9912 (Arial gras 17 px, coins 5 px),
     accent jaune #fdb909, encadrés blancs à angles droits bordés #ededed,
     en-têtes de tableau #e7e7e7 avec filet jaune.
   Après modification : augmenter le numéro ?v= dans product.tpl (cache navigateur).
   ========================================================================== */

.article-bv{
  --text:#414141; --title:#333; --muted:#777;
  --green:#7cc225; --green-d:#6c9912; --green-l:#f2f8e6;
  --yellow:#fdb909; --yellow-l:#fff8e1;
  --red:#c62828; --red-l:#fbeaea;
  --line:#ededed; --line-2:#d6d4d4; --grey:#e7e7e7; --grey-l:#f7f7f7; --head:#eef2ef;
  --btn:linear-gradient(#87bf17,#6c9912); --radius:12px;
  --regular:"Oswald-Regular", Oswald, "Arial Narrow", Arial, sans-serif;
  --light:"Oswald-Light", "Oswald-Regular", Oswald, "Arial Narrow", Arial, sans-serif;
  color:var(--text); font:400 17px/1.6 var(--light); text-align:left;
}
.article-bv *,.article-bv *::before,.article-bv *::after{box-sizing:border-box}
.article-bv img{max-width:100%; height:auto; display:block}
.article-bv p,.article-bv li,.article-bv td,.article-bv summary,.article-bv figcaption{font-family:var(--light)}
.article-bv p{font-size:inherit; line-height:inherit; color:inherit; margin:0 0 1em}
.article-bv strong,.article-bv b{font-family:var(--regular); font-weight:400; color:var(--title)}
.article-bv a{color:var(--green-d); text-decoration:underline}
.article-bv a:hover{color:var(--title)}

/* Titres : Oswald comme le reste du site, sans gras synthétique */
.article-bv h1,.article-bv h2,.article-bv h3,.article-bv h4{font-family:var(--regular); font-weight:400; color:var(--title); text-transform:none; letter-spacing:normal; line-height:1.25}
.article-bv h1{font-size:clamp(24px,2.6vw,30px); margin:0 0 8px}
/* H2 = titre de section façon « Autres produits » du thème : majuscules, espacé, filet jaune */
.article-bv h2{font-family:var(--regular); font-weight:400; font-size:clamp(22px,2.4vw,27px); text-transform:none; letter-spacing:normal; margin:44px 0 20px; padding:18px 0 12px; position:relative; scroll-margin-top:100px; border:0; border-top:3px solid var(--yellow)}
.article-bv h3{font-size:20px; margin:28px 0 10px}
.article-bv h4{font-size:17px; margin:0 0 6px}
.article-bv main ul{list-style:disc; padding-left:1.3em; margin:0 0 1em}
.article-bv main ol{list-style:decimal; padding-left:1.3em}

/* Mise en page : texte + encadré collant à droite, sur toute la largeur du site */
.article-bv .abv-wrap{container-type:inline-size}
.article-bv .abv-grid{display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:30px; align-items:start}
.article-bv .abv-main{min-width:0; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px 40px 36px}
.article-bv .abv-side{align-self:stretch}
@container (max-width:860px){
  .article-bv .abv-grid{grid-template-columns:1fr}
  .article-bv .abv-side{display:none}
}
@container (max-width:600px){
  .article-bv .abv-main{padding:20px 16px 24px}
}

.article-bv .sticky{position:sticky; top:100px; background:#fff; border:1px solid var(--yellow); border-radius:var(--radius); padding:20px; text-align:center}
.article-bv .sticky img{margin:0 auto 12px; max-height:170px; object-fit:contain}
.article-bv .sticky b{display:block; font-size:19px; line-height:1.3}
.article-bv .sticky .meta{margin:6px 0 10px}
.article-bv .sticky .price{font:200 26px/1.2 var(--regular); color:var(--title); margin-bottom:14px}

.article-bv .meta{font-size:14px; color:var(--muted); line-height:1.5}
.article-bv .lead{font-size:18px}
/* Lisibilité : lignes de texte limitées à ~720 px, tableaux et encadrés gardent toute la largeur */
.article-bv .abv-main>p:not(.aff),.article-bv .abv-main>ul,.article-bv .abv-main>ol,.article-bv .abv-main>h3{max-width:720px}
.article-bv .aff{font-size:14px; background:var(--grey-l); border-left:3px solid var(--line-2); border-radius:6px; padding:10px 14px; margin:14px 0 18px}
.article-bv .aff.key{font-size:17px; background:var(--green-l); border-left:4px solid var(--green); padding:14px 18px; margin:18px 0 10px}
.article-bv .aff.end{margin-top:30px}

/* Boutons : identiques à « Voir l'offre » / « Avis des utilisateurs » du site */
.article-bv .btn{display:inline-block; background:linear-gradient(#87bf17,#6c9912); border:1px solid #6c9912; border-radius:5px; color:#fff; font:700 17px/21px Arial, Helvetica, sans-serif; text-decoration:none; text-transform:none; padding:10px 16px; white-space:normal; box-shadow:none; text-align:center}
.article-bv .btn::after{content:"\f054"; font-family:FontAwesome; font-weight:400; font-size:13px; margin-left:8px; vertical-align:1px}
.article-bv .btn:hover,.article-bv .btn:focus{background:linear-gradient(#6c9912,#5c840f); color:#fff; text-decoration:none}
.article-bv .btn-note{display:block; font-size:13px; color:var(--muted); margin-top:6px}

/* Encadré verdict en tête : photo à gauche, infos à droite (comme la fiche) */
.article-bv .verdict-box{background:#fff; border:1px solid var(--yellow); border-radius:var(--radius); padding:24px; display:grid; grid-template-columns:minmax(180px,34%) 1fr; gap:28px; margin:24px 0}
.article-bv .verdict-box img{width:100%; max-height:300px; object-fit:contain; background:#fff; border-radius:10px}
.article-bv .badge{display:inline-block; background:#87bf17; color:#fff; font:400 14px/1.3 var(--regular); padding:4px 12px; border-radius:20px; margin-bottom:12px; white-space:normal}
.article-bv .fit{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:4px 0 16px}
.article-bv .fit ul{margin:0; padding:0; list-style:none; font-size:16px}
.article-bv .fit li{padding:3px 0 3px 22px; position:relative; line-height:1.4}
.article-bv .fit .yes li::before{content:"✓"; position:absolute; left:0; color:var(--green); font-family:Arial, sans-serif; font-weight:700}
.article-bv .fit .no li::before{content:"✗"; position:absolute; left:0; color:var(--red); font-family:Arial, sans-serif; font-weight:700}
.article-bv .fit h4{font-size:17px}
.article-bv .price-line{display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding-top:14px; border-top:1px solid var(--line)}
.article-bv .price-line .p{font:200 26px/1.2 var(--regular); color:var(--title)}
.article-bv .price-line .p small{display:block; font:400 13px/1.4 var(--light); color:var(--muted)}

/* Sommaire */
.article-bv .toc{background:var(--grey-l); border:1px solid var(--line); border-radius:var(--radius); padding:16px 22px; margin:24px 0}
.article-bv .toc b{font-size:16px; text-transform:uppercase; letter-spacing:2px}
.article-bv .toc ol{columns:2; column-gap:30px; margin:8px 0 0; padding-left:20px; font-size:16px; list-style:decimal}
.article-bv .toc li{margin:3px 0; break-inside:avoid}
.article-bv .toc a{color:var(--text); text-decoration:none}
.article-bv .toc a:hover{color:var(--green-d); text-decoration:underline}

/* Photos */
.article-bv figure{margin:22px 0}
.article-bv figure>img{width:100%; max-width:560px; max-height:none!important; aspect-ratio:4/3; margin:0 auto; object-fit:cover; border:1px solid var(--line); border-radius:10px}
.article-bv figcaption{font-size:14px; color:var(--muted); margin-top:8px; text-align:center}
.article-bv .src{font-size:13px; color:var(--muted); font-style:italic; margin:6px 0 20px}

/* Appel à l'action dans le texte */
.article-bv .cta{background:var(--grey-l); border:1px solid var(--line); border-left:4px solid var(--green); border-radius:var(--radius); padding:18px 22px; margin:28px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap}
.article-bv .cta p{margin:0; font:400 19px/1.4 var(--regular); color:var(--title)}
.article-bv .box{background:var(--grey-l); border:1px solid var(--line); border-radius:var(--radius); padding:18px 22px; margin:20px 0}
.article-bv .box>b{display:block; font-size:18px; margin-bottom:6px}
.article-bv .tip{background:var(--yellow-l); border-left:4px solid var(--yellow); border-radius:8px; padding:12px 16px; margin:14px 0}
.article-bv .tip b{color:var(--title)}

/* Comparaison chiffres clés */
.article-bv .cmp{display:grid; gap:14px}
.article-bv .cmp-row .lbl{display:flex; justify-content:space-between; font:400 15px/1.4 var(--regular)}
.article-bv .cmp-row .lbl span{font-family:var(--light); color:var(--muted)}
.article-bv .track{position:relative; height:22px; background:var(--grey); border-radius:6px; margin-top:4px}
.article-bv .band{position:absolute; top:0; bottom:0; background:repeating-linear-gradient(45deg,#cfcfcf,#cfcfcf 4px,#e3e3e3 4px,#e3e3e3 8px); border-radius:6px}
.article-bv .mark{position:absolute; top:-3px; bottom:-3px; width:6px; margin-left:-3px; background:var(--green); border-radius:3px}
.article-bv .legend{display:flex; gap:16px; font-size:13px; color:var(--muted); margin-top:8px; flex-wrap:wrap}
.article-bv .legend i{display:inline-block; width:14px; height:10px; border-radius:3px; margin-right:5px; vertical-align:middle}

/* Tableaux : même style que le tableau des boutiques de la fiche */
.article-bv .tbl{border:1px solid var(--line); border-radius:var(--radius); margin:18px 0; overflow-x:auto}
.article-bv table{width:100%; border-collapse:collapse; font-size:15px; background:#fff; margin:0}
.article-bv th,.article-bv td{padding:10px 20px; border:0; border-top:1px solid var(--line-2); text-align:left; vertical-align:middle}
.article-bv thead tr{background:var(--head)}
.article-bv th{border-top:0; font:700 16px/1.3 var(--regular); color:var(--text); padding:14px 20px}
.article-bv td:first-child{font-family:var(--regular); color:var(--title)}
.article-bv tr.hl td{background:var(--green-l); font-family:var(--regular); color:var(--title)}
.article-bv .pill{display:inline-block; min-width:28px; text-align:center; font:700 15px/1.5 Arial, sans-serif; border-radius:6px; padding:0 8px}
.article-bv .pill.y{background:var(--green-l); color:var(--green-d)}
.article-bv .pill.m{background:var(--yellow-l); color:#b07d00}
.article-bv .pill.n{background:var(--red-l); color:var(--red)}
.article-bv .thumb{width:60px; height:48px; object-fit:contain; background:#fff; display:inline-block; vertical-align:middle; margin-right:10px}

/* Avis : fréquence des thèmes, points forts / faibles */
.article-bv .themes{display:grid; gap:8px; margin:12px 0}
.article-bv .th{display:grid; grid-template-columns:210px 1fr; align-items:center; gap:12px; font-size:15px}
.article-bv .th .bar{height:14px; border-radius:7px}
.article-bv .th .pos{background:var(--green)}
.article-bv .th .neg{background:var(--red)}
.article-bv .pf{display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0}
.article-bv .pf>div{padding:18px 20px; border-radius:var(--radius)}
.article-bv .pf .plus{background:var(--green-l)}
.article-bv .pf .minus{background:var(--yellow-l)}
.article-bv .pf h3{margin-top:0; font-size:19px}
.article-bv .pf p{font-size:16px; margin:.6em 0}

/* Deux versions côte à côte, jauge de diamètre */
.article-bv .vs{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:12px}
.article-bv .vs>div{border:1px solid var(--line); border-radius:var(--radius); padding:16px; background:#fff}
.article-bv .vs>div.e{border:2px solid var(--yellow)}
.article-bv .vs h4{font-size:17px; margin:0 0 8px}
.article-bv .vs ul{margin:0; padding-left:0; list-style:none; font-size:15px}
.article-bv .vs li{padding:5px 0; border-top:1px dashed var(--line-2)}
.article-bv .vs li:first-child{border-top:0}
.article-bv .vs .pr{font:200 22px/1.2 var(--regular); color:var(--title); margin-top:10px}
.article-bv .gauge{margin-top:14px}
.article-bv .gauge .bar{display:flex; height:30px; border-radius:8px; overflow:hidden; font:400 14px/1 var(--regular); color:#fff}
.article-bv .gauge .bar div{display:flex; align-items:center; justify-content:center}
.article-bv .gauge .ok{background:#87bf17; flex:45}
.article-bv .gauge .lim{background:var(--yellow); color:var(--title); flex:15}
.article-bv .gauge .ko{background:var(--red); flex:20}
.article-bv .gauge .ax{position:relative; height:18px; font-size:13px; color:var(--muted); margin-top:4px}
.article-bv .gauge .ax span{position:absolute; transform:translateX(-50%)}
.article-bv .gauge .ax span:first-child{transform:none}
.article-bv .gauge .ax span:last-child{transform:translateX(-100%)}

/* Graphiques, verdict, FAQ */
.article-bv .chart{background:var(--grey-l); border:1px solid var(--line); border-radius:var(--radius); padding:12px}
.article-bv .chart svg{width:100%; height:auto; display:block}
.article-bv .verdict{background:#fff; border:1px solid var(--yellow); border-radius:var(--radius); padding:20px 24px}
.article-bv details{background:#fff; border:1px solid var(--line); border-radius:10px; margin:8px 0; padding:12px 18px}
.article-bv summary{font:400 17px/1.4 var(--regular); color:var(--title); cursor:pointer; display:list-item}
.article-bv details p{margin:.6em 0 0}

/* Barre fixe en bas d'écran (mobile et tablette) */
.article-bv .mbar{display:none}
@media (max-width:991px){
  .article-bv .mbar{display:flex; position:fixed; left:0; right:0; bottom:0; z-index:1000; background:#fff; border-top:4px solid var(--yellow); padding:8px 16px; align-items:center; justify-content:space-between; gap:12px; box-shadow:0 -3px 10px rgba(0,0,0,.08); font-family:var(--regular)}
  .article-bv .mbar b{font-size:16px}
  .article-bv .mbar .meta{font-size:14px; color:var(--title)}
  .article-bv .mbar .btn{padding:9px 14px; font-size:16px; flex-shrink:0}
  .article-bv{padding-bottom:76px}
  /* bouton « haut de page » du thème : remonté au-dessus de la barre */
  body #do_gory{bottom:96px}
}

@media (max-width:767px){
  .article-bv{font-size:16px}
  .article-bv h2{margin-top:36px}
  .article-bv .verdict-box{grid-template-columns:1fr; padding:16px; gap:16px}
  .article-bv .verdict-box img{max-height:240px}
  .article-bv .fit,.article-bv .pf,.article-bv .vs{grid-template-columns:1fr}
  .article-bv .toc ol{columns:1}
  .article-bv .th{grid-template-columns:1fr; gap:2px}
  .article-bv .cta{flex-direction:column; align-items:flex-start}
  .article-bv .gauge .bar{font-size:12px}
  /* graphiques : défilement horizontal */
  .article-bv .chart{overflow-x:auto; -webkit-overflow-scrolling:touch}
  .article-bv .chart svg{min-width:560px}
  .article-bv .chart figcaption{position:sticky; left:0; max-width:calc(100vw - 58px)}
  /* tableaux en cartes */
  .article-bv .tbl{overflow:visible}
  .article-bv .resp thead{display:none}
  .article-bv .resp tr{display:block; border-top:1px solid var(--line-2); padding:8px 4px}
  .article-bv .resp tr:first-child{border-top:0}
  .article-bv .resp td{display:flex; justify-content:space-between; gap:12px; border:0; padding:4px 10px; text-align:right}
  .article-bv .resp td::before{content:attr(data-label); font-family:var(--regular); color:var(--muted); text-align:left}
  .article-bv .resp td:first-child{font-size:17px; text-align:left; justify-content:flex-start; align-items:center}
  .article-bv .resp td:first-child::before{display:none}
}

/* ==== MASQUAGE TEMPORAIRE — en attente de validation du partenariat AgriEuro (16/11/2026) ====
   Masque le bloc de droite et les boutons « Voir sur AgriEuro » de l'encadré du haut, du verdict et de la barre fixe mobile.
   visibility:hidden : les éléments restent dans la page et gardent leur place, la mise en page ne bouge pas.
   POUR RÉAFFICHER : supprimer ce bloc (ou le mettre en commentaire), puis incrémenter ?v= dans product.tpl. */
.article-bv .abv-side,
.article-bv .price-line .btn,
.article-bv .verdict .btn,
.article-bv .mbar .btn{visibility:hidden}
/* ==== FIN DU MASQUAGE TEMPORAIRE ==== */

/* ==== MASQUAGE TEMPORAIRE DES ZOOMS PHOTO — en attente de l'accord d'AgriEuro sur les photos (17/11/2026) ====
   Masque les photos de détail (zooms) et leur légende dans le corps de l'article.
   La photo principale, les vignettes de gamme et les graphiques restent affichés.
   display:none : aucun espace vide n'est laissé, le texte s'enchaîne normalement.
   POUR RÉAFFICHER : supprimer ce bloc (ou le mettre en commentaire), puis incrémenter ?v= dans product.tpl. */
.article-bv figure>img,
.article-bv figure>img~figcaption{display:none}
/* ==== FIN DU MASQUAGE TEMPORAIRE DES ZOOMS PHOTO ==== */
