/* ==========================================================
   Containers
   ========================================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 680px; } /* léger ajustement */
}

@media (min-width: 992px) {
  .container { max-width: 820px; }
}

@media (min-width: 1200px) {
  .container { max-width: 960px; }
}

@media (min-width: 1380px) {
  .container { max-width: 1350px; }
}


/* ==========================================================
   Rows
   ========================================================== */

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.row-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ==========================================================
   No gutters
   ========================================================== */

.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.no-gutters.container,
.no-gutters.container-fluid {
  padding-right: 0;
  padding-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

/* Optional responsive no-gutters */
@media (min-width: 768px) {
  .no-gutters-md {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .no-gutters-lg {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .no-gutters-xl {
    margin-right: 0;
    margin-left: 0;
  }
}

/* ==========================================================
   Columns (12-grid system)
   ========================================================== */

[class^="col-"],
[class*=" col-"] {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

/* Equal-width flex columns */
.col {
  flex: 1 0 0%;
}

/* Auto width */
.col-auto {
  flex: 0 0 auto;
  width: auto;
}

/* 12-column percentages */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ==========================================================
   Responsive columns (sm → xxl)
   ========================================================== */

@media (min-width: 576px) {
  .col-sm { flex: 1 0 0%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; }
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md { flex: 1 0 0%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg { flex: 1 0 0%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl { flex: 1 0 0%; }
  .col-xl-auto { flex: 0 0 auto; width: auto; }
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ==========================================================
   Column push/pull (Bootstrap 3-like) — base
   ========================================================== */

/* reset helpers */
[class*="push-"], [class*="pull-"] { position: relative; }
.push-0 { left: auto; right: auto; }
.pull-0 { right: auto; left: auto; }

/* PUSH (décale vers la droite avec left) */
.push-1  { left: 8.333333%;  right: auto; }
.push-2  { left: 16.666667%; right: auto; }
.push-3  { left: 25%;        right: auto; }
.push-4  { left: 33.333333%; right: auto; }
.push-5  { left: 41.666667%; right: auto; }
.push-6  { left: 50%;        right: auto; }
.push-7  { left: 58.333333%; right: auto; }
.push-8  { left: 66.666667%; right: auto; }
.push-9  { left: 75%;        right: auto; }
.push-10 { left: 83.333333%; right: auto; }
.push-11 { left: 91.666667%; right: auto; }
.push-12 { left: 100%;       right: auto; }

/* PULL (décale vers la gauche avec right) */
.pull-1  { right: 8.333333%;  left: auto; }
.pull-2  { right: 16.666667%; left: auto; }
.pull-3  { right: 25%;        left: auto; }
.pull-4  { right: 33.333333%; left: auto; }
.pull-5  { right: 41.666667%; left: auto; }
.pull-6  { right: 50%;        left: auto; }
.pull-7  { right: 58.333333%; left: auto; }
.pull-8  { right: 66.666667%; left: auto; }
.pull-9  { right: 75%;        left: auto; }
.pull-10 { right: 83.333333%; left: auto; }
.pull-11 { right: 91.666667%; left: auto; }
.pull-12 { right: 100%;       left: auto; }

/* ==========================================================
   Responsive push/pull (sm ≥ 576px)
   ========================================================== */
@media (min-width: 576px) {
  .push-sm-0 { left: auto; right: auto; }
  .pull-sm-0 { right: auto; left: auto; }

  .push-sm-1  { left: 8.333333%;  right: auto; }
  .push-sm-2  { left: 16.666667%; right: auto; }
  .push-sm-3  { left: 25%;        right: auto; }
  .push-sm-4  { left: 33.333333%; right: auto; }
  .push-sm-5  { left: 41.666667%; right: auto; }
  .push-sm-6  { left: 50%;        right: auto; }
  .push-sm-7  { left: 58.333333%; right: auto; }
  .push-sm-8  { left: 66.666667%; right: auto; }
  .push-sm-9  { left: 75%;        right: auto; }
  .push-sm-10 { left: 83.333333%; right: auto; }
  .push-sm-11 { left: 91.666667%; right: auto; }
  .push-sm-12 { left: 100%;       right: auto; }

  .pull-sm-1  { right: 8.333333%;  left: auto; }
  .pull-sm-2  { right: 16.666667%; left: auto; }
  .pull-sm-3  { right: 25%;        left: auto; }
  .pull-sm-4  { right: 33.333333%; left: auto; }
  .pull-sm-5  { right: 41.666667%; left: auto; }
  .pull-sm-6  { right: 50%;        left: auto; }
  .pull-sm-7  { right: 58.333333%; left: auto; }
  .pull-sm-8  { right: 66.666667%; left: auto; }
  .pull-sm-9  { right: 75%;        left: auto; }
  .pull-sm-10 { right: 83.333333%; left: auto; }
  .pull-sm-11 { right: 91.666667%; left: auto; }
  .pull-sm-12 { right: 100%;       left: auto; }
}

/* ==========================================================
   Responsive push/pull (md ≥ 768px)
   ========================================================== */
@media (min-width: 768px) {
  .push-md-0 { left: auto; right: auto; }
  .pull-md-0 { right: auto; left: auto; }

  .push-md-1  { left: 8.333333%;  right: auto; }
  .push-md-2  { left: 16.666667%; right: auto; }
  .push-md-3  { left: 25%;        right: auto; }
  .push-md-4  { left: 33.333333%; right: auto; }
  .push-md-5  { left: 41.666667%; right: auto; }
  .push-md-6  { left: 50%;        right: auto; }
  .push-md-7  { left: 58.333333%; right: auto; }
  .push-md-8  { left: 66.666667%; right: auto; }
  .push-md-9  { left: 75%;        right: auto; }
  .push-md-10 { left: 83.333333%; right: auto; }
  .push-md-11 { left: 91.666667%; right: auto; }
  .push-md-12 { left: 100%;       right: auto; }

  .pull-md-1  { right: 8.333333%;  left: auto; }
  .pull-md-2  { right: 16.666667%; left: auto; }
  .pull-md-3  { right: 25%;        left: auto; }
  .pull-md-4  { right: 33.333333%; left: auto; }
  .pull-md-5  { right: 41.666667%; left: auto; }
  .pull-md-6  { right: 50%;        left: auto; }
  .pull-md-7  { right: 58.333333%; left: auto; }
  .pull-md-8  { right: 66.666667%; left: auto; }
  .pull-md-9  { right: 75%;        left: auto; }
  .pull-md-10 { right: 83.333333%; left: auto; }
  .pull-md-11 { right: 91.666667%; left: auto; }
  .pull-md-12 { right: 100%;       left: auto; }
}

/* sm ≥ 576px */
@media (min-width: 576px) {
  .push-sm-0  { left: auto; }
  .push-sm-1  { left: 8.333333%; }
  .push-sm-2  { left: 16.666667%; }
  .push-sm-3  { left: 25%; }
  .push-sm-4  { left: 33.333333%; }
  .push-sm-5  { left: 41.666667%; }
  .push-sm-6  { left: 50%; }
  .push-sm-7  { left: 58.333333%; }
  .push-sm-8  { left: 66.666667%; }
  .push-sm-9  { left: 75%; }
  .push-sm-10 { left: 83.333333%; }
  .push-sm-11 { left: 91.666667%; }
  .push-sm-12 { left: 100%; }
}

/* md ≥ 768px */
@media (min-width: 768px) {
  .push-md-0  { left: auto; }
  .push-md-1  { left: 8.333333%; }
  .push-md-2  { left: 16.666667%; }
  .push-md-3  { left: 25%; }
  .push-md-4  { left: 33.333333%; }
  .push-md-5  { left: 41.666667%; }
  .push-md-6  { left: 50%; }
  .push-md-7  { left: 58.333333%; }
  .push-md-8  { left: 66.666667%; }
  .push-md-9  { left: 75%; }
  .push-md-10 { left: 83.333333%; }
  .push-md-11 { left: 91.666667%; }
  .push-md-12 { left: 100%; }
}

/* lg ≥ 992px */
@media (min-width: 992px) {
  .push-lg-0  { left: auto; }
  .push-lg-1  { left: 8.333333%; }
  .push-lg-2  { left: 16.666667%; }
  .push-lg-3  { left: 25%; }
  .push-lg-4  { left: 33.333333%; }
  .push-lg-5  { left: 41.666667%; }
  .push-lg-6  { left: 50%; }
  .push-lg-7  { left: 58.333333%; }
  .push-lg-8  { left: 66.666667%; }
  .push-lg-9  { left: 75%; }
  .push-lg-10 { left: 83.333333%; }
  .push-lg-11 { left: 91.666667%; }
  .push-lg-12 { left: 100%; }
}

/* xl ≥ 1200px */
@media (min-width: 1200px) {
  .push-xl-0  { left: auto; }
  .push-xl-1  { left: 8.333333%; }
  .push-xl-2  { left: 16.666667%; }
  .push-xl-3  { left: 25%; }
  .push-xl-4  { left: 33.333333%; }
  .push-xl-5  { left: 41.666667%; }
  .push-xl-6  { left: 50%; }
  .push-xl-7  { left: 58.333333%; }
  .push-xl-8  { left: 66.666667%; }
  .push-xl-9  { left: 75%; }
  .push-xl-10 { left: 83.333333%; }
  .push-xl-11 { left: 91.666667%; }
  .push-xl-12 { left: 100%; }
}

/* ==========================================================
   Utilities (margins / paddings)
   ========================================================== */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }