        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background-color: #f5f5f5;
            color: #333;
        }

        .app {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .main-content {
            flex: 1;
            padding: 20px;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
        }

        /* Navigation */
        .navigation {
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .nav-logo img {
            height: 50px;
            width: auto;
            object-fit: contain;
        }

        .nav-logo h1 {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
            color: white;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 0;
            margin: 0;
            padding: 0;
        }

        .nav-menu li {
            margin: 0;
        }

        .nav-link {
            background: none;
            border: none;
            color: white;
            padding: 20px 25px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: block;
            position: relative;
            font-family: inherit;
        }

        .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .nav-link.active {
            background-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            gap: 5px;
        }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background: white;
            transition: all 0.3s ease;
        }

        /* Accueil */
        .accueil {
            padding: 40px 0;
        }

        .hero-section {
            text-align: center;
            padding: 0;
            background: transparent;
            border-radius: 12px;
            margin-bottom: 40px;
        }

        .hero-section img {
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            display: block;
        }

        .hero-section h1 {
            font-size: 3rem;
            margin-bottom: 15px;
            font-weight: 700;
            display: none;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            opacity: 0.95;
            font-weight: 300;
            margin-top: 20px;
            color: #333;
        }

        .content-section-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .info-card {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .info-card h2 {
            color: #667eea;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        .info-card p {
            color: #666;
            line-height: 1.6;
            font-size: 1rem;
        }

        /* Sections */
        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
        }

        .les-meutes,
        .le-club {
            padding: 40px 0;
        }

        .les-meutes h1,
        .le-club h1 {
            font-size: 2.5rem;
            margin-bottom: 30px;
            color: #333;
        }

        .meutes-content,
        .club-content {
            background: white;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .coming-soon {
            text-align: center;
            padding: 60px 20px;
            color: #999;
            font-size: 1.2rem;
        }

        /* Adhésion Form */
        .adhesion {
            padding: 20px 0;
        }

        .adhesion h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: #333;
            text-align: center;
        }

        .adhesion-limit-info {
            text-align: center;
            margin-bottom: 20px;
            font-size: 1rem;
            color: #666;
            font-weight: 500;
            padding: 8px 15px;
            display: block;
        }

        .adhesion-limit-info.limit-reached {
            color: #dc3545;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .adhesion-content {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .adhesion-form {
            max-width: 900px;
            margin: 0 auto;
        }

        .form-section {
            margin-bottom: 10px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e0e0e0;
        }

        .form-section:last-of-type {
            border-bottom: none;
        }

        .form-section h2 {
            font-size: 1.5rem;
            color: #667eea;
            margin-bottom: 20px;
        }

        .form-section h3 {
            font-size: 1.2rem;
            color: #555;
            margin-bottom: 15px;
            margin-top: 20px;
        }

        .form-group {
            margin-bottom: 10px;
            display: block;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
        }

        .form-group input[type="text"],
        .form-group input[type="date"],
        .form-group input[type="number"],
        .form-group input[type="email"],
        .form-group select {
            width: 100%;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-group.inline-group {
            display: flex;
            align-items: center;
            flex-direction: row;
            gap: 20px;
        }

        .form-group.inline-group label {
            margin-bottom: 0;
        }

        .radio-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .radio-group.vertical {
            flex-direction: column;
            gap: 10px;
        }

        .radio-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-weight: normal;
        }

        .radio-label input[type="radio"] {
            width: auto;
            margin: 0;
            cursor: pointer;
        }

        .checkbox-group {
            display: flex;
            flex-direction: wrap;
            gap: 30px;
        }

        .checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
            font-weight: normal;
        }

        .checkbox-label input[type="checkbox"] {
            width: auto;
            margin-top: 4px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .checkbox-label input[type="checkbox"]:disabled {
            cursor: not-allowed;
            opacity: 0.7;
        }

        .checkbox-label:has(input[type="checkbox"]:disabled) {
            opacity: 0.7;
            cursor: not-allowed;
            color: #999;
        }

        .checkbox-label:has(input[type="checkbox"]:disabled) span {
            color: #999;
        }

        .health-questionnaire {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .health-questionnaire p {
            margin-bottom: 10px;
            color: #555;
            line-height: 1.6;
        }

        .dossier-section {
            margin-top: 15px;
        }

        .form-note {
            font-size: 0.9rem;
            color: #666;
            font-style: italic;
            margin-top: 5px;
            margin-left: 28px;
        }

        .checkbox-note {
            font-size: 0.75rem;
            color: #070707;
            font-style: italic;
            margin: 2px 0 0 28px;
            padding: 0;
        }

        .form-actions {
            margin-top: 40px;
            text-align: center;
        }

        .submit-button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 6px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            font-family: inherit;
        }

        .submit-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .submit-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* HelloAsso Card Styles */
        .helloasso-card {
            background-color: #2e3359;
            /* Dark blue from image */
            color: white;
            border-radius: 12px;
            padding: 30px;
            margin: 30px auto;
            max-width: 700px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            text-align: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .helloasso-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 25px;
        }

        .helloasso-logo {
            height: 40px;
            width: auto;
        }

        .helloasso-brand {
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: -1px;
        }

        .helloasso-body p {
            margin-bottom: 15px;
            line-height: 1.5;
            font-size: 1.05rem;
            opacity: 0.9;
        }

        .helloasso-body p.highlight {
            font-weight: 700;
            opacity: 1;
            font-size: 1.1rem;
        }

        .payment-amount {
            font-size: 1.4rem;
            font-weight: 700;
            margin: 30px 0;
            padding: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .helloasso-pay-button {
            background-color: #99c000;
            /* Green from image */
            color: #1a1a1a;
            border: none;
            padding: 14px 40px;
            font-size: 1.2rem;
            font-weight: 700;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(153, 192, 0, 0.3);
        }

        .helloasso-pay-button:hover {
            background-color: #add900;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(153, 192, 0, 0.4);
        }

        .helloasso-pay-button:active {
            transform: translateY(0);
        }

        .payment-methods {
            margin-top: 10px;
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .payment-logos {
            height: 35px;
            opacity: 0.9;
        }

        .message {
            padding: 15px;
            border-radius: 4px;
            margin-bottom: 20px;
            display: none;
            white-space: pre-wrap;
        }

        .message.active {
            display: block;
        }

        .message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }

            .radio-group {
                flex-direction: column;
                gap: 10px;
            }

            .adhesion-content {
                padding: 20px;
            }

            /* Keep checkbox and button on same line on mobile, but allow wrapping in button */
            .form-group-with-button {
                flex-direction: row !important;
                align-items: center !important;
                gap: 10px;
            }

            .form-group-with-button .small-button {
                width: auto;
                min-width: auto;
                white-space: normal;
                padding: 5px 8px;
                font-size: 0.75rem;
                line-height: 1.2;
                height: auto;
                text-align: center;
            }

            /* Adjust checkbox note margin for mobile */
            .checkbox-note {
                margin-left: 28px;
            }

            /* Increase checkbox size on mobile for better touch targets */
            .checkbox-label input[type="checkbox"] {
                width: 24px;
                height: 24px;
                margin-top: 0;
            }
        }

        /* Admin */
        .admin {
            padding: 40px 0;
        }

        .admin h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: #333;
        }

        .admin-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            border-bottom: 2px solid #e0e0e0;
        }

        .tab-button {
            background: none;
            border: none;
            padding: 15px 30px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            color: #666;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .tab-button:hover {
            color: #333;
            background-color: #f5f5f5;
        }

        .tab-button.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        .admin-panel {
            display: none;
        }

        .admin-panel.active {
            display: block;
        }

        .admin-section-card {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .admin-section-card h2 {
            color: #333;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }

        .error-message {
            background: #fee;
            color: #c33;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #c33;
            display: none;
        }

        .error-message.active {
            display: block;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
            font-size: 1.1rem;
        }

        /* Members Table */
        .members-table-container {
            overflow-x: auto;
        }

        .members-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }

        .members-table thead {
            background: #f8f9fa;
        }

        .members-table th {
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #333;
            border-bottom: 2px solid #e0e0e0;
            text-transform: uppercase;
            font-size: 0.85em;
            letter-spacing: 0.5px;
        }

        .members-table td {
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
            color: #555;
        }

        .members-table tbody tr:hover {
            background: #f8f9fa;
        }

        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.85em;
            font-weight: 500;
        }

        .badge-masculin {
            background: #e3f2fd;
            color: #1976d2;
        }

        .badge-feminin {
            background: #fce4ec;
            color: #c2185b;
        }

        .email-link {
            color: #667eea;
            text-decoration: none;
        }

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

        .no-email {
            color: #999;
            font-style: italic;
        }

        .no-data {
            text-align: center;
            padding: 40px;
            color: #999;
        }

        .members-count {
            text-align: right;
            color: #666;
            font-weight: 500;
            margin-top: 10px;
        }

        /* Inscriptions Table */
        .inscriptions-table-container {
            overflow-x: auto;
        }

        .inscriptions-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }

        .inscriptions-table thead {
            background: #f8f9fa;
        }

        .inscriptions-table th {
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #333;
            border-bottom: 2px solid #e0e0e0;
            text-transform: uppercase;
            font-size: 0.85em;
            letter-spacing: 0.5px;
        }

        .inscriptions-table td {
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
            color: #555;
        }

        .inscriptions-table tbody tr:hover {
            background: #f8f9fa;
        }

        .inscriptions-count {
            text-align: right;
            color: #666;
            font-weight: 500;
            margin-top: 10px;
        }

        /* Payment status badges */
        .badge-en.attente {
            background: #fff3cd;
            color: #856404;
        }

        .badge-new {
            background-color: lightblue;
            color: #004085;
        }

        .badge-confirmé {
            background: #d4edda;
            color: #155724;
        }

        .badge-annulé {
            background: #f8d7da;
            color: #721c24;
        }

        /* Active/Inactive badges */
        .badge-actif {
            background: #d4edda;
            color: #155724;
            font-weight: bold;
        }

        .badge-inactif {
            background: #f8d7da;
            color: #721c24;
            font-weight: bold;
        }


        /* Saisons */
        .saisons-layout {
            display: grid;
            grid-template-columns: 9fr 11fr;
            gap: 30px;
        }

        .saison-form-container,
        .saisons-list-container {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 8px;
        }

        .saison-form-container h2,
        .saisons-list-container h2 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: #333;
        }

        .saison-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Saison-specific form styling */
        .saison-form .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .saison-form .form-group label {
            font-weight: 500;
            color: #333;
            font-size: 0.95rem;
        }

        .saison-form .form-group input {
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .saison-form .form-group input:focus {
            outline: none;
            border-color: #667eea;
        }

        .saisons-list {
            max-height: 500px;
            overflow-y: auto;
        }

        .saisons-table {
            width: 100%;
            border-collapse: collapse;
        }

        .saisons-table thead {
            background: white;
            position: sticky;
            top: 0;
        }

        .saisons-table th {
            padding: 10px;
            text-align: left;
            font-weight: 600;
            color: #333;
            border-bottom: 2px solid #e0e0e0;
            font-size: 0.9rem;
        }

        .saisons-table td {
            padding: 10px;
            border-bottom: 1px solid #e0e0e0;
            color: #555;
            background: white;
        }

        .saisons-table tbody tr:hover {
            background: #f0f0f0;
        }

        .saisons-count {
            text-align: right;
            color: #666;
            font-weight: 500;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e0e0e0;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .saisons-layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 15px 10px;
            }

            /* Navigation */
            .mobile-menu-toggle {
                display: flex;
                padding: 10px;
                /* Larger touch target */
            }

            .nav-menu {
                position: absolute;
                top: 70px;
                left: 0;
                right: 0;
                background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
                flex-direction: column;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            }

            .nav-menu.active {
                max-height: 500px;
                /* Increased to accommodate more items */
            }

            .nav-link {
                width: 100%;
                text-align: left;
                padding: 18px 25px;
                /* Larger touch target */
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                font-size: 1.1rem;
                /* Larger font */
            }

            .nav-link.active::after {
                display: none;
            }

            .nav-link.active {
                background-color: rgba(255, 255, 255, 0.2);
            }

            /* Hero & Content */
            .hero-section img {
                border-radius: 8px;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .content-section-grid {
                grid-template-columns: 1fr;
            }

            /* Admin Headers */
            .admin h1 {
                font-size: 2rem;
            }

            .admin-tabs {
                flex-wrap: wrap;
                gap: 5px;
            }

            .tab-button {
                padding: 12px 20px;
                font-size: 1rem;
                flex: 1 1 auto;
                /* Distribute space */
                text-align: center;
                border-bottom: 2px solid transparent;
                /* Make border visible */
            }

            /* Forms & Inputs - Touch Friendly */
            .form-group input[type="text"],
            .form-group input[type="date"],
            .form-group input[type="number"],
            .form-group input[type="email"],
            .form-group select {
                padding: 12px;
                /* Larger touch area */
                font-size: 16px;
                /* Prevent zoom on iOS */
            }

            .small-button {
                padding: 12px 16px;
                min-height: 44px;
                /* Minimum touch target size */
                width: 100%;
                /* Full width on mobile */
                margin-left: 0;
                margin-top: 10px;
            }

            /* Filters Stack */
            #inscriptionsFilters {
                flex-direction: column;
                align-items: stretch !important;
                gap: 15px;
            }

            #inscriptionsFilters>div {
                flex-direction: column;
                align-items: stretch !important;
                width: 100%;
            }

            #inscriptionsFilters label {
                margin-bottom: 5px;
            }

            #inscriptionsFilters select {
                width: 100%;
                padding: 10px;
            }

            /* Responsive Tables (Card View) */
            .members-table thead,
            .saisons-table thead,
            .inscriptions-table thead {
                display: none;
            }

            .members-table,
            .members-table tbody,
            .members-table tr,
            .members-table td,
            .saisons-table,
            .saisons-table tbody,
            .saisons-table tr,
            .saisons-table td,
            .inscriptions-table,
            .inscriptions-table tbody,
            .inscriptions-table tr,
            .inscriptions-table td {
                display: block;
                width: 100%;
            }

            .members-table tr,
            .saisons-table tr,
            .inscriptions-table tr {
                margin-bottom: 15px;
                background: white;
                border: 1px solid #e0e0e0;
                border-radius: 8px;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
                padding: 10px;
            }

            .members-table td,
            .saisons-table td,
            .inscriptions-table td {
                text-align: right;
                padding: 10px 0;
                border-bottom: 1px solid #f0f0f0;
                position: relative;
                padding-left: 40%;
                /* Space for label */
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .members-table td:last-child,
            .saisons-table td:last-child,
            .inscriptions-table td:last-child {
                border-bottom: none;
            }

            .members-table td::before,
            .saisons-table td::before,
            .inscriptions-table td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #333;
                text-align: left;
                flex: 1;
                margin-right: 10px;
            }

            /* Handle no-data row */
            .members-table td.no-data,
            .saisons-table td.no-data,
            .inscriptions-table td.no-data {
                text-align: center;
                padding: 20px;
                display: block;
                padding-left: 0;
            }

            .members-table td.no-data::before,
            .saisons-table td.no-data::before,
            .inscriptions-table td.no-data::before {
                content: none;
            }
        }

        .cotisations-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 0.9rem;
        }

        .cotisations-table th,
        .cotisations-table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }

        .cotisations-table th {
            background-color: #f2f2f2;
            font-weight: bold;
            text-align: center;
        }

        .cotisations-table td:not(:first-child) {
            text-align: center;
        }

        .cotisations-table .table-header {
            background-color: #e9e9e9;
            font-weight: bold;
            text-align: center;
        }

        .diag-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 0.9rem;
        }

        .diag-table th {
            background-color: #f2f2f2;
            font-weight: bold;
            text-align: center;
        }

        .diag-table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }

        .diag-table td:not(:first-child) {
            text-align: center;
        }

        /* Cellule diagonale */
        .diag-cell {
            position: relative;
            width: 260px;
            height: 80px;
            background: #f2f2f2;
        }

        /* Trait diagonal */
        .diag-cell::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                linear-gradient(to bottom left,
                    transparent 49.7%,
                    #555 50%,
                    /* couleur du trait */
                    transparent 50.3%);
            pointer-events: none;
        }

        /* Texte du triangle haut-droite */
        .diag-cell .top-right {
            position: absolute;
            top: 8px;
            right: 10px;
            text-align: right;
            color: black;
            font-weight: bold;
            font-size: 14px;
        }

        /* Texte du triangle bas-gauche */
        .diag-cell .bottom-left {
            position: absolute;
            bottom: 8px;
            left: 10px;
            color: black;
            font-weight: bold;
            font-size: 14px;
        }

        .small-button {
            padding: 8px 12px;
            font-size: 0.85rem;
            background-color: #f0f0f0;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            color: #333;
            transition: background-color 0.2s;
            margin-left: 10px;
            min-width: 140px;
            min-height: 36px;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .small-button:hover {
            background-color: #e0e0e0;
        }

        /* Form group with button on the same line */
        .form-group-with-button {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 10px;
        }

        .form-group-with-button .checkbox-label {
            flex: 1;
            margin-bottom: 0;
        }



        /* Payment Cancelled Modal */
        .payment-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 20px;
            backdrop-filter: blur(5px);
        }

        .payment-modal-container {
            max-width: 500px;
            width: 100%;
            padding: 2.5rem;
            border: 1px solid rgba(197, 160, 89, 0.3);
            border-radius: 12px;
            background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
            text-align: center;
            position: relative;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .payment-modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            color: #a0a0a0;
            font-size: 1.8rem;
            cursor: pointer;
            transition: color 0.2s, transform 0.2s;
            line-height: 1;
        }

        .payment-modal-close:hover {
            color: #c5a059;
            transform: scale(1.1);
        }

        .payment-modal-icon {
            font-size: 3.5rem;
            color: #c5a059;
            margin-bottom: 1rem;
        }

        .payment-modal-title {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 1rem;
            text-transform: uppercase;
            color: #ffffff;
            font-size: 1.5rem;
        }

        .payment-modal-text {
            color: #a0a0a0;
            line-height: 1.7;
            margin-bottom: 2rem;
            font-size: 1rem;
        }

        .payment-modal-btn {
            display: inline-block;
            padding: 14px 35px;
            background-color: #c5a059;
            color: #0f0f0f;
            text-decoration: none;
            font-weight: bold;
            border-radius: 6px;
            transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            font-family: inherit;
        }

        .payment-modal-btn:hover {
            transform: translateY(-2px);
            background-color: #d6b36d;
            box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
        }

        .payment-modal-link {
            display: block;
            margin-top: 1.5rem;
            color: #a0a0a0;
            font-size: 0.9rem;
            text-decoration: underline;
            transition: color 0.2s;
        }

        .payment-modal-link:hover {
            color: #c5a059;
        }

        @media (max-width: 480px) {
            .payment-modal-container {
                padding: 1.5rem;
                margin: 10px;
            }

            .payment-modal-title {
                font-size: 1.2rem;
            }

            .payment-modal-icon {
                font-size: 2.5rem;
            }
        }

        /* Payment Success Modal Styles */
        .payment-modal-success {
            border: 1px solid rgba(46, 204, 113, 0.3);
        }

        .payment-modal-icon-success {
            width: 80px;
            height: 80px;
            background: rgba(46, 204, 113, 0.1);
            color: #2ecc71;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            margin: 0 auto 1.5rem;
        }

        .payment-modal-ref {
            font-size: 0.85rem;
            color: #c5a059;
            margin-bottom: 1.5rem;
            font-family: monospace;
            letter-spacing: 1px;
        }

        @media (max-width: 480px) {
            .payment-modal-icon-success {
                width: 60px;
                height: 60px;
                font-size: 2rem;
            }
        }

        /* Autocomplete Styles */
        .autocomplete-list {
            position: absolute;
            z-index: 1000;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            max-height: 200px;
            overflow-y: auto;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            margin-top: 2px;
        }

        .autocomplete-item {
            padding: 0.75rem;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            color: #333;
            font-size: 1rem;
            text-align: left;
        }

        .autocomplete-item:last-child {
            border-bottom: none;
        }

        .autocomplete-item:hover {
            background-color: #f5f5f5;
        }

        /* Payment Result Section Styles */
        .payment-result {
            padding: 40px 0;
        }

        .payment-result-content {
            background: white;
            padding: 60px 40px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            margin: 0 auto;
            text-align: center;
        }

        .payment-result-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            margin: 0 auto 1.5rem;
        }

        .payment-result-icon.success {
            background: rgba(46, 204, 113, 0.1);
            color: #2ecc71;
        }

        .payment-result-icon.error {
            background: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
        }

        .payment-result h1 {
            font-size: 2rem;
            color: #333;
            margin-bottom: 1rem;
        }

        .payment-result-ref {
            font-size: 0.85rem;
            color: #c5a059;
            margin-bottom: 1.5rem;
            font-family: monospace;
            letter-spacing: 1px;
        }

        .payment-result p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .payment-status {
            margin-top: 15px;
            font-size: 0.9em;
            color: #666;
        }

        .payment-result .submit-button {
            display: inline-block;
            text-decoration: none;
            margin-bottom: 1rem;
        }

        .payment-result-link {
            display: block;
            color: #667eea;
            text-decoration: none;
            font-size: 0.95rem;
        }

        .payment-result-link:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .payment-result-content {
                padding: 40px 20px;
            }

            .payment-result-icon {
                width: 60px;
                height: 60px;
                font-size: 2rem;
            }

            .payment-result h1 {
                font-size: 1.5rem;
            }
        }

        /* Modal Styles */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: white;
            padding: 0;
            border-radius: 12px;
            max-width: 600px;
            width: 90%;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            position: relative;
            animation: modalFadeIn 0.3s ease-out;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-content .payment-result-content {
            box-shadow: none;
            margin: 0;
        }