/* Kock paysagiste — feuille de style unique
   DM Serif Display (titres) · Inter (texte) */

@font-face {
  font-family: 'DM Serif Display';
  src: url('polices/dmserif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('polices/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nuit: #101a14;          /* vert très sombre, presque noir */
  --foret: #1d3527;
  --mousse: #4a7a5c;
  --sauge: #8fae9b;
  --sable: #c9a227;         /* accent chaud, terre cuite dorée */
  --creme: #f6f4ee;
  --blanc: #fdfdfb;
  --encre: #16201a;
  --encre-doux: #5c6a61;
  --ligne: #e0ddd3;

  --largeur: 1280px;
  --gouttiere: clamp(20px, 5vw, 60px);
  --titre: 'DM Serif Display', Georgia, serif;
  --texte: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --entete-h: 80px;
  --courbe: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--entete-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.7;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 7.2vw, 5.6rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.75rem, 4.4vw, 3.4rem); overflow-wrap: break-word; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.2em; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.oeil {
  display: inline-block;
  margin-bottom: 18px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sable);
}

.chapo {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--encre-doux);
}

/* ═══════════════════════════════════════════════ En-tête */

.site-entete {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .35s var(--courbe), box-shadow .35s var(--courbe);
}

.site-entete.defilee {
  background: var(--blanc);
  box-shadow: 0 1px 0 var(--ligne);
}

.entete-rangee {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--entete-h);
}

.marque {
  display: flex;
  flex-direction: column;
  font-family: var(--titre);
  font-size: 1.4rem;
  line-height: 1.05;
  text-decoration: none;
  color: var(--blanc);
  white-space: nowrap;
  transition: color .35s var(--courbe);
}

.marque small {
  font-family: var(--texte);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .75;
}

.site-entete.defilee .marque { color: var(--encre); }

/* En bureau, la nav occupe le reste de la barre : liens poussés à droite,
   puis le bouton téléphone collé au bord. Sans ce flex, <nav> reste un bloc
   et le bouton se superpose aux liens. */
.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.site-nav .nav-liste { margin-left: auto; }
.site-nav .tel-entete { flex-shrink: 0; }

.nav-liste {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-liste a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  transition: color .3s var(--courbe);
}

.site-entete.defilee .nav-liste a { color: var(--encre-doux); }

.nav-liste a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--sable);
  transition: width .3s var(--courbe);
  content: '';
}

.nav-liste a:hover { color: var(--blanc); }
.site-entete.defilee .nav-liste a:hover { color: var(--encre); }
.nav-liste a:hover::after { width: 100%; }

.tel-entete {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  min-height: 44px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nuit);
  background: var(--sable);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .25s var(--courbe), box-shadow .25s var(--courbe);
}

.tel-entete:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(201, 162, 39, .35);
}

/* bouton menu */
.nav-bouton {
  position: relative;
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  cursor: pointer;
}

.site-entete.defilee .nav-bouton { border-color: var(--ligne); }

.nav-bouton span,
.nav-bouton span::before,
.nav-bouton span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.6px;
  margin-left: -9px;
  background: var(--blanc);
  transition: transform .3s var(--courbe), background .3s;
  content: '';
}

.site-entete.defilee .nav-bouton span,
.site-entete.defilee .nav-bouton span::before,
.site-entete.defilee .nav-bouton span::after { background: var(--encre); }

.nav-bouton span { top: 50%; margin-top: -.8px; }
.nav-bouton span::before { left: 0; margin-left: 0; transform: translateY(-6px); }
.nav-bouton span::after  { left: 0; margin-left: 0; transform: translateY(6px); }

.nav-bouton[aria-expanded='true'] span { background: transparent; }
.nav-bouton[aria-expanded='true'] span::before { transform: rotate(45deg); background: var(--encre); }
.nav-bouton[aria-expanded='true'] span::after  { transform: rotate(-45deg); background: var(--encre); }

@media (max-width: 940px) {
  .nav-bouton { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--entete-h) 0 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--gouttiere);
    background: var(--blanc);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--courbe), transform .3s var(--courbe), visibility .3s;
  }

  .site-nav.ouvert { opacity: 1; visibility: visible; transform: none; }

  /* même spécificité que `.site-nav .nav-liste` plus haut, sinon le
     margin-left:auto du bureau resterait actif et décalerait le menu */
  .site-nav .nav-liste {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    width: 100%;
  }
  .nav-liste li { width: 100%; border-bottom: 1px solid var(--ligne); }
  .nav-liste li:first-child { border-top: 1px solid var(--ligne); }

  .nav-liste a {
    display: block;
    padding: 20px 0;
    font-family: var(--titre);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 400;
    color: var(--encre);
  }

  .nav-liste a::after { display: none; }
  .site-nav .tel-entete { margin-top: 34px; align-self: flex-start; }
}

/* ═══════════════════════════════════════════════ Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: var(--entete-h);
  overflow: hidden;
  background: var(--nuit);
}

/* Zoom d'entrée par TRANSITION, pas par animation : une animation CSS en cours
   l'emporte sur le style inline, et écraserait la parallaxe pilotée en JS. */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.1);
  transition: transform 2s var(--courbe);
  will-change: transform;
}

.hero.pret .hero-image { transform: scale(1.06); }

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(16, 26, 20, .72) 0%,
              rgba(16, 26, 20, .30) 40%,
              rgba(16, 26, 20, .88) 100%);
  content: '';
}

.hero-contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(56px, 8vw, 100px);
  color: var(--blanc);
}

.hero h1 { color: var(--blanc); max-width: 16ch; margin-bottom: .3em; }

.hero-chapo {
  max-width: 46ch;
  margin-bottom: 2em;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: rgba(255, 255, 255, .84);
}

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

/* bande de repères sous le hero */
.reperes {
  display: grid;
  /* 140px : deux colonnes dès le mobile, sinon les quatre repères s'empilent
     et allongent le hero d'un écran entier */
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 26px 20px;
  margin-top: clamp(36px, 5vw, 68px);
  padding-top: clamp(26px, 3.5vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.repere strong {
  display: block;
  font-family: var(--titre);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--sable);
}

.repere span {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  color: rgba(255, 255, 255, .7);
}

/* ═══════════════════════════════════════════════ Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  min-height: 48px;
  font-family: var(--texte);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--courbe), background .25s var(--courbe),
              color .25s var(--courbe), box-shadow .25s var(--courbe);
}

.bouton--or { color: var(--nuit); background: var(--sable); }
.bouton--or:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,39,.36); }

.bouton--fantome { color: var(--blanc); border-color: rgba(255,255,255,.45); }
.bouton--fantome:hover { color: var(--nuit); background: var(--blanc); border-color: var(--blanc); }

.bouton--sombre { color: var(--blanc); background: var(--foret); }
.bouton--sombre:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29,53,39,.3); }

/* ═══════════════════════════════════════════════ Sections */

.section { padding: clamp(76px, 10vw, 140px) 0; }
.section--creme { background: var(--creme); }
.section--nuit { background: var(--nuit); color: rgba(255,255,255,.78); }
.section--nuit h2, .section--nuit h3 { color: var(--blanc); }
.section--nuit .chapo { color: rgba(255,255,255,.7); }

.entete-section { max-width: 62ch; margin-bottom: clamp(44px, 5vw, 68px); }

/* ---- services ---- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
}

.service {
  position: relative;
  padding: clamp(30px, 3.2vw, 42px);
  background: var(--blanc);
  transition: background .3s var(--courbe);
}

.section--creme .service { background: var(--creme); }
.service:hover { background: var(--creme); }
.section--creme .service:hover { background: var(--blanc); }

.service-num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--titre);
  font-size: .95rem;
  color: var(--sable);
}

.service h3 { margin-bottom: .45em; }
.service p { margin: 0; font-size: .96rem; color: var(--encre-doux); }

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

.chantiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 4vw, 52px);
}

.chantier-titre {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.chantier-titre h3 { margin: 0; }

.chantier-lieu {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sable);
}

/* Bascule avant/après en fondu.
   Un comparateur à volet coulissant supposerait deux prises de vue au même
   cadrage : ce n'est pas le cas ici (angles et distances différents), le
   raccord serait faux. Le fondu compare honnêtement deux photos distinctes. */
.bascule {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--foret);
}

.bascule img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s var(--courbe);
}

.bascule img[data-etat='cache'] { opacity: 0; }

.bascule-choix {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgba(16, 26, 20, .68);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.bascule-choix button {
  padding: 13px 22px;
  min-height: 44px;
  font-family: var(--texte);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s var(--courbe), background .25s var(--courbe);
}

.bascule-choix button:hover { color: var(--blanc); }

.bascule-choix button[aria-pressed='true'] {
  color: var(--nuit);
  background: var(--blanc);
}

/* ---- expertise ---- */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.duo-image { overflow: hidden; border-radius: 4px; }
.duo-image img { width: 100%; transition: transform 1.2s var(--courbe); }
.duo-image:hover img { transform: scale(1.04); }

.liste-traits { margin: 0 0 1.5em; padding: 0; list-style: none; }

.liste-traits li {
  position: relative;
  margin-bottom: .8em;
  padding-left: 30px;
}

.liste-traits li::before {
  position: absolute;
  left: 0;
  top: .68em;
  width: 16px;
  height: 1px;
  background: var(--sable);
  content: '';
}

/* ---- témoignages ---- */

.avis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(24px, 3vw, 36px);
}

/* figure et blockquote portent 40px de marge par defaut dans les navigateurs :
   sans cette remise a zero, le texte se retrouve comprime dans une colonne
   deux fois trop etroite. */
.avis-carte,
.avis-carte blockquote {
  margin: 0;
}

.avis-carte {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
}

.avis-carte blockquote { flex: 1; }
.avis-carte p { font-size: .98rem; }

.avis-nom {
  margin: 0;
  font-family: var(--titre);
  font-size: 1.05rem;
  color: var(--blanc);
}

.etoiles { margin-bottom: 18px; color: var(--sable); letter-spacing: .18em; font-size: .9rem; }

/* ---- engagements ---- */

.engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(28px, 3vw, 44px);
  margin-top: clamp(40px, 5vw, 64px);
}

.engagement h3 {
  padding-top: 18px;
  border-top: 1px solid var(--ligne);
  font-size: 1.15rem;
}

.section--nuit .engagement h3 { border-top-color: rgba(255,255,255,.2); }
.engagement p { margin: 0; font-size: .95rem; color: var(--encre-doux); }
.section--nuit .engagement p { color: rgba(255,255,255,.65); }

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

.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}

@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

.champ { margin-bottom: 20px; }

.champ label {
  display: block;
  margin-bottom: 7px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--encre-doux);
}

/* 16px minimum : en dessous, Safari iOS zoome au focus et ne dézoome jamais */
.champ input,
.champ textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 4px;
  transition: border-color .25s var(--courbe);
}

.champ input:focus,
.champ textarea:focus { outline: none; border-color: var(--mousse); }
.champ textarea { min-height: 140px; resize: vertical; }

.coordonnees { margin: 0; }

.coordonnees dt {
  margin-top: 26px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sable);
}

.coordonnees dt:first-child { margin-top: 0; }

.coordonnees dd {
  margin: 6px 0 0;
  font-family: var(--titre);
  font-size: 1.5rem;
}

.coordonnees dd a { text-decoration: none; }
.coordonnees dd.simple { font-family: var(--texte); font-size: 1rem; }

.message {
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid var(--ligne);
  border-left-width: 3px;
  border-radius: 4px;
}

.message--ok    { border-left-color: var(--mousse); background: #f1f6f2; }
.message--souci { border-left-color: #b06a6a; background: #fbf2f2; }

/* ═══════════════════════════════════════════════ Pied de page */

.site-pied {
  padding: clamp(56px, 7vw, 88px) 0 40px;
  background: var(--nuit);
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
}

.site-pied a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-pied a:hover { color: var(--blanc); }

.pied-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.pied-marque {
  font-family: var(--titre);
  font-size: 1.5rem;
  color: var(--blanc);
  margin: 0 0 10px;
}

.pied-titre {
  margin: 0 0 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sable);
}

.pied-liste { margin: 0; padding: 0; list-style: none; }
.pied-liste li { margin-bottom: 9px; }

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .84rem;
  color: rgba(255, 255, 255, .42);
}

/* ═══════════════════════════════════════════════ Apparition */

.apparait {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--courbe), transform .75s var(--courbe);
}

.apparait.vue { opacity: 1; transform: none; }

/* sans JavaScript, rien ne doit rester invisible */
.no-js .apparait { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image { animation: none; }
  .apparait { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════ Bouton d'appel flottant */

.appel-flottant {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px 15px 20px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nuit);
  background: var(--sable);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(16, 26, 20, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.94);
  transition: opacity .45s var(--courbe), transform .45s var(--courbe),
              visibility .45s, box-shadow .3s var(--courbe);
}

.appel-flottant.visible { opacity: 1; visibility: visible; transform: none; }

.appel-flottant:hover {
  box-shadow: 0 16px 40px rgba(201, 162, 39, .45);
  transform: translateY(-3px);
}

.appel-flottant svg { width: 19px; height: 19px; flex-shrink: 0; }

/* halo qui pulse doucement pour attirer l'œil sans agresser */
.appel-flottant::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sable);
  animation: pulse 2.8s ease-out infinite;
  content: '';
  z-index: -1;
}

@keyframes pulse {
  0%   { transform: scale(1);    opacity: .55; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

@media (max-width: 560px) {
  .appel-flottant {
    left: clamp(16px, 4vw, 32px);
    right: clamp(16px, 4vw, 32px);
    justify-content: center;
    padding: 17px 24px;
  }
}

/* ═══════════════════════════════════════════════ Formes flottantes */

.forme {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: .5;
}

.forme--1 {
  width: 42vw; max-width: 520px; aspect-ratio: 1;
  top: -10%; right: -8%;
  background: radial-gradient(circle, rgba(201,162,39,.5), transparent 70%);
  animation: flotte-a 19s ease-in-out infinite;
}

.forme--2 {
  width: 34vw; max-width: 420px; aspect-ratio: 1;
  bottom: -12%; left: -10%;
  background: radial-gradient(circle, rgba(74,122,92,.55), transparent 70%);
  animation: flotte-b 23s ease-in-out infinite;
}

@keyframes flotte-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-34px, 30px) scale(1.07); }
  66%      { transform: translate(22px, -26px) scale(.95); }
}

@keyframes flotte-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(38px, -34px) scale(1.09); }
}

.section, .site-pied { position: relative; overflow: hidden; }
.section > .conteneur { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════ Révélation du titre */

.ligne-masque { display: block; overflow: hidden; }

.ligne-masque > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--courbe);
}

.pret .ligne-masque > span { transform: none; }
.pret .ligne-masque:nth-child(2) > span { transition-delay: .11s; }
.pret .ligne-masque:nth-child(3) > span { transition-delay: .22s; }

/* le reste du hero suit le titre */
.hero-suite {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--courbe) .38s, transform .9s var(--courbe) .38s;
}

.pret .hero-suite { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════ Lévitation */

.service {
  transition: background .3s var(--courbe), transform .45s var(--courbe),
              box-shadow .45s var(--courbe);
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16, 26, 20, .1);
  z-index: 2;
}

.avis-carte {
  transition: transform .45s var(--courbe), background .45s var(--courbe),
              border-color .45s var(--courbe);
}

.avis-carte:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(201, 162, 39, .4);
}

.chantier .bascule {
  transition: transform .5s var(--courbe), box-shadow .5s var(--courbe);
}

.chantier:hover .bascule {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(16, 26, 20, .18);
}

/* ═══════════════════════════════════════════════ Repères animés */

.repere strong { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════ Barre de progression */

.progression {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--sable);
  will-change: transform;
}

/* ═══════════════════════════════════════════════ Indice de défilement */

.indice-defilement {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: apparait-doux 1.2s var(--courbe) 1.1s backwards;
}

.indice-defilement::after {
  width: 3px;
  height: 7px;
  background: var(--blanc);
  border-radius: 999px;
  animation: descend 1.9s ease-in-out infinite;
  content: '';
}

@keyframes descend {
  0%, 100% { transform: translateY(-5px); opacity: 0; }
  40%      { transform: translateY(0);    opacity: 1; }
  80%      { transform: translateY(6px);  opacity: 0; }
}

@keyframes apparait-doux { from { opacity: 0; } to { opacity: 1; } }

@media (max-height: 700px) { .indice-defilement { display: none; } }

/* ═══════════════════════════════════════════════ Sobriété si demandée */

@media (prefers-reduced-motion: reduce) {
  .forme { animation: none; }
  .appel-flottant::before { animation: none; }
  .indice-defilement::after { animation: none; }
  .ligne-masque > span { transform: none; }
  .hero-suite { opacity: 1; transform: none; }
  .service:hover, .avis-carte:hover, .chantier:hover .bascule { transform: none; }
}
