/* ==========================================================================
   COUVERTURE GUERIN — Design System
   Couvreur Auxerre (89) — Identité dérivée du logo
   Bleu métallique · Rouge toiture · Anthracite · Acier · Or solaire
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Bleu (texte GUERIN du logo) */
  --blue-900: #0b2347;
  --blue-800: #0f3568;
  --blue-700: #134a8e;
  --blue-600: #1a5bb8;
  --blue-500: #2670d6;
  --blue-400: #4a90e2;

  /* Rouge toiture */
  --red-700: #9e0f15;
  --red-600: #c8161d;
  --red-500: #e23a40;

  /* Anthracite / slate (fond du logo) */
  --slate-950: #0a0f1a;
  --slate-900: #0f1623;
  --slate-850: #141c2c;
  --slate-800: #1a2333;
  --slate-700: #28344a;
  --slate-600: #3a4a66;

  /* Acier / neutres clairs */
  --steel-100: #f4f7fb;
  --steel-200: #e6edf5;
  --steel-300: #d3dde9;
  --steel-400: #b2c0d2;
  --steel-500: #8493a8;
  --steel-600: #5d6c82;

  /* Accent solaire (le soleil du logo) */
  --gold: #f2a11d;
  --gold-dark: #d98810;

  /* Sémantique */
  --bg: #ffffff;
  --bg-soft: var(--steel-100);
  --bg-dark: var(--slate-900);
  --text: #15202e;
  --text-soft: #43526a;
  --text-muted: var(--steel-600);
  --border: #e2e9f1;
  --primary: var(--blue-600);
  --primary-dark: var(--blue-800);
  --accent: var(--red-600);

  --shadow-sm: 0 1px 2px rgba(15, 22, 35, .06), 0 2px 6px rgba(15, 22, 35, .06);
  --shadow-md: 0 8px 24px rgba(15, 22, 35, .10);
  --shadow-lg: 0 20px 50px rgba(11, 35, 71, .18);
  --shadow-blue: 0 14px 34px rgba(19, 74, 142, .28);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-soft); }
/* Rythme vertical du texte courant : espace entre paragraphes consécutifs
   (sans toucher aux composants à un seul paragraphe : cartes, hero, footer…) */
p + p { margin-top: 1.05rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.25rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--slate-900); color: #fff; }
.section--dark p { color: var(--steel-300); }
.section--dark h2, .section--dark h3 { color: #fff; }
.grid { display: grid; gap: var(--gap); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red-600); border-radius: 2px; }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .eyebrow::before { background: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: .9rem; font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .92rem 1.6rem; border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 10px 26px rgba(200, 22, 29, .32); }
.btn--primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(200, 22, 29, .4); }
.btn--blue { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }
.btn--blue:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--blue-700); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--wa { background: #25d366; color: #0a3a1f; }
.btn--wa:hover { background: #1eb858; transform: translateY(-2px); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.topbar {
  background: var(--slate-900); color: var(--steel-300);
  font-size: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: var(--steel-200); display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--gold); }
.topbar__group { display: flex; align-items: center; gap: 1.4rem; }
.topbar__hours { display: inline-flex; align-items: center; gap: .4rem; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, .97); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 50px; width: auto; border-radius: 8px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--blue-800); letter-spacing: -.01em; }
.brand__txt span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; color: var(--text);
  padding: .55rem .8rem; border-radius: 8px; position: relative; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--blue-700); background: var(--steel-100); }
.nav__links a.active { color: var(--blue-700); }
.nav__links a.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--red-600); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* ---- Déroulant Services ---- */
.nav__drop { position: relative; display: inline-flex; align-items: center; }
.nav__droptoggle { display: inline-flex; align-items: center; gap: .25rem; }
.nav__chev { width: 15px; height: 15px; flex-shrink: 0; transition: transform .25s var(--ease); }
.nav__drop:hover .nav__chev, .nav__drop:focus-within .nav__chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 256px;
  display: flex; flex-direction: column; gap: 2px; padding: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); z-index: 105;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { padding: .65rem .85rem; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.nav__menu a:hover { background: var(--steel-100); color: var(--blue-700); }
.nav__menu a.active::after { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.burger span { width: 26px; height: 2.5px; background: var(--slate-800); border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* IMPORTANT : on retire le backdrop-filter du header sur mobile.
     Sinon il crée un "containing block" qui cale le menu fixed sur la
     hauteur du header (76px) au lieu du viewport → menu cassé. */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header.scrolled { background: #fff; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); height: 100dvh;
    flex-direction: column; align-items: stretch; gap: .25rem; overflow-y: auto;
    background: #fff; padding: 5.5rem 1.4rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .35s var(--ease); z-index: 95;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { padding: .95rem 1rem; font-size: 1.1rem; border-radius: 10px; }
  .nav__links a.active::after { display: none; }
  .nav__links a.active { background: var(--steel-100); }
  /* Déroulant Services en accordéon déplié sur mobile */
  .nav__drop { display: flex; flex-direction: column; align-items: stretch; }
  .nav__droptoggle { justify-content: space-between; }
  .nav__chev { display: none; }
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    padding: .1rem 0 .4rem .7rem; min-width: 0; gap: 0;
    border-left: 2px solid var(--border); margin-left: 1rem;
  }
  .nav__menu::before { display: none; }
  .nav__menu a { font-size: 1rem; padding: .7rem 1rem; color: var(--text-soft); white-space: normal; }
  .burger { display: flex; z-index: 96; }
  .nav__cta .btn--blue { display: none; }
}

.nav-backdrop { position: fixed; inset: 0; background: rgba(10, 15, 26, .5); opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(125deg, rgba(10, 15, 26, .92) 0%, rgba(13, 30, 60, .8) 46%, rgba(11, 35, 71, .55) 100%),
    url("../img/photos/g10.webp") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--red-600) 0 50%, var(--blue-500) 50% 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; min-height: calc(100svh - 117px); padding-block: clamp(2rem, 4vw, 3.5rem);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
  background: rgba(242, 161, 29, .14); border: 1px solid rgba(242, 161, 29, .4);
  color: var(--gold); padding: .5rem 1rem; border-radius: 50px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .02em;
}
.hero h1 { color: #fff; margin-bottom: 1.3rem; }
.hero h1 .hl { color: var(--gold); }
.hero__sub { font-size: 1.18rem; color: var(--steel-300); max-width: 36ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.3rem 2rem; }
.hero__trust li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--steel-200); font-weight: 500; }
.hero__trust svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

.hero__card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; font-size: 1.3rem; margin-bottom: .4rem; }
.hero__card p { color: var(--steel-300); font-size: .95rem; margin-bottom: 1.4rem; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.hero__stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 1rem; text-align: center; }
.hero__stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--gold); line-height: 1; }
.hero__stat span { font-size: .78rem; color: var(--steel-300); margin-top: .35rem; display: block; }
.hero__rating { display: flex; align-items: center; gap: .6rem; justify-content: center; padding-top: .25rem; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: 2; max-width: 480px; }
}

/* ==========================================================================
   BANDEAU RÉASSURANCE
   ========================================================================== */
.assurance { background: #fff; border-bottom: 1px solid var(--border); }
.assurance__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1.5rem; padding-block: 2rem; }
.assurance__item { display: flex; align-items: center; gap: .9rem; }
.assurance__ic { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--steel-100); color: var(--blue-700); }
.assurance__ic svg { width: 24px; height: 24px; }
.assurance__item b { display: block; font-family: var(--font-display); font-size: .98rem; color: var(--text); }
.assurance__item span { font-size: .82rem; color: var(--text-muted); }

/* ==========================================================================
   SERVICES — cartes
   ========================================================================== */
.services-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.scard {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.9rem 1.7rem; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.scard::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--red-600)); transform: scaleX(0);
  transform-origin: left; transition: transform .4s var(--ease);
}
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.scard:hover::before { transform: scaleX(1); }
.scard__ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); color: #fff; box-shadow: var(--shadow-blue); }
.scard__ic svg { width: 28px; height: 28px; }
.scard.is-red .scard__ic { background: linear-gradient(135deg, var(--red-700), var(--red-600)); box-shadow: 0 10px 26px rgba(200, 22, 29, .3); }
.scard h3 { margin-bottom: .6rem; }
.scard p { font-size: .96rem; margin-bottom: 1.1rem; }
.scard__link { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--blue-700); transition: gap .25s; }
.scard__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.scard:hover .scard__link { gap: .7rem; }
.scard__tag { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--gold); color: #3a2700; padding: .25rem .6rem; border-radius: 50px; }

/* Liste services compacte (page services) */
.svc-detail { border-bottom: 1px solid var(--border); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.svc-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.svc-detail:nth-child(even) .svc-detail__media { order: 2; }
.svc-detail img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.svc-detail__num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--red-600); letter-spacing: .1em; margin-bottom: .6rem; }
.svc-detail h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .9rem; }
.svc-detail ul.checks { margin-top: 1.2rem; display: grid; gap: .6rem; }
@media (max-width: 760px) {
  .svc-detail__grid { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
}

/* checklist */
.checks li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-soft); }
.checks svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
.section--dark .checks li { color: var(--steel-200); }
.section--dark .checks svg { color: var(--gold); }

/* ==========================================================================
   POURQUOI NOUS
   ========================================================================== */
.why { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why__media { position: relative; }
.why__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.why__badge {
  position: absolute; bottom: -22px; right: -10px; background: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .9rem;
  border: 1px solid var(--border);
}
.why__badge b { font-family: var(--font-display); font-size: 1.9rem; color: var(--blue-700); line-height: 1; }
.why__badge span { font-size: .82rem; color: var(--text-muted); }
.why__badge .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-600); color: #fff; display: grid; place-items: center; }
.why__badge .ic svg { width: 24px; height: 24px; }

.feat-list { display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.feat { display: flex; gap: 1.1rem; }
.feat__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--steel-100); color: var(--blue-700); }
.feat__ic svg { width: 24px; height: 24px; }
.feat h4 { margin-bottom: .25rem; }
.feat p { font-size: .95rem; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } .why__badge { right: 1rem; } }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 1rem; }
.step__num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); box-shadow: var(--shadow-blue);
  margin-bottom: 1.1rem; position: relative; z-index: 2;
}
.step:nth-child(2) .step__num,
.step:nth-child(4) .step__num { background: linear-gradient(135deg, var(--red-700), var(--red-600)); box-shadow: 0 10px 24px rgba(200, 22, 29, .3); }
.step h4 { margin-bottom: .45rem; }
.step p { font-size: .92rem; }
.step::after {
  content: ""; position: absolute; top: 1rem; left: 54px; right: -1rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--steel-300) 0 8px, transparent 8px 16px); z-index: 1;
}
.step:last-child::after { display: none; }
.section--dark .step::after { background: repeating-linear-gradient(90deg, var(--slate-600) 0 8px, transparent 8px 16px); }
@media (max-width: 880px) { .step:nth-child(2)::after, .step:last-child::after { display: none; } }

/* ==========================================================================
   RÉALISATIONS
   ========================================================================== */
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.work {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3; background: var(--slate-800);
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.07); }
.work__cap {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(10, 15, 26, .9)); color: #fff;
  transform: translateY(8px); opacity: .92; transition: .35s var(--ease);
}
.work:hover .work__cap { transform: translateY(0); opacity: 1; }
.work__cap b { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.work__cap span { font-size: .82rem; color: var(--steel-300); }
.work__tag {
  position: absolute; top: 1rem; left: 1rem; background: rgba(19, 74, 142, .92); color: #fff;
  font-size: .72rem; font-weight: 600; font-family: var(--font-display); padding: .3rem .7rem; border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   TÉMOIGNAGES
   ========================================================================== */
.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.review {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review .stars svg { width: 18px; height: 18px; }
.review p { color: var(--text); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.review__by { display: flex; align-items: center; gap: .75rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.review__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.review__by b { font-size: .95rem; font-family: var(--font-display); }
.review__by span { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.review__by span svg { width: 13px; height: 13px; }

.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.grating { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1.2rem; box-shadow: var(--shadow-sm); }
.grating b { font-family: var(--font-display); font-size: 2rem; color: var(--text); line-height: 1; }
.grating .g { display: flex; flex-direction: column; }
.grating .g span { font-size: .8rem; color: var(--text-muted); }

/* ==========================================================================
   ZONE D'INTERVENTION
   ========================================================================== */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.zone__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.zone__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.gmaps-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--blue-700); text-decoration: none; }
.gmaps-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.gmaps-link svg:last-child { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.gmaps-link:hover { color: var(--blue-800); }
.gmaps-link:hover svg:last-child { transform: translateX(3px); }
.cities { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.city {
  display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--border);
  border-radius: 50px; padding: .55rem 1rem; font-size: .9rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-sm); transition: .25s var(--ease);
}
.city svg { width: 15px; height: 15px; color: var(--red-600); }
.city:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); }
.section--dark .city { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--steel-200); }
@media (max-width: 820px) { .zone { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .9rem; background: #fff; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq__item[open] { box-shadow: var(--shadow-md); border-color: var(--blue-200, #c7d9f0); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--text); list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .chev { width: 24px; height: 24px; flex-shrink: 0; color: var(--blue-600); transition: transform .3s var(--ease); }
.faq__item[open] .faq__q .chev { transform: rotate(180deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--text-soft); }
.faq__a p { margin-bottom: .6rem; }

/* ==========================================================================
   CTA BANDEAU
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(125deg, var(--blue-800), var(--blue-700) 60%, var(--blue-600)); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-roof.svg") repeat; opacity: .06; }
.cta-band__inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: .9rem; }
.cta-band__phone { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; }
.cta-band__phone svg { width: 30px; height: 30px; color: var(--gold); }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 1.1rem; }
.cinfo { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); transition: .25s var(--ease); }
.cinfo:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cinfo__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); color: #fff; }
.cinfo__ic svg { width: 24px; height: 24px; }
.cinfo h4 { margin-bottom: .15rem; font-size: 1rem; }
.cinfo a, .cinfo p { color: var(--text-soft); font-size: .96rem; }
.cinfo a:hover { color: var(--blue-700); }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.field label .req { color: var(--red-600); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--steel-100); color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(38, 112, 214, .12); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.form__consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue-600); }
.form__note { font-size: .82rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }
.form .btn { width: 100%; }

/* ==========================================================================
   PAGE HEADER (pages internes)
   ========================================================================== */
.pagehead { position: relative; color: #fff; background: linear-gradient(120deg, var(--slate-900), var(--blue-800)); overflow: hidden; }
.pagehead::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern-roof.svg") repeat; opacity: .06; }
.pagehead__inner { position: relative; padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.pagehead h1 { color: #fff; margin-bottom: .7rem; }
.pagehead p { color: var(--steel-300); font-size: 1.1rem; max-width: 55ch; }
.crumb { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--steel-400); margin-bottom: 1.1rem; }
.crumb a { color: var(--steel-300); transition: color .2s; }
.crumb a:hover { color: #fff; }
.crumb svg { width: 14px; height: 14px; opacity: .6; }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.legacy { display: inline-flex; align-items: center; gap: .7rem; background: linear-gradient(135deg, var(--red-700), var(--red-600)); color: #fff; padding: .7rem 1.2rem; border-radius: 50px; font-family: var(--font-display); font-weight: 600; margin-bottom: 1.4rem; box-shadow: 0 10px 24px rgba(200, 22, 29, .25); }
.legacy svg { width: 20px; height: 20px; }
.about h2 { margin-bottom: .9rem; }
.about .lead { margin-bottom: .3rem; }
.about p { line-height: 1.7; }
.values { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 1rem; }
/* Variante 3 colonnes (6 cartes en 3×2 plutôt que 4+2) */
.values--3up { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .values--3up { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values--3up { grid-template-columns: 1fr; } }
.value { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); }
.value__ic { width: 50px; height: 50px; border-radius: 12px; background: var(--steel-100); color: var(--blue-700); display: grid; place-items: center; margin-bottom: 1rem; }
.value__ic svg { width: 26px; height: 26px; }
.value h4 { margin-bottom: .4rem; }
.value p { font-size: .94rem; }

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats-band { grid-template-columns: repeat(4, 1fr); text-align: center; }
@media (max-width: 700px) { .stats-band { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } }
.statb b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--gold); line-height: 1; display: block; }
.statb span { color: var(--steel-300); font-size: .95rem; margin-top: .4rem; display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--slate-950); color: var(--steel-400); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 56px; border-radius: 8px; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--steel-500); font-size: .94rem; max-width: 32ch; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1.2rem; }
.footer ul li { margin-bottom: .65rem; }
.footer ul a, .footer__contact a, .footer__contact span { color: var(--steel-400); font-size: .94rem; transition: color .2s; display: inline-flex; align-items: flex-start; gap: .5rem; }
.footer ul a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: .55rem; margin-bottom: .8rem; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: var(--steel-300); transition: .25s var(--ease); }
.footer__social a:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--steel-600); }
.footer__bottom a { color: var(--steel-500); }
.footer__bottom a:hover { color: var(--gold); }
.footer__bottom .legal-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* ==========================================================================
   FLOATING / UTILITIES
   ========================================================================== */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: .7rem; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff; transition: transform .25s var(--ease); }
.fab a:hover { transform: scale(1.08); }
.fab__wa { background: #25d366; }
.fab__tel { background: var(--red-600); }
.fab a svg { width: 26px; height: 26px; }
@media (min-width: 981px) { .fab__tel { display: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.divider-roof { height: 6px; background: linear-gradient(90deg, var(--blue-600) 0 50%, var(--red-600) 50% 100%); }

/* Toast formulaire */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--slate-900); color: #fff; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .7rem; z-index: 200; transition: transform .4s var(--ease); max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 22px; height: 22px; color: #25d366; flex-shrink: 0; }

/* ==========================================================================
   OPTIMISATIONS MOBILE
   ========================================================================== */
@media (max-width: 700px) {
  /* Topbar : on garde l'essentiel = téléphone cliquable + horaires, on masque l'email */
  .topbar { font-size: .82rem; }
  .topbar .container { gap: .6rem; min-height: 38px; }
  .topbar__group a[href^="mailto"] { display: none; }
  .topbar__group { gap: 0; }
  .topbar__hours span { white-space: nowrap; }
  .topbar a[href^="tel"] { font-weight: 600; color: #fff; }
}
@media (max-width: 430px) {
  /* Très petit écran : téléphone seul, centré et lisible */
  .topbar__hours { display: none; }
  .topbar .container { justify-content: center; }
  .topbar a[href^="tel"] { font-size: .92rem; }
}

@media (max-width: 880px) {
  /* HERO : tout tient dans un écran, carte masquée, texte resserré */
  .hero__inner { min-height: auto; padding-block: 2.4rem 2.8rem; gap: 1.6rem; }
  .hero__card { display: none; }
  .hero__badge { margin-bottom: 1rem; font-size: .8rem; padding: .45rem .9rem; }
  .hero h1 { font-size: clamp(1.95rem, 7.4vw, 2.5rem); margin-bottom: 1rem; }
  .hero__sub { font-size: 1.05rem; max-width: none; margin-bottom: 1.5rem; }
  .hero__cta { gap: .7rem; margin-bottom: 1.8rem; }
  .hero__cta .btn { width: 100%; }
  .hero__trust { gap: .7rem 1.4rem; }
  .hero__trust li { font-size: .9rem; }
}
@media (max-width: 600px) {
  /* Confort de lecture & espacements généraux */
  body { font-size: 16px; }
  .section { padding-block: clamp(2.8rem, 9vw, 3.5rem); }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .btn { padding: .9rem 1.3rem; }
  .btn--lg { padding: 1rem 1.4rem; font-size: 1rem; }
  /* CTA bandeau & sections : boutons pleine largeur, alignés */
  .cta-band__actions .btn, .cta-band__actions { width: 100%; }
  .cta-band__phone { font-size: 1.4rem; justify-content: center; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
  /* FAB : un poil plus compact pour ne pas gêner */
  .fab a { width: 52px; height: 52px; }
  .fab { right: 14px; bottom: 14px; }
}
