/* --- Page de Création 2026 --- */
:root { 
    --primary: #6366f1; 
    --secondary: #a855f7; 
    --glass: rgba(255, 255, 255, 0.7); 
    --error: #ef4444; 
}

.hero-container { max-width: 900px; margin: 40px auto; padding: 0 20px; }

.glass-card { 
    background: var(--glass); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 30px; 
    padding: 40px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); 
}

.section-title { 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin: 30px 0 15px; 
    color: #1f2937; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 15px; 
    margin-bottom: 30px; 
    padding: 10px; 
    overflow-y: auto; 
    max-height: 400px; 
    border-radius: 15px; 
}

.card-option { 
    cursor: pointer; 
    border-radius: 15px; 
    overflow: hidden; 
    border: 3px solid transparent; 
    transition: 0.3s; 
    position: relative; 
    background: #eee; 
}

.card-option img { width: 100%; height: 120px; object-fit: cover; display: block; }

.card-option.selected { 
    border-color: var(--primary); 
    transform: scale(0.98); 
}

.card-option.selected::after { 
    content: "✓"; 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    background: var(--primary); 
    color: white; 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
}

.input-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}

.field-group { margin-bottom: 20px; position: relative; }

label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: #4b5563; }

input, textarea, select { 
    width: 100%; 
    box-sizing: border-box; 
    padding: 14px; 
    border-radius: 12px; 
    border: 1px solid rgba(0,0,0,0.1); 
    background: rgba(255,255,255,0.9); 
    outline: none; 
    transition: 0.2s; 
}

input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); 
}

.ai-controls { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }

.ai-gen-btn { 
    background: none; border: none; 
    color: var(--primary); 
    font-size: 0.85rem; 
    font-weight: 800; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    padding: 5px 10px; 
    border-radius: 8px; 
    background: rgba(99, 102, 241, 0.1); 
}

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

.btn-magic { 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white; border: none; 
    padding: 18px; 
    border-radius: 15px; 
    font-size: 1.2rem; 
    font-weight: 700; 
    cursor: pointer; 
    width: 100%; 
    margin-top: 20px; 
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4); 
    transition: transform 0.2s; 
}

.btn-magic:hover { transform: translateY(-2px); }

textarea {
    background: #fffef0;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #2c3e50;
    background-image: linear-gradient(#e1e1e1 1px, transparent 1px);
    background-size: 100% 1.6em;
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: #ffffff;
}