/* Bercama — site vitrine B2B. Tokens repris de la maquette validée, accent = orange du logo. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F5F2EC;
  --surface: #FFFFFF;
  --tile: #ECE7DE;
  --tile-2: #E6DFD3;
  --ink: #15212B;
  --muted: #4E5A63;
  --line: #DDD6CA;
  --line-strong: #CBC2B3;
  --brand: #BB5A38;          /* couleur exacte du logo */
  --accent: #A24A2B;         /* version contrastée pour texte et boutons */
  --accent-hover: #87391F;
  --dark-muted: #B5BEC5;
  --dark-accent: #E6A27F;
  --dark-line: #34424E;
  --wa: #1F7A4D;
  --error: #B3261E;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 6.6vw, 96px);
  --max: 1440px;
  --section: clamp(64px, 8.4vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1; }
.display em { font-style: italic; }
.h2 { font-size: clamp(38px, 4.4vw, 64px); }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; text-align: center; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border: 1.5px solid var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17603C; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.link { font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent-hover); }

/* Top bar + header */
.topbar { background: var(--ink); color: #E9E4DA; font-size: 13px; font-weight: 500; }
.topbar .wrap { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a:hover { color: #fff; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(245, 242, 236, 0.94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 132px; height: auto; }
.nav { display: flex; gap: 34px; font-size: 15px; font-weight: 600; }
.nav a { padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__icon { display: none; }

/* Hero */
.hero { padding-block: 48px 88px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__title { font-size: clamp(48px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.02em; }
.hero__lead { max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero__facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
.hero__media { position: relative; border-radius: 28px; overflow: hidden; background: var(--tile-2); aspect-ratio: 4 / 5; max-height: 720px; justify-self: end; width: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(21, 33, 43, 0.12); }
.hero__tag img { width: 72px; height: 54px; border-radius: 10px; background: var(--tile); object-fit: contain; }
.hero__tag span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.35; }
.hero__tag b { font-size: 15px; color: var(--ink); }
.hero__tag:hover b { color: var(--accent); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 30px; border-block: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.trust svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent); }

/* Sections */
.section { padding-top: var(--section); }
.section--pad { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.section-head .h2 { max-width: 680px; }
.section-head p { max-width: 440px; }

/* Gammes */
.gammes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.gamme { display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); overflow: hidden; transition: transform .2s ease; }
.gamme:hover { transform: translateY(-3px); }
.gamme img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; background: var(--tile); }
.gamme img.is-photo, .card__media img.is-photo { object-fit: cover; }
.gamme__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.gamme__title { font-size: 17px; font-weight: 800; line-height: 1.3; }
.gamme__count { font-size: 14px; color: var(--muted); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none; }
.card__media { position: relative; border-radius: 20px; background: var(--tile); overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding-inline: 4px; }
.card__ref { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card__name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.card:hover .card__name { color: var(--accent); }
.card__meta { font-size: 14px; color: var(--muted); }
.dots { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(21, 33, 43, 0.25); }
.dots__more { font-size: 12px; font-weight: 700; color: var(--muted); }

/* Lookbook */
.look { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.look__item { position: relative; border-radius: 20px; overflow: hidden; background: var(--tile-2); }
.look__item:nth-child(1), .look__item:nth-child(4) { grid-row: span 2; }
.look__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform .5s ease; }
.look__item:nth-child(1) img, .look__item:nth-child(4) img { aspect-ratio: auto; position: absolute; inset: 0; }
.look__item:hover img { transform: scale(1.03); }
.look__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.94); font-size: 14px; font-weight: 700; line-height: 1.3; }
.look__cap span:last-child { color: var(--accent); white-space: nowrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--brand); }
.step h3 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.step p { font-size: 15px; color: var(--muted); }

/* Catalogue */
.cat-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 30px; background: var(--ink); color: var(--paper); overflow: hidden; }
.cat-card__media { display: flex; align-items: center; justify-content: center; padding: 48px; background: #1E2C38; }
.cat-card__media img { width: min(340px, 100%); border-radius: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.cat-card__body { padding: clamp(32px, 4.4vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.cat-card__body .kicker { color: var(--dark-accent); }
.cat-card__body p { color: var(--dark-muted); }
.cat-card__title { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.02; }
.cat-card__meta { font-size: 14px; color: var(--dark-muted); }

/* Footer */
.footer { margin-top: var(--section); background: var(--ink); color: var(--paper); }
.footer .wrap { padding-block: 80px 36px; display: flex; flex-direction: column; gap: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-style: normal; }
.footer__col a:hover { color: var(--dark-accent); }
.footer__col img { width: 140px; margin-bottom: 8px; }
.footer__muted { color: var(--dark-muted); }
.footer__label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-accent); }
.footer__bottom { padding-top: 24px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--dark-muted); }

/* ---------- Collection page ---------- */
.page-head { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(44px, 5.4vw, 80px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 36px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__sep { width: 1px; height: 28px; background: var(--line-strong); margin-inline: 6px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.result-count { margin-left: auto; font-size: 14px; color: var(--muted); }
.empty { padding: 48px; text-align: center; border-radius: 20px; background: var(--surface); }

/* ---------- Product page ---------- */
.crumbs { padding-block: 24px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--accent); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery { position: sticky; top: 104px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
.gallery__main { grid-column: 2; grid-row: 1; position: relative; border-radius: 24px; background: var(--tile); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main img.is-photo { object-fit: cover; }
.gallery__label { position: absolute; left: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; }
.thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex-shrink: 0; width: 88px; height: 66px; padding: 0; border-radius: 12px; border: 2px solid transparent; background: var(--tile); overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb img.is-photo { object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb:hover { border-color: var(--line-strong); }

.info { display: flex; flex-direction: column; gap: 24px; }
.info__ligne { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.info h1 { font-size: clamp(38px, 3.6vw, 54px); line-height: 1.02; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.specs div { padding: 14px 0; display: flex; flex-direction: column; gap: 2px; }
.specs div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.specs dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 16px; font-weight: 700; }
.swatches__head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 12px; }
.swatches__head b { font-weight: 800; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: transparent; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(21, 33, 43, 0.25); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatch:hover { border-color: var(--line-strong); }
.points { display: flex; flex-direction: column; gap: 10px; }
.points li { position: relative; padding-left: 26px; font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.note { font-size: 14px; color: var(--muted); }

/* Quote form */
.quote { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 100px; }
.quote__title { font-size: 22px; font-weight: 800; line-height: 1.25; }
.quote__sub { font-size: 14px; color: var(--muted); margin-top: -10px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field label small, .field legend small { font-weight: 500; color: var(--muted); }
.field input { min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 16px; }
.field input:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--error); background: #FFF7F6; }
.field__error { font-size: 13px; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 14px; font-weight: 600; cursor: pointer; }
.check span i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(21, 33, 43, 0.25); }
.check input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.check input:checked + span i { border-color: rgba(255, 255, 255, 0.7); }
.check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.quote__fine { font-size: 13px; color: var(--muted); text-align: center; }
.quote__or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.quote__or::before, .quote__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.related { padding-top: var(--section); }

/* Mobile action bar */
.actionbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .gammes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 22px; }
  .pdp { gap: 36px; }
}
@media (max-width: 960px) {
  .topbar, .nav, .header__cta { display: none; }
  .header .wrap { height: 64px; }
  .logo img { width: 108px; }
  .header__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; }
  .header__icon--pdf { background: var(--accent); color: #fff; }
  .header__icon--menu { border: 1.5px solid var(--line-strong); }
  .header__icon svg { width: 20px; height: 20px; }
  .mnav { position: fixed; inset: 64px 0 auto 0; z-index: 39; padding: 12px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; font-size: 18px; font-weight: 700; }
  .mnav[hidden] { display: none; }
  .mnav a { padding: 14px 0; border-bottom: 1px solid var(--line); }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 48px; }
  .hero__media { aspect-ratio: 4 / 4.4; justify-self: stretch; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__facts strong { font-size: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .gammes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gamme__body { padding: 14px; }
  .gamme__title { font-size: 15px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card { gap: 10px; }
  .card__media { border-radius: 16px; }
  .card__badge { display: none; }
  .card__body { padding: 0; }
  .card__name { font-size: 15px; }
  .card__meta { font-size: 13px; }
  .look { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .look__item:nth-child(1), .look__item:nth-child(4) { grid-row: auto; }
  .look__item:nth-child(1) img, .look__item:nth-child(4) img { aspect-ratio: 4 / 5; position: static; }
  .look__cap { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: 12px; }
  .look__cap span:last-child { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cat-card { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .cat-card__media { padding: 28px; }
  .cat-card__media img { width: min(240px, 70%); }
  .cat-card__body .btn { width: 100%; }
  .footer .wrap { padding-block: 48px 110px; gap: 32px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }

  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters__group { flex-wrap: nowrap; }
  .result-count { display: none; }

  .pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .gallery__main { grid-column: 1; border-radius: 20px; }
  .thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .thumb { width: 76px; height: 57px; }
  .quote { padding: 20px; border-radius: 20px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .specs div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }

  .actionbar { display: flex; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 62px; padding: 7px; gap: 7px; border-radius: 999px; background: var(--surface); box-shadow: 0 10px 30px rgba(21, 33, 43, 0.25); transform: translateY(150%); transition: transform .25s ease; }
  .actionbar.is-visible { transform: none; }
  .actionbar a { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 15px; font-weight: 700; }
  .actionbar__a { background: var(--ink); color: var(--paper); }
  .actionbar__b { background: var(--accent); color: #fff; }
}
@media (min-width: 961px) { .mnav { display: none !important; } }

/* ---------- Demande de devis multi-produits ---------- */
.quote-link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 15px; font-weight: 700; }
.quote-link:hover { border-color: var(--ink); }
.quote-link svg { width: 20px; height: 20px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.qstatus { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: #EEF6F1; border: 1px solid #CFE5D8; font-size: 15px; }
.qstatus:focus { outline: none; }
.qstatus__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.devis { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.devis .quote { position: sticky; top: 104px; }
.devis .empty { text-align: left; }
.qlist { display: flex; flex-direction: column; gap: 12px; }
.qline { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.qline__media { border-radius: 14px; background: var(--tile); overflow: hidden; }
.qline__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.qline__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qline__name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.qline__name:hover { color: var(--accent); }
.qline__meta, .qline__colors { font-size: 14px; color: var(--muted); }
.qline__edit { font-size: 13px; margin-top: 2px; align-self: flex-start; }
.qline__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qline__qty { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.qline__qty input { width: 104px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 16px; font-weight: 700; color: var(--ink); }
.qline__qty input:focus { outline: none; border-color: var(--ink); background: #fff; }
.qline__remove { min-height: 36px; padding: 0 4px; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qline__remove:hover { color: var(--error); }
.qtotal { margin-top: 16px; font-size: 15px; font-weight: 700; }
.field textarea { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 16px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
#list-err:not(:empty) { display: block; margin-top: 12px; }

@media (max-width: 1180px) { .quote-link__label { display: none; } .quote-link { padding: 0 12px; } }
@media (max-width: 960px) {
  .quote-link { width: 44px; padding: 0; justify-content: center; }
  .quote-link .badge { position: absolute; top: -4px; right: -6px; }
  .devis { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .devis .quote { position: static; }
  .qline { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 16px; }
  .qline__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .qline__name { font-size: 15px; }
}


/* Grille pointures × quantités */
.field__label { font-size: 14px; font-weight: 700; }
.field__label small { font-weight: 500; color: var(--muted); }
.sizes { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.srow { padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.srow__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.srow__head i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(21, 33, 43, 0.25); }
.srow__sum { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
.srow__grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.scell { display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: center; }
.scell span { font-size: 12px; font-weight: 700; color: var(--muted); }
.scell input { width: 100%; min-width: 0; height: 44px; padding: 0 2px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.scell input::-webkit-outer-spin-button, .scell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.scell input:focus { outline: none; border-color: var(--ink); }
.scell.is-off span { color: var(--line-strong); }
.scell.is-off input { background: var(--tile); border-color: var(--tile); cursor: not-allowed; }
.sizes__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.sizes__fill { display: flex; gap: 8px; }
.sizes__fill input { width: 90px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper); font-size: 16px; }
.sizes__total { margin-top: 8px; font-size: 15px; font-weight: 800; }
.qline__colors { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.qline__colors b { color: var(--ink); font-weight: 700; }
.qline__pairs { font-size: 16px; font-weight: 800; white-space: nowrap; }
@media (max-width: 960px) {
  .srow__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


/* Recherche */
.hsearch { flex: 0 1 260px; }
.hsearch input, .msearch input { width: 100%; min-height: 44px; padding: 0 16px 0 40px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E5A63' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 18px; font-size: 15px; }
.hsearch input:focus, .msearch input:focus { outline: none; border-color: var(--ink); }
.msearch { padding: 6px 0 12px; }
.csearch { position: relative; display: flex; align-items: center; margin-bottom: 18px; }
.csearch svg { position: absolute; left: 20px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.csearch input { width: 100%; min-height: 60px; padding: 0 110px 0 56px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 17px; }
.csearch input:focus { outline: none; border-color: var(--ink); }
.csearch input::-webkit-search-cancel-button { display: none; }
.csearch__clear { position: absolute; right: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--tile); font-size: 14px; font-weight: 700; cursor: pointer; }

@media (max-width: 1180px) { .gammes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .gammes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csearch input { min-height: 54px; font-size: 16px; padding-right: 96px; }
  .csearch input::placeholder { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* En-tête : rien ne passe à la ligne */
.nav a, .btn, .quote-link { white-space: nowrap; }
.header .wrap { gap: 20px; }
.hsearch { flex: 0 1 230px; min-width: 160px; }
@media (max-width: 1500px) { .nav { gap: 24px; } .quote-link__label { display: none; } .quote-link { padding: 0 12px; } }
@media (max-width: 1320px) { .hsearch { display: none; } }

/* ================= Accueil éditoriale ================= */
.home .section { padding-top: clamp(72px, 9vw, 136px); }
.h-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  max-width: var(--max); margin-inline: auto; padding: 32px 0 0 var(--gutter); min-height: min(820px, calc(100vh - 120px)); }
.h-hero__text { display: flex; flex-direction: column; gap: 26px; padding-block: 40px; }
.h-hero__title { font-size: clamp(52px, 6.6vw, 104px); line-height: 0.96; letter-spacing: -0.025em; }
.h-hero__text .lead { max-width: 500px; }
.h-hero__media { position: relative; margin: 0; height: 100%; min-height: 560px; }
.h-hero__media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; border-radius: 32px 0 0 32px; }
.h-hero__inset { position: absolute; left: -64px; bottom: 48px; width: clamp(150px, 15vw, 230px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; border: 6px solid var(--paper); box-shadow: 0 20px 40px rgba(21, 33, 43, 0.18); }

.h-statement { padding-top: clamp(72px, 9vw, 128px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
.h-statement p { max-width: 980px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.12; }
.h-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; font-size: 15px; color: var(--muted); }
.h-facts b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--accent); margin-right: 6px; }

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 14vw, 210px); gap: 16px; }
.mtile { position: relative; overflow: hidden; border-radius: 24px; background: var(--tile-2); }
.mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mtile:hover img { transform: scale(1.04); }
.mtile__cap { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font-size: 14px; font-weight: 700; }
.mtile:hover .mtile__cap { color: var(--accent); }
.m-a { grid-column: 1 / span 7; grid-row: span 3; }
.m-b { grid-column: 8 / span 5; grid-row: span 2; }
.m-c { grid-column: 8 / span 5; grid-row: span 2; }
.m-d { grid-column: 1 / span 4; grid-row: span 2; }
.m-e { grid-column: 5 / span 3; grid-row: span 2; }
.m-f { grid-column: 8 / span 5; grid-row: span 1; }
.m-f img { object-position: center 70%; }

.gtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.gtile { display: flex; flex-direction: column; gap: 16px; }
.gtile__media { display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3; background: var(--tile-2); }
.gtile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gtile:hover .gtile__media img { transform: scale(1.04); }
.gtile__body { display: flex; flex-direction: column; gap: 6px; padding-inline: 4px; }
.gtile__title { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.gtile__txt { font-size: 15px; color: var(--muted); }
.gtile__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--accent); }
.gtile__more svg { width: 16px; height: 16px; }

.h-story { margin-top: clamp(72px, 9vw, 136px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--ink); color: var(--paper); }
.h-story__media { position: relative; min-height: 520px; }
.h-story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-story__text { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.h-story__text .kicker { color: var(--dark-accent); }
.h-story__list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.h-story__list li { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--dark-line); }
.h-story__list b { font-size: 18px; }
.h-story__list span { font-size: 15px; color: var(--dark-muted); }

@media (max-width: 960px) {
  .h-hero { grid-template-columns: minmax(0, 1fr); padding: 16px var(--gutter) 0; min-height: 0; gap: 8px; }
  .h-hero__text { padding-block: 16px 8px; }
  .h-hero__media { height: auto; min-height: 0; aspect-ratio: 4 / 4.6; }
  .h-hero__media > img:first-child { border-radius: 24px; }
  .h-hero__inset { left: 14px; bottom: 14px; width: 120px; border-width: 4px; }
  .h-facts { gap: 10px 24px; }
  .h-facts b { font-size: 24px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .m-a { grid-column: 1 / -1; grid-row: span 2; }
  .m-b, .m-c, .m-d, .m-e { grid-column: auto; grid-row: span 2; }
  .m-f { grid-column: 1 / -1; grid-row: span 1; }
  .mtile { border-radius: 18px; }
  .mtile__cap { left: 8px; bottom: 8px; font-size: 12px; padding: 6px 10px; }
  .gtiles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gtile__title { font-size: 26px; }
  .h-story { grid-template-columns: minmax(0, 1fr); }
  .h-story__media { min-height: 0; aspect-ratio: 4 / 3; }
}
