:root {
  --ink: #1A2332;
  --saffron: #D4A017;
  --verdigris: #3D7A6A;
  --chalk: #F7F5F0;
  --border: #E4E0D6;
  --muted: #6B6558;
  --soft: #8C8779;
  --paper: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--paper); z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.35rem; }
.main-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.main-nav a:hover { color: var(--verdigris); }
.header-actions { display: flex; gap: 0.75rem; }
.btn-ghost { border: 1px solid var(--border); padding: 0.5rem 0.9rem; font-size: 0.85rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn-ghost:hover { border-color: var(--saffron); }

/* Content basics */
#contenu-principal { min-height: 50vh; }
.container-page { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.container-page.narrow { max-width: 760px; }
h1.page-title { font-size: 2.2rem; margin: 0 0 1.5rem; }
.prose p { margin: 0 0 1rem; color: var(--ink); }
.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--verdigris); }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); margin: 0 0 0.5rem; }

/* Hero */
.hero { background: var(--chalk); border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: 2.6rem; margin: 0.5rem 0 1rem; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.hero img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--border); }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* Category tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; padding: 3rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.tile { border: 1px solid var(--border); padding: 1.5rem; text-decoration: none; color: var(--ink); background: var(--paper); transition: box-shadow 0.2s; }
.tile:hover { box-shadow: 6px 6px 0 0 rgba(212,160,23,0.2); }
.tile .num { font-size: 0.75rem; color: var(--soft); }
.tile .name { font-size: 1.15rem; margin: 0.5rem 0; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.75rem 1.25rem; padding: 0 1.5rem 3rem; max-width: 1200px; margin: 0 auto; }
.product-card { display: flex; flex-direction: column; }
.product-card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.product-card .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--border); background: var(--chalk); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .brand { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin-top: 0.75rem; display: block; }
.product-card .pname { font-size: 1.02rem; margin: 0.2rem 0; color: var(--ink); }
.product-card .price { font-weight: 600; font-size: 0.92rem; }
.product-card .stock { font-size: 0.75rem; color: var(--muted); margin: 0.15rem 0 0; }
.product-card-link:hover .pname { color: var(--verdigris); }
.btn-add-mini { margin-top: 0.65rem; background: #fff; border: 1px solid var(--ink); color: var(--ink); padding: 0.5rem 0.75rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; letter-spacing: 0.02em; }
.btn-add-mini:hover { background: var(--ink); color: #fff; }
.btn-add-mini:disabled { opacity: 0.6; cursor: default; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.product-detail .gallery img { width: 100%; border: 1px solid var(--border); margin-bottom: 0.75rem; aspect-ratio: 1/1; object-fit: cover; }
.product-detail .info .brand { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.product-detail .info h1 { margin: 0.3rem 0 0.75rem; font-size: 1.9rem; }
.product-detail .price { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-detail .stock { color: var(--verdigris); font-size: 0.85rem; margin-bottom: 1.5rem; }
.btn-add { display: inline-block; background: var(--saffron); color: var(--ink); border: none; padding: 0.85rem 1.5rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.btn-add:disabled { opacity: 0.7; cursor: default; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.notice-box { margin-top: 1.5rem; padding: 1rem; background: var(--chalk); border-left: 3px solid var(--saffron); font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.cart-link { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; }
.cart-badge { display: none; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: var(--saffron); color: var(--ink); font-size: 0.68rem; font-weight: 700; line-height: 1; }

.cart-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cart-table th, .cart-table td { text-align: left; padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--border); }
.cart-item-name { display: flex; align-items: center; gap: 0.75rem; }
.cart-qty { display: inline-flex; align-items: center; gap: 0.4rem; }
.cart-qty button { width: 1.7rem; height: 1.7rem; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 0.9rem; line-height: 1; }
.cart-qty input { width: 2.4rem; text-align: center; border: 1px solid var(--border); padding: 0.25rem; }
.cart-remove { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.82rem; padding: 0; }
.cart-summary { display: flex; justify-content: flex-end; gap: 2rem; align-items: baseline; margin: 1rem 0 1.5rem; font-size: 1.05rem; }
.cart-summary strong { font-size: 1.3rem; }
.cart-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }
.cart-summary-list { list-style: none; margin: 0 0 1.25rem; padding: 0; border: 1px solid var(--border); }
.cart-summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.cart-summary-list li:last-child { border-bottom: none; }
.cart-summary-total { display: flex; justify-content: space-between; padding: 0.75rem 0.9rem; background: var(--chalk); font-weight: 700; }

/* Footer */
.site-footer { background: var(--chalk); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding: 3.5rem 1.5rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h2 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 0.75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }

.footer-legal { background: var(--ink); color: rgba(247,245,240,0.85); padding: 3rem 1.5rem; }
.footer-legal .eyebrow { color: var(--saffron); }
.footer-legal .legal-name { font-size: 1.4rem; font-weight: 600; margin: 0.5rem 0; }
.footer-legal p { margin: 0.4rem 0; font-size: 0.88rem; }
.footer-legal a { color: var(--saffron); }
.footer-legal .fine-print { margin-top: 1.5rem; font-size: 0.75rem; color: rgba(247,245,240,0.5); }

/* Forms */
form.simple-form { max-width: 520px; }
form.simple-form label { display: block; font-size: 0.85rem; margin: 1rem 0 0.35rem; }
form.simple-form input, form.simple-form textarea, form.simple-form select {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border); font-size: 0.95rem; font-family: inherit;
}
form.simple-form button { margin-top: 1.5rem; background: var(--ink); color: #fff; border: none; padding: 0.8rem 1.6rem; font-weight: 600; cursor: pointer; }
form.simple-form button:disabled { opacity: 0.6; cursor: default; }
form.simple-form .field-error { display: block; min-height: 1.1em; color: #c0392b; font-size: 0.78rem; margin-top: 0.3rem; }

.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 0; font-size: 0.8rem; color: var(--soft); }
.breadcrumb a { color: var(--soft); }

/* Offer card (used on campaign landing pages, e.g. /bienvenue-en-france/) */
.offer-card { display: flex; align-items: center; gap: 1.75rem; margin: 2.5rem 0; padding: 1.75rem; background: var(--chalk); border: 1px solid var(--border); border-left: 4px solid var(--saffron); }
.offer-card-percent { flex-shrink: 0; width: 100px; height: 100px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.offer-card-percent-value { text-align: center; font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.offer-card-percent-value small { display: block; font-size: 0.6rem; font-weight: 700; line-height: 1.2; margin-top: 0.2rem; }
.offer-card-body p { margin: 0 0 0.5rem; }
.offer-card-body .offer-code { display: inline-block; background: var(--ink); color: #fff; padding: 0.15rem 0.55rem; font-weight: 700; letter-spacing: 0.03em; }
.offer-card-body .fine-print { font-size: 0.78rem; color: var(--muted); margin: 0; }
@media (max-width: 560px) { .offer-card { flex-direction: column; text-align: center; } }

/* .btn-add must always render ink-on-saffron, even inside .prose blocks
   where ".prose a" would otherwise win on specificity and turn it teal. */
a.btn-add { color: var(--ink); }
