/* =========================================================
   BATARTEC – Bâtiment, Art & Technologie
   ========================================================= */

:root {
  --yellow: #ffc20e;
  --yellow-dark: #f2b100;
  --red: #e30613;
  --black: #111111;
  --dark: #1b1b1b;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --border: #ececec;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .07);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, .12);
  --container: 1200px;
  --header-h: 84px;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2h60l30 50-30 50H30L0 52z' fill='none' stroke='%23f1e9dc' stroke-width='1.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--black); line-height: 1.2; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Icônes SVG (trait) ---------- */
.ico, .card__arrow svg, .feature__icon svg, .slider__btn svg, .cta__hex svg, .socials svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 194, 14, .45); }
.btn--outline { border-color: var(--red); color: var(--black); background: #fff; }
.btn--outline:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* ---------- Eyebrow / titres ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--yellow);
}
.eyebrow--left::before { display: none; }
.eyebrow--both::before { display: block; }

.section { padding: 80px 0; position: relative; }
.section--hex { background: var(--bg) var(--hex); }
/* Fond « ruche » : une section sur deux */
.section--ruche {
  background:
    url("../images/bg-ruche-gauche.svg") left top / 260px auto repeat-y,
    url("../images/bg-ruche-droite.svg") right top / 260px auto repeat-y,
    linear-gradient(180deg, #fffcf4, #fff8e8);
  border-top: 1px solid #f6e7bd;
  border-bottom: 1px solid #f6e7bd;
}
.section__head { text-align: center; margin-bottom: 44px; display: flex; flex-direction: column; align-items: center; }
.section__title { font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.section__title--left { text-align: left; }
.section__title--lined {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.section__title--lined::before, .section__title--lined::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--yellow);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__icon { width: 60px; height: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-size: 27px; font-weight: 800; letter-spacing: .01em; color: var(--black); }
.logo__text small { font-size: 11.5px; font-weight: 500; color: var(--text); }
.logo--light .logo__text strong, .logo--light .logo__text small { color: #fff; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { font-weight: 600; }
.nav__cta { margin-left: 30px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 0;
  background: #fffaf0 url("../images/bg-ruche.svg") right top / 125% auto no-repeat;
  border-bottom: 1px solid #f6e7bd;
}
.hero__media {
  position: absolute;
  inset: 0 0 0 45%;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 8%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 8%, #000 30%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 560px; padding: 60px 0; }
.hero__title { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.hero__subtitle { font-size: clamp(24px, 3vw, 38px); font-weight: 600; color: var(--red); margin: 6px 0 22px; }
.hero__text { font-size: 16px; max-width: 520px; margin-bottom: 32px; }
.hero__text strong { color: var(--black); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   CARTES PRODUITS
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 14px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 14px; transition: transform .4s; }
.card:hover .card__img { transform: scale(1.06); }
.card__title { font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
.card__text { font-size: 12.5px; color: var(--muted); flex: 1; margin-bottom: 18px; }
.card__arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  transition: transform .2s, background .2s;
}
.card__arrow svg { width: 16px; height: 16px; color: var(--black); }
.card:hover .card__arrow { transform: translateX(4px); background: var(--yellow-dark); }

/* =========================================================
   À PROPOS
   ========================================================= */
.about { overflow: hidden; }
.about::after {
  content: "";
  position: absolute;
  right: -60px; top: 50%;
  width: 360px; height: 360px;
  transform: translateY(-50%);
  background: url("../images/logo-icon.svg") center / contain no-repeat;
  opacity: .04;
  pointer-events: none;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about__media img { width: 100%; }
.about__text { color: var(--muted); margin: 18px 0 30px; max-width: 560px; }
.about__text strong { color: var(--black); }

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding: 0 10px;
}
.feature + .feature { border-left: 1px solid #ddd; }
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  display: grid;
  place-items: center;
  color: var(--black);
  transition: background .3s;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature:hover .feature__icon { background: var(--yellow); }

/* =========================================================
   RÉALISATIONS / CARROUSEL
   ========================================================= */
.section__head--slider {
  position: relative;
}
.section__head--slider > div:first-child { display: flex; flex-direction: column; align-items: center; }
.slider__controls {
  position: absolute;
  right: 0; bottom: 4px;
  display: flex;
  gap: 8px;
}
.slider__btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.slider__btn svg { width: 18px; height: 18px; }
.slider__btn:hover { background: var(--yellow); }

.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 12px) / 6);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.slider::-webkit-scrollbar { display: none; }
.tile {
  scroll-snap-align: start;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tile img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.07); }
.tile__body { padding: 12px 12px 14px; }
.tile__body h3 { font-size: 13px; font-weight: 600; }
.tile__body p { font-size: 11.5px; color: var(--muted); }

/* =========================================================
   TÉMOIGNAGES
   ========================================================= */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px 22px 56px;
  position: relative;
  transition: transform .3s;
}
.quote:hover { transform: translateY(-4px); }
.quote::before {
  content: "\201C";
  position: absolute;
  left: 18px; top: 6px;
  font-size: 56px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}
.quote blockquote { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.quote figcaption strong { display: block; font-size: 13px; color: var(--black); }
.quote figcaption span { font-size: 12px; color: var(--muted); }
.stars { color: var(--yellow); font-size: 16px; letter-spacing: 2px; margin-top: 4px; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--dark);
  color: #fff;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--red), var(--yellow), var(--red)) 1;
  position: relative;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.cta__left { display: flex; align-items: center; gap: 20px; }
.cta__hex {
  width: 84px; height: 76px;
  background: var(--yellow);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cta__hex svg { width: 40px; height: 40px; color: var(--black); }
.cta__title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.cta__title span { color: var(--yellow); font-weight: 700; }
.cta__text { font-size: 13px; color: #d6d6d6; max-width: 340px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2h60l30 50-30 50H30L0 52z' fill='none' stroke='%23e30613' stroke-opacity='.12' stroke-width='1.5'/%3E%3C/svg%3E");
  color: #fff;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 34px;
  padding-bottom: 34px;
  flex-wrap: wrap;
}
.footer__nav { display: flex; gap: 28px; font-size: 13px; }
.footer__nav a { transition: color .2s; }
.footer__nav a:hover { color: var(--yellow); }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--yellow); color: var(--black); }
.socials svg { width: 20px; height: 20px; }
.footer__copy { font-size: 11px; color: #aaa; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .slider { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .nav { gap: 22px; }
  .nav__cta { margin-left: 10px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 10px 24px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 18px 0 0; justify-content: center; }

  .hero { flex-direction: column; min-height: 0; }
  .hero__media { position: relative; inset: auto; order: 2; width: 100%; height: 300px; }
  .hero__media img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
  }
  .hero__content { padding: 40px 0 30px; }

  .about__inner { grid-template-columns: 1fr; gap: 30px; }
  .section--ruche {
    background-size: 64px auto, 64px auto, auto;
  }
  .about__media { max-width: 520px; margin: 0 auto; }

  .quotes { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }

  .cta__inner { flex-direction: column; text-align: center; gap: 20px; padding-top: 30px; padding-bottom: 30px; }
  .cta__left { flex-direction: column; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__right { align-items: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .logo__icon { width: 48px; }
  .logo__text strong { font-size: 22px; }
  .logo__text small { font-size: 10px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .feature:nth-child(3) { border-left: 0; }
  .slider { grid-auto-columns: 70%; }
  .slider__controls { position: static; justify-content: center; margin-top: 14px; }
  .section__title--lined::before, .section__title--lined::after { display: none; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* =========================================================
   PAGE – DEMANDE DE DEVIS
   ========================================================= */
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #333; transform: translateY(-2px); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn.is-loading .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(255, 194, 14, .35); }

/* En-tête de page */
.page-head { padding: 46px 0 40px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--red); }
.page-head__title { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.page-head__text { max-width: 640px; margin-top: 10px; color: var(--muted); }

.devis-page { padding: 40px 0 80px; background: var(--bg-soft); }
.devis-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.devis-page__main { display: grid; gap: 20px; min-width: 0; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert--error { background: #fde8e9; color: #b0040f; border: 1px solid #f8c5c8; }

/* Blocs du formulaire */
.card-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 26px 24px;
}
.devis__block { margin: 0; min-width: 0; }
.devis__legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 18px;
}
.devis__legend + * { clear: both; }
.devis__legend > span {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.devis__legend small { font-weight: 400; color: var(--muted); font-size: 13px; }
.devis__sub { font-size: 13px; font-weight: 600; margin: 4px 0 10px; color: var(--black); }

.grid { display: grid; gap: 14px 18px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--addr { grid-template-columns: 1fr 2fr; }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__label { font-size: 12.5px; font-weight: 500; color: #444; }
.field__label em, .summary__required em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--black);
  padding: 10px 12px;
  border: 1.5px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:disabled { background: var(--bg-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 194, 14, .25);
}
.field__error { display: none; font-size: 12px; color: var(--red); }
.field.has-error input, .field.has-error textarea,
.was-validated .field input:invalid,
.field.is-touched input:invalid { border-color: var(--red); }
.field.has-error .field__error,
.was-validated .field input:invalid ~ .field__error,
.field.is-touched input:invalid ~ .field__error { display: block; }
select.is-invalid { border-color: var(--red); }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.check input { width: 18px; height: 18px; accent-color: var(--yellow); cursor: pointer; flex-shrink: 0; }
.devis__livraison { margin-top: 8px; padding: 14px; background: var(--bg-soft); border-radius: 10px; }

/* Sélecteur d'article */
.picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 160px auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid #f6e7bd;
  border-radius: 10px;
}
.picker__price { display: flex; flex-direction: column; gap: 5px; padding-bottom: 10px; }
.picker__price strong { font-size: 14px; color: var(--black); white-space: nowrap; }
.picker__add { padding: 11px 20px; }

/* Lignes */
.lines { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lines__table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lines__table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  background: var(--bg-soft);
  padding: 10px 12px;
}
.lines__table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.lines__table td strong { display: block; font-weight: 600; color: var(--black); }
.lines__table td small { font-size: 11.5px; color: var(--muted); }
.lines__table .num { text-align: right; white-space: nowrap; }
.lines__table .center { text-align: center; }
.lines__table .line-total { font-weight: 600; color: var(--black); }
.lines__table tr.is-new td { animation: flash 1.2s ease; }
@keyframes flash { from { background: rgba(255, 194, 14, .35); } }
.lines__empty { padding: 22px; text-align: center; font-size: 13px; color: var(--muted); }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e1e1e1;
  border-radius: 8px;
  overflow: hidden;
}
.stepper button {
  width: 30px; height: 34px;
  border: 0;
  background: var(--bg-soft);
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
}
.stepper button:hover { background: var(--yellow); }
.stepper input {
  width: 52px; height: 34px;
  border: 0;
  text-align: center;
  font: inherit;
  font-size: 14px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--yellow); outline-offset: -2px; }

.lines__del {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #999;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lines__del:hover { background: #fde8e9; color: var(--red); }
.lines__del svg, .page-message__icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.devis__alert {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fde8e9;
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
}

/* Récapitulatif */
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary__card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--yellow);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.summary__title { font-size: 18px; font-weight: 700; }
.summary__count { font-size: 13px; color: var(--muted); margin: 2px 0 16px; }
.totals { display: grid; gap: 8px; margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; color: var(--black); white-space: nowrap; }
.totals__ttc { margin-top: 6px; padding: 12px 14px; background: var(--yellow); border-radius: 10px; }
.totals .totals__ttc dt, .totals .totals__ttc dd { color: var(--black); font-weight: 700; font-size: 16px; }
.summary__submit { width: 100%; justify-content: center; margin-top: 18px; padding: 14px; font-size: 15px; }
.summary__notes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.summary__notes li { padding-left: 20px; position: relative; }
.summary__notes li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 700; }
.summary__required { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Pages de message (merci, erreurs) */
.page-message { padding: 90px 0; }
.page-message__inner { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.page-message__inner p { color: var(--muted); }
.page-message__inner p strong { color: var(--black); }
.page-message__inner a:not(.btn) { color: var(--red); font-weight: 500; }
.page-message__code { font-size: 64px; font-weight: 800; color: var(--yellow); line-height: 1; }
.page-message__icon {
  width: 80px; height: 72px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.page-message__icon svg { width: 34px; height: 34px; stroke-width: 2.5; }
.page-message__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.page-message__small { font-size: 13px; }

@media (max-width: 1000px) {
  .devis-page__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 700px) {
  .card-block { padding: 18px 16px 20px; border-radius: 12px; }
  .grid--2, .grid--addr { grid-template-columns: 1fr; }
  .picker { grid-template-columns: 1fr 1fr; }
  .picker__article { grid-column: 1 / -1; }
  .picker__price { padding-bottom: 0; }
  .picker__add { grid-column: 1 / -1; justify-content: center; }

  /* Tableau en cartes */
  .lines__table thead { display: none; }
  .lines__table, .lines__table tbody, .lines__table tr, .lines__table td { display: block; }
  .lines__table tr { position: relative; padding: 12px 14px; border-top: 1px solid var(--border); }
  .lines__table tr:first-child { border-top: 0; }
  .lines__table td { border: 0; padding: 3px 0; }
  .lines__table td:first-child { padding-right: 40px; }
  .lines__table td.num, .lines__table td.center { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .lines__table td[data-label]:not(:first-child)::before { content: attr(data-label); font-size: 12px; color: var(--muted); }
  .lines__table td:last-child { position: absolute; top: 8px; right: 8px; padding: 0; }
}
