/* ============================================================================
   secteurs.css — gabarit commun des seize pages secteur
   CK, 2026-11-15

   Trois exigences :
     1. le texte est centré partout (héros, cartes, galerie, FAQ) ;
     2. le collage du héros ne mange pas le texte (voile radial) ;
     3. dans la galerie, aucun visuel ne recouvre sa légende — la cause était
        l'animation « respiration3d » de assets/img3d.css, qui agrandit
        l'image .imgfx d'environ 6 % (mesuré : 874 px de large pour une
        cellule de 822) et la fait glisser sous la légende.
   ============================================================================ */

/* ---------- 1. Héros : une seule colonne centrée --------------------------- */
.hero-art .hero-in{
  grid-template-columns:minmax(0,1fr) !important;
  justify-items:center !important;
  text-align:center !important;
  gap:0 !important;
}
.hero-art .hero-in > div{
  max-width:820px !important;
  margin-inline:auto !important;
  text-align:center !important;
}
.hero-art .hero-in h1,
.hero-art .hero-in p,
.hero-art .hero-in .lead,
.hero-art .hero-in .hero-kicker,
.hero-art .hero-in .crumb{
  text-align:center !important;
  margin-inline:auto !important;
}
.hero-art .hero-cta{
  display:flex !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:12px !important;
}

/* ---------- 2. Voile : le centre protège le texte, les bords montrent
   l'illustration. Le voile linéaire du site est remplacé ici seulement. ----- */
.hero-art .hero-voile{
  background:radial-gradient(ellipse 74% 92% at 50% 50%,
    rgba(7,14,22,.975) 0%,
    rgba(7,14,22,.955) 46%,
    rgba(7,14,22,.80) 70%,
    rgba(7,14,22,.46) 88%,
    rgba(7,14,22,.28) 100%) !important;
}

/* ---------- 3. Texte centré dans tout le corps de page -------------------- */
main h2,
main h3,
main h4,
main p,
main figcaption,
main li,
main .p-note,
main .lead,
section h2,
section h3,
section p,
section figcaption{
  text-align:center !important;
}
main .lead,
main p{
  margin-inline:auto !important;
}

/* les listes se centrent comme bloc, sans écraser leur retrait interne
   (les puces absolues de .sect-list en dépendent) */
main ul,
main ol{
  margin-inline:auto !important;
  text-align:center !important;
}

/* .sect-list : la puce carrée est en position absolue à left:0 ; on garde
   le retrait à gauche ET on ajoute le même à droite pour que le texte
   centré ne vienne jamais sous la puce */
.sect-list li{
  text-align:center !important;
  padding-left:26px !important;
  padding-right:26px !important;
}

/* ---------- 4. Galerie : aucun visuel sur sa légende ---------------------
   On ne touche PAS à la grille (elle fonctionne) : on retire seulement la
   mise à l'échelle animée qui faisait déborder l'image hors de sa cellule. */
.gal figure img,
#galerie figure img{
  animation:none !important;
  transform:none !important;
  scale:none !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  display:block !important;
  object-fit:cover !important;
}
.gal figure,
#galerie figure{
  overflow:hidden !important;
}
.gal figcaption,
#galerie figcaption{
  text-align:center !important;
  width:100% !important;
  box-sizing:border-box !important;
}

/* ---------- 5. Cartes : contenu centré, comme le reste du site ------------ */
main .card{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  text-align:center !important;
}
main .card h3,
main .card p,
main .card li{
  text-align:center !important;
}

/* ---------- 6. Mobile ----------------------------------------------------- */
@media (max-width:719px){
  .hero-art .hero-in > div{max-width:100% !important}
  .hero-art .hero-in{padding-inline:18px !important}
  #galerie figcaption{max-width:100% !important}
}
