/* ============================================
   PAGE CONTACT - Styles Modernes
   ============================================ */

/* Hero Header */
.contact-hero {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    padding: 3rem 1.5rem;
    margin: 1rem -1rem 2rem -1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.contact-hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    position: relative;
    z-index: 1;
}

.contact-hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.contact-hero-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Container principal */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Card du formulaire */
.contact-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.contact-form-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-header-icon i {
    color: #fff;
    font-size: 1.5rem;
}

.contact-form-header-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1565c0;
    margin: 0;
}

.contact-form-body {
    padding: 2rem;
}

/* Champs de formulaire Materialize améliorés */
.contact-form-body .input-field {
    margin-bottom: 1.5rem;
}

.contact-form-body .input-field input,
.contact-form-body .input-field textarea {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form-body .input-field input:focus,
.contact-form-body .input-field textarea:focus {
    border-color: #1565c0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.contact-form-body .input-field label {
    color: #757575;
    font-weight: 500;
    padding-left: 4px;
}

.contact-form-body .input-field label.active {
    color: #1565c0;
    font-weight: 600;
}

/* Textarea spécifique */
.contact-form-body textarea {
    min-height: 150px;
    resize: vertical;
}

/* Compteur de caractères */
.contact-char-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #757575;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-char-counter input {
    width: 50px !important;
    text-align: center;
    border: none !important;
    background: transparent !important;
    font-weight: 600;
    color: #1565c0 !important;
    padding: 0 !important;
}

/* Bouton d'envoi */
.contact-submit-btn {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.contact-submit-btn i {
    font-size: 1.2rem;
}

/* Messages de retour */
.contact-message {
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
    align-items: center;
    gap: 1rem;
}

.contact-message.show {
    display: flex;
}

.contact-message.success {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    color: #fff;
}

.contact-message.error {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: #fff;
}

.contact-message-icon {
    font-size: 2rem;
}

.contact-message-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Info box */
.contact-info-box {
    background: #e3f2fd;
    border-left: 4px solid #1565c0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info-box i {
    color: #1565c0;
    font-size: 1.25rem;
}

.contact-info-box span {
    color: #424242;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
    .contact-hero {
        padding: 2rem 1rem;
    }

    .contact-hero-title {
        font-size: 1.75rem;
    }

    .contact-hero-icon {
        font-size: 3rem;
    }

    .contact-form-header {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-form-header-icon {
        margin: 0 auto;
    }

    .contact-form-body {
        padding: 1.5rem 1rem;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .contact-hero {
        background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    }

    .contact-form-card {
        background: #1e1e1e;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .contact-form-header {
        background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
        border-bottom-color: #424242;
    }

    .contact-form-header-title {
        color: #90caf9;
    }

    .contact-form-body .input-field input,
    .contact-form-body .input-field textarea,
    .contact-form-body .input-field textarea.materialize-textarea {
        background-color: #2d2d2d !important;
        border-color: #424242;
        color: #fff !important;
    }

    .contact-form-body .input-field input:focus,
    .contact-form-body .input-field textarea:focus,
    .contact-form-body .input-field textarea.materialize-textarea:focus {
        background-color: #1e1e1e !important;
        border-color: #42a5f5;
        box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.2);
        color: #fff !important;
    }

    .contact-form-body .input-field label {
        color: #9e9e9e;
    }

    .contact-form-body .input-field label.active {
        color: #90caf9;
    }

    .contact-info-box {
        background: #1a237e;
        border-left-color: #42a5f5;
    }

    .contact-info-box span {
        color: #b0b0b0;
    }

    .contact-char-counter {
        color: #9e9e9e;
    }
}

/* Support via attribut data-theme ou classe */
[data-theme="dark"] .contact-hero,
.dark-theme .contact-hero,
body.dark .contact-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

[data-theme="dark"] .contact-form-card,
.dark-theme .contact-form-card,
body.dark .contact-form-card {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-form-header,
.dark-theme .contact-form-header,
body.dark .contact-form-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-bottom-color: #424242;
}

[data-theme="dark"] .contact-form-header-title,
.dark-theme .contact-form-header-title,
body.dark .contact-form-header-title {
    color: #90caf9;
}

[data-theme="dark"] .contact-form-body .input-field input,
[data-theme="dark"] .contact-form-body .input-field textarea,
[data-theme="dark"] .contact-form-body .input-field textarea.materialize-textarea,
.dark-theme .contact-form-body .input-field input,
.dark-theme .contact-form-body .input-field textarea,
.dark-theme .contact-form-body .input-field textarea.materialize-textarea,
body.dark .contact-form-body .input-field input,
body.dark .contact-form-body .input-field textarea,
body.dark .contact-form-body .input-field textarea.materialize-textarea {
    background-color: #2d2d2d !important;
    border-color: #424242;
    color: #fff !important;
}

[data-theme="dark"] .contact-form-body .input-field input:focus,
[data-theme="dark"] .contact-form-body .input-field textarea:focus,
[data-theme="dark"] .contact-form-body .input-field textarea.materialize-textarea:focus,
.dark-theme .contact-form-body .input-field input:focus,
.dark-theme .contact-form-body .input-field textarea:focus,
.dark-theme .contact-form-body .input-field textarea.materialize-textarea:focus,
body.dark .contact-form-body .input-field input:focus,
body.dark .contact-form-body .input-field textarea:focus,
body.dark .contact-form-body .input-field textarea.materialize-textarea:focus {
    background-color: #1e1e1e !important;
    border-color: #42a5f5;
    color: #fff !important;
}
