/* =========================================================================
   PrintFrame — feuille de style
   Palette : blanc lait, beige chaud, sable, brun foncé, graphite, terracotta
   ========================================================================= */

:root {
  --milk: #FAF7F2;
  --beige: #F1E9DE;
  --beige-2: #E8DDCE;
  --sand: #D9C6AE;
  --brown: #4A3428;
  --brown-2: #6B4F3E;
  --graphite: #2F2F31;
  --text: #2F2A27;
  --muted: #6F645C;
  --terra: #B85C38;
  --terra-dark: #9C4A2B;
  --line: #E3D8CA;
  --white: #FFFFFF;
  --success: #3F6B4F;
  --error: #A33A2A;

  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(74, 52, 40, .06), 0 2px 8px rgba(74, 52, 40, .05);
  --shadow: 0 10px 30px rgba(74, 52, 40, .10);
  --shadow-lg: 0 24px 60px rgba(47, 42, 39, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--brown); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brown); color: var(--milk); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--milk); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-dark); font-weight: 500; margin-bottom: .6em; }
.noscript { padding: 16px; background: var(--beige); border-radius: var(--radius-sm); }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 500; letter-spacing: .01em; line-height: 1.2; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brown); color: var(--milk); }
.btn--primary:hover { background: var(--terra-dark); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--sand); }
.btn--ghost:hover { border-color: var(--brown); color: var(--brown); background: rgba(255,255,255,.6); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid transparent;
  background: transparent; color: var(--brown); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--beige); }
.icon-btn--small { width: 40px; height: 40px; }
.icon-btn--small .icon { width: 19px; height: 19px; }

/* --- En-tête ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(74,52,40,.05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; }
.logo em { font-style: italic; color: var(--terra); }
.logo__mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.logo__mark path { fill: var(--terra); stroke: none; }
.logo--light { color: var(--milk); }
.logo--light:hover { color: var(--milk); }
.logo--light em { color: var(--sand); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; }
.site-nav a:hover { color: var(--terra-dark); background: var(--beige); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--terra); color: var(--white);
  font-size: .72rem; font-weight: 600; line-height: 20px; text-align: center;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.25); } }
.menu-toggle { display: none; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); background: linear-gradient(180deg, var(--milk) 0%, var(--beige) 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; color: var(--brown-2); }
.hero-points .icon { color: var(--terra); }
.hero-media { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; background: var(--beige-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tinted { background: var(--beige); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head--left { text-align: left; margin-left: 0; }
.section-intro { color: var(--muted); font-size: 1.05rem; }

/* Le contenu n'est masqué que si script.js a démarré l'animation (classe pf-anim sur <html>) :
   sans JavaScript ou en cas d'erreur, tout reste visible. */
.pf-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.pf-anim .reveal.is-visible { opacity: 1; transform: none; }

/* --- Catégories --------------------------------------------------------- */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card__media, .product-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--beige-2); }
.category-card__media img, .product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card:hover img, .product-card:hover img { transform: scale(1.04); }
.category-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.category-card__body p:not(.price-from) { color: var(--muted); font-size: .95rem; }
.category-card__body .btn { margin-top: auto; align-self: flex-start; }
.price-from { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.price-from strong { color: var(--brown); font-size: 1.12rem; font-weight: 600; }

.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--beige), var(--sand)); color: var(--brown); font-family: var(--font-serif); font-size: 1.3rem; }

/* --- Catalogue ---------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--sand);
  background: var(--milk); color: var(--brown); cursor: pointer; font-size: .93rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--brown); }
.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--milk); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: fadeUp .45s var(--ease) both;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__body .eyebrow { margin-bottom: .3em; font-size: .7rem; }
.product-card__body h3 { font-size: 1.3rem; margin-bottom: .35em; }
.product-card__desc { color: var(--muted); font-size: .93rem; }
.product-card__footer { margin-top: auto; }
.product-card__footer .btn { width: 100%; }

/* --- Galerie ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--beige-2); aspect-ratio: 1 / 1; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 8px;
  background: rgba(250, 247, 242, .92); color: var(--brown); font-size: .88rem;
}

/* --- Étapes ------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; background: var(--milk); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); }
.step__num { position: absolute; top: 20px; right: 24px; font-family: var(--font-serif); font-size: 2.6rem; color: var(--sand); line-height: 1; }
.step__icon { width: 52px; height: 52px; fill: none; stroke: var(--terra); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }

/* --- Avantages ---------------------------------------------------------- */
.advantages { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.advantages__media { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--beige-2); }
.advantages__media img { width: 100%; height: 100%; object-fit: cover; }
.advantages__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.advantages__list li { display: flex; gap: 16px; align-items: flex-start; }
.advantages__list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--beige); color: var(--terra); }
.advantages__list h3 { font-size: 1.2rem; margin-bottom: .2em; }
.advantages__list p { color: var(--muted); margin: 0; font-size: .96rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq details { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 500; color: var(--brown); min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* --- Contact ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__list { margin: 28px 0 0; display: grid; gap: 14px; }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font-size: .9rem; }
.contact__list dd { margin: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }

/* --- Formulaires -------------------------------------------------------- */
.form .field { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row--postal { grid-template-columns: 1fr 2fr; }
label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; color: var(--brown); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--sand); border-radius: var(--radius-sm);
  background: var(--white); font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(184, 92, 56, .2); }
[aria-invalid="true"] { border-color: var(--error) !important; background: #FFF8F6; }
.field-error { color: var(--error); font-size: .85rem; margin: 5px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin-top: 6px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brown); }
.field--check label { font-weight: 400; color: var(--text); margin: 0; }
.field--check .field-error { grid-column: 1 / -1; }
.form-summary-error { color: var(--error); font-weight: 500; margin: 4px 0 12px; }
.form-summary-error:empty { display: none; }
.form-status { margin: 14px 0 0; padding: 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status--info { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--beige); color: var(--brown); }
.form-status--success { color: var(--success); }
.form-status--error { color: var(--error); }

/* --- Pied de page ------------------------------------------------------- */
.site-footer { background: var(--graphite); color: #D9D2C9; padding: 64px 0 24px; }
.site-footer a { color: #E9E2D8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; color: #B9B0A6; max-width: 30em; font-size: .95rem; }
.footer-title { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 4px 0; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #45423F; font-size: .84rem; color: #9E968D; }
.footer-bottom p { margin: 0; }

/* --- Fenêtres (dialog) -------------------------------------------------- */
dialog { padding: 0; border: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(47, 42, 39, .5); backdrop-filter: blur(2px); }
.modal { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; }
.modal[open] { animation: modalIn .3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__inner { position: relative; background: var(--milk); border-radius: 20px; box-shadow: var(--shadow-lg); max-height: calc(100dvh - 32px); overflow: auto; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(250,247,242,.92); }

/* Configurateur */
.configurator .modal__inner {
  display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: 1fr auto;
  grid-template-areas: "media body" "media footer"; overflow: hidden; height: min(760px, calc(100dvh - 32px));
}
.configurator__media { grid-area: media; background: var(--beige-2); min-height: 0; }
.configurator__media img, .configurator__media .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.configurator__body { grid-area: body; overflow-y: auto; padding: 32px 32px 12px; min-height: 0; overscroll-behavior: contain; }
.configurator__body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .25em; padding-right: 40px; }
.configurator__footer { grid-area: footer; display: flex; align-items: center; gap: 20px; padding: 16px 32px 20px; border-top: 1px solid var(--line); background: var(--white); }
.config-price { flex: 1; min-width: 0; }
.config-price p { margin: 0; }
.config-price__summary { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-price__row, .config-price__total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.config-price__row { font-size: .9rem; color: var(--muted); }
.config-price__total strong { font-family: var(--font-serif); font-size: 1.9rem; color: var(--brown); line-height: 1.1; }
.option-group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.option-group legend { font-weight: 500; color: var(--brown); padding: 0; margin-bottom: 10px; font-size: .95rem; }
.option-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.option-choice { position: relative; }
.option-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-choice label {
  display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 56px; margin: 0; padding: 10px 14px;
  border: 1px solid var(--sand); border-radius: var(--radius-sm); background: var(--white); cursor: pointer;
  font-weight: 400; color: var(--text); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.option-choice label:hover { border-color: var(--brown-2); }
.option-choice input:checked + label { border-color: var(--brown); background: #FFFBF6; box-shadow: inset 0 0 0 1px var(--brown); }
.option-choice input:focus-visible + label { outline: 3px solid var(--terra); outline-offset: 2px; }
.option-choice__label { font-weight: 500; }
.option-choice__hint { font-size: .78rem; color: var(--muted); }
.option-choice__price { font-size: .82rem; color: var(--terra-dark); margin-top: auto; }

/* Quantité */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sand); border-radius: 999px; background: var(--white); }
.qty__btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--brown); }
.qty__btn:hover:not(:disabled) { background: var(--beige); }
.qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.qty__btn .icon { width: 18px; height: 18px; }
.qty__input[type="number"] { width: 48px; min-height: 40px; padding: 0; border: 0; text-align: center; background: transparent; font-weight: 500; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { box-shadow: none; outline: 2px solid var(--terra); outline-offset: -2px; border-radius: 6px; }
.qty--lg .qty__btn { width: 46px; height: 46px; }
.qty--lg .qty__input[type="number"] { width: 56px; min-height: 46px; font-size: 1.05rem; }

/* Panier (panneau latéral) */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100%); }
.drawer[open] { animation: drawerIn .32s var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer__inner { height: 100%; display: flex; flex-direction: column; background: var(--milk); box-shadow: var(--shadow-lg); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.7rem; margin: 0; }
.drawer__head h2 .muted { font-family: var(--font-sans); font-size: 1rem; font-weight: 400; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 10px; }
.drawer__foot p { margin: 0; }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__media { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; background: var(--beige-2); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cart-line__top h3 { font-size: 1.15rem; margin: 4px 0 4px; }
.cart-line__top .icon-btn { margin: -6px -8px 0 0; color: var(--muted); }
.cart-line__top .icon-btn:hover { color: var(--error); }
.cart-line__details { list-style: none; padding: 0; margin: 0 0 4px; font-size: .84rem; color: var(--muted); }
.cart-line__details span { color: var(--text); }
.cart-line__unit { font-size: .84rem; margin: 0 0 8px; }
.cart-line__bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-line__total { font-size: 1.05rem; color: var(--brown); }
.cart-empty { text-align: center; padding: 64px 12px; }
.cart-empty p { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brown); }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; color: var(--muted, #6b6259); font-size: .95rem; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin: 0; }
.cart-total strong { font-family: var(--font-serif); font-size: 1.8rem; color: var(--brown); }

/* Commande */
.checkout__inner { padding: 64px clamp(18px, 4vw, 40px) clamp(22px, 4vw, 40px); }
.checkout__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.checkout__grid h2 { padding-right: 40px; }
.checkout__summary { position: sticky; top: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.checkout__summary h3 { margin-bottom: 12px; }
.summary-list { list-style: none; padding: 0; margin: 0 0 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-line p { margin: 0; }
.summary-line__name { font-weight: 500; }
.summary-line__details { font-size: .82rem; }
.summary-line strong { white-space: nowrap; color: var(--brown); }
.checkout__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }

.confirmation { max-width: 620px; margin: 0 auto; text-align: center; padding: 16px 0; }
.confirmation__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--beige); color: var(--success); margin-bottom: 16px; }
.confirmation__icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.confirmation h2:focus { outline: none; }
.confirmation__number { font-size: 1.05rem; }
.confirmation__items { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.confirmation__items li { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.confirmation__items .muted { overflow: hidden; text-overflow: ellipsis; }
.confirmation .cart-total { text-align: left; }
.notice { text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-size: .93rem; }
.notice--info { background: #F6E7DC; color: #6A3A24; border: 1px solid #E8C9B5; }
.notice--success { background: #E7F0EA; color: var(--success); border: 1px solid #C8DCCF; }

/* Notification */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 20px);
  background: var(--graphite); color: var(--milk); padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; font-size: .95rem; max-width: calc(100% - 32px); text-align: center;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-type="error"] { background: var(--error); }

/* --- Pages légales ------------------------------------------------------ */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal .placeholder { background: #F6E7DC; padding: 0 4px; border-radius: 4px; }
.legal-back { display: inline-block; margin-bottom: 24px; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav a { padding: 10px 8px; font-size: .9rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: var(--milk); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 0; }
  .site-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
  .header-actions { margin-left: auto; }

  .hero-inner, .advantages, .contact { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .advantages__media { aspect-ratio: 16 / 10; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .configurator .modal__inner {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr auto;
    grid-template-areas: "media" "body" "footer"; height: calc(100dvh - 32px);
  }
  .configurator__media { height: 180px; }
  .configurator__body { padding: 22px 22px 8px; }
  .configurator__footer { padding: 14px 22px 16px; }
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__summary { position: static; order: -1; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .categories-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card { flex-direction: row; }
  .category-card__media { width: 38%; aspect-ratio: auto; flex: none; }
  .category-card__body { padding: 16px; }
  .category-card__body h3 { font-size: 1.2rem; }
  .category-card__body p:not(.price-from) { font-size: .88rem; margin-bottom: .6em; }
  .product-card__media { aspect-ratio: 16 / 11; }
  .hero-actions .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__item figcaption { font-size: .78rem; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; }
  .form-row, .form-row--postal { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .modal { width: 100%; max-height: 100dvh; margin: auto 0 0; }
  .modal__inner { border-radius: 20px 20px 0 0; max-height: 100dvh; }
  .configurator .modal__inner { height: 100dvh; border-radius: 0; }
  .configurator__media { height: 150px; }
  .option-choices { grid-template-columns: repeat(2, 1fr); }
  .configurator__footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .configurator__footer .btn { width: 100%; }
  .checkout .modal__inner { height: 100dvh; border-radius: 0; }
  .checkout__actions .btn { flex: 1 1 100%; }
  .checkout__actions { flex-direction: column-reverse; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .confirmation__items li { grid-template-columns: 1fr auto; }
  .confirmation__items .muted { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pf-anim .reveal { opacity: 1; transform: none; }
}

/* --- Pages séparées ----------------------------------------------------- */
.section--page { padding-top: clamp(36px, 5vw, 64px); min-height: 60vh; }
.section--plain { background: var(--milk); }
.section-head h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.page-cta { text-align: center; margin: clamp(32px, 4vw, 48px) 0 0; }
.site-nav a[aria-current="page"] { color: var(--terra-dark); background: var(--beige); font-weight: 500; }
@media (max-width: 960px) {
  .site-nav a[aria-current="page"] { background: transparent; }
}

/* --- Informations légales de l'entreprise dans le pied de page --------- */
.footer-company {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #45423F;
  color: #B9B0A6;
  font-size: .82rem;
  line-height: 1.65;
}
.footer-company p { margin: 0 0 4px; }
.footer-company strong { color: #E9E2D8; font-weight: 600; }

/* --- Champ anti-robot (invisible pour les visiteurs) -------------------- */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Tableau des traceurs (politique de cookies) */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .55em .7em; border-bottom: 1px solid rgba(0,0,0,.12); }
.legal-table thead th { font-weight: 600; border-bottom-width: 2px; }

/* Éléments masqués : l’attribut hidden l’emporte toujours (ex. formulaire de commande après validation) */
[hidden] { display: none !important; }
