:root {
    --primary: #5233ff;
    --primary-dark: #4020e0;
    --primary-light: #7055ff;
    --gray-light: #f5f7ff;
    --gray: #e0e0e0;
    --gray-dark: #666666;
    --text: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--gray-light);
    color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
    text-transform: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    border-radius: 10px;
    margin-bottom: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-solid, .fas {
    font-weight: 500 !important;
}

.user-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-selector label {
    font-size: 18px;
    font-weight: normal;
}

.user-count-control {
    display: flex;
    align-items: center;
    border: 1px solid #CCC;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--white);
}

.user-count-btn {
    background-color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.2s;
    color: var(--primary);
}

.user-count-btn.minus {
    border-right: 1px solid #f0f0f0;
}

.user-count-btn.plus {
    border-left: 1px solid #f0f0f0;
}

.user-count-display {
    padding: 8px 20px;
    font-size: 16px;
    min-width: 120px;
    text-align: center;
}

.billing-options {
    display: flex;
    align-items: center;
}

.billing-option {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    text-align: right;
}

.billing-option[data-billing="monthly"] {
    text-align: right;
}

.billing-option.active {
    color: var(--primary);
    font-weight: bold;
}

.billing-option.current-config {
    background-color: rgba(82, 51, 255, 0.1); /* 10% de #5233FF */
    border-radius: 9px;
    padding: 8px 15px; /* On remet le padding pour garder la taille */
}

.active-subscription-tag {
    display: inline-block;
    background-color: rgba(82, 51, 255, 0.1); /* 10% de #5233FF */
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 2px solid var(--gray);
    padding: 35px;
    margin-top: 20px;
}

.pricing-card.featured {
    border-color: var(--primary);
    overflow: visible;
  border-radius: 0px 0px 15px 15px;
}

.featured-tag {
    position: absolute;
    top: -44px;
    left: -2px;
    width: calc(100% + 4px);
    padding: 8px;
    border-radius: 15px 15px 0 0;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    text-align: center;
    color: var(--white);
    background-color: var(--primary);
    border: 2px solid var(--primary);
}

.card-header {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}

.price-old {
    font-size: 28px;
    text-decoration: line-through;
    color: var(--gray-dark);
}

.price-detail {
    font-size: 16px;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.price-billing {
    font-size: 14px;
    color: var(--gray-dark);
    margin-top: 5px;
    margin-bottom: 20px;
}

.price-total {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.price-total-old {
    text-decoration: line-through;
    color: var(--gray-dark);
    font-weight: normal;
    margin-right: 5px;
}

.action-button {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  margin-top:30px;
    position: relative; /* Ajout crucial pour le positionnement du loader */
}

.action-button:hover {
    background-color: var(--primary-dark);
}

.action-button .btn-text {
    transition: opacity 0.2s;
}

.action-button .loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
}

.action-button.loading .btn-text {
    opacity: 0;
}

.action-button.loading .loader {
    display: block;
}

.action-button.loading {
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    height: 1px;
    background-color: var(--gray);
    margin: 25px -35px 0; /* Marge négative gauche/droite pour annuler le padding */
    width: calc(100% + 70px); /* 100% + 35px padding gauche + 35px padding droit */
    margin-top:50px;
}
  
.credit-card .divider {
    display: none;
}

.features {
    padding: 25px 0 0 0;
    margin-top: 0;
    list-style-type: none;
    border-top: none;
    margin-top:50px;
}

.feature {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-right: 25px;
}

.feature:before {
    content: "✓";
    color: var(--primary);
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 18px;
}

.credit-notice-item {
    list-style: none;
    margin-top: auto; 
    padding-top: 15px; 
}

.credit-notice-item::before {
    content: none !important;
}

.credit-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    margin: 0 0.1em;
}

.feature-category {
    list-style: none;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 18px;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 280px;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Credit Card Specific Styles */
.credit-card .action-button {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.credit-card .action-button:hover {
    background-color: var(--gray-light);
}

.credit-recharge {
    margin: 7px 0 !important;
    margin-bottom: 0px;
}

.credit-recharge label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.credit-amount-control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.credit-amount-control input {
    width: 80px;
    text-align: center;
    font-size: 18px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    padding: 8px;
    margin: 0 5px;
    -moz-appearance: textfield; /* Firefox */
}
.credit-amount-control input::-webkit-outer-spin-button,
.credit-amount-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.credit-amount-btn {
    width: 35px;
    height: 35px;
    border: 1px solid var(--gray);
    background-color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.credit-amount-btn:hover {
    background-color: #f0f0f0;
}

.credit-notice {
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

/* Mandatory Credit Notice */
.mandatory-credit-notice {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 10px;
    color: #856404;
    text-align: center;
}

.mandatory-credit-notice p {
    margin: 0;
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d9534f;
    color: white;
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none;
    align-items: center;
    z-index: 9999;
    width: 250px;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#toast-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .container {
        padding: 20px 40px;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
    }
}
  
@media (max-width: 768px) {
    .container {
        padding: 0px 0px !important;
    }
  .pricing-card.featured {
    margin-top:30px !important;
}
  
  .user-count-display, .user-count-btn, .user-selector label, .billing-option {
    font-size: 15px !important;
  }
  
  .header {
    margin-bottom: 15px!important;
}
  .user-selector {
    display: block !important;
   
}
  .user-count-control{
     margin-top:5px;
  }
} 
