/* ===========================================================
   Boutin Électricité — feuille de style unique
   Palette : bleu nuit (confiance, électricité) + ambre (accent)
   =========================================================== */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --accent: #f0a500;
  --accent-dark: #cc8a00;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1b1f24;
  --muted: #5b6470;
  --border: #e3e7ed;
  --radius: 10px;
  --max-width: 1120px;
  --shadow: 0 4px 18px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

section { padding: 72px 0; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); color: #fff; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
h3 { font-size: 1.15rem; color: var(--navy); }
p { margin: 0 0 16px; color: var(--muted); }

.section-intro {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-intro h2 { margin-bottom: 12px; }
.section-intro p { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}
.brand .brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--accent-dark); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 84px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 520px;
}
.trust-line {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.trust-line span { display: inline-flex; align-items: center; gap: 6px; }

.hero-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

.services-note {
  text-align: center;
  margin-top: 36px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Zone d'intervention ---------- */
.zone {
  background: var(--bg-alt);
}
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.sector-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sector-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sector-list .direction {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.sector-list .town { font-weight: 700; color: var(--navy); }

.zone-map-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zone-map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.zone-note { margin-top: 20px; font-size: 0.9rem; }

/* ---------- Réalisations et chantiers ---------- */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.realisation-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.realisation-card img {
  width: 100%;
  display: block;
}
.realisation-card figcaption {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.badge-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.badge-list svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-dark); }

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
}
.contact h2, .contact .section-intro p { color: #fff; }
.contact .section-intro p { color: rgba(255,255,255,0.75); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-info {
  display: grid;
  gap: 20px;
  align-content: start;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item a, .contact-item span.value {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.contact-item .label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 10px 0 0;
}
.form-note a { color: var(--navy); }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; }
.footer-inner a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Page mentions légales / merci ---------- */
.simple-page {
  padding: 64px 0 96px;
  max-width: 780px;
  margin: 0 auto;
}
.simple-page h1 { color: var(--navy); margin-bottom: 8px; }
.simple-page .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 40px; }
.simple-page h2 {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.simple-page a { color: var(--navy); font-weight: 700; }

.training-photo {
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 12px;
}
.training-photo-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.thanks-box {
  text-align: center;
  padding: 64px 0 96px;
}
.thanks-box .icon-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .zone-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo, .zone-map-placeholder { order: -1; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .header-phone span.phone-text { display: none; }
  section { padding: 52px 0; }
}

@media (max-width: 520px) {
  .sector-list { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
}
