/*--------------------------------------------------------------
# PS Timeline — BOOTIK24 "Comment ça fonctionne ?"
# Extrait de style.css Anyar v2.1.0
--------------------------------------------------------------*/

.ps-timeline-sec {
  position: relative;
  background: #fff;
}

.ps-timeline-sec .container {
  position: relative;
}

/* ── Dots de début et fin de la ligne ── */
.ps-timeline-sec .container ol:before {
  background: #0B3D91;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 100%;
  position: absolute;
  left: 8px;
  top: -3px;
}

.ps-timeline-sec .container ol:after {
  background: #0B3D91;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 100%;
  position: absolute;
  right: 8px;
  top: -3px;
}

/* ── Liste timeline ── */
.ps-timeline-sec .container ol.ps-timeline {
  margin: 220px 0;
  padding: 0;
  border-top: 2px solid #0B3D91;
  list-style: none;
}

.ps-timeline-sec .container ol.ps-timeline li {
  float: left;
  width: 16.66%;
  padding-top: 30px;
  position: relative;
}

/* ── Numéros des étapes ── */
.ps-timeline-sec .container ol.ps-timeline li span {
  width: 50px;
  height: 50px;
  margin-left: -25px;
  background: #fff;
  border: 4px solid #0B3D91;
  border-radius: 50%;
  box-shadow: 0 0 0 0px #fff;
  text-align: center;
  line-height: 40px;
  color: #e77600;
  font-size: 1.7em;
  font-weight: 700;
  font-style: normal;
  position: absolute;
  top: -26px;
  left: 50%;
}

/* ── Traits verticaux TOP ── */
.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:before {
  content: '';
  color: #0B3D91;
  width: 2px;
  height: 50px;
  background: #0B3D91;
  position: absolute;
  top: -50px;
  left: 50%;
}

.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:after {
  content: '';
  width: 8px;
  height: 8px;
  background: #0B3D91;
  position: absolute;
  bottom: 90px;
  left: 44%;
  border-radius: 100%;
}

/* ── Traits verticaux BOT ── */
.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:before {
  content: '';
  width: 2px;
  height: 50px;
  background: #0B3D91;
  position: absolute;
  bottom: -50px;
  left: 50%;
}

.ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:after {
  content: '';
  width: 8px;
  height: 8px;
  background: #0B3D91;
  position: absolute;
  top: 90px;
  left: 44%;
  border-radius: 100%;
}

/* ── Images TOP ── */
.ps-timeline-sec .container ol.ps-timeline li .img-handler-top {
  position: absolute;
  bottom: 0;
  margin-bottom: 130px;
  width: 100%;
}

.ps-timeline-sec .container ol.ps-timeline li .img-handler-top img {
  display: table;
  margin: 0 auto;
}

/* ── Images BOT ── */
.ps-timeline-sec .container ol.ps-timeline li .img-handler-bot {
  position: absolute;
  margin-top: 60px;
  width: 100%;
}

.ps-timeline-sec .container ol.ps-timeline li .img-handler-bot img {
  display: table;
  margin: 0 auto;
}

/* ── Texte centré ── */
.ps-timeline-sec .container ol.ps-timeline li p {
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

/* ── Bulle texte TOP ── */
.ps-timeline-sec .container ol.ps-timeline li .ps-top {
  position: absolute;
  bottom: 0;
  margin-bottom: 100px;
  border: 1px solid #0B3D91;
  border-radius: 5px;
  padding: 8px;
  background: #EBF4FF;
  font-size: 13px;
  line-height: 1.5;
  color: #4A6080;
  text-align: center;
}

.ps-timeline-sec .container ol.ps-timeline li .ps-top:before {
  content: "";
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #0B3D91;
  position: absolute;
  bottom: -15px;
  left: 40%;
}

/* ── Bulle texte BOT ── */
.ps-timeline-sec .container ol.ps-timeline li .ps-bot {
  position: absolute;
  margin-top: 35px;
  border: 1px solid #0B3D91;
  border-radius: 5px;
  padding: 8px;
  background: #EBF4FF;
  font-size: 13px;
  line-height: 1.5;
  color: #4A6080;
  text-align: center;
}

.ps-timeline-sec .container ol.ps-timeline li .ps-bot:before {
  content: "";
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #0B3D91;
  position: absolute;
  top: -15px;
  left: 43%;
}

/* ── Titre section ── */
.ps-timeline-sec .section-title {
  text-align: center;
  padding-bottom: 30px;
}

.ps-timeline-sec .section-title h2 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #1A2E5E;
}

/* ── RESPONSIVE mobile ── */
@media screen and (max-width: 767px) {

  .ps-timeline-sec .container ol:before {
    top: 130px !important;
    left: 36px !important;
  }

  .ps-timeline-sec .container ol:after {
    top: inherit !important;
    left: 36px;
  }

  .ps-timeline-sec .container ol.ps-timeline {
    margin: 130px 0 !important;
    border-left: 2px solid #0B3D91;
    padding-left: 0 !important;
    padding-top: 120px !important;
    border-top: 0 !important;
    margin-left: 25px !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li {
    height: 220px;
    float: none !important;
    width: inherit !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li:last-child {
    margin: 0;
    bottom: 0 !important;
    height: 120px;
  }

  .ps-timeline-sec .container ol.ps-timeline li:last-child .img-handler-bot {
    bottom: 40px !important;
    width: 40% !important;
    margin-left: 0px !important;
    margin-top: 0 !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li:last-child .img-handler-bot img {
    width: 100%;
  }

  .ps-timeline-sec .container ol.ps-timeline li:last-child .ps-top {
    margin-bottom: 0 !important;
    top: 20px;
    width: 60% !important;
    top: -90px;
    min-height: 150px;
  }

  .ps-timeline-sec .container ol.ps-timeline li span {
    left: 0 !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:before,
  .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-top:after,
  .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:before,
  .ps-timeline-sec .container ol.ps-timeline li span.ps-sp-bot:after {
    content: none !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li .img-handler-top {
    position: absolute !important;
    bottom: 150px !important;
    width: 40% !important;
    float: left !important;
    margin-left: 0px !important;
    margin-bottom: 0 !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li .img-handler-top img,
  .ps-timeline-sec .container ol.ps-timeline li .img-handler-bot img {
    margin: 0 auto !important;
    width: 80% !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li .img-handler-bot {
    position: absolute !important;
    bottom: 115px !important;
    width: 40% !important;
    float: left !important;
    margin-left: 0px !important;
    margin-bottom: 0 !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li p {
    text-align: left !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li .ps-top {
    width: 60% !important;
    float: right !important;
    right: 0;
    top: -90px;
    max-height: 150px;
  }

  .ps-timeline-sec .container ol.ps-timeline li .ps-bot {
    width: 60% !important;
    float: right !important;
    right: 0;
    top: -120px;
    min-height: 150px;
  }

  .ps-timeline-sec .container ol.ps-timeline li .ps-top:before {
    border-top: 15px solid transparent !important;
    border-left: 15px solid transparent !important;
    border-bottom: 15px solid transparent !important;
    border-right: 15px solid #0B3D91 !important;
    left: -30px !important;
    top: 50% !important;
    bottom: auto !important;
  }

  .ps-timeline-sec .container ol.ps-timeline li .ps-bot:before {
    border-top: 15px solid transparent !important;
    border-left: 15px solid transparent !important;
    border-bottom: 15px solid transparent !important;
    border-right: 15px solid #0B3D91 !important;
    left: -30px !important;
    top: 50% !important;
  }
}