 /* Variables CSS avec alias */
 :root {
     --as-primary-color: #BE2D3C;
     --as-primary-hover: #9e2532;
     --as-border-color: #E5E7EB;
     --as-text-color: #1F2937;
     --as-text-light: #6B7280;
     --as-bg-light: #F9FAFB;
 }

 /* Modal avec alias */
 .as-modal {
     display: none;
 }

 .as-modal.is-open {
     display: block;
 }

 .as-modal__overlay {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.7);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1000;
     animation: asFadeIn 0.3s ease;
 }

 @keyframes asFadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 .as-modal__container {
     background-color: #fff;
     padding: 0;
     max-width: 700px;
     width: 90%;
     max-height: 90vh;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
     animation: asSlideUp 0.3s ease;
 }

 @keyframes asSlideUp {
     from {
         transform: translateY(50px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 .as-modal__header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 20px 24px;
     border-bottom: 1px solid var(--as-border-color);
     background: white;
 }

 .as-modal__title {
     margin: 0;
     font-size: 18px;
     font-weight: 600;
     color: var(--as-primary-color);
 }

 .as-modal__close {
     background: var(--as-primary-color);
     border: none;
     width: 32px;
     height: 32px;
     border-radius: 50%;
     font-size: 22px;
     cursor: pointer;
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
 }



 .as-modal__content {
     padding: 24px;
     max-height: calc(90vh - 80px);
     overflow-y: auto;
 }

 /* Scrollbar */
 .as-modal__content::-webkit-scrollbar {
     width: 6px;
 }

 .as-modal__content::-webkit-scrollbar-track {
     background: var(--as-bg-light);
 }

 .as-modal__content::-webkit-scrollbar-thumb {
     background: #ccc;
     border-radius: 3px;
 }

 /* Sections */
 .as-form-section {
     margin-bottom: 20px;
 }

 .as-section-title {
     font-size: 14px;
     font-weight: 600;
     color: var(--as-text-color);
     margin-bottom: 12px;
 }

 .as-helper-text {
     font-size: 12px;
     color: var(--as-text-light);
     margin-bottom: 12px;
 }

 .as-form-section-spacer {
     height: 24px;
 }

 /* Form Groups */
 .as-form-group {
     margin-bottom: 14px;
 }

 .as-form-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 12px;
 }

 .as-label {
     display: block;
     font-size: 13px;
     font-weight: 400;
     color: var(--as-text-color);
     margin-bottom: 6px;
 }

 .as-optional {
     font-weight: 400;
     color: var(--as-text-light);
     font-size: 12px;
 }

 .as-form-control {
     width: 100%;
     padding: 10px 12px;
     font-size: 14px;
     border: 1px solid var(--as-border-color);
     border-radius: 6px;
     transition: all 0.2s;
     background: white;
 }

 .as-form-control:focus {
     outline: none;
     border-color: var(--as-primary-color);
 }

 .as-form-control::placeholder {
     color: #9CA3AF;
 }

 /* Ticket Cards */
 .as-ticket-list {
     display: flex;
     flex-direction: column;
     gap: 10px;
 }

 .as-ticket-card {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 8px 12px;
     border: 1px solid var(--as-border-color);
     border-radius: 6px;
     background: white;
 }

 .as-ticket-info {
     flex: 1;
 }

 .as-ticket-name {
     font-size: 13px;
     font-weight: 500;
     color: var(--as-text-color);
     margin: 0;
     display: inline;
     margin-right: 8px;
 }

 .as-ticket-price {
     font-size: 14px;
     font-weight: 500;
     color: var(--as-text-light);
     margin: 0;
     white-space: nowrap;
     /* empêche tout retour à la ligne */
     display: inline-flex;
     align-items: baseline;
     gap: 3px;
 }

 .as-devise {
     font-size: 12px;
     font-weight: 500;
     color: var(--as-text-light);
 }

 /* Quantity Controls */
 .as-ticket-quantity {
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .as-qty-btn {
     width: 28px;
     height: 28px;
     border: 1px solid var(--as-border-color);
     background: white;
     border-radius: 4px;
     font-size: 16px;
     font-weight: 500;
     color: var(--as-text-color);
     cursor: pointer;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .as-qty-btn:hover {
     border-color: var(--as-primary-color);
     color: var(--as-primary-color);
 }

 .as-ticket-qty {
     width: 40px;
     height: 28px;
     text-align: center;
     font-size: 13px;
     font-weight: 500;
     border: 1px solid var(--as-border-color);
     border-radius: 4px;
     background: var(--as-bg-light);
     color: var(--as-text-color);
     pointer-events: none;
 }

 /* Total Section */
 .as-total-section {
     margin: 20px 0 10px 0;
 }

 .as-total-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .as-total-label {
     font-size: 13px;
     font-weight: 500;
     color: var(--as-text-color);
 }

 .as-total-amount {
     font-size: 18px;
     font-weight: 700;
     color: var(--as-primary-color);
 }

 /* Delivery Note */
 .as-delivery-note {
     font-size: 11px;
     color: var(--as-text-light);
     font-style: italic;
     text-align: center;
     margin: 12px 0 16px 0;
 }

 /* Actions */
 .as-form-actions {
     margin-top: 20px;
 }

 .as-btn {
     width: 100%;
     padding: 12px 24px;
     font-size: 14px;
     font-weight: 600;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     transition: all 0.2s;
 }

 .as-btn-primary {
     background: var(--as-primary-color);
     color: white;
 }

 .as-btn-primary:hover {
     background: var(--as-primary-hover);
 }

 /* Responsive */
 @media (max-width: 640px) {
     .as-modal__container {
         width: 95%;
     }

     .as-modal__content {
         padding: 20px;
     }

     .as-ticket-card {
         flex-direction: column;
         align-items: flex-start;
         gap: 10px;
     }

     .as-ticket-quantity {
         width: 100%;
         justify-content: flex-end;
     }

     .as-form-row {
         grid-template-columns: 1fr;
     }
 }

 .as-ticket-quantity {
     width: 100%;
     justify-content: flex-end;
 }

 .as-form-actions {
     flex-direction: column-reverse;
 }

 .as-btn {
     width: 100%;
 }

 .modal {
     display: none;
 }

 .modal.is-open {
     display: block;
 }

 .modal__overlay {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.6);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1000;
 }

 .modal__container {
     background-color: #fff;
     padding: 30px;
     max-width: 500px;
     max-height: 100vh;
     border-radius: 10px;
     overflow-y: auto;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
 }

 .modal__header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 20px;
 }

 .modal__title {
     margin: 0;
     font-size: 24px;
     color: #333;
 }

 .modal__close {
     background: transparent;
     border: none;
     font-size: 28px;
     cursor: pointer;
     color: #666;
 }

 .modal__close:hover {
     color: #000;
 }

 .modal__content {
     line-height: 1.6;
     color: #555;
 }