/* === DEMO STYLES === */

/* Styles pour les démos et exemples */
.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.demo-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.demo-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-example {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.demo-code {
    background: #1f2937;
    color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Grille de démonstration */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.demo-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.demo-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.demo-card-content {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Alertes de démonstration */
.demo-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.demo-alert-info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.demo-alert-success {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

.demo-alert-warning {
    background: #fefce8;
    border-left-color: #f59e0b;
    color: #92400e;
}

.demo-alert-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* Boutons de démonstration */
.demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.demo-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-btn-primary {
    background: #3b82f6;
    color: white;
}

.demo-btn-primary:hover {
    background: #2563eb;
}

.demo-btn-secondary {
    background: #6b7280;
    color: white;
}

.demo-btn-secondary:hover {
    background: #4b5563;
}

.demo-btn-outline {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.demo-btn-outline:hover {
    background: #3b82f6;
    color: white;
}

/* Formulaires de démonstration */
.demo-form {
    max-width: 500px;
    margin-top: 1.5rem;
}

.demo-form-group {
    margin-bottom: 1.5rem;
}

.demo-form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.demo-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.demo-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.demo-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* Tables de démonstration */
.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demo-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.demo-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
}

.demo-table tbody tr:hover {
    background: #f9fafb;
}

/* Badges de démonstration */
.demo-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

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

.demo-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.demo-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Animations de démonstration */
@keyframes demo-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes demo-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.demo-animate-bounce {
    animation: demo-bounce 1s infinite;
}

.demo-animate-pulse {
    animation: demo-pulse 2s infinite;
}

/* Navigation de démonstration */
.demo-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

.demo-nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.demo-nav-link:hover,
.demo-nav-link.active {
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .demo-container {
        padding: 1rem;
    }
    
    .demo-section {
        padding: 1.5rem;
    }
    
    .demo-buttons {
        flex-direction: column;
    }
    
    .demo-nav-list {
        flex-direction: column;
        gap: 1rem;
    }
}
