/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #e4e4e7;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.form-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-section h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    color: #9ca3af;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    line-height: 26px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: transparent;
}

.step-label {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
}

.step.active .step-label {
    color: #e4e4e7;
}

/* Form */
.event-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 400px;
}

.form-page {
    display: none;
}

.form-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-page h2 {
    color: #e4e4e7;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e4e4e7;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.08);
}

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

input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.help-text {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

small.help-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #71717a;
}

/* Upload Zone */
.image-upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(139, 92, 246, 0.02);
}

.image-upload-zone.dragover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.upload-area {
    padding: 1rem;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-area h3 {
    color: #e4e4e7;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.upload-specs {
    font-size: 0.8rem;
    color: #71717a;
}

/* Images Preview */
.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.image-preview:hover {
    transform: translateY(-2px);
}

.image-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
}

.image-info {
    padding: 0.75rem;
}

.image-name {
    font-size: 0.85rem;
    color: #e4e4e7;
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.image-size {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-image-primary,
.btn-image-remove {
    flex: 1;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-image-primary {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-image-primary.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.btn-image-remove {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-image-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Info Box */
.info-box {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.info-box h4 {
    color: #06b6d4;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    color: #d1d5db;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.info-box li::before {
    content: "•";
    color: #06b6d4;
    position: absolute;
    left: 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-add {
    background: transparent;
    border: 2px dashed rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.btn-add:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.page-info {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Summary */
.summary-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-section h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-content {
    color: #d1d5db;
}

.summary-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 0.25rem;
}

.summary-value {
    color: #9ca3af;
}

/* Activities */
.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.activity-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.activity-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .form-navigation {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .page-info {
        width: 100%;
        text-align: center;
        order: -1;
    }
}

/* Styles pour le sélecteur de type d'image */
.image-type-selector {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.image-type-selector label {
    display: block;
    font-size: 0.875rem;
    color: #c9a9ff;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.image-type-select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    color: #e5e7eb;
    font-size: 0.875rem;
    cursor: pointer;
}

.image-type-select:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.image-type-select option {
    background: #1f2937;
    color: #e5e7eb;
    padding: 0.5rem;
}

/* Compteur d'images amélioré */
.images-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.total-count {
    font-weight: 600;
    color: #e5e7eb;
}

.types-breakdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.type-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.type-count.primary {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.type-count.badge {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.type-count.gallery {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

/* ===============================================
   PRICING PLAN SELECTOR
   =============================================== */

.pricing-plan-selector {
    margin: 1.5rem 0;
}

.pricing-plans-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plan-option-card {
    background: rgba(17, 24, 39, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.plan-option-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.plan-option-card.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.plan-option-card.selected::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

.plan-option-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.plan-option-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.plan-option-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.plan-option-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.25rem;
}

.plan-option-price.free {
    color: #10b981;
}

.plan-option-period {
    font-size: 0.75rem;
    color: #9ca3af;
}

.plan-option-trial {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #06b6d4;
    font-weight: 600;
}

.plan-option-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-option-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.plan-option-features li i {
    color: #10b981;
    font-size: 0.75rem;
}

.plan-option-features li.disabled {
    color: #6b7280;
    text-decoration: line-through;
    opacity: 0.5;
}

.plan-option-features li.disabled i {
    color: #ef4444;
}

.capacity-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #fbbf24;
    font-size: 0.9rem;
}

.capacity-warning i {
    font-size: 1.1rem;
}

.selected-plan-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
}

.selected-plan-info h4 {
    color: #c9a9ff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.plan-limits {
    display: grid;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.plan-limit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-limit i {
    color: #8b5cf6;
}

.plan-limit.warning {
    color: #f59e0b;
}

.plan-limit.warning i {
    color: #f59e0b;
}

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