/* Chevalnaturel : vert forêt, vert feuille, beige sable et brun cuir, repris du logo */
:root {
  --bg: #f7f3ea; --surface: #fff; --sand: #efe7d6; --sand-dark: #cbbf9f;
  --text: #2f2a22; --muted: #7a7264; --line: #e3dac6;
  --green: #4d6142; --green-dark: #3b4b32; --leaf: #8ca23a; --brown: #4b2a12;
  --accent: var(--green); --accent-dark: var(--green-dark); --warn: #a33a2a;
  --radius: 14px; --shadow: 0 6px 24px rgba(59, 75, 50, .10);
  --serif: "Lora", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--green); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--green-dark); line-height: 1.25; }
h1 { font-size: 2rem; margin: .4rem 0 .8rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 8px; padding-bottom: 40px; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.center { text-align: center; margin-top: 28px; }

/* ---------- Bandeau du haut ---------- */
.topbar { background: var(--green-dark); color: #e9eedd; font-size: .85rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; white-space: nowrap; }
.topbar-mid { text-align: center; color: #d6e3a8; }

/* ---------- En-tête ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 64px; height: 64px; border-radius: 50%; }
.logo strong { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--green-dark); line-height: 1.1; }
.logo small { display: block; color: var(--muted); font-size: .8rem; }
.search { flex: 1; display: flex; max-width: 460px; margin-left: auto; }
.search input { flex: 1; min-width: 0; padding: 10px 16px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; font: inherit; background: var(--bg); }
.search button { border: 0; background: var(--brown); color: #fff; padding: 0 16px; border-radius: 0 999px 999px 0; cursor: pointer; }
.cart-link { display: flex; align-items: center; gap: 8px; background: var(--brown); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.cart-link:hover { background: #3a200d; }
.badge { background: var(--leaf); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .8rem; min-width: 22px; text-align: center; }
.cat-nav { background: var(--sand); border-top: 1px solid var(--line); }
.cat-nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav a { text-decoration: none; color: var(--brown); white-space: nowrap; font-weight: 700; font-size: .88rem; letter-spacing: .02em; text-transform: uppercase; padding: 12px 14px; border-bottom: 3px solid transparent; }
.cat-nav a:hover, .cat-nav a.on { color: var(--green); border-bottom-color: var(--leaf); }

/* ---------- Boutons ---------- */
.btn { display: inline-block; background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: 10px; padding: 11px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.ghost, .btn.secondary { background: transparent; color: var(--green); }
.btn.ghost:hover, .btn.secondary:hover { background: var(--green); color: #fff; }
.btn.light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn.light:hover { background: var(--sand); }
.btn.danger { background: var(--warn); border-color: var(--warn); }
button.link { background: none; border: 0; color: var(--warn); cursor: pointer; font-size: 1.1rem; }

/* ---------- Accueil ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--leaf); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 6px; }
.eyebrow.light { color: #d6e3a8; }
.hero { background: linear-gradient(135deg, #fbf8f1 0%, var(--sand) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: .3rem 0 1rem; }
.lead { font-size: 1.15rem; color: #5a5245; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-visual { position: relative; justify-self: center; max-width: 380px; width: 100%; }
.frame { background: #fff; padding: 12px; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(1.5deg); }
.frame img { border-radius: 14px; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.hero-badge { position: absolute; left: -36px; bottom: -24px; background: #fff; border-radius: 50%; padding: 6px; box-shadow: var(--shadow); }
.hero-badge img { width: 96px; height: 96px; border-radius: 50%; }

.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }

.universes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.universe { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); text-decoration: none; border: 6px solid #fff; }
.universe img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.universe:hover img { transform: scale(1.05); }
.universe-text { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(35, 45, 28, .88)); color: #fff; }
.universe-text h3 { color: #fff; font-size: 1.6rem; margin: 0; }
.universe-text p { margin: 2px 0 8px; opacity: .9; }
.universe-text span { color: #d6e3a8; font-weight: 700; font-size: .9rem; }

.banner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M5 21c0-9 6-15 16-16-1 10-7 16-16 16Z'/%3E%3Cpath d='M5 21 14 12'/%3E%3C/svg%3E"); color: #eef2e4; border-radius: 20px; padding: 44px 48px; box-shadow: var(--shadow); }
.banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; }
.banner p { max-width: 38em; }
.banner-logo img { width: 160px; height: 160px; border-radius: 50%; border: 6px solid rgba(255,255,255,.25); }

.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.visit h2 { font-size: 2rem; margin: 0 0 10px; }
.visit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.visit-card p { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.visit-card .ico { color: var(--leaf); }

/* ---------- Grille produits ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; padding: 14px; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--warn); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: inherit; font-size: .98rem; font-weight: 700; color: var(--text); margin: 0 0 10px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-btn { font-size: .85rem; font-weight: 700; color: var(--green); border: 1.5px solid var(--green); border-radius: 8px; padding: 3px 12px; }
.card:hover .card-btn { background: var(--green); color: #fff; }
.price { font-weight: 800; color: var(--brown); font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; font-size: .9rem; }
.price.big { font-size: 1.8rem; margin: .4rem 0 0; }
.stock.out { color: var(--warn); font-size: .85rem; margin-top: 6px; }
.empty { color: var(--muted); padding: 30px 0; }
.count { color: var(--muted); margin: 0 0 12px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 32px 0 0; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--surface); }
.pager a.on { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Liste / catégorie ---------- */
.listing { padding-top: 20px; padding-bottom: 48px; }
.crumbs { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 26px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.cat-desc { color: #5a5245; margin-top: 6px; }
.cat-desc * { font-family: inherit !important; font-size: 1rem !important; color: inherit !important; background: none !important; margin: .3em 0 !important; line-height: 1.5 !important; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.subcats a { border: 1px solid var(--line); background: var(--surface); padding: 5px 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.subcats a:hover { border-color: var(--green); }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 12px 0 28px; }
.gallery > img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px 24px; align-self: start; }
.ref, .tax { color: var(--muted); font-size: .9rem; margin: 0; }
.add-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; max-width: 380px; }
.add-form label, .form label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; font-weight: 700; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--leaf); outline-offset: 0; border-color: var(--leaf); }
.description { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px 18px; }

/* ---------- Messages ---------- */
.flash { padding: 11px 16px; border-radius: 10px; margin: 14px 0; }
.flash-ok { background: #e6efdc; color: #2e4a1d; border: 1px solid #cddcb9; }
.flash-err { background: #f6e0dc; color: #7a2418; border: 1px solid #ecc4bc; }

/* ---------- Panier / commande ---------- */
table.cart, table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.cart th, table.cart td, table.list th, table.list td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.cart th, table.list th { background: var(--sand); color: var(--brown); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.thumb img { width: 56px; height: 56px; object-fit: contain; }
.qty { width: 70px; }
.cart-foot { display: flex; justify-content: space-between; align-items: flex-start; margin: 16px 0 0; gap: 16px; flex-wrap: wrap; }
.totals { display: flex; flex-direction: column; gap: 6px; min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 6px; }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.checkout > .form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; }
label.radio { flex-direction: row !important; align-items: center; font-weight: 400 !important; gap: 8px !important; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 16px; align-self: start; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sum-line.grand { font-weight: 700; border: 0; }
.thanks { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px; margin-top: 20px; }

/* ---------- Réassurance + pied de page ---------- */
.reassure { background: var(--sand); border-top: 1px solid var(--line); }
.reassure-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.reassure-row > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.reassure-row .ico { grid-row: span 2; width: 38px; height: 38px; color: var(--green); background: #fff; border-radius: 50%; padding: 8px; }
.reassure-row strong { color: var(--brown); }
.reassure-row span { color: var(--muted); font-size: .88rem; }
.site-footer { background: var(--green-dark); color: #d7dccb; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--leaf); display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #eef2e4; text-decoration: none; }
.site-footer a:hover { color: #d6e3a8; text-decoration: underline; }
.f-about img { width: 84px; height: 84px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); margin-bottom: 10px; }
.contact li { display: flex; gap: 10px; align-items: flex-start; }
.contact .ico { color: var(--leaf); margin-top: 3px; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--leaf); text-decoration: none; }
.footer-bottom { background: #2f3c28; color: #aab49c; font-size: .85rem; text-align: center; padding: 14px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .topbar-mid { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-visual { max-width: 300px; }
  .universes { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .reassure-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { grid-template-columns: 1fr; padding: 32px 26px; }
  .banner-logo { display: none; }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar-row > span:first-child { display: none; }
  .topbar-row { justify-content: center; }
  .header-row { flex-wrap: wrap; gap: 12px; }
  .logo img { width: 48px; height: 48px; }
  .logo strong { font-size: 1.2rem; }
  .logo small { display: none; }
  .cart-link { margin-left: auto; padding: 8px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .universes { grid-template-columns: 1fr; }
  .universe { aspect-ratio: 16/10; }
  .hero-badge { left: -6px; bottom: -14px; }
  .hero-badge img { width: 64px; height: 64px; }
  .frame img { aspect-ratio: 4/3; object-position: center 30%; }
  .hero-visual { max-width: 340px; }
  .hero-cta .btn { flex: 1; text-align: center; padding: 11px 12px; font-size: .95rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-img { padding: 8px; }
  .card-btn { display: none; }
  .section { padding: 40px 0; }
  .product, .checkout { grid-template-columns: 1fr; }
  .reassure-row, .footer-grid { grid-template-columns: 1fr; }
  table.cart thead { display: none; }
  table.cart td { padding: 6px; }
  h1 { font-size: 1.6rem; }
}
