/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-error: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Container principal */
.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header moderne */
.modern-header {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideInDown 0.8s ease-out;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.header-content h1 i {
    margin-right: 1rem;
    -webkit-text-fill-color: var(--primary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.header-decoration {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

/* Navigation moderne */
.modern-nav {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.nav-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
    left: 0;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Alerts modernes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.success-alert {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.success-alert::before {
    background: var(--success-color);
}

.error-alert {
    background: #fff5f5;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.error-alert::before {
    background: var(--error-color);
}

/* Card moderne */
.modern-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.card-header {
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Progress bar */
.progress-container {
    padding: 2rem;
    background: var(--bg-light);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 20%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.step.active .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

/* Form steps */
.form-step {
    display: none;
    padding: 2rem;
    min-height: 600px;
}

.form-step.active {
    display: block;
    animation: fadeInSlide 0.5s ease-out;
}

.step-content {
    text-align: center;
}

.step-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounceIn 0.8s ease-out;
}

.step-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* User grid */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.user-card {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.user-card:hover::before {
    left: 0;
}

.user-card:hover,
.user-card.selected {
    border-color: var(--primary-color);
    color: white;
}

.user-card.selected::before {
    left: 0;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-role {
    opacity: 0.8;
    font-size: 0.9rem;
}

.user-check {
    font-size: 1.5rem;
    color: var(--success-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card.selected .user-check {
    opacity: 1;
    animation: checkmark 0.5s ease-out;
}

/* Action buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Action */
.modern-container .active .btn-action{
 width:140px;
 padding: 0.5rem 1rem;
 font-size: 0.85rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-action.secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    opacity: 0.8;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-action.secondary:hover {
    opacity: 1;
    background: var(--text-light);
    color: white;
    border-color: var(--text-light);
    transform: translateY(-1px);
}

.btn-action.secondary.active {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
    opacity: 1;
}

/* Sites et Apps grid */
.sites-grid,
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* Sites grid specific adjustments for compact layout */
.sites-grid {
    grid-template-columns: repeat(auto-fit, 230px) !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.hidden-sites {
    grid-template-columns: repeat(auto-fit, 230px) !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.site-card,
.app-card {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Override for sites to use compact layout */
.sites-grid .site-card {
    padding: 0.3rem !important;
    text-align: left !important;
    border-radius: 10px !important;
}

.site-card::before,
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.site-card:hover,
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.site-card:hover::before,
.app-card:hover::before {
    left: 0;
}

.site-card.selected,
.app-card.selected {
    border-color: var(--primary-color);
    color: white;
}

.site-card.selected::before,
.app-card.selected::before {
    left: 0;
}

.site-card:hover,
.site-card.selected,
.app-card:hover,
.app-card.selected {
    color: white;
}

.site-icon,
.app-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.site-card.selected .site-icon,
.app-card.selected .app-icon,
.site-card:hover .site-icon,
.app-card:hover .app-icon {
    color: white;
}

.site-name,
.app-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.site-check,
.app-check {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1rem;
    color: var(--success-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-card.selected .site-check,
.app-card.selected .app-check {
    opacity: 1;
    animation: checkmark 0.5s ease-out;
}

.hidden-label {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

.hidden-sites {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, 230px) !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Site card dimensions - tous les sites */
.sites-grid .site-card,
.hidden-sites .site-card {
    height: 44px !important;
    width: 230px !important;
    padding: 0.3rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    min-height: unset !important;
    text-align: left !important;
}

/* Site icon positioning */
.sites-grid .site-card .site-icon,
.hidden-sites .site-card .site-icon {
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Site name positioning */
.sites-grid .site-card .site-name,
.hidden-sites .site-card .site-name {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

/* Reset any problematic positioning */
.sites-grid .site-card .site-name,
.sites-grid .site-card .site-icon,
.hidden-sites .site-card .site-name,
.hidden-sites .site-card .site-icon {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

/* IPN Section moderne */
.ipn-container-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ipn-item-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ipn-item-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ipn-toggle {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
}

.ipn-toggle .toggle-content {
    flex: 1;
}

.ipn-toggle .toggle-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.ipn-toggle .toggle-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: normal;
}

.ipn-number-field-modern {
    margin-top: 0.5rem;
    padding-left: 1rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ipn-number-field-modern[style*="display: block"] {
    opacity: 1;
    max-height: 100px;
}

.ipn-input-modern {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ipn-input-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Tags IPN dans le tableau */
.ipn-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.1rem;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.no-ipn {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.hidden-site {
    opacity: 0.8;
}

/* Droits container */
.droits-container {
    margin-top: 2rem;
}

.waiting-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.waiting-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: spin 2s linear infinite;
}

.app-droits-group {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 0.5s ease-out;
}

.app-group-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.droits-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.droit-option {
    position: relative;
    cursor: pointer;
}

.droit-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.droit-content {
    display: block;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.droit-option input[type="radio"]:checked + .droit-content {
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.droit-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Spécialité section */
.specialite-section {
    margin-top: 2rem;
    animation: slideInUp 0.5s ease-out;
}

.specialite-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.specialite-icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.specialite-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.specialite-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.specialite-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.specialite-option {
    position: relative;
    cursor: pointer;
}

.specialite-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: block;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.option-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.specialite-option input[type="radio"]:checked + .option-content {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, var(--warning-color), #e69500);
    color: white;
    transform: scale(1.05);
}

.specialite-option input[type="radio"]:checked + .option-content i {
    color: white;
}

/* Summary card */
.summary-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h4 {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-value {
    font-weight: 500;
    color: var(--text-light);
    text-align: right;
    max-width: 60%;
}

/* Options card */
.options-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.options-card h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.option-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.option-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--success-color);
}

.option-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.toggle-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* Final count */
.final-count {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.count-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.count-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--bg-light);
}

.btn-nav {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

.btn-nav.prev {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-nav.prev:hover {
    background: var(--text-light);
    color: white;
    transform: translateY(-2px);
}

.btn-nav.next,
.btn-nav.submit {
    background: var(--gradient-primary);
    color: white;
}

.btn-nav.next:hover,
.btn-nav.submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-nav.submit {
    background: var(--gradient-success);
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

/* Legacy link */
.legacy-link {
    text-align: center;
    margin-top: 2rem;
}

.btn-legacy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-legacy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes animate-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: animate-in 0.5s ease-out;
}

/* Styles spécifiques pour la page d'accueil */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.users::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.sites::before {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.stat-card.apps::before {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.stat-card.permissions::before {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.stat-card.users .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.sites .stat-icon {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.stat-card.apps .stat-icon {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.stat-card.permissions .stat-icon {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

/* Actions rapides */
.quick-actions {
    margin-top: 3rem;
}

.quick-actions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions h3 i {
    color: var(--primary-color);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
    z-index: -1;
}

.action-card.primary::before {
    background: var(--gradient-primary);
}

.action-card.success::before {
    background: var(--gradient-success);
}

.action-card.warning::before {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.action-card.secondary::before {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.action-card:hover::before {
    left: 0;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.action-card.primary .action-icon {
    background: var(--gradient-primary);
}

.action-card.success .action-icon {
    background: var(--gradient-success);
}

.action-card.warning .action-icon {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.action-card.secondary .action-icon {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.action-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.action-card:hover .action-desc {
    opacity: 1;
}

.action-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Styles pour formulaires modernes */
.form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group-modern {
    position: relative;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group-modern label i {
    color: var(--primary-color);
    width: 16px;
}

.form-control-modern {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control-modern::placeholder {
    color: var(--text-light);
}

textarea.form-control-modern {
    resize: vertical;
    min-height: 120px;
}

.options-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.options-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.options-section h3 i {
    color: var(--primary-color);
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-toggle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.option-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.toggle-content {
    flex: 1;
}

.toggle-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.toggle-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-modern {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

.btn-modern.primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-modern.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-modern.secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-modern.secondary:hover {
    background: var(--text-light);
    color: white;
    transform: translateY(-2px);
}

.card-actions {
    padding: 0 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Barre de recherche */
.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    background: var(--bg-white);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.search-clear:hover {
    background: var(--error-color);
    color: white;
}

.search-clear.visible {
    opacity: 1;
}

.search-results-info {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item i {
    color: var(--primary-color);
}

/* Styles pour tableaux modernes */
.table-container {
    padding: 2rem;
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.modern-table th {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f3f7 100%);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-table th i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.modern-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    background: var(--bg-white);
}

.modern-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.table-row {
    transition: all 0.3s ease;
}

.table-row:hover {
    background: var(--bg-light);
    transform: scale(1.01);
}

.cell-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.site-name {
    font-weight: 600;
    color: var(--text-dark);
}

.description-text {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge,
.visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.visibility-badge.visible {
    background: #d1ecf1;
    color: #0c5460;
}

.visibility-badge.hidden {
    background: #fff3cd;
    color: #856404;
}

.date-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-action.edit {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-action.edit:hover {
    background: #1976d2;
    color: white;
    transform: scale(1.1);
}

.btn-action.delete {
    background: #ffebee;
    color: #d32f2f;
}

.btn-action.delete:hover {
    background: #d32f2f;
    color: white;
    transform: scale(1.1);
}

/* Styles spécifiques pour utilisateurs */
.form-section {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--bg-light);
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section h3 i {
    color: var(--primary-color);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-light);
}

.user-email {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.user-login {
    font-size: 0.7rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.email, .phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.email i, .phone i {
    color: var(--primary-color);
    width: 14px;
}

.login-badge {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Styles spécifiques pour applications */
.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.app-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.app-description {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

.url-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: #e3f2fd;
    transition: all 0.3s ease;
}

.url-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.no-url {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.rights-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rights-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rights-count i {
    color: var(--primary-color);
}

.btn-toggle-rights {
    background: #f0f3f7;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-toggle-rights:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.rights-row {
    background: #fafbfc !important;
}

.rights-detail {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    margin: 0.5rem;
    border: 2px solid var(--border-color);
}

.rights-detail h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.rights-detail h4 i {
    color: var(--primary-color);
}

.no-rights {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-rights i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.right-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.right-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.right-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.right-info {
    flex: 1;
}

.right-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.right-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

.right-status {
    flex-shrink: 0;
}

.right-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-modern.danger {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.btn-modern.danger:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Styles pour le tableau des permissions */
.permissions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 400px;
    position: relative;
}

.permissions-cell.collapsed .permission-tag:nth-child(n+4) {
    display: none;
}

.permissions-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.permissions-cell.collapsed .permissions-toggle {
    display: inline-flex;
}

.permissions-toggle:hover {
    background: var(--text-dark);
}

.permission-tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.3s ease;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    max-width: none;
    white-space: normal;
    z-index: 10;
    position: relative;
}

.permission-tag i {
    font-size: 0.7rem;
}

.sites-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 200px;
}

.site-tag {
    background: #f0f3f7;
    color: var(--text-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.user-permissions-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-permissions-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-permissions-email {
    font-size: 0.75rem;
    color: var(--text-light);
}

.permissions-count {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.permission-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn-permission-action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
}

.btn-permission-action.edit {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-permission-action.edit:hover {
    background: #1976d2;
    color: white;
    transform: scale(1.1);
}

.btn-permission-action.delete {
    background: #ffebee;
    color: #d32f2f;
}

.btn-permission-action.delete:hover {
    background: #d32f2f;
    color: white;
    transform: scale(1.1);
}

.btn-mini {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-decoration: none;
}

.btn-mini.edit {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-mini.edit:hover {
    background: #1976d2;
    color: white;
}

.btn-mini.delete {
    background: #ffebee;
    color: #d32f2f;
}

.btn-mini.delete:hover {
    background: #d32f2f;
    color: white;
}

.btn-action.success {
    background: #e8f5e8;
    color: #2e7d2e;
}

.btn-action.success:hover {
    background: #2e7d2e;
    color: white;
    transform: scale(1.1);
}

/* Styles pour les options de suppression */
.remove-permission {
    border: 2px dashed #ffcdd2 !important;
    background: #ffebee !important;
    margin-top: 0.5rem;
}

.remove-permission:hover {
    background: #ffcdd2 !important;
}

.checkmark.remove {
    background: #ffebee;
    border: 2px solid #d32f2f;
}

.checkmark.remove:after {
    border-color: #d32f2f;
}

.droit-checkbox input:checked ~ .checkmark.remove {
    background: #d32f2f;
}

.droit-checkbox input:checked ~ .checkmark.remove:after {
    border-color: white;
}

/* Animations pour les droits */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modern-container {
        padding: 1rem;
    }
    
    .user-grid,
    .sites-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-items {
        flex-direction: column;
        align-items: center;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-nav {
        width: 100%;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .droits-options,
    .specialite-options {
        grid-template-columns: 1fr;
    }
    
    .summary-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .summary-value {
        max-width: 100%;
        text-align: left;
    }
}
