/* Charte Etienne Services — tokens repris de www.etienne-services.fr */
:root {
  --primary: #0a3574;
  --primary-footer: #0a3575;
  --primary-network: #39619c;
  --primary-deep: #032388;
  --primary-hover: #2e50c0;
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --bg-tint: #0323880f;
  --ink: #242424;
  --ink-soft: #617189;
  --line: #e5e7eb;
  --white: #ffffff;
  --trust: #00b67a;
  --trade-plomb: #1385ff;
  --trade-serr: #ce1b2f;
  --trade-elec: #ffce41;
  --trade-chauff: #d74f06;
  --trade-vitr: #177102;
  --trade-assain: #0a3574;
  --font: Montserrat, Arial, Helvetica, sans-serif;
  --max: 1120px;
  --radius: 8px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-network);
  font-weight: 700;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: normal;
}

h1 {
  font-weight: 900;
  letter-spacing: -0.14px;
}

h2 {
  font-weight: 800;
  letter-spacing: -0.11px;
}

h3 {
  font-weight: 700;
  letter-spacing: -0.09px;
}

/* Header navy — comme sticky-nav du site */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo {
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
}

.logo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 24px;
}

.site-nav a:hover {
  color: #b9cfff;
}

/* Spécificité > .site-nav a : sinon texte blanc sur bouton blanc */
.site-nav .btn-secondary {
  background: var(--white);
  color: var(--primary);
}

.site-nav .btn-secondary:hover {
  background: #e8eef7;
  color: var(--primary);
}

.nav-login {
  font-weight: 700 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  border-radius: 6px;
}

.btn-primary {
  background: var(--primary-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

/* Bouton blanc sur fond bleu — style btn-secondary du site */
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  font-weight: 800;
}

.btn-secondary:hover {
  background: #f0f0f0;
  color: var(--primary);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Hero — photo artisan + voile navy (charte ES) */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
  padding: clamp(3.25rem, 8vw, 5.75rem) clamp(1rem, 4vw, 2.5rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(10, 53, 116, 0.88) 0%, rgba(10, 53, 116, 0.62) 48%, rgba(3, 35, 136, 0.35) 100%),
    url("/hero-artisan.webp") center 30% / cover no-repeat;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  color: var(--white);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-phone {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.hero-phone a {
  color: var(--white);
  font-weight: 700;
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.section-head p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.trades {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.trade {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.trade-plomb { border-top-color: var(--trade-plomb); }
.trade-serr { border-top-color: var(--trade-serr); }
.trade-elec { border-top-color: var(--trade-elec); }
.trade-chauff { border-top-color: var(--trade-chauff); }
.trade-vitr { border-top-color: var(--trade-vitr); }
.trade-assain { border-top-color: var(--trade-assain); }

.benefits {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefits article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}

.benefits h3 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.benefits p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.split {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.split > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.split h3 {
  margin: 0 0 1rem;
  color: var(--primary);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.7rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--trust);
}

.cta-band {
  background: var(--bg-tint);
  color: var(--primary);
  padding: clamp(2.75rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  border-top: 1px solid #d6d8e3;
  border-bottom: 1px solid #d6d8e3;
}

.cta-band-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--primary);
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.cta-band .hero-actions {
  justify-content: center;
}

.cta-band .btn-secondary {
  background: var(--primary-deep);
  color: var(--white);
}

.cta-band .btn-secondary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.cta-band .btn-outline-light {
  color: var(--primary);
  border-color: var(--primary);
}

.cta-band .btn-outline-light:hover {
  background: var(--bg-tint);
  color: var(--primary);
}

.site-footer {
  background: var(--primary-footer);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  width: 140px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #b9cfff;
}

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

@media (max-width: 900px) {
  .steps,
  .trades,
  .benefits,
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.55rem 1rem;
    gap: 0.5rem;
  }

  .logo-badge {
    display: none;
  }

  .site-nav {
    gap: 0.55rem 0.75rem;
  }

  .site-nav a:not(.btn):not(.nav-login) {
    display: none;
  }

  .site-nav .nav-login {
    font-size: 0.88rem;
  }

  .site-nav .btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  .hero {
    padding: 2.5rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .steps,
  .trades,
  .benefits,
  .split {
    grid-template-columns: 1fr;
  }

  .logo {
    width: 120px;
  }

  .cta-band .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
