/* ========================================
   FORMULAIRE DE CONTACT - STYLES
   ======================================== */

/* Wrapper principal */
.contact-form-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Pour fond transparent : background: transparent; */
    width: 100%;
    box-sizing: border-box;
}

/* Container du formulaire */
.contact-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Barre colorée en haut */
.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Titre */
.contact-form-wrapper h1 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 32px;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Sous-titre */
.contact-form-wrapper .subtitle {
    color: #4a5568 !important;
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.6;
}

/* Groupe de champs */
.contact-form-wrapper .form-group {
    margin-bottom: 25px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Labels */
.contact-form-wrapper label {
    display: block;
    margin-bottom: 10px;
    color: #2d3748 !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Champs de saisie */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f7fafc;
    color: #2d3748 !important;
    text-align: left;
    box-sizing: border-box;
}

/* Placeholder */
.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: #a0aec0 !important;
}

/* État focus des champs */
.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Zone de texte */
.contact-form-wrapper textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Bouton d'envoi */
.contact-form-wrapper button {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Effet de vague sur le bouton */
.contact-form-wrapper button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.contact-form-wrapper button:hover::before {
    left: 100%;
}

/* Survol du bouton */
.contact-form-wrapper button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Clic sur le bouton */
.contact-form-wrapper button:active {
    transform: translateY(-1px);
}

/* Message de succès */
.contact-form-wrapper .success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

.contact-form-wrapper .success::before {
    content: '✓';
    font-size: 24px;
    margin-right: 12px;
    font-weight: bold;
}

/* Message d'erreur */
.contact-form-wrapper .error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #dc3545;
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

.contact-form-wrapper .error::before {
    content: '✗';
    font-size: 24px;
    margin-right: 12px;
    font-weight: bold;
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de focus sur les labels */
.contact-form-wrapper .form-group:focus-within label {
    color: #667eea;
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 20px 10px;
    }
    
    .contact-form-container {
        padding: 20px 15px;
        border-radius: 15px;
        max-width: calc(100% - 20px);
        margin: 0 auto;
        width: auto;
    }
    
    .contact-form-wrapper h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .contact-form-wrapper .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .contact-form-wrapper .form-group {
        margin-bottom: 20px;
    }
    
    .contact-form-wrapper label {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .contact-form-wrapper input[type="text"],
    .contact-form-wrapper input[type="email"],
    .contact-form-wrapper textarea {
        padding: 12px 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .contact-form-wrapper textarea {
        min-height: 100px;
    }
    
    .contact-form-wrapper button {
        padding: 13px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .contact-form-wrapper .success,
    .contact-form-wrapper .error {
        padding: 12px 15px;
        font-size: 13px;
        margin-bottom: 20px;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .contact-form-wrapper {
        padding: 15px 5px;
    }
    
    .contact-form-container {
        padding: 18px 12px;
        max-width: calc(100% - 10px);
    }
    
    .contact-form-wrapper h1 {
        font-size: 20px;
    }
    
    .contact-form-wrapper .subtitle {
        font-size: 12px;
    }
    
    .contact-form-wrapper input[type="text"],
    .contact-form-wrapper input[type="email"],
    .contact-form-wrapper textarea {
        padding: 10px;
        font-size: 13px;
    }
}