:root {
  --bg: #f6f2ea;
  --ink: #17221c;
  --muted: #5f6b64;
  --card: #ffffff;
  --line: rgba(23, 34, 28, 0.12);
  --green: #1f7a4d;
  --green-dark: #145835;
  --lime: #cdf26a;
  --cream: #fff8e8;
  --shadow: 0 24px 70px rgba(23, 34, 28, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(205, 242, 106, 0.30), transparent 32rem),
    linear-gradient(180deg, #fbf7ee 0%, var(--bg) 60%, #f1eadb 100%);
}

a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 13px;
}

.brand-name { font-size: 20px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.top-nav a:hover { color: var(--green-dark); }

/* V4.7 — lien Instagram public */
.instagram-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 77, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 232, 0.78));
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 34, 28, 0.08);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.instagram-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 77, 0.26);
  box-shadow: 0 14px 28px rgba(23, 34, 28, 0.12);
}

.instagram-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
}

.instagram-mark svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(23, 34, 28, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.lang-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
  line-height: 26px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-btn:hover {
  color: var(--green-dark);
  background: rgba(205, 242, 106, 0.20);
}

.lang-btn.active {
  color: var(--lime);
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 34, 28, 0.16);
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 80px auto 42px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin: 0 0 12px;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.055em; line-height: 0.98; }

h1 { font-size: clamp(48px, 7vw, 92px); max-width: 820px; }
h2 { font-size: clamp(34px, 4vw, 58px); }
h3 { font-size: 24px; }

.hero-text {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 35px rgba(23, 34, 28, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border-color: var(--line);
}

.full { width: 100%; }

.trust-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 232, 0.82)),
    radial-gradient(circle at 86% 14%, rgba(205, 242, 106, 0.52), transparent 15rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.hero-card-flow {
  justify-content: center;
  gap: 24px;
}

.hero-card-head {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7fbef;
  border: 1px solid rgba(31, 122, 77, 0.16);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-card h2 {
  position: relative;
  max-width: 390px;
  z-index: 2;
  margin-top: 16px;
}

.hero-card-head p {
  position: relative;
  z-index: 2;
  max-width: 390px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}










.model-inputs {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.model-input-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(23, 34, 28, 0.08);
  backdrop-filter: blur(12px);
}

.input-tag {
  flex: 0 0 auto;
  width: 52px;
  height: 42px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.model-input-card strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.model-input-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quote-confirm-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #102019, #173725);
  color: #fff;
  box-shadow: 0 22px 44px rgba(23, 34, 28, 0.18);
}

.quote-confirm-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-confirm-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.mini-printed-object {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 58px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.22));
}

.mini-printed-object::before {
  content: "";
  position: absolute;
  inset: 0 6px 22px 6px;
  border-radius: 18px 18px 10px 10px;
  background:
    linear-gradient(135deg, rgba(205, 242, 106, 0.46), transparent 42%),
    linear-gradient(145deg, #2b6b46, #102d1f);
  border: 2px solid rgba(205, 242, 106, 0.44);
}

.mini-printed-object::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 32px;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(180deg, #173725, #0f2118);
  border-top: 1px solid rgba(205, 242, 106, 0.34);
}

.mini-printed-object span {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 10px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(205, 242, 106, 0.72);
}

.mini-steps {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.mini-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.mini-steps span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.mini-steps p { margin: 0; font-weight: 750; }

.section, .upload-section {
  width: min(1160px, calc(100% - 32px));
  margin: 78px auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card, .faq details {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 40px rgba(23, 34, 28, 0.08);
}

.step-number {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.step-card h3 { margin-top: 34px; }
.step-card p, .upload-copy p, .faq p, .clean-list {
  color: var(--muted);
  line-height: 1.65;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.section-intro {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-section {
  margin-top: 72px;
}

.gallery-heading {
  align-items: flex-start;
}

.gallery-grid {
  --gallery-gap: 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 10px 0 22px;
  margin: 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 8%, rgba(205, 242, 106, 0.30), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 232, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 22px 60px rgba(23, 34, 28, 0.10);
}

.gallery-grid::before,
.gallery-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(110px, 18vw);
  pointer-events: none;
}

.gallery-grid::before {
  left: 0;
  background: linear-gradient(90deg, #fbf7ee 0%, rgba(251, 247, 238, 0.88) 28%, rgba(251, 247, 238, 0) 100%);
}

.gallery-grid::after {
  right: 0;
  background: linear-gradient(270deg, #fbf7ee 0%, rgba(251, 247, 238, 0.88) 28%, rgba(251, 247, 238, 0) 100%);
}

.gallery-grid:focus {
  outline: 2px solid rgba(31, 122, 77, 0.20);
  outline-offset: 6px;
}

.gallery-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: makerfarm-gallery-scroll var(--gallery-duration, 42s) linear infinite;
}

.gallery-grid:hover .gallery-track,
.gallery-grid:focus-within .gallery-track {
  animation-play-state: paused;
}

.gallery-loop-set {
  flex: 0 0 auto;
  display: flex;
  gap: var(--gallery-gap);
  padding: 4px var(--gallery-gap) 4px 0;
}

@keyframes makerfarm-gallery-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.gallery-card {
  position: relative;
  flex: 0 0 clamp(260px, 28vw, 350px);
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 46px rgba(23, 34, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow:
    0 24px 58px rgba(23, 34, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.gallery-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

.gallery-card figure::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(23, 34, 28, 0) 0%, rgba(23, 34, 28, 0.50) 100%);
  pointer-events: none;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-card:hover img {
  transform: scale(1.055);
}

.gallery-card-body {
  padding: 20px;
}

.gallery-card-body-simple {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 0;
}

.gallery-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7fbef;
  color: var(--green-dark);
  border: 1px solid rgba(31, 122, 77, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card h3 {
  margin-top: 14px;
}

.gallery-card-body h3:first-child {
  margin-top: 0;
}

.gallery-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-cta {
  min-height: 46px;
  width: 100%;
  margin-top: 0;
  padding: 0 16px;
  text-align: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 28px rgba(23, 34, 28, 0.16);
  backdrop-filter: blur(14px);
}

.gallery-cta:hover {
  background: #fff;
}

.gallery-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-empty {
  width: 100%;
  margin: 0;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.gallery-grid-loading .gallery-empty {
  animation: makerfarm-gallery-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes makerfarm-gallery-pulse {
  from {
    opacity: 0.56;
  }

  to {
    opacity: 1;
  }
}

.gallery-grid > .gallery-card {
  margin: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-track {
    animation: none;
  }

  .gallery-card {
    scroll-snap-align: start;
  }

  .gallery-card,
  .gallery-card img {
    transition: none;
  }
}


.upload-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: start;
  padding: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.upload-copy p, .upload-copy .clean-list { color: rgba(255, 255, 255, 0.74); }
.upload-copy .eyebrow { color: var(--lime); }
.clean-list { padding-left: 18px; }

.upload-form {
  background: #fff;
  color: var(--ink);
  padding: 26px;
  border-radius: 30px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: var(--ink);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
  background: #fbfaf6;
}

input:focus, textarea:focus {
  border-color: rgba(31, 122, 77, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.10);
}

.file-box {
  padding: 18px;
  border: 1px dashed rgba(31, 122, 77, 0.44);
  background: #f7fbef;
  border-radius: 20px;
  cursor: pointer;
}

.file-title {
  font-weight: 900;
}

#fileName {
  color: var(--muted);
  font-weight: 600;
}

.file-box input {
  display: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}


.field-help {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.or-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.or-separator::before,
.or-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.strong-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7fbef;
  color: var(--green-dark);
  font-weight: 800;
}

.text-link {
  color: var(--green-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 90px auto 24px;
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.site-footer strong { color: var(--ink); font-size: 20px; }
.site-footer p { margin: 8px 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a { font-weight: 750; color: var(--ink); }

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 77, 0.15);
  background: #f7fbef;
}

.footer-instagram span:first-child {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-size: 15px;
  line-height: 1;
}

.notice-page {
  width: min(760px, calc(100% - 32px));
  margin: 70px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.notice-page h1 { font-size: clamp(36px, 5vw, 60px); }
.notice-page p { color: var(--muted); line-height: 1.65; }
.request-id {
  display: inline-flex;
  background: var(--ink);
  color: var(--lime);
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.status-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef8df;
  color: var(--green-dark);
  font-weight: 900;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 8px;
  vertical-align: top;
}

.admin-panel {
  width: min(1160px, calc(100% - 32px));
  margin: 40px auto;
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(23, 34, 28, 0.10);
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fbfaf6;
  font: inherit;
}

.small-btn {
  border: none;
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 860px) {
  .top-nav { display: none; }
  .header-actions { gap: 0; }
  .hero, .upload-section { grid-template-columns: 1fr; }
  .hero { margin-top: 46px; }
  .hero-card { min-height: auto; }
  .steps-grid, .faq-grid { grid-template-columns: 1fr; }
  .gallery-card { flex-basis: min(82vw, 340px); }
  .section-heading { display: block; }
  .site-footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .site-header { width: calc(100% - 18px); padding: 12px 13px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 12px; }
  .instagram-pill { width: 36px; min-height: 36px; padding: 0; justify-content: center; }
  .instagram-pill span:last-child { display: none; }
  .instagram-mark { width: 30px; height: 30px; }
  .lang-switch { padding: 2px; gap: 1px; }
  .lang-btn { min-width: 28px; height: 24px; padding: 0 7px; font-size: 10px; line-height: 24px; }
  .hero, .section, .upload-section, .site-footer { width: calc(100% - 18px); }
  .upload-section { padding: 18px; border-radius: 30px; }
  .upload-form { padding: 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 22px; border-radius: 30px; }
  .hero-card h2 { font-size: 40px; }
  .gallery-card { flex-basis: 86vw; }
  .gallery-grid { --gallery-gap: 14px; padding-bottom: 16px; }
  .quote-confirm-card { align-items: flex-start; }
  .mini-printed-object { width: 64px; height: 50px; }
}


.slicer-preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.slicer-preview img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #f7f4ec;
}

.slicer-preview figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.image-upload {
  min-width: 220px;
  max-width: 340px;
}


.admin-actions textarea.message-client {
  min-width: 360px;
  max-width: 520px;
  resize: vertical;
  line-height: 1.25;
}

.admin-actions .price-input {
  width: 150px;
}


.approval-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background: #eef8df;
  border: 1px solid rgba(31, 122, 77, 0.20);
}

.approval-box h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 10px;
}

.approval-box p {
  color: var(--muted);
  line-height: 1.6;
}


/* V1.7 — espace client complet jusqu’à réception */
.tracking-page {
  width: min(920px, calc(100% - 32px));
}

.status-help {
  padding: 12px 16px;
  border-radius: 16px;
  background: #f7fbef;
  border: 1px solid rgba(31, 122, 77, 0.18);
  color: var(--green-dark) !important;
  font-weight: 750;
}

.request-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.request-summary p {
  margin: 0;
}

.tracking-overview {
  margin-top: 26px;
}

.tracking-overview h2,
.client-message h2,
.client-action-box h2,
.handover-summary h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 14px;
}

.tracking-list {
  display: grid;
  gap: 12px;
}

.tracking-list.compact {
  margin-top: 18px;
}

.track-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.track-step span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #ebe4d6;
  color: var(--muted);
  font-weight: 950;
}

.track-step strong {
  display: block;
  margin-top: 2px;
}

.track-step p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.25;
}

.track-step.is-done span,
.track-step.is-current span {
  background: var(--ink);
  color: var(--lime);
}

.track-step.is-current {
  border-color: rgba(31, 122, 77, 0.38);
  box-shadow: 0 12px 30px rgba(31, 122, 77, 0.10);
}

.client-message,
.client-action-box,
.handover-summary {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.client-action-box {
  background: #eef8df;
  border-color: rgba(31, 122, 77, 0.20);
}

.client-action-box.done {
  background: #f7fbef;
}

.client-action-box.waiting {
  background: #fff8e8;
}

.client-action-box.rejected {
  background: #fff3f0;
  border-color: rgba(176, 0, 32, 0.18);
}

.quote-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 18px;
}

.quote-decision-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(23, 34, 28, 0.10);
  background: rgba(255, 255, 255, 0.74);
}

.quote-decision-card h3 {
  font-size: 22px;
}

.reject-card {
  background: #fffaf7;
}

.reject-card textarea {
  min-height: 120px;
  resize: vertical;
}

.reject-button {
  border-color: rgba(176, 0, 32, 0.18);
}

.client-action-box p,
.client-message p,
.handover-summary p {
  color: var(--muted);
  line-height: 1.6;
}

.client-action-options {
  display: grid;
  gap: 10px;
}

.client-action-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf6;
  cursor: pointer;
}

.client-action-options input {
  width: auto;
}

.inline-form {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-form .btn {
  min-width: 190px;
}

@media (max-width: 520px) {
  .tracking-page { width: calc(100% - 18px); }
  .track-step { grid-template-columns: 36px 1fr; }
  .track-step span { width: 36px; height: 36px; border-radius: 13px; }
  .inline-form .btn { width: 100%; }
  .quote-decision-grid { grid-template-columns: 1fr; }
}


/* V1.9 — admin compact pour traitement plus rapide des demandes */
.admin-dashboard {
  width: min(1200px, calc(100% - 28px));
  margin: 24px auto 52px;
}

.admin-dashboard h1 {
  font-size: clamp(34px, 4.4vw, 56px);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.admin-flash {
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 122, 77, 0.22);
  background: #eef8df;
  color: var(--green-dark);
  font-weight: 750;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.stat-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(23, 34, 28, 0.07);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.admin-note-global {
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff8e8;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}

.request-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.request-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(23, 34, 28, 0.09);
}

.request-card-top {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.request-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.request-id.mini {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.request-date {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.next-action {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  background: #f7fbef;
}

.next-action strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.next-action span {
  display: block;
  color: var(--muted);
  line-height: 1.25;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.admin-info-grid {
  margin-top: 14px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #fbfaf6;
  min-width: 0;
}

.admin-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 2px;
}

.info-box h2,
.admin-action-box h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.info-box-head h2 {
  margin-bottom: 0;
}

.info-box-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8df;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.info-box p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.4;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: var(--ink);
}

.info-box a {
  font-weight: 800;
}

.admin-kpi-row,
.admin-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-money-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-kpi-row span,
.admin-money-grid span {
  display: block;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  min-width: 0;
}

.admin-kpi-row strong,
.admin-money-grid strong,
.admin-kpi-row em,
.admin-money-grid em {
  display: block;
}

.admin-kpi-row strong,
.admin-money-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.admin-kpi-row em,
.admin-money-grid em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.admin-money-grid .is-total {
  background: #eef8df;
  border-color: rgba(31, 122, 77, 0.20);
}

.admin-money-grid .is-total strong {
  color: var(--green-dark);
}

.admin-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.admin-mini-detail {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.62);
}

.admin-mini-detail summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.admin-mini-detail p {
  margin-top: 8px;
}

.admin-raw-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finance-info {
  background: #fffef9;
}

.positive {
  color: var(--green-dark) !important;
  font-weight: 900;
}

.negative {
  color: #9f1239 !important;
  font-weight: 900;
}

.muted {
  color: var(--muted) !important;
}

.link-btn {
  display: inline-flex;
  text-align: center;
}

.secondary-btn {
  background: #eef8df;
  color: var(--green-dark);
}

.admin-action-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-form-grid-improved {
  margin-top: 10px;
}

.admin-edit-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfaf6;
}

.admin-edit-panel h3 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.admin-panel-help {
  font-size: 12px;
  line-height: 1.35;
}

.admin-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 850;
  min-width: 0;
}

.admin-field small {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.25;
}

.admin-field select,
.admin-field input,
.admin-field textarea {
  margin-top: 0;
}

.full-field {
  margin-top: 10px;
}

.message-client {
  min-height: 120px;
  resize: vertical;
  line-height: 1.4;
}

.admin-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.admin-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.email-toggle {
  display: inline-flex;
  grid-template-columns: none;
  width: auto;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 850;
}

.email-toggle input {
  width: auto;
}

.email-hint {
  color: var(--muted);
  font-size: 12px;
  margin-right: auto;
}

.makerfarm-reject-panel {
  margin-top: 12px;
  border: 1px solid rgba(159, 18, 57, 0.18);
  border-radius: 18px;
  padding: 12px;
  background: #fff7f7;
}

.makerfarm-reject-panel summary {
  cursor: pointer;
  font-weight: 900;
  color: #9f1239;
}

.makerfarm-reject-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.makerfarm-reject-actions span {
  color: var(--muted);
  font-size: 12px;
}

.danger-btn {
  background: #9f1239;
  color: #fff;
  border-color: rgba(159, 18, 57, 0.22);
}

.danger-btn:hover {
  background: #881337;
}

.admin-history {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.admin-history summary {
  font-size: 14px;
}

.admin-history p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .admin-stats,
  .request-grid,
  .request-card-top,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: block;
  }

  .admin-header form {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .admin-dashboard {
    width: calc(100% - 18px);
    margin-top: 16px;
  }

  .request-card {
    padding: 12px;
    border-radius: 18px;
  }

  .admin-submit-row .btn {
    width: 100%;
  }

  .email-hint {
    width: 100%;
  }
}


/* V3.7 — onglets de process dans l’administration */
.admin-process-panel {
  margin: 18px 0;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(23, 34, 28, 0.07);
}

.admin-process-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-process-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.admin-process-head p,
.admin-process-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.admin-process-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f7fbef;
  border: 1px solid rgba(31, 122, 77, 0.18);
  color: var(--green-dark);
  font-weight: 900;
  font-size: 13px;
}

.admin-process-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-process-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf6;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-process-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 77, 0.28);
}

.admin-process-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-process-tab strong {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef8df;
  color: var(--green-dark);
  font-size: 13px;
}

.admin-process-tab.is-active strong {
  background: var(--lime);
  color: var(--ink);
}

.admin-process-hint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-process-empty {
  text-align: center;
}

.admin-process-empty h2 {
  margin-bottom: 6px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .admin-process-head {
    display: block;
  }

  .admin-process-active {
    margin-top: 10px;
  }

  .admin-process-tab {
    width: 100%;
    justify-content: space-between;
  }
}


.request-card .btn,
.request-card .small-btn {
  min-height: 42px;
  padding: 0 16px;
}

.admin-action-box .small-btn {
  font-size: 13px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  padding: 12px 14px;
  border-radius: 14px;
}

/* V2.1 — calculateur interne admin */
.internal-calculator {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  background: #f7fbef;
}

.internal-calculator summary {
  font-size: 15px;
  color: var(--green-dark);
}

.calc-secret-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calc-rush {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}

.calc-rush input {
  width: auto;
}

.calc-result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.calc-result {
  margin-right: auto;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 122, 77, 0.20);
  background: #fff;
  min-width: 220px;
}

.calc-result span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calc-result strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  letter-spacing: -0.05em;
  color: var(--green-dark);
}

.calc-result small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-result {
    width: 100%;
  }

  .calc-result-row .small-btn {
    flex: 1;
  }
}



/* V2.2 — fenêtre paramètres du calculateur interne */
.ghost-btn {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid rgba(31, 122, 77, 0.25);
}

.calc-settings-modal[hidden] {
  display: none;
}

.calc-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.calc-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 16, 0.48);
  backdrop-filter: blur(4px);
}

.calc-settings-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  background: #fffdf8;
  box-shadow: 0 30px 90px rgba(10, 18, 14, 0.28);
  padding: 20px;
}

.calc-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.calc-settings-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.calc-settings-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.calc-settings-x {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.calc-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.calc-settings-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 850;
  font-size: 13px;
}

.calc-settings-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
}

.calc-settings-grid small {
  color: var(--muted);
  font-weight: 650;
}

.calc-settings-formula {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7fbef;
  border: 1px solid rgba(31, 122, 77, 0.16);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.calc-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .calc-settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .calc-settings-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .calc-settings-grid {
    grid-template-columns: 1fr;
  }

  .calc-settings-actions .small-btn {
    width: 100%;
  }
}


/* V4.1 / V4.2 — choix retrait/livraison après validation du prix */
.handover-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.handover-choice-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(23, 34, 28, 0.10);
  background: rgba(255, 255, 255, 0.78);
}

.handover-choice-card h3 {
  font-size: 22px;
}

.handover-choice-card textarea {
  min-height: 96px;
  resize: vertical;
}

.delivery-card {
  background: #fffaf7;
}

.admin-form-grid .full-field {
  grid-column: 1 / -1;
}

.admin-total-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f7fbef;
  border: 1px solid rgba(31, 122, 77, 0.18);
  color: var(--green-dark);
  font-weight: 850;
}

.admin-total-box span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.finance-info {
  background: #fffef9;
}

@media (max-width: 720px) {
  .handover-choice-grid {
    grid-template-columns: 1fr;
  }
}


/* V4.3 — acceptation du devis avec choix retrait/livraison immédiat */
.quote-accept-grid {
  grid-template-columns: 1fr 1fr;
}

.quote-accept-grid .reject-card {
  grid-column: 1 / -1;
}

.quote-decision-card input[type="url"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfaf6;
  font: inherit;
}

.quote-decision-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 780px) {
  .quote-accept-grid {
    grid-template-columns: 1fr;
  }

  .quote-accept-grid .reject-card {
    grid-column: auto;
  }
}


/* V4.4 — retour clair si l'email automatique n'est pas confirmé */
.mail-warning {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(176, 48, 77, 0.22);
  background: #fff7f8;
  color: var(--ink);
}

.mail-warning strong {
  display: block;
  margin-bottom: 6px;
  color: #9f1239;
}

.mail-warning p {
  margin: 0;
}

.mail-success-note {
  margin-top: -6px;
  font-size: 14px;
}


/* V4.5 — page de suivi en parcours guidé */
.tracking-wizard {
  overflow: hidden;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.wizard-progress span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(23, 34, 28, 0.10);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.wizard-progress b {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ebe4d6;
  color: var(--muted);
  flex: 0 0 auto;
}

.wizard-progress span.is-active,
.wizard-progress span.is-done {
  color: var(--green-dark);
  border-color: rgba(31, 122, 77, 0.22);
  background: #f7fbef;
}

.wizard-progress span.is-active b,
.wizard-progress span.is-done b {
  background: var(--ink);
  color: var(--lime);
}

.tracking-wizard.wizard-js .wizard-panel {
  display: none;
}

.tracking-wizard.wizard-js .wizard-panel.is-active {
  display: block;
}

.wizard-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(23, 34, 28, 0.10);
  background: rgba(255, 255, 255, 0.78);
}

.wizard-panel h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.wizard-panel h4 {
  margin: 0;
  font-size: 18px;
}

.wizard-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  background: #f7fbef;
}

.wizard-price span {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 950;
}

.wizard-address-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  background: #fffef9;
}

.wizard-address-card p {
  margin: 8px 0 12px;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.wizard-actions .btn {
  min-width: 190px;
}

.wizard-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.wizard-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 34, 28, 0.12);
  border-radius: 20px;
  background: #fbfaf6;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wizard-choice-card:hover,
.wizard-choice-card.is-selected {
  border-color: rgba(31, 122, 77, 0.42);
  box-shadow: 0 14px 32px rgba(31, 122, 77, 0.10);
  transform: translateY(-1px);
}

.wizard-choice-card input {
  width: auto;
  margin-top: 4px;
  flex: 0 0 auto;
}

.wizard-choice-card strong {
  display: block;
  margin-bottom: 4px;
}

.wizard-choice-card small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 650;
}

.wizard-delivery-fields {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(31, 122, 77, 0.18);
  background: #fff;
}

.wizard-delivery-fields[hidden] {
  display: none;
}

.wizard-delivery-fields small {
  color: var(--muted);
  line-height: 1.35;
}

.wizard-reject {
  margin-top: 16px;
  border: 1px solid rgba(176, 0, 32, 0.14);
  border-radius: 20px;
  background: #fffaf7;
  overflow: hidden;
}

.wizard-reject summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: grid;
  gap: 3px;
}

.wizard-reject summary::-webkit-details-marker {
  display: none;
}

.wizard-reject summary span {
  color: #9f1239;
  font-weight: 900;
}

.wizard-reject summary small {
  color: var(--muted);
  line-height: 1.35;
}

.wizard-reject .quote-decision-card {
  border: 0;
  border-top: 1px solid rgba(176, 0, 32, 0.12);
  border-radius: 0;
  background: #fff;
}

@media (max-width: 780px) {
  .wizard-progress,
  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }

  .wizard-progress span {
    min-height: auto;
  }

  .wizard-price,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-actions .btn {
    width: 100%;
    min-width: 0;
  }
}


/* V4.6 — admin plus digeste : process simplifié + fiches client repliables */
.admin-simple-process {
  margin: 18px 0;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(31, 122, 77, 0.16);
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(247,251,239,0.92));
  box-shadow: 0 16px 38px rgba(23, 34, 28, 0.08);
}

.admin-simple-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-simple-head h2 {
  font-size: 24px;
  margin: 0 0 5px;
}

.admin-simple-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.admin-simple-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.admin-simple-step {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 13px;
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-simple-step:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 77, 0.30);
}

.admin-simple-step.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-simple-step span,
.admin-simple-step strong,
.admin-simple-step em {
  display: block;
}

.admin-simple-step span {
  font-weight: 950;
  font-size: 13px;
}

.admin-simple-step strong {
  margin-top: 8px;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.admin-simple-step em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.25;
}

.admin-simple-step.is-active em {
  color: rgba(255,255,255,0.78);
}

.admin-simple-side {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.admin-simple-side span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.70);
}

.admin-collapsible-card {
  padding: 0;
  overflow: hidden;
}

.admin-client-window {
  display: block;
}

.admin-card-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(260px, 1.35fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.admin-card-summary::-webkit-details-marker {
  display: none;
}

.admin-card-summary:hover {
  background: rgba(247, 251, 239, 0.68);
}

.admin-summary-main,
.admin-summary-process,
.admin-summary-money {
  min-width: 0;
}

.admin-summary-client {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-summary-process strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 8px;
}

.admin-summary-process em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.3;
}

.admin-mini-process {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-mini-step {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfaf6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-mini-step.is-done {
  background: #eef8df;
  border-color: rgba(31, 122, 77, 0.16);
  color: var(--green-dark);
}

.admin-mini-step.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

.admin-mini-step.is-muted {
  opacity: 0.55;
}

.admin-summary-money {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.admin-summary-money span {
  display: block;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfaf6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.admin-summary-money strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-summary-toggle {
  min-width: 84px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 77, 0.24);
  background: #eef8df;
  color: var(--green-dark);
  font-size: 0;
  font-weight: 950;
}

.admin-summary-toggle::before {
  content: "Ouvrir";
  font-size: 13px;
}

.admin-client-window[open] .admin-summary-toggle {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

.admin-client-window[open] .admin-summary-toggle::before {
  content: "Fermer";
}

.admin-card-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.60);
}

.admin-opened-head {
  padding-top: 14px;
}

.admin-client-window[open] .admin-card-summary {
  background: #fff;
}

@media (max-width: 1100px) {
  .admin-simple-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-card-summary {
    grid-template-columns: 1fr;
  }

  .admin-summary-toggle {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .admin-simple-head {
    display: block;
  }

  .admin-simple-head .small-btn {
    width: 100%;
    margin-top: 12px;
  }

  .admin-simple-steps,
  .admin-summary-money {
    grid-template-columns: 1fr;
  }

  .admin-card-summary {
    padding: 13px;
  }

  .admin-card-body {
    padding: 0 12px 12px;
  }
}

/* V4.11 — fiche admin plus compacte et mieux exploitée */
@media (min-width: 1320px) {
  .request-grid {
    grid-template-columns: 0.95fr 1.25fr 1.05fr 1.15fr;
  }
}

@media (max-width: 1180px) {
  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-money-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .request-grid,
  .admin-form-grid,
  .admin-kpi-row {
    grid-template-columns: 1fr;
  }

  .admin-money-grid {
    grid-template-columns: 1fr;
  }

  .info-box-head {
    display: block;
  }

  .info-box-head span {
    margin-top: 8px;
  }

  .admin-contact-actions .small-btn {
    width: 100%;
  }
}


/* V4.8 — décision client après estimation livraison */
.delivery-price-box {
  background: #f7fbef;
}

.delivery-price-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.delivery-price-summary p {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(31, 122, 77, 0.16);
}

.delivery-price-summary strong,
.delivery-price-summary span {
  display: block;
}

.delivery-price-summary span {
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 950;
}

.delivery-decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 780px) {
  .delivery-price-summary,
  .delivery-decision-grid {
    grid-template-columns: 1fr;
  }
}

/* V4.12 — suivi client mobile robuste pour Gmail / navigateur intégré */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  max-width: 100%;
}

@media (max-width: 640px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .notice-page.tracking-page {
    width: 100%;
    margin: 10px auto 28px;
    padding: 18px 12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .notice-page.tracking-page h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .request-id,
  .status-badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
  }

  .request-summary,
  .client-message,
  .client-action-box,
  .handover-summary,
  .wizard-panel,
  .wizard-address-card,
  .wizard-delivery-fields,
  .quote-decision-card {
    padding: 14px;
    border-radius: 18px;
  }

  .tracking-wizard {
    overflow: visible;
  }

  .tracking-wizard.wizard-mobile-linear .wizard-progress {
    display: none;
  }

  .tracking-wizard.wizard-mobile-linear .wizard-panel {
    display: block;
  }

  .tracking-wizard.wizard-mobile-linear .wizard-panel + .wizard-panel {
    margin-top: 14px;
  }

  .tracking-wizard.wizard-mobile-linear [data-wizard-next],
  .tracking-wizard.wizard-mobile-linear [data-wizard-back] {
    display: none;
  }

  .wizard-progress,
  .wizard-choice-grid,
  .quote-accept-grid,
  .handover-choice-grid,
  .delivery-price-summary,
  .delivery-decision-grid {
    grid-template-columns: 1fr !important;
  }

  .wizard-choice-card {
    padding: 14px;
    gap: 10px;
  }

  .wizard-choice-card span,
  .wizard-choice-card strong,
  .wizard-choice-card small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .wizard-price,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-price span,
  .delivery-price-summary span {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .wizard-actions .btn,
  .inline-form .btn,
  .quote-decision-card .btn,
  .small-btn.link-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .slicer-preview {
    border-radius: 18px;
  }
}

/* =========================================================
   Makerfarm V1.8 — Galerie premium / effet showroom
   À placer en fin de style.css pour écraser les anciens styles
   ========================================================= */

/* Badge sous le grand titre */
.hero-subtitle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 16px 0 0;
  padding: 10px 16px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(205, 242, 106, 0.28), rgba(255, 255, 255, 0.72));
  color: var(--green-dark);
  border: 1px solid rgba(31, 122, 77, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 26px rgba(23, 34, 28, 0.08);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 950;
  letter-spacing: -0.015em;
}

/* Bloc galerie placé sous le menu */
.gallery-section.gallery-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1160px, calc(100% - 32px));
  margin: 22px auto 74px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 8% 0%, rgba(205, 242, 106, 0.38), transparent 24rem),
    radial-gradient(circle at 86% 16%, rgba(31, 122, 77, 0.12), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.76));
  box-shadow:
    0 22px 70px rgba(23, 34, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Compatible si index.html contient déjà .gallery-frame */
.gallery-section.gallery-top > .gallery-frame {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gallery-section.gallery-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 38%),
    repeating-linear-gradient(
      90deg,
      rgba(23, 34, 28, 0.025) 0,
      rgba(23, 34, 28, 0.025) 1px,
      transparent 1px,
      transparent 34px
    );
  pointer-events: none;
}

.gallery-section.gallery-top::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(205, 242, 106, 0.42), rgba(205, 242, 106, 0) 68%);
  pointer-events: none;
}

/* Titre galerie plus premium */
.gallery-section.gallery-top .section-heading.gallery-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: end;
  margin-bottom: 22px;
}

.gallery-section.gallery-top .gallery-heading .eyebrow {
  color: var(--green);
  margin-bottom: 10px;
  letter-spacing: 0.22em;
}

.gallery-section.gallery-top .gallery-heading h2 {
  max-width: 680px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.gallery-section.gallery-top .section-intro {
  max-width: 540px;
  margin: 0 0 8px;
  color: rgba(23, 34, 28, 0.72);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

/* Lecteur d'image */
.gallery-section.gallery-top .gallery-grid {
  --gallery-gap: 20px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0;
  padding: 16px 0 24px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 18% 0%, rgba(205, 242, 106, 0.28), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 232, 0.46));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -18px 42px rgba(23, 34, 28, 0.035),
    0 18px 48px rgba(23, 34, 28, 0.10);
}

.gallery-section.gallery-top .gallery-grid::before,
.gallery-section.gallery-top .gallery-grid::after {
  width: min(130px, 20vw);
}

.gallery-section.gallery-top .gallery-grid::before {
  background: linear-gradient(
    90deg,
    rgba(255, 250, 239, 0.98) 0%,
    rgba(255, 250, 239, 0.82) 35%,
    rgba(255, 250, 239, 0) 100%
  );
}

.gallery-section.gallery-top .gallery-grid::after {
  background: linear-gradient(
    270deg,
    rgba(255, 250, 239, 0.98) 0%,
    rgba(255, 250, 239, 0.82) 35%,
    rgba(255, 250, 239, 0) 100%
  );
}

.gallery-section.gallery-top .gallery-loop-set {
  gap: var(--gallery-gap);
  padding: 6px var(--gallery-gap) 6px 0;
}

.gallery-section.gallery-top .gallery-card {
  flex-basis: clamp(280px, 30vw, 390px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 45px rgba(23, 34, 28, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.76) inset;
  transform: translateZ(0);
}

.gallery-section.gallery-top .gallery-card:hover {
  transform: translateY(-8px) scale(1.018);
  box-shadow:
    0 28px 68px rgba(23, 34, 28, 0.20),
    0 2px 0 rgba(255, 255, 255, 0.86) inset;
}

.gallery-section.gallery-top .gallery-card figure {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.gallery-section.gallery-top .gallery-card figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 18% 8%, rgba(255,255,255,0.38), transparent 24%);
  pointer-events: none;
}

.gallery-section.gallery-top .gallery-card figure::after {
  inset: 46% 0 0;
  background: linear-gradient(180deg, rgba(23, 34, 28, 0) 0%, rgba(23, 34, 28, 0.58) 100%);
}

.gallery-section.gallery-top .gallery-card img {
  transform-origin: center;
}

.gallery-section.gallery-top .gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-section.gallery-top .gallery-card-body-simple {
  left: 14px;
  right: 14px;
  bottom: 14px;
}

.gallery-section.gallery-top .gallery-cta {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 14px 34px rgba(23, 34, 28, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  font-weight: 950;
}

.gallery-section.gallery-top .gallery-cta:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.gallery-section.gallery-top .gallery-note {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(255,255,255,0.70);
  color: rgba(23, 34, 28, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

/* Le hero remonte un peu après la galerie */
.gallery-section.gallery-top + .hero {
  margin-top: 56px;
}

/* Mobile */
@media (max-width: 860px) {
  .gallery-section.gallery-top {
    width: calc(100% - 18px);
    margin-top: 14px;
    margin-bottom: 46px;
    padding: 18px;
    border-radius: 30px;
  }

  .gallery-section.gallery-top .section-heading.gallery-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .gallery-section.gallery-top .gallery-heading h2 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .gallery-section.gallery-top .section-intro {
    font-size: 15px;
  }

  .gallery-section.gallery-top .gallery-grid {
    border-radius: 26px;
    padding: 12px 0 18px;
  }

  .gallery-section.gallery-top .gallery-grid::before,
  .gallery-section.gallery-top .gallery-grid::after {
    width: 46px;
  }

  .gallery-section.gallery-top .gallery-card {
    flex-basis: min(84vw, 350px);
    border-radius: 26px;
  }

  .gallery-section.gallery-top .gallery-cta {
    min-height: 46px;
    font-size: 12px;
  }

  .gallery-section.gallery-top + .hero {
    margin-top: 44px;
  }
}

@media (max-width: 520px) {
  .hero-subtitle {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .gallery-section.gallery-top {
    padding: 14px;
    border-radius: 26px;
  }

  .gallery-section.gallery-top .gallery-note {
    font-size: 12px;
  }
}



/* =========================================================
   Makerfarm V4.13 — Galerie sobre, propre et professionnelle
   Remplace l'effet "showroom / wow" par une vitrine simple.
   ========================================================= */

/* Badge sous le grand titre : plus discret */
.hero-subtitle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 16px 0 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f7fbef;
  color: var(--green-dark);
  border: 1px solid rgba(31, 122, 77, 0.18);
  box-shadow: none;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 900;
  letter-spacing: 0;
}

/* Bloc galerie sous le menu : simple, lisible, sans effet excessif */
.gallery-section.gallery-top {
  position: relative;
  isolation: auto;
  overflow: visible;
  width: min(1160px, calc(100% - 32px));
  margin: 22px auto 58px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gallery-section.gallery-top::before,
.gallery-section.gallery-top::after,
.gallery-frame-glow {
  display: none !important;
}

/* Cadre principal : carte claire, pas de halo */
.gallery-section.gallery-top > .gallery-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 32px;
  border: 1px solid rgba(23, 34, 28, 0.10);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(23, 34, 28, 0.08);
}

/* En-tête galerie : moins gros, plus premium sobre */
.gallery-section.gallery-top .section-heading.gallery-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  margin-bottom: 18px;
}

.gallery-section.gallery-top .gallery-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--green);
  letter-spacing: 0.16em;
}

.gallery-section.gallery-top .gallery-heading h2 {
  max-width: 560px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.gallery-section.gallery-top .section-intro {
  max-width: 540px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.6;
}

/* Lecteur d'image : blanc propre, bord fin, sans gros halo */
.gallery-section.gallery-top .gallery-grid {
  --gallery-gap: 16px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0;
  padding: 10px 0 16px;
  border-radius: 26px;
  border: 1px solid rgba(23, 34, 28, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.gallery-section.gallery-top .gallery-grid::before,
.gallery-section.gallery-top .gallery-grid::after {
  width: min(82px, 14vw);
}

.gallery-section.gallery-top .gallery-grid::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.70) 46%,
    rgba(255, 255, 255, 0) 100%
  );
}

.gallery-section.gallery-top .gallery-grid::after {
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.70) 46%,
    rgba(255, 255, 255, 0) 100%
  );
}

.gallery-section.gallery-top .gallery-loop-set {
  gap: var(--gallery-gap);
  padding: 4px var(--gallery-gap) 4px 0;
}

/* Cartes : plus droites, moins "carrousel pub" */
.gallery-section.gallery-top .gallery-card {
  flex-basis: clamp(250px, 26vw, 330px);
  border-radius: 22px;
  border: 1px solid rgba(23, 34, 28, 0.08);
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 34, 28, 0.08);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-section.gallery-top .gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(23, 34, 28, 0.11);
}

.gallery-section.gallery-top .gallery-card figure {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.gallery-section.gallery-top .gallery-card figure::before {
  display: none;
}

.gallery-section.gallery-top .gallery-card figure::after {
  inset: 52% 0 0;
  background: linear-gradient(180deg, rgba(23, 34, 28, 0) 0%, rgba(23, 34, 28, 0.42) 100%);
}

.gallery-section.gallery-top .gallery-card img {
  transform-origin: center;
}

.gallery-section.gallery-top .gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-section.gallery-top .gallery-card-body-simple {
  left: 10px;
  right: 10px;
  bottom: 10px;
}

/* Bouton sur les images : plus simple, plus lisible */
.gallery-section.gallery-top .gallery-cta {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(23, 34, 28, 0.14);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 850;
}

.gallery-section.gallery-top .gallery-cta:hover {
  background: #fff;
  color: var(--green-dark);
  border-color: rgba(31, 122, 77, 0.18);
}

/* Note : simple et discrète */
.gallery-section.gallery-top .gallery-note {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(23, 34, 28, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

/* Le hero garde de l'air après la galerie */
.gallery-section.gallery-top + .hero {
  margin-top: 54px;
}

/* Mobile */
@media (max-width: 860px) {
  .gallery-section.gallery-top {
    width: calc(100% - 18px);
    margin-top: 14px;
    margin-bottom: 44px;
  }

  .gallery-section.gallery-top > .gallery-frame {
    padding: 18px;
    border-radius: 26px;
  }

  .gallery-section.gallery-top .section-heading.gallery-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .gallery-section.gallery-top .gallery-heading h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .gallery-section.gallery-top .section-intro {
    font-size: 14px;
  }

  .gallery-section.gallery-top .gallery-grid {
    border-radius: 22px;
    padding: 10px 0 14px;
  }

  .gallery-section.gallery-top .gallery-grid::before,
  .gallery-section.gallery-top .gallery-grid::after {
    width: 38px;
  }

  .gallery-section.gallery-top .gallery-card {
    flex-basis: min(78vw, 320px);
    border-radius: 20px;
  }

  .gallery-section.gallery-top .gallery-cta {
    min-height: 42px;
    font-size: 11px;
  }

  .gallery-section.gallery-top + .hero {
    margin-top: 42px;
  }
}

@media (max-width: 520px) {
  .hero-subtitle {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .gallery-section.gallery-top > .gallery-frame {
    padding: 14px;
    border-radius: 22px;
  }

  .gallery-section.gallery-top .gallery-note {
    font-size: 12px;
  }
}

/* V4.13 — galerie : suppression du message sur les images */
.gallery-card figure::after {
  display: none !important;
}

.gallery-card-body-simple {
  display: none !important;
}

.gallery-card img {
  filter: none;
}
