/* ===== Molacraft — Design tokens ===== */
:root {
  --ivory: #F7F3EC;
  --ivory-deep: #EFE8DA;
  --espresso: #2A1810;
  --espresso-soft: #4A3428;
  --brass: #B8935A;
  --brass-line: #D8CFC0;
  --ink: #211712;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, Helvetica, Arial, sans-serif;

  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brass-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { height: 52px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--espresso);
}

.main-nav { display: flex; align-items: center; gap: 34px; }

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--espresso-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { color: var(--espresso); border-color: var(--brass); }

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--espresso-soft);
}

.lang-switch a { text-decoration: none; padding: 2px 4px; }
.lang-switch a.active { color: var(--espresso); font-weight: 600; }

.cta-btn {
  display: inline-block;
  background: var(--espresso);
  color: var(--ivory) !important;
  padding: 11px 22px;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.cta-btn:hover { background: var(--espresso-soft); }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 110px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--brass);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.15;
  color: var(--espresso);
  margin: 0 0 26px;
  max-width: 13ch;
}

.hero p {
  max-width: var(--measure);
  color: var(--espresso-soft);
  font-size: 1.08rem;
  margin: 0 0 34px;
}

.hero-actions { display: flex; gap: 18px; align-items: center; }

.link-quiet {
  text-decoration: none;
  color: var(--espresso);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  font-size: 0.95rem;
}

.hero-visual {
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--espresso) 0%, var(--espresso-soft) 55%, #6b4c38 100%);
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.placeholder-tag {
  color: var(--ivory);
  opacity: 0.75;
  font-size: 0.8rem;
  border: 1px solid rgba(247,243,236,0.4);
  padding: 6px 12px;
  border-radius: 2px;
}

/* ===== Heritage strip ===== */
.heritage {
  border-top: 1px solid var(--brass-line);
  border-bottom: 1px solid var(--brass-line);
  padding: 46px 0;
}

.heritage .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.heritage-item { text-align: left; }

.heritage-item .year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--espresso);
  display: block;
  margin-bottom: 6px;
}

.heritage-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--espresso-soft);
}

/* ===== Section shared ===== */
section.block { padding: 96px 0; }

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 30px;
}

.block-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--espresso);
  margin: 0;
  max-width: 16ch;
}

.block-head p {
  max-width: 40ch;
  color: var(--espresso-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* ===== About teaser ===== */
.about-block .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.about-visual {
  aspect-ratio: 1 / 1;
  background: var(--ivory-deep);
  border: 1px solid var(--brass-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual .placeholder-tag {
  color: var(--espresso-soft);
  border-color: var(--brass-line);
}

.about-text p {
  color: var(--espresso-soft);
  max-width: var(--measure);
  margin: 0 0 20px;
}

.about-text p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--espresso);
  line-height: 1.5;
}

/* ===== Collections grid ===== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--brass-line);
  border: 1px solid var(--brass-line);
}

.collection-card {
  background: var(--ivory);
  padding: 40px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}

.collection-visual {
  height: 130px;
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-visual .placeholder-tag {
  color: var(--espresso-soft);
  border-color: var(--brass-line);
  font-size: 0.72rem;
}

.collection-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--espresso);
  margin: 0;
  font-weight: 500;
}

.collection-card p {
  margin: 0;
  color: var(--espresso-soft);
  font-size: 0.92rem;
}

.collection-card .see-more {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--brass);
}

/* ===== Quote / process ===== */
.process-block { background: var(--espresso); color: var(--ivory); }

.process-block .block-head h2,
.process-block .block-head p { color: var(--ivory); }

.process-block .block-head p { opacity: 0.75; }

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

.process-steps li {
  list-style: none;
  padding-top: 20px;
  border-top: 1px solid rgba(247,243,236,0.25);
}

.process-steps .step-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 10px;
}

.process-steps p { margin: 0; opacity: 0.75; font-size: 0.92rem; }

/* ===== Final CTA ===== */
.final-cta { text-align: left; }

.final-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  color: var(--espresso);
  margin: 0;
  max-width: 18ch;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--brass-line);
  padding: 56px 0 40px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  font-size: 0.85rem;
  color: var(--espresso);
  margin: 0 0 24px;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 20px; }
.site-footer a { text-decoration: none; color: var(--espresso-soft); font-size: 0.9rem; }
.site-footer a:hover { color: var(--espresso); }

.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid var(--brass-line);
  font-size: 0.8rem;
  color: var(--espresso-soft);
  display: flex;
  justify-content: space-between;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .main-nav { display: none; }
  .hero { padding: 60px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; max-width: none; }
  .heritage .wrap { grid-template-columns: 1fr; gap: 26px; }
  .about-block .wrap { grid-template-columns: 1fr; gap: 34px; }
  .collections-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 26px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .block-head { flex-direction: column; align-items: flex-start; }
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ===== Skip to content (keyboard accessibility) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--espresso);
  color: var(--ivory);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 0 0 3px 0;
}

.skip-link:focus {
  left: 0;
}

/* ===== Category sub-nav (produits/products page) ===== */
.category-subnav {
  position: sticky;
  top: 84px;
  z-index: 15;
  background: rgba(247, 243, 236, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brass-line);
}

.category-subnav .wrap {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.category-subnav a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--espresso-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.category-subnav a:hover,
.category-subnav a.active {
  color: var(--espresso);
  border-color: var(--brass);
}

@media (max-width: 860px) {
  .category-subnav { top: 0; }
}

/* ===== Sub-page hero ===== */
.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--brass-line);
}

.page-hero .hero-eyebrow { margin-bottom: 14px; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--espresso);
  margin: 0 0 18px;
  max-width: 20ch;
}

.page-hero p { max-width: var(--measure); color: var(--espresso-soft); font-size: 1.05rem; margin: 0; }

/* ===== Product category sections ===== */
.category-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--brass-line);
}

.category-section:last-of-type { border-bottom: none; }

.category-intro { max-width: 62ch; margin-bottom: 40px; }

.category-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--espresso);
  margin: 0 0 14px;
}

.category-intro p { color: var(--espresso-soft); margin: 0; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.item-card { text-decoration: none; }

.item-visual {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--brass-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.item-visual .placeholder-tag {
  color: var(--espresso-soft);
  border-color: var(--brass-line);
  font-size: 0.68rem;
  text-align: center;
}

.item-card h4 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 0;
}

.personalisation-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--ivory-deep);
  border-left: 2px solid var(--brass);
  max-width: 62ch;
}

.personalisation-note p { margin: 0; color: var(--espresso-soft); font-size: 0.92rem; }

/* ===== Réalisations gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gallery-card {
  border: 1px solid var(--brass-line);
  background: var(--ivory);
}

.gallery-visual {
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-visual .placeholder-tag {
  color: var(--espresso-soft);
  border-color: var(--brass-line);
  font-size: 0.72rem;
}

.gallery-body { padding: 22px; }

.gallery-body .tag {
  font-size: 0.78rem;
  color: var(--brass);
  margin: 0 0 8px;
}

.gallery-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--espresso);
  margin: 0 0 8px;
  font-weight: 500;
}

.gallery-body p { margin: 0; color: var(--espresso-soft); font-size: 0.88rem; }

.gallery-note {
  margin-top: 36px;
  color: var(--espresso-soft);
  font-size: 0.88rem;
  max-width: 62ch;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--espresso);
  margin: 0 0 20px;
  font-weight: 500;
}

.contact-detail { margin-bottom: 22px; }

.contact-detail .label {
  display: block;
  font-size: 0.78rem;
  color: var(--brass);
  margin-bottom: 4px;
}

.contact-detail a, .contact-detail span {
  color: var(--espresso-soft);
  text-decoration: none;
  font-size: 0.98rem;
}

form.quote-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--espresso-soft);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brass-line);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.submit-btn {
  align-self: flex-start;
  background: var(--espresso);
  color: var(--ivory);
  border: none;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.submit-btn:hover { background: var(--espresso-soft); }

.form-note { font-size: 0.8rem; color: var(--espresso-soft); opacity: 0.8; }

/* ===== Legal page ===== */
.legal-content { max-width: 72ch; }

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--espresso);
  margin: 36px 0 12px;
  font-weight: 500;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p { color: var(--espresso-soft); margin: 0 0 14px; }

.legal-placeholder {
  background: var(--ivory-deep);
  border-left: 2px solid var(--brass);
  padding: 2px 6px;
  color: var(--espresso);
}

@media (max-width: 860px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Personalisation banner ===== */
.personalisation-banner {
  background: var(--espresso);
  color: var(--ivory);
  padding: 30px 0;
}

.personalisation-banner .wrap {
  text-align: center;
}

.personalisation-banner p {
  margin: 0;
  font-size: 0.98rem;
  max-width: 68ch;
  margin: 0 auto;
  opacity: 0.92;
}

/* ===== Article pages ===== */
.article-content { max-width: 68ch; }

.article-content p {
  color: var(--espresso-soft);
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--espresso);
  margin: 40px 0 14px;
  font-weight: 500;
}

.article-content h2:first-child { margin-top: 0; }

.article-meta {
  font-size: 0.85rem;
  color: var(--brass);
  margin-bottom: 10px;
}

/* ===== Product photo hover zoom ===== */
.item-visual {
  overflow: hidden;
}

.item-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.item-card:hover .item-visual img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .item-visual img { transition: none; }
}

/* ===== "Ils nous font confiance" logo marquee ===== */
.trust-section { padding: 90px 0; border-top: 1px solid var(--brass-line); }

.trust-section .block-head { margin-bottom: 40px; }
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: scroll-logos 28s linear infinite;
}

.logo-track .logo-slot {
  height: 56px;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--brass-line);
  color: var(--espresso-soft);
  font-size: 0.72rem;
  text-align: center;
  flex-shrink: 0;
}

.logo-track img {
  max-height: 56px;
  max-width: 140px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; overflow-x: auto; }
}

/* ===== Catalogue download ===== */
.catalogue-section {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--brass-line);
}

.catalogue-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--espresso);
  margin: 0 0 10px;
}

.catalogue-section p {
  color: var(--espresso-soft);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.item-card p {
  margin: 6px 0 0;
  color: var(--espresso-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.item-card p.pending {
  font-style: italic;
  opacity: 0.55;
}

/* ===== Example tags (coffrets) ===== */
.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.example-tags .tag-pill {
  border: 1px solid var(--brass-line);
  color: var(--espresso-soft);
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 2px;
}

.examples-label {
  font-size: 0.85rem;
  color: var(--brass);
  margin: 32px 0 0;
}

/* ===== Article visual ===== */
.article-visual {
  aspect-ratio: 16 / 7;
  background: var(--ivory-deep);
  border: 1px solid var(--brass-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-visual .placeholder-tag {
  color: var(--espresso-soft);
  border-color: var(--brass-line);
}

@media (max-width: 860px) {
  .article-visual { aspect-ratio: 4 / 3; }
}

/* ===== Photo carousel (rotating images in the same slot) ===== */
.photo-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.is-active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

/* ===== Consent checkbox ===== */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--espresso);
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 0.88rem;
  color: var(--espresso-soft);
  line-height: 1.5;
}

/* ===== WhatsApp contact block ===== */
.whatsapp-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--brass-line);
}

.whatsapp-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--espresso);
  margin: 0 0 10px;
  font-weight: 500;
}

.whatsapp-block p {
  color: var(--espresso-soft);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
  border: 1px solid var(--brass-line);
  padding: 11px 20px;
  font-size: 0.92rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.whatsapp-link:hover { border-color: var(--brass); }

.whatsapp-link svg { flex-shrink: 0; }

/* Footer logo keeps its intrinsic proportions and balanced monogram placement. */
.footer-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
  object-position: left top;
  align-self: start;
}

/* ===== Mobile nav toggle (hamburger) ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--espresso);
  align-items: center;
  justify-content: center;
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 22px 24px;
    overflow-y: auto;
    z-index: 30;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--brass-line);
    font-size: 1.05rem;
  }
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--espresso);
  margin: 0 0 20px;
}

/* ===== Page fade-in ===== */
body {
  animation: page-fade-in 0.45s ease both;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Page loading bar ===== */
.page-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: var(--brass);
  z-index: 999;
  transition: width 0.25s ease, opacity 0.35s ease;
}

.page-loading-bar.is-done {
  width: 100%;
  opacity: 0;
}

/* ===== Button press feedback ===== */
.cta-btn, .submit-btn {
  transition: background 0.2s ease, transform 0.12s ease;
}

.cta-btn:active, .submit-btn:active {
  transform: scale(0.96);
}

/* ===== Card hover lift (on top of existing photo zoom) ===== */
.collection-card, .item-card, .gallery-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collection-card:hover, .gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(42, 24, 16, 0.10);
}

.item-card:hover {
  transform: translateY(-3px);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Active nav link ===== */
.main-nav a.active {
  color: var(--espresso);
  border-color: var(--brass);
}

/* ===== Back-to-top button ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--ivory);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 40;
  box-shadow: 0 6px 18px rgba(42, 24, 16, 0.2);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover { background: var(--espresso-soft); }

/* ===== Form field live validation ===== */
.field.has-error input {
  border-color: #b64b3a;
}

.field-error-msg {
  color: #b64b3a;
  font-size: 0.78rem;
  margin-top: 5px;
  display: none;
}

.field.has-error .field-error-msg { display: block; }

.submit-btn[disabled] {
  opacity: 0.65;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .collection-card, .item-card, .gallery-card { transition: none; }
}

/* ===== Product detail page ===== */
.product-detail { padding: 56px 0 96px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--espresso-soft);
  margin: 0 0 32px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--espresso-soft);
  border-bottom: 1px solid var(--brass-line);
}

.breadcrumb a:hover { color: var(--espresso); border-color: var(--brass); }

.breadcrumb span { margin: 0 8px; color: var(--brass-line); }

.breadcrumb span#pd-name-crumb,
.breadcrumb span:last-child { margin-left: 0; color: var(--espresso); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.product-gallery { position: sticky; top: 110px; }

.product-main-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
  border: 1px solid var(--brass-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-main-photo .placeholder-tag {
  color: var(--espresso-soft);
  border-color: var(--brass-line);
  font-size: 0.78rem;
}

.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--brass-line);
  background: rgba(247, 243, 236, 0.9);
  color: var(--espresso);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pd-nav:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

.pd-prev { left: 14px; }
.pd-next { right: 14px; }

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pd-thumb {
  width: 76px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--brass-line);
  background: var(--ivory-deep);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumb:hover { opacity: 1; }

.pd-thumb.is-active { opacity: 1; border-color: var(--brass); }

.product-info { padding-top: 4px; }

.pd-eyebrow {
  font-size: 0.85rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.product-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--espresso);
  margin: 0 0 20px;
}

.pd-desc {
  color: var(--espresso-soft);
  font-size: 1.02rem;
  max-width: var(--measure);
  margin: 0;
}

.product-info .personalisation-note { max-width: none; }

.pd-cta {
  margin-top: 30px;
  margin-right: 20px;
}

.pd-back {
  display: inline-block;
  margin-top: 30px;
}

@media (max-width: 860px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-gallery { position: static; }
  .product-info h1 { font-size: 1.7rem; }
}

@media (max-width: 480px) { .site-header .wrap { gap: 8px; padding: 0 12px; } .site-header .cta-btn { padding: 8px 10px; font-size: .75rem; } .site-header .brand { flex-shrink: 0; } }

/* Product photography: seamless white surrounds, full uncropped products. */
.item-visual,
.item-visual .photo-carousel,
.item-visual .carousel-slide,
.product-main-photo,
.pd-thumb {
  background: #fff;
}
.item-visual img,
.item-visual .carousel-slide img,
.product-main-photo img,
.pd-thumb img {
  object-fit: contain;
}
.item-card:hover .item-visual img {
  transform: none;
}
.pd-thumb { opacity: 1; }

/* Homepage photo slideshows. */
.hero-visual:has(.home-carousel) { padding: 0; overflow: hidden; }
.about-visual:has(.home-carousel) { overflow: hidden; }
.home-carousel .carousel-slide { pointer-events: none; }
.home-carousel .carousel-slide.is-active { pointer-events: auto; }
/* Editorial photographs retain their complete landscape composition. */
.article-visual:has(> img) {
  aspect-ratio: 3 / 2;
  max-width: 1000px;
  margin-inline: auto;
}

/* Collection slideshows retain complete product photographs. */
.collection-slideshow { height: auto; aspect-ratio: 3 / 2; background: #fff; overflow: hidden; }
.collection-slideshow .carousel-slide > a { display: block; width: 100%; height: 100%; }
.product-slideshow .carousel-slide img { object-fit:contain; background:#fff; }
.collection-slideshow img { object-fit: contain; }
.collection-card h3 a { color: inherit; text-decoration: none; }

/* Continuous client logo row */
.client-slider { min-width:0; }

.client-track { display:flex; width:max-content; animation:none; }
.client-group { display:flex; gap:24px; padding-right:24px; flex-shrink:0; }
.client-logo-card { flex:0 0 240px; width:240px; margin:0; padding:24px 18px; background:#fff; border:1px solid var(--brass-line); text-align:center; }
.client-logo-image { height:110px; display:flex; align-items:center; justify-content:center; }
.client-logo-image img { max-width:100%; max-height:105px; width:auto; height:auto; object-fit:contain; }
.client-logo-card figcaption { margin-top:18px; font-size:.86rem; line-height:1.5; color:var(--espresso-soft); }
.client-pause { display:block; margin:20px auto 0; padding:9px 16px; border:1px solid var(--brass-line); background:transparent; color:var(--espresso); font:inherit; cursor:pointer; }
.client-marquee:hover .client-track, .client-marquee:focus-within .client-track, .client-slider.is-paused .client-track { animation-play-state:paused; }
@keyframes client-scroll { to { transform:translateX(-50%); } }
@media(max-width:600px) { .client-logo-card { width:210px; flex-basis:210px; } }
@media(prefers-reduced-motion:reduce) { .client-track { animation:none; } .client-marquee { overflow-x:auto; } .client-group[aria-hidden] { display:none; } .client-pause { display:none; } }

.client-logo-image:has(img[src$="fm6-environnement.png"]) { background:#34271f; padding:10px; }

.pd-format { margin:26px 0; padding-top:22px; border-top:1px solid var(--brass-line); }
.pd-format[hidden] { display:none; }
.pd-format h2 { font-size:1.15rem; margin:0 0 10px; }
.pd-format-note { font-size:.86rem; line-height:1.65; color:var(--espresso-soft); margin:12px 0 0; }

/* Test release: accessible text and scrollable client references. */
.hero-eyebrow,.pd-eyebrow { color:var(--espresso-soft); }
.quote-delivery-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
.ordering-info { margin:24px 0;line-height:1.65; }
.client-controls { display:flex;justify-content:flex-end;gap:12px;margin-bottom:16px; }
.client-controls button { min-width:44px;min-height:44px;background:transparent;border:1px solid var(--espresso-soft);color:var(--espresso);font-size:1.25rem;cursor:pointer; }
.client-marquee { overflow-x:auto;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch; }
.client-group[aria-hidden="true"] { display:none; }
.pd-nav { width:44px;height:44px; }
@media(max-width:600px) { .quote-delivery-fields { grid-template-columns:1fr; } }

.client-pause { display:block; }
@media(prefers-reduced-motion:reduce) { .client-pause { display:none; } }

.workshop-advice { padding:24px;background:var(--ivory-deep);border-left:3px solid var(--espresso-soft);margin:32px 0; }
.workshop-advice h2 { margin-top:0; }

/* Preserve the previous editorial frame; intrinsic image sizes cannot enlarge it. */
.article-visual:has(> img) { position:relative; width:100%; min-height:0; }
.article-visual > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

.gallery-visual:has(> img) { position:relative; overflow:hidden; min-height:0; }
.gallery-visual > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }

/* Product card galleries: controls are siblings of the product link. */
.product-card-shell { position:relative; min-width:0; }
.product-card-shell .item-card { display:block; }
.card-gallery-controls { position:absolute; top:0; left:0; width:100%; aspect-ratio:4 / 3; display:flex; align-items:center; justify-content:space-between; padding:0 6px; pointer-events:none; }
.card-gallery-controls button { width:44px; height:44px; border:1px solid var(--brass-line); border-radius:50%; background:rgba(255,255,255,.92); color:var(--espresso); font-size:1.65rem; cursor:pointer; pointer-events:none; opacity:0; display:flex; align-items:center; justify-content:center; transition:opacity .15s ease; }
.photo-edge-left .card-photo-prev, .photo-edge-right .card-photo-next, .card-gallery-controls button:focus-visible { opacity:1; pointer-events:auto; }
.card-gallery-controls button:focus-visible { outline:2px solid var(--espresso); outline-offset:3px; }
@media (hover:none), (pointer:coarse) {
  .card-gallery-controls button { opacity:1; pointer-events:auto; }
}
.card-gallery-controls button:hover { background:var(--espresso); color:#fff; }
.item-visual .carousel-slide { pointer-events:none; }

/* Compact client logo strip on the home page. */
.home-trust { padding:40px 0; }
.home-trust .block-head { margin-bottom:16px; }
.home-trust .block-head h2 { font-size:clamp(1.4rem,2.5vw,1.9rem); }
.home-trust .block-head p { margin-bottom:0; }
.home-trust .client-controls { margin-bottom:10px; gap:8px; }
.home-trust .client-group { gap:16px; padding-right:16px; }
.home-trust .client-logo-card { width:176px; flex-basis:176px; padding:14px 12px; }
.home-trust .client-logo-image { height:60px; }
.home-trust .client-logo-image img { max-height:60px; }
.home-trust .client-logo-card figcaption { margin-top:10px; font-size:.72rem; line-height:1.4; }
.home-trust .client-pause { margin:10px auto; padding:6px 12px; font-size:.75rem; }
.home-trust .see-more { display:inline-block; margin-top:12px; font-size:.85rem; }
@media(max-width:600px) {
  .home-trust { padding:30px 0; }
  .home-trust .client-logo-card { width:150px; flex-basis:150px; }
}

/* FAQ: native accordions remain usable without JavaScript. */
.faq-hero p:last-child { max-width:700px; }
.faq-content { max-width:980px; padding-top:40px; padding-bottom:64px; }
.faq-topics { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; }
.faq-topics a { padding:10px 16px; border:1px solid var(--brass-line); color:var(--espresso); text-decoration:none; font-size:.9rem; }
.faq-topics a:hover { background:var(--ivory-deep); }
.faq-topics a:focus-visible,.faq-item summary:focus-visible { outline:2px solid var(--espresso); outline-offset:4px; }
.faq-group { margin-bottom:40px; scroll-margin-top:110px; }
.faq-group h2 { font-family:var(--font-display); font-size:clamp(1.4rem,3vw,1.8rem); font-weight:500; margin:0 0 18px; }
.faq-item { border-bottom:1px solid var(--brass-line); }
.faq-item:first-of-type { border-top:1px solid var(--brass-line); }
.faq-item summary { display:flex; align-items:center; justify-content:space-between; gap:18px; list-style:none; cursor:pointer; padding:20px 0; font-weight:500; color:var(--espresso); line-height:1.5; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; flex-shrink:0; font-size:1.5rem; font-weight:400; }
.faq-item[open] summary::after { content:'−'; }
.faq-answer { padding:0 34px 20px 0; color:var(--espresso-soft); line-height:1.8; }
.faq-answer p { margin:0; }
.faq-answer a { color:inherit; text-underline-offset:3px; overflow-wrap:anywhere; }
.faq-contact { margin-top:48px; padding:30px; background:var(--ivory-deep); border:1px solid var(--brass-line); }
.faq-contact h2 { font-family:var(--font-display); font-weight:500; font-size:1.6rem; margin:0 0 12px; }
.faq-contact p { margin:0 0 22px; }
@media(max-width:600px) {
  .faq-content { padding-top:28px; padding-bottom:40px; }
  .faq-topics { flex-direction:column; margin-bottom:30px; }
  .faq-item summary { padding:18px 0; }
  .faq-answer { padding-right:0; }
  .faq-contact { padding:22px; }
}

.product-reference,.pd-reference { display:block; color:var(--espresso-soft); font-size:.8rem; letter-spacing:.04em; margin:8px 0; }


/* Homepage product photo strip */
.hero-products { grid-column: 1 / -1; min-width: 0; margin: -40px 0 -18px; }
.hero-products-window { width: 100%; overflow: hidden; }
.hero-products-track, .hero-products-group { display: flex; width: max-content; }
.hero-products-track { animation: hero-products-scroll 38s linear infinite; will-change: transform; }
.hero-products-group { gap: 16px; padding-right: 16px; }
.hero-products-window:hover .hero-products-track,
.hero-products-window:focus-within .hero-products-track { animation-play-state: paused; }
.hero-product-card { display: flex; flex: 0 0 205px; width: 205px; flex-direction: column; color: var(--espresso); text-decoration: none; }
.hero-product-card img { width: 100%; height: 142px; padding: 0; object-fit: contain; background: transparent; border: 0; border-radius: 0; }
.hero-product-card span { display: flex; min-height: 42px; align-items: center; justify-content: center; padding: 6px 8px 0; text-align: center; font-size: .82rem; line-height: 1.35; }
.hero-product-card:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
@keyframes hero-products-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 860px) { .hero-products { margin: -16px 0 6px; } }
@media (max-width: 600px) {
  .hero-products { margin: -12px 0 12px; }
  .hero-products-group { gap: 12px; padding-right: 12px; }
  .hero-product-card { flex-basis: 160px; width: 160px; }
  .hero-product-card img { height: 116px; padding: 0; }
  .hero-product-card span { min-height: 38px; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-products-window { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero-products-window::-webkit-scrollbar { display: none; }
  .hero-products-track { animation: none; will-change: auto; }
}


/* Product photos: remove white frames and blend letterboxing with the page. */
.collection-slideshow { background: var(--ivory); }
.collection-slideshow .carousel-slide,
.collection-slideshow .carousel-slide img,
.product-slideshow .carousel-slide img { background: var(--ivory); }
.item-visual,
.product-main-photo { background: var(--ivory); border: 0; }
.item-visual .photo-carousel,
.item-visual .carousel-slide,
.product-main-photo { background-color: var(--ivory); }
