
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
            min-height: 100vh;
            padding: 20px;
        }

        .calendar-container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .calendar-header {
            background: linear-gradient(45deg, #2196F3, #21CBF3);
            color: white;
            padding: 30px;
            text-align: center;
            transition: background 0.3s ease;
        }

        .calendar-header.transport {
            background: linear-gradient(45deg, #49ad71, #4f93a3);
        }

        .calendar-header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: 300;
        }

        .calendar-header p {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .calendar-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 0;
        }

        .day-header {
            background: #f8f9fa;
            padding: 20px 15px;
            font-weight: 600;
            font-size: 1.1em;
            color: #495057;
            border-bottom: 3px solid #e9ecef;
            text-align: center;
            vertical-align: top;
            width: 100px;
            position: sticky;
            left: 0;
            z-index: 10;
        }

        .day-slots {
            padding: 15px;
            background: #ffffff;
            border-bottom: 1px solid #e9ecef;
            vertical-align: top;
        }

        .time-slot {
            display: inline-block;
            margin: 3px;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            min-width: 65px;
            text-align: center;
        }

        .time-slot.free {
            background: linear-gradient(45deg, #4CAF50, #45a049);
            color: white;
            border: 2px solid transparent;
        }

        .time-slot.free:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
            cursor: pointer;
        }

        a:hover .time-slot.free {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.6);
        }

        .time-slot.busy {
            background: linear-gradient(45deg, #f44336, #d32f2f);
            color: white;
            border: 2px solid transparent;
        }

        .time-slot.busy:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
        }

        .time-slot.past {
            background: linear-gradient(45deg, #9e9e9e, #757575);
            color: white;
            border: 2px solid transparent;
            opacity: 0.6;
            cursor: not-allowed;
        }

        .time-slot.past:hover {
            transform: none;
            box-shadow: none;
        }

        .legend {
            padding: 20px 30px;
            background: #f8f9fa;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
        }

        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 50%;
        }

        .legend-free {
            background: linear-gradient(45deg, #4CAF50, #45a049);
        }

        .legend-busy {
            background: linear-gradient(45deg, #f44336, #d32f2f);
        }

        .legend-past {
            background: linear-gradient(45deg, #9e9e9e, #757575);
        }

        .ticket-link {
            text-decoration: none;
            background: linear-gradient(45deg, #17b983, #29c765);
            padding: 10px 20px;
            border: 2px solid white;
            margin-bottom: 10px;
        }

        .ticket-link-a{
            text-decoration: none;
            color: white;
            font-weight: 500;
        }

        .tabs {
            display: flex;
            background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
        }

        .tab {
            flex: 1;
            padding: 15px 20px;
            background: #c4c4c4ff;
            border: none;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 500;
            color: #495057;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }

        .tab.active {
            background: white;
            color: #2196F3;
            border-bottom-color: #2196F3;
        }

        .tab:hover {
            background: #e9ecef;
        }

        .tab.active:hover {
            background: white;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .tab-label {
            vertical-align: middle;
            margin-right: 10px;
        }

        @media (max-width: 768px) {
            .calendar-header h1 {
                font-size: 2em;
            }

            .day-header {
                width: 80px;
                padding: 15px 10px;
            }

            .time-slot {
                min-width: 55px;
                padding: 6px 8px;
                font-size: 0.75em;
            }

            .tab {
                padding: 12px 15px;
                font-size: 1em;
            }
        }

        /* Styles pour le popup */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .popup-content {
            background: white;
            width: 80%;
            height: 80%;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            /*justify-content: center;*/
            align-items: center;
            text-align: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .popup-message {
            font-size: 2.5em;
            color: #333;
            margin-bottom: 40px;
            line-height: 1.3;
            font-weight: 300;
        }

        .popup-checkbox-container {
            margin: 30px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .popup-checkbox {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .popup-link {
            color: #2196F3;
            text-decoration: none;
            font-size: 1.2em;
            font-weight: 500;
        }

        .popup-link:hover {
            text-decoration: underline;
        }

        .popup-button {
            background: linear-gradient(45deg, #2196F3, #21CBF3);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 1.3em;
            font-weight: 500;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .popup-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
        }

        .popup-button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .button-loader {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .button-loader.hidden {
            display: none;
        }

        .spinner {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        .hidden {
            display: none !important;
        }

        /* Styles pour le popup d'informations vendeur */
        .vendor-info-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 100%;
            max-width: 400px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .form-group-line{
            margin-top: 7px;
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
            gap: 10px;
        }
        .price-euro{
            border: none; 
            background-color: transparent; 
            padding: 0; 
            height: auto;
        }

        .form-label {
            font-size: 1.1em;
            font-weight: 500;
            color: #333;
            text-align: left;
        }

        .form-input {
            padding: 12px 15px;
            font-size: 1em;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            transition: border-color 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: #2196F3;
        }

        .form-input.required {
            border-color: #f44336;
        }

        .popup-info-message {
            font-size: 1.3em;
            color: #333;
            margin-bottom: 20px;
            line-height: 1.3;
            font-weight: 400;
        }

        /* Styles pour le popup de réservation */
        .reservation-popup {
            width: 90%;
            max-width: 500px;
            height: auto;
            max-height: 85%;
            overflow-y: auto;
        }

        .reservation-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 100%;
        }

        .form-row {
            display: flex;
            flex-direction: column;
        }

        .form-row .form-group {
            flex: 1;
        }

        .form-select {
            padding: 12px 15px;
            font-size: 1em;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            background-color: white;
            cursor: pointer;
            transition: border-color 0.3s ease;
        }

        .form-select:focus {
            outline: none;
            border-color: #2196F3;
        }

        /* Styles pour les contrôles PAX avec boutons + et - */
        .pax-input-container {
            display: flex;
            align-items: center;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            overflow: hidden;
            background-color: white;
            transition: border-color 0.3s ease;
        }

        .pax-input-container:focus-within {
            border-color: #2196F3;
        }

        .pax-button {
            width: 40px;
            height: 48px;
            border: none;
            background-color: #f8f9fa;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            color: #495057;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pax-button:hover {
            background-color: #e9ecef;
            color: #2196F3;
        }

        .pax-button:active {
            background-color: #dee2e6;
            transform: scale(0.95);
        }

        .pax-button:disabled {
            background-color: #f8f9fa;
            color: #ced4da;
            cursor: not-allowed;
            opacity: 0.6;
        }

        .pax-decrease {
            border-right: 1px solid #e9ecef;
        }

        .pax-increase {
            border-left: 1px solid #e9ecef;
        }

        .pax-input {
            flex: 1;
            padding: 12px 15px;
            font-size: 1em;
            border: none;
            background-color: white;
            text-align: center;
            font-weight: 500;
            color: #495057;
            cursor: default;
        }

        .pax-input:focus {
            outline: none;
        }

        .reservation-title {
            font-size: 1.8em;
            color: #333;
            margin-bottom: 15px;
            text-align: center;
            font-weight: 500;
        }

        .price-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .price-link {
            color: #2196F3;
            text-decoration: none;
            font-weight: 500;
        }

        .price-link:hover {
            text-decoration: underline;
        }

        .event-info {
            background: #e3f2fd;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: 500;
        }

        .pickup-field {
            display: none;
        }

        .pickup-field.show {
            display: flex;
        }

        .baby-field {
            display: none;
        }

        .baby-field.show {
            display: flex;
        }

        .close-popup {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #fdfdfd;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-popup:hover {
            color: #333;
        }

        /* Styles pour le popup de preuve d'achat */
        .proof-popup {
            width: 90%;
            max-width: 450px;
            height: auto;
            padding: 30px;
        }

        .proof-title {
            font-size: 1.5em;
            color: #333;
            margin-bottom: 15px;
            text-align: center;
            font-weight: 600;
        }

        .proof-message {
            font-size: 1.1em;
            color: #555;
            margin-bottom: 10px;
            text-align: center;
            line-height: 1.4;
        }

        .photo-section {
            margin: 5px 0;
            text-align: center;
        }

        .photo-button {
            background: linear-gradient(45deg, #4CAF50, #45a049);
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 1.2em;
            font-weight: 500;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 0 auto 20px auto;
            min-width: 200px;
        }

        .photo-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
        }

        .photo-preview {
            margin-top: 20px;
            text-align: center;
        }

        .photo-preview img {
            max-width: 100%;
            max-height: 200px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .photo-status {
            margin-top: 15px;
            padding: 10px;
            border-radius: 5px;
            font-weight: 500;
        }

        .photo-status.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .photo-status.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .summary-container {
            
            overflow-y: auto;
            margin-bottom: 10px;
            text-align: left;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 10px 20px;
            background-color: #f8f9fa;
        }
        .summary-container li{
            margin-top: 8px;
            font-size: 1em;
            color: #333;
            line-height: 1.4;
            border-bottom: 1px solid #dee2e6;
            padding-bottom: 8px;
        }
        
        .summary-container li:last-child {
            border-bottom: none;
        }

        .validate-button {
            background: linear-gradient(45deg, #FF9800, #F57C00);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 1.3em;
            font-weight: 500;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 15px;
            width: 100%;
        }

        .validate-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
        }

        .validate-button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .hidden-input {
            display: none;
        }

        /* Styles pour le popup de confirmation */
        .confirmation-popup {
            width: 90%;
            max-width: 500px;
            height: auto;
            padding: 30px;
        }

        .confirmation-title {
            font-size: 2em;
            color: #4CAF50;
            margin-bottom: 0px;
            text-align: center;
            font-weight: 600;
        }

        .confirmation-message {
            font-size: 1.2em;
            color: #333;
            margin-bottom: 0px;
            text-align: center;
            line-height: 1.4;
        }

        .reservation-number {
            background: linear-gradient(45deg, #4CAF50, #45a049);
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            font-size: 1.4em;
            font-weight: bold;
            text-align: center;
            margin: 0 0;
            letter-spacing: 2px;
        }

        .reservation-details {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
            border-left: 4px solid #4CAF50;
        }

        .reservation-details h3 {
            color: #333;
            margin-bottom: 15px;
            font-size: 1.3em;
        }

        .detail-item {
            display: flex;
            align-items: center;
            margin: 10px 0;
            font-size: 1.1em;
        }

        .detail-label {
            font-weight: 600;
            color: #555;
            margin-right: 10px;
            min-width: 100px;
        }

        .detail-value {
            color: #333;
            flex: 1;
        }

        .share-client-button {
            background: linear-gradient(45deg, #25D366, #128C7E);
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 1.2em;
            font-weight: 500;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: -10px;
        }

        .share-client-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
        }

        .success-icon {
            font-size: 3em;
            color: #4CAF50;
            text-align: center;
            margin-bottom: 15px;
        }

        @media (max-width: 768px) {
            .popup-content {
                width: 95%;
                height: 85%;
                padding: 20px;
            }

            .popup-message {
                font-size: 1.8em;
            }

            .popup-info-message {
                font-size: 1.1em;
            }

            .popup-link {
                font-size: 1em;
            }

            .popup-button {
                font-size: 1.1em;
                padding: 12px 30px;
            }

            .form-input {
                font-size: 0.9em;
                padding: 10px 12px;
            }

            .form-label {
                font-size: 1em;
            }

            .pax-error-message {
                font-size: 0.9em;
                padding: 8px 15px;
            }
        }

        /* PAX Error Message Styles */
        .pax-error-message {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            border-radius: 8px;
            padding: 12px 20px;
            margin: 15px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1em;
            font-weight: 500;
            animation: errorSlideIn 0.3s ease-out;
        }

        .pax-error-message.hidden {
            display: none;
        }

        .pax-error-message .error-icon {
            font-size: 1.2em;
            flex-shrink: 0;
        }

        .pax-error-message .error-text {
            flex-grow: 1;
        }

        #maxPaxLimit {
            font-weight: 700;
            color: #5a1a1a;
        }

        @keyframes errorSlideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Styles pour pax-group et age-span */
        .pax-group {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .age-span {
            color: #666;
            font-weight: 300;
            font-size: 0.9em;
        }

        .availability-badge {
            display: block;
            font-size: 1em;
            /*background: rgba(173, 173, 173, 0.3);*/
            border-radius: 8px;
            padding: 2px 6px;
            margin-top: 3px;
            font-weight: 500;
        }

        /* Style pour le select de formule quand aucune option n'est sélectionnée */
        #formula[style*="color: red"] {
            color: red !important;
        }

        /* Alternative plus robuste */
        #formula.placeholder-red {
            color: red !important;
        }
