/* ==========================================================================
   AK TREECARE — MAIN STYLESHEET
   Layout + components. Consumes variables from tokens.css.
   Mobile-first. Worksite palette, 90/10 orange discipline.
   --------------------------------------------------------------------------
   Contents:
     1. Reset & base
     2. Typography helpers
     3. Layout primitives (container, section, eyebrow)
     4. Buttons
     5. Header / nav
     6. Hero + trust strip
     7. Intro
     8. Services
     9. Gallery + lightbox
    10. About
    11. Service area
    12. Reviews placeholder
    13. Contact / form
    14. Footer
    15. Motion / reveal
    16. Responsive
   ========================================================================== */

/* 1. RESET & BASE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h, 80px) + 16px); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
/* Focus ring. WCAG 1.4.11 wants 3:1 against what's behind it, and the bright
   Safety Orange only measures 2.84:1 on the cream page — so light surfaces get
   the deep orange (3.68:1) and dark surfaces get the bright one (5.48:1). */
:focus-visible { outline: 3px solid var(--color-orange-deep); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible,
.trust-strip :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
.mobile-cta :focus-visible,
.lightbox :focus-visible { outline-color: var(--color-orange); }

/* 2. TYPOGRAPHY ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { max-width: var(--maxw-text); }

/* 3. LAYOUT PRIMITIVES ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-orange-ink);
  margin-bottom: var(--space-3);
  max-width: none; /* p's 62ch measure is computed at 13px and wraps these mid-phrase */
}
/* On photos the brand orange measures ~3.4:1 — use the lighter tint + a hint
   of shadow so small eyebrow text stays readable on any sky. */
.eyebrow--ondark { color: #FF8A47; text-shadow: 0 1px 6px rgba(26,26,26,0.55); }

.section__head { max-width: 760px; margin-bottom: var(--space-7); }
.section__title { font-size: var(--fs-h1); }
.section__sub {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin-top: var(--space-4);
  line-height: var(--lh-snug);
}
.section--dark .section__sub { color: var(--color-steel-light); }

/* 4. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.7em 1.5em;
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  text-align: center; /* labels may wrap (FR is long) — never clip them */
  min-height: 44px;
}
.btn--lg { padding: 0.85em 1.9em; font-size: 1.15rem; }
.btn--block { width: 100%; }
/* Ink-on-orange (worksite sticker look) — white-on-orange fails WCAG AA (3.18:1). */
.btn--primary { background: var(--color-orange); color: var(--color-ink); font-weight: 700; }
.btn--primary:hover { background: var(--color-orange-deep); color: var(--color-white); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; transform: translateY(-2px); }

/* 5. HEADER / NAV ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; }
.logo__badge { flex: none; border-radius: 10px; }
.logo__ak { font-family: var(--font-display); font-weight: 700; font-size: 42px; fill: var(--color-paper); }
.logo__sub { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.18em; fill: var(--color-paper); }
.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap; /* "ÉMONDAGE / AK" stacked reads as two brands */
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
  line-height: 1;
}
/* Deep orange on cream: 3.6:1 — bright orange measured 2.84:1 (axe fail).
   The footer version sits on ink, where the bright orange passes (5.5:1). */
.logo__word-ak { color: var(--color-orange-deep); }
.logo__word--footer { color: var(--color-paper); font-size: 1.7rem; }
.logo__word--footer .logo__word-ak { color: var(--color-orange); }

/* Nav */
.nav { display: flex; gap: var(--space-6); }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink);
  position: relative;
  padding-block: 4px;
  white-space: nowrap; /* "À PROPOS" must never break onto two lines */
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-orange);
  transition: width var(--dur) var(--ease);
}
.nav a:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: var(--space-4); flex: none; }
.header__quote { white-space: nowrap; }
.phone-link {
  white-space: nowrap; /* a wrapped phone number reads as a typo */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-ink);
}
.phone-link svg { color: var(--color-orange); }
.phone-link:hover { color: var(--color-orange); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  flex: none; /* never shrink — a clipped "E|" is worse than a wrapped nav */
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch button {
  padding: 0.4em 0.7em;
  min-height: 44px;
  min-width: 44px;
  color: var(--text-muted);
}
/* Reset native <button> styling so the toggle matches the old <a> look */
.lang-switch button {
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
  cursor: pointer;
}
/* Active language is highlighted purely from the html[data-active] attribute,
   so the toggle updates instantly with no class bookkeeping. */
html[data-active="fr"] .lang-switch [data-set-lang="fr"],
html[data-active="en"] .lang-switch [data-set-lang="en"] {
  color: var(--color-ink);
  background: var(--color-line);
  cursor: default;
}
.lang-switch button:hover { color: var(--color-orange); }
html[data-active="fr"] .lang-switch [data-set-lang="fr"]:hover,
html[data-active="en"] .lang-switch [data-set-lang="en"]:hover { color: var(--color-ink); }

/* Bilingual visibility — hide whichever language is NOT active. The active
   language keeps its natural display value (no override), which avoids
   display:revert quirks. Also mirrored inline in <head> so it applies on the
   first paint even before this stylesheet loads. */
html[data-active="fr"] [data-lang="en"] { display: none !important; }
html[data-active="en"] [data-lang="fr"] { display: none !important; }

/* Call link inside the mobile drawer only — the desktop header already has one */
.nav__call { display: none; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 8px; min-width: 44px; min-height: 44px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--color-ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 6. HERO + TRUST STRIP ---------------------------------------------------- */
.hero { position: relative; isolation: isolate; color: var(--color-paper); }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(26,26,26,0.62) 0%, rgba(26,26,26,0.42) 55%, rgba(26,26,26,0.12) 100%),
    linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.18) 40%, rgba(26,26,26,0.72) 100%);
}
.hero__inner {
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: clamp(6rem, 14vw, 9rem);
  max-width: 880px;
}
.hero__title {
  font-size: var(--fs-hero);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  margin-bottom: var(--space-5);
}
.hero__lead {
  font-size: var(--fs-lead);
  max-width: 56ch;
  color: #F5F2EC;
  margin-bottom: var(--space-6);
  line-height: var(--lh-snug);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.trust-strip {
  position: relative;
  background: var(--color-ink);
  border-top: 3px solid var(--color-orange);
}
/* No separator glyphs. The strip wraps at every width, and a dot placed
   between items strands itself at the end of whatever line it lands on.
   Space does the separating. */
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-7);
  padding-block: var(--space-4);
}
.trust-strip span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-paper);
  display: inline-flex;
  align-items: center;
}
/* One orange tick leading each claim — a mark, not a separator, so wrapping
   can never orphan it. */
.trust-strip__inner > span::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
  margin-right: var(--space-3);
}

/* 7. INTRO ----------------------------------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
.intro__title { font-size: var(--fs-h2); }
.intro__body p + p { margin-top: var(--space-4); }
.intro__body p { color: var(--text-muted); font-size: var(--fs-lead); line-height: var(--lh-body); }

/* 8. SERVICES -------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.service-card__body h3 { color: var(--color-ink); }
.service-card__body p { color: var(--text-muted); font-size: var(--fs-body); }

.services-also {
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  background: var(--color-white);
}
.services-also__label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink);
}
.services-also__list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.services-also__list li {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-steel);
  background: var(--bg-alt);
  padding: 0.35em 0.85em;
  border-radius: var(--radius-pill);
}

/* 9. GALLERY + LIGHTBOX ---------------------------------------------------- */
/* Three columns, not four. With the tall portrait placed second in the DOM,
   6 tiles (2 wide + 1 tall + 3 square) fill a 3x3 grid exactly — no dead
   cream, no auto-placement guessing. Change the order and you get holes. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-4);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__tag {
  position: absolute;
  left: var(--space-3); bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26,26,26,0.72);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-orange);
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  background: rgba(15,15,15,0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: var(--space-3); }
.lightbox__img { max-width: 92vw; max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__caption {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.lightbox__count { color: var(--color-orange); font-variant-numeric: tabular-nums; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  min-width: 48px; min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border-radius: var(--radius);
}
.lightbox__close { top: 12px; right: 18px; font-size: 2.6rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); background: rgba(26,26,26,0.55); }
.lightbox__nav--prev { left: max(12px, 2vw); }
.lightbox__nav--next { right: max(12px, 2vw); }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--color-orange); }

/* 10. ABOUT ---------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
/* Sans photo d'équipe (jusqu'à la vraie séance) : le texte tient la colonne
   gauche et les noms occupent la droite, plutôt qu'un tiers de page vide. */
.about__grid.about__grid--noimg { grid-template-columns: 1.05fr 0.95fr; align-items: start; }

/* Who you're actually hiring. Names carry more trust than any adjective, and
   this is the section where a homeowner decides. Portraits drop into
   .person__portrait when the shoot happens — no empty frames until then. */
.about__people { display: grid; gap: var(--space-5); align-content: start; }
.about__people-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
}
.person { border-top: 2px solid var(--color-orange); padding-top: var(--space-3); }
/* A portrait, not a hero — capped so a face doesn't outweigh the two names
   and the copy beside it. */
.person__portrait {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-block: var(--space-4) var(--space-3);
}
.person__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}
.person__role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel-light);
  margin-top: 2px;
}
.person p { font-size: var(--fs-body); color: var(--color-steel-light); margin-top: var(--space-2); }
.about__quote-attrib {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
}
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: var(--fs-small);
  color: #fff;
  background: linear-gradient(transparent, rgba(26,26,26,0.85));
  padding: var(--space-6) var(--space-4) var(--space-3);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.about__title { font-size: var(--fs-h1); margin-bottom: var(--space-5); color: #fff; }
/* :not(.eyebrow) matters — without it this rule outranks .eyebrow--ondark and
   quietly turns the section label grey. Same trap in .contact__intro below. */
.about__body p:not(.eyebrow) { color: var(--color-steel-light); font-size: var(--fs-lead); line-height: var(--lh-body); }
.about__body p + p { margin-top: var(--space-4); }
.about__quote {
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  border-left: 4px solid var(--color-orange);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: var(--lh-snug);
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

/* 11. SERVICE AREA --------------------------------------------------------- */
.area__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}
.area__lead { font-size: var(--fs-lead); color: var(--text-muted); margin-block: var(--space-4) var(--space-6); }
.area__zones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.area__zones li {
  border-top: 2px solid var(--color-orange);
  padding-top: var(--space-3);
}
.area__zones strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ink);
}
.area__zones span { font-size: var(--fs-small); color: var(--text-muted); }
/* The bilingual <span data-lang> wrappers sit INSIDE <strong> on two of these
   four items. Without this they inherit the small-print rule above and the
   zone names render at two different sizes. */
.area__zones strong span { font-size: inherit; color: inherit; }
.area__further { font-size: var(--fs-small); color: var(--text-muted); font-style: italic; margin-top: var(--space-4); }
.area__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.area__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* 12. REVIEWS STRIP (bande mince en attendant les avis Google) ------------- */
.reviews-strip { background: var(--bg-alt); border-block: 1px solid var(--color-line); }
.reviews-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
}
.reviews-strip svg { flex: none; }
.reviews-strip p { font-size: var(--fs-small); color: var(--text-muted); }

/* SKIP LINK ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; }

/* FIELD HINT --------------------------------------------------------------- */
.field__hint { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

/* MOBILE CTA BAR (zone du pouce) ------------------------------------------- */
.mobile-cta { display: none; }

/* 13. CONTACT / FORM ------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
}
.contact__title { font-size: var(--fs-h1); color: #fff; margin-bottom: var(--space-4); }
.contact__intro p:not(.eyebrow) { color: var(--color-steel-light); font-size: var(--fs-lead); }
.contact__intro p strong { color: #fff; }
.contact__details { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.contact__details li { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--color-line-dark); padding-top: var(--space-3); }
.contact__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
}
/* inline-block + padding so the phone and e-mail are a 44px thumb target, not
   a 31px line of text on a phone. */
.contact__details a { font-size: 1.2rem; color: #fff; display: inline-block; padding-block: 7px; }
.contact__details a:hover { color: var(--color-orange); }

/* What happens after you hit send. The moment a homeowner commits is the moment
   they most want to know what they've just started — the order is the content,
   which is why this is numbered. */
.next-steps { margin-top: var(--space-6); }
.next-steps__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}
.next-steps ol { list-style: none; padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: var(--space-3);
  align-items: baseline;
  font-size: var(--fs-body);
  color: var(--color-paper);
  max-width: 46ch;
}
.next-steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-orange);
  border-top: 2px solid var(--color-orange);
  padding-top: 2px;
}

.quote-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: var(--space-2); }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.field input, .field textarea {
  font: inherit;
  color: var(--color-ink);
  background: var(--bg-page);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.75em 0.9em;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-orange-deep); /* 3.68:1 — the bright orange border failed 1.4.11 */
  box-shadow: 0 0 0 3px rgba(217,80,26,0.22);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  background: #FDF4F3;
}
/* Per-field error. Sits directly under the input it belongs to — a single
   status line below the send button is invisible on a phone. */
.field__error {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #A4271B; /* 5.4:1 on the form's white card */
  display: none;
}
.field__error.is-shown { display: block; }
.quote-form__status { font-size: var(--fs-small); font-weight: 600; margin: 0; min-height: 1.2em; }
.quote-form__status.is-ok { color: #1f7a3d; }
.quote-form__status.is-error { color: #c0392b; }
.quote-form__status.is-sending { color: var(--steel, #5A5A5A); }
/* Honeypot — must be reachable by bots but invisible to people and AT. */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.quote-form__consent { font-size: 0.8125rem; line-height: 1.5; color: var(--steel, #5A5A5A); margin: 0 0 var(--space-4, 1rem); }
.quote-form button[disabled] { opacity: 0.6; cursor: progress; }

/* 14. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--color-ink); color: var(--color-steel-light); padding-top: var(--space-8); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
.footer__brand p { margin-top: var(--space-3); font-size: var(--fs-small); max-width: 34ch; }
.footer__logo { display: block; width: 150px; height: auto; border-radius: 14px; margin-bottom: var(--space-4); }
.footer__col h3 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}
.footer__col ul { display: grid; gap: var(--space-2); }
.footer__col a, .footer__col li { font-size: var(--fs-small); color: var(--color-steel-light); }
/* Footer links get a real tap surface (17px of text alone is a mis-tap waiting
   to happen on a phone). 14px of padding takes them to 45px. */
.footer__col a { display: inline-block; padding-block: 14px; margin-block: -8px; }
.footer__col a:hover { color: #fff; }
.footer__bar a { display: inline-block; padding-block: 14px; }
.footer__bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-line-dark);
  font-size: var(--fs-small);
}
/* steel (#5A5A5A) on ink measured 2.52:1 — steel-light passes at 5.04:1 */
.footer__note { color: var(--color-steel-light); }

/* 15. MOTION / REVEAL ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 16. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

@media (max-width: 860px) {
  /* Collapse nav into a drawer */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    padding: var(--space-3) var(--gutter) var(--space-5);
    transform: translateY(-130%);
    transition: transform var(--dur) var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding-block: var(--space-3); border-bottom: 1px solid var(--color-line); font-size: 1.2rem; }
  .nav a::after { display: none; }
  /* The drawer used to have no way to call. Calling is the higher-intent,
     lower-friction action for someone with a limb on the roof. */
  .nav__call {
    display: flex; align-items: center; gap: var(--space-2);
    color: var(--color-orange-ink);
    border-bottom: 0 !important;
  }
  .nav__call svg { color: var(--color-orange-ink); }
  .nav-toggle { display: flex; }
  .header__quote { display: none; }   /* the fixed bottom bar carries the CTA on mobile */
  .phone-link { display: none; }      /* idem — a 13px icon was an untappable target */

  .intro__grid,
  .about__grid,
  .about__grid.about__grid--noimg,
  .area__grid,
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .about__media { max-width: 420px; }

  .trust-strip__inner { gap: var(--space-2) var(--space-5); }

  /* Barre d'action fixe dans la zone du pouce */
  body { padding-bottom: 60px; }
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1px;
    background: var(--color-line);
    box-shadow: 0 -4px 16px rgba(26,26,26,0.18);
  }
  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 60px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .mobile-cta__call { background: var(--color-ink); color: var(--color-paper); }
  .mobile-cta__call svg { color: var(--color-orange); }
  .mobile-cta__quote { background: var(--color-orange); color: var(--color-ink); }
}

@media (max-width: 560px) {
  /* The wordmark is nowrap, so on a 390px header it has to shrink or it pushes
     the hamburger off the edge. Badge + wordmark + FR/EN + toggle must all fit. */
  .logo__word { font-size: 1.05rem; letter-spacing: 0.02em; }
  .logo { gap: var(--space-2); }
  .logo__badge { width: 38px; height: 38px; }
  .header__inner { gap: var(--space-2); }
  .lang-switch button { padding-inline: 0.45em; min-width: 38px; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: span 1; }
  .area__zones { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Under ~380px the badge carries the brand on its own — same call the header
   already makes between 861 and 1150px. Keeping the wordmark here pushes the
   hamburger off the screen entirely, which is how you lose the menu. */
@media (max-width: 380px) {
  .logo__word { display: none; }
}

/* GLOBAL GUARDS ------------------------------------------------------------ */
/* Long FR labels must never produce sideways scroll on any viewport. */
html, body { overflow-x: clip; }

/* Between 861 and 1150px the full header (logo + 5 links + lang + phone +
   CTA) doesn't fit — drop the phone number text, keep the tappable icon. */
@media (max-width: 1150px) and (min-width: 861px) {
  .phone-link { display: none; }   /* number lives in the hero + contact at this width */
  .header__cta { gap: var(--space-3); }
  .logo__word { display: none; }   /* the badge carries the brand at this width */
  .nav { gap: var(--space-4); }
  .nav a { white-space: nowrap; }
  .header__quote { padding-inline: 1em; }
}

/* Slightly tighter nav under 1500px so the header always fits, even before
   the web fonts load (fallback fonts run ~20% wider than Barlow Condensed). */
@media (max-width: 1500px) and (min-width: 1151px) {
  .nav { gap: var(--space-5); }
  .header__inner { gap: var(--space-4); }
}
