
/* Structure de base */
.project-creation {
    padding: 2rem 0;
}

.project-creation h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.project-creation h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Onglets */
.option-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Gabarits */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.template-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.template-preview {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.template-info {
    padding: 1.5rem;
    text-align: center;
}

.template-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.template-info p {
    margin-bottom: 1.5rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
}

.use-template {
    width: 100%;
}


#custom-project-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

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

/* Upload d'image */
.image-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.image-preview {
    width: 200px;
    height: 120px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
}

#project-image {
    display: none;
}

/* Sous-projets */
.subproject-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.subproject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9f9f9;
    cursor: pointer;
}

.subproject-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.btn-collapse {
    background: none;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
}

.subproject-content {
    padding: 1rem;
    border-top: 1px solid #eee;
}

/* Questions */
.question-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.question-input {
    flex: 1;
    padding: 0.5rem;
}

.btn-remove-question {
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-question:hover {
    background-color: #eee;
    color: var(--accent-color);
}

/* Types de contenu */
.content-types {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-types label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Visibilité */
.visibility-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.visibility-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Boutons */
.btn-primary {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: rgb(6, 53, 133);
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: #d5dbdf;
}

.btn-danger {
    padding: 0.6rem 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background-color: #f1b0b7;
}

/* Actions du formulaire */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Texte info */
.info-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875em;
}
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    padding-right: 40px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password .fa-eye-slash {
    display: none;
}

/* Quand le mot de passe est visible */
.password-visible .fa-eye {
    display: none;
}

.password-visible .fa-eye-slash {
    display: inline;
}
/* Responsive */
@media (max-width: 768px) {
    .option-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left: 3px solid var(--primary-color);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .subproject-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* styles pour la mise en page */
.create-hero {
            background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.create-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.create-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.creation-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.creation-main {
    flex: 2;
}

.creation-steps {
    margin-top: 4.5rem;
    flex: 1;
    background-color: #bbbbbb67;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.creation-steps h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

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

.step-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .creation-layout {
        flex-direction: column;
    }
    
    .creation-steps {
        position: static;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .creation-layout {
        flex-direction: column;
    }
    
    .creation-steps {
        margin-top: 0;
        position: static;
        order: -1;
    }
    
    .creation-main {
        order: 1; 
    }
}