/* ==========================================================================
   Truhaud Salaün — Couverture, zinguerie & ravalement
   ========================================================================== */

:root {
  --navy-950: #101b26;
  --navy-900: #16232f;
  --navy-800: #1e3143;
  --navy-700: #2a4459;
  --slate-600: #4b6478;
  --slate-400: #7f97a8;
  --slate-200: #d7e1e8;
  --ink: #1c2530;
  --paper: #faf8f5;
  --paper-alt: #f1ede6;
  --white: #ffffff;
  --terracotta-600: #b6501f;
  --terracotta-500: #c9622c;
  --terracotta-400: #e08850;
  --terracotta-100: #fbe9dd;
  --success: #2e7d4f;
  --shadow-sm: 0 1px 2px rgba(16, 27, 38, 0.06), 0 1px 3px rgba(16, 27, 38, 0.08);
  --shadow-md: 0 4px 10px rgba(16, 27, 38, 0.08), 0 2px 4px rgba(16, 27, 38, 0.06);
  --shadow-lg: 0 20px 40px -12px rgba(16, 27, 38, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1140px;
  --font: "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.section {
  padding: 96px 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  background: var(--terracotta-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy-950);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

h3 {
  font-size: 21px;
}

.section-head p {
  color: var(--slate-600);
  font-size: 17px;
  margin: 0;
}

p {
  margin: 0 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--terracotta-500);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--terracotta-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-ghost {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-200);
}

.btn-ghost:hover {
  border-color: var(--terracotta-500);
  color: var(--terracotta-600);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy-950);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

/* Promotes the header to its own compositor layer above the mobile breakpoint
   to stop it lagging a frame behind on fast wheel-scroll in some browsers.
   Scoped to min-width so it never applies while .main-nav uses position:fixed
   for the off-canvas mobile menu (a transformed ancestor would break that). */
@media (min-width: 981px) {
  .site-header {
    transform: translateZ(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--terracotta-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.brand-text {
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 18.5px;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 12.5px;
  color: var(--slate-200);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: var(--slate-200);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--white);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
}

.header-phone-icon {
  width: 18px;
  height: 18px;
  color: var(--terracotta-400);
  flex-shrink: 0;
}

.header-phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.header-phone-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-200);
  white-space: nowrap;
}

.header-phone-number {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

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

.nav-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(16, 23, 33, 0.72) 0%, rgba(16, 23, 33, 0.55) 45%, rgba(16, 23, 33, 0.92) 100%), url("../img/hero.jpg");
  background-size: cover;
  background-position: center 65%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 18.5px;
  color: var(--slate-200);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--slate-200);
}

.trust-item svg {
  width: 19px;
  height: 19px;
  color: var(--terracotta-400);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-media {
  height: 260px;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

/* Crops one panel out of a wide composite photo (assets/img/triptych.jpg)
   using background-size:300% so each third fills the card at full height. */
.service-media--crop {
  background-image: url("../img/triptych.jpg");
  background-repeat: no-repeat;
  background-size: 300% auto;
  transition: transform 0.4s ease;
}

.service-card:hover .service-media--crop {
  transform: scale(1.05);
}

.crop-right {
  background-position: 100% 15%;
}

.service-body {
  padding: 28px 30px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--terracotta-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon svg {
  width: 23px;
  height: 23px;
  color: var(--terracotta-600);
}

.service-body p {
  color: var(--slate-600);
  font-size: 15.2px;
}

.service-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--navy-800);
  font-weight: 600;
}

.service-list svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Pourquoi nous ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: left;
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.why-icon svg {
  width: 24px;
  height: 24px;
  color: var(--terracotta-400);
}

.why-card h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--slate-600);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Zone d'intervention ---------- */

.zone-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
}

.zone-wrap h2 {
  color: var(--white);
}

.zone-wrap > p,
.zone-copy p {
  color: var(--slate-200);
  font-size: 16px;
}

.zone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.zone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
}

.zone-pill svg {
  width: 16px;
  height: 16px;
  color: var(--terracotta-400);
}

.zone-pill.is-base {
  background: var(--terracotta-500);
  border-color: var(--terracotta-500);
}

.zone-note {
  font-size: 14.5px;
  color: var(--slate-400);
}

.zone-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

.zone-visual-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: rgba(16, 27, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--slate-200);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.zone-visual-label:hover {
  background: rgba(16, 27, 38, 0.95);
  border-color: var(--terracotta-400);
}

.zone-visual-label svg {
  width: 18px;
  height: 18px;
  color: var(--terracotta-400);
  flex-shrink: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.contact-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-card h3 {
  color: var(--white);
  font-size: 19px;
}

.contact-card > p {
  color: var(--slate-200);
  font-size: 14.5px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: var(--white);
}

.contact-line:first-of-type {
  border-top: none;
}

.contact-line-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-line-icon svg {
  width: 18px;
  height: 18px;
  color: var(--terracotta-400);
}

.contact-line-label {
  font-size: 12.5px;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.contact-line-value {
  font-weight: 700;
  font-size: 15.5px;
}

.contact-guarantee {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: var(--slate-200);
}

.contact-guarantee svg {
  width: 20px;
  height: 20px;
  color: var(--terracotta-400);
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 7px;
}

.field .req {
  color: var(--terracotta-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta-500);
  box-shadow: 0 0 0 3px var(--terracotta-100);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 22px;
}

.field-check input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--terracotta-500);
  flex-shrink: 0;
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate-600);
  text-align: center;
}

.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: #eaf6ee;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}

.form-status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-status.is-visible {
  display: flex;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--slate-200);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--slate-400);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  color: var(--slate-200);
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--slate-200);
}

.footer-col li svg {
  width: 16px;
  height: 16px;
  color: var(--terracotta-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--slate-400);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Sticky mobile call bar ---------- */

.mobile-callbar {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.3);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 17px;
    color: var(--white);
  }

  .nav-toggle {
    display: block;
    z-index: 110;
  }

  .header-phone-text {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zone-wrap {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .zone-visual {
    aspect-ratio: 16 / 10;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-inner {
    padding-top: 110px;
  }

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

  .hero-actions .btn {
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-form-wrap {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding-bottom: 66px;
  }

  .mobile-callbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--navy-950);
    padding: 12px 16px;
    gap: 10px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  }

  .mobile-callbar .btn {
    flex: 1;
    padding: 13px 16px;
    font-size: 14.5px;
  }
}
