/**
 * Styles publics du formulaire de contact
 */

/* Conteneur principal */
#contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 0;
}

/* Messages de retour */
.contact-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.contact-message.contact-success {
    background: #59a80f;
    color: #fff;
    border: 1px solid #59a80f;
}

.contact-message.contact-error {
    background: #f9cd00;
    color: #9C6533;
    border: 1px solid #f9cd00;
}

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

/* Notice champs obligatoires */
.contact-required-notice {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.contact-required-notice strong {
    color: #ff0000;
}

/* Structure en grille */
.rang-form {
    width: 100%;
    margin-bottom: 5px;
}

.demi-colonne,
.colonne {
    float: left;
    position: relative;
    padding: 0.65rem;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

@media only screen and (min-width: 48em) {
    .demi-colonne {
        width: 50%;
    }
}

/* Labels */
.contact-form-main label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    font-family: "Open Sans", sans-serif;
}

.contact-form-main label .required {
    color: #ff0000;
    font-weight: bold;
}

/* Champs de saisie */
.contact-form-main input[type="text"],
.contact-form-main input[type="email"],
.contact-form-main textarea {
    width: 100%;
    padding: 10px;
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.05);
    background: #FCFCFC;
    border: #EEE 1px solid;
    color: #333;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    border-radius: 3px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-main input[type="text"]:focus,
.contact-form-main input[type="email"]:focus,
.contact-form-main textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: inset 1px 1px 5px rgba(44, 90, 160, 0.1);
    background: #fff;
}

.contact-form-main textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

/* Séparateur */
.contact-separator {
    height: 2px;
    border: none;
    background: linear-gradient(to right, #EEE 0%, #ff0000 50%, #EEE 100%);
    margin: 20px 0;
}

/* Bouton d'envoi */
.contact-submit-button {
    width: 100%;
    padding: 12px 30px;
    background: #2c5aa0;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-submit-button:hover {
    background: #234580;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.contact-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-submit-button:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    #contact-form-container {
        padding: 10px;
    }
    
    .contact-form-main input[type="text"],
    .contact-form-main input[type="email"],
    .contact-form-main textarea {
        font-size: 16px;
    }
    
    .demi-colonne {
        padding: 0.5rem;
    }
}
