/*
  HJ Rénova Bâtiment. Les couleurs d'un toit du Nord : ardoise, zinc, rouge tuile.
  Barlow Condensed (lettrage de camion d'artisan) pour les titres, Barlow pour le texte.
  Le rouge tuile est réservé à ce qui fait appeler : boutons et barre d'appel.
*/
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --slate: #26303a;      /* ardoise : fonds sombres */
  --slate-2: #313d49;
  --zinc: #8d99a4;
  --zinc-light: #c9d0d6;
  --paper: #f3f5f7;
  --white: #ffffff;
  --ink: #1d242b;
  --muted: #4f5b66;      /* 7.0:1 sur --paper */
  --tile: #b5462a;       /* rouge tuile : 5.3:1 avec du blanc */
  --tile-dark: #943820;
  --moss: #6b7d3f;
  --on-slate: #eef1f4;
  --on-slate-muted: #b7c1ca; /* 7.6:1 sur --slate */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: 64px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.nowrap { white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--tile); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

.demo-banner { background: var(--ink); color: var(--zinc-light); font-size: 0.8125rem; text-align: center; padding: 6px 12px; }
.demo-banner a { color: var(--white); }

/* En-tête */
.header { position: sticky; top: 0; z-index: 20; background: var(--slate); color: var(--on-slate); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__hj { font: 800 1.9rem/1 var(--display); color: var(--white); background: var(--tile); padding: 4px 8px 2px; letter-spacing: 0.02em; }
.wordmark__text { display: flex; flex-direction: column; font: 700 1.05rem/1 var(--display); letter-spacing: 0.04em; }
.wordmark__text span + span { color: var(--on-slate-muted); }
.menu-toggle { font: 600 1rem var(--body); color: var(--white); background: transparent; border: 1px solid var(--zinc); border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.nav { display: none; }
.nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--slate); padding: 8px 20px 20px; border-top: 1px solid var(--slate-2); }
.nav a { text-decoration: none; font-weight: 600; padding: 12px 0; }
.nav a:hover { color: var(--zinc-light); }
.nav__tel { color: var(--white); }
@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .nav, .nav.is-open { display: flex; flex-direction: row; position: static; padding: 0; border: 0; gap: 26px; align-items: center; }
  .nav a { padding: 0; }
  .nav__tel { background: var(--tile); padding: 9px 16px !important; border-radius: 4px; }
  .nav__tel:hover { background: var(--tile-dark); color: var(--white) !important; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 4px; font: 600 1.0625rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--tile { background: var(--tile); color: var(--white); }
.btn--tile:hover { background: var(--tile-dark); }
.btn--line { border-color: var(--white); color: var(--white); }
.btn--line:hover { background: rgba(255, 255, 255, 0.12); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--slate); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 36, 43, 0.55) 0%, rgba(29, 36, 43, 0.86) 70%); }
.hero__inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 64px; }
.hero h1 { font-weight: 800; font-size: clamp(2.7rem, 9vw, 5.4rem); text-transform: uppercase; letter-spacing: 0.005em; max-width: 16ch; }
.hero__lead { margin-top: 18px; max-width: 34rem; font-size: 1.15rem; color: #e3e8ec; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__rating { margin-top: 26px; color: #e3e8ec; }
.stars { color: #f2b84b; letter-spacing: 0.08em; }

.section-title { font-weight: 800; font-size: clamp(2.1rem, 5.5vw, 3.2rem); text-transform: uppercase; color: var(--slate); }
.section-title--light { color: var(--white); }

/* Travaux */
.trades { padding: 72px 0; }
.trades__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.trade { background: var(--white); border-bottom: 4px solid var(--slate); }
.trade img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.trade__body { padding: 20px 22px 24px; }
.trade h3 { font-size: 1.9rem; font-weight: 700; color: var(--slate); }
.trade p { margin-top: 8px; color: var(--muted); }
@media (min-width: 760px) { .trades__list { grid-template-columns: repeat(3, 1fr); } }

/* Nacelle */
.lift { background: var(--slate); color: var(--on-slate); padding: 64px 0; }
.lift__grid { display: grid; gap: 28px; align-items: center; }
.lift__drawing { width: 100%; max-width: 420px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lift__roof, .lift__wall { stroke: var(--zinc); stroke-width: 4; }
.lift__arm { stroke: var(--tile); stroke-width: 7; }
.lift__basket { stroke: var(--white); stroke-width: 4; }
.lift__truck { stroke: var(--white); stroke-width: 4; }
.lift__wheel { stroke: var(--white); stroke-width: 4; fill: var(--slate); }
.lift__ground { stroke: var(--slate-2); stroke-width: 3; }
.lift__text { margin-top: 14px; max-width: 36rem; color: var(--on-slate-muted); font-size: 1.125rem; }
@media (min-width: 760px) { .lift__grid { grid-template-columns: 1fr 1.2fr; gap: 48px; } }

/* Diagnostic : l'élément signature */
.diag { padding: 76px 0; }
.diag__lead { margin-top: 12px; max-width: 38rem; color: var(--muted); }
.diag__grid { display: grid; gap: 24px; margin-top: 30px; align-items: start; }
@media (min-width: 900px) { .diag__grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.roof { margin: 0; background: var(--white); border: 1px solid #dde2e7; }
.roof svg { display: block; width: 100%; height: auto; }
.roof__sky { fill: #e9eef2; }
.roof__frame { fill: none; stroke: #9a6b3f; stroke-width: 5; stroke-linecap: round; }
.roof__tiles { fill: #8e3d28; }
.roof__courses path { stroke: rgba(255, 255, 255, 0.18); stroke-width: 3; fill: none; }
.roof__zone--mousse circle { fill: var(--moss); }
.roof__ridge { fill: none; stroke: #5a2617; stroke-width: 9; stroke-linecap: round; }
.roof__chimney { fill: #6f7b86; stroke: #4c5660; stroke-width: 3; }
.roof__drop { fill: #3d7fb8; }
.roof__stain { stroke: #a9b6c2; stroke-width: 6; stroke-linecap: round; }
.roof__house { fill: #e7ddd0; }
.roof__window { fill: #b9cad8; }
.roof__door { fill: #6d5b4b; }
/* Charpente : visible seulement quand on la choisit (la couverture devient transparente). */
.roof__zone--charpente { opacity: 0; }
.roof__zone, .roof__courses { transition: opacity 0.25s ease, filter 0.25s ease; }
.roof[data-zone="charpente"] .roof__tiles { opacity: 0.18; }
.roof[data-zone="charpente"] .roof__courses { opacity: 0; }
.roof[data-zone="charpente"] .roof__zone--charpente { opacity: 1; }
/* La zone choisie s'allume, le reste s'efface un peu. */
.roof:not([data-zone="tuiles"]):not([data-zone="charpente"]) .roof__tiles { opacity: 0.55; }
.roof .roof__zone--fuite { opacity: 0.35; }
.roof[data-zone="fuite"] .roof__zone--fuite { opacity: 1; }
.roof[data-zone] .roof__zone--mousse, .roof[data-zone] .roof__zone--faitage, .roof[data-zone] .roof__zone--cheminee { filter: saturate(0.6); }
.roof[data-zone="mousse"] .roof__zone--mousse,
.roof[data-zone="faitage"] .roof__zone--faitage,
.roof[data-zone="cheminee"] .roof__zone--cheminee { filter: drop-shadow(0 0 6px #f2b84b) drop-shadow(0 0 2px #f2b84b); }
.roof[data-zone="tuiles"] .roof__tiles { filter: drop-shadow(0 0 5px #f2b84b); }

.diag__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.98rem/1.2 var(--body); color: var(--slate); background: var(--white); border: 2px solid var(--zinc-light); border-radius: 999px; padding: 10px 15px; cursor: pointer; }
.chip:hover { border-color: var(--slate); }
.chip[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.diag__answer { margin-top: 20px; background: var(--white); border-left: 5px solid var(--tile); padding: 22px 22px 24px; }
.diag__title { font-size: 1.7rem; font-weight: 700; color: var(--slate); }
.diag__text { margin-top: 8px; color: var(--muted); }
.diag__sms { margin-top: 18px; }
.diag__hint { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }

/* Avis */
.reviews { background: var(--white); padding: 72px 0; }
.reviews__grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .reviews__grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.score { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.score__n { font: 800 4.6rem/1 var(--display); color: var(--slate); }
.score__label { display: flex; flex-direction: column; color: var(--muted); font-weight: 600; }
.score__label .stars { font-size: 1.3rem; }
.reviews__quotes { display: grid; gap: 18px; }
blockquote { margin: 0; padding: 20px 22px; background: var(--paper); border-left: 4px solid var(--zinc); }
blockquote p { font-size: 1.1rem; }
blockquote footer { margin-top: 10px; font-weight: 600; color: var(--muted); }

/* Chantier */
.work { padding: 72px 0; }
.work__grid { display: grid; gap: 26px; align-items: center; }
.work__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work__grid p { margin-top: 12px; color: var(--muted); max-width: 32rem; }
@media (min-width: 760px) { .work__grid { grid-template-columns: 1.2fr 1fr; gap: 48px; } }

/* Contact */
.contact { background: var(--slate); color: var(--on-slate); padding: 72px 0; }
.contact__grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact__lead { margin-top: 12px; color: var(--on-slate-muted); max-width: 30rem; }
.contact__phone { display: inline-block; margin-top: 22px; font: 800 clamp(2.2rem, 7vw, 3.2rem)/1 var(--display); color: var(--white); text-decoration: none; border-bottom: 4px solid var(--tile); }
.form { background: var(--white); color: var(--ink); padding: 24px; display: grid; gap: 16px; }
.form__row { display: grid; gap: 6px; }
.form label { font-weight: 600; }
.form input, .form textarea { font: inherit; padding: 11px 12px; border: 2px solid #c3cbd2; border-radius: 4px; background: var(--white); color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--slate); outline: none; }
.form__status { color: var(--tile-dark); font-weight: 600; min-height: 1.4em; }

/* Pied de page */
.footer { background: var(--ink); color: var(--on-slate-muted); padding: 36px 0 40px; font-size: 0.92rem; }
.footer h2 { font: 700 1.2rem var(--display); color: var(--white); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.footer p + p { margin-top: 6px; }

/* Barre d'appel, toujours visible sur mobile */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: center; min-height: 58px; background: var(--tile); color: var(--white); font: 700 1.15rem var(--body); text-decoration: none; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18); }
@media (min-width: 860px) { .call-bar { display: none; } body { padding-bottom: 0; } }

/* Étiquette d'origine de chaque image : photo du client ou illustration */
.ph { position: relative; margin: 0; }
.trade { position: relative; }
.ph-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(29, 36, 43, .8); color: #fff; font: 600 .75rem/1.4 var(--body); pointer-events: none; z-index: 2; }
.ph-tag--site { top: auto; bottom: 10px; background: var(--tile); }
.hero__tag { top: auto; left: auto; right: 12px; bottom: 12px; }

/* Problèmes de toiture : vraies photos, bloc compact */
.diag { padding: 64px 0; }
.roof { position: relative; aspect-ratio: 3 / 2; max-width: 480px; width: 100%; overflow: hidden; border: 0; background: var(--slate); justify-self: center; }
.roof__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.roof[data-zone="tuiles"] [data-z="tuiles"], .roof[data-zone="fuite"] [data-z="fuite"], .roof[data-zone="mousse"] [data-z="mousse"],
.roof[data-zone="faitage"] [data-z="faitage"], .roof[data-zone="cheminee"] [data-z="cheminee"], .roof[data-zone="charpente"] [data-z="charpente"] { opacity: 1; }
.diag__grid { align-items: center; }
.diag__answer { margin-top: 16px; padding: 18px 20px 20px; }
.diag__text { font-size: 1.05rem; color: var(--ink); }
/* Avis : l'encart Google prend toute la largeur */
.reviews__grid { grid-template-columns: 1fr !important; gap: 22px; }

/* Zone d'intervention : liste simple + carte (contours officiels du Nord et du Pas-de-Calais, 1 unité = 1 km autour d'Armentières). */
.zone { background: var(--white); padding: 72px 0; }
.zone__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .zone__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.zone__lead { margin-top: 14px; color: var(--muted); max-width: 34rem; }
.zone__list { list-style: none; margin: 24px 0 0; padding: 0; columns: 2; column-gap: 24px; max-width: 30rem; }
.zone__list li { break-inside: avoid; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--zinc-light); font-weight: 600; position: relative; }
.zone__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--tile); }
.map { margin: 0; }
.map__svg { display: block; width: 100%; height: auto; background: #1b232b; border-radius: 4px; }
.map__land { fill: var(--slate-2); stroke: #4a5866; stroke-width: 0.12; }
.map__zone { fill: rgba(181, 70, 42, 0.28); stroke: #e0876f; stroke-width: 0.3; }
.map__country { fill: rgba(255, 255, 255, 0.3); font: 700 1.6px var(--display); letter-spacing: 0.5px; }
.map__km { fill: #f0b3a3; font: 600 1.5px var(--body); }
.map__town circle { fill: var(--zinc-light); }
.map__town text { fill: var(--on-slate); font: 600 1.75px var(--body); paint-order: stroke; stroke: #26303a; stroke-width: 0.4px; stroke-linejoin: round; }
.map__town--base circle { fill: var(--white); stroke: var(--tile); stroke-width: 0.5; }
.map__town--base text { font: 800 2.4px var(--display); fill: var(--white); }
@media (max-width: 520px) { .map__town text { font-size: 2.2px; } .map__town--base text { font-size: 2.8px; } }

/* Pied de page : mentions légales et données personnelles côte à côte sur grand écran. */
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.footer a { color: var(--white); }
