/* page-fiche-chantier-canonique.css
   Extrait le 29/08/2026 de page-peinture-salon-targon.css (nom trompeur :
   ce fichier contenait deja les composants "fiche chantier" partages par
   2 pages -- laboratoire Merignac et Targon -- sous un nom qui ne
   correspondait qu'a l'une des deux). Contient uniquement les classes de
   composants reutilisables (non scopees a .page-targon) : carte chantier
   principale + grille secondaire (galerie), bandeau temoignage/protection.
   Les regles propres a Targon (fond hero, couleurs, sections sable) restent
   dans page-peinture-salon-targon.css.
   ========================================================================== */

/* Section englobante ".chantier" : regle ajoutee ici le 30/08 (non scopee,
   contrairement aux copies scopees .page-chantier/.page-targon qui vivent
   encore dans page-chantier-pages.css et page-peinture-salon-targon.css).
   Ce fichier est charge par les 8 pages qui utilisent chantier-card-main,
   y compris bordeaux/pessac/arcachon/bordeaux-grand-parc qui ne chargent
   aucun des deux fichiers scopes et n'avaient donc jamais recu cette
   contrainte de largeur : bug signale par Jean le 30/08 (carte chantier
   principale etiree sur toute la largeur du viewport, s-label et h2 non
   centres). */
.chantier {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.chantier > .s-label,
.protection-text .s-label {
  justify-content: center;
}

.chantier > h2 {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.chantier-card-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg-alt);
  box-shadow: var(--shadow-md);
}

.chantier-card-main .chantier-img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  aspect-ratio: auto;
  object-fit: cover;
}

.chantier-card-main .chantier-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.7rem, 4vw, 3.5rem);
}

.chantier-card-main h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.chantier-card-main p {
  color: var(--c-text);
  line-height: 1.8;
}

.chantier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.chantier-mini {
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg-alt);
  box-shadow: var(--shadow-sm);
}

.chantier-mini img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.chantier-mini-body {
  padding: 1.25rem;
}

.chantier-mini-body h4,
.chantier-mini-body h3 {
  margin-bottom: 0.45rem;
  color: var(--c-dark);
  font-family: var(--ff-display);
  font-size: 1.35rem;
}

.chantier-mini-body p {
  margin: 0;
  color: var(--c-text);
}

.protection-band {
  background: var(--c-dark);
  color: #fff;
}

.protection-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.protection-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.protection-text h2 {
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.protection-text p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.protection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.protection-list li {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 860px) {
  .chantier-card-main,
  .protection-inner {
    grid-template-columns: 1fr;
  }

  .chantier-card-main .chantier-img {
    min-height: 340px;
  }

  .chantier-grid,
  .protection-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .chantier-card-main .chantier-img {
    min-height: 280px;
  }
}
