/* === SITE 2 — MENUISERIE === */
/* Univers : Atelier d'ébéniste — bois, copeaux, plans */

:root {
  --wood: #6b4423;
  --wood-dark: #3d2817;
  --wood-light: #a67c52;
  --beige: #f5ede0;
  --beige-2: #e8dcc4;
  --slate: #2c3e3a;
  --ocre: #c8842a;
  --ocre-light: #e0a857;
  --paper: #faf6ee;
  --rule: rgba(61, 40, 23, .15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--wood-dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* texture bois subtile */
  background-image:
    repeating-linear-gradient(90deg,
      rgba(107, 68, 35, .015) 0px,
      rgba(107, 68, 35, .015) 1px,
      transparent 1px,
      transparent 4px);
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -.02em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* HEADER — bandeau bois */
header {
  background: var(--wood-dark);
  color: var(--beige);
  padding: 22px 0;
  border-bottom: 4px solid var(--ocre);
}
header nav { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--beige);
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo span { color: var(--ocre-light); font-style: italic; font-weight: 400; }

/* HERO — Atelier */
.hero-atelier {
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-2) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-atelier::before {
  content: '';
  position: absolute;
  right: -100px; top: -50px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 132, 42, .12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-atelier h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  color: var(--wood-dark);
  max-width: 920px;
  margin-bottom: 28px;
}
.hero-atelier h1 em {
  font-style: italic;
  color: var(--ocre);
  position: relative;
}
.hero-atelier h1 em::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 8px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8'><path d='M0 4 Q50 0 100 4 T200 4' stroke='%23c8842a' fill='none' stroke-width='2'/></svg>") repeat-x;
  background-size: 200px 8px;
  opacity: .5;
}
.hero-atelier .lead {
  font-size: 1.25rem;
  color: var(--slate);
  max-width: 700px;
  margin-bottom: 40px;
}

/* Plan exploded view (decorative) */
.plan-3d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.plan-card {
  background: white;
  border: 1px solid var(--rule);
  padding: 28px 22px;
  border-radius: 4px;
  position: relative;
  transition: transform .3s;
  box-shadow: 0 4px 0 var(--wood-dark);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--wood-dark); }
.plan-card .ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--ocre);
  letter-spacing: .12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.plan-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--wood-dark); }
.plan-card p { font-size: .9rem; color: var(--slate); }
@media (max-width: 768px) { .plan-3d { grid-template-columns: repeat(2, 1fr); } }

/* CTA bois */
.btn-wood {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ocre);
  color: white;
  padding: 18px 36px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--ocre);
  border-radius: 6px;
  transition: all .25s;
  position: relative;
}
.btn-wood:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.btn-wood::after { content: '⤳'; font-size: 1.3rem; }

section { padding: 80px 0; }
section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--wood-dark);
  margin-bottom: 24px;
}
section h2::before {
  content: '— ';
  color: var(--ocre);
}

/* Comparatif essences bois */
.essences {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.essence {
  background: linear-gradient(180deg, var(--beige-2) 0%, var(--beige) 100%);
  padding: 32px 24px;
  border-radius: 8px;
  border-bottom: 5px solid var(--wood);
}
.essence:nth-child(2) { border-color: var(--ocre); }
.essence:nth-child(3) { border-color: var(--wood-light); }
.essence:nth-child(4) { border-color: var(--slate); }
.essence h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 12px;
}
.essence .price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: var(--ocre);
  margin: 8px 0;
}
@media (max-width: 768px) { .essences { grid-template-columns: 1fr 1fr; } }

footer {
  background: var(--wood-dark);
  color: var(--beige);
  padding: 60px 0 30px;
}
footer a { color: var(--ocre-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.api-block {
  background: white;
  border-left: 4px solid var(--ocre);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.api-block h3 { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--wood-dark); margin-bottom: 10px; }

/* === GLOBAL FIX LISIBILITE : liens dans <section> et <nav> heritent la couleur du parent === */
section a:not([class*="btn"]):not(.exit-popup-cta):not([style*="color:#fff"]):not([style*="color: #fff"]):not([style*="color:#d94a1f"]):not([style*="color: #d94a1f"]):not([style*="color:#2563eb"]) {
  color: inherit;
}
nav a:not([class*="btn"]):not([style*="color"]) { color: inherit; }
section a:hover:not([class*="btn"]):not(.exit-popup-cta) { opacity: 1; }