/* =========================================================
   Beau Spray inc. — stylesheet
   Hand-written CSS, no framework. See DESIGN-PLAN.md for the
   token rationale and the tape-edge signature element spec.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — exact values, do not alter */
  --or: #C88F02;
  --or-fonce: #8A6200;
  --noir: #0A0A0A;
  --blanc: #F8F8F8;
  --beton: #A0A0A0;

  /* Derived neutrals — greyscale only, no new hue */
  --noir-texte: #1C1C1C;
  --beton-fonce: #6B6B6B;
  --ligne: rgba(160, 160, 160, 0.28);
  --ligne-sur-noir: rgba(248, 248, 248, 0.14);
  --scrim-noir: rgba(10, 10, 10, 0.55);

  /* Type */
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;

  --fs-display-xl: clamp(2.75rem, 2.05rem + 3vw, 5.25rem);
  --fs-display-l: clamp(2rem, 1.55rem + 2vw, 3.25rem);
  --fs-display-m: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --fs-eyebrow: 0.8125rem;
  --fs-body-l: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-body-m: 1rem;
  --fs-body-s: 0.875rem;

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --sp-8: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Layout */
  --container: 1240px;
  --gutter: 1.25rem;
  --header-h: 72px;

  --focus-ring: 0 0 0 3px var(--blanc), 0 0 0 5px var(--or);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--f-body);
  font-size: var(--fs-body-m);
  line-height: 1.6;
  color: var(--noir-texte);
  background: var(--blanc);
  min-height: 100vh;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; }

/* ---------- Base typography ---------- */
h1, .h1 { font-size: var(--fs-display-xl); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
h2, .h2 { font-size: var(--fs-display-l); font-weight: 800; text-transform: uppercase; }
h3, .h3 { font-size: var(--fs-display-m); font-weight: 700; }
.lead { font-size: var(--fs-body-l); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--or-fonce);
}
.eyebrow--sur-noir { color: var(--or); }
p + p { margin-top: 1em; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: var(--gutter);
  background: var(--or); color: var(--noir);
  padding: 0.75em 1.25em; font-weight: 700; z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--sp-2); }

:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sp-7); position: relative; }
.section--sombre { background: var(--noir); color: var(--blanc); }
.section--claire { background: var(--blanc); color: var(--noir-texte); }
.section--gris { background: #F1F1EF; color: var(--noir-texte); }
.section--sombre .eyebrow { color: var(--or); }
.section--sombre h2, .section--sombre h3 { color: var(--blanc); }

.visually-narrow { max-width: 62ch; }

/* =========================================================
   Signature element — "La ligne de masquage"
   Torn masking-tape diagonal divider between sections.
   ========================================================= */
.tape-cut {
  position: relative;
  z-index: 3;
}
.tape-cut::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 46px;
  transform: translateY(-99%);
  background: var(--tape-color, var(--blanc));
  clip-path: polygon(
    0% 78%, 3% 55%, 7% 70%, 11% 40%, 15% 62%,
    19% 34%, 24% 58%, 29% 28%, 34% 52%, 39% 22%,
    45% 48%, 51% 18%, 57% 44%, 63% 15%, 69% 40%,
    75% 20%, 81% 46%, 87% 24%, 93% 50%, 97% 30%,
    100% 44%, 100% 100%, 0% 100%
  );
}
.tape-cut--vers-sombre::before { --tape-color: var(--noir); }
.tape-cut--vers-claire::before { --tape-color: var(--blanc); }
.tape-cut--vers-gris::before { --tape-color: #F1F1EF; }
@media (min-width: 720px) {
  .tape-cut::before { height: 64px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.85em 1.6em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primaire {
  background: var(--or);
  color: var(--noir);
  border-color: var(--or);
}
.btn-primaire:hover, .btn-primaire:focus-visible { background: var(--or-fonce); border-color: var(--or-fonce); color: var(--blanc); }

.btn-telephone {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-telephone:hover, .btn-telephone:focus-visible { background: var(--blanc); color: var(--noir); }
.section--sombre .btn-telephone:hover, .section--sombre .btn-telephone:focus-visible { background: var(--blanc); color: var(--noir); }

.btn-groupe { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

.tel-inline { color: var(--or-fonce); text-decoration: underline; text-underline-offset: 0.15em; font-weight: 600; }
.section--sombre .tel-inline, .section--gris .tel-inline, .site-footer .tel-inline { color: var(--or); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--noir);
  color: var(--blanc);
  border-bottom: 1px solid var(--ligne-sur-noir);
}
/* Hidden over the hero video on index.html so the mobile menu, phone link
   and nav never render with the video showing through them, then revealed
   as a fixed bar as soon as the page scrolls (see main.js, .est-visible).
   Gated behind .js (set synchronously in <head>): without JS the header
   stays in its normal solid/sticky look instead of starting hidden. */
.js .site-header--transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.js .site-header--transparent.est-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--header-h);
  padding-block: 0.5rem;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 44px; width: auto; }

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--or);
  text-decoration: none;
  padding: 0.4em 0.2em;
}
.site-header__phone:hover, .site-header__phone:focus-visible { color: var(--blanc); }
/* Phone icon: dropped on mobile to save header width (number stays, still
   tappable/dialable), restored once the header has room at desktop. */
.site-header__phone span[aria-hidden="true"] { display: none; }

/* Desktop-only header CTA — duplicates the mobile menu's CTA so it can sit
   after the phone number in the desktop bar; the mobile-menu copy stays as
   the sole visible CTA on mobile. */
.site-header__cta { display: none; }

/* Nav — checkbox-driven, works without JS */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  height: 2px;
  background: var(--blanc);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--or); outline-offset: 2px; }

.site-nav {
  display: none;
  flex: 1 1 100%;
  order: 4;
}
.nav-toggle:checked ~ .site-nav { display: block; }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ligne-sur-noir);
  padding-block: var(--sp-2);
}
.site-nav__list a {
  display: block;
  padding: 0.85em 0.2em;
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  font-size: 1.1rem;
}
.site-nav__list a:not(.btn):hover,
.site-nav__list a:not(.btn):focus-visible,
.site-nav__list a[aria-current="page"]:not(.btn) { color: var(--or); }
.site-nav__cta { margin-top: var(--sp-1); }

/* Services dropdown — <details>/<summary>, works with no JS */
.site-nav__dropdown { position: relative; }
.site-nav__dropdown > summary {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.85em 0.2em;
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  color: inherit;
  cursor: pointer;
  list-style: none;
}
.site-nav__dropdown > summary::-webkit-details-marker { display: none; }
.site-nav__dropdown > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.site-nav__dropdown[open] > summary::after { transform: rotate(-135deg); }
.site-nav__dropdown > summary:hover,
.site-nav__dropdown > summary:focus-visible,
.site-nav__dropdown:has(.site-nav__dropdown-menu a[aria-current="page"]) > summary { color: var(--or); }
.site-nav__dropdown-menu {
  list-style: none;
  margin: 0;
  padding-left: var(--sp-3);
}
.site-nav__dropdown-menu a { font-size: 1rem; }

@media (min-width: 960px) {
  .nav-toggle-label { display: none; }
  .site-header__phone { order: 3; }
  .site-header__phone span[aria-hidden="true"] { display: inline; }
  .site-nav { display: block; width: auto; flex: 0 1 auto; order: 2; }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
    border-top: 0;
    padding-block: 0;
  }
  .site-nav__list a { padding: 0.5em 0.1em; font-size: 1rem; }
  .site-nav__cta { display: none; }
  .site-header__cta { display: inline-flex; order: 4; }
  .site-nav__dropdown > summary { padding: 0.5em 0.1em; font-size: 1rem; }
  .site-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin-top: 0.6em;
    padding: 0.4em 0;
    background: var(--noir);
    border: 1px solid var(--ligne-sur-noir);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    z-index: 110;
  }
  .site-nav__dropdown-menu li + li { margin-top: 0.1em; }
  .site-nav__dropdown-menu a { display: block; padding: 0.7em 1em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--noir);
  color: var(--blanc);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
@media (min-width: 860px) {
  .hero { min-height: 720px; }
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--scrim-noir);
}
.hero__logo {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-4);
  z-index: 2;
  width: min(280px, 60vw);
}
.hero__logo img { width: 100%; height: auto; display: block; }
@media (min-width: 640px) {
  .hero__logo { top: var(--sp-4); left: var(--sp-6); width: min(380px, 45vw); }
}
.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--sp-6) var(--sp-7);
}
/* Clear the fixed, transparent-until-scrolled header so hero copy never
   starts underneath it — the video itself still runs full-bleed to y:0.
   Only needed when .js has made the header position:fixed; without JS the
   header stays in normal flow (sticky) and already pushes the hero down. */
.js .hero--video .hero__grid { padding-top: calc(var(--header-h) + var(--sp-5)); }
.hero__contenu { max-width: 640px; }
.hero__eyebrow { margin-bottom: var(--sp-2); }
.hero__title { margin-bottom: var(--sp-3); }
.hero__sub { color: var(--beton); margin-bottom: var(--sp-4); }

@media (min-width: 860px) {
  .hero__grid { padding-block: var(--sp-7) var(--sp-8); }
  .js .hero--video .hero__grid { padding-top: calc(var(--header-h) + var(--sp-7)); }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--blanc);
  border-bottom: 1px solid var(--ligne);
}
/* When no full section sits between the trust bar and the next tape-cut
   section (e.g. soumission.html), the torn edge pokes up 46-64px and
   collides with the trust bar's own text. Give it a matching buffer. */
.trust-bar:has(+ .tape-cut) { padding-bottom: 46px; }
@media (min-width: 720px) {
  .trust-bar:has(+ .tape-cut) { padding-bottom: 64px; }
}
.trust-bar__viewport { overflow: hidden; }
.trust-bar__list {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--sp-4);
  align-items: center;
  padding-block: var(--sp-3);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--noir-texte);
  animation: trust-bar-scroll 22s linear infinite;
}
.trust-bar__viewport:hover .trust-bar__list,
.trust-bar__viewport:focus-within .trust-bar__list { animation-play-state: paused; }
/* 4 equal copies of the list in the markup (so it stays gapless on very wide
   viewports) — translate by exactly one copy's width (1/4) to loop seamlessly. */
@keyframes trust-bar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}
.trust-bar__list li { display: flex; align-items: center; gap: 0.5em; flex-shrink: 0; }
.trust-bar__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--or);
  flex-shrink: 0;
}
.trust-bar__list li:first-child::before { display: none; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 720px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  /* Slight stagger so the three cards don't sit in a perfectly flat row. */
  .services__grid .service-card:nth-child(2) { margin-top: var(--sp-5); }
  .services__grid .service-card:nth-child(3) { margin-top: var(--sp-2); }
}
.service-card {
  border-top: 4px solid var(--or);
  padding-top: var(--sp-3);
}
.service-card h3 { margin-bottom: var(--sp-2); }
.service-card a { display: inline-block; margin-top: var(--sp-2); font-weight: 600; color: var(--or-fonce); text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Peinture au fusil block ---------- */
.fusil {
  background: var(--noir);
  color: var(--blanc);
  padding-block: var(--sp-7);
}
.fusil__grid {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
.fusil__texte p { color: var(--beton); margin-top: var(--sp-3); }
.fusil__image { aspect-ratio: 4 / 5; max-width: 420px; }
.fusil__image img, .fusil__image-video { width: 100%; height: 100%; object-fit: cover; }
.fusil__image.comparateur .comparateur__cadre { position: absolute; inset: 0; aspect-ratio: auto; }
@media (min-width: 860px) {
  .fusil__grid { grid-template-columns: 1.1fr 0.9fr; }
  .fusil__image { max-width: none; aspect-ratio: 3 / 4; justify-self: end; width: 100%; }
}

/* ---------- Méthode 4 étapes ---------- */
.methode__liste {
  display: grid;
  gap: var(--sp-5);
  counter-reset: etape;
  margin-top: var(--sp-5);
}
.methode__item { position: relative; padding-left: 4.5rem; }
.js .methode__item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .methode__item.is-revealed { opacity: 1; transform: translateY(0); }
.js .methode__item:nth-child(1) { transition-delay: 0s; }
.js .methode__item:nth-child(2) { transition-delay: 0.12s; }
.js .methode__item:nth-child(3) { transition-delay: 0.24s; }
.js .methode__item:nth-child(4) { transition-delay: 0.36s; }
.methode__item::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -0.15em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--or);
}
.methode__item h3 { margin-bottom: 0.5em; }
@media (min-width: 860px) {
  .methode__liste { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); position: relative; }
  .methode__liste::before {
    content: "";
    position: absolute;
    top: 1.6rem;
    left: 4%;
    right: 4%;
    height: 2px;
    background: var(--ligne);
    z-index: 0;
  }
  .methode__item { padding-left: 0; padding-top: 4.2rem; }
  .methode__item::before { top: 0; left: 0; }
}

/* ---------- Réalisations / gallery ---------- */
.galerie__grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--sp-5);
}
@media (min-width: 720px) { .galerie__grid { grid-template-columns: repeat(3, 1fr); } }
.galerie__item { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #E7E7E3; }
.galerie__item picture { display: block; width: 100%; height: 100%; }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; }
.galerie__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2em 0.85em 0.65em;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.45) 60%, rgba(10, 10, 10, 0) 100%);
  color: var(--blanc);
  font-size: var(--fs-body-s);
  font-weight: 600;
  line-height: 1.3;
}
.galerie__item--avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 4/5; }
.galerie__item--avant-apres img { aspect-ratio: 1/2; }
.galerie__tag {
  position: absolute; top: 0.6em; left: 0.6em;
  background: var(--or); color: var(--noir);
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.25em 0.6em;
}

.galerie__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  text-align: center;
  padding: var(--sp-2);
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--beton);
  color: var(--beton-fonce);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.galerie__placeholder .icone { font-size: 1.6rem; color: var(--or-fonce); }

.avant-apres__grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  margin-top: var(--sp-5);
}
@media (min-width: 640px) { .avant-apres__grid { grid-template-columns: repeat(2, 1fr); } }
.galerie__placeholder--avant-apres { aspect-ratio: 16 / 10; }

/* ---------- FAQ (questions fréquentes) ---------- */
.faq { margin-top: var(--sp-5); max-width: 68ch; margin-inline: auto; text-align: left; }
.faq__item { border-bottom: 1px solid var(--ligne); }
.faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.1em 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  text-align: left;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-right: 2px solid var(--or-fonce);
  border-bottom: 2px solid var(--or-fonce);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq__item[open] > summary::after { transform: rotate(-135deg); }
.faq__item p { padding-bottom: 1.1em; color: var(--beton-fonce); max-width: 62ch; text-align: left; }

/* ---------- Comparateur avant/après (auto-playing slider) ---------- */
.comparateur { position: relative; }
.comparateur__cadre {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E7E7E3;
  isolation: isolate;
}
.comparateur__cadre img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
}
.comparateur__avant-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  /* Two waypoints + alternate, not several mid-points: with more keyframes
     the browser eases in/out of EACH segment, so the line visibly stalls at
     every stop instead of gliding — a pendulum between two extremes reads
     as one continuous sweep. */
  animation: comparateur-auto-clip 3.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: clip-path;
}
@keyframes comparateur-auto-clip {
  from { clip-path: inset(0 85% 0 0); }
  to { clip-path: inset(0 15% 0 0); }
}
@keyframes comparateur-auto-ligne {
  from { left: 15%; }
  to { left: 85%; }
}
.comparateur__ligne {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--blanc);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.2);
  animation: comparateur-auto-ligne 3.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: left;
}
.comparateur__etiquette {
  position: absolute;
  top: 0.8em;
  z-index: 1;
  padding: 0.3em 0.7em;
  background: var(--scrim-noir);
  color: var(--blanc);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.comparateur__etiquette--avant { left: 0.8em; }
.comparateur__etiquette--apres { right: 0.8em; }
.comparateur__legende {
  margin-top: 0.85em;
  padding-top: 0.7em;
  border-top: 2px solid var(--or);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--noir-texte);
}
.comparateur__legende-detail {
  display: block;
  margin-top: 0.2em;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--fs-body-s);
  color: var(--beton-fonce);
}

/* ---------- Comparaison diagonale (avant/après statique, sans curseur) ---------- */
.comparaison-diagonale__cadre {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
  background: #E7E7E3;
}
.comparaison-diagonale__moitie {
  position: absolute;
  inset: 0;
}
.comparaison-diagonale__moitie img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparaison-diagonale__moitie--avant { clip-path: polygon(0 0, 100% 0, 0 100%); background: #ECECE8; }
.comparaison-diagonale__moitie--apres { clip-path: polygon(100% 0, 100% 100%, 0 100%); background: #DCDCD6; }
.comparaison-diagonale__ligne {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 142%;
  height: 3px;
  background: var(--blanc);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.2);
}
.comparaison-diagonale__etiquette {
  position: absolute;
  z-index: 1;
  padding: 0.3em 0.7em;
  background: var(--scrim-noir);
  color: var(--blanc);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.comparaison-diagonale__etiquette--avant { top: 0.8em; left: 0.8em; }
.comparaison-diagonale__etiquette--apres { bottom: 0.8em; right: 0.8em; }
.comparaison-diagonale__placeholder-texte {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-2);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--beton-fonce);
  pointer-events: none;
}

/* ---------- Témoignages — Google-review-styled carousel ---------- */
.avis-google {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.06);
}
.avis-google__entete { display: flex; align-items: center; gap: var(--sp-2); }
.avis-google__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--av-bg, var(--noir));
  color: var(--blanc);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.avis-google__identite { min-width: 0; }
.avis-google__nom { display: block; font-style: normal; font-weight: 700; font-size: var(--fs-body-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avis-google__meta { font-size: var(--fs-body-s); color: var(--beton-fonce); }
.avis-google__etoiles { color: var(--or); font-size: 1.1rem; letter-spacing: 0.1em; line-height: 1; }
.avis-google__texte { font-size: var(--fs-body-m); flex-grow: 1; }
.lien-fleche { display: inline-block; margin-top: var(--sp-5); font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; color: var(--or-fonce); }

/* ---------- Carousel (scroll-snap, works without JS) ---------- */
.carousel { margin-top: var(--sp-5); }
.carousel__track {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-bottom: var(--sp-1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 86%;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .carousel__slide { flex-basis: calc(50% - var(--sp-3) / 2); } }
@media (min-width: 960px) { .carousel__slide { flex-basis: calc((100% - 2 * var(--sp-3)) / 3); } }
.carousel__controles { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.carousel__fleche {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid var(--noir);
  background: transparent;
  color: var(--noir);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.carousel__fleche:hover, .carousel__fleche:focus-visible { background: var(--noir); color: var(--blanc); }
.carousel__points { display: flex; gap: 0.5em; }
.carousel__points span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ligne);
}
.carousel__points span[data-actif="true"] { background: var(--or); }

/* ---------- Zone desservie ---------- */
.zone__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 0;
  margin-top: var(--sp-4);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.zone__liste li:not(:last-child)::after { content: "\00b7"; margin-inline: 0.6em; color: var(--or); }

/* ---------- Formulaire ---------- */
.form-section { background: var(--noir); color: var(--blanc); }
.formulaire { max-width: 640px; margin-top: var(--sp-5); }
.formulaire__grille { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) {
  .formulaire__grille--2col { grid-template-columns: 1fr 1fr; }
}
.champ { display: flex; flex-direction: column; gap: 0.4em; }
.champ label {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--beton);
}
.champ input, .champ select, .champ textarea {
  background: var(--blanc);
  color: var(--noir-texte);
  border: 2px solid transparent;
  padding: 0.75em 0.85em;
  min-height: 48px;
  font-size: 1rem;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible {
  outline: none;
  border-color: var(--or);
}
.champ--erreur input, .champ--erreur select, .champ--erreur textarea {
  border-color: var(--noir);
  border-width: 3px;
}
.champ__erreur {
  display: none;
  font-size: var(--fs-body-s);
  font-weight: 700;
  color: var(--or);
}
.champ__erreur::before { content: "\25B2 "; }
.champ--erreur .champ__erreur { display: block; }

.champ--case {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7em;
}
.champ--case input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 22px; flex-shrink: 0;
  accent-color: var(--or);
  margin-top: 0.15em;
}
.champ--case label { text-transform: none; font-weight: 400; font-size: var(--fs-body-s); letter-spacing: 0; color: var(--blanc); }
.champ--case a { color: var(--or); text-decoration: underline; }

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

.formulaire__pied { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.formulaire__note { color: var(--beton); font-size: var(--fs-body-s); }

.formulaire__confirmation {
  border: 2px solid var(--or);
  padding: var(--sp-4);
}
.formulaire__confirmation h3 { margin-bottom: 0.5em; }
.formulaire__confirmation p { color: var(--beton); }

noscript .formulaire__note-js {
  display: block;
  margin-bottom: var(--sp-3);
  padding: var(--sp-2);
  border: 2px solid var(--or);
  color: var(--blanc);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--noir); color: var(--beton); padding-block: var(--sp-6) var(--sp-4); }
.site-footer__grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer__logo img { height: 40px; width: auto; margin-bottom: var(--sp-2); }
.site-footer .footer-label {
  font-family: var(--f-display);
  color: var(--blanc);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
}
.site-footer ul li { margin-bottom: 0.5em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--or); }
.site-footer__bas {
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--ligne-sur-noir);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--fs-body-s);
}
.site-footer__bas a { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--noir);
  color: var(--blanc);
  padding-block: var(--sp-6);
}
.page-header p { color: var(--beton); max-width: 60ch; margin-top: var(--sp-2); }

/* Video variant — e.g. peinture-residentielle.html */
.page-header--video {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-8);
  background: var(--noir) center/cover no-repeat;
}
.page-header__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.page-header__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.65);
}
.page-header__contenu { position: relative; z-index: 2; }
.page-header--video h1, .page-header--video .fil-ariane, .page-header--video p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Video variant — e.g. the closing CTA on peinture-residentielle.html, tying
   back to the page-header video so it reads as one continuous background.
   Reuses .page-header__video / .page-header__scrim (both plain position:
   absolute + inset:0, no ancestor scoping needed). */
.form-section--video .container { position: relative; z-index: 2; }
.form-section--video .eyebrow, .form-section--video h2 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
/* Replace the flat tape-cut strip with the same torn silhouette cut directly
   into the video section itself, so the peaks show the video/scrim (not flat
   black) and read as one torn edge revealing the video underneath, instead of
   a solid paper cutout floating in front of it. Y is in px (fixed tooth
   depth) so the shape doesn't stretch with the section's height; X stays in
   % so it scales with width. */
.form-section--video.tape-cut::before { content: none; }
.form-section--video {
  clip-path: polygon(
    0% 44px, 3% 31px, 7% 39px, 11% 22px, 15% 35px,
    19% 19px, 24% 32px, 29% 16px, 34% 29px, 39% 12px,
    45% 27px, 51% 10px, 57% 25px, 63% 8px, 69% 22px,
    75% 11px, 81% 26px, 87% 13px, 93% 28px, 97% 17px,
    100% 25px, 100% 100%, 0% 100%
  );
}
/* Darker scrim modifier — e.g. the soumission form, where legibility over a
   busy background photo matters more than showing the video through. */
.page-header__scrim--sombre { background: rgba(10, 10, 10, 0.82); }

/* ---------- Contact info card (soumission page) ---------- */
.soumission__mise-en-page { display: grid; gap: var(--sp-4); align-items: start; }
@media (min-width: 860px) {
  .soumission__mise-en-page { grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-5); }
}
.contact-info {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--ligne-sur-noir);
  padding: var(--sp-4);
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.contact-info h2 { font-size: var(--fs-display-m); }
.contact-info__liste { display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-info__item { display: flex; gap: 0.7em; align-items: flex-start; }
.contact-info__icone {
  flex-shrink: 0; width: 1.6em; height: 1.6em;
  display: flex; align-items: center; justify-content: center;
  background: var(--or); color: var(--noir);
  font-size: 0.95rem;
}
.contact-info__icone svg { width: 1.05em; height: 1.05em; }
.contact-info__label {
  display: block;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 0.75rem; letter-spacing: 0.05em; color: var(--beton);
  margin-bottom: 0.2em;
}
.contact-info__item a, .contact-info__item p { color: var(--blanc); }
.contact-info__item a { text-decoration: underline; text-underline-offset: 0.15em; }
.contact-info__item a:hover, .contact-info__item a:focus-visible { color: var(--or); }

.fil-ariane {
  font-size: var(--fs-body-s);
  color: var(--beton);
  margin-bottom: var(--sp-2);
}
.fil-ariane a { color: var(--beton); text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Content blocks (interior pages) ---------- */
.contenu-simple { max-width: 72ch; }
.contenu-simple h2 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); font-size: var(--fs-display-m); }
.contenu-simple h2:first-child { margin-top: 0; }
.contenu-simple ul { list-style: disc; padding-left: 1.3em; margin-top: 0.75em; }
.contenu-simple ul li { margin-bottom: 0.4em; }
.contenu-simple a { color: var(--or-fonce); text-decoration: underline; text-underline-offset: 0.15em; }

.liste-cases {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.liste-cases li { display: flex; gap: 0.7em; align-items: flex-start; }
.liste-cases li::before { content: "\25A0"; color: var(--or); font-size: 0.7em; margin-top: 0.5em; flex-shrink: 0; }

.placeholder-note {
  border: 2px dashed var(--beton);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-body-s);
  color: var(--beton-fonce);
  margin-top: var(--sp-2);
}

/* A propos portrait slot */
.portrait-slot {
  aspect-ratio: 3/4;
  max-width: 340px;
  background: #E7E7E3;
  border: 2px dashed var(--beton);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-3);
  color: var(--beton-fonce);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

img.portrait-slot {
  display: block;
  width: 100%;
  object-fit: cover;
  background: none;
  padding: 0;
  border: 2px solid var(--or);
}

/* ---------- Utility grid for two-column content pages ---------- */
.deux-colonnes { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) {
  .deux-colonnes { grid-template-columns: 1.2fr 0.8fr; align-items: stretch; }
  /* Match the image/video height to the text column instead of a fixed
     aspect-ratio, so short blocks of text don't leave the picture floating
     above a gap of empty space. The media is taken out of flow (absolute)
     so an unloaded <video>'s poster ratio can't feed back into the grid's
     own row-height calculation and inflate it. */
  .deux-colonnes .fusil__image { position: relative; height: 100%; aspect-ratio: auto; overflow: hidden; }
  .deux-colonnes .fusil__image img,
  .deux-colonnes .fusil__image-video { position: absolute; inset: 0; }
}
