/* nuit-ss-p1 — affichage commun 10 langues (formulaires, césure, RDV) */
html{overflow-x:clip}
body{overflow-x:hidden;max-width:100%}
img,svg,video,canvas{max-width:100%;height:auto}

/* Césure DE / JA / ZH / longs libellés */
:lang(de) h1,:lang(de) h2,:lang(de) h3,:lang(de) .btn,:lang(de) .nav a,
:lang(de) label,:lang(de) .cbsx-h,:lang(de) .s10-devis__title{
  hyphens:auto;
  -webkit-hyphens:auto;
  overflow-wrap:anywhere;
  word-break:normal;
}
:lang(ja) h1,:lang(ja) h2,:lang(ja) h3,:lang(ja) p,:lang(ja) label,:lang(ja) .btn,
:lang(ja) .nav a,:lang(ja) .cbsx-h,:lang(ja) .cbsx-l,:lang(ja) .cbsx-r,
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3,:lang(zh) p,:lang(zh) label,:lang(zh) .btn,
:lang(zh) .nav a,:lang(zh) .cbsx-h,:lang(zh) .cbsx-l,:lang(zh) .cbsx-r{
  line-break:strict;
  word-break:keep-all;
  overflow-wrap:anywhere;
}

/* Boutons : une ligne si possible, sinon wrap propre */
.btn,.btn-primary,a.btn,button.btn{
  white-space:normal;
  text-wrap:balance;
  max-width:100%;
  line-height:1.25;
}
a.cbs-bc-rdv,a.btn-rdv-page,a.s10-devis__btn-rdv{
  white-space:nowrap;
  margin-top:18px !important;
  display:inline-flex !important;
}

/* Formulaire devis/contact : champs alignés, même hauteur */
.qform .form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 18px;
  align-items:start;
}
.qform .form-grid .field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:0;
  min-width:0;
}
.qform .form-grid .field.full{grid-column:1 / -1}
.qform .form-grid label{
  min-height:2.6em;
  display:flex;
  align-items:flex-end;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.qform .form-grid input[type=text],
.qform .form-grid input[type=email],
.qform .form-grid input[type=tel],
.qform .form-grid input[type=number],
.qform .form-grid select{
  height:44px;
  min-height:44px;
  box-sizing:border-box;
  width:100%;
}
.qform .form-grid textarea{
  min-height:110px;
  width:100%;
  box-sizing:border-box;
}
.qform .btn,.qform button[type=submit]{
  margin-top:8px;
}
/* Eviter grand vide sous le bloc contact */
.cgrid,.devis-grid,.cbs-bc-section .cbs-bc-wrap{
  align-items:start;
}
.panel#devis, .panel[id=devis]{
  margin:0 !important;
  padding:clamp(18px,2.5vw,28px) !important;
}
.panel#devis .compose-sac{
  margin:0 0 14px;
}
/* Page contact : hero et grille plus serrés */
body:has(#devis) .phead{
  padding-top:clamp(20px,3vw,36px);
  padding-bottom:0;
}
body:has(#devis) .cgrid{
  margin-top:20px;
  margin-bottom:28px;
  gap:clamp(18px,2.5vw,32px);
}
body:has(#devis) aside.box{
  padding:22px;
}
body:has(#devis) a.cbs-bc-rdv,
body:has(#devis) aside.box a.btn-rdv,
body:has(#devis) aside.box a.cbs-bc-rdv{
  margin-top:18px !important;
}
@media (max-width:700px){
  .qform .form-grid{grid-template-columns:1fr}
  .qform .form-grid label{min-height:0}
  a.cbs-bc-rdv,a.btn-rdv-page,a.s10-devis__btn-rdv{
    white-space:normal;
    text-align:center;
  }
}

/* Usages : colonnes ne débordent pas */
.cbsx-l,.cbsx-r,.cbsx-h,.cbsx-lead,.cbsx-ask,.cbsx-see{
  overflow-wrap:anywhere;
  max-width:100%;
}
.cbsx-rows{min-width:0}
