/* ============================================================
   PLOMBERIE VAURENNE — site de démonstration
   Identité : bleu « eau » profond + orange chantier pour l'action.
   Tout se rebrande en changeant les variables ci-dessous.
   ============================================================ */
:root {
  --accent: #17607a;          /* bleu eau, couleur de marque */
  --accent-soft: #e4f1f6;
  --accent-deep: #0f4356;
  --cta: #e08a2e;             /* orange : uniquement les boutons d'action */
  --cta-deep: #b96f1d;
  --ink: #10242c;
  --muted: #5d7280;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --border: #e2ecf0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 36, 44, 0.08);
  --shadow-hover: 0 20px 50px rgba(16, 36, 44, 0.15);
  --max: 1120px;
  --font: 'Inter Variable', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Inter Variable', system-ui, Segoe UI, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(23, 96, 122, .45); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(3.2rem, 7vw, 5.6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin: 0.5rem 0 0.7rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.9rem 1.7rem; border-radius: 10px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s; border: none;
}
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(23, 96, 122, 0.28); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn-cta { background: var(--cta); color: #2a1c07; box-shadow: 0 8px 22px rgba(224, 138, 46, 0.32); }
.btn-cta:hover { transform: translateY(-2px); background: var(--cta-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-light:hover { transform: translateY(-2px); }

/* ── Bandeau de démonstration (toujours visible) ── */
.demo-bar {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; justify-content: center;
  background: #10242c; color: #dce8ed;
  padding: .55rem 1.1rem; font-size: .84rem; line-height: 1.4;
}
.demo-pastille {
  background: var(--cta); color: #2a1c07; font-weight: 800;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 4px;
}
.demo-bar b { color: #fff; font-weight: 700; }
.demo-detail { opacity: .72; }
.demo-bar a { color: var(--cta); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .demo-detail { display: none; } }

/* ── Navigation ── */
.topbar { position: sticky; top: 0; z-index: 100; }
.nav-wrap { background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.4rem; max-width: var(--max); margin: 0 auto; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; }
.nav-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep)); color: #fff; flex: none;
}
.nav-mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 1.3rem; align-items: center; list-style: none; }
.nav-links > li > a { font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links > li > a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-tel { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink) !important; }
.nav-tel svg { width: 1rem; height: 1rem; color: var(--accent); }
.nav-tel b { font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: .2rem;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .8rem 1.4rem 1.2rem; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; padding: .35rem 0; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 1.4rem clamp(2.6rem, 6vw, 4rem);
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(23,96,122,.16), transparent),
    linear-gradient(180deg, #fff, var(--bg-alt));
}
.hero-inner { max-width: var(--max); margin: 0 auto; }

/* Accueil en deux colonnes : le discours à gauche, un vrai chantier à droite. */
.hero--split .hero-inner {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center;
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover;
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-hover);
}
.hero-badge {
  position: absolute; left: -.6rem; bottom: -.9rem;
  display: inline-flex; align-items: center; gap: .5rem; max-width: 82%;
  background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600;
  padding: .7rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-badge svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; }
@media (max-width: 900px) {
  .hero--split .hero-inner { grid-template-columns: 1fr; }
  .hero-media { margin-top: 1.6rem; }
  .hero-badge { left: .6rem; bottom: -.7rem; }
}

/* Bandeau de chiffres : respire entre deux grilles de cartes. */
.chiffres { background: var(--accent-deep); color: #fff; padding: clamp(2rem, 4vw, 2.8rem) 0; }
.chiffres-grid {
  display: grid; gap: 1.4rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center;
}
.chiffre b {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800; line-height: 1; letter-spacing: -.03em;
}
.chiffre b span { font-size: .46em; margin-left: .18em; color: var(--cta); }
.chiffre-label { display: block; margin-top: .5rem; font-size: .9rem; color: rgba(255,255,255,.72); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); max-width: 17ch; margin: 0.7rem 0 1rem; }
.hero p.lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 58ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-points { display: flex; gap: 1.4rem; flex-wrap: wrap; list-style: none; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.hero-points li { display: flex; align-items: center; gap: .5rem; font-size: .93rem; color: var(--muted); }
.hero-points svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; }

/* ── Bandeau urgence ── */
.urgence {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: var(--accent-deep); color: #fff;
  border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.urgence-txt { flex: 1 1 300px; }
.urgence-label { display: inline-block; background: var(--cta); color: #2a1c07; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .5rem; }
.urgence h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: .3rem; }
.urgence p { color: rgba(255,255,255,.78); font-size: .97rem; }
.urgence-tel {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--accent-deep); font-weight: 800; font-size: 1.15rem;
  padding: .8rem 1.4rem; border-radius: 10px; white-space: nowrap;
}
.urgence-tel svg { width: 1.2rem; height: 1.2rem; }

/* ── Grille de cartes ── */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); font-size: 0.97rem; }
.card-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 1rem;
}
.card-ico svg { width: 23px; height: 23px; }

/* ── Prestations ── */
.presta-list { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.presta {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.presta h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.presta .resume { color: var(--muted); font-size: .95rem; margin-bottom: .9rem; }
.presta ul { list-style: none; display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.presta li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.presta li::before {
  content: ''; flex: none; margin-top: .5rem; width: 7px; height: 7px;
  background: var(--cta); border-radius: 2px; transform: rotate(45deg);
}
.presta .prix {
  display: inline-block; font-size: .87rem; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); padding: .35rem .8rem; border-radius: 99px;
}
.presta-note { margin-top: 1.6rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* ── Réalisations ── */
.chantiers { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.chantier { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.chantier:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.chantier-visuel { aspect-ratio: 4 / 3; background: var(--accent-soft); position: relative; display: grid; place-items: center; }
.chantier-visuel svg { width: 78%; height: 78%; }
.chantier-visuel img { width: 100%; height: 100%; object-fit: cover; }
.chantier-visuel .mention {
  position: absolute; left: .7rem; bottom: .7rem;
  background: rgba(16,36,44,.78); color: #fff; font-size: .72rem;
  padding: .22rem .6rem; border-radius: 5px;
}
.chantier-body { padding: 1.4rem; }
.chantier-body h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.chantier-meta { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .84rem; color: var(--accent-deep); font-weight: 600; margin-bottom: .6rem; }
.chantier-body p { color: var(--muted); font-size: .95rem; }
.photos-note {
  margin-top: 1.8rem; text-align: center; color: var(--muted); font-size: .92rem;
  background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.2rem;
}

/* ── Zone d'intervention ── */
.communes { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0; list-style: none; }
.communes li {
  background: #fff; border: 1px solid var(--border); border-radius: 99px;
  padding: .45rem 1rem; font-size: .92rem; font-weight: 500;
}
.zone-delai {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 10px; padding: .75rem 1.1rem; font-size: .93rem; font-weight: 600;
}
.zone-delai svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* ── FAQ ── */
.faq { display: grid; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: .3rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 650; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 700; flex: none; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); font-size: .96rem; padding-bottom: 1rem; }

/* ── Encadré transparence sur les avis ── */
.avis-note {
  border: 1px dashed var(--border); border-left: 4px solid var(--cta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem; background: #fff; margin-top: 1.8rem;
}
.avis-note h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.avis-note p { color: var(--muted); font-size: .95rem; }

/* ── À propos (split) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin-bottom: 1rem; }
.split p { color: var(--muted); margin-bottom: 1rem; }
.split-points { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.split-points li { display: flex; gap: .6rem; align-items: center; font-size: .96rem; font-weight: 500; }
.split-points svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: none; }
.split-visuel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--accent-soft); aspect-ratio: 4/3; display: grid; place-items: center; }
.split-visuel svg { width: 72%; height: 72%; }
.split-visuel img { width: 100%; height: 100%; object-fit: cover; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 3rem); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-bloc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.contact-bloc + .contact-bloc { margin-top: 1rem; }
.contact-bloc h3 { font-size: 1.02rem; margin-bottom: .6rem; }
.contact-bloc a { color: var(--accent); font-weight: 600; }
.contact-bloc p { color: var(--muted); font-size: .96rem; }
.horaires { list-style: none; display: grid; gap: .35rem; }
.horaires li { display: flex; justify-content: space-between; gap: 1rem; font-size: .94rem; border-bottom: 1px solid var(--border); padding-bottom: .35rem; }
.horaires li:last-child { border-bottom: 0; }
.horaires span { color: var(--muted); }
.contact-form { display: grid; gap: 0.8rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.contact-form label { font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-note { font-size: .84rem; color: var(--muted); }

/* ── Bandeau CTA ── */
.cta-band { background: var(--accent-deep); color: #fff; text-align: center; padding: clamp(2.8rem, 6vw, 4.5rem) 1.4rem; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 1.6rem; }
.cta-band .hero-actions { justify-content: center; }

/* ── Barre d'appel mobile ── */
.mobile-call { display: none; }
@media (max-width: 760px) {
  .mobile-call {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--border);
  }
  .mobile-call-btn {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .8rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
    background: var(--accent-soft); color: var(--accent-deep);
  }
  .mobile-call-btn svg { width: 1.05rem; height: 1.05rem; }
  .mobile-call-btn--cta { background: var(--cta); color: #2a1c07; }
  body { padding-bottom: 4.4rem; }
}

/* ── Pied de page ── */
.footer { background: var(--ink); color: #fff; padding: 2.6rem 0 1.5rem; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.6rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.footer-tag { color: rgba(255,255,255,.45); font-size: .9rem; margin-top: .25rem; }
.footer-coord { margin-top: .9rem; font-size: .92rem; }
.footer-coord a { color: rgba(255,255,255,.8); }
.footer-coord a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.4rem; list-style: none; flex-wrap: wrap; align-content: flex-start; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; padding: 1.4rem 0 .4rem; font-size: .85rem; }
.footer-legal a { color: rgba(255,255,255,.55); }
.footer-legal a:hover { color: #fff; }
.footer-copy { text-align: center; color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: .6rem; }
.footer-demo {
  max-width: 620px; margin: 1.2rem auto 0; text-align: center;
  color: rgba(255,255,255,.5); font-size: .8rem; line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem;
}
.footer-demo a { color: var(--cta); font-weight: 600; margin-left: .25rem; }

/* ── Reveal au scroll ── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Pages de contenu (mentions légales, confidentialité) ── */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: .4rem 0 1.4rem; }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.prose p { color: var(--ink); margin-bottom: .9rem; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose .legal-date { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
