/* =======================================================================
   Template "Chantier" — artisan terrain, preuve par la photo
   Design system INDÉPENDANT. Tokens, typo, layouts propres.
   Mood : entrepreneur honnête, gilet HV, chantier visible, devis simple.
   Codes : utilitaire, lisible, anthracite + jaune sécurité, coins droits.
   ======================================================================= */

:root {
  /* Colors injected per site — fallbacks aligned with the mood */
  --color-primary: #1C1F24;
  --color-secondary: #FFD60A;
  --color-accent: #0EA34A;

  /* Chantier semantic tokens — bound to the user-injected brand colors
     so changing palette in the panel reflects everywhere */
  --c-ink: var(--color-primary);
  --c-ink-2: color-mix(in srgb, var(--color-primary) 88%, white);
  --c-ink-3: color-mix(in srgb, var(--color-primary) 75%, white);
  --c-text: var(--color-primary);
  --c-text-muted: color-mix(in srgb, var(--color-primary) 55%, white);
  --c-text-light: color-mix(in srgb, var(--color-primary) 35%, white);
  --c-line: color-mix(in srgb, var(--color-primary) 12%, white);
  --c-line-soft: color-mix(in srgb, var(--color-primary) 6%, white);
  --c-bg: color-mix(in srgb, var(--color-primary) 3%, white);
  --c-bg-alt: #FFFFFF;
  --c-bg-ink: var(--color-primary);

  /* Accents — same logic */
  --c-yellow: var(--color-secondary);
  --c-yellow-deep: color-mix(in srgb, var(--color-secondary) 88%, black);
  --c-blue-work: #2B4A6F;
  --c-trust: var(--color-accent);
  --c-warn: #C0392B;

  /* Typography — utilisateur peut surcharger via fontPairing.
     Si --user-font-heading/body sont injectés par layout.ejs, ils gagnent ;
     sinon, fallback sur la signature Chantier (Bricolage Grotesque + Inter). */
  --c-display: var(--user-font-heading, 'Bricolage Grotesque', 'Archivo', -apple-system, system-ui, sans-serif);
  --c-body: var(--user-font-body, 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif);
  --c-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Fluid scale — utilitaire, jamais oversized */
  --c-fs-xs: 0.75rem;     /* 12 */
  --c-fs-sm: 0.875rem;    /* 14 */
  --c-fs-base: 1rem;      /* 16 */
  --c-fs-md: 1.0625rem;   /* 17 */
  --c-fs-lg: 1.25rem;     /* 20 */
  --c-fs-xl: 1.5rem;      /* 24 */
  --c-fs-2xl: 2rem;       /* 32 */
  --c-fs-3xl: 2.5rem;     /* 40 */
  --c-fs-4xl: 3.25rem;    /* 52 */
  --c-fs-5xl: 4rem;       /* 64 */
  --c-fs-6xl: 5rem;       /* 80 */

  /* Spacing — grille 8 */
  --c-s-1: 0.25rem;
  --c-s-2: 0.5rem;
  --c-s-3: 0.75rem;
  --c-s-4: 1rem;
  --c-s-5: 1.25rem;
  --c-s-6: 1.5rem;
  --c-s-8: 2rem;
  --c-s-10: 2.5rem;
  --c-s-12: 3rem;
  --c-s-16: 4rem;
  --c-s-20: 5rem;
  --c-s-24: 6rem;
  --c-s-32: 8rem;

  /* Layout */
  --c-container: 1280px;
  --c-container-wide: 1440px;
  --c-gutter: clamp(1.25rem, 3.5vw, 2rem);
  --c-topbar-h: 36px;
  --c-navbar-h: 72px;
  --c-header-h: calc(var(--c-topbar-h) + var(--c-navbar-h));

  /* Radii — droits ou très subtils */
  --c-radius-sm: 2px;
  --c-radius: 4px;
  --c-radius-md: 6px;
  --c-radius-lg: 8px;

  /* Shadows — sobres, jamais flottantes hors hover */
  --c-shadow-sm: 0 1px 2px rgba(28, 31, 36, 0.06);
  --c-shadow: 0 2px 6px rgba(28, 31, 36, 0.08);
  --c-shadow-md: 0 6px 16px rgba(28, 31, 36, 0.10);
  --c-shadow-yellow: 0 4px 12px rgba(255, 214, 10, 0.30);
}

/* -----------------------------------------------------------------------
   Reset & base
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: var(--c-header-h);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.template-chantier {
  font-family: var(--c-body);
  font-size: var(--c-fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}

img, video, svg { display: block; max-width: 100%; height: auto; }
input, textarea, select, button { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 2px;
}

::selection { background: var(--c-yellow); color: var(--c-ink); }

.template-chantier h1,
.template-chantier h2,
.template-chantier h3,
.template-chantier h4 {
  font-family: var(--c-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-ink);
}

.template-chantier .c-mono,
.template-chantier [data-counter] { font-family: var(--c-mono); font-variant-numeric: tabular-nums; }

/* -----------------------------------------------------------------------
   Container & utilities
   ----------------------------------------------------------------------- */
.template-chantier .c-container,
.template-chantier .container {
  width: 100%;
  max-width: var(--c-container);
  margin: 0 auto;
  padding-inline: var(--c-gutter);
}
.template-chantier .c-container--wide { max-width: var(--c-container-wide); }

.template-chantier .c-eyebrow,
.template-chantier .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--c-s-2);
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 6px 10px;
  background: var(--c-yellow);
  border-radius: var(--c-radius-sm);
}

.template-chantier .c-section,
.template-chantier .section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.template-chantier .c-section--alt { background: var(--c-bg-alt); }
.template-chantier .c-section--ink {
  background: var(--c-bg-ink);
  color: #fff;
}
.template-chantier .c-section--ink h2,
.template-chantier .c-section--ink h3 { color: #fff; }

.template-chantier .c-lead,
.template-chantier .lead {
  font-size: var(--c-fs-lg);
  color: var(--c-text-muted);
  max-width: 60ch;
}

/* -----------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */
.template-chantier .c-btn,
.template-chantier .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--c-s-2);
  padding: 14px 22px;
  font-family: var(--c-display);
  font-size: var(--c-fs-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--c-radius);
  border: 2px solid transparent;
  background: var(--c-yellow);
  color: var(--c-ink);
  transition: transform 150ms ease-out, background 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  text-decoration: none;
}

.template-chantier .c-btn:hover,
.template-chantier .btn:hover {
  background: var(--c-yellow-deep);
  transform: translateY(-1px);
  box-shadow: var(--c-shadow-yellow);
}

.template-chantier .c-btn:active,
.template-chantier .btn:active { transform: translateY(0); }

.template-chantier .c-btn--lg,
.template-chantier .btn--lg { padding: 16px 28px; font-size: var(--c-fs-md); }

.template-chantier .c-btn--ghost,
.template-chantier .btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.template-chantier .c-btn--ghost:hover,
.template-chantier .btn--ghost:hover {
  background: var(--c-ink);
  color: #fff;
  box-shadow: none;
}

.template-chantier .c-btn--primary,
.template-chantier .btn--primary {
  background: var(--c-ink);
  color: #fff;
}
.template-chantier .c-btn--primary:hover,
.template-chantier .btn--primary:hover {
  background: var(--c-ink-2);
  box-shadow: 0 6px 16px rgba(28,31,36,0.25);
}

.template-chantier .btn--link {
  background: transparent;
  padding: 0;
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--c-yellow);
}
.template-chantier .btn--link:hover { text-decoration-color: var(--c-yellow-deep); transform: none; box-shadow: none; }

.template-chantier .btn__arrow { transition: transform 200ms ease; }
.template-chantier .btn:hover .btn__arrow { transform: translateX(4px); }

/* -----------------------------------------------------------------------
   Header / Navbar
   ----------------------------------------------------------------------- */
.template-chantier .c-topbar {
  background: var(--c-ink);
  color: rgba(255,255,255,0.85);
  font-size: var(--c-fs-xs);
  height: var(--c-topbar-h);
  display: flex;
  align-items: center;
}
.template-chantier .c-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--c-s-4);
}
.template-chantier .c-topbar__items { display: flex; gap: var(--c-s-5); flex-wrap: wrap; }
.template-chantier .c-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  transition: color 150ms;
}
.template-chantier .c-topbar__item:hover { color: var(--c-yellow); }
.template-chantier .c-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: var(--c-s-2);
  color: var(--c-yellow);
  font-family: var(--c-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.template-chantier .c-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg-alt);
  border-bottom: 2px solid var(--c-line);
  height: var(--c-navbar-h);
  display: flex;
  align-items: center;
  transition: box-shadow 200ms ease;
}
.template-chantier .c-navbar.is-scrolled {
  box-shadow: var(--c-shadow);
  border-bottom-color: var(--c-ink);
}
.template-chantier .c-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--c-s-6);
  width: 100%;
}
.template-chantier .c-navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--c-s-3);
  font-family: var(--c-display);
  font-weight: 800;
  font-size: var(--c-fs-xl);
  letter-spacing: -0.02em;
  color: var(--c-ink);
  text-transform: uppercase;
}
.template-chantier .c-navbar__brand img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

.template-chantier .c-navbar__nav {
  display: flex;
  gap: var(--c-s-6);
  align-items: center;
}
.template-chantier .c-navbar__nav a {
  font-weight: 500;
  font-size: var(--c-fs-sm);
  color: var(--c-ink-2);
  position: relative;
  padding-block: 4px;
  transition: color 150ms;
}
.template-chantier .c-navbar__nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px;
  height: 3px;
  background: var(--c-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.template-chantier .c-navbar__nav a:hover,
.template-chantier .c-navbar__nav a[aria-current="page"] {
  color: var(--c-ink);
}
.template-chantier .c-navbar__nav a:hover::after,
.template-chantier .c-navbar__nav a[aria-current="page"]::after { transform: scaleX(1); }

.template-chantier .c-navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--c-s-2);
  padding: 12px 18px;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-family: var(--c-display);
  font-weight: 700;
  font-size: var(--c-fs-sm);
  border-radius: var(--c-radius);
  transition: transform 150ms, box-shadow 200ms;
}
.template-chantier .c-navbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--c-shadow-yellow);
}

.template-chantier .c-navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 2px solid var(--c-ink);
  border-radius: var(--c-radius);
  background: transparent;
}
.template-chantier .c-navbar__toggle span {
  display: block;
  height: 3px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.template-chantier .c-navbar.is-menu-open .c-navbar__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.template-chantier .c-navbar.is-menu-open .c-navbar__toggle span:nth-child(2) { opacity: 0; }
.template-chantier .c-navbar.is-menu-open .c-navbar__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.template-chantier .c-navbar__mobile {
  display: none;
  position: absolute;
  inset: var(--c-navbar-h) 0 auto;
  background: var(--c-bg-alt);
  border-bottom: 2px solid var(--c-ink);
  padding: var(--c-s-6) var(--c-gutter) var(--c-s-8);
  box-shadow: var(--c-shadow-md);
}
.template-chantier .c-navbar__mobile ul { display: flex; flex-direction: column; gap: var(--c-s-4); }
.template-chantier .c-navbar__mobile a {
  display: block;
  font-family: var(--c-display);
  font-size: var(--c-fs-lg);
  font-weight: 600;
  color: var(--c-ink);
  padding-block: 8px;
  border-bottom: 1px solid var(--c-line);
}
.template-chantier .c-navbar.is-menu-open .c-navbar__mobile { display: block; }

@media (max-width: 920px) {
  .template-chantier .c-navbar__nav,
  .template-chantier .c-navbar__cta { display: none; }
  .template-chantier .c-navbar__toggle { display: flex; }
}

@media (max-width: 640px) {
  .template-chantier .c-topbar__items { gap: var(--c-s-3); }
  .template-chantier .c-topbar__right { display: none; }
}

/* -----------------------------------------------------------------------
   HERO — split 60/40, photo plein cadre
   ----------------------------------------------------------------------- */
.template-chantier .hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  position: relative;
}

.template-chantier .hero__container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.template-chantier .hero__text { max-width: 620px; }

.template-chantier .hero__title {
  font-size: clamp(2.5rem, 5.5vw, var(--c-fs-5xl));
  margin-block: var(--c-s-5) var(--c-s-5);
}
.template-chantier .hero__title em,
.template-chantier .hero__title .accent {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, var(--c-yellow) 60%);
  padding-inline: 4px;
}

.template-chantier .hero__subtitle {
  font-size: var(--c-fs-lg);
  color: var(--c-text-muted);
  margin-bottom: var(--c-s-8);
  line-height: 1.55;
}

.template-chantier .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c-s-3);
  margin-bottom: var(--c-s-8);
}

.template-chantier .hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--c-s-5);
  padding-top: var(--c-s-6);
  border-top: 1px solid var(--c-line);
}
.template-chantier .hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.template-chantier .hero__meta-value {
  font-family: var(--c-display);
  font-size: var(--c-fs-2xl);
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.03em;
}
.template-chantier .hero__meta-label {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.template-chantier .hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--c-line-soft);
  border-radius: var(--c-radius);
  overflow: hidden;
  border: 2px solid var(--c-ink);
}
.template-chantier .hero__image-wrap { position: absolute; inset: 0; }
.template-chantier .hero__image-wrap img,
.template-chantier .hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.template-chantier .hero__image-label {
  position: absolute;
  left: var(--c-s-4);
  bottom: var(--c-s-4);
  background: var(--c-ink);
  color: #fff;
  padding: var(--c-s-3) var(--c-s-4);
  border-radius: var(--c-radius);
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.template-chantier .hero__image-label .eyebrow {
  background: transparent;
  padding: 0;
  color: var(--c-yellow);
}

@media (max-width: 880px) {
  .template-chantier .hero__container { grid-template-columns: 1fr; }
  .template-chantier .hero__visual { aspect-ratio: 4 / 3; }
}

/* -----------------------------------------------------------------------
   TRUST BAR — partenaires/certifs
   ----------------------------------------------------------------------- */
.template-chantier .trust-bar {
  background: var(--c-ink);
  color: rgba(255,255,255,0.7);
  padding-block: var(--c-s-5);
  border-block: 2px solid var(--c-yellow);
}
.template-chantier .trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--c-s-8);
}
.template-chantier .trust-bar__label {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-yellow);
}
.template-chantier .trust-bar__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c-s-6);
  align-items: center;
}
.template-chantier .trust-bar__item {
  font-family: var(--c-display);
  font-weight: 600;
  font-size: var(--c-fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--c-radius);
}

/* -----------------------------------------------------------------------
   SERVICES GRID — cartes utilitaires
   ----------------------------------------------------------------------- */
.template-chantier .services { background: var(--c-bg); }
.template-chantier .services__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--c-s-3);
  margin-bottom: var(--c-s-12);
  max-width: 760px;
}
.template-chantier .services__title {
  font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl));
}
.template-chantier .services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--c-s-5);
}
.template-chantier .service-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-yellow);
  padding: var(--c-s-6);
  border-radius: var(--c-radius);
  transition: transform 200ms ease, box-shadow 200ms ease, border-left-color 200ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
}
.template-chantier .service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--c-shadow-md);
  border-left-color: var(--c-ink);
}
.template-chantier .service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-yellow);
  color: var(--c-ink);
  border-radius: var(--c-radius);
}
.template-chantier .service-card__icon svg { width: 28px; height: 28px; }
.template-chantier .service-card__title {
  font-size: var(--c-fs-lg);
  font-weight: 700;
  color: var(--c-ink);
}
.template-chantier .service-card__text { color: var(--c-text-muted); font-size: var(--c-fs-sm); }
.template-chantier .service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--c-display);
  font-weight: 600;
  font-size: var(--c-fs-sm);
  color: var(--c-ink);
  padding-top: var(--c-s-3);
  border-top: 1px solid var(--c-line);
}
.template-chantier .service-card__link:hover { color: var(--c-yellow-deep); }

/* -----------------------------------------------------------------------
   SHOWCASES — grille chantiers, photo plein cadre
   ----------------------------------------------------------------------- */
.template-chantier .showcases { background: var(--c-bg-alt); }
.template-chantier .showcases__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--c-s-6);
  margin-bottom: var(--c-s-10);
  flex-wrap: wrap;
}
.template-chantier .showcases__title { font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl)); }
.template-chantier .showcases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--c-s-5);
}
.template-chantier .showcase-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.template-chantier .showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-md);
}
.template-chantier .showcase-card--featured { grid-column: span 2; }
@media (max-width: 760px) { .template-chantier .showcase-card--featured { grid-column: auto; } }

.template-chantier .showcase-card__link { display: block; }
.template-chantier .showcase-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--c-line-soft);
  overflow: hidden;
}
.template-chantier .showcase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.template-chantier .showcase-card:hover .showcase-card__media img { transform: scale(1.04); }
.template-chantier .showcase-card__badge {
  position: absolute;
  top: var(--c-s-3);
  right: var(--c-s-3);
  background: var(--c-yellow);
  color: var(--c-ink);
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--c-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.template-chantier .showcase-card__body {
  padding: var(--c-s-5) var(--c-s-5) var(--c-s-6);
}
.template-chantier .showcase-card__title {
  font-size: var(--c-fs-xl);
  font-weight: 700;
  margin-bottom: var(--c-s-2);
}
.template-chantier .showcase-card__meta {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  gap: var(--c-s-2);
}

/* -----------------------------------------------------------------------
   MANIFESTO — court, en bandeau jaune
   ----------------------------------------------------------------------- */
.template-chantier .manifesto {
  background: var(--c-yellow);
  color: var(--c-ink);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.template-chantier .manifesto::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--c-ink) 0 12px, transparent 12px 24px);
}
.template-chantier .manifesto::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--c-ink) 0 12px, transparent 12px 24px);
}
.template-chantier .manifesto .container {
  max-width: 920px;
  text-align: center;
}
.template-chantier .manifesto__quote {
  font-family: var(--c-display);
  font-size: clamp(1.5rem, 3.5vw, var(--c-fs-3xl));
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.template-chantier .manifesto__author {
  margin-top: var(--c-s-5);
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -----------------------------------------------------------------------
   TESTIMONIALS — cards alignées, étoiles bien marquées
   ----------------------------------------------------------------------- */
.template-chantier .testimonials { background: var(--c-bg); }
.template-chantier .testimonials__title { font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl)); margin-bottom: var(--c-s-10); }
.template-chantier .testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--c-s-5);
}
.template-chantier .testimonial,
.template-chantier .testimonial-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  padding: var(--c-s-6);
  border-radius: var(--c-radius);
  display: flex;
  flex-direction: column;
  gap: var(--c-s-4);
}
.template-chantier .testimonial__rating,
.template-chantier .testimonial-card__rating {
  display: inline-flex;
  gap: 2px;
  color: var(--c-yellow-deep);
}
.template-chantier .testimonial__text,
.template-chantier .testimonial-card__text {
  font-size: var(--c-fs-md);
  line-height: 1.55;
  color: var(--c-text);
}
.template-chantier .testimonial__author,
.template-chantier .testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--c-s-3);
  padding-top: var(--c-s-4);
  border-top: 1px solid var(--c-line);
}
.template-chantier .testimonial__name,
.template-chantier .testimonial-card__name {
  font-weight: 600;
  font-family: var(--c-display);
  color: var(--c-ink);
}
.template-chantier .testimonial__role,
.template-chantier .testimonial-card__role {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -----------------------------------------------------------------------
   FAQ
   ----------------------------------------------------------------------- */
.template-chantier .faq { background: var(--c-bg-alt); }
.template-chantier .faq__title { font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl)); margin-bottom: var(--c-s-8); }
.template-chantier .faq__list { max-width: 800px; }
.template-chantier .faq-item,
.template-chantier [data-faq-item] {
  border-top: 2px solid var(--c-line);
  padding-block: var(--c-s-5);
}
.template-chantier .faq-item:last-child,
.template-chantier [data-faq-item]:last-child { border-bottom: 2px solid var(--c-line); }
.template-chantier .faq-item__trigger,
.template-chantier [data-faq-trigger] {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--c-s-4);
  text-align: left;
  font-family: var(--c-display);
  font-size: var(--c-fs-lg);
  font-weight: 600;
  color: var(--c-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.template-chantier .faq-item__trigger::after,
.template-chantier [data-faq-trigger]::after {
  content: '+';
  font-family: var(--c-display);
  font-size: var(--c-fs-2xl);
  color: var(--c-yellow-deep);
  transition: transform 200ms ease;
  flex-shrink: 0;
  line-height: 1;
}
.template-chantier .is-open [data-faq-trigger]::after { content: '−'; }
.template-chantier .faq-item__panel,
.template-chantier [data-faq-panel] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease;
}
.template-chantier .faq-item__panel-inner,
.template-chantier [data-faq-panel] > div {
  padding-top: var(--c-s-3);
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------
   CTA SECTION — bandeau jaune full-width
   ----------------------------------------------------------------------- */
.template-chantier .cta-section,
.template-chantier .cta {
  background: var(--c-ink);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.template-chantier .cta-section::before {
  content: '';
  position: absolute;
  inset: 0 -10% auto auto;
  width: 40%;
  height: 100%;
  background: var(--c-yellow);
  transform: skewX(-12deg);
  opacity: 0.15;
}
.template-chantier .cta__title,
.template-chantier .cta-section__title {
  font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl));
  color: #fff;
  margin-bottom: var(--c-s-4);
  position: relative;
}
.template-chantier .cta__subtitle,
.template-chantier .cta-section__subtitle {
  font-size: var(--c-fs-lg);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--c-s-6);
  max-width: 56ch;
  position: relative;
}
.template-chantier .cta__actions { display: flex; flex-wrap: wrap; gap: var(--c-s-3); position: relative; }

/* -----------------------------------------------------------------------
   CONTACT BLOCK
   ----------------------------------------------------------------------- */
.template-chantier .contact { background: var(--c-bg); }
.template-chantier .contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--c-s-12);
  align-items: start;
}
@media (max-width: 880px) { .template-chantier .contact__grid { grid-template-columns: 1fr; } }
.template-chantier .contact__title { font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl)); margin-bottom: var(--c-s-4); }
.template-chantier .contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
  margin-top: var(--c-s-6);
}
.template-chantier .contact__detail {
  display: flex;
  align-items: center;
  gap: var(--c-s-4);
  padding: var(--c-s-4);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-yellow);
  border-radius: var(--c-radius);
}
.template-chantier .contact__detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-ink);
  color: var(--c-yellow);
  border-radius: var(--c-radius);
}
.template-chantier .contact__detail-label {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}
.template-chantier .contact__detail-value { font-weight: 600; color: var(--c-ink); }

.template-chantier .contact__form,
.template-chantier .form,
.template-chantier form[data-contact-form] {
  background: var(--c-bg-alt);
  border: 2px solid var(--c-ink);
  border-radius: var(--c-radius);
  padding: var(--c-s-6);
  display: flex;
  flex-direction: column;
  gap: var(--c-s-5);
}
.template-chantier .form-group { display: flex; flex-direction: column; gap: 6px; }
.template-chantier .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--c-s-4); }
@media (max-width: 540px) { .template-chantier .form-row { grid-template-columns: 1fr; } }
.template-chantier .form-label {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  font-weight: 600;
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.template-chantier .form-input,
.template-chantier .form-select,
.template-chantier .form-textarea,
.template-chantier input[type="text"],
.template-chantier input[type="email"],
.template-chantier input[type="tel"],
.template-chantier select,
.template-chantier textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--c-fs-base);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  color: var(--c-ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.template-chantier .form-input:focus,
.template-chantier .form-select:focus,
.template-chantier .form-textarea:focus,
.template-chantier input:focus,
.template-chantier select:focus,
.template-chantier textarea:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px var(--c-yellow);
}
.template-chantier .form-textarea { min-height: 120px; resize: vertical; }
.template-chantier .form-legal {
  font-size: var(--c-fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
}
.template-chantier .form-feedback {
  display: flex;
  align-items: center;
  gap: var(--c-s-2);
  padding: var(--c-s-3) var(--c-s-4);
  border-radius: var(--c-radius);
  font-size: var(--c-fs-sm);
}
.template-chantier .form-feedback--success { background: rgba(14,163,74,0.12); color: var(--c-trust); border: 1px solid var(--c-trust); }
.template-chantier .form-feedback--error { background: rgba(192,57,43,0.10); color: var(--c-warn); border: 1px solid var(--c-warn); }

/* -----------------------------------------------------------------------
   ABOUT STORY / TEAM / SIMULATOR / AIDES — sobres
   ----------------------------------------------------------------------- */
.template-chantier .about-story,
.template-chantier .aides-info,
.template-chantier .simulator,
.template-chantier .team { background: var(--c-bg); }
.template-chantier .about-story__title,
.template-chantier .aides-info__title,
.template-chantier .simulator__title,
.template-chantier .team__title { font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl)); margin-bottom: var(--c-s-6); }

.template-chantier .team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--c-s-5);
}
.template-chantier .team-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  overflow: hidden;
}
.template-chantier .team-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--c-line-soft);
  overflow: hidden;
}
.template-chantier .team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.template-chantier .team-card__body { padding: var(--c-s-5); }
.template-chantier .team-card__name { font-weight: 700; font-family: var(--c-display); color: var(--c-ink); }
.template-chantier .team-card__role { font-family: var(--c-mono); font-size: var(--c-fs-xs); color: var(--c-text-muted); text-transform: uppercase; }

/* -----------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------- */
.template-chantier .c-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.7);
  padding-block: var(--c-s-12) var(--c-s-6);
  border-top: 4px solid var(--c-yellow);
}
.template-chantier .c-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--c-s-8);
  padding-bottom: var(--c-s-10);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 880px) { .template-chantier .c-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .template-chantier .c-footer__top { grid-template-columns: 1fr; gap: var(--c-s-6); } }

.template-chantier .c-footer__brand {
  font-family: var(--c-display);
  font-weight: 800;
  font-size: var(--c-fs-xl);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--c-s-3);
}
.template-chantier .c-footer__tagline { font-size: var(--c-fs-sm); line-height: 1.6; max-width: 30ch; }
.template-chantier .c-footer__certifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c-s-2);
  margin-top: var(--c-s-4);
}
.template-chantier .c-footer__cert-badge {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border: 1px solid var(--c-yellow);
  color: var(--c-yellow);
  border-radius: var(--c-radius-sm);
}
.template-chantier .c-footer__socials { display: flex; gap: var(--c-s-2); margin-top: var(--c-s-4); }
.template-chantier .c-footer__socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--c-radius);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  transition: background 150ms, color 150ms;
}
.template-chantier .c-footer__socials a:hover { background: var(--c-yellow); color: var(--c-ink); }

.template-chantier .c-footer__col h4 {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: var(--c-s-3);
}
.template-chantier .c-footer__col ul { display: flex; flex-direction: column; gap: var(--c-s-2); }
.template-chantier .c-footer__col a { color: rgba(255,255,255,0.7); transition: color 150ms; }
.template-chantier .c-footer__col a:hover { color: var(--c-yellow); }
.template-chantier .c-footer__col svg { display: inline-block; vertical-align: middle; margin-right: 6px; }

.template-chantier .c-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--c-s-4);
  padding-top: var(--c-s-6);
  font-size: var(--c-fs-xs);
  color: rgba(255,255,255,0.5);
}
.template-chantier .c-footer__legal { display: flex; gap: var(--c-s-4); }
.template-chantier .c-footer__legal a { color: rgba(255,255,255,0.7); }

/* -----------------------------------------------------------------------
   COOKIE BANNER
   ----------------------------------------------------------------------- */
.template-chantier [data-cookie-banner] {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  background: var(--c-ink);
  color: #fff;
  border: 2px solid var(--c-yellow);
  border-radius: var(--c-radius);
  padding: var(--c-s-5);
  max-width: 480px;
  box-shadow: var(--c-shadow-md);
}
.template-chantier [data-cookie-banner] p { font-size: var(--c-fs-sm); margin-bottom: var(--c-s-4); }
.template-chantier [data-cookie-banner] button {
  width: 100%;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-family: var(--c-display);
  font-weight: 700;
  padding: 12px;
  border-radius: var(--c-radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--c-fs-sm);
}

/* -----------------------------------------------------------------------
   REVEAL (intersection observer)
   ----------------------------------------------------------------------- */
.template-chantier .reveal,
.template-chantier .c-reveal,
.template-chantier .reveal-scale {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
  will-change: opacity, transform;
}
.template-chantier .is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .template-chantier .reveal,
  .template-chantier .c-reveal,
  .template-chantier .reveal-scale { opacity: 1; transform: none; transition: none; }
}

/* -----------------------------------------------------------------------
   LEGAL CONTENT
   ----------------------------------------------------------------------- */
.template-chantier .legal-content { background: var(--c-bg); padding-block: clamp(3rem, 6vw, 5rem); }
.template-chantier .legal-content .container { max-width: 720px; }
.template-chantier .legal-content h2 { font-size: var(--c-fs-2xl); margin-block: var(--c-s-8) var(--c-s-4); }
.template-chantier .legal-content h3 { font-size: var(--c-fs-xl); margin-block: var(--c-s-6) var(--c-s-3); }
.template-chantier .legal-content p,
.template-chantier .legal-content li { color: var(--c-text); line-height: 1.7; margin-bottom: var(--c-s-3); }
.template-chantier .legal-content ul { padding-left: var(--c-s-5); list-style: disc; }

/* =======================================================================
   ADDITIONS — couvre toutes les classes utilisées par shared/sections/
   que l'ancienne version oubliait (contact-block, cta-final, trust-bar
   sub-structure, simulator, team, about-story, aides-info, showcase-gallery,
   legal-page, faq-item__answer/__icon).
   ======================================================================= */

/* TRUST BAR — full structure (certs + stats) */
.template-chantier .trust-bar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--c-s-10);
  align-items: center;
}
@media (max-width: 760px) { .template-chantier .trust-bar__grid { grid-template-columns: 1fr; gap: var(--c-s-6); } }

.template-chantier .trust-bar__certifications {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
}
.template-chantier .trust-bar__cert,
.template-chantier .trust-bar__certs-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c-s-3);
  align-items: center;
}
.template-chantier .trust-bar__cert-badge {
  font-family: var(--c-display);
  font-weight: 600;
  font-size: var(--c-fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-yellow);
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--c-yellow) 50%, transparent);
  border-radius: var(--c-radius);
  background: color-mix(in srgb, var(--c-yellow) 8%, transparent);
}
.template-chantier .trust-bar__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--c-s-6);
}
.template-chantier .trust-bar__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.template-chantier .trust-bar__stat-value {
  font-family: var(--c-display);
  font-size: var(--c-fs-3xl);
  font-weight: 800;
  color: var(--c-yellow);
  letter-spacing: -0.02em;
  line-height: 1;
}
.template-chantier .trust-bar__stat-label {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}

/* CONTACT BLOCK (shared section uses .contact-block__*, NOT .contact__*) */
.template-chantier .contact-block { background: var(--c-bg); padding-block: clamp(3rem, 7vw, 6rem); }
.template-chantier .contact-block__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--c-s-12);
  align-items: start;
}
@media (max-width: 880px) { .template-chantier .contact-block__grid { grid-template-columns: 1fr; gap: var(--c-s-8); } }
.template-chantier .contact-block__intro { display: flex; flex-direction: column; gap: var(--c-s-4); }
.template-chantier .contact-block__title { font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl)); }
.template-chantier .contact-block__details {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
  margin-top: var(--c-s-4);
}
.template-chantier .contact-block__detail {
  display: flex;
  align-items: center;
  gap: var(--c-s-4);
  padding: var(--c-s-4);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-yellow);
  border-radius: var(--c-radius);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, border-left-width 150ms ease;
}
.template-chantier .contact-block__detail:hover { transform: translateX(2px); border-left-width: 6px; }
.template-chantier .contact-block__detail-label {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}
.template-chantier .contact-block__detail-value { font-weight: 600; color: var(--c-ink); }
.template-chantier .contact-block__form {
  background: var(--c-bg-alt);
  border: 2px solid var(--c-ink);
  border-radius: var(--c-radius);
  padding: var(--c-s-6);
  display: flex;
  flex-direction: column;
  gap: var(--c-s-5);
}
.template-chantier .contact-block__legal {
  font-size: var(--c-fs-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* CTA FINAL (shared section "cta-section.ejs" uses .cta-final__*) */
.template-chantier .cta-final {
  background: var(--c-ink);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.template-chantier .cta-final::before {
  content: '';
  position: absolute;
  inset: 0 -10% auto auto;
  width: 40%;
  height: 100%;
  background: var(--c-yellow);
  transform: skewX(-12deg);
  opacity: 0.15;
}
.template-chantier .cta-final__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--c-s-5);
  align-items: flex-start;
}
.template-chantier .cta-final__title {
  font-size: clamp(1.75rem, 4vw, var(--c-fs-4xl));
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.template-chantier .cta-final__subtitle {
  font-size: var(--c-fs-lg);
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
}
.template-chantier .cta-final__actions { display: flex; flex-wrap: wrap; gap: var(--c-s-3); }
.template-chantier .cta-final__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--c-s-2);
  font-family: var(--c-mono);
  font-size: var(--c-fs-md);
  color: var(--c-yellow);
  letter-spacing: 0.04em;
  margin-top: var(--c-s-2);
}
.template-chantier .cta-final .btn--ghost,
.template-chantier .cta-final .btn--light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.25);
}
.template-chantier .cta-final .btn--ghost:hover,
.template-chantier .cta-final .btn--light:hover {
  background: #fff;
  color: var(--c-ink);
  border-color: #fff;
}

/* SIMULATOR — pas d'override de background ici : laisse .section-dark
   (ou la section parent) imposer le fond. Évite les conflits cascade. */
.template-chantier .simulator { padding-block: clamp(3rem, 7vw, 6rem); }
.template-chantier .simulator__title {
  font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl));
  margin-bottom: var(--c-s-4);
  color: inherit;
}
.template-chantier .simulator__intro {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
  margin-bottom: var(--c-s-8);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.template-chantier .simulator__intro .lead {
  color: inherit;
  opacity: 0.78;
  margin-inline: auto;
}
.template-chantier .simulator__widget {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--c-s-5);
}
.template-chantier .simulator__widget iframe {
  width: 100%;
  min-height: 540px;
  border: 0;
  border-radius: var(--c-radius);
}
/* When simulator is on a dark section, ensure the embedded search input
   stays legible by giving an explicit dark themed wrapper (overrides
   the inline styles set by simulator.ejs which assume dark bg) */
.template-chantier .section-dark .simulator__widget input,
.template-chantier .simulator.section-dark input {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.18) !important;
}

/* ABOUT STORY (page À propos) */
.template-chantier .about-story { background: var(--c-bg); padding-block: clamp(3rem, 7vw, 6rem); }
.template-chantier .about-story__header {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-4);
  margin-bottom: var(--c-s-12);
  max-width: 760px;
}
.template-chantier .about-story__title { font-size: clamp(2rem, 4vw, var(--c-fs-3xl)); }
.template-chantier .about-story__subtitle { font-size: var(--c-fs-lg); color: var(--c-text-muted); }
.template-chantier .about-story__hero-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--c-radius);
  margin-bottom: var(--c-s-12);
  border: 2px solid var(--c-ink);
}
.template-chantier .about-story__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--c-s-6);
}
.template-chantier .about-story__block {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-yellow);
  padding: var(--c-s-6);
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
}
.template-chantier .about-story__block-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: var(--c-s-3);
  border-radius: var(--c-radius);
}
.template-chantier .about-story__block-title {
  font-size: var(--c-fs-lg);
  color: var(--c-ink);
}
.template-chantier .about-story__block-body { color: var(--c-text-muted); font-size: var(--c-fs-sm); line-height: 1.6; }

.template-chantier .about-story__timeline {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-5);
  margin-top: var(--c-s-10);
  padding-top: var(--c-s-10);
  border-top: 1px solid var(--c-line);
}
.template-chantier .about-story__timeline-title {
  font-size: var(--c-fs-2xl);
  margin-bottom: var(--c-s-3);
}
.template-chantier .about-story__event {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--c-s-5);
  padding-block: var(--c-s-3);
  border-bottom: 1px solid var(--c-line-soft);
}
.template-chantier .about-story__year {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xl);
  font-weight: 700;
  color: var(--c-yellow-deep);
}

/* AIDES INFO + AIDE CARD */
.template-chantier .aides-info { background: var(--c-bg-alt); padding-block: clamp(3rem, 7vw, 6rem); }
.template-chantier .aides-info__header {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
  margin-bottom: var(--c-s-10);
  max-width: 720px;
}
.template-chantier .aides-info__title { font-size: clamp(2rem, 4vw, var(--c-fs-3xl)); }
.template-chantier .aides-info__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--c-s-5);
}
.template-chantier .aides-info__note {
  margin-top: var(--c-s-8);
  padding: var(--c-s-5);
  background: color-mix(in srgb, var(--c-yellow) 12%, white);
  border-left: 4px solid var(--c-yellow);
  border-radius: var(--c-radius);
  font-size: var(--c-fs-sm);
  color: var(--c-ink);
}

.template-chantier .aide-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  padding: var(--c-s-6);
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
}
.template-chantier .aide-card__name {
  font-size: var(--c-fs-lg);
  font-weight: 700;
  color: var(--c-ink);
}
.template-chantier .aide-card__body { color: var(--c-text-muted); font-size: var(--c-fs-sm); line-height: 1.6; }
.template-chantier .aide-card__description { color: var(--c-text-muted); font-size: var(--c-fs-sm); line-height: 1.6; }
.template-chantier .aide-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-2);
  margin-top: var(--c-s-3);
  padding-top: var(--c-s-4);
  border-top: 1px solid var(--c-line);
}
.template-chantier .aide-card__detail {
  display: flex;
  justify-content: space-between;
  font-size: var(--c-fs-sm);
}
.template-chantier .aide-card__label { color: var(--c-text-muted); }
.template-chantier .aide-card__number {
  font-family: var(--c-mono);
  font-weight: 600;
  color: var(--c-ink);
}

/* TEAM GRID + TEAM MEMBER */
.template-chantier .team-grid { background: var(--c-bg); padding-block: clamp(3rem, 7vw, 6rem); }
.template-chantier .team-grid__header {
  display: flex;
  flex-direction: column;
  gap: var(--c-s-3);
  margin-bottom: var(--c-s-10);
  max-width: 720px;
}
.template-chantier .team-grid__title { font-size: clamp(2rem, 4vw, var(--c-fs-3xl)); }
.template-grid__list,
.template-chantier .team-grid__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--c-s-6);
}
.template-chantier .team-member {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.template-chantier .team-member__photo {
  aspect-ratio: 4 / 5;
  background: var(--c-line-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.template-chantier .team-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.template-chantier .team-member__placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--c-display);
  font-size: var(--c-fs-2xl);
  font-weight: 800;
}
.template-chantier .team-member__name {
  padding: var(--c-s-4) var(--c-s-5) 0;
  font-family: var(--c-display);
  font-weight: 700;
  font-size: var(--c-fs-lg);
  color: var(--c-ink);
}
.template-chantier .team-member__role {
  padding: 0 var(--c-s-5);
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
}
.template-chantier .team-member__bio {
  padding: var(--c-s-3) var(--c-s-5) var(--c-s-5);
  font-size: var(--c-fs-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* SHOWCASE GALLERY (page Réalisations) */
.template-chantier .showcase-gallery { background: var(--c-bg); padding-block: clamp(3rem, 7vw, 6rem); }
.template-chantier .showcase-gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--c-s-5);
  margin-bottom: var(--c-s-8);
}
.template-chantier .showcase-gallery__title { font-size: clamp(2rem, 4vw, var(--c-fs-3xl)); }
.template-chantier .showcase-gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c-s-2);
  margin-bottom: var(--c-s-8);
}
.template-chantier .showcase-filter {
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.template-chantier .showcase-filter:hover { background: var(--c-bg); color: var(--c-ink); }
.template-chantier .showcase-filter.is-active {
  background: var(--c-ink);
  color: var(--c-yellow);
  border-color: var(--c-ink);
}
.template-chantier .showcase-filter__count {
  margin-left: 6px;
  opacity: 0.6;
}
.template-chantier .showcase-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--c-s-5);
}

/* TESTIMONIALS swiper-friendly */
.template-chantier .testimonials__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--c-s-5);
  margin-bottom: var(--c-s-10);
}
.template-chantier .testimonials__swiper { padding-bottom: var(--c-s-6); }
.template-chantier .testimonials__controls { display: flex; gap: var(--c-s-2); }
.template-chantier .testimonials__prev,
.template-chantier .testimonials__next {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  color: var(--c-ink);
}
.template-chantier .testimonials__prev:hover,
.template-chantier .testimonials__next:hover {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}
.template-chantier .testimonials__pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--c-s-5);
}
.template-chantier .testimonials__pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--c-text-light);
  border-radius: 0;
  opacity: 1;
}
.template-chantier .testimonials__pagination .swiper-pagination-bullet-active {
  background: var(--c-yellow);
  width: 20px;
}

/* FAQ — shared variants */
.template-chantier .faq__intro {
  font-size: var(--c-fs-lg);
  color: var(--c-text-muted);
  max-width: 60ch;
  margin-bottom: var(--c-s-8);
}
.template-chantier .faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 800px;
}
.template-chantier .faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--c-s-4);
  text-align: left;
  font-family: var(--c-display);
  font-size: var(--c-fs-lg);
  font-weight: 600;
  color: var(--c-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.template-chantier .faq-item__icon {
  flex-shrink: 0;
  font-family: var(--c-display);
  font-size: var(--c-fs-2xl);
  color: var(--c-yellow-deep);
  line-height: 1;
  transition: transform 200ms ease;
}
.template-chantier .faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.template-chantier .faq-item__answer {
  max-height: 0;
  overflow: hidden;
  color: var(--c-text-muted);
  line-height: 1.6;
  transition: max-height 250ms ease;
}
.template-chantier .faq-item.is-open .faq-item__answer { padding-top: var(--c-s-3); }

/* LEGAL PAGE */
.template-chantier .legal-page { background: var(--c-bg); padding-block: clamp(3rem, 7vw, 6rem); }
.template-chantier .legal-page .container { max-width: 720px; }
.template-chantier .legal-page__title {
  font-size: clamp(1.75rem, 3.5vw, var(--c-fs-3xl));
  margin-bottom: var(--c-s-8);
}
.template-chantier .legal-page__content { line-height: 1.7; }
.template-chantier .legal-page__content h2 { font-size: var(--c-fs-2xl); margin-block: var(--c-s-8) var(--c-s-4); }
.template-chantier .legal-page__content h3 { font-size: var(--c-fs-xl); margin-block: var(--c-s-6) var(--c-s-3); }
.template-chantier .legal-page__content p,
.template-chantier .legal-page__content li { color: var(--c-text); margin-bottom: var(--c-s-3); }
.template-chantier .legal-page__content ul { padding-left: var(--c-s-5); list-style: disc; }

/* SECTION variants used by shared sections */
.template-chantier .section-alt { background: var(--c-bg-alt); }
.template-chantier .section-dark { background: var(--c-ink); color: #fff; }
.template-chantier .section-dark h2,
.template-chantier .section-dark h3 { color: #fff; }
.template-chantier .section-lg { padding-block: clamp(4rem, 9vw, 8rem); }

/* CONTAINERS variants */
.template-chantier .container-md { max-width: 960px; margin-inline: auto; padding-inline: var(--c-gutter); }
.template-chantier .container-narrow { max-width: 720px; margin-inline: auto; padding-inline: var(--c-gutter); }
.template-chantier .container-text { max-width: 680px; margin-inline: auto; padding-inline: var(--c-gutter); }

/* MANIFESTO signature */
.template-chantier .manifesto__signature {
  margin-top: var(--c-s-5);
  font-family: var(--c-mono);
  font-size: var(--c-fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* utilities */
.template-chantier .hide-mobile { display: inline-flex; }
.template-chantier .show-mobile { display: none; }
@media (max-width: 760px) {
  .template-chantier .hide-mobile { display: none; }
  .template-chantier .show-mobile { display: inline-flex; }
}
