/* Racines — démonstration de boutique en ligne (ZataLabs, V7.4). */
:root { --foret: #1e3b2a; --feuille: #3f7d4e; --menthe: #dcefdc; --sable: #f6f1e7; --terre: #c9774a; --encre: #16241b; --doux: #5f6f63; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--sable); color: var(--encre); font: 400 16px/1.55 "Nunito Sans", system-ui, sans-serif; }
body.bloque { overflow: hidden; }
h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; border-radius: 6px; }

.entete { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 4vw, 3rem); }
.logo { font: 800 1.8rem/1 "Bricolage Grotesque", sans-serif; text-decoration: none; color: var(--foret); }
.logo span { color: var(--terre); margin-left: .2rem; }
.panier-bouton { padding: .6rem 1.1rem; border: 2px solid var(--foret); border-radius: 99px; background: none; font-weight: 700; cursor: pointer; }

.guide { margin: 0 clamp(1rem, 4vw, 3rem); padding: clamp(2rem, 5vw, 3.5rem); border-radius: 32px; background: var(--foret); color: #eef6ee; }
.guide h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 18ch; }
.guide h1 em { font-style: normal; color: #9fd8a7; }
.questions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .questions { grid-template-columns: 1fr; } }
.questions fieldset { border: 0; padding: 0; margin: 0; }
.questions legend { font-weight: 700; margin-bottom: .6rem; }
.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix input { position: absolute; opacity: 0; }
.choix span { display: block; padding: .6rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .1); cursor: pointer; font-weight: 600; }
.choix input:checked + span { background: #eef6ee; color: var(--foret); }
.choix input:focus-visible + span { outline: 3px solid var(--terre); }
.animaux { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.animaux input { width: 1.2rem; height: 1.2rem; accent-color: #9fd8a7; }

.resultats { padding: 2.5rem clamp(1rem, 4vw, 3rem) 4rem; }
.resultats__titre { font: 800 1.4rem/1.2 "Bricolage Grotesque", sans-serif; margin: 0 0 1.4rem; }
.plantes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.plante { position: relative; display: grid; border-radius: 26px; background: #fff; overflow: hidden; transition: transform .25s, opacity .25s; }
.plante.is-faible { opacity: .5; }
.plante__visuel { position: relative; display: grid; place-items: end center; height: 220px; background: var(--menthe); }
.plante__visuel svg { height: 92%; }
.score { position: absolute; top: .8rem; left: .8rem; padding: .3rem .7rem; border-radius: 99px; background: #fff; font-weight: 800; font-size: .85rem; }
.score.is-top { background: var(--foret); color: #fff; }
.plante__corps { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .6rem; }
.plante__corps h3 { margin: 0; font-size: 1.3rem; }
.plante__corps .latin { margin: -.4rem 0 0; font-style: italic; color: var(--doux); font-size: .9rem; }
.icones { display: flex; gap: .8rem; font-size: .85rem; color: var(--doux); flex-wrap: wrap; }
.pots { display: flex; gap: .4rem; }
.pots button { padding: .35rem .7rem; border: 1.5px solid #cfdccf; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; }
.pots button[aria-pressed="true"] { border-color: var(--foret); background: var(--foret); color: #fff; }
.plante__pied { display: flex; justify-content: space-between; align-items: center; }
.plante__pied b { font: 800 1.3rem/1 "Bricolage Grotesque", sans-serif; }
.plante__pied button { padding: .6rem 1rem; border: 0; border-radius: 12px; background: var(--terre); color: #fff; font-weight: 700; cursor: pointer; }

/* Panier : tiroir venant de la GAUCHE */
.panier { position: fixed; top: 0; bottom: 0; left: 0; z-index: 41; width: min(100vw, 380px); display: flex; flex-direction: column; background: #fff; transform: translateX(-105%); transition: transform .35s cubic-bezier(.2, .9, .3, 1); visibility: hidden; }
.panier.is-ouvert { transform: none; visibility: visible; }
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(22, 36, 27, .45); }
.panier__tete { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; background: var(--menthe); }
.panier__tete h2 { margin: 0; font-size: 1.4rem; }
.panier__tete button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; font-size: 1.4rem; cursor: pointer; }
#lignes { list-style: none; margin: 0; padding: .5rem 1.4rem; flex: 1; overflow-y: auto; }
#lignes li { display: grid; grid-template-columns: 1fr auto; gap: .3rem; padding: .8rem 0; border-bottom: 1px solid #eee; }
#lignes li small { color: var(--doux); }
#lignes li button { grid-column: 2; justify-self: end; border: 0; background: none; color: var(--doux); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.panier__pied { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid #eee; }
.panier__pied p:first-child { display: flex; justify-content: space-between; font-size: 1.2rem; margin: 0 0 .4rem; }
.panier__livraison { margin: 0 0 .8rem; color: var(--feuille); font-size: .9rem; }
#commander { width: 100%; padding: .9rem; border: 0; border-radius: 14px; background: var(--foret); color: #fff; font-weight: 700; cursor: pointer; }
#retour { min-height: 1em; font-size: .9rem; }
.pied { padding: 1.5rem; text-align: center; color: var(--doux); font-size: .88rem; }
