@font-face { font-family: "Antic Didone"; src: url(/assets/fonts/antic-didone.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Waterfall"; src: url(/assets/fonts/waterfall.woff2) format("woff2"); font-display: swap; }
[hidden] { display: none !important; }
:root {
  --forest: #2d3322;
  --forest-2: #3a4230;
  --cream: #f6efe2;
  --sand: #dccbb8;
  --paper: #e4d6c3;
  --blue: #9fb4c7;
  --rust: #a2473d;
  --ink: #2d3322;
  --on-forest: #f3ecdf;
  --muted-on-forest: #c8c6b4;
  --font-b: "Antic Didone", Georgia, serif;
  --font-s: "Waterfall", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--forest); color: var(--on-forest); font-family: var(--font-b); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; }
button, input, select, textarea { font: inherit; }
main { min-height: 50vh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 40px; padding-bottom: 72px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.script { font-family: var(--font-s); font-weight: 400; }
.big { font-size: clamp(52px, 8vw, 76px); margin: 0; }
.page-title { font-size: 34px; text-align: center; margin: 0 0 28px; letter-spacing: .02em; }
.empty { text-align: center; padding: 48px 0; }
.empty p { margin-bottom: 20px; }
.warn { color: #f3b5a4; display: block; }
.ok { color: #cfe3b5; }

.demo-bar { background: var(--rust); color: #fff; text-align: center; font-size: 14px; padding: 5px 12px; }

/* En-tête */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 60px; }
.topbar-side { display: flex; gap: 20px; align-items: center; }
.topbar-side.right { justify-content: flex-end; }
.topbar a { display: inline-flex; }
.logo img { height: 124px; width: auto; }
.cart-link { position: relative; }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--rust); color: #fff; border-radius: 10px; font: 11px/16px system-ui, sans-serif; min-width: 16px; padding: 0 4px; text-align: center; }
.mainnav { background: var(--cream); color: var(--ink); position: relative; z-index: 20; }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; margin: 0; padding: 0 12px; }
.mainnav li { position: relative; }
.mainnav a { display: block; padding: 12px 0; text-decoration: none; text-transform: uppercase; font-size: 14.5px; letter-spacing: .04em; }
.mainnav a:hover, .mainnav a.active { color: var(--rust); }
.subnav { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--cream); padding: 16px 28px; gap: 40px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { display: flex; }
.subnav strong { font-weight: 400; display: block; color: var(--rust); margin-bottom: 4px; white-space: nowrap; }
.subnav a { padding: 3px 0; text-transform: none; white-space: nowrap; }

/* Accueil */
.hero { height: clamp(180px, 22.2vw, 520px); background: url(/brand/hero.webp) center/cover; }
.banner { background: var(--blue); text-align: center; padding: 10px 16px 12px; color: #fff; }
.banner h1 { font-family: var(--font-s); font-size: clamp(36px, 5.2vw, 62px); margin: 0; line-height: 1.1; color: #fff; text-shadow: 0 1px 2px rgba(45,51,34,.25); }
.banner p { margin: 0; color: var(--forest); }
.featured { padding-top: 24px; padding-bottom: 32px; }
.story { background: url(/brand/pattern.webp) center/1400px auto; padding: clamp(40px, 8vw, 110px) 24px; }
.story-inner { max-width: 960px; margin: auto; display: grid; grid-template-columns: 1.05fr 1.2fr; align-items: center; }
.story-card { background: var(--sand); color: var(--ink); padding: 40px 36px; margin-right: -40px; z-index: 1; position: relative; line-height: 1.85; }
.story-card h2 { font-size: 56px; text-align: center; margin: 0 0 12px; }
.story-photo { width: 100%; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; justify-content: center; }

/* Grilles produits */
.grid { display: grid; gap: 36px 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { display: flex; flex-direction: column; }
.card-img { position: relative; display: block; }
.card-img img { width: 100%; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--rust); color: #fff; padding: 2px 10px; font-size: 13px; }
.card h3 { font-size: 17.5px; margin: 16px 0 6px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-price { margin: 0 0 6px; }
.card-cats { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; color: var(--muted-on-forest); line-height: 1.5; }
.card-action { margin-top: auto; }
.btn { display: inline-block; background: var(--cream); color: var(--ink); border: 0; padding: 7px 18px; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: background .15s; text-align: center; }
.btn:hover { background: #fff; }
.btn:disabled, .btn-disabled { opacity: .55; cursor: not-allowed; background: var(--cream); }
.btn-lg { padding: 11px 26px; font-size: 17px; }
.btn-full { width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Boutique */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips.center { justify-content: center; margin-bottom: 32px; }
.chips a { border: 1px solid var(--muted-on-forest); padding: 3px 14px; text-decoration: none; font-size: 15px; }
.chips a.on, .chips a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chip-sep { width: 1px; background: var(--muted-on-forest); margin: 2px 6px; }
.shop-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 14px; color: var(--muted-on-forest); }
.shop-bar p { margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.shop-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-controls input, .shop-controls select { background: transparent; border: 1px solid var(--cream); color: var(--on-forest); padding: 6px 12px; }
.shop-controls select option { color: #222; }

/* Fiche produit */
.crumbs { font-size: 14px; color: var(--muted-on-forest); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery-main { width: 100%; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 76px; }
.thumbs button.on { border-color: var(--cream); }
.product-info h1 { font-size: 34px; margin: 0 0 10px; }
.price-lg { font-size: 26px; margin: 0 0 8px; }
.price-lg del { font-size: 18px; margin-left: 10px; opacity: .6; }
.stock-note { margin: 0 0 14px; font-size: 15px; color: var(--muted-on-forest); }
.buy-row { display: flex; gap: 10px; }
.qty input { width: 76px; height: 100%; text-align: center; background: transparent; color: inherit; border: 1px solid var(--cream); padding: 8px; }
.added-note { margin: 10px 0 0; color: #cfe3b5; }
.prose { margin: 24px 0; }
.prose h2 { font-size: 23px; margin: 30px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; border-top: 1px solid var(--forest-2); padding-top: 16px; font-size: 15.5px; }
.specs dt { color: var(--muted-on-forest); }
.specs dd { margin: 0; }
.reassure { font-size: 15px; color: var(--muted-on-forest); margin: 4px 0; }
.maker { font-size: 13.5px; }
.cart-info, .form-note { font-size: 14px; color: var(--muted-on-forest); }
.cart-info { text-align: right; margin-top: 16px; }
.related { margin-top: 72px; }
.related h2 { font-size: 26px; margin-bottom: 24px; }
.img-placeholder { display: block; aspect-ratio: 3/4; background: var(--forest-2); width: 100%; }
.img-placeholder.tall { aspect-ratio: 5/7; }

/* Formulaires */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 15px; margin-bottom: 4px; }
.field input, .field select, .field textarea, .promo input { width: 100%; padding: 9px 12px; background: var(--cream); color: var(--ink); border: 1px solid transparent; font-family: system-ui, sans-serif; font-size: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }

/* Panier et commande */
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-list li { display: grid; grid-template-columns: 72px 1fr 68px 84px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--forest-2); }
.cart-name { display: flex; flex-direction: column; align-items: flex-start; }
.cart-name a { text-decoration: none; }
.cart-list input { width: 64px; padding: 6px; text-align: center; background: transparent; color: inherit; border: 1px solid var(--cream); }
.cart-list strong { font-weight: 400; text-align: right; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted-on-forest); text-decoration: underline; cursor: pointer; font-size: 14px; }
.cart-total { margin-top: 24px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-total p { margin: 0; font-size: 22px; }
.cart-total strong { font-weight: 400; margin-left: 14px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.checkout h2 { font-size: 23px; margin: 22px 0 12px; }
.checkout h2:first-child { margin-top: 0; }
.ship { border: 0; padding: 0; margin: 18px 0; }
.ship legend { font-size: 15px; margin-bottom: 6px; padding: 0; }
.ship label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--muted-on-forest); padding: 10px 14px; margin-bottom: 8px; cursor: pointer; }
.ship small { display: block; color: var(--muted-on-forest); }
.ship b, .ship strong { font-weight: 400; }
.checkout-summary { background: var(--sand); color: var(--ink); padding: 26px; position: sticky; top: 16px; }
.checkout-summary .warn { color: #8f2c20; }
.checkout-summary .ok { color: #3f5a24; }
.checkout-summary ul { list-style: none; padding: 0; margin: 0 0 16px; }
.checkout-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.promo { display: flex; gap: 8px; }
.promo .btn { background: var(--forest); color: var(--on-forest); }
.promo input { background: #fff; }
.checkout-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin: 16px 0; }
.checkout-summary dd { margin: 0; text-align: right; }
.grand { font-size: 21px; }
.terms { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; }
.terms input { margin-top: 5px; }
.checkout-summary .btn { background: var(--forest); color: var(--on-forest); }
.checkout-summary .btn:disabled { opacity: .5; }
.secure { font-size: 13.5px; text-align: center; margin: 10px 0 0; }
.actions-center { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.status-pill { text-align: center; }
.order-lines { list-style: none; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--forest-2); }

/* À propos, portfolio, contact */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.portfolio-grid { columns: 3 300px; column-gap: 18px; }
.pf-card { display: block; break-inside: avoid; margin-bottom: 22px; text-decoration: none; }
.pf-card img { width: 100%; }
.pf-card span { display: block; padding-top: 8px; font-size: 16px; }
.pf-images { display: grid; gap: 16px; margin-top: 24px; }
.contact-form { max-width: 560px; margin: 28px auto 0; }

/* Facture */
.invoice { background: #fff; color: #222; margin-top: 32px; margin-bottom: 32px; padding: 32px; }
.invoice table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.invoice th, .invoice td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; }
.invoice .btn { background: var(--forest); color: #fff; float: right; }
@media print {
  header, footer, .no-print, .demo-bar { display: none !important; }
  body { background: #fff; }
  .invoice { margin: 0; padding: 0; }
}

/* Pied de page */
footer { margin-top: 0; }
.footer-main { text-align: center; padding: 40px 16px 32px; box-shadow: 0 -6px 12px -8px rgba(0,0,0,.4); }
.footer-main p { margin: 0 0 6px; }
.footer-main a { text-decoration: none; }
.footer-socials { display: flex; justify-content: center; gap: 16px; margin: 20px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; font-size: 14.5px; color: var(--muted-on-forest); }
.footer-bottom { background: #191c13; text-align: center; font-size: 14px; padding: 12px; color: var(--muted-on-forest); }

@media (max-width: 1000px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .topbar { padding: 8px 16px; }
  .logo img { height: 84px; }
  .product, .checkout, .about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .checkout-summary { position: static; }
  .story-inner { grid-template-columns: minmax(0, 1fr); }
  .story-card { margin: 0 0 -20px; padding: 28px 22px; }
  .mainnav ul { gap: 0 18px; }
  .mainnav a { padding: 9px 0; font-size: 13.5px; }
  .has-sub:hover .subnav, .has-sub:focus-within .subnav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .btn { padding: 7px 10px; font-size: 14.5px; }
  .btn-lg { padding: 11px 16px; font-size: 16px; }
  .cart-list li { grid-template-columns: 56px 1fr 60px; }
  .cart-list li > strong { grid-column: 2 / 4; }
  .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
