/* Couverture Anthony Lamberger — feuille de style commune à toutes les pages */
:root {
  --red: #B03A36; --red-d: #93302D;
  --blue: #3A5C99; --navy: #2B3F72; --navy-d: #1F2E55;
  --sky: #EAF1FA; --line: #D3DEEE; --ink: #1E2A44; --mute: #55627D;
  --wa: #1FA855;
  --r: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }

/* ---------- en-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: #fff;
  border-bottom: 4px solid var(--navy); box-shadow: 0 4px 16px rgba(43,63,114,.08);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.top .brand img { width: 270px; height: auto; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; }
.top nav a[aria-current="page"] { color: var(--red); }
.top nav a:hover { color: var(--red); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; text-decoration: none; border-radius: 12px; padding: .8em 1.35em;
  font-size: 1.02rem; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn-call { background: var(--blue); color: #fff; }
.btn-call:hover { background: var(--navy); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-devis { background: var(--red); color: #fff; }
.btn-devis:hover { background: var(--red-d); }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.top .btn { padding: .6em 1em; font-size: .95rem; }
.top nav a.btn, .top nav a.btn:hover { color: #fff; }

/* ---------- héros ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(90deg, rgba(31,46,85,.92) 0%, rgba(31,46,85,.72) 55%, rgba(31,46,85,.35) 100%),
              url("img/toiture-tuiles-neuves-gouttiere.jpg") center / cover no-repeat;
}
.hero { padding: 0; }
.hero .wrap { padding: 26px 0 22px; }
.hero .kicker {
  display: inline-block; background: var(--red); font-weight: 700; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .4em 1em; border-radius: 999px; margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.08; font-weight: 800; max-width: 15em; }
.hero p { margin-top: .7rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 34em; color: #E3EAF6; }
.hero .ctas { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 12px; }
.hero.small .wrap { padding: 22px 0 20px; }
.hero.small h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }

/* ---------- sections ---------- */
section { padding: clamp(24px, 3.2vw, 38px) 0; }
section.alt { background: var(--sky); }
.sec-title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--navy); line-height: 1.15; font-weight: 800; }
.sec-title span { color: var(--red); }
.sec-lead { margin-top: .4rem; color: var(--mute); max-width: 44em; font-size: 1.08rem; }

.cards { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.ba { position: relative; }
.ba span { position: absolute; top: 10px; background: rgba(31,46,85,.85); color: #fff; font-weight: 700; font-size: .8rem; padding: .2em .75em; border-radius: 999px; }
.ba .av { left: 10px; } .ba .ap { right: 10px; }
.card .body { padding: 12px 16px 14px; }
.card h3 { color: var(--navy); font-size: 1.15rem; line-height: 1.25; }
.card .plus { display: inline-block; margin-top: .4rem; font-weight: 700; font-size: .95rem; color: var(--red); }
.card p b { color: var(--ink); }
.card p { margin-top: .25rem; color: var(--mute); font-size: .98rem; }

.all-title { margin-top: 1.5rem; }
.svc-list { margin-top: .6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; scroll-margin-top: 110px; }
.svc h4, .svc h5 { color: var(--navy); font-size: 1.1rem; line-height: 1.25; }
.svc p { margin-top: .4rem; color: var(--mute); font-size: .98rem; }
.faq.acc { max-width: none; margin-top: 1rem; }
.faq summary h3 { display: inline; font: inherit; color: inherit; }
.acc summary { font-size: 1.1rem; }
.acc .svc { background: var(--sky); border: 0; }
.all-title, .acc details, #conseils { scroll-margin-top: 100px; }
.conseils h4 { color: var(--navy); font-size: 1.02rem; margin-top: .7rem; }
.conseils ol, .conseils ul { margin: .3rem 0 0 1.25rem; color: var(--mute); }
.conseils li { margin-top: .2rem; }
.conseils li b { color: var(--ink); }
.conseils .src { font-size: .85rem; margin-top: .7rem; }
.alerte { background: var(--red); color: #fff; font-weight: 600; text-align: center; padding: .4em 0; font-size: .98rem; }
.alerte a { color: #fff; }

.gallery { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { position: relative; border-radius: 12px; overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { aspect-ratio: auto; height: 100%; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide img { aspect-ratio: 2 / 1; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(20,30,55,.85));
}

.avis { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.avis figure { background: var(--sky); border-radius: var(--r); padding: 14px 16px; }
.avis blockquote { color: var(--ink); font-size: 1rem; }
.avis figcaption { margin-top: .6rem; color: var(--mute); font-size: .88rem; }
.avis-liens { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 12px; }
.avis-note { margin-top: .9rem; color: var(--mute); font-size: .82rem; }

.steps { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: s; }
.step { background: #fff; border-radius: var(--r); padding: 14px 16px; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; margin-bottom: 6px;
}
.step h3 { color: var(--navy); font-size: 1.1rem; }
.step p { color: var(--mute); margin-top: .35rem; font-size: .98rem; }

.zone-titre { margin-top: 1rem; color: var(--navy); font-size: 1.1rem; }
.zone-titre + .zones { margin-top: .5rem; }
.zone-lien { margin-top: .9rem; }
.zones { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 10px; }
.zones li { list-style: none; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; padding: .45em 1em; border-radius: 999px; font-size: .95rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split img { border-radius: var(--r); width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 0 1.2rem; }
.prose li { margin-top: .35rem; }
.prose h2 { margin-top: 2rem; }

.faq { margin-top: 1rem; display: grid; gap: 8px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin-top: .6rem; color: var(--mute); }

.band { background: var(--navy); color: #fff; text-align: center; }
.band h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.band p { color: #D7E0F0; margin-top: .5rem; }
.band .ctas { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- formulaire ---------- */
.form-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
form.devis { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.field label small { font-weight: 500; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .7em .85em; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(58,92,153,.25); border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.consent { margin-top: 14px; font-size: .85rem; color: var(--mute); }
form.devis .btn { margin-top: 18px; width: 100%; font-size: 1.08rem; }
.notice { border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; font-weight: 600; }
.notice.ok { background: #E7F6EC; color: #1C6B3A; border: 1px solid #BFE5CB; }
.notice.err { background: #FBEAEA; color: #8E2B28; border: 1px solid #F0C6C4; }
.aside { background: var(--sky); border-radius: var(--r); padding: 24px; }
.aside h2 { color: var(--navy); font-size: 1.25rem; }
.aside p { color: var(--mute); margin-top: .5rem; }
.aside .btn { width: 100%; margin-top: 12px; }

/* ---------- pied ---------- */
footer.foot { background: var(--navy-d); color: #C9D3E6; font-size: .93rem; }
footer.foot .wrap { padding: 24px 0 16px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer.foot h3 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
footer.foot a { color: #fff; text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }
footer.foot ul { list-style: none; }
footer.foot li { margin-top: .3rem; }
footer.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- boutons fixes à droite (ordinateur), barre du bas (mobile) ---------- */
.mbar { position: fixed; z-index: 30; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.mbar a { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0; text-decoration: none; box-shadow: 0 4px 14px rgba(20,30,55,.28); transition: transform .15s ease; }
.mbar a:hover { transform: scale(1.1); }
.mbar a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.mbar svg { width: 25px; height: 25px; fill: currentColor; }
.mbar .c { background: var(--blue); } .mbar .w { background: var(--wa); } .mbar .d { background: var(--red); }
@media (min-width: 861px) and (max-width: 1260px) {
  section .wrap { width: calc(100% - 140px); }
}

@media (max-width: 1080px) {
  .top .brand img { width: 200px; }
  .top nav { gap: 14px; }
  .top nav a[href="index.html"] { display: none; }
  .top nav a { font-size: .92rem; }
}
@media (max-width: 860px) {
  .top nav a:not(.btn) { display: none; }
  .top .brand img { width: 180px; }
  .split, .form-grid { grid-template-columns: 1fr; }
  .split img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .cards, .svc-list { grid-template-columns: repeat(2, 1fr); }
  .avis { grid-template-columns: 1fr; }
  .gallery figure:last-child { grid-column: span 2; }
  .gallery figure:last-child img { aspect-ratio: 2 / 1; }
  footer.foot .wrap { grid-template-columns: 1fr; }
  body { padding-bottom: 68px; }
  .hero .ctas { display: none; }
  .mbar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; right: auto; top: auto; transform: none; inset: auto 0 0 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,.15);
  }
  .mbar a { width: auto; height: auto; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 4px 10px; font-weight: 700; font-size: .82rem; }
  .mbar a:hover { transform: none; }
  .mbar svg { width: 22px; height: 22px; }
}
@media (max-width: 520px) {
  .top .btn span { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .cards, .svc-list, .avis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
