/* Concept — Wood 95, menuiserie */

:root {
  --saw: #efe7da;
  --saw-2: #e6dccb;
  --char: #1f1d1a;
  --oak: #d39a5d;
  --oak-dark: #8a5424; /* chêne foncé, lisible sur fond clair */
  --muted: #59524a;

  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --bar: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 4.5rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--bar);
  background: var(--saw);
  color: var(--char);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
}
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--oak-dark); outline-offset: 3px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.mono { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.ph { font-family: var(--mono); font-size: 0.85em; color: var(--muted); }

/* Bandeau concept */
.concept-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: var(--bar); padding: 0.35rem clamp(1rem, 3vw, 2rem);
  background: #111; color: #eee; font: 400 0.78rem/1.3 "Helvetica Neue", Arial, sans-serif;
}
.concept-bar p { margin: 0; }
.concept-bar a { color: #fff; white-space: nowrap; text-underline-offset: 0.2em; }
@media (max-width: 700px) {
  :root { --bar: 2.75rem; }
  .concept-bar { font-size: 0.7rem; line-height: 1.25; }
  .bar-extra { display: none; }
}

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; padding: 0.75rem 1rem; background: var(--char); color: #fff; }
.skip:focus { top: calc(var(--bar) + 0.5rem); }

/* En-tête */
.top { position: sticky; top: var(--bar); z-index: 30; background: var(--saw); border-bottom: 1px solid var(--char); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-badge {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: var(--char); color: var(--oak);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.5rem; line-height: 0.9; letter-spacing: -0.03em; }
.logo-text small { font-family: var(--mono); font-size: 0.65rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.3rem; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); font-weight: 500; }
.nav a { text-decoration: none; background: linear-gradient(var(--oak-dark), var(--oak-dark)) 0 100% / 0 2px no-repeat; transition: background-size 0.25s; padding-block: 0.2rem; }
.nav a:hover { background-size: 100% 2px; }
.nav .nav-cta { padding: 0.55rem 1rem; background: var(--char); color: var(--saw); }
.nav .nav-cta:hover { background: var(--oak-dark); }
@media (max-width: 720px) { .nav li:not(:last-child) { display: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border: 2px solid var(--char); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn-oak { background: var(--char); color: var(--saw); }
.btn-oak:hover { background: var(--oak-dark); border-color: var(--oak-dark); }
.btn-line { background: transparent; color: var(--char); }
.btn-line:hover { background: var(--char); color: var(--saw); }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--char); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(3rem, 1.4rem + 6.6vw, 7.5rem); margin: 1.25rem 0 1.5rem; }
.lede { font-size: 1.2rem; max-width: 30em; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.rating {
  display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 2rem;
  padding: 0.7rem 1rem; border: 1px solid var(--char); text-decoration: none;
  transition: background-color 0.2s;
}
.rating:hover { background: var(--saw-2); }
.stars svg { width: 110px; height: 20px; }
.rating-text strong { font-size: 1.25rem; }
.hero-plan { margin: 0; }
.hero-plan svg { width: 100%; height: auto; max-width: 460px; margin-inline: auto; }
.dim { font: 400 12px var(--mono); fill: var(--char); letter-spacing: 0.05em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plan svg { max-width: 300px; }
}

/* Têtes de section */
.sec-head { margin-bottom: 2.5rem; }
.sec-head h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); margin-top: 0.75rem; }
.sec-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }
.works-note { max-width: 26em; margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Services */
.services { padding-block: clamp(4rem, 8vw, 7rem); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--char); border-left: 1px solid var(--char); }
.svc { padding: 1.5rem; border-right: 1px solid var(--char); border-bottom: 1px solid var(--char); transition: background-color 0.25s; }
.svc:hover { background: var(--saw-2); }
.svc h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1rem; }
.svc h3 .mono { display: block; color: var(--oak-dark); margin-bottom: 0.75rem; }
.svc li { padding-block: 0.25rem; border-bottom: 1px dashed #bcae98; font-size: 0.98rem; }
.svc-note { background: var(--char); color: var(--saw); font-size: 0.98rem; }
.svc-note:hover { background: var(--char); }
.svc-note .ph { color: #d5c8b4; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* Réalisations */
.works { padding-block: clamp(4rem, 8vw, 7rem); background: var(--char); color: var(--saw); }
.works .works-note { color: #cbbfae; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter {
  min-height: 2.5rem; padding: 0 1rem; font: 500 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
  background: transparent; color: var(--saw); border: 1px solid #77706a; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.filter:hover { border-color: var(--oak); }
.filter[aria-pressed="true"] { background: var(--oak); border-color: var(--oak); color: var(--char); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.work[hidden] { display: none; }
.work-wide { grid-column: span 2; }
.work figure { margin: 0; }
.work svg { width: 100%; height: auto; transition: transform 0.4s ease; }
.work figure > svg { aspect-ratio: auto; }
.work figure { overflow: hidden; }
.work:hover svg { transform: scale(1.03); }
.work figcaption { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; padding-top: 0.75rem; border-top: 1px solid #4a4540; margin-top: 0.75rem; font-size: 0.95rem; }
.work figcaption .mono { color: var(--oak); }
.work figcaption .ph { color: #b5a996; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } .work-wide { grid-column: auto; } }

/* Avis */
.avis { padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--char); }
.avis-grid { display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; align-items: center; }
.avis-big { margin: 0; font-weight: 800; font-size: clamp(6rem, 3rem + 12vw, 13rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--oak-dark); }
.avis h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); margin-bottom: 1rem; }
.link { font-weight: 700; text-underline-offset: 0.25em; }
.link:hover { color: var(--oak-dark); }
@media (max-width: 700px) { .avis-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding-block: clamp(4rem, 8vw, 7rem); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem 4rem; }
.faq-list { border-top: 1px solid var(--char); }
details { border-bottom: 1px solid var(--char); }
summary {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 1.5rem; transition: transform 0.25s; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--oak-dark); }
details p { padding-bottom: 1.25rem; max-width: 36em; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Devis */
.devis { padding-block: clamp(4rem, 8vw, 7rem); background: var(--saw-2); border-top: 1px solid var(--char); }
.devis-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.devis-grid > *, .hero-grid > *, .faq-grid > * { min-width: 0; }
.devis-head h2 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); margin: 0.75rem 0 1.25rem; }
.demo-note { padding: 0.8rem 1rem; background: var(--saw); border-left: 4px solid var(--oak-dark); font-size: 0.95rem; }
.demo-note a { font-weight: 700; }
.contact-list { margin: 2rem 0 0; border-top: 1px solid var(--char); }
.contact-list div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid #bcae98; }
.contact-list dt { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; padding-top: 0.2rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { text-underline-offset: 0.2em; }

.quote { background: var(--saw); border: 1px solid var(--char); padding: clamp(1.25rem, 3vw, 2.25rem); }
.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--char); border-radius: 0; background: #fbf8f2; color: var(--char); font: inherit;
}
.field input[type="file"] { font: inherit; font-size: 0.9rem; max-width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--oak-dark); outline-offset: 0; }
.field ::placeholder { color: #7a7167; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills label {
  display: inline-flex; align-items: center; gap: 0.45rem; margin: 0;
  padding: 0.5rem 0.85rem; border: 1px solid var(--char); font-weight: 500; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.pills input { accent-color: var(--oak-dark); margin: 0; }
.pills label:has(input:checked) { background: var(--char); color: var(--saw); }
.pills label:has(input:focus-visible) { outline: 3px solid var(--oak-dark); outline-offset: 2px; }
.error { color: #9b2c1c; font-weight: 700; }
.sent { margin: 1.25rem 0 0; padding: 1rem; border: 1px dashed var(--char); background: #fbf8f2; }
@media (max-width: 900px) { .devis-grid { grid-template-columns: 1fr; } }

.foot { background: var(--char); color: #cbbfae; font-size: 0.85rem; padding-block: 1.5rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot p { margin: 0; }
.foot a { color: var(--saw); }

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