/* BOS LIGHT — final module shell.
   Design and font stylesheets are linked directly by modules/light/index.html.
   This file only contains authoritative module structure rules. */

html,body,body *,button,input,select,textarea{
  font-family:"Instrument Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

html,body{
  min-height:0!important;
  height:auto!important;
  overflow-x:hidden!important;
}

body>.app-shell{
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}

/*
  Les bulles Applications gardent strictement la même largeur ouvertes ou fermées.
  Le contenu interne ne peut plus imposer une largeur intrinsèque différente.
  IMPORTANT : ne jamais forcer display ici, car les fiches techniques utilisent
  la même coque <details> et doivent rester pilotées par les onglets.
*/
html.bos-light-split-embed details.controls-card.collapsible-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html.bos-light-split-embed details.controls-card.collapsible-card > summary.collapsible-heading{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  cursor:pointer!important;
}
html.bos-light-split-embed details.controls-card.collapsible-card > *{
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

/*
  Séparation autoritaire des deux onglets.
  APPLICATIONS = uniquement 01–04.
  FICHES TECHNIQUES = uniquement les trois wrappers techniques.
*/
html.bos-light-split-embed.bos-light-section-applications #bosTechThreePointDetails,
html.bos-light-split-embed.bos-light-section-applications #bosTechShadowDetails,
html.bos-light-split-embed.bos-light-section-applications #bosTechFalloffDetails{
  display:none!important;
}
html.bos-light-split-embed.bos-light-section-technical #cameraDetails,
html.bos-light-split-embed.bos-light-section-technical #lightDetails,
html.bos-light-split-embed.bos-light-section-technical #fillDetails,
html.bos-light-split-embed.bos-light-section-technical #gelDetails{
  display:none!important;
}

/* Titres de bulles : blanc pur en mode DARK, sous-titres inchangés. */
html[data-theme="dark"].bos-light-split-embed .card-heading h2,
html[data-theme="dark"].bos-light-split-embed .heading-copy h2,
html[data-theme="dark"].bos-light-split-embed .bft-title strong,
html.bos-light-split-embed body.dark .card-heading h2,
html.bos-light-split-embed body.dark .heading-copy h2,
html.bos-light-split-embed body.dark .bft-title strong{
  color:#FFFFFF!important;
}

#cameraDetails{margin-top:0!important}

/* The projector chooser is positioned relative to the visible parent viewport
   by light-dialog-position.js. */
.add-dialog[open]{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  margin:0!important;
  transform:translateX(-50%)!important;
}

/*
  Chemins portables : ces règles sont chargées après light-bubbles.css.
  Elles remplacent les anciennes URL absolues /BOS-LIGHT/... et restent
  valides aussi bien sous GitHub Pages que sur un domaine personnalisé.
*/
html.bos-light-split-embed.bos-light-section-applications #cameraDetails > summary.collapsible-heading::before{
  background-image:url("../assets/thumb-camera.webp?v=20261012-1")!important;
}
html.bos-light-split-embed.bos-light-section-applications #lightDetails > summary.collapsible-heading::before{
  background-image:url("../assets/thumb-key.webp?v=20261012-1")!important;
}
html.bos-light-split-embed.bos-light-section-applications #fillDetails > summary.collapsible-heading::before{
  background-image:url("../assets/thumb-fill.webp?v=20261012-1")!important;
}
html.bos-light-split-embed.bos-light-section-applications #gelDetails > summary.collapsible-heading::before{
  background-image:url("../assets/thumb-gels.webp?v=20261012-1")!important;
}

html.bos-light-split-embed.bos-light-section-technical #bosThreePointPanel .bft-head::after{
  background-image:url("../assets/thumb-tech-3points.webp?v=20261012-3")!important;
}
html.bos-light-split-embed.bos-light-section-technical #bosShadowHardnessPanel .bft-head::after{
  background-image:url("../assets/thumb-tech-shadow.webp?v=20261012-3")!important;
}
html.bos-light-split-embed.bos-light-section-technical #bosMiniPlateau .bft-head::after{
  background-image:url("../assets/thumb-tech-falloff.webp?v=20261012-3")!important;
}
