:root {
  --ink: #111514;
  --ink-2: #1b211f;
  --paper: #f4f1e9;
  --white: #ffffff;
  --muted: #6d746f;
  --line: rgba(17, 21, 20, 0.12);
  --orange: #f47b16;
  --orange-deep: #d75e08;
  --green: #78b900;
  --green-deep: #4e8100;
  --shadow: 0 24px 70px rgba(20, 28, 24, 0.14);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
main, section, article, div, nav, form { min-width: 0; }
h1, h2, h3, p, li { overflow-wrap: break-word; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green-deep);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.display {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 900;
}
.section-title {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 900;
}
.section-lead { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.section-head .section-lead { max-width: 530px; margin: 0; }
.accent { color: var(--orange); }
.green { color: var(--green); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 84px;
  background: rgba(12, 16, 15, .9);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 190px; }
.brand img { width: 150px; height: 60px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .88rem; font-weight: 720; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange); }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white) !important;
  background: var(--orange);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 850 !important;
}
.header-call:hover { background: #ff902d; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 82px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: #191e1c;
  border-radius: 12px;
  color: white;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.menu-symbol { color: var(--orange); font-size: 1.08rem; line-height: 1; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--orange); box-shadow: 0 12px 30px rgba(244,123,22,.28); }
.btn-primary:hover { background: #ff8c29; }
.btn-ghost { color: white; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.btn-dark { color: white; background: var(--ink); }
.btn-outline { color: var(--ink); border-color: rgba(17,21,20,.25); }
.text-link { display: inline-flex; gap: 8px; color: var(--orange-deep); font-weight: 850; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 150px 0 88px;
  color: white;
  overflow: hidden;
  background: #121817;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,10,9,.96) 0%, rgba(7,10,9,.86) 43%, rgba(7,10,9,.3) 75%, rgba(7,10,9,.2) 100%), url("assets/hero-electricien.webp") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -160px;
  border-radius: 50%;
  border: 95px solid rgba(120,185,0,.16);
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 770px; }
.hero .eyebrow { color: #b7e55a; }
.hero-sub { max-width: 690px; margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-pill { padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); font-size: .84rem; font-weight: 760; }

.proof-strip { position: relative; z-index: 5; margin-top: -42px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.proof-item { min-height: 130px; padding: 28px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-number { color: var(--orange); font-size: 1.8rem; font-weight: 950; line-height: 1; }
.proof-label { margin-top: 10px; color: var(--muted); font-size: .9rem; }

.section { padding: 110px 0; }
.section-dark { color: white; background: var(--ink); }
.section-dark .section-lead { color: rgba(255,255,255,.66); }
.section-white { background: white; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(20,28,24,.1); }
.service-index { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: white; background: var(--ink); font-size: .8rem; font-weight: 900; }
.service-card.featured .service-index { background: var(--orange); }
.service-card h3 { margin: 32px 0 12px; font-size: 1.35rem; line-height: 1.18; }
.service-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.service-card .text-link { align-self: flex-start; margin-top: auto; padding-top: 24px; }

.feature-split { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 620px; border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.feature-image { min-height: 500px; background: center/cover no-repeat; }
.feature-image.irrigation { background-image: linear-gradient(0deg, rgba(0,0,0,.1), rgba(0,0,0,.1)), url("assets/irrigation.webp"); }
.feature-image.autonomie { background-image: url("assets/autonomie.webp"); }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 6vw, 80px); color: white; }
.feature-copy p { color: rgba(255,255,255,.7); }
.check-list { display: grid; gap: 13px; padding: 0; margin: 26px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border: 3px solid var(--green); border-radius: 50%; }

.qualifications { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cert-card { display: grid; place-items: center; min-height: 260px; padding: 26px; background: white; border-radius: 22px; border: 1px solid var(--line); }
.cert-card img { max-height: 185px; max-width: 90%; object-fit: contain; }
.cert-card.master img { max-height: 145px; }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-card { padding: 38px; border-radius: 22px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.055); }
.audience-card h3 { margin: 0 0 12px; font-size: 1.45rem; }
.audience-card p { color: rgba(255,255,255,.65); }

.image-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.image-card { border-radius: 24px; overflow: hidden; background: white; border: 1px solid var(--line); }
.image-card img { width: 100%; height: 270px; object-fit: cover; }
.image-card-copy { padding: 28px; }
.image-card-copy h3 { margin: 0 0 10px; font-size: 1.25rem; }
.image-card-copy p { margin: 0; color: var(--muted); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process-step { position: relative; padding: 30px 30px 30px 0; border-top: 1px solid var(--line); }
.process-step::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--orange); font-weight: 950; margin-bottom: 18px; }
.process-step h3 { margin: 0 0 8px; font-size: 1.08rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .92rem; }

.page-hero { padding: 160px 0 86px; color: white; background: var(--ink); }
.page-hero .display { max-width: 900px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.68); font-size: 1.14rem; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 26px; color: rgba(255,255,255,.5); font-size: .85rem; }
.breadcrumb a { color: rgba(255,255,255,.74); text-decoration: none; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-card { padding: 32px; border-radius: 22px; background: white; border: 1px solid var(--line); }
.detail-card h3 { margin: 0 0 10px; }
.detail-card p { margin: 0; color: var(--muted); }
.stack { display: grid; gap: 16px; }
.note { padding: 18px 20px; border-left: 4px solid var(--orange); background: rgba(244,123,22,.08); border-radius: 0 12px 12px 0; color: #5c4534; }

.contact-section { background: linear-gradient(135deg, #121817, #1b271f); color: white; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 32px; }
.contact-line { display: block; padding: 18px 20px; color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; text-decoration: none; }
.contact-line small { display: block; color: rgba(255,255,255,.48); text-transform: uppercase; letter-spacing: .1em; }
.contact-line strong { font-size: 1.12rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 34px; background: white; color: var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d7dbd8; border-radius: 12px; padding: 13px 14px; background: #fafbf9; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.form-help { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.contact-form .btn { cursor: pointer; border: 0; }

.cta-band { padding: 64px 0; color: white; background: var(--orange); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { max-width: 740px; margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.06; }
.cta-inner .btn { flex: 0 0 auto; }

.site-footer { padding: 70px 0 30px; color: white; background: #0c0f0e; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 50px; }
.footer-logo { width: 220px; }
.footer-copy { max-width: 440px; color: rgba(255,255,255,.56); }
.footer-title { margin: 0 0 15px; color: white; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.38); font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .site-header {
    background: #0c0f0e;
    backdrop-filter: none;
  }
  .main-nav {
    position: fixed;
    z-index: 200;
    inset: 84px 0 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: calc(100dvh - 84px);
    padding: 24px;
    overflow-y: auto;
    background: #0c0f0e;
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
    opacity: 1;
    backdrop-filter: none;
  }
  .menu-open .main-nav { display: flex; }
  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: white;
    font-size: 1.04rem;
  }
  .main-nav a[aria-current="page"] { color: var(--orange); }
  .header-call { justify-content: center; margin-top: 18px; border: 0 !important; }
  .menu-toggle { display: inline-flex; }
  .hero { min-height: 720px; }
  .hero::before { background: linear-gradient(90deg, rgba(7,10,9,.95), rgba(7,10,9,.72)), url("assets/hero-electricien.webp") 62% center/cover; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services-grid, .image-card-grid { grid-template-columns: 1fr 1fr; }
  .feature-split, .qualifications, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .feature-image { min-height: 500px; }
  .process { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header { height: 74px; }
  .header-inner { gap: 12px; }
  .brand { min-width: 0; }
  .brand img { width: 124px; height: 50px; }
  .main-nav { inset: 74px 0 0; }
  .main-nav { height: calc(100dvh - 74px); padding: 18px 18px 30px; }
  .menu-toggle { min-width: 76px; height: 42px; padding: 0 10px; }
  .hero { min-height: 690px; padding-top: 125px; }
  .hero::after { display: none; }
  .display { font-size: clamp(2.05rem, 11vw, 3rem); line-height: 1.01; letter-spacing: -.045em; }
  .page-hero .display { font-size: clamp(2rem, 10.5vw, 2.85rem); line-height: 1.03; }
  .section-title { font-size: clamp(1.78rem, 8.5vw, 2.35rem); line-height: 1.08; }
  .hero-sub, .page-hero p { font-size: 1rem; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .proof-strip { margin-top: -26px; }
  .proof-item { min-height: 112px; padding: 20px; }
  .proof-number { font-size: 1.35rem; }
  .section { padding: 78px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .services-grid, .image-card-grid, .audience-grid, .badge-panel, .contact-form { grid-template-columns: 1fr; }
  .field.full, .form-help { grid-column: auto; }
  .service-card { min-height: 270px; }
  .feature-split { border-radius: 22px; }
  .feature-image { min-height: 380px; }
  .feature-copy { padding: 38px 26px; }
  .process { grid-template-columns: 1fr; }
  .page-hero { padding: 128px 0 64px; }
  .btn { max-width: 100%; min-height: 50px; padding-inline: 19px; text-align: center; white-space: normal; }
  .contact-line strong, .footer-links a { overflow-wrap: anywhere; }
  .contact-form { padding: 24px 18px; }
  .cta-inner { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 390px) {
  .container { width: min(calc(100% - 22px), var(--max)); }
  .brand img { width: 112px; }
  .menu-toggle { min-width: 70px; font-size: .72rem; }
  .hero { padding-top: 116px; }
  .hero-pills { gap: 7px; }
  .hero-pill { padding: 7px 10px; font-size: .77rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card { transition: none; }
}

