/* ===== Section chantier – Celio Rénovation =====
   Changez les couleurs ici pour les accorder à votre site. */
.chantier {
  --encre: #1d2327;
  --fond: #eceff0;
  --accent: #2f6f8f;
  --gris: #5b666c;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
.chantier h2, .chantier h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0; }
.chantier h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.chantier__intro { max-width: 60ch; margin-bottom: 40px; }
.chantier__intro p { color: var(--gris); font-size: 1.1rem; margin: 12px 0 0; }

/* Frise des étapes */
.chantier__etapes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: etape;
}
.etape { counter-increment: etape; }
.etape h3 { font-size: 1.15rem; margin: 14px 0 4px; }
.etape h3::before { content: counter(etape) ". "; color: var(--accent); }
.etape p { margin: 0; color: var(--gris); font-size: .95rem; }

.etape__photo {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--fond);
}
.etape__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.etape__photo--haut img { object-position: 50% 15%; }
.etape__photo:hover img { transform: scale(1.04); }
.etape__photo:focus-visible, .lightbox__fermer:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Résultat : la vidéo est l'élément fort */
.chantier__resultat {
  margin-top: 56px; padding: 32px;
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr minmax(220px, 300px);
  background: var(--encre); color: #fff; border-radius: 6px;
}
.chantier__resultat h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.chantier__texte p { color: #c9d1d5; font-size: 1.1rem; max-width: 40ch; margin: 12px 0 0; }
.chantier__video { width: 100%; max-height: 70vh; aspect-ratio: 478 / 850; background: #000; border-radius: 4px; justify-self: center; }

/* Agrandissement des photos */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(0, 0, 0, .88); padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 4px; }
.lightbox__fermer { position: absolute; top: 12px; right: 18px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

@media (max-width: 720px) {
  .chantier { padding: 40px 16px; }
  .chantier__resultat { grid-template-columns: 1fr; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .etape__photo img { transition: none; } }
