/* Boutique — page livres. Couleurs d’âge disponibles, sans badge d’âge inventé. */
:root{
  --age-4:#FF9F1C;
  --age-7:#00D4AA;
  --age-12:#7C5CFF;
  --age-16:#C9A86A;
}

.boutique{
  flex:1;
  width:100%;
  max-width:1080px;
  justify-self:stretch;
  box-sizing:border-box;
  margin:0 auto;
  padding:28px 40px 72px;
  min-width:0;
}
.boutique-intro{margin:0 0 24px}
.boutique-intro h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,7vw,58px);
  line-height:1.08;
  letter-spacing:-.04em;
  margin:0;
  font-weight:700;
}
.boutique-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:32px 36px;
  align-items:stretch;
}
.book-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 22px 24px;
  display:flex;
  flex-direction:column;
  box-shadow:0 10px 30px var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
  border-top:4px solid var(--book-accent, var(--age-16));
}
.book-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px var(--shadow-hover)}
.book-cover{
  margin:0 auto 22px;
  max-width:240px;
  width:100%;
}
.book-cover img{
  display:block;
  width:100%;
  height:auto;
  border-radius:3px;
  box-shadow:0 12px 28px rgba(20,30,50,.18);
  background:#eee;
}
html[data-theme="dark"] .book-cover img{box-shadow:0 12px 28px rgba(0,0,0,.45)}
.book-card h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(26px,4vw,32px);
  line-height:1.15;
  letter-spacing:-.03em;
  margin:0 0 6px;
  font-weight:700;
}
.book-card .sub{
  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
  font-size:1.12rem;
  line-height:1.35;
  margin:0 0 2px;
}
.book-card .ligne{
  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
  font-size:.98rem;
  color:var(--muted);
  margin:0 0 18px;
  line-height:1.4;
}
.book-meta{
  list-style:none;
  margin:0 0 20px;
  padding:0;
  font-size:.95rem;
  line-height:1.55;
  color:var(--ink);
}
.book-meta li{margin:0 0 4px}
.book-meta .price{
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:-.02em;
  margin-top:8px;
  color:var(--ink);
}
.amazon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  font:700 15px/1.2 system-ui,-apple-system,sans-serif;
  background:var(--book-accent, #172f43);
  color:#fff;
  border:0;
  cursor:pointer;
  text-align:center;
  margin-top:auto;
  align-self:stretch;
}
.amazon-btn:hover{filter:brightness(1.08)}
.amazon-btn.is-todo{
  background:transparent;
  color:var(--ink);
  border:1.5px solid var(--line);
  cursor:default;
  font-weight:700;
}
.amazon-btn.is-todo:hover{filter:none;background:var(--tint)}
.side-item-boutique > .side-link[aria-current="page"]{
  background:var(--tint);
  color:var(--accent-ink);
  font-weight:750;
}


@media (max-width:720px){
  .boutique{
    padding-top:28px;
    padding-right:max(28px, calc(env(safe-area-inset-right, 0px) + 16px));
    padding-bottom:64px;
    padding-left:max(48px, calc(env(safe-area-inset-left, 0px) + 36px));
  }
  .boutique-grid{gap:24px;grid-template-columns:1fr}
  .book-cover{max-width:200px}
  .book-card{padding:18px 18px 20px}
}
.side-item-boutique > .side-link[aria-current="page"]{
  background:var(--tint);
  color:var(--accent-ink);
  font-weight:750;
}

@media (min-width:900px){
  .boutique-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .book-cover{max-width:220px}
  .book-card{padding:18px 18px 20px}
}
