/* Cohesif BTP — pages métiers (toiture-couverture.html, facade-ravalement.html) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --grey-900: #2a2a2a;
  --grey-700: #4a4a4a;
  --grey-500: #737373;
  --grey-400: #999999;
  --grey-300: #d4d4d4;
  --grey-200: #e5e5e5;
  --grey-100: #f5f5f5;
  --grey-50: #fafafa;
  --white: #ffffff;
  --accent: #ea5b1f;
  --accent-dark: #c94a14;
  --accent-soft: #fff1e9;
  --green: #16a34a;
  --pill: 999px;
}

html { scroll-behavior: smooth; background: #fff !important; color-scheme: light only; overflow-x: clip; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #fff !important; color: var(--black) !important;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

/* ───────────── Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; height: 44px; }
.logo img { height: 100%; width: auto; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { font-size: 15px; font-weight: 500; color: var(--grey-700); padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s; }
nav a:hover { color: var(--black); background: var(--grey-100); }
nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.header-tel { display: none; }

/* ───────────── Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 26px;
  border-radius: var(--pill); white-space: nowrap;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey-900); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--black); border: 1px solid var(--grey-300); }
.btn-outline:hover { border-color: var(--black); }
.btn-large { padding: 16px 30px; font-size: 16px; }
.header-cta { padding: 11px 22px; font-size: 14px; }

/* ───────────── Fil d'Ariane */
.crumbs { max-width: 1280px; margin: 0 auto; padding: 20px 32px 0; font-size: 13px; color: var(--grey-500); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--grey-300); }
.crumbs a:hover { color: var(--accent); }

/* ───────────── Hero */
.svc-hero {
  max-width: 1280px; margin: 0 auto; padding: 48px 32px 88px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.svc-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--grey-700);
  margin-bottom: 28px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.svc-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.svc-hero h1 {
  font-size: clamp(36px, 5.2vw, 64px); font-weight: 800;
  line-height: 1.04; letter-spacing: -2px; margin-bottom: 24px;
}
.accent { color: var(--accent); }
.svc-lead { font-size: 19px; line-height: 1.6; color: var(--grey-700); max-width: 600px; margin-bottom: 36px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.svc-trust { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; max-width: 560px; }
.svc-trust li { font-size: 14px; font-weight: 600; color: var(--grey-900); padding-left: 28px; position: relative; }
.svc-trust li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.svc-visual {
  border-radius: 28px; overflow: hidden; background: var(--accent-soft);
  border: 1px solid #fde0cf; aspect-ratio: 4 / 3.2; position: relative;
}
.svc-visual svg { width: 100%; height: 100%; }
.svc-visual-tag {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--white); border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10); font-size: 13px; color: var(--grey-700);
}
.svc-visual-tag strong { display: block; font-size: 16px; color: var(--black); }

/* ───────────── Sections */
.svc-section { padding: 100px 32px; }
.svc-section.alt { background: var(--grey-50); }
.svc-inner { max-width: 1280px; margin: 0 auto; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 16px; }
.svc-section h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -1.5px; max-width: 860px; margin-bottom: 18px; }
.svc-desc { font-size: 18px; color: var(--grey-700); max-width: 680px; line-height: 1.65; margin-bottom: 56px; }

/* Prestations */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 24px; padding: 32px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.svc-card:hover { border-color: var(--black); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 10px; }
.svc-card p { font-size: 15px; color: var(--grey-700); line-height: 1.65; }

/* Matériaux */
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mat { border-top: 2px solid var(--black); padding-top: 24px; }
.mat-swatch { height: 64px; border-radius: 14px; margin-bottom: 20px; }
.mat h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.mat p { font-size: 14px; color: var(--grey-700); line-height: 1.6; }
.mat .life { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--pill); }

/* Signes / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.check-list { list-style: none; display: grid; gap: 4px; }
.check-list li {
  font-size: 16px; color: var(--grey-900); padding: 16px 0 16px 40px; position: relative;
  border-bottom: 1px solid var(--grey-200); line-height: 1.5;
}
.check-list li::before {
  content: '!'; position: absolute; left: 0; top: 15px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--black); color: var(--white); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.note-card { background: var(--black); color: var(--white); border-radius: 28px; padding: 44px; position: sticky; top: 100px; }
.note-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 14px; }
.note-card p { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.65; margin-bottom: 28px; }
.note-card .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.note-card .btn-outline:hover { border-color: var(--white); }
.note-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; }
.step { background: var(--white); border: 1px solid var(--grey-200); border-radius: 24px; padding: 32px 28px; counter-increment: step; }
.step::before { content: '0' counter(step); display: block; font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 1.5px; margin-bottom: 28px; }
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--grey-700); line-height: 1.6; }

/* Atouts */
.pros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pro { border-top: 2px solid var(--black); padding-top: 24px; }
.pro h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.pro p { font-size: 15px; color: var(--grey-700); line-height: 1.65; }
.pro a { color: var(--accent); font-weight: 600; }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--grey-200); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--grey-100);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500;
  transition: transform .2s, background .2s, color .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: var(--white); }
.faq details p { font-size: 16px; color: var(--grey-700); line-height: 1.7; padding: 0 48px 24px 0; }

/* Devis */
.devis-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.devis-info h2 { margin-bottom: 18px; }
.devis-info > p { font-size: 17px; color: var(--grey-700); line-height: 1.65; margin-bottom: 32px; }
.contact-block {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 12px;
  border: 1px solid var(--grey-200); border-radius: 18px; background: var(--white); transition: border-color .15s;
}
a.contact-block:hover { border-color: var(--black); }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { font-size: 12px; color: var(--grey-500); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 16px; font-weight: 700; }
.devis-form { background: var(--white); border: 1px solid var(--grey-200); border-radius: 28px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); }
.devis-form-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.devis-form-sub { font-size: 14px; color: var(--grey-500); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--grey-900); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--black);
  padding: 13px 15px; border: 1px solid var(--grey-300); border-radius: 12px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,91,31,0.12); }
.form-submit { width: 100%; margin-top: 6px; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-note { font-size: 12px; color: var(--grey-500); margin-top: 14px; line-height: 1.5; text-align: center; }
.form-note a { text-decoration: underline; }
.form-success, .form-error { display: none; padding: 16px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.form-success { background: #dcfce7; color: #166534; }
.form-error { background: #fef2f2; color: #991b1b; }
.form-success.show, .form-error.show { display: block; }

/* Maillage interne */
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px 32px; border: 1px solid var(--grey-200); border-radius: 24px; background: var(--white);
  font-size: 18px; font-weight: 700; transition: border-color .15s, transform .15s;
}
.related a:hover { border-color: var(--black); transform: translateY(-2px); }
.related a span { font-size: 14px; font-weight: 500; color: var(--grey-500); display: block; margin-top: 4px; }
.related a::after { content: '→'; color: var(--accent); font-size: 22px; }

/* ───────────── Footer (identique à l'accueil) */
footer { background: var(--white); border-top: 1px solid var(--grey-200); padding: 64px 32px 32px; color: var(--grey-700); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--grey-200); }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-top: 20px; max-width: 300px; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 12px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--grey-500); }
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: var(--accent); }

/* ───────────── Barre mobile */
.mobile-bar { display: none; }

/* ───────────── Responsive */
@media (max-width: 1024px) {
  .svc-hero { grid-template-columns: 1fr; gap: 40px; }
  .svc-visual { max-width: 640px; }
  .svc-grid, .pros { grid-template-columns: 1fr 1fr; }
  .mat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .split, .devis-grid { grid-template-columns: 1fr; gap: 40px; }
  .note-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  [class*="-grid"] > *, .split > *, .pros > *, .steps > *, .related > *, .form-row > * { min-width: 0; }
}
@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; }
  .logo { height: 36px; }
  nav { display: none; }
  .header-tel { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--white); background: var(--accent); padding: 9px 16px; border-radius: var(--pill); }
  .header-tel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
  .crumbs { padding: 16px 20px 0; }
  .svc-hero { padding: 28px 20px 64px; }
  .svc-lead { font-size: 17px; }
  .svc-actions .btn { flex: 1 1 100%; }
  .svc-trust { grid-template-columns: 1fr; }
  .svc-section { padding: 70px 20px; }
  .svc-desc { margin-bottom: 36px; font-size: 16px; }
  .svc-grid, .pros, .mat-grid, .steps, .related { grid-template-columns: minmax(0, 1fr); }
  .svc-card { padding: 28px 24px; }
  .note-card { padding: 32px 24px; }
  .devis-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .faq summary { font-size: 16px; }
  .faq details p { padding-right: 0; }
  footer { padding: 56px 20px 110px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { margin: 0 18px 0 0; }
  .mobile-bar {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    background: var(--black); padding: 6px; border-radius: var(--pill);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  }
  .mobile-bar a { flex: 1; text-align: center; padding: 13px 10px; border-radius: var(--pill); font-size: 14px; font-weight: 700; color: var(--white); }
  .mobile-bar .mb-devis { background: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ───────────── Simulateur 3D (toiture-couverture.html) */
.svc-new {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: 15px; font-weight: 600; padding: 6px 16px 6px 6px;
  border: 1px solid var(--grey-200); border-radius: var(--pill); background: var(--white); transition: border-color .15s;
}
.svc-new:hover { border-color: var(--accent); }
.svc-new span { background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 5px 10px; border-radius: var(--pill); }
