/* ============================================================
   [Nom de l'entreprise] — BTP
   Palette : warm earth editorial · Typo : condensed display
   ============================================================ */

:root {
  --bg: #f5efe4;
  --surface: #fbf7f0;
  --surface-2: #efe6d7;
  --ink: #2b1e14;
  --ink-soft: #5a4a3c;
  --accent: #c25a37;
  --accent-ink: #ffffff;
  --secondary: #6a7a4a;
  --line: #ddd0bd;
  --shadow: 0 1px 2px rgb(43 30 20 / .06), 0 12px 32px -18px rgb(43 30 20 / .35);
  --hero-scrim: linear-gradient(to top, rgb(20 14 9 / .88) 0%, rgb(20 14 9 / .62) 45%, rgb(20 14 9 / .28) 100%);
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-pad: clamp(64px, 9vw, 120px);
  --radius: 4px;
}

html[data-theme="dark"] {
  --bg: #17120e;
  --surface: #201a15;
  --surface-2: #2a221b;
  --ink: #f3ece1;
  --ink-soft: #c3b5a4;
  --accent: #e07a52;
  --accent-ink: #1a120c;
  --secondary: #9db07a;
  --line: #3a2f26;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -20px rgb(0 0 0 / .8);
  --hero-scrim: linear-gradient(to top, rgb(8 6 4 / .92) 0%, rgb(8 6 4 / .7) 45%, rgb(8 6 4 / .4) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: .02em; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding-block: 10px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  width: 30px; height: 30px; flex: none;
  background: var(--accent);
  clip-path: polygon(0 100%, 0 42%, 50% 0, 100% 42%, 100% 100%, 62% 100%, 62% 62%, 38% 62%, 38% 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; text-transform: uppercase;
  font-size: 1.15rem; letter-spacing: .04em;
}
.brand-text small {
  font-size: .72rem; color: var(--ink-soft);
  letter-spacing: .06em; text-transform: uppercase;
}
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--ink); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.02rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
.btn-ghost:hover { background: rgb(255 255 255 / .14); border-color: #fff; }
.btn-wide { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-scrim);
  z-index: -1;
}
.hero-wrap {
  width: 100%;
  padding-block: clamp(48px, 8vw, 96px);
  color: #fff;
}
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero .eyebrow { color: #f0b49c; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero-lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #f2ece4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 10px 28px;
  margin: 32px 0 0; padding: 0;
  font-size: .92rem;
  color: #e8e0d6;
}
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.dot { width: 6px; height: 6px; background: var(--accent); flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro { color: var(--ink-soft); margin-top: 16px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--ink-soft); font-size: .98rem; }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; font-size: .92rem; }
.ticks li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 9px; height: 2px;
  background: var(--accent);
}

/* ---------- Réalisations ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.project-media { overflow: hidden; }
.project-media img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
  transition: scale .5s ease;
}
.project:hover .project-media img { scale: 1.04; }
.project-body { padding: 22px 22px 24px; }
.project-tag {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .76rem; font-weight: 600;
  color: var(--secondary);
  margin: 0 0 8px;
}
.project-body h3 { margin-bottom: 10px; }
.project-body p { color: var(--ink-soft); font-size: .96rem; }
.project-meta {
  display: flex; gap: 28px;
  margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}
.project-meta dt {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .74rem; color: var(--ink-soft);
  margin-bottom: 2px;
}
.project-meta dd { margin: 0; font-weight: 600; }

/* ---------- Méthode ---------- */
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.method-intro h2 { margin-bottom: 20px; }
.method-intro p { color: var(--ink-soft); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: '→'; transition: translate .18s ease; }
.link-arrow:hover::after { translate: 4px 0; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Bande devis ---------- */
.quote-band {
  background: var(--ink);
  color: var(--bg);
  padding-block: var(--section-pad);
}
html[data-theme="dark"] .quote-band { background: var(--surface-2); color: var(--ink); }
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.quote-copy h2 { color: inherit; margin-bottom: 18px; }
.quote-copy p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
html[data-theme="dark"] .quote-copy p { color: var(--ink-soft); }
.ticks-light li { color: color-mix(in srgb, var(--bg) 82%, transparent); }
html[data-theme="dark"] .ticks-light li { color: var(--ink-soft); }

.quote-form {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .82rem; font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 1px;
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 75%, transparent); }

.form-status {
  margin: 14px 0 0;
  font-size: .95rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}
.form-status.ok { border-color: var(--secondary); color: var(--secondary); }
.form-status.err { border-color: var(--accent); color: var(--accent); }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}
.contact-card h3 { margin-bottom: 12px; }
.contact-card p { font-size: .96rem; color: var(--ink-soft); }
.contact-note { font-size: .86rem; color: color-mix(in srgb, var(--ink-soft) 85%, transparent); margin-top: 10px; }

.placeholder-line {
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
  text-underline-offset: 4px;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  background: var(--surface-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.footer-brand strong {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.2rem;
  display: block; margin-bottom: 8px;
}
.footer-brand p { font-size: .92rem; color: var(--ink-soft); max-width: 46ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.footer-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.attribution {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-soft);
}
.attribution a { color: var(--ink-soft); text-decoration: underline; }
.attribution a:hover { color: var(--accent); }

/* ---------- Motion ---------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head,
    .card,
    .project,
    .steps li,
    .contact-card {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .method-grid,
  .quote-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero { min-height: 72vh; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .project-meta { gap: 20px; }
  .brand-text small { display: none; }
}
