/* Site public ZINA — zina.mg */
:root {
    --green: #1b7d3a;
    --green-dark: #0f4f24;
    --green-soft: #e8f4ec;
    --yellow: #f5b800;
    --red: #d62828;
    --ink: #17241b;
    --muted: #5d6b61;
    --line: #e2e8e3;
    --bg: #fbfaf6;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 79, 36, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: 'Baloo 2', 'Inter', sans-serif; line-height: 1.15; margin: 0 0 .6rem; color: var(--green-dark); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.muted { color: var(--muted); }
.accent { color: var(--red); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--green); margin-bottom: .5rem; }
.lead { font-size: 1.12rem; color: #33443a; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-light { background: #fff; color: var(--green-dark); border-color: var(--line); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--green); }
.brand img { border-radius: 10px; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--green); }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Héros */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem; background: radial-gradient(1200px 500px at 85% 10%, #fff3cc 0, transparent 60%), radial-gradient(900px 500px at 0% 100%, var(--green-soft) 0, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li { display: flex; align-items: center; gap: .45rem; padding: .4rem .9rem .4rem .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; }
.hero-badges svg { width: 28px; height: 28px; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; height: auto; }
.hero-tag { position: absolute; left: -12px; bottom: 24px; background: var(--yellow); color: var(--ink); font-weight: 700; padding: .55rem 1rem; border-radius: 12px; box-shadow: var(--shadow); }

.banner-strip img { width: 100%; height: auto; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head p:last-child { color: var(--muted); }
.section-green { background: linear-gradient(160deg, var(--green-dark), var(--green)); color: #eaf5ee; }
.section-green h2, .section-green h3 { color: #fff; }
.section-head-light .eyebrow { color: var(--yellow); }
.section-head-light p:last-child { color: #cfe8d7; }

.activity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.activity-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: transform .2s, box-shadow .2s; }
.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.activity-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.activity-icon { width: 72px; height: 72px; border-radius: 18px; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 1rem; }
.activity-icon svg { width: 52px; height: 52px; }

.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.chain-step { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.chain-step p { color: #d6ecdd; margin: 0; }
.chain-icon { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-bottom: .9rem; }
.chain-icon svg { width: 46px; height: 46px; }
.chain-num { position: absolute; top: 1rem; right: 1.2rem; font-family: 'Baloo 2', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--yellow); opacity: .9; }
.chain-arrow { display: grid; place-items: center; }
.chain-arrow svg { width: 40px; }
.loop { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; padding: 1.2rem 1.4rem; background: rgba(0, 0, 0, .15); border-radius: var(--radius); }
.loop svg { width: 70px; flex: none; }
.loop p { margin: 0; color: #e6f3ea; }

.section-video { background: #111; color: #ddd; }
.section-video h2 { color: #fff; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.brand-video { width: 100%; border-radius: var(--radius); background: #000; }

/* Boutique */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--green-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { display: grid; place-items: center; height: 100%; }
.product-placeholder svg { width: 80px; }
.stock-badge { position: absolute; top: .7rem; left: .7rem; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #fff; }
.stock-badge.in { color: var(--green); }
.stock-badge.out { color: #8a6d00; }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--muted); font-size: .92rem; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--ink) !important; margin-top: auto; }
.price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.qty-control { display: flex; align-items: center; gap: .4rem; }
.qty-control input { width: 80px; text-align: center; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; }
.qty-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--green-dark); }
.qty-btn:hover { border-color: var(--green); }
.qty-unit { color: var(--muted); font-size: .88rem; }
.empty-shop { padding: 2rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; margin-top: 2rem; align-items: start; }
.checkout-fields, .summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.summary { position: sticky; top: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #cfd8d1; border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus, .qty-control input:focus { outline: 3px solid #bfe3ca; border-color: var(--green); }
.radio { display: flex; align-items: center; gap: .5rem; font-weight: 500 !important; margin-bottom: .3rem; }
.radio input { width: auto; }
.field-error { color: var(--red); font-size: .85rem; margin: .3rem 0 0; }
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 500; }
.alert-error { background: #fdeaea; color: #8b1a1a; border: 1px solid #f4c2c2; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; font-size: .93rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: .6rem; }
.summary-total { font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.summary-note { color: var(--muted); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.floating-cart { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--green); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-weight: 600; }

/* Merci */
.thanks { text-align: center; }
.thanks-icon { width: 80px; margin: 0 auto 1rem; }
.recap { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; }
.recap td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.recap .num { text-align: right; white-space: nowrap; }
.recap .total td { font-weight: 700; background: var(--green-soft); }

/* Pied de page */
.site-footer { background: var(--green-dark); color: #d7ebde; padding: 3.5rem 0 1.5rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-logo { width: 110px; height: auto; border-radius: 16px; background: #fff; padding: .4rem; margin-bottom: .8rem; }
.footer-tagline strong { color: var(--yellow); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list svg { width: 20px; height: 20px; color: var(--yellow); flex: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: #a9cbb5; }

/* Téléphones et tablettes */
@media (max-width: 960px) {
    .hero-grid, .video-grid, .checkout, .footer-grid { grid-template-columns: 1fr; }
    .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chain { grid-template-columns: 1fr; }
    .chain-arrow { transform: rotate(90deg); }
    .summary { position: static; }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; display: none; }
    .main-nav.is-open { display: flex; }
    .main-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .main-nav .btn { margin-top: .8rem; }
    .hero-tag { left: 12px; }
}
@media (max-width: 560px) {
    .activity-grid, .field-row { grid-template-columns: 1fr; }
    .loop { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .activity-card { transition: none; }
}
