/* Sections Entreprise et galeries VRD. */
/* 1) Photos des onglets Entreprise : traitement comme illustrations latérales, moins dominantes. */
.enterprise-visual--headquarters,
.enterprise-visual--office,
.enterprise-visual--qse{
  width:min(100%, clamp(320px, 62%, 760px));
  margin:1rem 0 1.35rem auto;
  border:1px solid var(--border);
  background:var(--surface);
}
.enterprise-visual--headquarters img,
.enterprise-visual--office img,
.enterprise-visual--qse img{
  width:100%;
  height:clamp(220px, 26vw, 360px);
  object-fit:cover;
  display:block;
}
.enterprise-visual--headquarters img{object-fit:contain;background:var(--bg2);height:clamp(240px, 28vw, 390px)}
.enterprise-visual--office img{object-position:center 52%}
.enterprise-visual--qse img{object-position:center 48%}
.enterprise-visual figcaption{padding:.5rem .7rem .65rem;font-size:.67rem;line-height:1.45;color:var(--muted);text-transform:uppercase;letter-spacing:.055em}

/* 2) Galerie VRD compacte inspirée du composant validé NBS, adaptée à la DA BBATI. */
.bbati-vrd-gallery{margin:1.55rem 0 0;min-width:0}
.bbati-vrd-gallery-intro{display:flex;align-items:baseline;gap:.9rem;flex-wrap:wrap;margin-bottom:1rem}
.bbati-vrd-gallery-intro h3{font-family:var(--fd);font-size:1.12rem;font-weight:700;color:var(--ink);text-transform:uppercase;letter-spacing:.035em;line-height:1.2;margin:0}
.bbati-vrd-gallery-intro p{color:var(--muted);font-size:.79rem;line-height:1.5;margin:0}
.bbati-vrd-gallery-block{margin:0 0 1.05rem;min-width:0}
.bbati-vrd-gallery-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}
.bbati-vrd-gallery-top h4{font-family:var(--fd);font-size:.83rem;letter-spacing:.075em;text-transform:uppercase;font-weight:700;color:var(--orange);line-height:1.3;margin:0}
.bbati-vrd-gallery-controls{display:flex;gap:.35rem;flex-shrink:0}
.bbati-vrd-gallery-controls button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--ink);font-size:1rem;line-height:1;transition:background .18s,color .18s,border-color .18s}
.bbati-vrd-gallery-controls button:hover:not(:disabled){border-color:var(--orange);color:var(--orange);background:var(--orange-dim)}
.bbati-vrd-gallery-controls button:focus-visible,.bbati-vrd-gallery-track:focus-visible,.bbati-vrd-gallery-item:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.bbati-vrd-gallery-controls button:disabled{opacity:.35;cursor:default}
.bbati-vrd-gallery-track{display:flex;gap:.7rem;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--orange) var(--bg3);padding:0 0 .65rem;overscroll-behavior-x:contain;min-width:0}
.bbati-vrd-gallery-track::-webkit-scrollbar{height:8px}
.bbati-vrd-gallery-track::-webkit-scrollbar-track{background:var(--bg3);border-radius:999px}
.bbati-vrd-gallery-track::-webkit-scrollbar-thumb{background:var(--orange);border-radius:999px}
.bbati-vrd-gallery-item{display:block;position:relative;flex:0 0 clamp(168px,28%,240px);aspect-ratio:1.55;overflow:hidden;border-radius:5px;background:var(--bg3);border:1px solid var(--border);scroll-snap-align:start;text-decoration:none}
.bbati-vrd-gallery-item img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .28s var(--ease-out)}
.bbati-vrd-gallery-item:hover img{transform:scale(1.035)}
.bbati-vrd-gallery-item::after{content:'↗';position:absolute;right:7px;bottom:7px;width:25px;height:25px;display:grid;place-items:center;background:rgba(25,31,24,.75);color:#fff;font-size:.9rem;border-radius:2px;opacity:0;transition:opacity .2s;pointer-events:none}
.bbati-vrd-gallery-item:hover::after,.bbati-vrd-gallery-item:focus-visible::after{opacity:1}

@media(max-width:1100px){
  .enterprise-visual--headquarters,
  .enterprise-visual--office,
  .enterprise-visual--qse{width:min(100%, 720px)}
}
@media(max-width:900px){.bbati-vrd-gallery-item{flex-basis:39%}}
@media(max-width:720px){
  .enterprise-visual--headquarters,
  .enterprise-visual--office,
  .enterprise-visual--qse{width:100%;margin:1rem 0 1.25rem}
  .enterprise-visual--headquarters img,
  .enterprise-visual--office img,
  .enterprise-visual--qse img{height:auto;aspect-ratio:16/9}
}
@media(max-width:600px){.bbati-vrd-gallery{margin-top:1rem}.bbati-vrd-gallery-item{flex-basis:min(68%,225px)}.bbati-vrd-gallery-controls button{width:40px;height:40px}.bbati-vrd-gallery-intro{gap:.35rem}.bbati-vrd-gallery-intro h3{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.bbati-vrd-gallery-track{scroll-behavior:auto}.bbati-vrd-gallery-item img,.bbati-vrd-gallery-controls button{transition:none}}

#nous-edito .enterprise-intro,
#nous-bureau .enterprise-intro,
#nous-qse .enterprise-intro{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,35%);
  align-items:center;
  gap:clamp(1.3rem,2.8vw,3rem);
  margin:0 0 1.6rem;
  min-width:0;
}
#nous-edito .enterprise-intro-copy,
#nous-bureau .enterprise-intro-copy,
#nous-qse .enterprise-intro-copy{min-width:0}
#nous-edito .enterprise-intro-copy>h2:first-child,
#nous-bureau .enterprise-intro-copy>h2:first-child,
#nous-qse .enterprise-intro-copy>h2:first-child{margin-top:0}
#nous-edito .enterprise-intro .enterprise-visual,
#nous-bureau .enterprise-intro .enterprise-visual,
#nous-qse .enterprise-intro .enterprise-visual{
  margin:0;
  width:100%;
  min-width:0;
  max-width:none;
  align-self:center;
}
#nous-edito .enterprise-intro .enterprise-visual img,
#nous-bureau .enterprise-intro .enterprise-visual img,
#nous-qse .enterprise-intro .enterprise-visual img{
  display:block;
  width:100%;
  height:auto;
  max-height:310px;
  aspect-ratio:16/10;
  object-fit:cover;
}
#nous-edito .enterprise-intro .enterprise-visual img{object-fit:contain;background:var(--bg2)}
#nous-bureau .enterprise-intro .enterprise-visual img{object-position:center center}
#nous-qse .enterprise-intro .enterprise-visual img{object-position:center center}
#nous-edito .enterprise-intro-copy .feat-block{margin:1rem 0 0}
#nous-bureau .enterprise-intro-copy .icon-grid{
  margin:1.1rem 0 0;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#nous-bureau .enterprise-intro-copy .icon-cell{min-width:0}
#nous-qse .enterprise-intro-copy .qse-action{margin:1rem 0 0;padding:1rem}
#nous-qse .enterprise-intro-copy .qse-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#nous-qse .enterprise-intro-copy .qse-action-grid li{min-height:0;padding:.95rem}
#nous-qse .enterprise-intro-copy .qse-action-grid li h4{margin:.45rem 0 .25rem}
#nous-qse .enterprise-intro-copy .qse-action>p{margin-bottom:.9rem}
/* L’onglet Savoir-faire doit rester compact : photo fixe, défilement horizontal et commandes explicites. */
#sf-vrd .bbati-vrd-gallery--services{margin:1.3rem 0 1.5rem;min-width:0}
#sf-vrd .bbati-vrd-gallery--services .bbati-vrd-gallery-intro{margin-bottom:.8rem}
#sf-vrd .bbati-vrd-gallery--services .bbati-vrd-gallery-block{margin-bottom:.85rem}
#sf-vrd .bbati-vrd-gallery--services .bbati-vrd-gallery-item{flex-basis:clamp(160px,23%,210px)}
#sf-vrd .bbati-vrd-gallery--services .bbati-vrd-gallery-item img{object-fit:cover}
@media(max-width:1320px){
  #nous-edito .enterprise-intro,
  #nous-bureau .enterprise-intro,
  #nous-qse .enterprise-intro{grid-template-columns:minmax(0,1fr) minmax(230px,34%);gap:1.35rem}
  #nous-bureau .enterprise-intro-copy .icon-grid{gap:.45rem}
  #nous-qse .enterprise-intro-copy .qse-action-grid li{padding:.75rem}
}
@media(max-width:1100px){
  #nous-edito .enterprise-intro,
  #nous-bureau .enterprise-intro,
  #nous-qse .enterprise-intro{grid-template-columns:minmax(0,1fr) minmax(240px,38%)}
}
@media(max-width:800px){
  #nous-edito .enterprise-intro,
  #nous-bureau .enterprise-intro,
  #nous-qse .enterprise-intro{grid-template-columns:minmax(0,1fr);gap:1.1rem}
  #nous-edito .enterprise-intro .enterprise-visual,
  #nous-bureau .enterprise-intro .enterprise-visual,
  #nous-qse .enterprise-intro .enterprise-visual{width:min(100%,520px);justify-self:start}
  #nous-bureau .enterprise-intro-copy .icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
  #nous-edito .enterprise-intro .enterprise-visual,
  #nous-bureau .enterprise-intro .enterprise-visual,
  #nous-qse .enterprise-intro .enterprise-visual{width:100%}
  #nous-edito .enterprise-intro .enterprise-visual img,
  #nous-bureau .enterprise-intro .enterprise-visual img,
  #nous-qse .enterprise-intro .enterprise-visual img{max-height:240px}
  #nous-bureau .enterprise-intro-copy .icon-grid{grid-template-columns:1fr}
  #nous-qse .enterprise-intro-copy .qse-action-grid{grid-template-columns:1fr}
  #sf-vrd .bbati-vrd-gallery--services .bbati-vrd-gallery-item{flex-basis:min(72%,220px)}
}
