/* ============================================================
   Clean Fin de Chantier — Design System
   ============================================================ */

:root {
  --accent:      #1a6fc4;
  --accent-dark: #145299;
  --accent-bg:   #e8f1fb;
  --dark:        #1a1a2e;
  --text:        #2d2d2d;
  --muted:       #5f6368;
  --light:       #f7f8fa;
  --white:       #ffffff;
  --border:      #dde2e8;
  --success:     #1e7e34;
  --warning:     #ff6b35;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --max-w:       1140px;
  --font:        'Helvetica Neue', Arial, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Reading Progress ---- */
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; background: var(--border); }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--dark); text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 900; font-size: 1rem;
}
.logo:hover { text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a { padding: 8px 14px; border-radius: var(--radius); color: var(--text); font-size: .95rem; transition: background .15s; }
.header-nav a:hover { background: var(--light); text-decoration: none; }
.header-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 10px 20px !important; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; transition: background .15s !important;
}
.header-cta:hover { background: var(--accent-dark) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* Header tel + devis button */
.header-tel {
  font-size: .875rem; color: var(--muted) !important;
  padding: 8px 10px !important; border-radius: var(--radius);
  display: flex; align-items: center; gap: 6px;
  transition: color .15s !important;
}
.header-tel:hover { color: var(--accent) !important; text-decoration: none !important; background: var(--light) !important; }
.header-devis-btn {
  background: var(--accent); color: var(--white);
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: .9rem; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .1s; cursor: pointer;
  border: none;
}
.header-devis-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.header-devis-arrow { font-size: 1rem; transition: transform .2s; }
.header-devis-btn:hover .header-devis-arrow { transform: translateX(3px); }

/* ============================================================
   DEVIS PANEL (slide-in)
   ============================================================ */
.devis-overlay {
  position: fixed; inset: 0; z-index: 1999;
  background: rgba(0,0,0,.5); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.devis-overlay.open { opacity: 1; pointer-events: auto; }

.devis-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2000;
  width: 440px; max-width: 100vw;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
}
.devis-panel.open { transform: translateX(0); }

.dp-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--light);
  position: sticky; top: 0; z-index: 1;
}
.dp-badge {
  display: inline-block; background: var(--accent-bg); color: var(--accent);
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 50px;
  margin-bottom: 8px;
}
.dp-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin: 0; }
.dp-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  color: var(--muted); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; flex-shrink: 0; margin-left: 12px;
}
.dp-close:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

.dp-body { padding: 24px 28px; flex: 1; }

.dp-reassurance {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.dp-reassurance span {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  background: var(--light); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 50px;
}

.dp-form { display: flex; flex-direction: column; gap: 16px; }
.dp-field { display: flex; flex-direction: column; gap: 6px; }
.dp-field label { font-size: .82rem; font-weight: 600; color: var(--dark); }
.dp-field input,
.dp-field select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  background: var(--white);
}
.dp-field input:focus,
.dp-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.dp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-submit {
  width: 100%; padding: 14px 20px; margin-top: 4px;
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.dp-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.dp-legal {
  font-size: .75rem; color: var(--muted); text-align: center;
  line-height: 1.5; margin-top: 4px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { max-width: var(--max-w); margin: 0 auto; padding: 12px 24px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); list-style: none; padding: 0; }
.breadcrumb li::after { content: '›'; margin-left: 4px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white); padding: 72px 24px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.90) 0%, rgba(13,58,107,.82) 100%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #b8d4f0; border-radius: 50px; padding: 4px 14px; font-size: .8rem;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 em { color: #7ec8e3; font-style: normal; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; line-height: 1.7; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat strong { display: block; font-size: 2rem; font-weight: 800; color: #7ec8e3; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.6); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: var(--white); padding: 14px 28px;
  border-radius: var(--radius); font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,.12); color: var(--white); padding: 14px 28px;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 32px;
}
.hero-card h3 { font-size: 1rem; color: rgba(255,255,255,.7); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.hero-card ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.hero-card ul li:last-child { border: none; }
.hero-card ul li::before { content: '✓'; color: #7ec8e3; font-weight: 700; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 24px; }
.section-muted { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 16px; }
.section-dark h2 { color: var(--white); }
.section h2 em { color: var(--accent); font-style: normal; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto; }
.section-dark .section-sub { color: rgba(255,255,255,.65); }

/* ============================================================
   GRIDS & CARDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--muted); line-height: 1.6; }
.card-accent { border-top: 3px solid var(--accent); }

.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.service-icon { font-size: 1.8rem; flex-shrink: 0; }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.service-card p { font-size: .875rem; color: var(--muted); }

/* ============================================================
   STEPS / METHOD
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  color: var(--white); font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body h3 { font-weight: 700; margin-bottom: 4px; }
.step-body p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   COMPARATIF TABLE
   ============================================================ */
.comparatif { width: 100%; border-collapse: collapse; font-size: .9rem; }
.comparatif th { background: var(--dark); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 700; }
.comparatif th:first-child { border-radius: 8px 0 0 0; }
.comparatif th:last-child { border-radius: 0 8px 0 0; background: var(--accent); }
.comparatif td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.comparatif tr:last-child td { border: none; }
.comparatif td:last-child { color: var(--accent); font-weight: 700; }
.comparatif tr:nth-child(even) td { background: var(--light); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  padding: 18px 20px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: var(--accent-bg); color: var(--accent); }
.faq-answer { padding: 0 20px 20px; color: var(--muted); font-size: .95rem; line-height: 1.7; border-top: 1px solid var(--border); padding-top: 16px; }

/* ============================================================
   DEVIS FORM
   ============================================================ */
.devis-section { background: var(--accent); color: var(--white); padding: 72px 24px; }
.devis-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.devis-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; color: var(--white); }
.devis-text p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 24px; }
.devis-reassurance { display: flex; flex-direction: column; gap: 10px; }
.devis-reassurance li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.9); }
.devis-reassurance li::before { content: '✓'; font-weight: 800; color: #7ec8e3; }
.devis-form { background: var(--white); border-radius: 16px; padding: 36px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .95rem; font-family: inherit;
  transition: border-color .15s; background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,111,196,.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit {
  width: 100%; background: var(--accent); color: var(--white);
  padding: 14px; border-radius: var(--radius); font-size: 1rem;
  font-weight: 700; transition: background .15s;
}
.form-submit:hover { background: var(--accent-dark); }
.form-mention { font-size: .75rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ============================================================
   INTERNAL LINKS / ZONES
   ============================================================ */
.zones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.zone-link {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; font-size: .875rem; color: var(--text); display: flex;
  align-items: center; justify-content: space-between; transition: all .15s;
}
.zone-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.zone-link span { font-size: .75rem; color: var(--muted); }
.dept-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dept-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: all .15s;
}
.dept-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.dept-card strong { display: block; font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.dept-card span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   VILLES VOISINES
   ============================================================ */
.voisines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.voisine-tag {
  background: var(--accent-bg); color: var(--accent); border-radius: 50px;
  padding: 5px 14px; font-size: .85rem; font-weight: 500;
  transition: background .15s;
}
.voisine-tag:hover { background: var(--accent); color: var(--white); text-decoration: none; }

/* ============================================================
   INFO BAND
   ============================================================ */
.info-band {
  background: var(--accent-bg); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0;
  font-size: .95rem; color: var(--dark);
}
.stats-band { background: var(--dark); color: var(--white); padding: 40px 24px; }
.stats-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2.2rem; font-weight: 800; color: #7ec8e3; }
.stat-item span { font-size: .9rem; color: rgba(255,255,255,.65); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 56px 24px 24px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-nap { font-size: .875rem; display: flex; flex-direction: column; gap: 6px; }
.footer-nap a { color: rgba(255,255,255,.7); }
.footer-nap a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ============================================================
   HERO FORM CARD — pages villes
   ============================================================ */
.hero-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  width: 340px;
  flex-shrink: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.hf-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  text-align: center;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}
.hf-field {
  margin-bottom: 10px;
}
.hf-field input,
.hf-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dde3ee;
  border-radius: 8px;
  font-size: .875rem;
  color: var(--dark);
  background: #fafbff;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.hf-field input:focus,
.hf-field select:focus {
  border-color: var(--accent);
  background: #fff;
}
.hf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.hf-row .hf-field { margin-bottom: 0; }
.hf-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 4px;
  font-family: inherit;
}
.hf-submit:hover { background: #0052a3; transform: translateY(-1px); }
.hf-note {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Responsive hero avec formulaire */
@media (max-width: 900px) {
  .hero-form-card {
    width: 100%;
    margin-top: 24px;
  }
}

/* ============================================================
   PHOTO BLOCKS — pages villes
   ============================================================ */
/* Bannière pleine largeur après #contexte */
.photo-banner {
  width: 100%;
  overflow: hidden;
  max-height: 420px;
  line-height: 0;
}
.photo-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Galerie 3 photos après #services */
.photo-gallery-strip {
  padding: 48px 24px;
}
.photo-gallery-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  position: relative;
}
.photo-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.photo-gallery-item:hover img { transform: scale(1.04); }
.photo-gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,37,64,.75));
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 28px 14px 12px;
  letter-spacing: .03em;
}

/* Image remise en état dans #methode */
.remise-etat-visual {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  line-height: 0;
}
.remise-etat-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .photo-banner img { height: 220px; }
  .photo-gallery-inner { grid-template-columns: 1fr; gap: 14px; }
  .photo-gallery-item img { height: 200px; }
  .remise-etat-visual img { height: 180px; }
}

/* ============================================================
   TARIFS TABLE
   ============================================================ */
/* Tarifs table — redesign premium */
.tarifs-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
/* Header */
.tarifs-table thead tr {
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
}
.tarifs-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
}
.tarifs-table thead th:first-child { border-radius: 0; color: #fff; }
/* Rows */
.tarifs-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s, transform .1s;
}
.tarifs-table tbody tr:nth-child(even) { background: #fafbfc; }
.tarifs-table tbody tr:last-child { border-bottom: none; }
.tarifs-table tbody tr:hover { background: #eef4ff; }
/* Cells */
.tarifs-table td {
  padding: 16px 20px;
  color: var(--text);
  vertical-align: middle;
}
/* Col 1 — type de chantier */
.tarifs-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  font-size: .9rem;
}
/* Col 2 — surface */
.tarifs-table td:nth-child(2) {
  color: var(--muted);
  font-size: .85rem;
  white-space: nowrap;
}
/* Col 3 — prix : mise en valeur directe sur le td */
.tarifs-table .prix {
  white-space: nowrap;
  font-weight: 700;
  font-size: .92rem;
  color: #1a7a40;
  background: #edf8f2;
  position: relative;
}
/* Séparateur coloré à gauche de la colonne prix */
.tarifs-table .prix::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: linear-gradient(135deg, #0d6e3a, #18a358);
  border-radius: 0 2px 2px 0;
}
/* Col délai */
.tarifs-table .delai {
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}
/* Inclus badges */
.tarifs-note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tarifs-note strong { color: var(--text); margin-right: 4px; }
.badge-inclus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f8ef;
  color: #1a7a40;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid #c3e8d0;
}
.tarifs-legale {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 8px;
  width: 100%;
}

/* ============================================================
   AVANT / APRÈS
   ============================================================ */
.avant-apres {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.avant-apres-panel {
  position: relative; min-height: 400px;
  background-size: cover; background-position: center;
}
.avant-apres-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%);
}
.avant-apres-label {
  position: absolute; bottom: 28px; left: 28px; z-index: 1;
}
.avant-apres-badge {
  display: inline-block; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px);
  padding: 4px 14px; border-radius: 50px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: white; margin-bottom: 10px;
}
.avant-apres-label h3 { font-size: 1.3rem; font-weight: 800; color: white; line-height: 1.3; }
.avant-apres-label p { font-size: .875rem; color: rgba(255,255,255,.75); margin-top: 6px; }
.avant-apres-arrow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 2; background: white; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 20px rgba(0,0,0,.35);
  border: 2px solid var(--border);
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.photo-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.photo-gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3;
}
.photo-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.photo-gallery-item:hover img { transform: scale(1.05); }
.photo-gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
  pointer-events: none;
}
.photo-gallery-caption {
  position: absolute; bottom: 16px; left: 16px; z-index: 1;
  color: white; font-size: .9rem; font-weight: 700;
}
.photo-gallery-caption span { display: block; font-size: .78rem; font-weight: 400; opacity: .8; margin-top: 3px; }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 16px; gap: 10px;
}
.sticky-mobile-cta a {
  flex: 1; text-align: center; padding: 12px;
  border-radius: var(--radius); font-weight: 700; font-size: .95rem;
}
.sticky-cta-tel { background: var(--light); color: var(--dark); border: 1px solid var(--border); }
.sticky-cta-devis { background: var(--accent); color: var(--white); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero { background-attachment: scroll; }
  .devis-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .avant-apres { grid-template-columns: 1fr; }
  .avant-apres-panel { min-height: 280px; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-form-card { width: 100%; max-width: 520px; margin: 32px auto 0; }
}

@media (max-width: 640px) {
  .devis-panel { width: 100vw; }
  .header-tel { display: none; }
  .header-nav { display: none; }
  .header-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav-toggle { display: flex; }
  .hero { padding: 48px 20px; }
  .hero-stats { gap: 20px; }
  .section { padding: 48px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { justify-content: center; }
  .sticky-mobile-cta { display: flex; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .avant-apres-label h3 { font-size: 1rem; }
  body { padding-bottom: 72px; }
  .hf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   UI/UX OPTIMISATIONS — v2
   ============================================================ */

/* 1 — Hero form : titre propre sans emoji */
.hf-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .09em;
  text-align: center;
  background: var(--accent-bg);
  margin: -24px -22px 18px;
  padding: 11px 22px;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid #d0dff5;
}

/* 2 — Service cards : accent gauche + hover élévation */
.service-card {
  border-left: 3px solid var(--accent);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 8px 28px rgba(26,111,196,.13); transform: translateY(-3px); }
.service-icon {
  width: 46px; height: 46px;
  background: var(--accent-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

/* 3 — Steps : ligne de connexion verticale */
.steps { position: relative; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
  z-index: 0;
}
.step-num {
  width: 48px; height: 48px;
  font-size: 1rem; font-weight: 800;
  box-shadow: 0 4px 14px rgba(26,111,196,.30);
  position: relative; z-index: 1;
}
.step-body { padding-top: 4px; }
.step-body h3 { font-size: 1rem; margin-bottom: 6px; }

/* 4 — Section label : pill avec fond coloré */
.section-label {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  border: 1px solid #c8ddf5;
}

/* 5 — Info-band : carte premium */
.info-band {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  line-height: 2;
}

/* 6 — FAQ : état ouvert avec ombre bleue */
.faq-item {
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.faq-item[open] {
  box-shadow: 0 4px 18px rgba(26,111,196,.12);
  border-color: #92b9e8;
}
.faq-item summary {
  font-size: .95rem; color: var(--dark);
  transition: background .15s;
}
.faq-item summary:hover { background: var(--light); }
.faq-answer a { color: var(--accent); text-decoration: underline; }

/* 7 — Villes voisines : pills plus présents */
.voisine-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px;
  font-size: .875rem; font-weight: 600;
  border: 1.5px solid #bed4f0;
  background: var(--white);
  color: var(--accent);
  border-radius: 50px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: all .15s;
}
.voisine-tag::before { content: '📍'; font-size: .8rem; }
.voisine-tag:hover {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(26,111,196,.25);
  transform: translateY(-1px);
  text-decoration: none;
}

/* 8 — Photo gallery : images plus hautes */
.photo-gallery-item img { height: 265px; }
.photo-gallery-strip { padding: 0; background: var(--dark); }
.photo-gallery-inner { max-width: 100%; gap: 4px; }
.photo-gallery-item { border-radius: 0; }
.photo-gallery-item figcaption {
  font-size: .85rem; padding: 32px 16px 14px;
  letter-spacing: .02em;
}

/* 9 — Comparatif : coins arrondis + ombre */
.comparatif-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}
.comparatif { border-radius: 0; }
.comparatif td { font-size: .9rem; }
.comparatif td:last-child {
  display: flex; align-items: center; gap: 6px;
}
.comparatif td:last-child::before { content: '✓'; color: var(--success); font-weight: 800; }

/* 10 — Cards pros : top accent coloré + badge icône */
.card { border-top: 3px solid transparent; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-top-color: var(--accent); box-shadow: 0 8px 28px rgba(0,0,0,.11); transform: translateY(-3px); }
.card-icon { background: var(--accent-bg); width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }

/* 11 — Section séparateur visuel entre blocs */
.section { border-top: 1px solid transparent; }
.section-muted { border-top: 1px solid #eceef2; border-bottom: 1px solid #eceef2; }

/* 12 — Hero stats : meilleure lisibilité */
.hero-stats {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  gap: 36px;
}
.hero-stat strong { font-size: 1.9rem; letter-spacing: -.02em; }
.hero-stat span { font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; }

/* 13 — Breadcrumb amélioré */
.breadcrumb { padding: 10px 24px; background: var(--light); border-bottom: 1px solid var(--border); }
.breadcrumb ol { font-size: .8rem; }

/* 14 — Sommaire : style capsule */
nav[aria-label="Sommaire"] {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px !important;
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
nav[aria-label="Sommaire"] a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .8rem !important;
  background: var(--light);
  color: var(--text) !important;
  border: 1px solid var(--border);
  transition: all .15s;
  text-decoration: none !important;
}
nav[aria-label="Sommaire"] a:hover {
  background: var(--accent);
  color: var(--white) !important;
  border-color: var(--accent);
}
