/* Habillage « chantier » (18/11/2026) : terrassier, démolition, entreprise générale, rénovation, façadier.
   Le chantier en 3 temps suit le défilement (aucune animation à l'arrivée, aucun flou). Couleur = var(--primary) du métier. */

/* note Google sous les boutons de l'accueil */
.cz-note { margin-top: 1.1rem; color: rgba(255,255,255,.88); font-size: .86rem; font-weight: 500; display: flex; align-items: center; gap: .45rem; }
.cz-note .etoiles { color: #f5b301; letter-spacing: .08em; font-size: .95rem; }

/* ---------- le chantier en 3 temps ---------- */
#chantier { padding-bottom: 0; background: #f6f5f2; }
.cz-tete { max-width: 680px; }
.cz-tete .section-desc { max-width: 560px; }
.cz-piste { position: relative; height: 330vh; margin-top: 1.2rem; }
.cz-scene {
  position: sticky; top: 64px; height: calc(100vh - 64px);
  display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.cz-cadre {
  order: 2; position: relative; justify-self: end;
  height: min(78vh, 760px); aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 18px; overflow: hidden; background: #d9d6cf;
  box-shadow: 0 30px 60px -28px rgba(20, 18, 14, .45);
  isolation: isolate;
}
.cz-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 60%; will-change: transform, clip-path;
}
.cz-img + .cz-img { clip-path: inset(0 0 0 100%); -webkit-clip-path: inset(0 0 0 100%); }
/* le bord du rideau : un trait net, pas de flou */
.cz-ligne {
  position: absolute; top: 0; bottom: 0; left: 100%; width: 3px; margin-left: -1.5px; z-index: 3;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); opacity: 0; pointer-events: none;
}
.cz-mots { position: absolute; top: 16px; left: 16px; z-index: 4; display: grid; }
.cz-mot {
  grid-area: 1 / 1; justify-self: start;
  background: rgba(17, 17, 17, .72); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem .8rem; border-radius: 999px; opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.cz-mot.actif { opacity: 1; transform: none; }
.cz-mot.actif::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: .5rem; vertical-align: 1px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.cz-barre { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 3px; background: rgba(255,255,255,.35); border-radius: 3px; z-index: 4; overflow: hidden; }
.cz-barre i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

.cz-etapes { order: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: none; }
.cz-etape { position: relative; padding-left: 1.4rem; opacity: .32; transition: opacity .4s ease; }
.cz-etape::before { content: ''; position: absolute; left: 0; top: .25rem; bottom: .25rem; width: 3px; border-radius: 3px; background: #d6d3cc; }
.cz-etape.actif { opacity: 1; }
.cz-etape.actif::before { background: var(--primary); }
.cz-n { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .35rem; }
.cz-etape h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .4rem; }
.cz-etape p { margin: 0; color: var(--muted, #555); font-size: .95rem; line-height: 1.6; max-width: 34ch; }

/* téléphone : la photo occupe l'écran, l'étape en cours s'affiche dessous, en surimpression */
@media (max-width: 860px) {
  #chantier { padding-left: 0; padding-right: 0; }
  .cz-tete { padding: 0 6%; }
  .cz-piste { height: 300vh; }
  .cz-scene { display: block; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); padding: 10px 12px 14px; }
  .cz-cadre { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 16px; justify-self: stretch; }
  .cz-cadre::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgba(10,10,10,.82), rgba(10,10,10,.45) 55%, rgba(10,10,10,0)); }
  .cz-etapes { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 5; display: grid; padding: 0 1.25rem 2.4rem; pointer-events: none; }
  .cz-etape { grid-area: 1 / 1; padding-left: 0; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
  .cz-etape::before { display: none; }
  .cz-etape.actif { opacity: 1; transform: none; }
  .cz-n { color: #fff; opacity: .85; }
  .cz-etape h3 { color: #fff; font-size: 1.3rem; }
  .cz-etape p { color: rgba(255,255,255,.88); font-size: .92rem; max-width: none; }
  .cz-barre { bottom: 18px; left: 26px; right: 26px; }
}

/* ---------- barre Appeler / Devis (téléphone) ---------- */
.cz-appel { display: none; }
@media (max-width: 768px) {
  .cz-appel {
    display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
    transform: translateY(140%); transition: transform .3s ease; pointer-events: none;
  }
  .cz-appel.visible { transform: none; pointer-events: auto; }
  .cz-appel a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; height: 50px; border-radius: 12px;
    font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
  .cz-appel .appel { background: var(--primary); color: #fff; }
  .cz-appel .devis { background: #fff; color: #111; border: 1px solid rgba(0,0,0,.12); }
  footer { padding-bottom: 84px; }
}
