/* ===== Monsieur Maçon — Ardoise & Tuffeau ===== */

:root {
  --ardoise: #1c1f23;
  --ardoise-soft: #23272c;
  --ardoise-line: #33383e;
  --tuffeau: #f4ead8;
  --tuffeau-2: #ece0c7;
  --tuffeau-3: #e3d5b6;
  --brass: #c9974f;
  --brass-deep: #9c6f34;
  --brass-light: #e0b877;
  --stone: #5a5347;
  --cream-muted: #cfc4ac;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', Arial, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(28, 31, 35, 0.35);
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ardoise);
  background: var(--tuffeau);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brass);
  display: inline-block;
}

.lede {
  color: var(--stone);
  font-size: 1.08rem;
  max-width: 620px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .lede { margin: 0 auto; }

/* ===== reveal ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brass);
  color: var(--ardoise);
  box-shadow: 0 12px 24px -10px rgba(201, 151, 79, 0.55);
}
.btn-primary:hover { background: var(--brass-light); }

.btn-ghost {
  background: transparent;
  border-color: var(--ardoise-line);
  color: var(--ardoise);
}
.btn-ghost:hover { border-color: var(--brass-deep); color: var(--brass-deep); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(244, 234, 216, 0.35);
  color: var(--tuffeau);
}
.btn-ghost-light:hover { border-color: var(--brass); color: var(--brass-light); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244, 234, 216, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 31, 35, 0.08);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(28,31,35,0.3); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; }
.brand svg { height: 40px; width: auto; }
.brand-full { display: block; }
.brand-mark { display: none; height: 40px; width: 40px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ardoise);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--brass);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ardoise-line);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--ardoise); display: block; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== hero ===== */
.hero {
  padding: calc(var(--header-h) + 56px) 0 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(201,151,79,0.14), transparent),
    var(--tuffeau);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--tuffeau-3);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ardoise);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  transition: transform 0.2s ease;
}
.hero-badge:hover { transform: translateY(-2px); }
.hero-badge .stars { color: var(--brass-deep); display: inline-flex; gap: 1px; }
.hero-badge .stars svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass-deep);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(28,31,35,0.1);
}
.hero-reassurance div { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--stone); }
.hero-reassurance svg { width: 20px; height: 20px; color: var(--brass-deep); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 22px 18px;
  background: linear-gradient(to top, rgba(28,31,35,0.82), transparent);
  color: var(--tuffeau);
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-visual .ring {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--brass);
  color: var(--ardoise);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ===== mustache divider ===== */
.motif-divider {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  color: var(--brass);
  opacity: 0.75;
}
.motif-divider svg { width: 64px; height: 22px; }

/* ===== prestations ===== */
.prestations { padding: 96px 0; }

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

.card {
  background: var(--white);
  border: 1px solid var(--tuffeau-3);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card .badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--brass);
  color: var(--ardoise);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--tuffeau);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-deep);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--stone); font-size: 0.95rem; }

/* ===== bandeau clients ===== */
.bandeau {
  background: var(--ardoise);
  color: var(--tuffeau);
  padding: 40px 0;
}
.bandeau .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.bandeau p { font-size: 1.02rem; color: var(--cream-muted); }
.bandeau strong { color: var(--brass-light); font-family: var(--font-display); font-weight: 600; }

/* ===== avis ===== */
.avis { padding: 96px 0; }

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

.avis-card {
  background: var(--white);
  border: 1px solid var(--tuffeau-3);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.avis-card .stars { display: flex; gap: 2px; color: var(--brass-deep); }
.avis-card .stars svg { width: 16px; height: 16px; }
.avis-card p.text { color: var(--ardoise); font-size: 0.95rem; flex-grow: 1; }
.avis-card .who {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--stone);
  border-top: 1px solid var(--tuffeau-2);
  padding-top: 12px;
}
.avis-card .who .name { font-weight: 700; color: var(--ardoise); display: flex; align-items: center; gap: 6px; }
.google-g { width: 15px; height: 15px; }

.avis-more { text-align: center; margin-top: 36px; }

/* ===== pourquoi nous ===== */
.pourquoi { padding: 96px 0; background: var(--tuffeau-2); }
.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.pourquoi-item { display: flex; gap: 18px; }
.pourquoi-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
  font-weight: 600;
  flex-shrink: 0;
  width: 46px;
}
.pourquoi-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pourquoi-item p { color: var(--stone); font-size: 0.95rem; }

/* ===== galerie ===== */
.galerie { padding: 96px 0; }
.galerie-grid {
  columns: 2 220px;
  column-gap: 20px;
}
.galerie-grid figure {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.galerie-grid img {
  width: 100%; height: auto; display: block;
  transition: transform 0.4s ease;
}
.galerie-grid a:hover img { transform: scale(1.04); }
.galerie-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 12px;
  background: linear-gradient(to top, rgba(28,31,35,0.85), transparent);
  color: var(--tuffeau);
  font-size: 0.85rem;
  font-weight: 600;
}

/* lightbox */
dialog#lightbox {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: var(--ardoise);
  max-width: min(90vw, 1000px);
  max-height: 88vh;
  margin: auto;
}
dialog#lightbox::backdrop { background: rgba(20, 22, 25, 0.86); }
dialog#lightbox img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
dialog#lightbox .lb-caption {
  color: var(--tuffeau);
  padding: 14px 20px 18px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
dialog#lightbox .lb-close {
  background: transparent; border: none; color: var(--tuffeau);
  cursor: pointer; font-size: 1rem; padding: 6px 10px;
}

/* ===== zone d'intervention ===== */
.zone { padding: 96px 0; background: var(--ardoise); color: var(--tuffeau); overflow: hidden; }
.zone .section-head .eyebrow { color: var(--brass-light); }
.zone .section-head h2 { color: var(--tuffeau); }
.zone .section-head .lede { color: var(--cream-muted); }

.zone-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.zone-map { display: flex; justify-content: center; }
.zone-map svg { width: 100%; max-width: 380px; height: auto; }

.zone-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.zone-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.96rem; color: var(--cream-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--ardoise-line);
}
.zone-list li svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; }
.zone-list li.is-main { color: var(--tuffeau); font-weight: 700; }

/* ===== contact ===== */
.contact { padding: 96px 0 110px; background: var(--ardoise-soft); color: var(--tuffeau); }
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact h2 { color: var(--tuffeau); }
.contact .lede { color: var(--cream-muted); }

.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-list a, .contact-list div.row {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.02rem; font-weight: 600;
}
.contact-list svg { width: 22px; height: 22px; color: var(--brass); flex-shrink: 0; }
.contact-list a:hover { color: var(--brass-light); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hours-card {
  background: var(--ardoise);
  border: 1px solid var(--ardoise-line);
  border-radius: var(--radius);
  padding: 28px;
}
.hours-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--brass-light); }
.hours-card table { width: 100%; border-collapse: collapse; }
.hours-card td { padding: 7px 0; font-size: 0.92rem; color: var(--cream-muted); border-bottom: 1px solid var(--ardoise-line); }
.hours-card tr:last-child td { border-bottom: none; }
.hours-card td:last-child { text-align: right; font-weight: 600; color: var(--tuffeau); }
.hours-card tr.today td { color: var(--brass-light); font-weight: 700; }

/* ===== footer ===== */
.site-footer { background: var(--ardoise); color: var(--cream-muted); padding: 44px 0 30px; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-footer .brand svg { height: 32px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--cream-muted); }
.footer-links a:hover { color: var(--brass-light); }
.footer-meta { text-align: right; font-size: 0.82rem; color: #7d766a; }
.footer-meta a { color: #7d766a; }
.footer-meta a:hover { color: var(--brass-light); }
.footer-bottom {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ardoise-line);
  text-align: center; font-size: 0.8rem; color: #6b6459;
}

/* ===== whatsapp float ===== */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: white; }

/* ===== responsive ===== */
@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .avis-grid { grid-template-columns: repeat(2, 1fr); }
  .zone-wrap { grid-template-columns: 1fr; }
  .zone-list { grid-template-columns: repeat(2, 1fr); max-width: 480px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .burger { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--tuffeau);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 16px;
    border-bottom: 1px solid var(--tuffeau-3);
    box-shadow: var(--shadow);
  }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/11; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .hero-actions, .contact-actions { flex-direction: column; }

  .pourquoi-grid { grid-template-columns: 1fr; }
  .contact .container { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand-full { display: none; }
  .brand-mark { display: block; }
  .cards-grid, .avis-grid { grid-template-columns: 1fr; }
  .zone-list { grid-template-columns: 1fr; }
  .galerie-grid { columns: 1; }
  .bandeau .container { text-align: center; justify-content: center; }
  .footer-meta { text-align: left; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
