/* ============================================
   GODEMEL — Maçon du bâti ancien
   ============================================ */

:root {
  --bg: #d9c49e;
  --bg-alt: #cfb787;
  --bg-elevated: #c4a973;
  --line: #b49a6c;
  --text: #2f2417;
  --text-muted: #5c4a34;
  --text-dim: #83694a;
  --accent: #a3431f;
  --accent-light: #c05a2c;
  --gold: #8a6a3c;
  --cream: #faf3e6;
  --max-width: 1180px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 18px;
}

section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  max-width: 620px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.35s ease, box-shadow 0.35s ease;
  background: rgba(217, 196, 158, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header.scrolled {
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(47, 36, 23, 0.12);
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.btn-outline {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 160px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-cheminee-enduit.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) brightness(0.97);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 15, 10, 0.6) 0%,
    rgba(20, 15, 10, 0.38) 30%,
    rgba(20, 15, 10, 0.08) 58%,
    rgba(20, 15, 10, 0) 78%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  color: var(--text);
  margin-bottom: 8px;
}

.hero .hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--accent);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 32px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--cream);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-secondary {
  border-color: rgba(47, 36, 23, 0.35);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(47, 36, 23, 0.06);
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--text-muted), transparent);
}

/* ---------- About ---------- */

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

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

.about-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 118, 0.3);
  pointer-events: none;
}

.about-text .eyebrow {
  margin-bottom: 18px;
}

.about-text h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 26px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Prestations ---------- */

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

.presta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.presta-card {
  background: var(--bg-alt);
  padding: 0 0 28px;
  transition: background 0.25s ease;
  cursor: pointer;
}

.presta-card:hover,
.presta-card:focus-visible {
  background: var(--bg-elevated);
  outline: none;
}

.presta-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
}

.presta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.presta-card:hover .presta-photo img {
  transform: scale(1.07);
}

.presta-card .num {
  font-family: "Fraunces", serif;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 14px;
  display: block;
  padding: 0 24px;
}

.presta-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 500;
  padding: 0 24px;
}

.presta-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 24px;
}


/* ---------- Savoir-faire / materials ---------- */

.savoir-faire-block {
  margin-top: 96px;
}

.savoir-faire-block .eyebrow {
  display: block;
}

.savoir-faire-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 44px;
}

.subgroup-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 18px;
}

.subgroup-label:not(:first-child) {
  margin-top: 44px;
}

.bati-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 520px;
}

.bati-tag {
  position: relative;
  height: 170px;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  overflow: hidden;
}

.bati-tag span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--cream);
  background: rgba(20, 15, 8, 0.72);
  padding: 5px 14px;
  border-radius: 2px;
}

.bati-tag:hover {
  background-size: 112%;
}

.bati-tag-empty {
  background-color: var(--bg-elevated);
  display: flex;
  align-items: flex-end;
}

.bati-tag-empty span {
  position: static;
  padding: 24px 28px;
  color: var(--accent);
  font-size: 1.5rem;
  background: none;
  border-radius: 0;
}

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

.material-tag {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.material-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Réalisations / gallery ---------- */

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
  font-weight: 600;
}

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

.gallery-item.hidden {
  display: none;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
}

.gallery-item:nth-child(3n+1) {
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  filter: saturate(0.92);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(236, 229, 216, 0.4);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(20, 18, 15, 0.4);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 7, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(236, 229, 216, 0.3);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

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

/* ---------- Contact ---------- */

.contact {
  background: var(--bg);
  text-align: center;
}

.contact .section-head {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-link {
  text-align: left;
}

.contact-link .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.contact-link .value {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover .value {
  color: var(--accent-light);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .foot-brand {
  font-family: "Fraunces", serif;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer .foot-meta {
  color: var(--text-dim);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer .foot-meta a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.site-footer .foot-meta a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  section {
    padding: 90px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image img {
    height: 380px;
  }

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

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

  .contact-links {
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 22px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 150;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .bati-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .presta-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}
