/* BATIMAC BTP & Logistique - feuille de style principale */

:root {
  --ink: #0E3A47;
  --ink-2: #0A2C36;
  --green: #3A9A5B;
  --green-d: #2C7A47;
  --blue: #2D5B96;
  --mint: #8FD0AE;
  --concrete: #EEF2F0;
  --line: #D3DCD9;
  --text: #1C2A2F;
  --muted: #52656B;
  --error: #A2262E;
  --wa: #25D366;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --radius: 6px;

  box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-primary { background: var(--green-d); color: #fff; }
.btn-primary:hover { background: #23653A; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--concrete); }
.btn-wa { background: var(--wa); color: #08341A; }
.btn-wa:hover { background: #1EBE59; }
.btn-wa-outline { border-color: var(--wa); color: #0E6B33; background: #fff; }
.btn-wa-outline:hover { background: #EAFBF1; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(14,58,71,.08);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 24px; }
.nav ul a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover,
.nav ul a.is-active { border-bottom-color: var(--green); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 4px;
  font: 600 1rem var(--f-body);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Accueil */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 6% 100%);
}
.hero-slash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  background: var(--green);
  clip-path: polygon(17% 0, 22% 0, 4% 100%, -1% 100%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-text { max-width: 34rem; }
.hero h1 {
  font-size: clamp(3rem, 5.5vw + 1rem, 5.75rem);
  letter-spacing: -.01em;
  line-height: .95;
}
.hero-lead {
  margin-top: 24px;
  font-size: 1.1875rem;
  color: #D7E7E3;
  max-width: 34rem;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.poles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink-2);
  max-width: none;
  padding-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  padding-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
}
.pole {
  display: block;
  padding: 26px 22px 28px;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.14);
}
.pole:first-child { border-left: 0; padding-left: 0; }
.pole-name {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}
.pole-desc { display: block; margin-top: 6px; font-size: .9375rem; color: var(--mint); }
.pole:hover .pole-name { color: var(--mint); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-concrete { background: var(--concrete); }

.section-head h2 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4rem); color: var(--ink); }
.section-dark .section-head h2 { color: #fff; }
.section-sub {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green-d);
}
.section-dark .section-sub { color: var(--mint); }
.section-intro { margin-top: 20px; max-width: 62ch; font-size: 1.125rem; color: var(--muted); }
.section-dark .section-intro { color: #C9DCD8; }

.band { margin: 48px 0; }
.band img { width: 100%; height: clamp(180px, 26vw, 380px); object-fit: cover; }
.band-top { margin-top: calc(clamp(64px, 9vw, 112px) * -1); margin-bottom: clamp(56px, 7vw, 88px); }
.band-top img { height: clamp(150px, 20vw, 300px); }

/* Étapes bâtiment */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step { counter-increment: step; padding-top: 22px; border-top: 3px solid var(--ink); position: relative; }
.step::before {
  content: counter(step);
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.625rem; color: var(--ink); }
.step p { margin-top: 10px; color: var(--muted); }

.commit {
  margin-top: 56px;
  padding: 24px 28px;
  background: var(--concrete);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.commit-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.commit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}
/* petit pignon, repris du logo */
.commit-list li::before {
  content: "";
  width: 14px;
  height: 9px;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 42%, 24% 100%, 0 100%);
}

/* Installations */
.install-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.install-head { position: sticky; top: calc(var(--header-h) + 32px); }
.install-head .btn { margin-top: 32px; }

.timeline { list-style: none; counter-reset: etape; }
.timeline li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 34px 64px;
}
.timeline li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--mint);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--mint);
  background: var(--ink);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: rgba(143,208,174,.3);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.5rem; }
.timeline p { margin-top: 6px; color: #C9DCD8; max-width: 52ch; }

.single {
  margin-top: clamp(56px, 7vw, 88px);
  padding: 28px 0 0 28px;
  border-left: 4px solid var(--green);
  font-size: 1.125rem;
  color: #C9DCD8;
  max-width: 54rem;
}
.single strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
}

/* EPI */
.offers {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.offer img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--mint);
  background: #fff;
}
.offer:nth-child(2) img { border-color: #1F8A8A; }
.offer h3 { margin-top: 24px; font-size: 1.625rem; color: var(--ink); }
.offer p { margin-top: 10px; color: var(--muted); }

.cta-line {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.cta-line p { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; line-height: 1.15; }

/* Transport */
.transport-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.facts {
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.facts > div {
  background: #fff;
  padding: 18px 18px 20px;
  border-top: 5px solid var(--green);
  border-radius: 0 0 var(--radius) var(--radius);
}
.facts > div:nth-child(2) { border-top-color: #1F8A8A; }
.facts dt { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; color: var(--ink); line-height: 1.1; }
.facts dd { margin: 4px 0 0; font-size: .9375rem; color: var(--muted); }
.transport-visual img { width: 100%; max-width: 460px; margin: 0 auto; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4rem); color: var(--ink); }
.coords { list-style: none; margin: 32px 0; display: grid; gap: 18px; }
.coords li { display: grid; gap: 2px; }
.coords-label { font-size: .875rem; font-weight: 600; color: var(--muted); }
.coords a, .coords address {
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.coords address { font-weight: 500; font-size: 1rem; line-height: 1.5; }
.coords a:hover { color: var(--green-d); text-decoration: underline; }

.form {
  background: var(--concrete);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  gap: 20px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .field-group legend {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
}
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 10px; }
.req { color: var(--error); }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #B9C6C2;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--green-d);
  box-shadow: 0 0 0 3px rgba(58,154,91,.25);
}
.form .is-invalid { border-color: var(--error) !important; }
.field-error { font-size: .875rem; color: var(--error); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid #B9C6C2;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: .9375rem;
  color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.pole-fields { display: grid; gap: 20px; padding: 20px; background: #fff; border-left: 4px solid var(--green); border-radius: 0 4px 4px 0; }
.pole-fields[hidden] { display: none; }
.pole-fields .form input, .pole-fields input, .pole-fields select { background: #fff; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks label { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.35; cursor: pointer; }
.checks input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green-d); flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn[disabled] { opacity: .65; cursor: progress; }
.form-note { font-size: .875rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status {
  padding: 14px 16px;
  border-radius: 4px;
  font-weight: 500;
}
.form-status.ok { background: #E3F4E9; color: #17532D; border-left: 4px solid var(--green-d); }
.form-status.err { background: #FBE9EA; color: #7D1B22; border-left: 4px solid var(--error); }

/* Pied de page */
.site-footer {
  background: var(--ink-2);
  color: #C9DCD8;
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: .9375rem;
}
.footer-in {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.2fr;
  gap: 40px;
}
.logo-plate { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius); }
.logo-plate img { height: 56px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: grid; gap: 14px; align-content: start; }

/* WhatsApp flottant */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #1EBE59; }

/* Animation d'ouverture, une seule */
@media (prefers-reduced-motion: no-preference) {
  .hero-slash { animation: slash-in .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  .hero-text { animation: rise .7s ease-out .35s both; }
  @keyframes slash-in {
    from { transform: translateX(-80px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  @keyframes rise {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Tablette */
@media (max-width: 1080px) {
  .nav ul { gap: 18px; }
  .nav { gap: 18px; }
  .nav-cta { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(14,58,71,.12);
    padding: 8px var(--gut) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav ul a:hover, .nav ul a.is-active { border-bottom-color: var(--line); color: var(--green-d); }
  .nav-cta { display: inline-flex; margin-top: 18px; }

  .hero-photo { position: relative; width: 100%; height: 46vh; min-height: 260px; }
  .hero-photo img { clip-path: polygon(0 0, 100% 0, 100% 76%, 0 92%); object-position: 50% 35%; }
  .hero-slash {
    top: 0; bottom: auto; left: 0; right: 0;
    width: 100%;
    height: 46vh; min-height: 260px;
    clip-path: polygon(0 95%, 100% 79%, 100% 84%, 0 100%);
  }
  .hero-in { min-height: 0; padding-top: 12px; padding-bottom: 56px; }
  .hero-text { max-width: none; }

  .poles { grid-template-columns: 1fr 1fr; }
  .pole, .pole:first-child { padding: 22px 18px 24px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .pole:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .install-grid, .transport-grid, .contact-grid { grid-template-columns: 1fr; }
  .install-head { position: static; }
  .offers { grid-template-columns: 1fr; gap: 36px; }
  .offer { display: grid; grid-template-columns: 128px 1fr; gap: 22px; align-items: center; }
  .offer img { width: 128px; height: 128px; border-width: 5px; }
  .offer h3 { margin-top: 0; }
  .transport-visual { order: -1; }
  .transport-visual img { max-width: 300px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .brand img { height: 44px; }
  .hero-actions .btn { width: 100%; }
  .row, .checks { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 96px 1fr; gap: 18px; }
  .offer img { width: 96px; height: 96px; border-width: 4px; }
  .cta-line p { font-size: 1.5rem; }
  .cta-line .btn, .commit .btn, .form-actions .btn { width: 100%; }
  .footer-in { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; }
}

/* Changement de langue */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.lang-switch:hover { border-color: var(--green-d); color: var(--green-d); }
.lang-switch .ico { width: 18px; height: 18px; }
.lang-short { display: none; }

/* Carte */
.map { margin-bottom: 28px; }
.map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: var(--radius);
  background: var(--concrete);
}
.map-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--green-d);
}

@media (max-width: 1180px) {
  .lang-long { display: none; }
  .lang-short { display: inline; }
}
@media (max-width: 960px) {
  .header-in { gap: 12px; }
  .brand { margin-right: auto; }
  .lang-switch { order: 1; }
  .nav-toggle { order: 2; }
}
