/* ==========================================================================
   Mozaic — Cloisons amovibles en bois
   ========================================================================== */

:root {
  --wood-dark: #6b4726;
  --wood-mid: #a6763f;
  --wood-light: #d9b784;
  --wood-lighter: #f4ece0;
  --glass: #d8e2e0;
  --charcoal: #1a1611;
  --charcoal-hover: #2c251c;
  --ink: #1c1a17;
  --ink-soft: #625c54;
  --bg: #ffffff;
  --bg-subtle: #f7f6f3;
  --white: #ffffff;
  --border: #e6e3dc;

  --font-display: "Inter", var(--font-base);
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1160px;
  --radius: 4px;
  --shadow: 0 14px 34px rgba(26, 22, 17, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

ul, ol { padding: 0; margin: 0; list-style: none; }

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 12px;
}

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--charcoal-hover);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ---------------- Top bar ---------------- */
.top-bar {
  background: var(--charcoal);
  color: var(--wood-lighter);
  font-size: 0.82rem;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 9px 24px;
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(246, 239, 229, 0.9);
  font-weight: 600;
  transition: color 0.15s ease;
}

.top-bar a:hover { color: var(--white); }

.top-bar svg { width: 15px; height: 15px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-right: auto;
}

.logo-mark { color: var(--wood-dark); display: inline-flex; }

.mobile-panel {
  display: contents;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--charcoal);
  border-color: var(--wood-mid);
}

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 48px;
  overflow: hidden;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wood-dark);
  font-weight: 700;
}

.hero-visual {
  border-radius: var(--radius);
}

.hero-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow));
  overflow: hidden;
}

.hero-visual-caption {
  margin: 14px 4px 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

.hero-panel {
  transform-box: fill-box;
}

.panel-1 { animation: mzPanel1 13s ease-in-out infinite; }
.panel-2 { animation: mzPanel2 13s ease-in-out infinite; }
.panel-3 { animation: mzPanel3 13s ease-in-out infinite; }
.panel-4 { animation: mzPanel4 13s ease-in-out infinite; }

/* Outer panels (1 & 4): slide out to the frame edges when the partition opens */
@keyframes mzPanel1 {
  0%, 15%   { transform: translateX(0); }
  30%, 45%  { transform: translateX(-8px); }
  60%, 100% { transform: translateX(0); }
}
@keyframes mzPanel4 {
  0%, 15%   { transform: translateX(0); }
  30%, 45%  { transform: translateX(12px); }
  60%, 100% { transform: translateX(0); }
}

/* Inner panels (2 & 3): stack behind the outer ones when open, and panel 2
   alone slides mid-cycle to demonstrate reconfiguring the layout */
@keyframes mzPanel2 {
  0%, 15%   { transform: translateX(0); }
  30%, 45%  { transform: translateX(-93px); }
  60%, 75%  { transform: translateX(0); }
  85%, 95%  { transform: translateX(-42px); }
  100%      { transform: translateX(0); }
}
@keyframes mzPanel3 {
  0%, 15%   { transform: translateX(0); }
  30%, 45%  { transform: translateX(97px); }
  60%, 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel { animation: none; }
}

/* ---------------- Audience strip ---------------- */
.audience {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.audience-label {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

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

.audience-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: center;
}

.audience-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--wood-mid);
}
.audience-icon svg { width: 22px; height: 22px; }

/* ---------------- Product grid ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(26, 22, 17, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-visual {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

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

.product-kicker {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin: -4px 0 10px;
}

.product-specs {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.product-specs li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.product-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wood-mid);
}

/* ---------------- Options ---------------- */
.options-block {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.options-title {
  font-size: 1rem;
  margin-bottom: 24px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 24px;
}

.option-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.option-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wood-lighter);
  color: var(--wood-dark);
}
.option-icon svg { width: 20px; height: 20px; }

.option-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.option-item p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------------- Comparison table ---------------- */
.compare-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.compare-table td a {
  color: var(--wood-dark);
}

.compare-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------------- Gamme detail ---------------- */
.gamme-detail-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.gamme-detail-reverse .gamme-detail-visual { order: 2; }
.gamme-detail-reverse .gamme-detail-text { order: 1; }

.gamme-detail-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gamme-specs {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gamme-specs li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.gamme-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wood-mid);
}

.gamme-specs strong {
  color: var(--ink);
}

/* ---------------- Advantages ---------------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.advantage-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--wood-lighter);
  color: var(--wood-dark);
  margin-bottom: 16px;
}
.advantage-icon svg { width: 22px; height: 22px; }

/* ---------------- Process ---------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 8px;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

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

.gallery-item {
  margin: 0;
}

.gallery-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.gallery-visual svg { width: 34px; height: 34px; }

.gallery-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.gallery-visual img:hover {
  transform: scale(1.03);
}

.gallery-item figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.gallery-more {
  display: flex;
  margin: 40px auto 0;
  width: fit-content;
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 13, 0.94);
  padding: 60px 80px;
}

.lightbox.open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 16px;
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  padding: 10px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 18px;
  right: 20px;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------------- About ---------------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* ---------------- Contact ---------------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-simple {
  max-width: 640px;
}

.contact-cta {
  margin-top: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  transition: border-color 0.15s ease;
  color: var(--ink);
}

.contact-detail svg { width: 18px; height: 18px; color: var(--wood-mid); flex-shrink: 0; }

.contact-detail:hover {
  border-color: var(--wood-mid);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

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

.form-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-base);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--ink);
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--wood-mid);
  background: var(--white);
}

.form-submit {
  width: 100%;
  border: none;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 14px 0 0;
}

.form-note.success {
  color: var(--wood-dark);
  font-weight: 600;
}

/* ---------------- FAQ ---------------- */
.faq-list {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--wood-mid);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 22px;
  margin: -8px 0 0;
  max-width: 68ch;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--wood-lighter);
  padding: 48px 0 24px;
}

.site-footer .logo { color: var(--white); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand p {
  color: rgba(246, 239, 229, 0.75);
  max-width: 320px;
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-content: start;
  justify-content: flex-end;
}

.footer-nav a {
  color: rgba(246, 239, 229, 0.85);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(246, 239, 229, 0.6);
  margin: 20px 0 0;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner,
  .about-inner,
  .contact-inner,
  .gamme-detail-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
  .hero-svg { max-width: 360px; margin: 0 auto; }

  .gamme-detail-reverse .gamme-detail-visual,
  .gamme-detail-reverse .gamme-detail-text {
    order: 0;
  }

  .product-grid,
  .advantages-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .top-bar { display: none; }

  .mobile-panel { display: none; }

  .menu-toggle { display: flex; }

  .site-header.nav-open .mobile-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--border);
  }

  .site-header.nav-open .main-nav {
    flex-direction: column;
    gap: 14px;
  }

  .site-header.nav-open .nav-cta {
    justify-content: center;
  }

  .product-grid,
  .advantages-grid,
  .process-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .form-row { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }

  .lightbox { padding: 24px 16px; }
  .lightbox-prev, .lightbox-next { font-size: 2rem; padding: 6px; }
  .lightbox-close { top: 10px; right: 12px; }
}
