/**
 * Fête des Arts - Styles CSS
 */

/* Container principal */
.fda-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.fda-form-container h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Messages */
.fda-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
}

.fda-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fda-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Fieldsets */
.fda-fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fff;
}

.fda-fieldset legend {
    font-weight: 600;
    color: #333;
    padding: 0 10px;
    font-size: 1.1em;
}

/* Champs */
.fda-field {
    margin-bottom: 20px;
}

.fda-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
}

.fda-field label small {
    font-weight: 400;
    color: #888;
    font-style: italic;
}

.fda-field input[type="text"],
.fda-field input[type="email"],
.fda-field input[type="tel"],
.fda-field input[type="url"],
.fda-field select,
.fda-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fda-field input:focus,
.fda-field select:focus,
.fda-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.fda-field input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Checkbox */
.fda-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.fda-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Grille pour 2 colonnes */
.fda-row {
    display: flex;
    gap: 20px;
}

.fda-half {
    flex: 1;
}

@media (max-width: 600px) {
    .fda-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Bloc artiste */
.fda-artiste-block {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.fda-artiste-block h4 {
    margin: 0 0 20px 0;
    color: #0073aa;
    font-size: 1.1em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Upload photo */
.fda-photo-input {
    padding: 10px;
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

.fda-photo-input:hover {
    border-color: #0073aa;
}

.fda-photo-preview {
    margin-top: 10px;
}

.fda-preview-container {
    display: inline-block;
    position: relative;
}

.fda-preview-container img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 6px;
    border: 2px solid #0073aa;
}

.fda-preview-info {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.fda-photo-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Bouton submit */
.fda-submit {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fda-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.4);
}

.fda-submit:active {
    transform: translateY(0);
}

/* Animation d'apparition des blocs artistes */
.fda-artiste-block {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validation des champs */
.fda-field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 500;
}

.fda-input-error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.fda-input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.fda-input-valid {
    border-color: #28a745 !important;
}

.fda-input-valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
}
/* Contour rouge pour tous les champs obligatoires */
.fda-form input[required],
.fda-form textarea[required],
.fda-form select[required] {
    border: 1px solid #dc3545 !important;
}

/* Contour vert quand le champ est rempli et valide */
.fda-form input[required].fda-input-valid,
.fda-form textarea[required].fda-input-valid,
.fda-form select[required].fda-input-valid {
    border-color: #28a745 !important;
}


/* Message info */
.fda-message-info {
margin:0;
padding:0;
}

.fda-message-info h3 {
    margin-top: 0;
}

/* Texte en rouge */
.fda-text-red {
    color: #dc3545 !important;
}