/**
 * Compatibilité Bootstrap 3 → Bootstrap 5
 * Alias pour classes supprimées ou renommées
 */

/* col-xs-* → col-* (Bootstrap 5 utilise col pour le plus petit breakpoint) */
.col-xs-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-xs-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-xs-3 { flex: 0 0 auto; width: 25%; }
.col-xs-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-xs-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-xs-6 { flex: 0 0 auto; width: 50%; }
.col-xs-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-xs-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-xs-9 { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-xs-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }

/* col-*-offset (Bootstrap 5: offset-*) */
.col-sm-offset-2 { margin-left: 16.666667%; }
.col-md-offset-2 { margin-left: 16.666667%; }
@media (min-width: 768px) {
  .col-sm-offset-2 { margin-left: 16.666667%; }
}
@media (min-width: 992px) {
  .col-md-offset-2 { margin-left: 16.666667%; }
}

/* img-responsive → img-fluid */
.img-responsive {
  max-width: 100%;
  height: auto;
}

/* center-block */
.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* hidden-xs, pull-left, pull-right */
.hidden-xs { display: none !important; }
@media (min-width: 576px) {
  .hidden-xs { display: block !important; }
}
.pull-left { float: left !important; }
.pull-right { float: right !important; }

/* embed-responsive (Bootstrap 5: ratio) */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.embed-responsive::before {
  display: block;
  content: "";
  padding-top: 56.25%;
}
.embed-responsive-16by9::before {
  padding-top: 56.25%;
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Navbar fixe - padding body */
body { padding-top: 60px; }
@media (min-width: 992px) {
  body { padding-top: 76px; }
}

/* Styles navbar principale */
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.navbar-brand img { max-height: 40px; }

/* Bouton CTA header (si gopaas-intervention non chargé ou surcharge) */
.btn-cta {
  background-color: #f4862c;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border: none;
}
.btn-cta:hover { background-color: #d5531f; color: #fff !important; }
