/* =================================================================
   ADEM BAT — feuille de style
   Registre : classique et solide. Le vocabulaire attendu d'une
   entreprise du bâtiment — en-tête clair, bandeau de confiance,
   grille de prestations ordonnée, appels à l'action visibles —
   exécuté proprement. Palette inchangée (voir tokens.css).
   ================================================================= */

/* ------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* L'en-tête est collant : les ancres doivent le dégager, sinon la
   cible atterrit dessous. */
:target, [id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--ardoise);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-variation-settings: "wdth" var(--w-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s3);
  color: var(--ardoise-deep);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Grands titres : Archivo élargie, approche serrée. La largeur variable
   donne l'assise d'une enseigne de chantier sans changer de famille.
   Interligne 1.1 : l'italique garde ses jambages (p, q, g) entiers. */
h1, h2 {
  font-weight: 680;
  font-variation-settings: "wdth" 116;
  line-height: 1.1;
  letter-spacing: -0.028em;
}
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.012em; }

/* Le mot mis en relief dans un titre : l'italique de la même famille,
   en brique. */
h1 em, h2 em {
  font-style: italic;
  font-weight: 560;
  color: var(--brique);
}

/* Sur-titre : petit, espacé, encadré de filets. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 var(--s3);
  color: var(--brique);
  font-size: var(--t-micro);
  font-weight: 600;
  font-variation-settings: "wdth" var(--w-wide);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--tuffeau); }

p { margin: 0 0 var(--s3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brique); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brique-bright); }

img, svg, video { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--brique);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead, .lede {
  font-size: var(--t-lede);
  color: var(--ardoise-mid);
  line-height: 1.7;
}

.narrow { max-width: 70ch; margin-inline: auto; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tnum { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- sections */

.section { padding-block: var(--s7); }
.section--alt { background: var(--chaux); }
.section--dark {
  background:
    radial-gradient(ellipse 60% 120% at 85% 0%, rgba(122,21,18,.32), transparent 60%),
    radial-gradient(ellipse 50% 100% at 0% 100%, rgba(91,107,118,.28), transparent 60%),
    var(--ardoise-deep);
  color: #cfd6da;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
  max-width: 62ch;
  margin: 0 auto var(--s6);
  text-align: center;
}
.section-head h2 { margin-bottom: var(--s3); }

/* Le filet court sous le titre : le repère classique qui ordonne une
   page sans l'alourdir. */
.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: var(--s4) auto 0;
  background: var(--brique);
  transform-origin: center;
}
/* Le titre a déjà son sur-titre au-dessus : un seul repère suffit. */
.section-head .eyebrow ~ h2::after { display: none; }
.section--dark .section-head h2::after { background: var(--tuffeau); }
.section-head p { margin-bottom: 0; }

/* --------------------------------------------------------- boutons */

.btn {
  --btn-bg: var(--brique);
  --btn-fg: #fff;
  --btn-bd: var(--brique);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.6em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease),
              transform .18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(28, 38, 44, 0.45);
  color: var(--btn-fg);
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary        { --btn-bg: var(--brique); --btn-bd: var(--brique); }
.btn--primary:hover  {
  --btn-bg: var(--brique-bright);
  --btn-bd: var(--brique-bright);
  box-shadow: 0 12px 26px -10px rgba(122, 21, 18, .6);
}

/* Reflet qui traverse les boutons pleins au survol. */
.btn--primary, .btn--light { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after,
.btn--light::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease-out);
}
.btn--light::after { background: linear-gradient(105deg, transparent 35%, rgba(122,21,18,.10) 50%, transparent 65%); }
.btn--primary:hover::after,
.btn--light:hover::after { transform: translateX(110%); }

/* Flèche en fin de bouton : elle avance d'un pas au survol. */
.btn svg:last-child:not(:first-child) { transition: transform .35s var(--ease-out); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

.btn--ghost          { --btn-bg: transparent; --btn-fg: var(--ardoise-deep); --btn-bd: var(--rule); }
.btn--ghost:hover    { --btn-bg: var(--chaux); --btn-bd: var(--ardoise-mid); }

.btn--light          { --btn-bg: #fff; --btn-fg: var(--brique); --btn-bd: #fff; }
.btn--light:hover    { --btn-bg: var(--chaux); --btn-fg: var(--brique); --btn-bd: var(--chaux); }

.btn--outline-light  { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }

.btn-group, .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* -------------------------------------------------------- en-tête */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.hdr.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 8px 30px -12px rgba(28, 38, 44, 0.18);
}

/* Avancement de la lecture : un filet brique qui court sous l'en-tête. */
.hdr__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brique);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
/* Là où le navigateur sait lier une animation au défilement, le filet
   avance avec la page ; ailleurs il reste simplement absent. */
@supports (animation-timeline: scroll()) {
  .hdr__progress {
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress { to { transform: scaleX(1); } }
.hdr__in {
  display: flex;
  align-items: center;
  gap: var(--s4);
  height: var(--hdr-h);
}

.hdr__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.hdr__logo img { width: 42px; height: 42px; transition: transform .5s var(--ease-out); }
.hdr__logo:hover img { transform: rotate(-6deg) scale(1.05); }
.hdr__name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  font-variation-settings: "wdth" var(--w-wide);
  letter-spacing: .06em;
  color: var(--ardoise-deep);
  line-height: 1.1;
}
.hdr__sub {
  display: block;
  font-size: var(--t-micro);
  color: var(--ardoise-mid);
  line-height: 1.3;
}

.nav__list, .nav__sub {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list { gap: 0.35rem; align-items: center; }
.nav__list > li { position: relative; }

.nav__list a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r);
  color: var(--ardoise);
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__list a:hover { color: var(--brique); }
.nav__sub a:hover { background: var(--chaux); }

/* Soulignement qui se trace au survol ; il reste posé sous la page
   courante — un repère lisible même en niveaux de gris. */
@media (min-width: 981px) {
  .nav__list > li > a { position: relative; }
  .nav__list > li > a::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.3rem;
    height: 1.5px;
    background: var(--brique);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease-out);
  }
  .nav__list > li > a:hover::before,
  .nav__list > li > a[aria-current="page"]::before {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.nav__list > li > a[aria-current="page"] {
  color: var(--brique);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  min-width: 268px;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__list > li:hover > .nav__sub,
.nav__list > li:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__sub a { font-weight: 500; }

.hdr__cta { flex: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ardoise-deep);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hdr__sub { display: none; }
}

@media (max-width: 980px) {
  .burger { display: flex; }
  .hdr__cta { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule-soft);
    box-shadow: var(--sh-3);
    max-height: calc(100dvh - var(--hdr-h));
    overflow-y: auto;
    /* Le panneau est en position absolue : il ne pousse rien. Il suffit
       donc de le faire glisser et apparaître (transform + opacité) plutôt
       que d'animer sa hauteur. visibility le retire du clavier fermé. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .35s var(--ease-out), visibility 0s .35s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .35s var(--ease-out), visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s4);
  }
  .nav__list > li { border-bottom: 1px solid var(--rule-soft); }
  .nav__list a { padding: 0.85rem 0.25rem; }

  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 var(--s2) var(--s3);
    border: 0;
    border-left: 2px solid var(--tuffeau);
    margin-left: 0.25rem;
    box-shadow: none;
  }
  .nav__sub a { padding: 0.5rem 0.25rem; font-size: var(--t-micro); }
}

/* ------------------------------------------------------------ héros */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(820px, calc(100dvh - var(--hdr-h)));
  padding-block: var(--s6) calc(var(--s6) + 56px);
  background: var(--ardoise-deep);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

/* La photo est un élément à part : elle se pose en léger dézoom à
   l'arrivée, puis glisse plus lentement que la page au défilement. */
.hero__bg {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
}
/* Parallaxe : la photo glisse moins vite que la page, liée au défilement
   en CSS — aucun écouteur de scroll en JavaScript. */
@supports (animation-timeline: view()) {
  .hero__bg {
    animation: hero-drift linear both;
    animation-timeline: view(block);
    animation-range: exit 0% exit 100%;
  }
}
@keyframes hero-drift { to { transform: translate3d(0, 22%, 0); } }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-settle 2.6s var(--ease-out) both;
}
@keyframes hero-settle {
  from { transform: scale(1.14); filter: saturate(.6) brightness(.8); }
  to   { transform: scale(1);    filter: none; }
}

/* Deux voiles : un dégradé qui garde le texte lisible à gauche, et un
   assombrissement général. Sans quoi le blanc passe sur les zones
   claires de l'image. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 90% at 0% 60%, rgba(20,28,33,.9), transparent 70%),
    linear-gradient(100deg, rgba(20,28,33,.88) 0%, rgba(20,28,33,.66) 45%, rgba(20,28,33,.32) 100%),
    linear-gradient(0deg, rgba(20,28,33,.6) 0%, transparent 35%);
}

/* .hero__in porte aussi .container : lui donner un max-width ici
   écraserait celui du conteneur et centrerait le bloc au milieu de la
   page. La largeur de lecture se limite donc sur les enfants. */
.hero__in > * { max-width: 46rem; }
.hero__in > h1 { max-width: 26ch; }
.hero h1 { color: #fff; margin-bottom: var(--s4); }
.hero h1 em { color: var(--tuffeau); }
.hero__lede {
  color: rgba(255,255,255,.88);
  margin-bottom: var(--s5);
  max-width: 52ch;
}

/* Sur-titre du héros : la qualification, qui est l'argument le plus
   fort de cette entreprise. */
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--s4);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r);
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: var(--t-micro);
  font-weight: 600;
  font-variation-settings: "wdth" var(--w-narrow);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero__kicker svg { width: 15px; height: 15px; color: var(--tuffeau); }

/* Entrée du héros : chaque ligne monte à son tour. */
.hero__in > * {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(0.25s + var(--i, 0) * 0.12s);
}
.hero__in > :nth-child(2) { --i: 1; }
.hero__in > :nth-child(3) { --i: 2; }
.hero__in > :nth-child(4) { --i: 3; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}



/* ---------------------------------------------------- bandeau repères */

/* Panneau blanc qui chevauche le bas du héros. flow-root empêche la marge
   négative de fuir vers la section : seul le panneau remonte, le fond de
   la section reste sous le héros. */
.trust {
  display: flow-root;
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--ardoise);
}
.trust:has(+ .section--alt) { background: var(--chaux); }
.page-hero:has(+ .trust) { padding-bottom: calc(var(--s6) + 56px); }
.trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: -56px 0 0;
  padding: var(--s2) var(--s3);
  list-style: none;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
}
.trust__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: var(--s4) var(--s3);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.35;
}
.trust__list li + li { box-shadow: inset 1px 0 0 var(--rule-soft); }
.trust__list svg {
  width: 38px;
  height: 38px;
  flex: none;
  padding: 9px;
  border-radius: 50%;
  background: rgba(122, 21, 18, .08);
  color: var(--brique);
}
.trust__list b { display: block; font-weight: 700; color: var(--ardoise-deep); }
.trust__list small {
  display: block;
  font-weight: 400;
  font-size: var(--t-micro);
  color: var(--ardoise-mid);
}

@media (max-width: 860px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__list li + li { box-shadow: none; }
  .trust__list li { border-top: 1px solid var(--rule-soft); }
  .trust__list li:nth-child(-n+2) { border-top: 0; }
  .trust__list li:nth-child(even) { box-shadow: inset 1px 0 0 var(--rule-soft); }
}
@media (max-width: 480px) {
  .trust__list { grid-template-columns: 1fr; }
  .trust__list li:nth-child(even) { box-shadow: none; }
  .trust__list li:nth-child(2) { border-top: 1px solid var(--rule-soft); }
}

/* ------------------------------------------------------- grilles */

.grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* Sept prestations : sur trois colonnes, la dernière restait seule sur
   sa ligne. Quatre colonnes et une tuile de contact en huitième place
   font deux lignes pleines. */
@media (min-width: 1100px) {
  .grid--services { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
}

.card.card--cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  justify-content: flex-end;
  padding: var(--s5) var(--s4) var(--s4);
  border-color: transparent;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(122,21,18,.55), transparent 65%),
    var(--ardoise-deep);
  color: #cfd6da;
}
.card.card--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/pattern-roofs.svg") 0 0 / 96px;
  opacity: .06;
}
.card.card--cta h3 {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 680;
  font-variation-settings: "wdth" 112;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.card.card--cta p { color: #aab5bc; }
.card.card--cta .card__link { color: #fff; }
@media (min-width: 640px) and (max-width: 1099px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--services > :first-child { grid-column: span 2; }
}

/* --------------------------------------------------------- cartes */

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s4) var(--s4);
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out),
              border-color .3s var(--ease);
}
a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-4);
  border-color: transparent;
}
.card h3 { margin-bottom: var(--s2); }
.card p {
  color: var(--ardoise-mid);
  font-size: var(--t-small);
  margin-bottom: var(--s3);
}
.card > p:last-of-type { flex: 1; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s3);
  border-radius: var(--r);
  background: var(--chaux);
  color: var(--brique);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
a.card:hover .card__icon { background: var(--brique); color: #fff; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--brique);
  font-size: var(--t-small);
  font-weight: 600;
}
.card__link svg {
  width: 17px;
  height: 17px;
  transition: transform .2s var(--ease);
}
a.card:hover .card__link svg { transform: translateX(4px); }

/* Carte de prestation avec visuel : la variante utilisée en page
   d'accueil et sur l'index des services. */
.card--media { padding: 0; overflow: hidden; }
.card--media .card__media {
  position: relative;
  aspect-ratio: 8 / 5;
  background: var(--chaux-deep);
  overflow: hidden;
}
/* Visuels au format 16:9 recadrés en 8/5 : on perd très peu sur les
   côtés, le sujet reste centré. Les anciens dessins SVG (4/3) portaient
   leur légende en bas ; caler en haut l'écartait, ce qui ne gêne pas les
   images 16:9. */
.card--media .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.1s var(--ease-out);
}
a.card--media:hover .card__media img { transform: scale(1.07); }

.card--media .card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* la pastille d'icône déborde vers le haut : on lui laisse la place */
  padding: calc(var(--s4) + 14px) var(--s4) var(--s4);
}
.card--media .card__body p { flex: 1; }

/* La pastille d'icône chevauche le visuel — repère classique qui relie
   l'image au texte.
   Elle est ancrée au corps de la carte et non au visuel : celui-ci porte
   overflow:hidden pour le zoom au survol, et y placer la pastille la
   faisait rogner net. */
.card--media .card__icon {
  position: absolute;
  left: var(--s4);
  top: 0;
  transform: translateY(-50%);
  margin: 0;
  background: var(--brique);
  color: #fff;
  box-shadow: var(--sh-2);
  z-index: 1;
  transition: background .3s var(--ease), transform .5s var(--ease-out);
}
a.card--media:hover .card__icon {
  background: var(--ardoise-deep);
  transform: translateY(-50%) rotate(-8deg);
}

/* --------------------------------------------------------- valeurs */

/* Texte et liste à gauche, photo de chantier à droite. */
.values-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s6);
  align-items: center;
}
.values-split h2 { margin-bottom: var(--s5); }
.values-split__media {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-4);
}
.values-split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.values-split__media:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .values-split { grid-template-columns: 1fr; gap: var(--s5); }
  .values-split__media img { aspect-ratio: 4 / 3; }
}

.values { list-style: none; margin: 0; padding: 0; }
.value {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: start;
  padding: var(--s4) 0;
}
.value + .value { border-top: 1px solid var(--rule); }
.value__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--tuffeau);
  border-radius: 50%;
  background: #fff;
  color: var(--brique);
  transition: transform .6s var(--ease-out), background .3s var(--ease), color .3s var(--ease);
}
.value:hover .value__icon {
  transform: rotate(-8deg);
  background: var(--brique);
  color: #fff;
}
.value__icon svg { width: 24px; height: 24px; }
.value h3 { margin-bottom: var(--s1); font-size: 1.2rem; }
.value p { margin: 0; max-width: 46ch; color: var(--ardoise-mid); font-size: var(--t-small); }

/* ---------------------------------------------------------- étapes */

/* Frise : les numéros posés sur un même filet, qui se trace de gauche à
   droite quand la section apparaît. Pas de cartes : la suite des étapes
   suffit à les relier. */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 0;
  height: 1px;
  background: var(--tuffeau);
  transform-origin: left;
}
/* Le script pose .will-draw puis .is-drawn ; sans lui, le filet est là. */
.steps.will-draw::before { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .2s; }
.steps.will-draw.is-drawn::before { transform: none; }
.step { position: relative; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s4);
  border-radius: 50%;
  background: var(--ardoise-deep);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--chaux);
  transition: background .3s var(--ease), transform .5s var(--ease-out);
}
.step:hover .step__num { background: var(--brique); transform: scale(1.08); }
.step h3 { margin-bottom: var(--s2); font-size: 1.1rem; }
.step p { margin: 0; color: var(--ardoise-mid); font-size: var(--t-small); max-width: 32ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: var(--s4); }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .steps.will-draw::before { transform: none; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s4); }
  .step__num { grid-row: span 2; margin: 0; }
}

/* ------------------------------------------------- colonnes / texte */

.split {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.split__media { min-width: 0; }

/* Visuel d'une page de service. */
.service-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-4);
}
.service-visual img { display: block; width: 100%; height: auto; }

.checklist {
  list-style: none;
  margin: var(--s4) 0;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--t-small);
}
.checklist li:last-child { border-bottom: 0; }
.checklist svg {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 2px;
  color: var(--brique);
}

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s6); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s5); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* --------------------------------------------------- avant / après */

.ba-slider { margin: 0; }
.ba-slider__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--chaux-deep);
  box-shadow: var(--sh-4);
  touch-action: pan-y;
}
.ba-slider__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* « Avant » par-dessus, rogné à droite de la poignée. clip-path ne
   déclenche pas de recalcul de mise en page : seul le dessin change. */
.ba-slider__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px rgba(20,28,33,.35);
  pointer-events: none;
}
/* La pastille, centrée sur le filet : deux chevrons opposés. */
.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #fff;
  color: var(--brique);
  box-shadow: var(--sh-3);
  transition: transform .3s var(--ease-out);
}
.ba-slider__knob svg { width: 24px; height: 24px; }

/* La commande couvre toute l'image, invisible : on attrape l'image
   n'importe où. */
.ba-slider__range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-slider__frame:hover .ba-slider__knob,
.ba-slider__frame:has(.ba-slider__range:active) .ba-slider__knob {
  transform: scale(1.1);
}
.ba-slider__frame:has(.ba-slider__range:focus-visible) .ba-slider__knob {
  outline: 3px solid var(--brique);
  outline-offset: 3px;
}

.ba__tag {
  position: absolute;
  top: 14px;
  z-index: 1;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r);
  background: rgba(20,28,33,.82);
  color: #fff;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--before { left: 14px; }
.ba__tag--after  { right: 14px; background: var(--brique); }

.ba-slider figcaption {
  margin-top: var(--s3);
  color: var(--ardoise-mid);
  font-size: var(--t-micro);
  text-align: center;
}

/* Galerie de chantier.
   Les photos viennent de téléphones : 27 des 33 sont au format portrait.
   Une grille à hauteur fixe les recadrerait toutes en paysage et couperait
   le sujet — un pignon, une charpente. La mise en colonnes laisse chaque
   photo à ses proportions et le mur se compose tout seul. */
.gallery {
  columns: 3 300px;
  column-gap: var(--s4);
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 var(--s4);
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.gallery figure:hover { box-shadow: var(--sh-4); transform: translateY(-4px); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption {
  padding: var(--s3) var(--s4);
  font-size: var(--t-small);
  color: var(--ardoise-mid);
}

/* -------------------------------------------------------- chiffres */

.stat-row {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.25rem);
  font-weight: 650;
  font-variation-settings: "wdth" 116;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.stat + .stat { box-shadow: inset 1px 0 0 var(--rule-dark); }
@media (max-width: 760px) { .stat + .stat { box-shadow: none; } }
.stat span {
  display: block;
  margin-top: var(--s2);
  font-size: var(--t-small);
  color: #aab5bc;
}

/* ----------------------------------------------------------- zones */

.zones-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.zone-chip {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  color: var(--ardoise);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .3s var(--ease-out);
}
.zone-chip:hover {
  background: var(--brique);
  border-color: var(--brique);
  color: #fff;
  transform: translateY(-2px);
}

.region-block { margin-bottom: var(--s6); }
.region-block h3 {
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--tuffeau);
}

/* ------------------------------------------------------------- FAQ */

.faq { max-width: 78ch; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  margin-bottom: var(--s3);
  box-shadow: var(--sh-1);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.faq details:hover { border-color: var(--rule); }
.faq details[open] { box-shadow: var(--sh-3); }

/* La réponse glisse et apparaît à l'ouverture — en transform et
   opacité seulement, sans animer la hauteur. */
.faq details[open] > p { animation: rise .45s var(--ease-out) both; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chaux);
  color: var(--brique);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .4s var(--ease-out), background .3s var(--ease), color .3s var(--ease);
}
/* Le « + » pivote en « × » plutôt que d'être remplacé : le geste se voit. */
.faq details[open] summary::after { transform: rotate(135deg); background: var(--brique); color: #fff; }
.faq summary { transition: color .2s var(--ease); }
.faq summary:hover { color: var(--brique); }
.faq details[open] summary { border-bottom: 1px solid var(--rule-soft); }
.faq details p {
  padding: var(--s4);
  margin: 0;
  color: var(--ardoise-mid);
  font-size: var(--t-small);
}

/* ------------------------------------------------- bandeau d'appel */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--s7) var(--s5);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(ellipse 70% 100% at 0% 100%, rgba(20,28,33,.45), transparent 60%),
    var(--brique);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 70px -28px rgba(122,21,18,.65);
}
/* Le motif de toits du dossier d'images, en filigrane qui dérive lentement. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/pattern-roofs.svg") 0 0 / 120px;
  opacity: .07;
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 240px 120px; } }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); }
.cta-band h2::after { display: none; }
.cta-band p {
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: var(--s5);
  color: rgba(255,255,255,.9);
}
.cta-band .hero__cta { justify-content: center; }

/* ------------------------------------------- en-tête de page interne */

/* Une seule image pour tous les en-têtes de page : un fichier de 99 Ko mis
   en cache au premier chargement, plutôt qu'une photo différente par page
   qui ferait retélécharger un bandeau à chaque navigation. */
.page-hero {
  position: relative;
  padding-block: var(--s7) var(--s6);
  background: var(--ardoise-deep) url("/assets/img/header-chantier.webp") center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(20,28,33,.95) 0%, rgba(20,28,33,.86) 55%, rgba(20,28,33,.66) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: var(--s3); }
.page-hero .container > * { animation: rise .9s var(--ease-out) both; }
.page-hero .container > :nth-child(2) { animation-delay: .08s; }
.page-hero .container > :nth-child(3) { animation-delay: .16s; }
.page-hero p {
  max-width: 64ch;
  color: rgba(255,255,255,.82);
  font-size: var(--t-lede);
  margin-bottom: 0;
}

.breadcrumb {
  margin-bottom: var(--s4);
  font-size: var(--t-micro);
  color: rgba(255,255,255,.65);
}
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-current] { color: rgba(255,255,255,.65); }

/* -------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  padding: var(--s5);
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
}
.field { margin-bottom: var(--s4); }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--t-small);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
  color: var(--ardoise-deep);
  font: inherit;
  font-size: var(--t-small);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brique);
  outline: none;
  box-shadow: 0 0 0 4px rgba(122,21,18,.12);
}
.form-note {
  font-size: var(--t-micro);
  color: var(--ardoise-mid);
}

.contact-cards { display: grid; gap: var(--s3); }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  color: inherit;
  text-decoration: none;
}
a.contact-card { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s var(--ease); }
a.contact-card:hover { border-color: var(--rule); box-shadow: var(--sh-3); transform: translateY(-3px); }
.contact-card h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.contact-card p { font-size: var(--t-small); color: var(--ardoise-mid); }
.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--chaux);
  color: var(--brique);
}
.contact-card__icon svg { width: 23px; height: 23px; }

/* ---------------------------------------------------- pied de page */

.site-footer {
  border-top: 3px solid var(--brique);
  background: var(--ardoise-deep);
  color: #9fabb3;
  font-size: var(--t-small);
}
.footer-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding-block: var(--s6);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* h4 est couvert aussi : le gabarit a longtemps utilisé ce niveau, et un
   titre oublié ici hérite du gris foncé global — invisible sur ce fond. */
.site-footer h3, .site-footer h4 {
  margin-bottom: var(--s3);
  color: #fff;
  font-size: var(--t-small);
  font-variation-settings: "wdth" var(--w-narrow);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer a { color: #c3ccd2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--s3);
}
.footer-brand img { width: 46px; height: 46px; flex: none; }

.footer-brand__name {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  font-variation-settings: "wdth" var(--w-wide);
  letter-spacing: .02em;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.5rem; }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--tuffeau); }

.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s3); }
.footer-badge {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--rule-dark);
  border-radius: var(--r);
  font-size: var(--t-micro);
  font-weight: 600;
  color: #c3ccd2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s4);
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-micro);
}

/* ------------------------------------------------- bouton d'appel */

.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brique);
  color: #fff;
  box-shadow: 0 6px 20px rgba(122,21,18,.42);
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.fab-call:hover { background: var(--brique-bright); transform: scale(1.06); color: #fff; }
.fab-call svg { width: 26px; height: 26px; }

@media (min-width: 981px) { .fab-call { display: none; } }

/* ------------------------------------------- bandeau de chantiers */

.reel-section { overflow: hidden; }
.reel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.reel-head h2 { margin-bottom: 0; max-width: 20ch; }

/* Fondu sur les bords : la piste semble sortir de la page et y revenir. */
.reel {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reel__track {
  display: flex;
  gap: var(--s4);
  width: max-content;
  margin: 0;
  padding: var(--s2) 0 var(--s3);
  list-style: none;
  animation: reel 70s linear infinite;
}
.reel:hover .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(calc(-50% - var(--s4) / 2)); } }

.reel__track li {
  position: relative;
  flex: none;
  width: clamp(220px, 22vw, 300px);
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--chaux-deep);
  box-shadow: var(--sh-2);
}
.reel__track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.reel__track li:hover img { transform: scale(1.06); }

/* La légende monte du bas au survol, sur un voile d'ardoise. */
.reel__track span {
  position: absolute;
  inset: auto 0 0;
  padding: var(--s5) var(--s3) var(--s3);
  background: linear-gradient(0deg, rgba(20,28,33,.85), transparent);
  color: #fff;
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.35;
  transform: translateY(35%);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease);
}
.reel__track li:hover span { transform: none; opacity: 1; }
@media (hover: none) {
  .reel__track span { transform: none; opacity: 1; }
}

.split__cta { margin-top: var(--s4); }

/* -------------------------------------------- révélation au défilement */

/*
 * Le script pose .rv sur les blocs à révéler, puis .is-in quand ils entrent
 * à l'écran. Sans script, ou si l'utilisateur a demandé moins d'animations,
 * .rv n'est jamais posée : rien n'est masqué.
 */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--rv-i, 0) * 90ms);
}
.rv.is-in { opacity: 1; transform: none; }

/* Les cartes gardent leur propre transition de survol une fois posées. */
.card.rv.is-in, .step.rv.is-in, .gallery figure.rv.is-in {
  transition: opacity .9s var(--ease-out), transform .5s var(--ease-out),
              box-shadow .5s var(--ease-out), border-color .3s var(--ease);
  transition-delay: calc(var(--rv-i, 0) * 90ms), 0s, 0s, 0s;
}

/* Le filet sous les titres se trace à l'apparition. */
.section-head.rv h2::after { transform: scaleX(0); transition: transform 1s var(--ease-out) .35s; }
.section-head.rv.is-in h2::after { transform: scaleX(1); }

/* Photos : un léger dézoom accompagne l'apparition. */
.split__media.rv .ba-slider__frame img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.split__media.rv.is-in .ba-slider__frame img { transform: none; }

/* ------------------------------------------------------------ grain */

/* Un grain très fin sur toute la page : il casse la planéité du numérique
   et rappelle la matière — l'enduit, la pierre. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reel__track { animation: none; }
  .reel__track li[aria-hidden="true"] { display: none; }
  .hero__bg { animation: none; }
  .hdr__progress { animation: none; display: none; }
  .cta-band::before { animation: none; }
}

/* --------------------------------------------------- adaptations */

@media (max-width: 720px) {
  .cta-band { padding: var(--s5) var(--s4); }
  .hero { min-height: 0; }
  .btn-group .btn, .hero__cta .btn { flex: 1 1 auto; }
}

@media print {
  .hdr, .fab-call, .cta-band, .trust, .reel-section { display: none; }
  body::after { display: none; }
  body { color: #000; background: #fff; }
}
