/* Styles pour la page de contact - Respect de la charte des formulaires */
html, body.contact-centered-bg { 
    height: 100%; 
    min-height: 100vh; 
    margin: 0; 
    padding: 0; 
    background: transparent; 
    color: #374151; 
}

/* Rendre le main transparent pour l'effet de lévitation du formulaire */
main.main-content.contact-page-main,
.contact-page-main.main-content {
    background: transparent !important;
    padding-top: calc(var(--header-height) + 1rem);
}

.contact-centered-wrapper { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 2rem 1rem; 
}

.main-header { 
    background: transparent; 
    box-shadow: none; 
    margin-bottom: 1rem; 
}

.header-center { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 0; 
}

.logo { 
    display: flex; 
    align-items: center; 
    font-size: 2rem; 
    font-weight: bold; 
    color: #2ecc40; 
    margin-bottom: 0.5rem; 
}

.logo-icon { 
    font-size: 2.2rem; 
    margin-right: 0.5rem; 
}

.logo-text { 
    letter-spacing: 1px; 
}

.topbar { 
    width: 100%; 
}

.contact-section { 
    max-width: 600px; 
    width: 100%; 
    margin: 2.5rem auto; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    padding: 2.5rem; 
    display: flex; 
    flex-direction: column; 
    align-items: stretch; 
}

.contact-section h2 { 
    text-align: center; 
    margin-bottom: 2rem; 
    color: #2563eb; 
    font-size: 2rem;
    font-weight: 700;
}

/* Formulaire selon la charte de l'application */
.contact-form { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group label { 
    font-weight: 600; 
    color: #374151; 
    margin-bottom: 0.5rem; 
    font-size: 1rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea { 
    width: 100%; 
    padding: 0.875rem 1rem; 
    border: 2px solid #e5e7eb; 
    border-radius: 8px; 
    font-size: 1rem; 
    resize: vertical; 
    box-sizing: border-box; 
    background: #ffffff; 
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus { 
    outline: none; 
    border-color: #2563eb; 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
    background: #ffffff;
}

.contact-form .form-group textarea {
    min-height: 120px;
    line-height: 1.6;
}

.contact-submit-btn { 
    width: 100%; 
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff; 
    border: none; 
    padding: 1rem 2rem; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-submit-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn .btn-text {
    display: inline-block;
}

.contact-success { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #065f46;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-error { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #991b1b;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 600px) { 
    .contact-centered-wrapper { 
        padding: 1rem; 
    } 
    .contact-section { 
        margin: 1.5rem 0; 
        padding: 1.6rem; 
    }
    .contact-section h2 {
        font-size: 1.5rem;
    }
}
