/* ==========================================================================
   Team Pro Confort — style.css
   Plombier chauffagiste à Lille — design system
   ========================================================================== */

:root {
  /* Palette (issue du logo) */
  --navy-900: #0a1f38;
  --navy-800: #0e2a4a;
  --navy-700: #143a63;
  --navy-600: #1c4e83;
  --cyan-500: #2bb0e8;
  --cyan-400: #5fc8f0;
  --flame-600: #e6431f;
  --flame-500: #f4711c;
  --flame-400: #ff9633;
  --bg: #f4f8fb;
  --bg-alt: #eaf2f8;
  --white: #ffffff;
  --text: #16202c;
  --text-muted: #52657a;
  --border: #dde6ee;
  --success: #1f8a4c;

  --gradient-flame: linear-gradient(135deg, var(--flame-500), var(--flame-600));
  --gradient-navy: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  --gradient-hero: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);

  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Segoe UI Semibold", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 31, 56, 0.12);
  --shadow-lg: 0 20px 48px rgba(10, 31, 56, 0.18);

  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--gradient-navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--flame-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--flame-500); display: inline-block; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section--navy .section-head p { color: #c6d5e6; }

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary { background: var(--gradient-flame); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(230, 67, 31, 0.35); }
.btn-secondary { background: var(--white); color: var(--navy-800); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--cyan-500); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--navy-900); color: #cfe0f0; font-size: .85rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.top-bar a { display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: var(--cyan-400); }
.top-bar__zones { color: #93aac2; }
@media (max-width: 760px) { .top-bar__zones, .top-bar__hours { display: none; } .top-bar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.brand img { height: 52px; width: 52px; border-radius: 50%; }
.brand span small { display: block; font-weight: 600; font-size: .72rem; color: var(--text-muted); letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--navy-800);
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--flame-600); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 260px; padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .92rem; }
.dropdown a:hover { background: var(--bg-alt); color: var(--flame-600); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; flex-direction: column; text-align: right; }
.header-phone a { font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.header-phone small { color: var(--text-muted); font-size: .72rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-cta { display: none; }

@media (max-width: 1130px) {
  .site-header .container { gap: 10px; }
  .brand span { font-size: .92rem; }
  .brand span small { display: none; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: 18px; gap: 4px; transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-toggle { display: inline-flex; }
  .mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--gradient-hero); color: var(--white); overflow: hidden; padding: 90px 0 110px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(43,176,232,.25), transparent 60%),
    radial-gradient(500px 380px at 10% 90%, rgba(230,67,31,.22), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 56px 0 72px; } }

.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: .4em; }
.hero h1 mark { background: none; color: var(--cyan-400); }
.hero p.lead { font-size: 1.15rem; color: #d5e3f0; max-width: 52ch; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 22px; }
.trust-badges .badge { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #c6d5e6; }
.trust-badges .badge svg { flex: none; color: var(--cyan-400); }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg);
  padding: 28px; backdrop-filter: blur(6px);
}
.hero-card img { border-radius: var(--radius-md); margin-bottom: 18px; box-shadow: var(--shadow-lg); }
.hero-rating { display: flex; align-items: center; gap: 14px; }
.hero-rating .stars { color: var(--flame-400); font-size: 1.2rem; letter-spacing: 2px; }
.hero-rating strong { display: block; color: var(--white); font-size: 1.1rem; }
.hero-rating span { color: #b9c9db; font-size: .85rem; }

/* ---------- Cards: services ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-flame); color: var(--white); margin-bottom: 20px; flex: none;
}
.card__icon--cyan { background: linear-gradient(135deg, var(--cyan-400), var(--cyan-500)); }
.card__icon--navy { background: var(--gradient-navy); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: .96rem; flex: 1; }
.card .card-link { font-weight: 700; color: var(--flame-600); display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.card .card-link svg { transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Zones ---------- */
.zone-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zone-chip {
  background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px;
  font-weight: 700; font-size: .92rem; color: var(--navy-800); transition: all .2s ease;
}
.zone-chip:hover { background: var(--gradient-flame); color: var(--white); border-color: transparent; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  counter-increment: step; content: counter(step);
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-alt); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; border: 2px solid var(--border);
}
.step__num::before { content: counter(step); }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial .stars { color: var(--flame-400); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial p { color: var(--text); font-style: italic; }
.testimonial footer { font-style: normal; font-weight: 700; color: var(--navy-800); font-size: .9rem; margin-top: 14px; }

/* ---------- Certifications strip ---------- */
.cert-strip { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.cert-pill {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: .88rem; color: var(--navy-800);
}
.cert-pill svg { color: var(--success); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-flame); color: var(--white); border-radius: var(--radius-lg);
  padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--flame-600); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy-800); }
.field input, .field textarea, .field select {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 4px rgba(43,176,232,.15);
}
.field-full { grid-column: 1 / -1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-muted); }
.consent input { margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-panel { background: var(--gradient-navy); color: var(--white); border-radius: var(--radius-lg); padding: 36px; }
.contact-panel h3 { color: var(--white); }
.contact-panel .item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-panel .item svg { color: var(--cyan-400); flex: none; margin-top: 2px; }
.contact-panel .item a, .contact-panel .item span { color: #d5e3f0; }
.contact-panel .item strong { display: block; color: var(--white); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c9db; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer p { font-size: .92rem; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background .2s ease, transform .2s ease;
}
.social-links a:hover { background: var(--gradient-flame); transform: translateY(-3px); }
.site-footer ul li { margin-bottom: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--cyan-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #8098b3;
}

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero { background: var(--gradient-hero); color: var(--white); padding: 64px 0 84px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 320px at 90% 0%, rgba(43,176,232,.22), transparent 60%);
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #9db4cc; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--cyan-400); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 30ch; }
.page-hero p { color: #d5e3f0; max-width: 60ch; font-size: 1.05rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: var(--white);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.mini-map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.mini-map iframe { display: block; width: 100%; height: 320px; border: 0; }

.icon-list { display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list svg { color: var(--success); flex: none; margin-top: 3px; }

.table-clean { width: 100%; border-collapse: collapse; }
.table-clean th, .table-clean td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.table-clean th { color: var(--navy-800); }
