/* ============================================
   CONTACT PAGE STYLES - GLASSMORPHISM
   ============================================ */

.contact-page {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - var(--header-height) - 200px);
    background: #ffffff;
}

/* ============================================
   HEADER SECTION
   ============================================ */

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-header__title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
}

/* ============================================
   FORMULAIRE GLASSMORPHISM
   ============================================ */

.contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Ligne (row) contenant 1 ou 2 champs */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Champ individuel */
.contact-form__field {
    display: flex;
    flex-direction: column;
}

/* Champ qui prend toute la largeur */
.contact-form__field--full {
    grid-column: 1 / -1;
}

/* Inputs et textarea - GLASSMORPHISM */
.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

/* Empêcher le fond bleu de l'autocomplétion (Chrome/Safari/Edge) */
.contact-form__input:-webkit-autofill,
.contact-form__input:-webkit-autofill:hover,
.contact-form__input:-webkit-autofill:focus,
.contact-form__textarea:-webkit-autofill,
.contact-form__textarea:-webkit-autofill:hover,
.contact-form__textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.8) inset !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.8) inset !important;
    background-color: transparent !important;
    -webkit-text-fill-color: var(--color-text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Hover */
.contact-form__input:hover:not(:focus),
.contact-form__textarea:hover:not(:focus) {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(200, 200, 200, 0.4);
}

/* Focus (clic) + champs remplis */
.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__input:not(:placeholder-shown),
.contact-form__textarea:not(:placeholder-shown) {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #999;
    font-weight: 300;
}

/* Textarea spécifique */
.contact-form__textarea {
    resize: vertical;
    min-height: 200px;
}

/* Bouton submit - STYLE ÉDITEUR NOIR */
.contact-form__submit {
    width: fit-content;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 32px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-form__submit:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-form__submit:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Messages de confirmation/erreur - GLASSMORPHISM */
.contact-form__success,
.contact-form__error {
    padding: var(--spacing-sm);
    border-radius: 20px;
    text-align: center;
    margin-top: var(--spacing-sm);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.contact-form__success {
    background: rgba(212, 237, 218, 0.8);
    color: #155724;
    border: 1px solid rgba(195, 230, 203, 0.5);
}

.contact-form__error {
    background: rgba(248, 215, 218, 0.8);
    color: #721c24;
    border: 1px solid rgba(245, 198, 203, 0.5);
}

.contact-form__success p,
.contact-form__error p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .contact-page {
        padding: var(--spacing-md) 0;
    }
    
    .contact-header {
        margin-bottom: var(--spacing-md);
    }
    
    .contact-header__title {
        font-size: 1.25rem;
    }
    
    /* Formulaire sur une seule colonne en mobile */
    .contact-form__row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .contact-form {
        gap: var(--spacing-sm);
    }
    
    .contact-form__input,
    .contact-form__textarea {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .contact-form__textarea {
        min-height: 150px;
    }
    
    .contact-form__submit {
        width: 100%;
        padding: 14px 24px;
    }
}