/* V15.2 — Page d'accueil : section « Livres et ressources » (4 derniers produits de la boutique). */
.hp-shop-sub { margin:10px 0 0; max-width:560px; color:#6B6478; font-size:15px; line-height:1.55; }
.hp-shop-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:22px; margin-top:26px; }
.hp-prod { display:flex; flex-direction:column; background:#fff; border:1px solid #E7E1EE; border-radius:20px; overflow:hidden; text-decoration:none; color:#2B2233;
  box-shadow:0 10px 26px -18px rgba(48,32,68,.45); transition:transform .2s ease, box-shadow .2s ease; }
.hp-prod:hover, .hp-prod:focus-visible { transform:translateY(-3px); box-shadow:0 18px 34px -20px rgba(48,32,68,.55); }
.hp-prod:focus-visible { outline:3px solid #5B3F80; outline-offset:2px; }
.hp-prod-media { position:relative; display:block; }
.hp-prod-media .pd-cover { border-radius:0; }
.hp-prod-media .tag { position:absolute; z-index:2; top:12px; inset-inline-end:12px; font:700 11.5px/1 Inter, system-ui, sans-serif; padding:6px 9px; border-radius:999px; background:#fff; color:#302044; }
.hp-prod-media .tag.is-free { background:#E7F4EE; color:#126B4E; }
.hp-prod-body { display:flex; flex-direction:column; gap:5px; padding:16px 18px 18px; }
.hp-prod-body b { font-size:16px; line-height:1.35; color:#241A35; }
.hp-prod-body small { font-size:13px; color:#7A7288; }
.hp-prod-price { margin-top:6px; font-weight:800; font-size:17px; color:#241A35; }
.hp-prod-price.is-free { color:#167A58; }
.hp-prod-price s { font-weight:500; font-size:13px; color:#8C8499; margin-inline-start:6px; }
@media (max-width:1000px) { .hp-shop-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:520px) { .hp-shop-grid { gap:12px; } .hp-prod-body { padding:12px; } .hp-prod-body b { font-size:14.5px; } .hp-prod-price { font-size:15px; } }
@media (prefers-reduced-motion:reduce) { .hp-prod { transition:none; } .hp-prod:hover { transform:none; } }
/* Menu du haut : le lien « Boutique » ajoute une entrée. Au-delà de 1180 px (la barre est limitée à 1240 px de large), elle passe en version compacte
   (recherche masquée, « Se connecter » en icône), comme elle le faisait déjà jusqu'à 1365 px, pour ne rien chevaucher. */
@media (min-width:1181px) {
  html[data-design] .site-header:has(.site-nav > a[href$="boutique.php"]) .nav-search { display:none; }
  html[data-design] .site-header:has(.site-nav > a[href$="boutique.php"]) .bar { gap:14px; }
  html[data-design] .site-header:has(.site-nav > a[href$="boutique.php"]) :is(.site-nav > a, .nav-drop > a) { padding:0 7px; font-size:.875rem; }
  html[data-design] .site-header:has(.site-nav > a[href$="boutique.php"]) .nav-drop > a { padding-right:2px; }
  html[data-design] .site-header:has(.site-nav > a[href$="boutique.php"]) .nav-cta .nav-login { width:44px; padding:0; }
  html[data-design] .site-header:has(.site-nav > a[href$="boutique.php"]) .nav-login .lbl { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  html[data-design] .site-header:has(.site-nav > a[href$="boutique.php"]) .brand img { height:36px; }
}
