/* ========== Payment Page Styles ========== */
@import url('./styles.css');

/* ========== Payment-specific styles ========== */

/* Container size for payment page */
.container {
    width: min(var(--container-width-md), 90%);
}

/* Stripe Pricing Table Container */
.pricing-table-container {
    margin: 24px 0;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 820px;
}

/* Payment Success/Error Popup Styles */
.payment-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.payment-popup.payment-popup-show {
    opacity: 1;
    visibility: visible;
}

.payment-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-popup-content {
    background: var(--card);
    border-radius: var(--radius-md);
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.payment-popup-show .payment-popup-content {
    transform: scale(1);
}

.payment-popup-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 600;
}

.payment-popup-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.payment-popup-close:hover {
    background: var(--bg);
    color: var(--text);
}

.payment-popup-body {
    padding: 16px 24px;
    text-align: center;
}

.payment-popup-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.payment-popup-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.payment-popup-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.payment-popup-btn:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
}

.payment-popup-btn:active {
    background: var(--accent-700);
    transform: translateY(0);
}

/* Success popup styling */
.payment-popup-success .payment-popup-header h3 {
    color: #21a67a;
}

.payment-popup-success .payment-popup-btn {
    background: #21a67a;
}

.payment-popup-success .payment-popup-btn:hover {
    background: #1e9268;
}

/* Warning popup styling */
.payment-popup-warning .payment-popup-header h3 {
    color: #f59e0b;
}

.payment-popup-warning .payment-popup-btn {
    background: #f59e0b;
}

.payment-popup-warning .payment-popup-btn:hover {
    background: #d97706;
}

/* Error popup styling */
.payment-popup-error .payment-popup-header h3 {
    color: #d64545;
}

.payment-popup-error .payment-popup-btn {
    background: #d64545;
}

.payment-popup-error .payment-popup-btn:hover {
    background: #c53030;
}

/* ====== Payment-specific responsive ====== */
@media (max-width: 1024px){
  .container{ width:min(940px, 94%); }
}

@media (max-width: 520px){
  .pricing-table-container{ padding: 16px }
  
  /* Mobile responsive for popups */
  .payment-popup-content {
    margin: 20px;
    max-width: none;
  }
  
  .payment-popup-header,
  .payment-popup-body,
  .payment-popup-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Motion safe */
@media (prefers-reduced-motion: reduce){
  .payment-popup-btn{ transition:none }
}

/* Force le background pattern sur la page index */
body {
  /* vars */
  --s: 200px;                /* taille du motif */
  --c1: #FA682E;             /* orange */
  --c2: #140600;             /* noir profond */

  --_g: var(--c2) 4% 14%, var(--c1) 14% 24%, var(--c2) 22% 34%,
        var(--c1) 34% 44%, var(--c2) 44% 56%, var(--c1) 56% 66%,
        var(--c2) 66% 76%, var(--c1) 76% 86%, var(--c2) 86% 96%;

  /* reset + apply */
  background: radial-gradient(100% 100% at 100% 0, var(--c1) 4%, var(--_g), #0008 96%, #0000),
              radial-gradient(100% 100% at 0 100%, #0000, #0008 4%, var(--_g), var(--c1) 96%) var(--c1) !important;
  background-size: var(--s) var(--s) !important;
}

/* Ajustement des largeurs pour la page Payment */
.container {
  width: 80% !important;
  max-width: none !important; /* enlève la limite à 820px héritée */
}

.pricing-table-container {
  width: 95% !important;
  max-width: none !important;
}

/* ========== Notification Popup Styles ========== */
.notification-popup { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 10000; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
    max-width: 400px; 
}

.notification-popup.notification-popup-show { 
    opacity: 1; 
    visibility: visible; 
}

.notification-popup-content { 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
    overflow: hidden; 
    border-left: 5px solid #28a745; 
    transform: translateX(100%); 
    transition: transform 0.3s ease; 
}

.notification-popup-show .notification-popup-content { 
    transform: translateX(0); 
}

.notification-popup-header { 
    padding: 15px 20px 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #eee; 
}

.notification-popup-header h3 { 
    margin: 0; 
    font-size: 1.1em; 
    color: #28a745; 
}

.notification-popup-close { 
    background: none; 
    border: none; 
    font-size: 1.5em; 
    cursor: pointer; 
    color: #999; 
    padding: 0; 
    width: 25px; 
    height: 25px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: all 0.3s ease; 
}

.notification-popup-close:hover { 
    background: #f0f0f0; 
    color: #666; 
}

.notification-popup-body { 
    padding: 15px 20px 20px; 
}

.notification-popup-body p { 
    margin: 0; 
    font-size: 1em; 
    line-height: 1.5; 
    color: #555; 
}

.notification-popup-success .notification-popup-content { 
    border-left-color: #28a745; 
}

.notification-popup-success .notification-popup-header h3 { 
    color: #28a745; 
}

.notification-popup-warning .notification-popup-content { 
    border-left-color: #ffc107; 
}

.notification-popup-warning .notification-popup-header h3 { 
    color: #ffc107; 
}

.notification-popup-error .notification-popup-content { 
    border-left-color: #dc3545; 
}

.notification-popup-error .notification-popup-header h3 { 
    color: #dc3545; 
}

.notification-popup-info .notification-popup-content { 
    border-left-color: #17a2b8; 
}

.notification-popup-info .notification-popup-header h3 { 
    color: #17a2b8; 
}
