/* ============================================================
   HEXA CONFORT — Site global multi-métiers
   Chauffage · Plomberie · Serrurerie · Électricité
   Palette : bleu nuit #0E2A4E · orange flamme #FF7A1A
   Accent par métier via --accent (défini sur <body data-metier>)
   ============================================================ */

:root {
  --navy: #0E2A4E;
  --navy-deep: #081A33;
  --navy-soft: #1A3A63;
  --orange: #FF7A1A;
  --orange-dark: #E5640A;
  --ink: #16243A;
  --muted: #5A6B82;
  --line: #E3E9F1;
  --bg: #FFFFFF;
  --tint: #F4F7FB;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(14, 42, 78, .10);
  --shadow-lg: 0 24px 64px rgba(14, 42, 78, .16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* accent par défaut = orange marque ; surchargé par métier */
  --accent: #FF7A1A;
  --accent-dark: #E5640A;
}

/* Accent par métier (utilisé pour les chips/icônes ; les CTA restent orange) */
body[data-metier="chauffage"]  { --accent: #FF7A1A; --accent-dark: #E5640A; }
body[data-metier="plomberie"]  { --accent: #1E88D6; --accent-dark: #1469A8; }
body[data-metier="serrurerie"] { --accent: #6B7787; --accent-dark: #4C5664; }
body[data-metier="electricite"]{ --accent: #F2B705; --accent-dark: #C9990A; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }
.section { padding: 5rem 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #fff; }

.kicker {
  display: inline-block;
  font-size: .8rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: .7rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; color: var(--navy); }
.section--dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); margin-top: .8rem; font-size: 1.05rem; }
.section--dark .section-head p { color: rgba(255,255,255,.8); }
.accent { color: var(--accent); }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; box-shadow: 0 8px 24px rgba(255,122,26,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,122,26,.45); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.btn-light { background: #fff; color: var(--navy); font-weight: 800; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ============ TOPBAR ============ */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.85); font-size: .82rem; padding: .45rem 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar-left { display: flex; gap: 1.4rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-item svg { color: var(--orange); }
.topbar-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: #fff; }
.topbar-phone svg { color: var(--orange); }
.topbar-phone:hover { color: var(--orange); }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(14,42,78,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-hex { display: block; width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.brand-text small { font-size: .66rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 600; color: var(--ink); font-size: .95rem; transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.header-cta { font-size: .95rem; padding: .6rem 1.1rem; }
.burger { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; position: relative; }
.burger::before, .burger::after, .burger span { content: ""; position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.burger span { top: 21px; }
.burger::before { top: 14px; }
.burger::after { top: 28px; }
.burger.is-open span { opacity: 0; }
.burger.is-open::before { top: 21px; transform: rotate(45deg); }
.burger.is-open::after { top: 21px; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
/* ===== Hero accueil : photo en fond, voile blanc léger, texte à gauche ===== */
.hero--light {
  background:
    linear-gradient(100deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.55) 100%),
    url("assets/hero-van.jpg") center right / cover no-repeat;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero--light::after, .hero--light::before { display: none; } /* pas de halo coloré */
.hero--light .container { position: relative; z-index: 1; padding: 5rem 0; }
.hero--light .hero-text { max-width: 600px; text-align: left; }
.hero--light .hero-badge { background: #fff; border: 1px solid var(--line); color: var(--navy); box-shadow: var(--shadow); }
.hero--light h1 { color: var(--navy); text-shadow: 0 1px 2px rgba(255,255,255,.6); }
.hero--light h1 .accent { color: var(--orange); }
.hero--light .hero-sub { color: #3A4A60; }
.hero--light .hero-checks li { color: var(--ink); }
.hero--light .hero-ctas { justify-content: flex-start; margin-bottom: 1.6rem; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 80% -10%, rgba(255,122,26,.18), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 4.5rem 0; max-width: 820px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; font-weight: 800; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.85); margin: 1.2rem 0 1.8rem; max-width: 620px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; margin-bottom: 2rem; }
.hero-checks li { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .98rem; }
.hero-checks li::before { content: "✓"; color: var(--orange); font-weight: 900; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ============ GRILLE MÉTIERS (accueil) ============ */
.metiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.metier-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.metier-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--mcolor, var(--orange)); }
.metier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.metier-ico { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; font-size: 1.9rem; background: color-mix(in srgb, var(--mcolor, var(--orange)) 14%, #fff); }
.metier-card h3 { font-size: 1.3rem; color: var(--navy); }
.metier-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.metier-card .metier-link { font-weight: 800; color: var(--mcolor, var(--orange)); display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.metier-card:hover .metier-link { gap: .7rem; }

/* ============ FEATURES / ATOUTS ============ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); }
.section--dark .feature { background: var(--navy-soft); border-color: rgba(255,255,255,.08); }
.feature-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent-dark); font-size: 1.5rem; margin-bottom: 1rem; }
.section--dark .feature-ico { background: rgba(255,255,255,.1); color: #fff; }
.feature h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: .4rem; }
.section--dark .feature h3 { color: #fff; }
.feature p { color: var(--muted); font-size: .95rem; }
.section--dark .feature p { color: rgba(255,255,255,.75); }

/* liste de prestations à puces */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem 2rem; list-style: none; }
.service-list li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; padding: .5rem 0; }
.service-list li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-top: .1rem; }

/* bandeau urgence */
.urgent-bar { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; }
.urgent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem; padding: 1.4rem 0; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* ============ TARIFS ============ */
.price-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(even) { background: var(--tint); }
.price-label { font-weight: 600; color: var(--ink); }
.price-label small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }
.price-val { font-weight: 800; color: var(--navy); white-space: nowrap; font-size: 1.05rem; }
.price-val .from { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); text-align: right; }
.price-note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; text-align: center; }

/* zone */
.zone-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.zone-tags span { background: var(--tint); border: 1px solid var(--line); padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* ============ CONTACT ============ */
.section--contact { background: var(--navy); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.contact-text p { color: rgba(255,255,255,.8); margin: 1rem 0 1.6rem; }
.contact-phone { display: inline-flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 1rem 1.4rem; border-radius: 14px; font-size: 1.6rem; font-weight: 800; margin-bottom: 1.6rem; }
.contact-phone svg { color: var(--orange); }
.contact-phone span { display: flex; flex-direction: column; line-height: 1.1; }
.contact-phone span small { font-size: .72rem; font-weight: 500; opacity: .8; }
.contact-points { list-style: none; display: grid; gap: .5rem; }
.contact-points li { color: rgba(255,255,255,.85); }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.contact-form h3 { color: var(--navy); margin-bottom: 1.2rem; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; padding: .75rem .9rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-rgpd { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: .3rem 0 1.2rem; }
.form-rgpd a { color: var(--accent-dark); text-decoration: underline; }
.form-status { margin-top: .9rem; font-weight: 600; text-align: center; }
.form-status.ok { color: #1A8F4C; }
.form-status.err { color: #D33; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { display: block; width: 52px; height: 52px; object-fit: contain; }
.footer-brand strong { display: block; color: #fff; font-weight: 800; letter-spacing: 1px; margin: .8rem 0 .5rem; }
.footer-brand p { font-size: .88rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; font-size: .9rem; margin-bottom: .55rem; color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .hero--light { background:
    linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.80) 55%, rgba(255,255,255,.70) 100%),
    url("assets/hero-van.jpg") center / cover no-repeat; }
  .hero--light .container { padding: 3.2rem 0; }
  .nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 1rem 6%; gap: 1rem; box-shadow: var(--shadow); border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-left { gap: 1rem; }
  .topbar-item.hide-sm { display: none; }
}
