/* =========================================================
   Joué Plomberie Chauffage — Maquette ATOM Studios
   Palette eau (bleus profonds) + accent cuivre/orange (chauffage)
   ========================================================= */

:root {
  --navy: #0b2a4a;
  --navy-900: #071e36;
  --blue: #1b6fb5;
  --blue-light: #4a9bd8;
  --blue-soft: #e8f2fb;
  --copper: #e07b39;
  --copper-dark: #c5642a;
  --copper-soft: #fdefe4;
  --ink: #11212f;
  --muted: #5a6b78;
  --line: #e3e9ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 42, 74, 0.06);
  --shadow-md: 0 14px 40px rgba(11, 42, 74, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 42, 74, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1160px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.72em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.btn-lg { padding: 0.9em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 22px rgba(27, 111, 181, 0.35); }
.btn-primary:hover { background: var(--navy); }

.btn-accent { background: linear-gradient(135deg, var(--copper), var(--copper-dark)); color: var(--white); box-shadow: 0 10px 26px rgba(224, 123, 57, 0.4); }
.btn-accent:hover { box-shadow: 0 14px 32px rgba(224, 123, 57, 0.5); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark svg { border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand-text strong { font-size: 1.12rem; color: var(--navy); font-weight: 800; }
.brand-text span { font-size: 0.86rem; color: var(--copper); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-text.light strong { color: var(--white); }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: 0.98rem; position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--copper); transition: width 0.3s var(--ease); }
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.phone-link svg { color: var(--blue); }
.phone-link:hover { color: var(--blue); }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(150deg, var(--navy) 0%, #103a63 55%, var(--blue) 130%); min-height: min(92vh, 760px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-waves { position: absolute; bottom: 0; left: 0; width: 100%; height: 55%; }
.hero-pipes { position: absolute; top: -40px; right: -60px; width: 460px; max-width: 55%; opacity: 0.9; }

.hero-inner { position: relative; z-index: 2; padding: 96px 24px; max-width: 760px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--copper); background: rgba(224, 123, 57, 0.15); border: 1px solid rgba(224, 123, 57, 0.4); padding: 6px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.7rem); font-weight: 800; margin: 22px 0 18px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(255, 255, 255, 0.88); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); } 70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy-900); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.trust-item svg { color: var(--copper); flex-shrink: 0; }
.trust-item:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; }
.kicker.light { color: var(--copper); }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); margin-bottom: 20px; transition: transform 0.3s var(--ease); }
.card-icon.accent { background: var(--copper-soft); color: var(--copper-dark); }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Why ---------- */
.why { background: var(--bg-alt); }
.why-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.why-text .kicker { display: inline-block; }
.why-text h2 { margin-bottom: 4px; }
.why-list { margin-top: 28px; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.why-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.why-list span { color: var(--muted); font-size: 0.96rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(150deg, var(--navy), var(--blue)); border-radius: 22px; padding: 40px 34px 30px; color: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(224,123,57,0.35), transparent 70%); }
.stat { position: relative; z-index: 1; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1; color: #fff; }
.stat-label { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.stats-note { grid-column: 1 / -1; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 4px; position: relative; z-index: 1; }

/* ---------- Zone ---------- */
.zone { background: var(--bg); }
.zone-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.zone-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zone-list li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 500; color: var(--ink); transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s; }
.zone-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.zone-list li:hover { transform: translateX(4px); border-color: var(--blue-light); }
.zone-list .zone-main { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 700; }
.zone-list .zone-main::before { background: var(--copper); }
.zone-map svg { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-md); }
.map-ping { transform-origin: 180px 170px; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(4); opacity: 0; } }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; top: -120px; left: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(27,111,181,0.4), transparent 70%); }
.contact-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; position: relative; z-index: 1; }
.contact-info h2 { color: var(--white); }
.contact .section-lead { color: rgba(255, 255, 255, 0.8); }
.contact-list { margin-top: 32px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { color: var(--copper); flex-shrink: 0; margin-top: 3px; }
.contact-label { display: block; font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); margin-bottom: 2px; }
.contact-list a, .contact-list span { display: block; color: rgba(255, 255, 255, 0.95); font-weight: 500; }
.contact-list a:hover { color: var(--copper); }

.contact-form { background: var(--white); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa8b3; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(27, 111, 181, 0.12); }
.field input.invalid, .field textarea.invalid { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.12); }
.form-feedback { margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-weight: 600; font-family: var(--font-head); font-size: 0.95rem; }
.form-feedback.success { background: #e6f7ec; color: #1f7a45; border: 1px solid #b7e4c7; }
.form-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; font-size: 0.95rem; max-width: 340px; color: rgba(255, 255, 255, 0.6); }
.footer-col h3 { font-size: 1rem; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--copper); }
.footer-col li { font-size: 0.95rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-credit a { color: var(--copper); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why-inner, .zone-grid, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform 0.35s var(--ease); padding: 12px 0 20px; }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 24px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 0; }
  .main-nav a::after { display: none; }
  .burger { display: inline-flex; }
  .phone-link span { display: none; }
  .phone-link { padding: 8px; }
  .header-cta { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .trust-item:nth-child(2)::after, .trust-item { border-right: none !important; }
  .trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1) !important; }
  .zone-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; padding: 30px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
