@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lora:wght@400;500;600&display=swap');

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

body {
    font-family: 'Lora', 'Georgia', serif;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5b7 50%, #d4c4a8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    background: linear-gradient(to bottom, #fffef9 0%, #faf8f3 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(139, 115, 85, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 850px;
    width: 100%;
    padding: 50px 45px;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(212, 175, 55, 0.15);
}

.container.container-wide {
    max-width: 1300px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.header-section::after {
    content: '✡';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #fffef9 0%, #faf8f3 100%);
    padding: 0 20px;
    font-size: 24px;
    color: #d4af37;
    opacity: 0.6;
}

h1 {
    font-family: 'Playfair Display', serif;
    color: #8b7355;
    text-align: center;
    margin-bottom: 12px;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(139, 115, 85, 0.1);
    background: linear-gradient(135deg, #8b7355 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #a0826d;
    margin-bottom: 20px;
    font-size: 1.35em;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #6b5d4f;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.3px;
}

label .required {
    color: #c9a961;
    margin-left: 4px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ddd0;
    border-radius: 12px;
    font-size: 1.05em;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
    background: #fffef9;
    color: #5a4a3a;
}

/* Styles pour les placeholders */
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: #a0826d;
    opacity: 0.7;
    font-style: italic;
    transition: opacity 0.3s ease;
}

input[type="text"]:focus::placeholder,
input[type="email"]:focus::placeholder,
input[type="tel"]:focus::placeholder,
input[type="password"]:focus::placeholder,
input[type="number"]:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.5;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.15),
        0 4px 12px rgba(212, 175, 55, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

/* Styles spécifiques pour les inputs number et date */
input[type="number"],
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Masquer les flèches de spinner pour les inputs number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Style pour l'icône de calendrier des inputs date */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(0.4) sepia(1) saturate(2) hue-rotate(15deg);
    transition: opacity 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="date"]::-webkit-calendar-picker-indicator:focus {
    opacity: 1;
    filter: invert(0.3) sepia(1) saturate(2.5) hue-rotate(10deg);
}

/* Style pour Firefox */
input[type="date"]::-moz-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

input[type="date"]::-moz-calendar-picker-indicator:hover {
    opacity: 1;
}

textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    background: #faf8f3;
    border: 2px solid #e8ddd0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-option:hover {
    background: #f5f0e8;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.1);
}

.radio-option input[type="radio"]:checked + label {
    color: #8b7355;
    font-weight: 600;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d4af37;
}

.radio-option input[type="radio"]:checked ~ label,
.radio-option:has(input[type="radio"]:checked) {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff9e6 0%, #faf8f3 100%);
}

.radio-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    color: #6b5d4f;
    transition: color 0.3s ease;
}

.form-section {
    display: none;
    animation: slideIn 0.4s ease-out;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fffef9;
    border: 2px solid #d4af37;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 
        0 8px 16px rgba(139, 115, 85, 0.15),
        0 0 0 1px rgba(212, 175, 55, 0.1);
}

.autocomplete-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0e8d8;
    transition: background 0.2s;
    color: #5a4a3a;
    font-size: 1em;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, #fff9e6 0%, #faf8f3 100%);
    color: #8b7355;
}

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

.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #9a7209 100%);
    color: #fffef9;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 
        0 4px 12px rgba(212, 175, 55, 0.3),
        0 2px 4px rgba(139, 115, 85, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.4),
        0 4px 8px rgba(139, 115, 85, 0.3);
    background: linear-gradient(135deg, #e0c158 0%, #c99a1a 50%, #a87a0a 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(212, 175, 55, 0.3),
        0 2px 4px rgba(139, 115, 85, 0.2);
}

.error-message {
    color: #c97a5a;
    font-size: 0.9em;
    margin-top: 8px;
    display: none;
    font-style: italic;
    padding-left: 4px;
}

.error-message.show {
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: linear-gradient(135deg, #8fbc8f 0%, #7ba87b 100%);
    color: #fffef9;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    display: none;
    box-shadow: 0 4px 12px rgba(143, 188, 143, 0.3);
    font-weight: 500;
    font-size: 1.05em;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.success-message.show {
    display: block;
    animation: slideDown 0.4s ease-out;
}

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

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
}

/* Wizard multi-étapes */
.form-steps-indicator {
    margin-bottom: 35px;
    padding: 0;
}

.step-indicator-content {
    background: linear-gradient(135deg, #fffef9 0%, #faf8f3 100%);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 
        0 4px 16px rgba(139, 115, 85, 0.1),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.step-indicator-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(212, 175, 55, 0.3) 50%, 
        rgba(212, 175, 55, 0.1) 100%);
}

.step-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.step-counter {
    font-weight: 700;
    color: #d4af37;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-left: 24px;
}

.step-counter::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 0.7em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.1);
    }
}

.step-title {
    font-weight: 600;
    color: #8b7355;
    font-size: 1.05em;
    letter-spacing: 0.3px;
    flex: 1;
    text-align: right;
}

.step-progress-bar {
    width: 100%;
    height: 6px;
    background: #e8ddd0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(139, 115, 85, 0.1);
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #d4af37 0%, 
        #e0c158 50%, 
        #d4af37 100%);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 10px rgba(212, 175, 55, 0.4),
        0 2px 4px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.step-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .step-indicator-content {
        padding: 16px 18px;
    }
    
    .step-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .step-title {
        text-align: left;
        font-size: 0.95em;
    }
    
    .step-counter {
        font-size: 0.95em;
    }
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.wizard-prev-btn,
.wizard-next-btn {
    padding: 12px 20px;
    border-radius: 999px;
    border: 2px solid #d4af37;
    background: #fffef9;
    color: #8b7355;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Lora', serif;
}

.wizard-next-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fff;
}

.wizard-prev-btn:hover,
.wizard-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.recap-title {
    margin-bottom: 10px;
    color: #8b7355;
}

.recap-intro {
    margin-bottom: 15px;
    color: #6b5d4f;
    font-size: 0.95em;
}

.recap-container {
    border-radius: 16px;
    background: #faf8f3;
    padding: 20px 18px;
    border: 1px solid #e8ddd0;
    margin-bottom: 20px;
}

.recap-block + .recap-block {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e0d2c0;
}

.recap-dons-list {
    margin-left: 18px;
    margin-top: 8px;
}

.confirmation-page {
    display: none;
    margin-top: 30px;
    padding: 25px 20px;
    border-radius: 18px;
    background: #f5f9f5;
    border: 1px solid #c7e0c7;
    text-align: center;
}

.confirmation-page.show {
    display: block;
}

.confirmation-back-link {
    display: inline-block;
    margin-top: 15px;
    color: #8b7355;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .wizard-navigation {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 35px 25px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.7em;
    }

    .subtitle {
        font-size: 1.2em;
    }

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

    .radio-option {
        width: 100%;
    }
}

/* Décorations subtiles */
.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.05));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.container:hover::before {
    opacity: 1;
}

/* Loader overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 115, 85, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

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

.loader-container {
    text-align: center;
    background: linear-gradient(to bottom, #fffef9 0%, #faf8f3 100%);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(139, 115, 85, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #e8ddd0;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    color: #8b7355;
    font-size: 1.1em;
    font-weight: 500;
    font-family: 'Lora', serif;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Bloc de dons (montant + date) */
.don-helper-text {
    font-size: 0.9em;
    color: #6b5d4f;
    margin-bottom: 12px;
    font-style: italic;
}

.dons-container {
    background: #faf8f3;
    border-radius: 14px;
    border: 2px solid #e8ddd0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.don-item {
    background: #fffef9;
    border-radius: 12px;
    border: 1px solid #e8ddd0;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(139, 115, 85, 0.08);
}

.don-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    flex-direction: column;
}

.don-field label {
    display: block;
    color: #6b5d4f;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.3px;
}

.don-field input[type="number"],
.don-field input[type="date"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ddd0;
    border-radius: 12px;
    font-size: 1.05em;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
    background: #fffef9;
    color: #5a4a3a;
}

.don-field input[type="number"]::placeholder {
    color: #a0826d;
    opacity: 0.7;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.don-field input[type="number"]:focus::placeholder {
    opacity: 0.5;
}

.don-field input[type="number"]:focus,
.don-field input[type="date"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.15),
        0 4px 12px rgba(212, 175, 55, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.add-don-btn,
.remove-don-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d4af37;
    background: linear-gradient(135deg, #fff9e6 0%, #faf8f3 100%);
    color: #8b7355;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
}

.add-don-btn:hover,
.remove-don-btn:hover {
    background: linear-gradient(135deg, #f7e8ba 0%, #f3e6c2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.remove-don-btn {
    border-color: #c97a5a;
    color: #c97a5a;
    background: linear-gradient(135deg, #fff1ec 0%, #fbe4da 100%);
}

.remove-don-btn:hover {
    box-shadow: 0 4px 10px rgba(201, 122, 90, 0.3);
}

@media (max-width: 768px) {
    .don-fields {
        flex-direction: column;
        gap: 10px;
    }
}

/* Styles pour tableaux responsives sur desktop */
@media (min-width: 769px) {
    .responsive-table-container {
        overflow-x: auto;
    }
}

/* Styles pour tableaux responsives sur mobile */
@media (max-width: 768px) {
    /* Cacher les en-têtes de tableau sur mobile */
    .responsive-table thead {
        display: none;
    }
    
    /* Cacher le tfoot sur mobile (on peut l'afficher différemment si besoin) */
    .responsive-table tfoot {
        display: none;
    }

    .responsive-table {
        table-layout: auto !important;
    }

    .responsive-table colgroup {
        display: none;
    }

    /* Transformer les lignes en cartes */
    .responsive-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fffef9 !important;
        border: 2px solid #e8ddd0;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(139, 115, 85, 0.1);
    }
    
    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 0 !important;
        border: none !important;
        border-bottom: 1px solid #e8ddd0 !important;
        text-align: left !important;
        flex-wrap: wrap;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        width: 100% !important;
    }
    
    .responsive-table tbody td:last-child {
        border-bottom: none !important;
    }
    
    /* Ajouter des labels avant chaque cellule */
    .responsive-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #8b7355;
        text-align: left;
        margin-right: 15px;
        flex-shrink: 0;
        min-width: 120px;
        width: 35%;
    }
    
    /* Contenu de la cellule prend le reste de l'espace */
    .responsive-table tbody td > *:not(::before) {
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }

    .responsive-table tbody td *,
    .responsive-table tbody td > strong,
    .responsive-table tbody td > small,
    .responsive-table tbody td > span,
    .responsive-table tbody td > a {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    
    /* Ajuster le conteneur de tableau */
    .responsive-table-container {
        overflow-x: visible !important;
    }
    
    /* Gérer les cellules avec du contenu complexe (comme le statut) */
    .responsive-table tbody td > div {
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
    }
    
    /* Ajuster l'affichage du statut sur mobile */
    .responsive-table tbody td[data-label="Statut"] {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .responsive-table tbody td[data-label="Statut"]::before {
        margin-bottom: 8px;
    }
    
    .responsive-table tbody td[data-label="Statut"] > div {
        width: 100%;
        align-items: stretch !important;
    }

    /* Gérer les cellules avec des badges (Type, Rôle) */
    .responsive-table tbody td[data-label="Type"],
    .responsive-table tbody td[data-label="Rôle"] {
        flex-direction: row;
        align-items: center !important;
    }
    
    .responsive-table tbody td[data-label="Type"] > span,
    .responsive-table tbody td[data-label="Rôle"] > span {
        flex: 1;
        display: inline-block;
        text-align: left;
    }

    /* Gérer les cellules Actions */
    .responsive-table tbody td[data-label="Actions"] {
        flex-direction: row;
        align-items: center !important;
    }
    
    .responsive-table tbody td[data-label="Actions"] > a {
        flex: 1;
        text-align: center;
        display: block;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Gérer les cellules avec du texte long */
    .responsive-table tbody td[data-label="Email"],
    .responsive-table tbody td[data-label="Nom / Entreprise"],
    .responsive-table tbody td[data-label="Donateur"] {
        word-break: break-word;
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .responsive-table tbody td[data-label="Email"] > *,
    .responsive-table tbody td[data-label="Nom / Entreprise"] > *,
    .responsive-table tbody td[data-label="Donateur"] > * {
        word-break: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .responsive-table tbody td[data-label="Donateur"]::before {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .responsive-table tbody td[data-label="Donateur"] > div {
        width: 100%;
    }

    /* Gérer les cellules avec du texte long (Email) */
    .responsive-table tbody td[data-label="Email"] {
        word-break: break-word;
    }

    /* Formulaire de filtres responsive */
    #filterForm {
        grid-template-columns: 1fr !important;
    }
    
    /* Améliorer l'affichage du header sur mobile */
    .container > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    /* Améliorer l'affichage des titres sur mobile */
    h2 {
        font-size: 1.5em !important;
        word-break: break-word;
    }
    
    /* Améliorer l'affichage des cartes sur mobile */
    .responsive-table tbody tr {
        min-width: 0;
    }
    
    /* S'assurer que le contenu ne déborde pas */
    .responsive-table tbody td {
        overflow: hidden;
    }
    
    /* Améliorer l'espacement dans les cartes */
    .responsive-table tbody td::before {
        font-size: 0.85em;
    }
    
    /* Ajuster la taille des badges sur mobile */
    .responsive-table tbody td[data-label="Type"] > span,
    .responsive-table tbody td[data-label="Rôle"] > span {
        font-size: 0.85em;
        padding: 3px 10px;
    }
    
    /* Ajuster la taille des boutons sur mobile */
    .responsive-table tbody td[data-label="Actions"] > a {
        font-size: 0.9em;
        padding: 6px 12px;
    }
    
    /* Rendre les statistiques moins présentes sur mobile */
    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .stats-container > div {
        padding: 12px 15px !important;
        font-size: 0.85em !important;
    }
    
    .stats-container h3 {
        font-size: 0.8em !important;
        margin-bottom: 5px !important;
    }
    
    .stats-container p {
        font-size: 1.3em !important;
    }
}

/* Styles pour la navbar améliorée */
.main-navbar {
    display: flex;
    margin-bottom: 30px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #faf8f3 0%, #fffef9 100%);
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    gap: 10px;
    position: relative;
    min-width: 0;
    overflow: visible;
    flex-direction: column;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.navbar-toggle span {
    width: 100%;
    height: 3px;
    background: #8b7355;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-links {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 1;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    color: #8b7355;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85em;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #b8860b;
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    border-color: #b8860b;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #b8860b;
    border-radius: 2px;
}

.nav-link-primary:hover {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border-color: #b8860b;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.nav-link-primary.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
}

.nav-icon {
    font-size: 1.1em;
    line-height: 1;
    display: inline-block;
}

.nav-text {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.nav-link-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    color: #c97a5a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85em;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 122, 90, 0.3);
    background: rgba(201, 122, 90, 0.05);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link-logout:hover {
    background: rgba(201, 122, 90, 0.15);
    color: #b86a4a;
    transform: translateY(-1px);
    border-color: rgba(201, 122, 90, 0.5);
    box-shadow: 0 2px 8px rgba(201, 122, 90, 0.2);
}

/* Responsive navbar - Tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-navbar {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .navbar-links {
        gap: 4px;
    }
    
    .nav-link,
    .nav-link-logout {
        padding: 6px 8px;
        font-size: 0.75em;
        gap: 3px;
    }
    
    .nav-text {
        font-size: 0.85em;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-icon {
        font-size: 1em;
    }
}

/* Responsive navbar - Mobile */
@media (max-width: 768px) {
    .main-navbar {
        flex-direction: row;
        overflow: visible;
    }

    .navbar-toggle {
        display: flex;
        order: 1;
    }

    .nav-link-logout {
        order: 2;
        margin-left: auto;
    }

    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        gap: 6px;

        padding: 0 12px;
        background: linear-gradient(135deg, #faf8f3 0%, #fffef9 100%);
        border-radius: 0 0 16px 16px;
        border: 2px solid rgba(212, 175, 55, 0.2);
        border-top: none;
        box-shadow: 0 10px 25px rgba(139, 115, 85, 0.2);

        /* animation */
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        transform: translateY(-8px);
        overflow: hidden;
        pointer-events: none;
        visibility: hidden;

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            transform 0.35s ease,
            padding 0.35s ease,
            visibility 0s linear 0.35s;
        z-index: 1000;
    }

    .navbar-links.active {
        max-height: 500px;
        padding-top: 14px;
        padding-bottom: 14px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            transform 0.35s ease,
            padding 0.35s ease,
            visibility 0s;
    }

    .nav-link {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.9em;
    }
    
    .nav-text {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
}
