﻿/* Animations personnalisées */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #1E5959 0%, #3B8C6E 100%);
    position: relative;
    overflow: hidden;
}

    .contact-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
        opacity: 0.3;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    animation: fadeInDown 1s ease-out;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-size: 1.2rem;
}

/* Form Styling */
.contact-form {
    animation: slideInRight 1s ease-out;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.form-label {
    font-weight: 600;
    color: #1E5959;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .form-control:focus, .form-select:focus {
        border-color: #89D99D;
        box-shadow: 0 0 0 0.2rem rgba(137, 217, 157, 0.25);
        outline: none;
    }

    .form-control::placeholder {
        color: #adb5bd;
    }

.btn-submit {
    background: linear-gradient(135deg, #89D99D 0%, #3B8C6E 100%);
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(137, 217, 157, 0.3);
}

    .btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(137, 217, 157, 0.4);
        color: white;
    }

/* Contact Info Cards */
.contact-info-card {
    animation: slideInLeft 1s ease-out;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

    .contact-info-card:hover {
        border-color: #89D99D;
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-info-title {
    font-weight: 700;
    color: #1E5959;
    margin-bottom: 0.5rem;
}

.contact-info-text {
    color: #6c757d;
    margin: 0;
}

.contact-info-link {
    color: #3B8C6E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .contact-info-link:hover {
        color: #89D99D;
    }

/* Map Section */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Section */
.faq-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .faq-item:hover {
        border-color: #89D99D;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

.faq-question {
    font-weight: 700;
    color: #1E5959;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-icon {
    color: #89D99D;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-icon {
    transform: rotate(90deg);
}

.faq-answer {
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

    .animate-on-scroll.animated {
        animation: fadeInUp 0.8s ease-out forwards;
    }

/* Responsive */

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .btn-submit {
        width: 100%;
    }
}
