/* --- CONTENEUR PRINCIPAL --- */
.cagnotte-create {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px); /* Ajuste selon ton header/footer */
}

.create-section {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 30px;
    animation: fadeInUp 0.6s ease;
}

/* --- HEADER DU FORMULAIRE --- */
.create-section .section-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    padding-bottom: 15px;
    text-align: center;
    display: block; /* Overide flex de home.css */
}

.create-section .section-header h2 {
    font-size: 1.4rem;
    justify-content: center;
    margin: 0;
}

.create-section .section-header span {
    color: rgb(107, 42, 28);
    font-weight: 800;
}

/* --- FORMULAIRE --- */
.cagnotte-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    margin-left: 5px;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: rgb(107, 42, 28);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(107, 42, 28, 0.1);
}

/* --- BOUTON DE SOUMISSION --- */
.btn-submit {
    margin-top: 10px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, rgb(107, 42, 28), rgb(167, 53, 41));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 42, 28, 0.3);
    opacity: 0.9;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* --- PETITS DÉTAILS --- */
.form-group input::placeholder {
    color: #bbb;
    font-size: 0.9rem;
}

/* Icône de chargement (Spinner) */
.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .create-section {
        padding: 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }
}

/* Style du message d'invitation (haut) */
.form-instruction {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

/* Style de la note de confidentialité (bas) */
.form-footer-note {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* Optionnel : si vous avez FontAwesome pour l'icône de cadenas */
.form-footer-note i {
    margin-right: 5px;
    color: rgb(107, 42, 28);
}

/* Cible le label des champs obligatoires */
.required-symbol {
    color: red !important;
}