/* =========================================================================
   Nièvre Couverture Zinguerie — Feuille de styles globale
   Palette : rouge #e30613, encre #111827, fonds clairs.
   ========================================================================= */

:root {
  --red: #e30613;
  --red-dark: #c30510;
  --ink: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --bg: #f5f5f7;
  --bg-soft: #f9fafb;
  --white: #ffffff;
  --red-50: #fee2e2;
  --red-100: #fecaca;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 24px rgba(15,23,42,.06);
  --shadow-md: 0 14px 36px rgba(15,23,42,.09);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.14);
  --maxw: 1180px;
  --header-h: 76px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html,body { margin: 0; padding: 0; }
body {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Accessibilité : focus visible */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(227,6,19,.45);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-light { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-header-left { text-align: left; margin-bottom: 32px; }
.section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.section-header h2, .section-header-left h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; }
.section-subtitle { margin: 0; font-size: 16px; color: var(--muted); }

h1,h2,h3 { font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 14px; }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1;
  transition: background-color .18s, color .18s, box-shadow .2s, transform .12s, border-color .18s;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px rgba(227,6,19,.28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 16px 34px rgba(227,6,19,.34); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn.full { width: 100%; }

/* ---------- TOPBAR + HEADER ---------- */
.topbar { background: var(--ink); color: #f9fafb; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 22px; gap: 14px; flex-wrap: wrap; }
.topbar-inner strong { color: #fca5a5; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding: 10px 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 116px; height: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 17px; font-weight: 800; }
.brand-sub { font-size: 12.5px; color: var(--muted-2); }

.main-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.main-nav a { padding: 6px 0; color: var(--muted); position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--red); border-radius: 999px; transition: width .22s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }
.main-nav .nav-cta {
  color: #fff; background: var(--red); padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(227,6,19,.26);
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .22s, opacity .22s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; color: #fff; padding: clamp(60px, 10vw, 110px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(10,12,16,.92) 0%, rgba(10,12,16,.72) 45%, rgba(10,12,16,.35) 100%),
    url("../../img/chantier-nzc.jpg") center/cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 48px; align-items: center; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); margin: 6px 0 14px; color: #f3f4f6; }
.hero-muted { margin: 0 0 26px; font-size: 16px; color: #d1d5db; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-bullets { list-style: none; padding: 0; margin: 0; font-size: 15px; color: #e5e7eb; display: grid; gap: 8px; }
.hero-bullets li { position: relative; padding-left: 26px; }
.hero-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--red); border-radius: 999px;
}

/* Carte infos pratiques dans le hero */
.hero-card {
  background: rgba(255,255,255,.98); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); color: var(--ink);
}
.hero-card h2 { font-size: 19px; margin: 0 0 16px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-icon-square, .zone-icon-square {
  width: 42px; height: 42px; border-radius: 12px; background: var(--red-50);
  border: 1px solid var(--red-100); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-symbol { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--red); }
.info-label { font-size: 12.5px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.info-list li div:last-child { font-size: 14.5px; }

/* ---------- BANDEAU STATS / CONFIANCE ---------- */
.stats-strip { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(160px,240px)); justify-content: center; gap: 18px; padding: 30px 0; text-align: center; }
.stat-num { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #fff; }
.stat-num span { color: var(--red); }
.stat-label { font-size: 13.5px; color: #cbd5e1; margin-top: 2px; }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red-100); }
.service-icon { width: 50px; height: 50px; border-radius: 16px; background: var(--red-50); border: 1px solid var(--red-100); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-icon .icon-symbol { font-size: 13px; }
.service-card p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- TARIFS ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; align-items: start; }
.pricing-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.pricing-card h3 { text-align: center; margin-bottom: 6px; }
.pricing-subtitle { text-align: center; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.pricing-price { text-align: center; font-size: 24px; font-weight: 800; margin: 0 0 20px; }
.pricing-price.pricing-free { color: var(--red); }
.pricing-list { list-style: none; padding: 0; margin: 0 0 22px; font-size: 14.5px; color: var(--muted); display: grid; gap: 9px; }
.pricing-list li { position: relative; padding-left: 24px; }
.pricing-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--red); font-weight: 800; font-size: 13px; }
.pricing-featured { border-color: var(--red); box-shadow: 0 22px 50px rgba(227,6,19,.18); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 16px; font-size: 11.5px; font-weight: 700; border-radius: 999px; background: var(--red); color: #fff; }

/* ---------- À PROPOS ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1.1fr); gap: 48px; align-items: center; }
.about-text p { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.about-badges span { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; background: var(--red-50); color: var(--red-dark); font-weight: 600; }
.about-image-wrapper { position: relative; }
.about-photo {
  width: 100%; height: clamp(320px, 42vw, 460px); border-radius: 28px;
  background: url("../../img/couverture.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.about-badge-years { position: absolute; right: 20px; bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--red); color: #fff; box-shadow: 0 16px 34px rgba(227,6,19,.34); text-align: center; }
.years-number { display: block; font-weight: 800; font-size: 18px; }
.years-text { display: block; font-size: 13px; }

/* ---------- ZONE D'INTERVENTION ---------- */
.zone-panel { background: #fff5f5; border-radius: var(--radius); border: 1px solid #fed7d7; padding: 22px; box-shadow: 0 12px 30px rgba(248,113,113,.16); }
.zone-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.zone-title { font-weight: 700; font-size: 16px; }
.zone-cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city-tag { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; box-shadow: 0 4px 10px rgba(148,163,184,.16); transition: border-color .16s, color .16s, transform .12s; }
a.city-tag:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

/* Grille de liens villes (maillage interne SEO) */
.cities-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.cities-links a {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: border-color .16s, transform .12s, box-shadow .16s;
}
.cities-links a::before { content: "›"; color: var(--red); font-weight: 800; }
.cities-links a:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1.3fr); gap: 32px; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.form-field-full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 600; }
input,select,textarea {
  border-radius: 12px; border: 1px solid var(--line); padding: 12px 14px; font-size: 15px;
  font-family: inherit; background: #fff; color: var(--ink); transition: border-color .16s, box-shadow .16s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.16); }
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12.5px; color: var(--muted-2); margin: 10px 0 0; }
.contact-info-cards { display: grid; gap: 14px; align-content: start; }
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.map-embed { border: 0; width: 100%; height: 220px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- FIL D'ARIANE ---------- */
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* ---------- PAGES VILLE ---------- */
.city-hero { background: linear-gradient(120deg,#111827,#1f2937); color: #fff; padding: clamp(40px,6vw,72px) 0; }
.city-hero h1 { color: #fff; }
.city-hero p { color: #d1d5db; font-size: 17px; max-width: 720px; margin: 6px 0 0; }
.prose { max-width: 760px; }
.prose p { font-size: 16px; color: #374151; }
.prose h2 { margin-top: 32px; }
.cta-band { background: var(--red); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: 0 22px 50px rgba(227,6,19,.22); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #ffe4e6; margin-bottom: 20px; }

/* ---------- RÉALISATIONS ---------- */
.realisations-hero { padding: clamp(48px,7vw,80px) 0 32px; text-align: center; }
.realisations-hero h1 { margin-bottom: 12px; }
.realisations-hero p { font-size: 17px; color: var(--muted); margin: 0 auto; max-width: 660px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: #e5e7eb; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: #e5e7eb; padding: 40px 0 28px; margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1.4fr); gap: 32px; }
.footer-brand { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.footer-text { margin: 0 0 6px; font-size: 14px; color: #d1d5db; }
.footer-text.small { font-size: 12.5px; color: var(--muted-2); }
.footer-title { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 14px; color: #d1d5db; display: grid; gap: 7px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #1f2937; margin-top: 28px; padding-top: 18px; font-size: 12.5px; color: var(--muted-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- BOUTON APPEL MOBILE STICKY ---------- */
.mobile-call-btn {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 700; font-size: 16px; box-shadow: 0 16px 34px rgba(227,6,19,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-call-btn.show { opacity: 1; pointer-events: auto; }
@media (min-width: 821px) { .mobile-call-btn { display: none; } }
@media (max-width: 820px) { .mobile-call-btn { width: calc(100% - 32px); max-width: 440px; } }

/* ---------- POPUP MESSAGE ---------- */
.popup-message {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 14px 22px; border-radius: 14px;
  font-size: 15px; font-weight: 500; opacity: 0; transition: opacity .3s, transform .3s;
  z-index: 99999; box-shadow: 0 10px 30px rgba(0,0,0,.28); max-width: 90vw; text-align: center;
}
.popup-message.show { opacity: 1; transform: translateX(-50%) translateY(-10px); }

/* ---------- ANIMATIONS AU SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .about-grid, .contact-grid { grid-template-columns: minmax(0,1fr); }
  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-grid { grid-template-columns: minmax(0,1fr); max-width: 460px; margin: 0 auto; }
  .cities-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 820px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 18px;
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--bg-soft); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 64px; }
  :root { --header-h: 64px; }
}
@media (max-width: 600px) {
  .topbar { display: none; }
  .services-grid, .gallery-grid { grid-template-columns: minmax(0,1fr); }
  .stats-grid { grid-template-columns: repeat(3,1fr); gap: 8px; padding: 24px 12px; }
  .stat-num { font-size: clamp(18px, 6vw, 28px); }
  .stat-label { font-size: 11px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .footer-inner { grid-template-columns: minmax(0,1fr); }
  .cities-links { grid-template-columns: minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
