/* =========================================
   MURO DECO — Design System
   Palette extraite du logo : noir + or
   ========================================= */

:root {
  /* Colors */
  --color-black: #0A0A0A;
  --color-ink: #1A1A1A;
  --color-charcoal: #2C2C2C;
  --color-gold: #B8924C;
  --color-gold-light: #D4B574;
  --color-gold-dark: #8E6F35;
  --color-cream: #F5EFE3;
  --color-off-white: #FAF7F2;
  --color-white: #FFFFFF;
  --color-border: rgba(184, 146, 76, 0.2);
  --color-muted: #6B6B6B;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 3rem;
  --fs-3xl: 4.5rem;
  --fs-hero: clamp(2.5rem, 7vw, 5.5rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-width: 1280px;
  --max-width-content: 960px;

  /* Shadows */
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 24px rgba(184, 146, 76, 0.25);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-base); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-black);
}
h1 { font-size: var(--fs-hero); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-block;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section { padding: var(--sp-24) 0; }
.section-narrow { max-width: var(--max-width-content); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t-base);
}
.site-header.scrolled { background: rgba(10, 10, 10, 0.95); }
.site-header.scrolled .nav-link,
.site-header.scrolled .brand-name { color: var(--color-off-white); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
  transition: color var(--t-base);
}

.nav-links {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}
.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  position: relative;
  padding: var(--sp-2) 0;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--t-base);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--color-gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-black);
  transition: all var(--t-base);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--color-black);
    flex-direction: column;
    padding: var(--sp-8);
    gap: var(--sp-6);
    transform: translateY(-150%);
    transition: transform var(--t-slow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .nav-link { color: var(--color-off-white); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-8);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-black);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  color: var(--color-off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  color: var(--color-off-white);
  border-color: var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-black);
}
.btn-ghost {
  color: var(--color-black);
  border-color: var(--color-black);
}
.btn-ghost:hover { background: var(--color-black); color: var(--color-off-white); }

.btn .arrow {
  width: 16px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width var(--t-base);
}
.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg picture, .signature-img picture, .ba-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  to { transform: scale(1.12); }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(10, 10, 10, 0.7) 60%,
    rgba(10, 10, 10, 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-off-white);
  padding: var(--sp-32) var(--sp-6) var(--sp-24);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-content h1 {
  color: var(--color-off-white);
  margin-bottom: var(--sp-6);
  max-width: 16ch;
}
.hero-content h1 .gold { color: var(--color-gold-light); font-style: italic; }
.hero-content p {
  font-size: var(--fs-md);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
  color: rgba(250, 247, 242, 0.85);
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-gold-light);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: var(--color-gold);
  margin: var(--sp-3) auto 0;
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  background: var(--color-black);
  color: var(--color-off-white);
  padding: var(--sp-32) 0 var(--sp-16);
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--color-gold);
}
.page-hero h1 { color: var(--color-off-white); margin-top: var(--sp-4); }
.page-hero p { color: rgba(250, 247, 242, 0.7); margin-top: var(--sp-4); max-width: 60ch; margin-inline: auto; }

/* Services */
.services {
  background: var(--color-off-white);
}
.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}
.section-header h2 { margin-top: var(--sp-3); }
.section-header p { color: var(--color-muted); margin-top: var(--sp-4); max-width: 60ch; margin-inline: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
}
.service-card {
  padding: var(--sp-12) var(--sp-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-gold);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-6);
  color: var(--color-gold);
}
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.service-card p { color: var(--color-muted); font-size: var(--fs-sm); }

/* About / signature */
.signature {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}
.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
@media (max-width: 768px) { .signature-grid { grid-template-columns: 1fr; } }
.signature-img img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.signature-text h2 { margin-bottom: var(--sp-6); }
.signature-text p { color: var(--color-charcoal); margin-bottom: var(--sp-4); }
.signature-text .eyebrow { margin-bottom: var(--sp-4); }

/* Stats / numbers */
.stats {
  background: var(--color-black);
  color: var(--color-off-white);
  padding: var(--sp-16) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-8);
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--color-gold-light);
  font-weight: 400;
  display: block;
  line-height: 1;
}
.stat-number.stat-text {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  white-space: nowrap;
  font-style: italic;
}
.stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-top: var(--sp-3);
  display: block;
}

/* CTA Banner */
.cta-banner {
  background: var(--color-black);
  color: var(--color-off-white);
  text-align: center;
  padding: var(--sp-24) var(--sp-6);
}
.cta-banner h2 {
  color: var(--color-off-white);
  margin-bottom: var(--sp-6);
}
.cta-banner h2 em { color: var(--color-gold-light); font-style: italic; }
.cta-banner p {
  max-width: 50ch;
  margin: 0 auto var(--sp-8);
  color: rgba(250, 247, 242, 0.7);
}

/* Before/After Slider */
.realisations-grid {
  display: grid;
  gap: var(--sp-24);
}
.ba-card { display: flex; flex-direction: column; gap: var(--sp-6); }
.ba-card h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.ba-card .eyebrow { color: var(--color-gold); }

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: var(--color-black);
  border: 1px solid var(--color-border);
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
.ba-img-after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: clip-path 80ms linear;
  will-change: clip-path;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-gold);
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 80ms linear;
  will-change: left;
}
.ba-handle::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 6px rgba(10, 10, 10, 0.2), var(--shadow-medium);
}
.ba-handle::after {
  content: '⇆';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-black);
  font-size: 20px;
  font-weight: 700;
  z-index: 2;
}
.ba-label {
  position: absolute;
  top: var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-off-white);
  background: rgba(10, 10, 10, 0.7);
  padding: var(--sp-2) var(--sp-4);
  z-index: 3;
  pointer-events: none;
}
.ba-label-before { left: var(--sp-4); }
.ba-label-after { right: var(--sp-4); color: var(--color-gold-light); }

.ba-card-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
}
.ba-card-info p { color: var(--color-muted); max-width: 50ch; }
.ba-tags {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.ba-tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--sp-12); } }

.contact-info { display: flex; flex-direction: column; gap: var(--sp-8); }
.contact-block { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-gold);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-block h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.contact-block p, .contact-block a {
  color: var(--color-ink);
  font-size: var(--fs-md);
  line-height: 1.5;
}
.contact-block a:hover { color: var(--color-gold); }

#map {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid var(--color-border);
  background: var(--color-cream);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--color-white);
  padding: var(--sp-12);
  border: 1px solid var(--color-border);
}
@media (max-width: 600px) { .contact-form { padding: var(--sp-6); } }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  font-weight: 600;
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  background: var(--color-off-white);
  color: var(--color-ink);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 76, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Footer */
.site-footer {
  background: var(--color-black);
  color: rgba(250, 247, 242, 0.7);
  padding: var(--sp-16) 0 var(--sp-6);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(184, 146, 76, 0.15);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 56px; margin-bottom: var(--sp-4); filter: brightness(0) invert(1); }
.footer-brand p { max-width: 36ch; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--sp-4);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom {
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.5);
}
.footer-bottom a { color: var(--color-gold-light); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Mentions légales page */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-6);
}
.legal-content h2 {
  margin: var(--sp-12) 0 var(--sp-4);
  font-size: var(--fs-xl);
}
.legal-content h2:first-of-type { margin-top: var(--sp-6); }
.legal-content p { margin-bottom: var(--sp-3); color: var(--color-charcoal); }
.legal-content strong { color: var(--color-black); }

/* Utilities */
.text-center { text-align: center; }
.gold { color: var(--color-gold); }

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}
