/* =========================================================
   Le plombier Aixois — Système visuel
   Palette provençale chaleureuse : terre cuite, ocre, crème,
   brun chaud. Typo : Bricolage Grotesque (titres) + Hanken
   Grotesk (texte) + une touche serif (Spectral) pour la
   signature artisanale.
   ========================================================= */

:root {
  /* — Couleurs — */
  --cream:        #F8F1E5;   /* fond principal, crème chaude */
  --cream-deep:   #F1E6D3;   /* fond alterné, plus saturé */
  --paper:        #FFFDF9;   /* cartes, blanc chaud */
  --terracotta:   #C0552E;   /* primaire, terre cuite */
  --terracotta-d: #A2451F;   /* hover */
  --ochre:        #DA9A2B;   /* accent soleil */
  --olive:        #5E6347;   /* secondaire, olivier */
  --olive-soft:   #8A8E6E;
  --ink:          #2A211A;   /* texte principal, brun foncé */
  --ink-soft:     #5C5147;   /* texte secondaire */
  --line:         #E3D5BE;   /* bordures chaudes */
  --line-strong:  #D6C2A0;

  /* — Type — */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;
  --font-serif:   'Spectral', serif;

  /* — Mesures — */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(42,33,26,.04), 0 12px 32px -12px rgba(42,33,26,.18);
  --shadow-sm: 0 1px 2px rgba(42,33,26,.05), 0 6px 16px -10px rgba(42,33,26,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

/* — Boutons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(192,85,46,.6);
}
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(192,85,46,.7); }
.btn-primary:disabled { background: var(--olive-soft); cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(42,33,26,.03); }

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: #1c150f; transform: translateY(-2px); }

/* — Sections — */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--ink-soft); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248,241,229,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(42,33,26,.4);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--terracotta);
  color: var(--cream);
  flex-shrink: 0;
  box-shadow: 0 6px 16px -8px rgba(192,85,46,.7);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand-sub { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  font-weight: 600; font-size: 15.5px; color: var(--ink-soft); white-space: nowrap;
  position: relative; padding: 4px 0; transition: color .15s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--terracotta);
  border-radius: 2px; transition: width .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-pill {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 18px 8px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .18s ease, transform .14s ease, box-shadow .18s ease;
}
.phone-pill:hover { border-color: var(--terracotta); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.phone-pill svg { width: 30px; height: 30px; padding: 7px; background: var(--terracotta); color: #fff; border-radius: 50%; box-sizing: border-box; }
.phone-pill span { display: flex; flex-direction: column; line-height: 1.15; }
.phone-pill small { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.phone-pill strong { font-family: var(--font-display); font-size: 16px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 20px 18px; border-top: 1px solid var(--line); background: var(--cream); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .m-phone { color: var(--terracotta); font-family: var(--font-display); font-size: 18px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 64px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(218,154,43,.22), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
  position: relative;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin-bottom: 22px; font-weight: 800; }
.hero h1 .hl { color: var(--terracotta); }
.hero-lead { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust { display: flex; gap: 30px; list-style: none; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-display); font-size: 17px; }
.hero-trust span { font-size: 14px; color: var(--ink-soft); }

.hero-media { position: relative; }
.hero-photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}
.hero-badge {
  position: absolute; left: -26px; bottom: 40px;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  padding: 16px 22px; border-radius: 16px;
  box-shadow: 0 18px 36px -14px rgba(42,33,26,.55);
}
.hero-badge-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; display: flex; align-items: baseline; gap: 3px; color: var(--ochre); }
.hero-badge-num small { font-size: 15px; color: var(--cream); font-weight: 600; }
.hero-badge-txt { font-size: 14px; line-height: 1.25; font-weight: 500; }
.hero-chip {
  position: absolute; top: 22px; right: -14px;
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero-chip .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #4FA06A;
  box-shadow: 0 0 0 4px rgba(79,160,106,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79,160,106,.18); }
  50% { box-shadow: 0 0 0 8px rgba(79,160,106,.06); }
}

/* =========================================================
   BAND
   ========================================================= */
.band { background: var(--ink); color: var(--cream); }
.band-inner {
  display: flex; flex-wrap: wrap; gap: 14px 38px; justify-content: center;
  padding: 22px 28px; font-weight: 600; font-size: 15.5px;
}
.band-inner span { opacity: .92; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.svc-ico {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(192,85,46,.1); color: var(--terracotta);
  margin-bottom: 20px;
}
.svc-ico svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 21px; margin-bottom: 10px; }
.svc-card p { color: var(--ink-soft); font-size: 15.5px; }

.services-note {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  margin-top: 34px; padding: 26px 32px;
  background: var(--cream-deep); border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.services-note p { font-size: 18px; }

/* =========================================================
   À PROPOS
   ========================================================= */
.apropos { background: var(--cream-deep); }
.apropos-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.apropos-media { position: relative; }
.apropos-photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.apropos-sign {
  position: absolute; right: -18px; bottom: 28px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.apropos-sign-name { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--terracotta); }
.apropos-sign-role { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.apropos-copy h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 18px 0 18px; }
.apropos-lead { font-size: 19px; margin-bottom: 16px; }
.apropos-copy p { color: var(--ink-soft); }
.values { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values li div { color: var(--ink-soft); font-size: 15.5px; }
.values strong { color: var(--ink); }
.val-ico {
  flex-shrink: 0; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-size: 14px; font-weight: 700;
  margin-top: 1px;
}

/* =========================================================
   AVIS
   ========================================================= */
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.avis-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.stars { color: var(--ochre); font-size: 18px; letter-spacing: 2px; }
.avis-card blockquote { font-family: var(--font-serif); font-size: 18px; line-height: 1.5; color: var(--ink); }
.avis-card figcaption { display: flex; flex-direction: column; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.avis-card figcaption strong { font-family: var(--font-display); font-size: 15.5px; }
.avis-card figcaption span { font-size: 13.5px; color: var(--ink-soft); }
.avis-foot { margin-top: 26px; text-align: center; color: var(--ink-soft); font-weight: 600; }
.avis-foot .stars, .avis-foot em { font-style: italic; font-weight: 400; }

/* =========================================================
   DEVIS
   ========================================================= */
.devis-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.devis-info h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 18px 0 16px; }
.devis-info > p { font-size: 18px; color: var(--ink-soft); margin-bottom: 30px; max-width: 440px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 15px; }
.ci { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(192,85,46,.1); color: var(--terracotta); }
.ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-list a, .contact-list strong { font-family: var(--font-display); font-size: 18px; }
.contact-list a:hover { color: var(--terracotta); }

.devis-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 11px;
  background: var(--cream); transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #a99a86; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(192,85,46,.12); background: var(--paper);
}
.form-submit { margin-top: 4px; width: 100%; }
.form-note { text-align: center; font-size: 13.5px; color: var(--ink-soft); }
.form-ok { text-align: center; font-size: 15px; font-weight: 600; color: var(--olive); background: rgba(94,99,71,.1); padding: 12px; border-radius: 11px; }
.form-err { text-align: center; font-size: 15px; font-weight: 600; color: var(--terracotta-d); background: rgba(192,85,46,.08); padding: 12px; border-radius: 11px; }
.form-err a { text-decoration: underline; }

/* Honeypot anti-spam */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--cream); padding: 56px 0 30px; }
.footer-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(248,241,229,.14); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand strong { font-family: var(--font-display); font-size: 18px; display: block; }
.footer-brand span { font-size: 13.5px; opacity: .7; }
.footer-nav { display: flex; gap: 26px; margin-left: auto; }
.footer-nav a { font-weight: 600; font-size: 15px; opacity: .82; transition: opacity .15s ease; }
.footer-nav a:hover { opacity: 1; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-contact a { font-family: var(--font-display); font-size: 16px; }
.footer-contact a:hover { color: var(--ochre); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13px; opacity: .6; }
.footer-base a:hover { color: var(--ochre); }

/* =========================================================
   PAGE MENTIONS LÉGALES
   ========================================================= */
.legal-page { padding: 60px 0 96px; }
.legal-page h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 12px; }
.legal-page .eyebrow { margin-bottom: 18px; }
.legal-page h2 { font-size: 22px; margin: 32px 0 10px; }
.legal-page p, .legal-page li { font-size: 16px; color: var(--ink-soft); margin-bottom: 8px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.legal-page a { color: var(--terracotta); text-decoration: underline; }
.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--terracotta); margin-bottom: 20px;
}
.back-home:hover { color: var(--terracotta-d); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid, .apropos-grid, .devis-grid { grid-template-columns: 1fr; gap: 44px; }
  .apropos-media { order: 2; max-width: 460px; }
  .hero-media { max-width: 460px; }
  .services-grid, .avis-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav, .phone-pill small { display: none; }
  .nav-toggle { display: flex; }
  .phone-pill { padding: 8px; }
  .phone-pill strong { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section-pad { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .services-grid, .avis-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { margin-left: 0; }
  .footer-contact { text-align: left; }
  .hero-badge { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
