:root {
    --primary-color: #252728;
    --primary-hover: #1a1b1c;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

#espace-pro-3d-container.modern-design {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

.espace-pro-header {
    display: none;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    color: white;
}

.user-welcome h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

#ajax-content-wrap .container-wrap {
    padding-top: 0;
}

.espace-pro-3d-notice.modern-notice {
    max-width: 500px;
    margin: auto;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 0 2rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
}

.modern-notice .notice-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modern-notice h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.modern-notice p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

.auth-form form p {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--dark-color);
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.auth-form input[type="submit"] {
    margin-top: 0.5rem;
    width: 100%;
}

#espace-pro-login-form input[type="submit"] {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

#espace-pro-login-form input[type="submit"]:hover {
    background: #111;
    border-color: #111;
}

.auth-form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-form .register-link {
    margin-top: 1rem;
    text-align: center;
}

.auth-forms {
    display: grid;
    gap: 0.5rem;
}

.register-toggle {
    display: flex;
    justify-content: center;
}

.register-form h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.auth-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 600;
}

.auth-message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.auth-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
.auth-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.dashboard-home {
    animation: fadeIn 0.5s ease-in;
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr !important;
    }

    .dashboard-card {
        min-height: auto;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.dashboard-card.card-primary .card-icon {
    color: #2563eb; /* Bleu */
}

.dashboard-card.card-secondary .card-icon {
    color: #10b981; /* Vert */
}

.dashboard-card.card-tertiary .card-icon {
    color: #f59e0b; /* Orange/Jaune */
}

.dashboard-card.card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dashboard-card.card-disabled:hover {
    transform: none;
}

.card-icon {
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.dashboard-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

.dashboard-card p {
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.card-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-badge-soon {
    display: inline-block;
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-action {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.stretched-link {
    text-decoration: none;
    color: inherit;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.stretched-link .btn-link {
    z-index: 1;
}

/* Overlay invisible pour rendre toute la carte cliquable */
.stretched-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dashboard-card:hover .btn-link {
    transform: translateX(4px);
    display: inline-block;
}

.info-block {
    display: none; /* Masqué - Besoin d'aide retiré */
}

.info-icon {
    font-size: 2rem;
}

.info-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
}

.info-content p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.btn-primary,
.btn-secondary,
.btn-back {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

#submit-demande.btn-primary {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}

#submit-demande.btn-primary:hover,
#submit-demande.btn-primary:focus,
#submit-demande.btn-primary:active {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--secondary-color);
}

.btn-back {
    background: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.form-container-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.5s ease-out;
}

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

.form-header-modern {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.form-header-modern h2 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 700;
}

.form-subtitle {
    margin: 0;
    color: var(--secondary-color);
}

.form-progress-modern {
    margin-bottom: 3rem;
}

.progress-track {
    height: 4px;
    background: var(--border-color);
    border-radius: 999px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 999px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-steps-modern {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.progress-step-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.conditional-progress-step {
    display: none;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.progress-step-modern.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.progress-step-modern.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 500;
}

.progress-step-modern.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

.form-step-modern {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content-modern {
    margin-bottom: 2rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 2rem 0;
}

.fields-grid {
    display: grid;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .fields-grid {
        grid-template-columns: 1fr !important;
    }
}

.form-field-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
}

.required {
    color: var(--danger-color);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Longues listes sur mobile */
@media (max-width: 768px) {
    select {
        max-height: 260px;
    }
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group-modern,
.checkbox-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label-modern,
.checkbox-label-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: white;
    position: relative;
}

.radio-label-modern:hover,
.checkbox-label-modern:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.radio-label-modern input[type="radio"],
.checkbox-label-modern input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: var(--transition);
    pointer-events: none;
}

.checkbox-custom {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: var(--transition);
    pointer-events: none;
}

.radio-label-modern input:checked ~ .radio-custom {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.radio-label-modern input:checked ~ .radio-custom::after {
    content: '';
}

.checkbox-label-modern input:checked ~ .checkbox-custom {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.checkbox-label-modern input:checked ~ .checkbox-custom::after {
    content: '';
}

.radio-label-modern input:focus-visible ~ .radio-custom,
.checkbox-label-modern input:focus-visible ~ .checkbox-custom {
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.22);
    border-color: #1d4ed8;
}

.radio-text,
.checkbox-text {
    flex: 1;
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--light-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-text {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    display: block;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

#stl_files {
    display: none;
}

.upload-info {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.upload-warning {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--warning-color);
    background: #fef3c7;
    color: #92400e;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    text-align: left;
}

.upload-notes {
    margin-top: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.upload-notes ul {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.35rem;
}

.upload-notes li {
    list-style: disc;
    margin: 0;
}

.files-preview-modern {
    margin-top: 2rem;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.file-preview-item svg {
    color: var(--primary-color);
}

.recap-container {
    background: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.recap-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.recap-section:last-child {
    margin-bottom: 0;
}

.recap-section h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
    font-size: 1.125rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.recap-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.recap-label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.recap-value {
    color: var(--dark-color);
    font-size: 0.875rem;
    text-align: right;
}

.form-navigation-modern {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-navigation-modern .btn-prev {
    margin-right: auto;
}

.form-navigation-modern .btn-next,
.form-navigation-modern .btn-submit {
    margin-left: auto;
}

.form-message-modern {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

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

.form-message-modern.success {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    color: #065f46;
}

.form-message-modern.error {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
    color: #991b1b;
}

.form-message-modern .message-text {
    flex: 1;
}

.form-message-modern .message-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-message-home {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-message-home:hover {
    background: #111;
    border-color: #111;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    color: #92400e;
}

.history-container-modern {
    animation: fadeIn 0.5s ease-in;
}

.history-header {
    margin-bottom: 2rem;
    text-align: center;
}

.history-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.history-subtitle {
    margin: 0;
    color: var(--secondary-color);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
}

.empty-state p {
    margin: 0 0 2rem 0;
    color: var(--secondary-color);
}

.demandes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1.5rem;
}

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

.demande-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.demande-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.demande-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.demande-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.demande-status {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.demande-card-body {
    padding: 1.5rem;
}

.demande-card-body h4 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
}

.demande-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.demande-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.view-details-btn-modern {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    padding: 0;
}

.view-details-btn-modern:hover {
    color: var(--primary-hover);
    gap: 0.5rem;
}

.demande-details-modern {
    padding: 1.5rem;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

.details-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

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

.details-table-modern tr {
    border-bottom: 1px solid var(--border-color);
}

.details-table-modern tr:last-child {
    border-bottom: none;
}

.detail-label {
    padding: 0.75rem 0;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.875rem;
    width: 40%;
}

.detail-value {
    padding: 0.75rem 0;
    color: var(--dark-color);
    font-size: 0.875rem;
}

.files-list-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.file-item-modern:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.file-item-modern svg:first-child {
    color: var(--primary-color);
    flex-shrink: 0;
}

.file-item-modern span {
    flex: 1;
    font-size: 0.875rem;
}

.file-item-modern svg:last-child {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.view-changer {
    cursor: pointer;
}

#main-view,
#form-view,
#history-view {
    transition: var(--transition);
}

@media (max-width: 768px) {
    #espace-pro-3d-container.modern-design {
        padding: 1rem;
    }

    .espace-pro-header {
        padding: 1.5rem;
    }

    .user-welcome h1 {
        font-size: 1.5rem;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .progress-steps-modern {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .progress-step-modern {
        min-width: 80px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .step-label {
        font-size: 0.625rem;
    }

    .form-container-modern,
    .history-container-modern {
        padding: 1.5rem;
    }

    .form-header-modern h2 {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .form-navigation-modern {
        flex-direction: column;
    }

    .form-navigation-modern .btn-prev,
    .form-navigation-modern .btn-next,
    .form-navigation-modern .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .demandes-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

@media (max-width: 968px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}
