/* ============================================================
   RADICELLE – Fêtes 2026 · feuille de style
   ============================================================ */
@font-face {
  font-family: "Against";
  src: url("../fonts/against.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --creme: #FFFFFF;
  --creme-2: #F6EFE4;
  --blanc: #FFFFFF;
  --brun: #AE5934;
  --brun-fonce: #7D3D1E;
  --terracotta: #C6663B;
  --encre: #2B211A;
  --gris: #7A6A5E;
  --ligne: #E8DCCF;
  --ok: #3E6B3A;
  --err: #A4321F;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(60, 35, 15, .10);
  --font-body: "Old Standard TT", "Times New Roman", Georgia, serif;
  --font-display: "Abril Fatface", "Georgia", serif;
  --font-ui: "Old Standard TT", Georgia, serif;
  --gutter: 16px;
  --topbar-h: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--creme); color: var(--encre);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brun); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; }
p { margin: 0 0 1em; }
.display { font-family: var(--font-display); font-weight: 400; color: var(--brun); letter-spacing: 0; text-transform: uppercase; line-height: 1.05; }
h1.display { font-size: clamp(2.2rem, 8vw, 4.2rem); line-height: 1.02; }
h2.display { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--brun); margin: 0 0 14px; }
.h3-space { margin-top: 36px; }
.lead { font-size: 1.12rem; font-weight: 400; font-style: italic; color: var(--brun-fonce); }
.small { font-size: .9rem; }
.muted { color: var(--gris); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
button { font: inherit; color: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 400; font-size: .88rem; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .08s, border-color .15s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--brun); }
.btn-ghost { background: transparent; color: var(--brun); border-color: var(--brun); }
.btn-ghost:hover { background: rgba(140, 74, 30, .08); }
.btn-lg { padding: 15px 30px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  background: transparent; border: 0; width: 40px; height: 40px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--encre);
}
.icon-btn:hover { background: var(--creme-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brun); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* ---------- Barre haute ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); background: rgba(246, 241, 234, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.brand img { height: 18px; width: auto; }
.cart-btn .cart-label { display: none; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--gris); }
.lang button { background: none; border: 0; padding: 6px 4px; cursor: pointer; font-weight: 700; color: var(--gris); }
.lang button.is-active { color: var(--brun); text-decoration: underline; text-underline-offset: 4px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blanc);
  border: 1.5px solid var(--terracotta); color: var(--brun); border-radius: 999px;
  padding: 8px 14px; font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; min-height: 40px;
}
.cart-btn:hover { background: var(--creme-2); }
.cart-count {
  background: var(--terracotta); color: #fff; border-radius: 999px; min-width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; padding: 0 6px;
}

/* ---------- Héros ---------- */
.hero { position: relative; min-height: 86svh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-content { position: relative; z-index: 1; padding: 72px var(--gutter) 56px; color: var(--brun); max-width: 820px; text-align: center; margin: 0 auto; }
.hero-content .kicker { color: var(--brun); }
.hero-content h1 { color: var(--brun); margin-bottom: 14px; }
.hero-sub { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.1rem, 3.6vw, 1.7rem); margin-bottom: 14px; color: var(--brun); }
.hero-text { max-width: 560px; margin: 0 auto 22px; font-weight: 700; font-size: 1.05rem; color: var(--brun); }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li {
  font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1.5px solid var(--terracotta); color: var(--brun);
}

/* ---------- Sous-navigation ---------- */
.subnav {
  position: sticky; top: var(--topbar-h); z-index: 30; display: flex; gap: 8px;
  overflow-x: auto; padding: 10px var(--gutter); background: var(--creme);
  border-bottom: 1px solid var(--ligne); scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav { background: var(--creme-2); }
.subnav a {
  flex: 0 0 auto; text-decoration: none; font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--terracotta); color: var(--brun); background: var(--blanc);
}
.subnav a.is-active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* ---------- Sections ---------- */
.section { padding: 48px var(--gutter); max-width: 1120px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--creme-2); }
.topbar { background: rgba(255, 255, 255, .92); }
.section-alt > * { max-width: 1088px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 24px; max-width: 680px; }
.split { display: grid; gap: 22px; align-items: center; margin-bottom: 28px; }
.split-fig { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--creme-2); }
.split-fig img { width: 100%; height: 100%; object-fit: cover; }
.split-text .btn { margin-top: 6px; }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.card-img { margin: -18px -18px 4px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--brun); }
.card-desc { color: var(--gris); font-size: .93rem; margin: 0; }
.card-meta { font-size: .85rem; color: var(--gris); margin: 0; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--brun-fonce); white-space: nowrap; }
.price small { font-weight: 500; color: var(--gris); font-size: .8rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.card-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.persons { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.card { transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #D9C6B3; box-shadow: 0 6px 24px rgba(43, 33, 26, .06); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant {
  border: 1.5px solid var(--ligne); background: var(--creme); border-radius: 999px; padding: 7px 12px;
  font-size: .86rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.variant.is-active { border-color: var(--terracotta); background: var(--terracotta); color: #fff; }
.variant[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--creme-2); color: var(--brun-fonce); }
.badge-warn { background: #F3DED2; color: var(--err); }

/* stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ligne); border-radius: 999px; background: var(--blanc); }
.qty-btn { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--brun); border-radius: 50%; }
.qty-btn:hover { background: var(--creme-2); }
.qty input { width: 44px; padding: 0; text-align: center; border: 0; border-radius: 0; background: none; font-weight: 600; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.qty-sm .qty-btn { width: 32px; height: 32px; font-size: 17px; }
.qty.qty-sm input { width: 38px; font-size: .95rem; }

/* ---------- Formulaires ---------- */
.form-card { margin-top: 6px; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.field > span { color: var(--brun-fonce); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--encre);
  padding: 11px 13px; border: 1.5px solid var(--ligne); border-radius: var(--radius-sm); background: var(--blanc);
}
textarea { resize: vertical; min-height: 44px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C4A1E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brun); box-shadow: 0 0 0 3px rgba(140, 74, 30, .14); }
.is-invalid { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: .82rem; font-weight: 500; }
.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brun); flex: 0 0 auto; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: .9rem; font-weight: 600; color: var(--brun-fonce); margin-bottom: 8px; padding: 0; }
.mode { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--ligne); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; background: var(--blanc); }
.mode:has(input:checked) { border-color: var(--brun); background: rgba(140, 74, 30, .06); }
.mode input { accent-color: var(--brun); width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; }
.mode b { display: block; font-weight: 600; }
.mode small { color: var(--gris); font-size: .84rem; }
.form-error { color: var(--err); font-weight: 500; background: #F7E6E0; padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- Infos ---------- */
.grid-infos .info-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--brun); }
.grid-infos .info-card p { margin: 0; font-size: .93rem; color: var(--gris); }
.contact { margin-top: 24px; }
.contact h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--brun); }
.contact p { margin: 0 0 4px; font-size: .95rem; }
.legal-line { font-size: .78rem; color: var(--gris); margin-top: 22px; }

/* ---------- Pied ---------- */
.footer { text-align: center; padding: 40px var(--gutter) 110px; border-top: 1px solid var(--ligne); }
.footer img { margin: 0 auto 14px; opacity: .9; }
.footer p { margin: 0 0 6px; font-size: .9rem; }

/* ---------- Barre panier mobile ---------- */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(246, 241, 234, 0), var(--creme) 40%); }
.cart-bar .btn { box-shadow: var(--shadow); }

/* ---------- Tiroir panier ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(43, 33, 26, .45); }
.drawer {
  position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; top: 7svh;
  background: var(--creme); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  display: flex; flex-direction: column; transform: translateY(105%); transition: transform .28s ease;
  visibility: hidden;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter) 10px; border-bottom: 1px solid var(--ligne); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--gris); }
.cart-empty strong { display: block; color: var(--encre); margin-bottom: 6px; font-size: 1.05rem; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.line-title { font-weight: 600; margin: 0; }
.line-sub { font-size: .85rem; color: var(--gris); margin: 0; white-space: pre-line; }
.line-price { font-weight: 600; text-align: right; white-space: nowrap; }
.line-ctl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-ctl .link-btn { font-size: .85rem; }
.totals { margin: 16px 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--ligne); padding-top: 8px; margin-top: 4px; color: var(--brun-fonce); }
.totals .hint { color: var(--gris); font-size: .82rem; }
.pay-note { font-size: .85rem; color: var(--gris); margin: 0 0 14px; }
.drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.checkout-recap { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.checkout-recap ul { margin: 0 0 6px; padding-left: 18px; }
.checkout-recap .grand { font-weight: 700; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form .h3 { margin-bottom: 0; }
.done { text-align: center; padding: 24px 6px; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 14px; }
.done h3 { font-family: var(--font-display); font-weight: 400; color: var(--brun); font-size: 1.6rem; text-transform: uppercase; }
.done pre { text-align: left; white-space: pre-wrap; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius-sm); padding: 12px; font-size: .82rem; font-family: var(--font-body); color: var(--gris); }

/* ---------- Modale ---------- */
.modal { position: fixed; z-index: 52; inset: 4svh var(--gutter); max-width: 760px; margin: 0 auto; background: var(--creme); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--ligne); }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-body { overflow-y: auto; padding: 16px 18px 24px; font-size: .92rem; }
.modal-body h3 { font-size: 1rem; margin-top: 16px; color: var(--brun-fonce); }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--encre); color: var(--creme); padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

/* ---------- Tablette / bureau ---------- */
@media (min-width: 640px) {
  .brand img { height: 22px; }
  .cart-btn .cart-label { display: inline; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .drawer-actions { flex-direction: row; justify-content: flex-end; }
  .drawer-actions .btn { min-width: 180px; }
}
@media (min-width: 820px) {
  :root { --gutter: 32px; }
  .split { grid-template-columns: 5fr 6fr; gap: 40px; }
  .split-rev .split-fig { order: 2; }
  .split-fig { aspect-ratio: 5 / 4; }
  .hero { min-height: 88svh; }
  .hero-content { padding: 96px var(--gutter) 72px; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-atelier { grid-template-columns: repeat(2, 1fr); }
  .grid-infos { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 64px var(--gutter); }
  .cart-bar { display: none; }
  .footer { padding-bottom: 48px; }
  .drawer { top: 0; left: auto; width: 460px; border-radius: 0; transform: translateX(105%); }
  .drawer.is-open { transform: translateX(0); }
  .modal { inset: 6svh auto; left: 50%; transform: translateX(-50%); width: min(760px, 92vw); }
}

/* ---------- Ajouts : détails produits, galerie box, zone de livraison ---------- */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plus {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--brun);
  background: var(--blanc); color: var(--brun); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: transform .2s, background .15s, color .15s;
}
.plus svg { width: 13px; height: 13px; display: block; }
.plus:hover { background: var(--creme-2); }
.plus[aria-expanded="true"] { transform: rotate(45deg); background: var(--brun); color: var(--creme); }
.details { background: var(--creme-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; color: var(--brun-fonce); margin: 0; }
.details-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); margin-bottom: 4px; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -6px 0 28px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }
.words { display: flex; flex-direction: column; gap: 10px; }
.zone { display: grid; gap: 20px; margin-top: 28px; align-items: center; }
.zone-map { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--blanc); border: 1px solid var(--ligne); }
.zone-map img, .zone-map svg { width: 100%; height: auto; display: block; }
.zone-text h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--brun); }
.zone-text p { font-size: .95rem; }
.zone-hint { font-size: .82rem; color: var(--gris); margin: -4px 0 0; }
@media (min-width: 820px) { .zone { grid-template-columns: 6fr 5fr; gap: 36px; } }
