/* Général */
.scaleX-n1-rtl {
  transform: scaleX(1);
}

/* Style de base pour les cartes */
.pricing-card {
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding: 1rem;
  overflow: visible;
  align-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animation au survol améliorée */
.pricing-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 40px rgba(13, 110, 253, 0.15);
  z-index: 10;
}

.pricing-card.featured {
  border: 2px solid #0d6efd;
}

/* Animation pour les cartes et leur ordre d'apparition */
.pricing-card:nth-child(1) {
  animation-delay: 0s;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Style de la carte */
.card {
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  padding: 2em;
}

.card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  background-color: var(--bs-card-bg, white);
  color: var(--bs-body-color, #000);
  border-radius: var(--bs-card-border-radius, 0.25rem);
  word-wrap: break-word;
  position: relative;
}

.border-primary {
  --bs-border-opacity: 1;
  border-color: rgb(255 255 255) !important;
}

/* Titre du plan */
.plan-name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #0d6efd;
  justify-content: center;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  margin-top: -50px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.pricing-card:hover .plan-name {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(13, 110, 253, 0.2);
}

/* Container de prix */
.price-container {
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  transition: transform 0.3s ease;
}

.pricing-card:hover .price-container {
  transform: scale(1.1);
}

.currency {
  position: relative;
  top: -20px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.price {
  font-size: 3.5rem;
  font-weight: bold;
  color: #0d6efd;
  transition: color 0.3s ease;
  text-align: center;
}

.pricing-card:hover .price {
  color: #0a58ca;
  text-align: center;
}

.period {
  font-size: 1rem;
  color: #6c757d;
}

/* Style des fonctionnalités */
.feature-list {
  flex-grow: 1;
  margin-bottom: 2rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  line-height: 1.4;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
  text-align: left;
}

.feature-item:nth-child(even) {
  animation-delay: 0.3s;
}

.feature-item:nth-child(odd) {
  animation-delay: 0.6s;
}

.feature-item img {
  width: 20px;
  height: auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-item:hover img {
  transform: rotate(10deg) scale(1.2);
}

.arrow-icon {
  color: #0d6efd;
  margin-right: 10px;
  font-size: 0.9em;
  flex-shrink: 0;
}

/* Style de la liste de fonctionnalités */
.card-body ul {
  padding-left: 0;
  margin-top: 1.5rem;
  text-align: left;
}

.card-body li {
  padding: 0.5rem 0;
  transition: transform 0.2s ease;
  text-align: left;
}

.card-body li:hover {
  transform: translateX(5px);
}

.card-body li img {
  transition: transform 0.3s ease;
}

.card-body li:hover img {
  transform: rotate(10deg) scale(1.2);
}

/* Style du bouton */
.button-wrapper {
  margin-top: auto;
}

.card-body .btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  font-size: 12px;
  width: 100%;
  text-align: center;
}

.card-body .btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.card-body .btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(45deg, #0d6efd, #0a58ca);
  border: none;
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-outline-primary:hover {
  background: linear-gradient(45deg, #0d6efd, #0a58ca);
  border-color: transparent;
  color: white;
}

/* Section styling */
.pricing-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding-top: 125px;
}


.section-icon {
  font-size: 1.5rem;
  color: #0d6efd;
  animation: floatIcon 2s ease-in-out infinite;
}

.gradient-text {
  font-weight: bold;
  color: #0d6efd;
  animation: slideText 5s linear infinite;
}

/* Layout */
.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(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}

.g-4, .gx-4 {
  --bs-gutter-x: 1.5rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes floatIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideText {
  0% { background-position: -100%; }
  100% { background-position: 100%; }
}

/* Effet de surbrillance pour la carte en vedette */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(13, 110, 253, 0); }
  50% { box-shadow: 0 0 30px rgba(13, 110, 253, 0.4); }
  100% { box-shadow: 0 0 0 rgba(13, 110, 253, 0); }
}

/* Styles spécifiques pour la section DoliSaaS */
.dolisaas-container {
    background-color: #d9e7ff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(39, 110, 241, 0.15);
    padding: 2rem; 
    align-items: center;
}

/* Styles pour le contenu de DoliSaaS */


.dolisaas-image-section {
     flex: 1 1 35%; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align: center;
   
   
}

.dolisaas-text-section {
    flex: 1 1 65%; 
    padding-left: 20px;
    text-align: justify;
}

/* Liste personnalisée */
.custom-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
    text-align: left;
}

.custom-list li {
    text-align: left;
}

/* Styles pour les offres */
.offer-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.offer-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 40px rgba(13, 110, 253, 0.15);
}

/* Aligner le texte des paragraphes et des listes à gauche */
.dolisaas-text-section p {
    text-align: justify;
    text-justify: inter-word;
}
/* Styles pour le contenu de DoliSaaS */
.dolisaas-content {
    display: flex; 
    gap: 30px;
    align-items: flex-start;
}

.dolisaas-image-section {
    flex: 1 1 35%; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align: center;
}

.dolisaas-text-section {
    flex: 1 1 65%; 
    text-align: justify;

}
/* boutton accordiont */


/* Media queries pour la responsivité */

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {

  .dolisaas-container{
    max-width: 100%;
    padding-right: 0% !important;
    padding-left: 0% !important;
    border: 1px solid rgba(0, 0, 255, 0.2)
  }
    .dolisaas-content {
        margin-left: 0%;
        margin-right: 0%;
        align-items: center;
    }
    
    .dolisaas-image-section {
        flex: 1 1 40%;
    }
    
    .dolisaas-text-section {
        flex: 1 1 60%;
        text-align: justify;
    }
}

/* Petites tablettes et grands mobiles (640px et moins) */
@media screen and (max-width: 640px) {
    .dolisaas-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .dolisaas-image-section {
        flex: none;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dolisaas-text-section {
        flex: none;
        width: 100%;
        padding-left: 0;
        text-align: justify;
    }
}

/* Mobiles (480px et moins) */
@media screen and (max-width: 480px) {
    .dolisaas-content {
        gap: 10px;
        padding: 0 10px;
    }
    
    .dolisaas-image-section {
        padding: 0 5px;
    }
    
    .dolisaas-text-section {
        padding: 0 5px;
    }
}

/* Petits mobiles (360px et moins) */
@media screen and (max-width: 360px) {
    .dolisaas-content {
        gap: 8px;
        padding: 0 5px;
    }
    
    .dolisaas-image-section {
        padding: 0;
    }
    
    .dolisaas-text-section {
        padding: 0;
        font-size: 0.9em;
    }
   
}

/* Très petits écrans (moins de 576px) */
@media (max-width: 575px) {
    .pricing-section {
        padding: 40px 0.5rem !important;
    }
    
    .pricing-card {
        margin-top: 1.5rem;
        padding: 0.5rem;
    }
    
    .card {
        padding: 1.5em;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .plan-name {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
        margin-top: -40px;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .currency {
        font-size: 1rem;
        top: -15px;
    }
    
    .feature-list {
        text-align: left;
    }
    
    .feature-item {
        text-align: left;
        align-items: flex-start;
    }
    
    .card-body ul {
        text-align: left;
    }
    
    .card-body li {
        text-align: left;
    }
    
    .dolisaas-container {
        padding: 1rem;
    }
    
    .dolisaas-text-section {
        padding-left: 0;
    }
    
    .dolisaas-text-section p,
    .custom-list li {
        text-align: left;
    }
    
}

/* Mobiles (576px à 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .pricing-section {
        padding: 60px 1rem !important;
    }

    .pricing-card {
        margin-top: 2rem;
    }
    
    .plan-name {
        font-size: 1.4rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .currency {
        font-size: 1.2rem;
    }
    
    .feature-list {
        text-align: left;
    }
    
    .feature-item {
        text-align: left;
        align-items: flex-start;
    }
    
    .card-body ul {
        text-align: left;
    }
    
    .card-body li {
        text-align: left;
    }

    .card-body .btn {
        width: 100%;
        max-width: 280px;
        margin: 1rem auto 0;
    }
    
    .dolisaas-text-section p,
    .custom-list li {
        text-align: left;
    }
}


/* Tablettes (768px à 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .pricing-section {
        padding: 80px 1rem !important;
    }

    .pricing-card {
        margin-top: 3rem;
    }
    
    .feature-list {
        text-align: left;
    }
    
    .feature-item {
        text-align: left;
        align-items: flex-start;
    }
    
    .card-body ul {
        text-align: left;
    }
    
    .card-body li {
        text-align: left;
    }
    
    .dolisaas-content {
        flex-direction: column;
        gap: 20px;
    }

    .dolisaas-image-section,
    .dolisaas-text-section {
        flex: 1 1 100%;
        padding-left: 0;
    }
    
    .dolisaas-text-section p,
    .custom-list li {
        text-align: justify;
        max-width: 100%;
    }
}

/* Écrans moyens et plus grands (992px et plus) */
@media (min-width: 992px) {
    .feature-list {
        text-align: left;
    }
    
    .feature-item {
        text-align: left;
        align-items: flex-start;
    }
    
    .card-body ul {
        text-align: left;
    }
    
    .card-body li {
        text-align: left;
    }
    
    .dolisaas-text-section p,
    .custom-list li {
        text-align: left;
    }
}
/* Deroulante offer */
 /* Offre déroulante */
  #offersContent {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
  }
  #offersContent.open {
    max-height: 2000px;
  }

  #offersContent1 h3 {
    text-align: center;
    color: #276ef1;
    font-weight: 700;
    margin-bottom: 25px;
  }

  #offersContent1 p.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #333;
  }
 /* Offre déroulante2 */
   #offersContent2 {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
  }
  #offersContent2.open { 
    max-height: 4000px;
  }

  #offersContent2 h3 {
    text-align: center;
    color: #276ef1;
    font-weight: 700;
    margin-bottom: 25px;
  }

  #offersContent2 p.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #333;
  }

  #offersContent2 p.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #333;
  }
   /* Accordéon toggle */
  #toggleOffers,#toggleOffers2 {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #187bff;
    cursor: pointer;
    user-select: none;
    margin-bottom: 30px;
  }
/* sur le  table dollibar  */
/* CSS pour tableau responsive avec scroll horizontal */
.scrolle-table {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scrolle-table table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 1rem !important;
  min-width: 600px; /* Largeur minimale pour éviter la compression */
}

.scrolle-table thead tr {
  background-color: #f8f9fa !important;
}

.scrolle-table th {
  border: 1px solid #dee2e6 !important;
  padding: 12px !important;
  text-align: left !important;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.scrolle-table th:nth-child(2) {
  background: #eef3fa !important;
  text-align: center !important;
}

.scrolle-table th:nth-child(3) {
  background: #d8ecff !important;
  color: #0d47a1 !important;
  text-align: center !important;
}

.scrolle-table td {
  border: 1px solid #dee2e6 !important;
  padding: 12px !important;
  vertical-align: top;
}

.scrolle-table tbody tr:nth-child(even) {
  background-color: #f9f9f9 !important;
}

.scrolle-table tbody tr:hover {
  background-color: #e3f2fd;
  transition: background-color 0.2s ease;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .scrolle-table {
    margin: 10px 0;
    border-radius: 4px;
  }
  
  .scrolle-table table {
    font-size: 0.9rem !important;
    min-width: 500px;
  }
  
  .scrolle-table th,
  .scrolle-table td {
    padding: 8px !important;
    font-size: 0.85rem;
  }
  
  /* Indicateur de scroll */
  .scrolle-table::after {
    content: "← Faites défiler horizontalement →";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    padding: 5px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
  }
}

@media screen and (max-width: 480px) {
  .scrolle-table table {
    font-size: 0.8rem !important;
    min-width: 450px;
  }
  
  .scrolle-table th,
  .scrolle-table td {
    padding: 6px !important;
    font-size: 0.75rem;
  }
}

/* Amélioration de l'expérience de scroll sur mobile */
.scrolle-table {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #dee2e6 #f8f9fa;
}

.scrolle-table::-webkit-scrollbar {
  height: 6px;
}

.scrolle-table::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.scrolle-table::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 3px;
}

.scrolle-table::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}
/* Style pour le paragraphe DoliSaaS responsive */
.p-dollisaas {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin: 20px 0;
  padding: 15px;
  text-align: justify;
  text-align-last: left;
  background-color: #f8f9fa;
  border-left: 4px solid #0d47a1;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive pour le paragraphe */
@media screen and (max-width: 768px) {
  .p-dollisaas {
    font-size: 1rem;
    padding: 12px;
    margin: 15px 0;
    line-height: 1.5;
  }
}

@media screen and (max-width: 480px) {
  .p-dollisaas {
    font-size: 0.9rem;
    padding: 10px;
    margin: 10px 0;
    line-height: 1.4;
  }
}
/* Style pour la section pricing responsive */
.pricing-container {
  max-width: auto;
  background-color: #d9e7ff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(39, 110, 241, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 30px;
  font-family: 'Inter', Arial, sans-serif;
  color: #1a376c;
  padding: 25px 30px;
}

.pricing-container .flex-shrink-0 {
  flex: 1 1 30%;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pricing-container .img-fluid {
  width: 100%;
  height: auto;
  max-width: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pricing-container .content-right {
  flex: 1 1 60%;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-container h2 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.pricing-container h2 img {
  height: clamp(35px, 6vw, 45px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.pricing-container h2 .text-primary {
  color: #276ef1;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pricing-container .construction-img {
  width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: 15px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.pricing-container .list-unstyled {
  margin-top: 0;
  padding-left: 0;
  line-height: 1.6;
}

.pricing-container .list-unstyled li {
  margin-bottom: 8px;
}

.pricing-container .fst-italic {
  margin-top: 20px;
}

.pricing-container .construction-notice {
  margin-top: 15px;
  font-weight: bold;
  color: #ff6600;
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
  .pricing-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .pricing-container h2 .text-primary {
  color: #276ef1;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: medium;
  min-width: 0;
}
  
  .pricing-container .flex-shrink-0 {
    flex: 1 1 100%;
    margin-bottom: 0;
    order: 1;
  }
  /* image construction */
  .pricing-container .image1 {
  width: 100% !important;
  height: auto;
 
}
  .pricing-container .content-right {
    flex: 1 1 100%;
    padding-right: 0;
    order: 2;
  }
  
  .pricing-container .img-fluid {
    max-width: 250px;
  }
  
  .pricing-container .construction-img {
    max-height: 150px;
  }
}


@media screen and (max-width: 480px) {
  .pricing-container {
    padding: 15px;
    gap: 15px;
  }
  
  .pricing-container .img-fluid {
    max-width: 200px;
  }
  
  .pricing-container .construction-img {
    max-height: 120px;
  }
}
/* Style pour la section offer-solo responsive */
.offer-solo {
  width: 100%;
  margin: 20px 0;
}

.offer-solo .solo-offre {
  margin: 0;
  padding: 0;
}

.offer-solo ul {
  list-style-type: none;
  color: #444;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

.offer-solo li {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.6;
}

.offer-solo strong {
  color: #276ef1;
}

.offer-solo .footer-text {
  font-size: 1rem;
  color: #444;
  margin-top: 20px;
  text-align: center;
  font-style: italic;
}

/* Responsive pour offer-solo */
@media screen and (max-width: 768px) {
  .offer-solo ul {
    font-size: 0.9rem;
  }
  
  .offer-solo li {
    margin-bottom: 12px;
  }
  
  .offer-solo .footer-text {
    font-size: 0.9rem;
    margin-top: 15px;
  }
}

@media screen and (max-width: 480px) {
  .offer-solo ul {
    font-size: 0.85rem;
  }
  
  .offer-solo li {
    margin-bottom: 10px;
    line-height: 1.5;
  }
  
  .offer-solo .footer-text {
    font-size: 0.85rem;
    margin-top: 12px;
  }
}