/* ================================================================
   Les Plombiers Associés — Design System v5
   Typo : Zilla Slab (titres) + Jost (corps)
   Palette : vert forêt #2A3530 · ivoire #F2EFE3 · laiton #B08D57
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg: #F2EFE3;
  --bg-alt: #EBE7D7;
  --bg-dark: #2A3530;
  --bg-photo: #E8DFCB;
  --bg-photo-deep: #DDD0B5;
  --text: #1F2722;
  --text-muted: #6E726A;
  --text-on-dark: #F2EFE3;
  --text-on-dark-muted: #B8BCAE;
  --accent: #B08D57;
  --accent-dark: #8B6E3F;
  --border: rgba(42,53,48,0.15);
  --border-strong: rgba(42,53,48,0.28);
  --border-on-dark: rgba(176,141,87,0.25);
  --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-py: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ============= Typography ============= */
.pretitle {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 6.8vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--text);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--text);
}

em.serif-italic {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

p { color: var(--text-muted); font-size: 16px; line-height: 1.7; font-weight: 300; }
p.lead { font-size: 18px; line-height: 1.75; color: var(--text-muted); font-weight: 300; }

.dark { color: var(--text-on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--text-on-dark); }
.dark p { color: var(--text-on-dark-muted); }
.dark .pretitle { color: var(--accent); }

/* ============= Layout ============= */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section-py) 0; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }

/* ============= Buttons ============= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--bg-dark); color: var(--text-on-dark); }
.btn-primary:hover { background: var(--accent); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--text); border: 0.5px solid var(--border-strong); }
.btn-secondary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-dark); }
.dark .btn-secondary { color: var(--text-on-dark); border-color: var(--border-on-dark); }
.dark .btn-secondary:hover { background: var(--text-on-dark); color: var(--bg-dark); }

/* ============= Header ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 0.5px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 17px; letter-spacing: 0.04em; font-weight: 500; color: var(--text); text-transform: uppercase; }
.logo-icon { height: 36px; width: auto; display: block; flex-shrink: 0; }
.logo-cap { color: var(--accent); font-size: 1.35em; line-height: 1; }
.logo-text { }
@media (max-width: 600px) { .logo-text { display: none; } }
.nav-main { display: flex; gap: 36px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-main a { color: var(--text-muted); transition: color 150ms ease; position: relative; }
.nav-main a:hover, .nav-main a.active { color: var(--text); }
.nav-main a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--accent); }
.phone-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--accent); border: 0.5px solid var(--accent); padding: 9px 16px; transition: all 200ms ease; white-space: nowrap; }
.phone-cta:hover { background: var(--accent); color: var(--bg); }
.mobile-menu-btn { display: none; background: none; border: none; padding: 8px; color: var(--text); }
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* ============= Hero ============= */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: clamp(520px, 80vh, 720px); }
.hero-content { padding: clamp(48px,8vw,112px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin-bottom: 28px; }
.hero p { max-width: 440px; margin-bottom: 36px; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image { background: var(--bg-photo); position: relative; overflow: hidden; }

/* ============= Trust strip ============= */
.trust-strip { border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.trust-strip ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 22px var(--gutter); max-width: var(--max-w); margin: 0 auto; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--text-muted); }
.trust-strip li { display: flex; align-items: center; gap: 10px; }
.trust-strip svg { color: var(--accent); flex-shrink: 0; }

/* ============= Services grid ============= */
.section-header { margin-bottom: clamp(36px, 5vw, 64px); }
.section-header h2 { max-width: 720px; }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); }
.service-card { background: var(--bg); padding: clamp(28px,3vw,40px) clamp(22px,2.5vw,32px); transition: background 200ms ease; display: flex; flex-direction: column; }
.service-card:hover { background: var(--bg-alt); }
.service-card .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 22px; stroke-width: 1.4; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; flex: 1; font-weight: 300; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.service-card .more svg { transition: transform 200ms ease; }
.service-card:hover .more svg { transform: translateX(4px); }

/* ============= Method (dark) ============= */
.method { background: var(--bg-dark); color: var(--text-on-dark); padding: var(--section-py) 0; }
.method-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(40px,5vw,72px); gap: 32px; flex-wrap: wrap; }
.method-header h2 { color: var(--text-on-dark); max-width: 640px; }
.method-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(28px,3vw,48px); }
.method-card .number { font-family: var(--font-display); font-size: clamp(38px,4.5vw,56px); font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 20px; font-style: italic; }
.method-card h3 { color: var(--text-on-dark); margin-bottom: 10px; }
.method-card p { color: var(--text-on-dark-muted); font-size: 14px; line-height: 1.65; font-weight: 300; }

/* ============= Réalisations ============= */
.realisations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(12px,1.4vw,20px); margin-top: clamp(28px,4vw,48px); }
.realisation { position: relative; aspect-ratio: 3/4; background: var(--bg-photo); overflow: hidden; cursor: pointer; transition: transform 300ms ease; }
.realisation:hover { transform: translateY(-3px); }
.realisation video, .realisation img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.realisation-label { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(to top, rgba(31,39,34,0.82), transparent); color: var(--text-on-dark); }
.realisation-label .type { font-family: var(--font-display); font-size: 19px; font-weight: 400; margin-bottom: 4px; color: var(--text-on-dark); }
.realisation-label .place { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: rgba(242,239,227,0.75); }
.realisations-cta-row { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.link-arrow { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border-bottom: 0.5px solid var(--accent); padding-bottom: 3px; display: inline-flex; gap: 6px; align-items: center; }

/* ============= Footer CTA ============= */
.footer-cta { background: var(--bg-alt); padding: var(--section-py) 0; text-align: center; border-top: 0.5px solid var(--border); }
.footer-cta .container { max-width: 720px; }
.footer-cta h2 { margin: 12px auto 32px; }
.footer-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============= Site Footer ============= */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand .logo { color: var(--text-on-dark); margin-bottom: 18px; display: block; }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 14px; max-width: 280px; line-height: 1.65; font-weight: 300; }
.footer-col h4 { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { color: var(--text-on-dark-muted); transition: color 150ms ease; font-weight: 300; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-col p { color: var(--text-on-dark-muted); font-size: 14px; margin-bottom: 6px; font-weight: 300; }
.footer-bottom { border-top: 0.5px solid var(--border-on-dark); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-on-dark-muted); flex-wrap: wrap; gap: 12px; letter-spacing: 0.04em; }
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--text-on-dark); }

/* ============= Page hero (interior) ============= */
.page-hero { padding: clamp(80px,12vw,152px) 0 clamp(48px,8vw,88px); }
.page-hero .container { max-width: 900px; }
.page-hero h1 { font-size: clamp(42px,6.5vw,68px); margin-bottom: 28px; }
.page-hero p.lead { max-width: 640px; font-size: clamp(17px,1.8vw,20px); }

/* ============= Content block ============= */
.content-section { padding: clamp(48px,8vw,96px) 0; }
.content-block { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.content-block h2 { margin-top: 56px; margin-bottom: 24px; }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { margin-top: 40px; margin-bottom: 14px; }
.content-block p { margin-bottom: 18px; font-size: 17px; line-height: 1.78; color: var(--text-muted); font-weight: 300; }
.content-block ul { margin-bottom: 28px; padding-left: 0; }
.content-block ul li { padding-left: 28px; margin-bottom: 14px; position: relative; color: var(--text); font-size: 16px; line-height: 1.7; font-weight: 300; }
.content-block ul li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 1px; background: var(--accent); }

/* ============= Contact ============= */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px,6vw,96px); align-items: start; padding: var(--section-py) 0; }
.contact-form { display: grid; gap: 22px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.form-field input, .form-field textarea, .form-field select { background: transparent; border: none; border-bottom: 0.5px solid var(--border-strong); padding: 10px 0; font-family: var(--font-body); font-size: 16px; color: var(--text); transition: border-color 200ms ease; font-weight: 300; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-bottom-color: var(--accent); border-bottom-width: 1px; }
.form-field textarea { min-height: 140px; resize: vertical; }
.contact-info { padding-top: 12px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info dl { display: grid; gap: 22px; }
.contact-info dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; font-weight: 500; }
.contact-info dd { font-size: 16px; color: var(--text); line-height: 1.6; font-weight: 300; }
.contact-info dd a { color: var(--text); border-bottom: 0.5px solid var(--border-strong); transition: border-color 150ms; }
.contact-info dd a:hover { border-bottom-color: var(--accent); }
.form-success, .form-error { padding: 16px 20px; font-size: 15px; font-weight: 400; display: none; }
.form-success { background: rgba(31,39,34,0.06); color: var(--text); border-left: 3px solid var(--accent); }
.form-error { background: rgba(176,60,50,0.08); color: #9B2B22; border-left: 3px solid #C0392B; }

/* ============= Values / Zone ============= */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(28px,3vw,48px); margin-top: clamp(36px,5vw,56px); }
.value-card .number { font-family: var(--font-display); font-size: 32px; font-weight: 300; color: var(--accent); margin-bottom: 16px; line-height: 1; font-style: italic; }
.value-card h3 { margin-bottom: 10px; }
.zone-features { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(28px,3vw,48px); margin: clamp(40px,5vw,64px) 0; }
.zone-feature .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; stroke-width: 1.4; }
.zone-feature h3 { margin-bottom: 8px; }
.zone-feature p { font-size: 14px; font-weight: 300; }

/* ============= Mentions légales ============= */
.mentions-content { max-width: 760px; margin: 0 auto; padding: clamp(48px,8vw,96px) var(--gutter); }
.mentions-content h2 { font-size: clamp(24px,2.8vw,34px); margin: 52px 0 20px; }
.mentions-content h2:first-child { margin-top: 0; }
.mentions-content p { font-size: 16px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.78; font-weight: 300; }
.mentions-content ul { margin-bottom: 20px; }
.mentions-content ul li { padding-left: 24px; margin-bottom: 10px; position: relative; font-size: 15px; color: var(--text-muted); font-weight: 300; }
.mentions-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* ============= Responsive ============= */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .zone-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-main { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 64px var(--gutter); }
  .hero-image { min-height: 280px; order: 2; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .method-cards { grid-template-columns: repeat(2,1fr); gap: 36px; }
  .realisations-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .method-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .realisations-grid { grid-template-columns: 1fr; gap: 16px; }
  .method-cards { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .zone-features { grid-template-columns: 1fr; }
  .hero-actions, .footer-cta-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* ============= Animations ============= */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(16px); animation: fadeUp 800ms cubic-bezier(0.4,0,0.2,1) forwards; }
  .fade-in.delay-1 { animation-delay: 80ms; }
  .fade-in.delay-2 { animation-delay: 160ms; }
  .fade-in.delay-3 { animation-delay: 240ms; }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============= Mobile menu ============= */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 88px 0 0 0;
  background: var(--bg);
  z-index: 49;
  flex-direction: column;
  padding: 32px var(--gutter) 48px;
  border-top: 0.5px solid var(--border);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
  transition: color 150ms ease;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .phone-mobile {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: none;
  border-bottom: none !important;
  padding: 0 !important;
}
.mobile-menu-btn.open svg { display: none; }
.mobile-menu-btn.open::after { content: '✕'; font-size: 20px; line-height: 1; }
