:root {
  --walnut-950: #1f150e;
  --walnut-900: #2b1d14;
  --walnut-800: #3d2a1d;
  --oak-600: #8a5a35;
  --oak-500: #a8744a;
  --oak-200: #e6d2b8;
  --oak-100: #f1e6d6;
  --cream: #faf6ef;
  --paper: #ffffff;
  --ink: #2b1d14;
  --muted: #6b5848;
  --line: #e7dccb;
  --accent: #c4501b;
  --accent-dark: #a5410f;
  --wa: #1a8a4a;
  --wa-dark: #136d39;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(43, 29, 20, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--walnut-900); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .container { padding-left: 24px; padding-right: 24px; } }

.tel { white-space: nowrap; }
.show-sm { display: none; }
.todo, .todo-li { background: #fff1a8; color: #5c4600; padding: 0 5px; border-radius: 4px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.demo-banner { background: #ffd23f; color: #3d2e00; text-align: center; font-size: .85rem; font-weight: 800; padding: 7px 16px; line-height: 1.35; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--walnut-900); font-family: var(--serif); font-weight: 700; font-size: 1.18rem; line-height: 1.1; min-width: 0; }
.logo__mark { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.logo small { display: block; font-family: var(--sans); font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--walnut-800); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--accent-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 10px; font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; white-space: nowrap; line-height: 1.2; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(196, 80, 27, .28); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #ffb347; outline-offset: 3px; }

/* Hero */
.hero {
  background-color: var(--walnut-900);
  background-image:
    radial-gradient(ellipse at 85% 10%, rgba(168, 116, 74, .35), transparent 55%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px, rgba(0, 0, 0, .05) 9px 11px, transparent 11px 23px);
  color: #f3e9dc; padding: 72px 0 80px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--oak-200); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.4rem); font-weight: 600; margin-bottom: .35em; }
.hero .lead { color: #e6d8c6; font-size: 1.14rem; max-width: 38em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.rating { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); padding: 10px 16px; border-radius: 12px; }
.rating:hover { background: rgba(255, 255, 255, .12); }
.rating__stars { color: #f6b93b; font-size: 1.2rem; letter-spacing: 2px; }
.rating strong { display: block; line-height: 1.2; }
.rating small { color: var(--oak-200); }

/* Photo placeholders */
.ph { margin: 0; display: grid; place-items: center; text-align: center; padding: 22px; border: 2px dashed var(--oak-500); border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--oak-100) 0 14px, #f6eee2 14px 28px); color: var(--walnut-800); font-size: .95rem; line-height: 1.45; }
.ph strong { display: block; margin: 0 auto 6px; width: fit-content; background: #fff1a8; color: #5c4600; padding: 2px 8px; border-radius: 4px; font-size: .85rem; letter-spacing: .02em; }
.ph--hero { min-height: 420px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 14px, rgba(255, 255, 255, .02) 14px 28px); border-color: rgba(230, 210, 184, .5); color: #e6d8c6; }
.ph--tile { aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .ph--tile { aspect-ratio: 16 / 9; } }

/* Sections */
.section { padding: 88px 0; }
.section--soft { background: var(--oak-100); }
.section--wood { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--oak-600); margin-bottom: 10px; }
.lead { font-size: 1.08rem; color: var(--muted); }

/* Services */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .todo { display: inline; font-size: .86rem; }
.icon { width: 50px; height: 50px; border-radius: 12px; background: var(--oak-100); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; stroke: var(--oak-600); }
.card--cta { background: var(--walnut-900); border-color: var(--walnut-900); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.card--cta h3 { color: #fff; }
.card--cta p { color: #d9c9b5; margin-bottom: 18px; }
.card--cta .btn { align-self: flex-start; }

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

/* Rénovation ou remplacement */
.choice { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; }
.choice__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.choice__card p { color: var(--muted); margin: 0; }
.choice__card--dark { background: var(--walnut-900); border-color: var(--walnut-900); }
.choice__card--dark h3 { color: #fff; }
.choice__card--dark p { color: #d9c9b5; }
.choice__card .choice__tag { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--oak-600); margin-bottom: 8px; }
.choice__card h3 { font-size: 1.6rem; }
.choice__card--dark .choice__tag { color: var(--oak-200); }
.choice__or { align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; font-style: italic; }
.choice__note { margin: 28px 0 0; font-weight: 600; color: var(--walnut-800); text-align: center; }

/* Pourquoi nous */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__item { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.why__item .icon { background: var(--oak-100); }
.why__item h3 { margin-bottom: .3em; }
.why__item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Avis */
.reviews { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.score { background: var(--walnut-900); color: #fff; border-radius: var(--radius); padding: 34px; text-align: center; }
.score__num { font-family: var(--serif); font-size: 4rem; font-weight: 700; line-height: 1; }
.score__num span { font-size: 1.6rem; opacity: .7; }
.score__stars { color: #f6b93b; font-size: 1.5rem; letter-spacing: 3px; margin: 10px 0 6px; }
.score p { color: #d9c9b5; }
.quotes { display: grid; gap: 14px; }
.quote-ph { border: 2px dashed var(--oak-500); border-radius: var(--radius); padding: 20px 22px; background: var(--paper); color: var(--muted); font-size: .95rem; }
.quote-ph strong { display: block; width: fit-content; max-width: 100%; background: #fff1a8; color: #5c4600; padding: 1px 6px; border-radius: 4px; margin-bottom: 6px; }

/* Zone */
.zone { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.towns li.main { background: var(--walnut-900); color: #fff; border-color: var(--walnut-900); }
.towns li.todo-li { background: #fff1a8; color: #5c4600; border: 1px dashed #c9a800; border-radius: 999px; padding: 8px 16px; }
.note { margin-top: 4px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact__box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; align-content: start; }
.contact__box h2 { margin-bottom: .3em; }
.contact__box > div:first-child p { color: var(--muted); margin: 0; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__row svg { width: 22px; height: 22px; stroke: var(--oak-600); flex: none; margin-top: 3px; }
.contact__row span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.contact__row p { margin: 0; font-weight: 600; }
.contact__row a { font-weight: 800; font-size: 1.25rem; color: var(--walnut-900); text-decoration: none; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.contact__ctas .btn { flex: 1 1 160px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--oak-100); border: 1px solid var(--line); display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map__consent { display: grid; place-items: center; align-content: center; gap: 12px; padding: 28px; text-align: center; }
.map__consent > svg { width: 40px; height: 40px; stroke: var(--oak-600); }
.map__consent p { margin: 0; }
.map__consent small { color: var(--muted); max-width: 28em; }
.map__consent a { font-weight: 700; }

/* Footer */
.footer { background: var(--walnut-950); color: #cdbba6; padding: 40px 0; font-size: .95rem; }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer strong { color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.footer a { color: #fff; }
.footer__right { text-align: right; }

.callbar { display: none; }

/* Mentions légales */
.legal { max-width: 780px; padding: 56px 16px 80px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .container, .reviews, .zone, .contact { grid-template-columns: 1fr; }
  .grid--3, .gallery, .why { grid-template-columns: 1fr 1fr; }
  .ph--hero { min-height: 260px; }
  .choice { grid-template-columns: 1fr; }
  .choice__or { justify-self: center; margin: -6px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Laisse la place à la barre d'appel fixe pour qu'elle ne cache pas la fin du footer */
  body:has(.callbar) .footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 30px; }
  .header .container { height: 62px; }
  .header__call { display: none; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .hero { padding: 44px 0 52px; }
  .hero .container { gap: 32px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .grid--3, .gallery, .why { grid-template-columns: 1fr; }
  .footer__right { text-align: left; }
  .contact__box, .choice__card, .score { padding: 24px; }
  .map, .map iframe { min-height: 340px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(250, 246, 239, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(43, 29, 20, .14);
  }
  .callbar .btn { padding: 14px 10px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
