/* MES SERVICES */
.messervices {
  text-align: left;
  padding-bottom: 152px;
  padding-top: 200px;
  padding-left: 5%;
  padding-right: 5%;
}

@media screen and (max-width: 760px) {
  .messervices {
    padding-top: 152px;
    padding-bottom: 108px;
  }
}

/* SERVICES PRÉSENTATION */
.containerservicespage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
  background-color: #4B7046;
  padding: 5% 5% 10%;
  margin: 0 auto;
}

/* Cartes */
.cardservices {
  cursor: pointer;
  transition: transform 0.5s ease;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  justify-self: center;
}

.cardservices-inner {
  position: relative;
  width: 100%;
  height: 552px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  background-color: #F2EFE8;
}

.cardservices.flipped .cardservices-inner {
  transform: rotateY(180deg);
}

.cardservices-front,
.cardservices-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #F2EFE8;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cardservices-front:hover,
.cardservices-back:hover {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cardservices-back {
  transform: rotateY(180deg);
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.arrow {
  font-size: 1.5rem;
  align-self: flex-end;
}

.cardservices-back .arrow.flipped {
  position: absolute;
  top: 1rem;
  right: 1rem;
  align-self: auto;
  transform: rotate(180deg);
}


/* Styles des tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0rem;
  justify-content: flex-start;
  position: absolute;
  bottom: 15%;
  left: 5%;
  right: 5%;
}

.tag {
  padding: 0.3rem 0.3rem;
  font-size: 18px;
  color: #0E100F;
  white-space: nowrap;
  background-color: transparent;
}

.tag:before {
  content :"["
}

.tag:after {
  content :"]"
}

.h3services {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  font-size: 25px;
  width: 100%;
  color: #0E100F;
  line-height: normal;
  font-weight: 400;
}

.textservices {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  font-size: 18px;
  color: #0E100F;
  line-height: 27px;
  font-weight: 300;
  padding-top: 10%;
  justify-content: flex-start;
  position: absolute;
  right: 3%;
  left: 3%;
}

.textservices strong {
  font-weight: 400;
}

/* RESPONSIVE OPTIMISÉ */

/* Tablettes et écrans moyens - garde 2 colonnes */
@media (max-width: 1200px) {
  .cardservices:nth-child(1),
  .cardservices:nth-child(2),
  .cardservices:nth-child(3),
  .cardservices:nth-child(4) {
    transform: translateX(0);
  }
}

/* Passage à 1 colonne uniquement sur petits écrans */
@media (max-width: 768px) {
  .containerservicespage {
    grid-template-columns: 1fr;
    padding-top: 10%;
    padding-bottom: 20%;
  }

  .cardservices {
    max-width: 100%;
  }

  .cardservices-inner {
    height: 496px;
  }

  .tags {
    bottom: 12%;
  }
}

@media (max-width: 650px) {
  .textservices {
    line-height: 23px;
  }
}

@media (max-width: 500px) {
  .textservices {
    font-size: 16px;
  }

  .tag {
    font-size: 16px;
  }

  .tags {
    bottom: 10%;
  }
}

@media (max-width: 415px) {
  .cardservices-inner {
    height: 520px;
  }
}

/* FIN SERVICES PRÉSENTATION */

.arrowtitle {
  width: 32px;
}

/* TARIFS */

.servicenanimation {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 40px;
    }

    /* Titre éditorial */
.h2web {
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 50px;
  font-weight: 400;
  color: #0E100F;
  line-height: normal;
  word-wrap: break-word;
  white-space: normal;
  padding-left: 5%;
}



/* Filtres horizontaux */
.filterstarifs {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 100px;
  flex-wrap: wrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top:60px;
}

.filterstarifs::-webkit-scrollbar {
  display: none;
}
    .filtertarifs {
      cursor: pointer;
      padding: 0;
      background: transparent;
      color: #0E100F;
      font-weight: 400;
      font-size: 16px;
      letter-spacing: 1px;
      text-transform: lowercase;
      user-select: none;
      transition: all 0.3s ease;
      border: none;
      font-family: 'Montserrat', serif;
      position: relative;
      opacity: 0.5;
    }

    .filtertarifs::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 1px;
      background: #0E100F;
      transition: width 0.3s ease;
    }

    .filtertarifs.active,
    .filtertarifs:hover {
      color: #0E100F;
      opacity: 1;
    }

    .filtertarifs.active::after {
      width: 100%;
    }

    /* Layout liste élégante */
    #tarifs {
      display: flex;
      flex-direction: column;
      gap: 0;
      padding-bottom: 80px;
    }

    /* Item tarif - style liste magazine */
    .cardtarifs {
      display: grid;
      grid-template-columns: 1fr 2fr 1fr;
      gap: 50px;
      padding: 60px 0;
      border-bottom: 1px solid #0E100F;
      position: relative;
      transition: all 0.4s ease;
      align-items: start;
    }

    .cardtarifs:first-child {
      border-top: 1px solid #0E100F;
    }

    .cardtarifs:hover {
      background: linear-gradient(90deg, transparent 0%, rgba(232, 93, 117, 0.03) 50%, transparent 100%);
      padding-left: 30px;
      padding-right: 30px;
    }

    /* Numéro/ornement gauche */
    .cardtarifs::before {
      content: '*';
      position: absolute;
      left: -30px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 3rem;
      color: #0E100F;
      font-family: 'Montserrat', serif;
      opacity: 0;
      transition: all 0.4s ease;
    }

    .cardtarifs:hover::before {
      opacity: 1;
      left: 0;
    }

    /* Colonne 1 : Titre et prix */
    .tarif-header {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .cardtarifs h3 {
      font-family: 'Montserrat', serif;
      font-size: 2.5rem;
      font-weight: 400;
      color: #0E100F;
      letter-spacing: 1px;
      line-height: 1.2;
      margin: 0;
    }

    .cardtarifs .price {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .price-start {
      font-size: 0.65rem;
      color: #5a5350;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 2px;
      font-family: 'Montserrat', sans-serif;
    }

    .price-value {
      font-size: 3rem;
      font-weight: 300;
      color: #0E100F;
      font-family: 'Montserrat', serif;
      letter-spacing: -1px;
      line-height: 1;
    }

    /* Colonne 2 : Description */
    .tarif-content {
      display: flex;
      flex-direction: column;
      gap: 25px;
    }

    .cardtarifs .subtitle {
      font-size: 18px;
      color: #0E100F;
      font-weight: 300;
      line-height: 1.7;
      font-family: 'Montserrat', serif;
      letter-spacing: 0.5px;
    }

    .cardtarifs .includes-title {
      font-weight: 600;
      color: #1a1512;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: normal;
      margin-bottom: 15px;
      font-family: 'Montserrat', sans-serif;
      position: relative;
      padding-left: 20px;
    }

    .cardtarifs .includes-title::before {
      content: '[';
      position: absolute;
      left: 0;
      color: #0E100F;
      font-family: 'Montserrat', serif;
      font-size: 1.2rem;
    }

    .cardtarifs .includes-title::after {
      content: ']';
      color: #0E100F;
      margin-left: 5px;
      font-family: 'Montserrat', serif;
      font-size: 1.2rem;
    }

    .cardtarifs .description-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .cardtarifs .description-list li {
      position: relative;
      padding-left: 25px;
      font-size: 16px;
      color: #0E100F;
      line-height: 1.6;
      font-weight: 300;
      font-family: 'Montserrat', sans-serif;
    }

    .cardtarifs .description-list li::before {
      content: '*';
      position: absolute;
      left: 0;
      top: -2px;
      color: #F591E7;
      font-size: 26px;
      font-family: 'Playfair Display', serif;
    }

    /* Colonne 3 : Badge/numéro */
    .tarif-badge {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 15px;
      opacity: 0.3;
      transition: opacity 0.4s ease;
    }

    .cardtarifs:hover .tarif-badge {
      opacity: 1;
    }

    .badge-number {
      font-size: 5rem;
      font-weight: 300;
      color: #0E100F;
      font-family: 'Montserrat', serif;
      line-height: 1;
      opacity: 0.2;
    }

    .badge-ornament {
      font-size: 2rem;
      color: #F591E7;
      font-family: 'Playfair Display', serif;
      letter-spacing: 10px;
    }

    /* Animation d'apparition */
    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .cardtarifs {
      animation: slideIn 0.6s ease-out backwards;
    }

    .cardtarifs:nth-child(1) { animation-delay: 0.1s; }
    .cardtarifs:nth-child(2) { animation-delay: 0.2s; }
    .cardtarifs:nth-child(3) { animation-delay: 0.3s; }

    /* Responsive */
    @media (max-width: 1100px) {
      .cardtarifs {
        grid-template-columns: 1fr 2fr;
        gap: 40px;
      }

      .tarif-badge {
        display: none;
      }
    }

    @media (max-width: 768px) {

      .servicenanimation {
        padding: 0 20px;
      }


    .filterstarifs {
  justify-content: flex-start;
  gap: 30px;
  margin-bottom: 60px;
  padding: 0 20px;
  flex-wrap: nowrap;
  padding-top: 60px;
}

.filtertarifs {
  white-space: nowrap;
  flex-shrink: 0;
}

      .cardtarifs {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
      }

      .cardtarifs:hover {
        padding-left: 0;
        padding-right: 0;
      }

      .cardtarifs::before {
        display: none;
      }

      .cardtarifs h3 {
        font-size: 2rem;
      }

      .price-value {
        font-size: 2.5rem;
      }

      .tarif-content {
        gap: 20px;
      }
    }



/* SLIDER PROCESSUS */
    .sectionprocessus {
      background: #0E100F;
      padding-top: 180px;
      padding-bottom:100px;
      color: #F2EFE8;
    }

    /* Layout principal */
    .process-layout {
      width: 90%;
      max-width: 1400px;
      margin: auto;
      display: flex;
      gap: 60px;
      align-items: flex-start;
    }

    /* Colonne gauche - 1/4 */
    .process-title {
      width: 25%;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 40px;
    }

    .h2web {
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 50px;
  font-weight: 400;
  color: #0E100F;
  line-height: normal;
  word-wrap: break-word;
  white-space: normal;
  padding-left: 5%;
    }

    /* Barre verticale de progression */
    .vertical-progress {
      position: relative;
      height: 300px;
      width: 10px;
    }

    .progress-line {
      width: 4px;
      height: 100%;
      background: rgba(255, 255, 255, 0.25);
      border-radius: 4px;
      margin: 0 auto;
    }

    .progress-thumb {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 12px;
      height: 36px;
      background: #4B7046;
      border-radius: 8px;
      transition: top 0.4s ease;
      top: 0;
    }

    /* Colonne droite - 3/4 */
    .process-content {
      width: 75%;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    /* Conteneur du slider + flèches */
    .slider-wrapper {
      display: grid;
      grid-template-columns: 10px 1fr auto;
      gap: 30px;
      align-items: flex-start;
    }

    /* Barre de progression horizontale (mobile) */
    .horizontal-progress {
      display: none;
      position: relative;
      height: 10px;
      width: 100%;
      margin-bottom: 20px;
    }

    .horizontal-progress .progress-line {
      width: 100%;
      height: 4px;
      background: rgba(255, 255, 255, 0.25);
      border-radius: 4px;
    }

    .horizontal-progress .progress-thumb {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
      height: 12px;
      background: #F591E7;
      border-radius: 8px;
      transition: left 0.4s ease;
      left: 0;
    }

    /* Barre verticale dans le slider (desktop) */
    .slider-progress-vertical {
      position: relative;
      height: 100%;
      min-height: 250px;
      width: 10px;
    }

    .slider-progress-vertical .progress-line {
      width: 4px;
      height: 100%;
      background: rgba(255, 255, 255, 0.25);
      border-radius: 4px;
      margin: 0 auto;
    }

    .slider-progress-vertical .progress-thumb {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 12px;
      height: 36px;
      background: #F591E7;
      border-radius: 8px;
      transition: top 0.4s ease;
      top: 0;
    }

    /* Slider */
    .slider-containerprocess {
      overflow: hidden;
      width: 100%;
      position: relative;
    }

    .sliderprocess {
      display: flex;
      transition: transform 0.5s ease;
      width: 100%;
    }

    .slideprocess {
      width: 100%;
      min-width: 100%;
      max-width: 100%;
      flex-shrink: 0;
      box-sizing: border-box;
      padding-right: 20px;
    }

    .slideprocess h3 {
      margin-bottom: 16px;
      font-size: 20px;
      color: white;
      text-transform: uppercase;
      font-weight: normal;
    }

    .slideprocess p {
      font-size: 16px;
      line-height: 1.8;
      color: #F2EFE8;
      max-width: 100%;
    }

    /* Boutons flèches */
    .controls {
      display: flex;
      gap: 12px;
      flex-shrink: 0;
    }

    .controls button {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 2px solid #F2EFE8;
      background: transparent;
      color: #F2EFE8;
      cursor: pointer;
      font-size: 20px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .controls button:hover {
      background: #F591E7;
      border-color: #F591E7;
      color: #0E100F;
    }

    .controls button:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }

    /* Filtres */
    .filtersprocess {
      display: flex;
      gap: 0px;
      flex-wrap: wrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 5px;
    }

    .filtersprocess::-webkit-scrollbar {
      display: none;
    }

    .filtersprocess button {
    background-color: #0E100F;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    color: #F2EFE8;
    text-transform: uppercase;
    font-family: 'Montserrat';
    font-weight: 300;
    }

    .filtersprocess button:hover {
      font-weight: bold;

    }

    .filtersprocess button.active {
          font-weight: bold;


    }

    /* RESPONSIVE */
    @media (max-width: 950px) {
      .process-layout {
        flex-direction: column;
        gap: 40px;
      }

      .process-title {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 30px;
      }

      .h2web {
        margin: 0;
      }

      .vertical-progress {
        display: none;
      }

      .slider-wrapper {
        grid-template-columns: 1fr auto;
        gap: 20px;
      }

      .slider-progress-vertical {
        display: none;
      }

      .horizontal-progress {
        display: block;
      }

      .process-content {
        width: 100%;
      }
    }

    @media (max-width: 600px) {
      .sectionprocessus {
        padding: 60px 0;
      }

      .process-layout {
        width: 95%;
      }

      .h2web {
        font-size: 28px;
      }

      .process-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
      }

      .slider-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
      }

      .slider-containerprocess {
        width: 100%;
      }

      .slideprocess {
        font-size: 22px;
        padding-right: 0;
      }

      .slideprocess p {
        font-size: 15px;
      }

      /* Flèches disparaissent sur mobile */
      .controls {
        display: none;
      }

      /* Filtres en scroll horizontal sur mobile */
      .filtersprocess {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
      }

      .filtersprocess button {
        font-size: 13px;
        padding: 8px 14px;
        flex-shrink: 0;
      }
    }