/* Les Curieux — démonstration de boutique en ligne (ZataLabs, V7.4). */
:root { --papier: #f8f4ec; --encre: #1f2a2c; --canard: #234e52; --moutarde: #f2c14e; --doux: #6a6f6c; --trait: #ddd4c4; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 16px/1.55 "Public Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 600; margin: 0 0 .4em; line-height: 1.15; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--canard); outline-offset: 2px; }
.visuellement-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.entete { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: 1.2rem clamp(1rem, 4vw, 3rem); border-bottom: 3px double var(--encre); }
.logo { font: italic 400 2rem/1 Newsreader, serif; text-decoration: none; }
.entete p { margin: .2rem 0 0; font-size: .85rem; color: var(--doux); }
.recherche input { width: 100%; max-width: 520px; padding: .8rem 1rem .8rem 2.6rem; border: 1px solid var(--trait); border-radius: 99px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6f6c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat .9rem center / 18px; }
.sac { padding: .7rem 1rem; border: 0; border-radius: 99px; background: var(--canard); color: #fff; cursor: pointer; font-weight: 600; }
.sac b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: .3rem; border-radius: 99px; background: var(--moutarde); color: var(--encre); font-size: .8rem; }
@media (max-width: 760px) { .entete { grid-template-columns: 1fr auto; } .recherche { grid-column: 1 / -1; grid-row: 2; } }

.mise-en-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.mise-en-page.avec-sac { grid-template-columns: 200px minmax(0, 1fr) 320px; }
@media (max-width: 900px) { .mise-en-page, .mise-en-page.avec-sac { grid-template-columns: 1fr; } }
.rayons { padding: 1.5rem 1rem 1.5rem clamp(1rem, 4vw, 3rem); display: flex; flex-direction: column; gap: .2rem; }
.rayons button { display: flex; justify-content: space-between; padding: .45rem .6rem; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.rayons button span { color: var(--doux); font-size: .85rem; }
.rayons button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.rayons button[aria-pressed="true"] span { color: #c9d1ce; }
@media (max-width: 900px) { .rayons { flex-direction: row; overflow-x: auto; padding: 1rem; } .rayons button { white-space: nowrap; } }
main { padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; }
.barre { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.barre p { margin: 0; color: var(--doux); }
.barre select { padding: .4rem .6rem; border: 1px solid var(--trait); border-radius: 8px; background: #fff; }
.livres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.8rem 1.2rem; }
.livre { display: grid; gap: .5rem; }
/* Couverture dessinée en CSS : couleur, motif et titre */
.couverture { position: relative; aspect-ratio: 2 / 3; padding: 1rem .8rem; border-radius: 3px 8px 8px 3px; background: var(--c1); color: var(--c3); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .15), 0 12px 24px -12px rgba(0, 0, 0, .45); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .25s; }
.livre:hover .couverture { transform: translateY(-4px) rotate(-1deg); }
.couverture::before { content: ""; position: absolute; inset: auto -20% -10% -20%; height: 55%; background: var(--c2); border-radius: var(--forme, 50%); opacity: .9; }
.couverture strong { position: relative; font: 600 1.05rem/1.15 Newsreader, serif; }
.couverture small { position: relative; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.coeur { position: absolute; top: .5rem; right: .5rem; z-index: 1; padding: .15rem .45rem; border-radius: 99px; background: var(--moutarde); color: var(--encre); font-size: .68rem; font-weight: 600; }
.livre h3 { margin: 0; font-size: 1.05rem; }
.livre p { margin: 0; font-size: .85rem; color: var(--doux); }
.livre__pied { display: flex; justify-content: space-between; align-items: center; }
.livre__pied b { font-family: Newsreader, serif; font-size: 1.1rem; }
.livre__pied button { padding: .35rem .7rem; border: 1px solid var(--encre); border-radius: 99px; background: none; cursor: pointer; font-size: .85rem; }
.livre__pied button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.livre mark { background: #fbe7a8; color: inherit; }
.aucun { grid-column: 1 / -1; color: var(--doux); }

.sac-panneau { min-width: 0; padding: 1.5rem; border-left: 3px double var(--encre); background: #fff; }
@media (max-width: 900px) { .sac-panneau { border-left: 0; border-top: 3px double var(--encre); } }
.sac-panneau h2 { font-size: 1.25rem; }
.sac-panneau ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.sac-panneau li { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--trait); font-size: .92rem; }
.sac-panneau li button { border: 0; background: none; color: var(--doux); text-decoration: underline; cursor: pointer; }
.sac__total b { font-family: Newsreader, serif; font-size: 1.2rem; }
#retrait { display: grid; gap: .7rem; }
#retrait label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
#retrait select, #retrait input { width: 100%; min-width: 0; padding: .6rem; border: 1px solid var(--trait); border-radius: 8px; }
#retrait button { padding: .8rem; border: 0; border-radius: 8px; background: var(--canard); color: #fff; font-weight: 600; cursor: pointer; }
.sac__retour { min-height: 1.2em; font-size: .92rem; }
.pied { padding: 1.5rem; text-align: center; color: var(--doux); font-size: .88rem; border-top: 3px double var(--encre); }
