/* ================================================================
   Bootstrap minimal — Key of Magic
   Extrait de Bootstrap 3.x — uniquement les classes utilisées
   ================================================================ */

/* ── Reset de base ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Container ── */
.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.container-fluid {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* ── Grid ── */
.row {
  margin-right: -15px;
  margin-left: -15px;
}
.row::before, .row::after { display: table; content: " "; }
.row::after { clear: both; }

[class*="col-"] {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

/* XS — toutes les col- par défaut 100% */
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4,
.col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8,
.col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
.col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
.col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4,
.col-md-5, .col-md-6, .col-md-7, .col-md-8,
.col-md-9, .col-md-10, .col-md-11, .col-md-12 {
  float: left;
  width: 100%;
}

/* SM ≥ 768px */
@media (min-width: 768px) {
  .col-sm-1  { width:  8.33333%; }
  .col-sm-2  { width: 16.66667%; }
  .col-sm-3  { width: 25%; }
  .col-sm-4  { width: 33.33333%; }
  .col-sm-5  { width: 41.66667%; }
  .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.33333%; }
  .col-sm-8  { width: 66.66667%; }
  .col-sm-9  { width: 75%; }
  .col-sm-10 { width: 83.33333%; }
  .col-sm-11 { width: 91.66667%; }
  .col-sm-12 { width: 100%; }
  .col-sm-offset-0  { margin-left: 0; }
  .col-sm-offset-1  { margin-left:  8.33333%; }
  .col-sm-offset-2  { margin-left: 16.66667%; }
  .col-sm-offset-3  { margin-left: 25%; }
  .sm-100 { width: 100% !important; }
}

/* MD ≥ 992px */
@media (min-width: 992px) {
  .col-md-1  { width:  8.33333%; }
  .col-md-2  { width: 16.66667%; }
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.33333%; }
  .col-md-5  { width: 41.66667%; }
  .col-md-6  { width: 50%; }
  .col-md-7  { width: 58.33333%; }
  .col-md-8  { width: 66.66667%; }
  .col-md-9  { width: 75%; }
  .col-md-10 { width: 83.33333%; }
  .col-md-11 { width: 91.66667%; }
  .col-md-12 { width: 100%; }
}

/* ── Visibilité responsive ── */
.hidden-xs { display: block !important; }
.visible-xs { display: none !important; }

@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
  .hidden-sm { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm { display: none !important; }
  .visible-sm { display: block !important; }
}

/* ── Utilitaires texte ── */
.text-left    { text-align: left !important; }
.text-right   { text-align: right !important; }
.text-center  { text-align: center !important; }
.text-justify { text-align: justify !important; }
.text-uppercase { text-transform: uppercase; }

/* ── Float ── */
.pull-left  { float: left !important; }
.pull-right { float: right !important; }
.clearfix::after { display: table; content: " "; clear: both; }

/* ── Images ── */
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}
.img-thumbnail {
  display: inline-block;
  max-width: 100%;
  height: auto;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ── Boutons (utilisés dans page.php et CF7) ── */
.btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
}
.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}
.btn-large, .btn-lg {
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 6px;
}

/* ── Formulaires (CF7 / demande de devis) ── */
.form-group   { margin-bottom: 15px; }
.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
textarea.form-control { height: auto; }
.help-block { display: block; margin-top: 5px; color: #737373; font-size: 12px; }

/* ── Pagination ── */
.pagination { display: inline-block; padding: 0; margin: 20px 0; border-radius: 4px; }
.pagination > li { display: inline; }
.pagination > li > a, .pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  line-height: 1.42857;
  text-decoration: none;
  color: #337ab7;
  background-color: #fff;
  border: 1px solid #ddd;
  margin-left: -1px;
}

/* ── Isotope / Galerie ── */
.portfolio-item { position: relative; overflow: hidden; }
