/* =============================================
   CONTACT PAGE ENHANCED STYLES
   ============================================= */

/* Container principal */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 40px;
    padding: 0 20px;
}

/* Section formulaire */
.contact-form-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 88, 124, 0.08);
    border: 1px solid rgba(0, 88, 124, 0.1);
}

.contact-form h2 {
    color: #00587C;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form .subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group .required {
    color: #ef4444;
    font-weight: 700;
}

/* Inputs et textarea */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-control:focus {
    outline: none;
    border-color: #009FDA;
    box-shadow: 0 0 0 4px rgba(0, 159, 218, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Select amélioré */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

/* Messages de feedback */
.success-message,
.error-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.success-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    color: #166534;
}

.error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.success-message i,
.error-message i {
    font-size: 20px;
    flex-shrink: 0;
}

/* Bouton d'envoi */
.form-actions {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
}

.btn.btn-primary {
    background: linear-gradient(135deg, #009FDA 0%, #00587C 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 88, 124, 0.25);
    width: 100%;
    justify-content: center;
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 88, 124, 0.35);
    background: linear-gradient(135deg, #00587C 0%, #009FDA 100%);
}

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

.btn.btn-primary i {
    animation: float-icon 2s ease-in-out infinite;
}

/* Section informations */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-section h2 {
    color: #00587C;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Blocs d'information */
.info-block {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #009FDA;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #009FDA 0%, #00587C 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-block:hover::before {
    transform: scaleX(1);
}

.info-block i {
    font-size: 28px;
    color: #009FDA;
    margin-bottom: 12px;
    display: block;
}

.info-block h3 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-block p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.info-block a {
    color: #009FDA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.info-block a:hover {
    color: #00587C;
    text-decoration: underline;
}

/* Section FAQ */
.faq-section {
    background: linear-gradient(135deg, #f8fafb 0%, #f1f5f9 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 10px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.faq-item::before {
    content: '?';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #009FDA 0%, #00587C 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-question {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-answer {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

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

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'entrée pour les info blocks */
.info-block.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* État focused pour les form groups */
.form-group.focused label {
    color: #009FDA;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-section {
        padding: 30px;
    }

    .contact-info-section {
        order: -1;
    }
}

@media (max-width: 576px) {
    .contact-form-section {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .contact-form h2 {
        font-size: 24px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn.btn-primary {
        padding: 12px 24px;
        font-size: 15px;
    }

    .info-block {
        padding: 20px;
    }

    .faq-section {
        padding: 20px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-item::before {
        display: none;
    }
}

/* États de chargement */
.btn.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Focus visible pour l'accessibilité */
.form-control:focus-visible,
.btn:focus-visible {
    outline: 3px solid #009FDA;
    outline-offset: 2px;
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .contact-form-section {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: rgba(148, 163, 184, 0.2);
    }

    .form-control {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }

    .form-control:hover {
        border-color: #475569;
    }

    .info-block {
        background: #1e293b;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .info-block h3,
    .contact-form h2,
    .contact-info-section h2 {
        color: #e2e8f0;
    }

    .form-group label {
        color: #cbd5e1;
    }

    .faq-section {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }

    .faq-item {
        background: #0f172a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .faq-question {
        color: #e2e8f0;
    }
}