[ng-cloak] {
  display: none !important;
}

/* POPUP VERIF EMAIL */
.verifymail_container {
    position: absolute; /* On se positionne par rapport au parent (#main) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Fond blanc presque opaque pour masquer le formulaire dessous */
    z-index: 90; /* Assez haut pour couvrir le formulaire, mais sous le menu du header */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centre la carte verticalement dans la zone */
    font-family: sans-serif;
    text-align: center;
}

/* La carte */
.verifymail_card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1); /* Ombre plus douce */
    max-width: 500px;
    width: 90%;
    position: absolute;
    top: 150px;
}

/* On s'assure que le bouton reste joli */
.verifymail_btn {
    padding: 10px 20px;
    cursor: pointer;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #555;
    margin-top: 15px;
}
/* Titre */
.verifymail_title{
    font-size: 26px;
    color: #2e3a49;
    margin-bottom: 20px;
}
/* Texte explicatif */
.verifymail_text {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}
/* Email en bleu */
.verifymail_email {
    color: #007bff;
}
/* Boîte d'info bleue */
.verifymail_info_box {
    margin: 30px 0;
    padding: 15px;
    background: #eef7ff;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    text-align: left;
}
/* Petit texte dans la boîte d'info */
.verifymail_info_small {
    font-size: 14px;
}
/* Séparateur */
.verifymail_separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}
/* Texte spam */
.verifymail_spam_text {
    font-size: 14px;
    color: #888;
}
/* Bouton */
.verifymail_btn {
    padding: 10px 20px;
    cursor: pointer;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #555;
}
.verifymail_btn:hover {
    background-color: #f9f9f9; /* Petit ajout d'UX pour le survol */
}
/* Pied de carte */
.verifymail_footer {
    margin-top: 20px;
}
/* Lien de forçage */
.verifymail_link {
    font-size: 12px;
    color: #999;
    text-decoration: none; /* Souvent préférable pour ce type de lien discret */
}
.verifymail_link:hover {
    text-decoration: underline;
}

/* L'animation d'apparition douce */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Conteneur de l'icône */
.verifymail_icon_container {
    font-size: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
}

/* Succès : Vert */
.verifymail_success {
    color: #28a745;
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
}

/* Erreur : Rouge */
.verifymail_error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
}

/* Titre du statut */
.verifymail_status_title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2e3a49;
}
/* ---------- */
/* ---------- */




.ezeecam_moncompte{
    margin: 52px auto;
}
.ezeecam_moncompte h2{
    margin: 0 0 32px 0;
}
.ezeecam_moncompte .content section{
    margin: 0;
    padding: 42px;
}
.ezeecam_moncompte .content section.active{
    background-color: #f7f8fa;
}
.ezeecam_moncompte .content section h3{
    color: #2e3a49;
    font-size: 28px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.ezeecam_moncompte .content .profile-section h3{
    border-bottom: 0;
}
.ezeecam_moncompte .content section h4{
    font-size: 20px;
    color: #6c757d;
    margin: 0 0 16px;
    letter-spacing: -.4px;
}
/* ------------------- */
img.stripe_logo{
    margin: 32px 0;
}
/* --- Style pour la section d'achat de points --- */
.points-purchase-section {
    background-color: #ffffff;
    border-radius: 12px;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); */
    padding: 19px 1px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid #b9abff;
    width: 64%;
    position: relative;
    left: 0px;
    right: 0px;
    margin: 2% auto;
}

.points-purchase-section h3 {
    color: #2e3a49;
    margin-bottom: 15px;
    font-size: 24px;
}

.points-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.points-slider-container {
    margin-bottom: 30px;
}

.points-slider-container label {
    display: block;
    font-size: 16px;
    color: #5a6b82;
    margin-bottom: 15px;
}

#points-slider {
    width: 100%;
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    height: 8px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 5px;
    margin: 0 auto;
    display: block;
}

#points-slider:hover {
    opacity: 1;
}

#points-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

#points-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.points-display {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #2e3a49;
}

.points-display .selected-points {
    color: #2e3a49;
    margin-right: 10px;
}

.points-display .calculated-price {
    color: #7451eb;
}

.buy-points-btn {
    display: block!important;
    width: 100%;
    background: #7451eb; 
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 16px!important;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.buy-points-btn:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* --- Style pour les résultats de simulation --- */
.simulation-results {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
}

.simulation-results h4 {
    color: #2e3a49;
    margin-bottom: 15px;
    font-size: 18px;
}

.simulation-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simulation-results li {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    color: #555;
    font-size: 16px;
}

.simulation-results li:last-child {
    border-bottom: none;
}
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Overlay blanc semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Au-dessus du contenu */
    border-radius: 12px; /* Correspond au rayon du conteneur parent */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #7451eb; /* Couleur principale pour le spinner */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Style pour les boutons de sélection de période (Par Mois / Par Année) --- */
.price-toggle-container {
    display: flex;
    width: fit-content;
    white-space: nowrap;
    margin: 16px auto; /* Centre le toggle */
    border: 1px solid #dce1e6;
    border-radius: 50px;
    background-color: #f7f8fa;
    border: 1px solid #7451eb;
}
.price-toggle-container.no_recurring{
    border: 1px solid #d1d2d5;
    background-color: #f4f6f9;
}
.price-toggle-container button {
    flex: 1;
    padding: 2px 18px;
    border: none;
    background-color: transparent;
    color: #5a6b82;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    width: 50%;
}
.price-toggle-container button.month_plan{
    border-radius: 50px 0 0 50px;
}
.price-toggle-container button.year_plan{
    position: relative;
    border-radius: 0 50px 50px 0;
}
.price-toggle-container span{
    color: #5a6b82;
    font-size: 14px;
    font-weight: lighter;
    padding: 2px 18px;
    font-style: italic;
    letter-spacing: 0;
}
.price-toggle-container button:hover:not(.active) {
    background-color: #e9edf2;
    color: #2e3a49;
}

.price-toggle-container button.active {
    background-color: #7451eb;
    border: 1px solid #7451eb;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}
.popup_pay.visible {
    opacity: 1;
    visibility: visible;
}
.popup_pay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7fafc;
    display: flex;
    z-index: 99999;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.close_popup_pay{
    position: absolute;
    right: 16px;
    top: 16px;
    cursor: pointer;
}
.close_popup_pay .material-symbols-outlined{
    font-size: 32px;
}
.popup-step .popup_back_btn{
    box-sizing: border-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    position: absolute;
    left: 16px;
    top: 16px;
    cursor: pointer;
    width: 170px;
}
.popup-step .popup_back_btn span{
    display: block;
    font-weight: 700;
    line-height: 1;
    font-size: 20px;
}
.popup-step .popup_back_btn .material-symbols-outlined{
    background-color: #2e3a49;
    color: #fff;
    padding: 4px;
    border-radius: 50px;
    margin: 0 12px;
    font-size: 22px;
}
/* Conteneur intérieur du popup */
.popup_pay_inner {
    width: 100%;
}
.popup_pay_inner .popup-step{
    position: relative;
    box-sizing: border-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    overflow: hidden;
    height: 100vh;
}

.stripe_module{
    background-color: #fff;
}
.inner_stripe_module{
    width: auto;
}

/* success payment popup */
.payment-feedback-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99999;
}
.payment-feedback-popup.visible {
  opacity: 1;
  visibility: visible;
}
.payment-feedback-inner {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  animation: popupFadeIn 0.35s ease;
  position: relative;
}
img.state_payment{
    width: 120px;
}
.payment-feedback-popup.success .icon-feedback span, 
.payment-feedback-popup.error .icon-feedback span{
    display: block;
}

.payment-feedback-inner h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2e3b2d;
}
.payment-feedback-inner p {
  font-size: 17px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 25px;
}
.btn-return {
  background-color: #7451eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  padding: 12px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-return:hover {
  background-color: #6540e1;
}
.close-popup{
    position: absolute;
    top: 0;
    right: 15px;
    line-height: 1;
    font-size: 44px;
    color: #666;
    cursor: pointer;
}
@keyframes popupFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* SPINNER PAYMENT */
.global-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  font-family: "Inter", sans-serif;
}

.spinner-container {
  text-align: center;
}

/* .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(108, 157, 60, 0.2);
  border-top-color: #6c9d3c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px;
} */

.spinner-container p {
  color: #2e3a49;
  font-size: 17px;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----- */


/* Sections gauche (détails) et droite (paiement) */
.purchase_details, .points-slider-container, .stripe_module {
    box-sizing: border-box;
    padding: 40px;
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    max-width: 50%;
}
.points-slider-container{
    background-color: #fff;
}
.purchase_details, .stripe_module, .points-slider-container{
    box-sizing: border-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
}
.purchase_details{
    background-color: #f7f8fa;
    -ms-flex-pack: end;
    -webkit-box-pack: end;
    justify-content: flex-end;
    text-align: end;
}
.inner_purchase_details, .inner_point_slider{
    max-width: 500px;
}
/* Titre et logo des cartes */
.payment-title h3{
    margin: 32px 0 0;
}
.payment-title img.stripe_logo {
    width: 130px;
    margin: 0;
}
.payment-title img.accepted_cards{
    width: 190px;
}

/* Labels des champs */
label {
    display: block;
    color: #5a6b82;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 18px;
}
.totla_points_price .final_price{
    display: block;
    font-size: 32px;
    color: #635bff;
    letter-spacing: -1px;
}
/* Conteneur des champs de saisie Stripe */
.cardinputstrip {
    border: .5px solid #cccccc;
    border-radius: 5px;
    padding: 4px 12px;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Style lorsqu'un champ Stripe est actif (focus) */
.cardinputstrip.StripeElement--focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Boîte d'information 3D Secure */
.infos_3d_secure {
    background-color: #f0f5ff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 25px;
    font-size: 13px;
    color: #3a5a8a;
    line-height: 1.5;
}

.infos_3d_secure p {
    margin: 0;
}

/* Bouton de paiement */
.btn.paielunch {
    width: 100%;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn.paielunch:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn.paielunch:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}


/* Messages d'erreur */
.error_cp {
    color: #e53935;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    min-height: 15px; /* Pour éviter que la mise en page ne saute */
}
.metadata-pay-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.metadata-pay-section h2 {
    color: #2e3a49;
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.metadata-card {
    background-color: #fff;
    /* border-bottom: 1px solid #eee; */
    border-bottom: 0;
    padding: 32px 0;
    margin: 0;
}
.metadata-card h3 {
    color: #6c757d;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 22px;
}
.credit-amount {
    font-size: 28px;
    font-weight: 800;
    color: #7451eb;
    margin: 0;
}

.subscription-details p {
    margin: 5px 0;
    color: #666;
    line-height: 1.5;
}

.subscription-details strong {
    color: #2e3a49;
}

.transaction-history {
    list-style: none;
    padding: 0;
    margin: 0;
}

.transaction-history li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.transaction-history li:last-child {
    border-bottom: none;
}

.transaction-type {
    font-weight: bold;
    color: #007bff; /* Blue for type */
    flex-basis: 60%;
}

.transaction-date {
    font-size: 0.9em;
    color: #999;
    flex-basis: 35%;
    text-align: right;
}

#orders {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}
#orders thead {
  background: #f6f6f6;
  font-weight: 600;
}
#orders th, #orders td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
#orders th.order-number{
    text-align: right;
}
#orders .order-date { width: 18%; }
#orders .order-type { width: 20%; }
#orders .order-status { width: 30%; }
#orders .order-price { width: 15%; text-align: right; }
#orders .order-invoice { width: 17%; text-align: right; }

.status.positive {
  color: #28a745;
  font-weight: 600;
}
.status.pending {
  color: #e0a800;
  font-weight: 600;
}

.download-link {
  text-decoration: none;
  color: #0073aa;
}
.download-link:hover {
  text-decoration: underline;
}
.no-ops {
  margin-top: 10px;
  color: #777;
  font-style: italic;
}

/* PAGE MON COMPTE */

/* Responsive adjustments */
@media (max-width: 768px) {
    .transaction-history li {
        flex-direction: column;
        align-items: flex-start;
    }
    .transaction-type, .transaction-date {
        flex-basis: 100%;
        text-align: left;
    }
    .transaction-date {
        margin-top: 5px;
    }
}

/* ===== HEADER / NAVIGATION HAUTE ===== */
.top-nav {
    display: flex;
    align-items: center;
    -ms-flex-pack: end;
    -webkit-box-pack: end;
    justify-content: flex-end;
    text-align: end;
    margin: 16px 0;
    padding: 16px 0;
    border-bottom: 1px solid #cccccc;
    background-color: #fff;
}



/* Zone gauche : bouton premium + déconnexion */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Zone droite : "Bonjour: user" */
.nav-right {
    font-size: 0.95rem;
    color: #2e3a49;
}

/* Bouton "Passer au plan premium" 
    on réutilise le style de base d'un .btn-primary par exemple */
.btn-upgrade{
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #ffb703;
    color: #2e3a49;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    -webkit-transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    -moz-transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    -o-transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    box-shadow: 
        0 5px 10px rgba(227, 100, 20, 0.15), 
        10px 15px 40px rgba(227, 100, 20, 0.1);
}
.btn-upgrade:after{
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffb703;
border-radius: 10px;
z-index: -2;
}
.btn-upgrade:before{
    content: '';
    position: absolute;
    bottom: 0;
    left: -1%;
    width: 0%;
    height: 102%;
    background-color: #fca311;
    -webkit-transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    -moz-transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    -o-transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    transition: 0.3s cubic-bezier(0.75, 0.25, 0.25, 0.75);
    border-radius: 10px;
    z-index: -1;
}
/* .btn-upgrade:hover{
    color: #fff;
} */
.btn-upgrade:hover:before{
    width: 102%;
}


/* Lien "déconnexion" stylisé en simple texte ou bouton 
    (ici texte pour varier) */
.btn-logout {
    color: #7451eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-logout:hover {
    text-decoration: underline;
}
/* ---------------------
    CONTENEUR PRINCIPAL
    --------------------- */
.auth-container{
    padding: 32px;
    margin: auto;
    box-sizing: border-box;
}
.auth-container.container_login{
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}
.auth-container .block_login, .auth-container .block_register{
    -ms-flex-preferred-size: 40%;
    flex-basis: 40%;
    max-width: 40%;
}

.auth-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2e3a49;
}
.auth-container .block_login h2, .auth-container .block_register h2{
    margin: 0 0 16px 0;
}
.auth-container.container_reset_password, .auth-container.container_forgot_password{
    text-align: center;
}
.auth-container.container_forgot_password .auth-form{
    width: 60%;
    margin: auto;
}
p.info_auth{
    width: 50%;
    margin: 16px auto;
}

.container_reset_password .success-message {
  color: #7451eb;
  font-weight: 500;
  margin-top: 10px;
}
.container_reset_password .error-message {
  color: #c9302c;
  font-weight: 500;
  margin-top: 10px;
}

.auth-message {
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
}
.auth-message.success {
  background: #ecf6e7;
  border: 1px solid #7451eb;
  color: #2e3a49;
}
.auth-message.error {
  background: #fae8e8;
  border: 1px solid #c9302c;
  color: #7a1b1b;
}

/* ---------------------
    FORMULAIRE
    --------------------- */
.auth-form{
    padding: 22px;
    background-color: #f7f8fa;
    border-radius: 20px;
    max-width: 600px;
    margin: 22px auto;
}
.auth-form .links{
    margin: 16px 0;
}
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2e3a49;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #7451eb;
}
.input-group .field-error{
    font-size: 14px;
    color: #e63946;
}
/* ---------------------
    BOUTON DE CONNEXION
    --------------------- */
.btn-submit {
    cursor: pointer;
    background-color: #7451eb; /* Couleur demandée */
    color: #fff;
    padding: 8px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    background-color: #5b3cd4; /* Un ton plus foncé */
}

.btn-submit:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---------------------
    LIEN INSCRIPTION
    --------------------- */
.signup-link {
    display: block;
    margin: 8px 0;
    color: #7451eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.signup-link:hover {
    text-decoration: underline;
}

/* ---------------------
    TOAST D'ERREUR
    --------------------- */
.toast-error {
    /* Positionné en haut au centre */
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e74c3c; /* Couleur rouge */
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-weight: 600;
    opacity: 0;
    transition: top 0.4s, opacity 0.4s;
    z-index: 9999;
    top: 20px;
    opacity: 1;
}

/* État "visible" du toast */
.toast-error.show {
    top: 20px;
    opacity: 1;
}


a {
    text-decoration: none;
    color: inherit;
}

/*******************************************
    * DASHBOARD LAYOUT
    *******************************************/
.dashboard-container {
    box-sizing: border-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
}

/* ---------------------
    SIDEBAR (Menu à gauche)
    --------------------- */
.sidebar {
    padding: 1.5rem 1rem;
}

.sidebar h2 {
    color: #2e3a49;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li {
    margin: 0.5rem 0;
}

.menu li a {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    color: #2e3a49;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: #f7f8fa;
}

/* État menu actif */
.menu li a.active {
    background-color: #f7f8fa;
    border: 1px solid #7451eb;
}

/* ---------------------
    CONTENU PRINCIPAL
    --------------------- */
.content {
    flex: 1; /* prend tout l’espace restant */
    padding: 22px;
    overflow-y: auto; /* si le contenu est grand, scrollbar */
}

/* Chaque section est masquée sauf la section active */
section {
    padding: 2rem;
    border-radius: 20px;
}

section.active-section {
    display: block; /* section en cours d’affichage */
}

/* Titres de section */
section h1,section h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #2e3a49;
}

section p {
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #555;
}

/*******************************************
    * BOUTONS & ELEMENTS D’INTERFACE
    *******************************************/
/* Bouton principal (couleur #7451eb) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #7451eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none; /* si on l’utilise sous forme de <a> */
}

.btn-primary:hover {
    background-color: #5b3cd4;
}

.btn-store {
    display: inline-block;
    margin-right: 1rem;
    margin-top: 1rem;
    width: 140px;
    cursor: pointer;
}

.btn-store img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
a:hover.btn-store img, a:focus.btn-store img{
    box-shadow: 0 5px 10px rgb(154 160 185 / 5%), 0 15px 40px rgb(166 173 201 / 20%);
}

/*******************************************
 * STYLE POUR LA SECTION PROFIL
 *******************************************/

/* Conteneur général de chaque sous-section (informations personnelles, facturation...) */
.profile-section {
    margin-bottom: 2rem;
}

/* Titres des sous-sections (h2) */
.profile-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2e3a49;
    border-left: 4px solid #7451eb;
    padding-left: 0.5rem;
}

/* Formulaires */
.personal-info-form,
.billing-info-form {
    background-color: #fff;
    padding: 22px;
    border-radius: 10px;
}

/* Organisation des lignes du formulaire */
.form-row {
    display: flex;
    flex-wrap: wrap; /* pour que le contenu s'adapte sur plusieurs lignes si besoin */
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Groupes de champs */
.form-group {
    flex: 1; /* prend l'espace disponible */
    min-width: 220px; /* largeur minimale pour un champ */
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #6c757d;
}

/* Champs de saisie (input, select, etc.) */
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    letter-spacing: 0;
    transition: border-color 0.3s;
}

/* Effet de focus */
.form-group input:focus,
    .form-group select:focus {
    outline: none;
    border-color: #7451eb;
}

/* Bouton de sauvegarde (déjà défini mais on peut surcharger si besoin) */
.profile-save {
    text-align: right;
    margin-top: 1rem;
}

.profile-save .btn-primary {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
}


/* GOOGLE REGISTER */
/* Conteneur pour espacer */
.google-btn-container {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}
/* Petit séparateur "ou" */
.separator-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    margin: 15px 0;
    font-size: 14px;
}
.separator-text::before, .separator-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.separator-text::before { margin-right: 10px; }
.separator-text::after { margin-left: 10px; }
/* Le bouton Google Style Officiel */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #2e3a49;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0px 16px 0px 0px; /* Padding ajusté pour l'icône */
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.2px;
    cursor: pointer;
    width: 100%;
    height: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: background-color .2s, box-shadow .2s;
}
.btn-google:hover {
    background-color: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-google:active {
    background-color: #eee;
}
/* L'icône SVG */
.icon-google {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: white;
    border-radius: 4px 0 0 4px;
}
.icon-google svg {
    width: 18px;
    height: 18px;
}

/*******************************************
    * RÉPONSIVE
    *******************************************/
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: none;
        border-bottom: 1px solid #ddd;
        padding: 12px;
    }
    .menu {
        box-sizing: border-box;
        display: -ms-flexbox;
        display: -webkit-box;
        display: flex;
        width: 100%;
        margin: 0;
        padding: 16px 0;
        background-color: #fff;
    }
    .menu li {
        margin: 0 6px;
    }
    .menu li a{
        white-space: nowrap;
        background-color: #f7f8fa;
    }
    .content {
        padding: 12px;
    }
    .auth-container.container_login{
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .auth-container .block_login, .auth-container .block_register{
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }
    .auth-form{
        margin: 32px 0;
    }
    .profile-save{
        text-align: center;
    }
}
@media (max-width:768px){
    .ezeecam_moncompte .content section{
        padding: 22px;
    }
}
@media (max-width:650px){
  /* ne pas display:none; on transforme la même table */
  #orders {
    border: 0;
    width: 100%;
  }
  #orders thead {
    display: none;
  }
  #orders tbody tr {
    display: block;
    margin: 12px 0;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
  }
  #orders tbody td {
    display: block;
    border: 0;
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
    text-align: left !important;
  }
  #orders .order-date, #orders .order-type, #orders .order-status, #orders .order-price, #orders .order-invoice {
    width: 100%;
    font-weight: 600;
  }
  #orders tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  /* Le label (texte du th) au-dessus via data-label */
  #orders tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    opacity: .7;
    margin-bottom: 4px;
    line-height: 1.2;
  }
}

@media (max-width: 630px){
    .menu{
        -ms-flex-pack: justify;
        -webkit-box-pack: justify;
        justify-content: space-between;
        background-color: transparent;
    }
    .menu li{
        font-size: 14px;
        margin: auto;
    }
    .popup_pay{
        overflow: scroll;
    }
    .popup_pay_inner{
        background-color: #fff;
    }
    .popup_pay_inner .popup-step{
        -ms-flex-wrap: wrap;
        flex-wrap: wrap; 
        -ms-flex-pack: center;
        -webkit-box-pack: center;
        justify-content: center;
        height: auto;
    }
    .purchase_details, .stripe_module, .points-slider-container{
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        max-width: 100%;
        text-align: left;
        padding: 32px;
        -ms-flex-pack: start;
        -webkit-box-pack: start;
        justify-content: flex-start;
        text-align: start;
        -ms-flex-align: start;
        -webkit-box-align: start;
        align-items: flex-start;
    }
    .purchase_details{
        padding: 82px 32px 32px;
    }
    .inner_purchase_details, .inner_point_slider{
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 530px){
    .menu li a{
        padding: 6px 12px;
    }
}
@media (max-width: 480px){
    .content {
        padding: 0;
    }
    .ezeecam_moncompte h2{
        font-size: 22px;
    }
    .ezeecam_moncompte .content section h3{
        font-size: 18px;
    }
    .top-nav{
        margin: 0;
        background-color: transparent;
    }
    .btn-upgrade{
        font-size: 14px;
    }
    .sidebar{
        padding: 0;
    }
    .menu{
        background-color: #fff;
        overflow-x: scroll;
    }
}
@media (max-width: 400px){
    .menu{
        padding: 16px 12px;
    }
    .wrapper, .wrapper_min{
        width: 100%!important;
    }
    label{
        margin-top: 0;
    }
}