/* Hennequin Plomberie · démo XynoWeb
   Couleurs et polices regroupées ici pour adapter le modèle à un autre artisan. */
:root {
  --navy: #0f2b3d;
  --navy-2: #173c54;
  --accent: #d4612a;
  --accent-dark: #b54f1e;
  --tint: #eef3f6;
  --line: #d9e2e8;
  --text: #1c2a33;
  --muted: #5b6b76;
  --white: #fff;
  --radius: 10px;
  --head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 16px/1.6 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; color: var(--navy); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 8px; font: 600 15px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-light { background: var(--white); color: var(--accent-dark); }
.btn-dark { background: var(--navy); color: var(--white); }

/* Bandeau démo */
.demo-strip { background: #0a1d29; color: #b9c8d2; font-size: 12.5px; text-align: center; padding: 6px 12px; }
.demo-strip a { color: var(--white); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt strong { font: 700 23px/1 var(--head); color: var(--navy); letter-spacing: .01em; }
.brand-txt small { font-size: 11.5px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); }
.nav a:hover { color: var(--accent-dark); }
.burger { display: none; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; background: var(--navy); }
.hero-text { padding: 72px 56px 64px max(20px, calc((100vw - 1160px) / 2)); color: #d6e1e8; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 58px); max-width: 17ch; }
.lead { font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 500; color: var(--white); background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #8aa0ae; }
.status.open .dot { background: #4cc38a; box-shadow: 0 0 0 4px rgba(76,195,138,.2); }
.proofs { list-style: none; padding: 22px 0 0; margin: 8px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(4, auto); gap: 8px 24px; font-size: 14px; }
.proofs strong { display: block; color: var(--white); font-weight: 600; }
.hero-photo { position: relative; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }

/* Bandeau urgence */
.urgent { background: var(--accent); color: var(--white); }
.urgent-in { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.urgent svg { width: 28px; height: 28px; fill: var(--white); flex: none; }
.urgent p { flex: 1; }
.urgent .btn { flex: none; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #c9d6de; }
.section-dark h2 { color: var(--white); }
.head { max-width: 640px; margin-bottom: 44px; display: grid; gap: 12px; }
.head p:not(.kicker) { color: var(--muted); font-size: 17px; }
.kicker { font: 700 14px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
.section-dark .kicker { color: #f0a37c; }
.muted { color: #9fb1bd; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.svc img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc-body { padding: 20px 20px 24px; display: grid; gap: 8px; }
.svc-body p { color: var(--muted); font-size: 15px; }
.also { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.also p { font-weight: 600; }
.also ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.also li { background: var(--tint); border-radius: 6px; padding: 6px 12px; font-size: 14.5px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.steps p { color: var(--muted); font-size: 15px; }
.step-n { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 700 20px/1 var(--head); margin-bottom: 6px; }

/* Réalisations */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery .g-big { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(10,29,41,.85)); color: #d6e1e8; font-size: 14px; }
.gallery figcaption strong { display: block; color: var(--white); font-size: 16px; }

/* Zone */
.zone > div { display: grid; gap: 16px; max-width: 720px; }
.zone p:not(.kicker) { font-size: 17px; }

/* À propos */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about-text { display: grid; gap: 16px; }
.about-text p:not(.kicker) { color: var(--muted); font-size: 17px; }
.facts { list-style: none; padding: 20px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts strong { display: block; font: 700 34px/1 var(--head); color: var(--navy); }
.facts span { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font: 400 26px/1 var(--body); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-info > p:not(.kicker) { color: var(--muted); font-size: 17px; }
.big-phone { font: 700 clamp(34px, 4vw, 44px)/1 var(--head); color: var(--accent-dark); text-decoration: none; }
.hours { margin: 8px 0 0; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
.addr { color: var(--muted); font-size: 15px; }
.form { background: var(--tint); border-radius: 14px; padding: 32px; display: grid; gap: 16px; }
.form h3 { font-size: 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea { font: 400 16px/1.4 var(--body); color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .file input { padding: 10px; font-size: 14px; }
.form [aria-invalid="true"] { border-color: #c0392b; }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note.ok { color: #1f7a4d; font-weight: 600; }

/* Pied de page */
.foot { background: #0a1d29; color: #9fb1bd; padding: 48px 0 110px; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.foot strong { color: var(--white); font: 700 20px/1.2 var(--head); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: start; }
.foot-links a { text-decoration: none; color: #c9d6de; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; }
.foot-legal a { color: var(--white); }

/* Barre d'appel mobile */
.callbar { display: none; }

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .proofs { grid-template-columns: repeat(2, auto); }
  .nav { gap: 18px; }
}

@media (max-width: 900px) {
  .top-in { height: 64px; gap: 12px; }
  .top-call { margin-left: auto; padding: 10px 12px; }
  .top-call span { display: none; }
  .burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: var(--tint); border-radius: 8px; cursor: pointer; }
  .burger span { width: 20px; height: 2px; background: var(--navy); transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 20px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: 240px; }
  .hero-text { padding: 36px 20px 40px; gap: 18px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .urgent-in { flex-wrap: wrap; }
  .urgent p { flex-basis: calc(100% - 44px); }
  .urgent .btn { display: none; }

  .section { padding: 64px 0; }
  .head { margin-bottom: 32px; }
  .steps, .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 10px; }
  .gallery .g-big { grid-column: span 2; grid-row: span 1; }
  .form { padding: 22px; }
  .row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .foot-in { grid-template-columns: 1fr; }

  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,43,61,.08); }
  .callbar .btn { padding: 13px; font-size: 16px; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .facts strong { font-size: 28px; }
  .gallery figcaption { padding: 30px 12px 10px; font-size: 12.5px; }
  .gallery figcaption strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
