/* ===== Page Contact Styles ===== */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, var(--ats-blue-dark) 0%, var(--ats-blue-light) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--ats-white);
    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="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    opacity: 0.2;
    animation: rotate 60s linear infinite;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.contact-hero p {
    font-size: 18px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Contact Main */
.contact-main {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* Contact Info */
.contact-info h2 {
    font-size: 32px;
    color: var(--ats-blue-dark);
    margin-bottom: 15px;
}

.contact-info > p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    background: var(--ats-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--ats-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ats-white);
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 18px;
    color: var(--ats-blue-dark);
    margin-bottom: 5px;
}

.info-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.info-details a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-details a:hover {
    color: var(--ats-red);
}

.info-note {
    font-size: 13px;
    color: #999 !important;
    font-style: italic;
}

/* Social Contact */
.social-contact {
    margin-top: 30px;
}

.social-contact h4 {
    font-size: 16px;
    color: var(--ats-blue-dark);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon-contact {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ats-blue-dark);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-contact:hover {
    background: var(--ats-red);
    color: var(--ats-white);
    transform: translateY(-5px);
}

/* Formulaire */
.contact-form-container {
    background: var(--ats-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    font-size: 28px;
    color: var(--ats-blue-dark);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ats-blue-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ats-red);
    box-shadow: 0 0 0 4px rgba(227, 17, 47, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.checkbox-label a {
    color: var(--ats-red);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Alertes */
.alert-success,
.alert-error {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    animation: slideInDown 0.5s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.contact-map-section {
    width: 100%;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.map-container iframe:hover {
    filter: grayscale(0);
}

/* Access Section */
.access-section {
    padding: 80px 0;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.access-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--ats-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.access-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(227, 17, 47, 0.1);
}

.access-icon {
    width: 70px;
    height: 70px;
    background: var(--ats-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--ats-white);
    transition: all 0.3s ease;
}

.access-item:hover .access-icon {
    background: var(--ats-blue-dark);
    transform: scale(1.1) rotate(360deg);
}

.access-item h3 {
    font-size: 18px;
    color: var(--ats-blue-dark);
    margin-bottom: 10px;
}

.access-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* FAQ Contact */
.contact-faq {
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--ats-white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h4 {
    font-size: 16px;
    color: var(--ats-blue-dark);
    margin: 0;
    font-weight: 500;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: var(--ats-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ats-white);
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--ats-blue-dark);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* Newsletter Contact */
.newsletter-contact {
    padding: 60px 0;
    background: var(--ats-blue-dark);
    color: var(--ats-white);
}

.newsletter-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-content p {
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 30px;
    white-space: nowrap;
}

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

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

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

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

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
}