/* Lancelot Toiture - feuille de style */
body{margin:0}img{max-width:100%}[hidden]{display:none!important}:root{color-scheme:light dark}

/* Layout: bandeau sombre avec ferme de charpente dessinée à l'échelle, puis sections en grille sur fond clair. */
:root {
  --bg: #ECEFEF;
  --surface: #F8F9F9;
  --ink: #1B262C;
  --muted: #54646C;
  --line: #C6CFD2;
  --slate: #24343C;
  --on-slate: #EAF0F2;
  --on-slate-muted: #A9BAC1;
  --accent: #C08428;
  --accent-text: #85550F;
  --on-accent: #1B262C;
  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11181C; --surface: #192329; --ink: #E8EDEF; --muted: #98A9B1; --line: #2B3A42;
    --slate: #0B1013; --on-slate: #EAF0F2; --on-slate-muted: #98A9B1;
    --accent: #D9A04A; --accent-text: #E3AE5C; --on-accent: #14110A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11181C; --surface: #192329; --ink: #E8EDEF; --muted: #98A9B1; --line: #2B3A42;
  --slate: #0B1013; --on-slate: #EAF0F2; --on-slate-muted: #98A9B1;
  --accent: #D9A04A; --accent-text: #E3AE5C; --on-accent: #14110A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px var(--font-body); padding: 13px 22px; border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--on-slate-muted); color: var(--on-slate); background: transparent; }
.btn-ghost:hover { border-color: var(--on-slate); }

/* En-tête + héros */
.topbar { background: var(--accent); color: var(--on-accent); font-size: 14.5px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; padding-block: 9px; }
.topbar .tagline { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.topbar .tagline em { font-style: normal; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.topbar .urgence { font-weight: 600; color: inherit; text-decoration: none; }
.topbar .urgence:hover { text-decoration: underline; }
.top { background: var(--slate); color: var(--on-slate); }
.nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--on-slate-muted); }
.nav ul a:hover { color: var(--on-slate); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 36px 56px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--on-slate-muted); max-width: 46ch; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .eyebrow { color: var(--accent); display: block; margin-bottom: 16px; }


.facts { border-top: 1px solid rgba(255,255,255,0.12); }
.facts ul { list-style: none; margin: 0; padding-block: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 28px; }
.facts li { font-size: 15px; color: var(--on-slate-muted); }
.facts strong { display: block; color: var(--on-slate); font-family: var(--font-display); font-size: 17px; font-weight: 700; }

/* Sections */
section { padding-block: 72px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 62ch; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.sec-head p { color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.service h3 { font-size: 22px; font-weight: 700; }
.service p { color: var(--muted); font-size: 16px; }
.service .tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); letter-spacing: 0.06em; text-transform: uppercase; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.photo { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-width: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
.photo figcaption { padding: 14px 18px 18px; display: grid; gap: 2px; }
.photo figcaption strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.photo figcaption span { font-size: 15px; color: var(--muted); }

.compare { margin-top: 32px; display: grid; gap: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
.compare-head { display: grid; gap: 4px; text-align: center; }
.compare-head strong { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.compare-head span { font-size: 15px; color: var(--muted); }
.ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: var(--line); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #333; pointer-events: none; }
.ba-tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type=range]:focus-visible ~ .ba-knob { outline: 3px solid #2563eb; outline-offset: 2px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.steps li { counter-increment: etape; border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.steps li::before { content: "Étape " counter(etape); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.steps h3 { font-size: 21px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 16px; }

.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.about .since { display: grid; gap: 4px; border-top: 2px solid var(--ink); padding-top: 14px; }
.about .since span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.about .since strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 12vw, 128px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.about .since em { font-style: normal; color: var(--muted); font-size: 16px; }
.about .text { display: grid; gap: 16px; max-width: 62ch; font-size: 18px; }
.about .text h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin-bottom: 4px; }
/* Devis */
.devis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin-top: 8px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-list .value { font-family: var(--font-display); font-size: 24px; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.recap { margin-top: 18px; display: grid; gap: 12px; }
.recap pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14px; background: var(--bg); border: 1px dashed var(--line); border-radius: 4px; padding: 14px; user-select: all; }
.recap .copy-state { font-size: 14px; color: var(--muted); min-height: 1.4em; }

.contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.contact-card { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px 18px; text-decoration: none; color: inherit; min-width: 0; }
a.contact-card:hover { border-color: var(--accent); }
.contact-card .value { font-size: 24px; user-select: auto; }
.contact-card .value.small { font-size: 18px; line-height: 1.25; }
.contact-list .contact-card:nth-child(1), .contact-list .contact-card:nth-child(2), .contact-list .contact-card:nth-child(5) { grid-column: 1 / -1; }
.urgence-card { display: grid; gap: 6px; margin-top: 12px; padding: 22px; border-radius: 6px; background: var(--slate); color: var(--on-slate); text-decoration: none; }
.urgence-card .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.urgence-card .big { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.urgence-card .call { justify-self: start; margin-top: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 11px 18px; border-radius: 4px; }
.urgence-card:hover .call { filter: brightness(1.08); }
.panel { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; padding: 28px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.panel-title { font-size: 26px; font-weight: 800; }
.panel-sub { color: var(--muted); margin: 6px 0 22px; font-size: 15.5px; }
#form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field abbr { color: var(--accent-text); text-decoration: none; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px var(--font-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 4px; padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field ::placeholder { color: var(--muted); opacity: .8; }
.btn-block { width: 100%; font-size: 17px; padding: 15px 22px; }
.recap pre { background: var(--bg); }
@media (max-width: 520px) { .contact-list, .row { grid-template-columns: minmax(0, 1fr); } .panel { padding: 20px; } }
footer { background: var(--slate); color: var(--on-slate-muted); padding-block: 36px; font-size: 14.5px; }
footer .wrap { display: grid; gap: 8px; }
footer strong { color: var(--on-slate); font-family: var(--font-display); font-size: 18px; }

@media (max-width: 860px) {
  .hero, .devis, .about { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 72px; height: 72px; display: block; filter: brightness(0) invert(1); }
.brand .slogan { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--on-slate-muted); letter-spacing: 0; max-width: 16ch; }
.brand .slogan em { font-style: normal; color: var(--accent); }
footer .foot-brand { display: flex; align-items: center; gap: 16px; }
footer .foot-brand img { width: 88px; height: 88px; filter: brightness(0) invert(1); }
@media (max-width: 520px) { .brand .slogan { display: none; } }
.zone-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zone-list li { padding: 8px 16px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; font-weight: 600; font-size: 16px; }

/* Compléments iPhone / Safari (aucun changement de design) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: rgba(192, 132, 40, 0.25); }
.field input, .field select, .field textarea { -webkit-appearance: none; appearance: none; border-radius: 4px; }
.ba { -webkit-user-select: none; }
.recap pre { -webkit-user-select: all; }
footer { padding-bottom: max(36px, env(safe-area-inset-bottom, 0px)); }
/* Zone de toucher du lien d'appel de la barre du haut portée à 44 px, sans changer la mise en page */
.topbar .urgence { display: inline-block; padding-block: 11px; margin-block: -11px; }
