/*
* Contact Page Styles - contact.css
* Thème MOYAZ Tradi
* Author: ATAP Team
*/

/* ===== CONTACT HERO SECTION ===== */
.contact-hero-section {
     background: linear-gradient(135deg, var(--cream) 0%, var(--warm-beige) 100%);
    padding: 120px 0 60px;
    position: relative;
    text-align: center;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background-image: 
        radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 25px 25px, rgba(160, 117, 61, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 50px 0, rgba(34, 139, 34, 0.3) 2px, transparent 2px);
    background-size: 50px 50px;
    background-repeat: repeat;
    opacity: 1;
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--secondary-brown);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CONTACT MAIN SECTION ===== */
.contact-main-section {
    padding: 80px 0;
    background: var(--neutral-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

/* ===== FORMULAIRE DE CONTACT ===== */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-warm);
}

.contact-form {
    max-width: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    /*display: block;*/
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--neutral-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(160, 117, 61, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    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 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* ===== CHECKBOX GROUPE ===== */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    display: inline-flex;
    align-items: center; /* centrer verticalement */
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    padding-left: 0; /* facultatif si tu as des styles hérités */
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.checkmark {
       width: 20px;
    height: 20px;
    border: 2px solid var(--primary-brown);
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-brown);
    border-color: var(--primary-brown);
}
.checkbox-label input:checked + .checkmark::before {
    content: '✓';
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Use either ::after or ::before, not both. Comment out one approach */

/* Focus state for accessibility */
.checkbox-label input:focus + .checkmark {
    outline: 2px solid var(--primary-brown);
    outline-offset: 2px;
}

/* Disabled state */
.checkbox-label input:disabled + .checkmark {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--neutral-light);
}

.checkbox-label input:disabled {
    cursor: not-allowed;
}

.checkbox-label:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== BOUTON CONTACT ===== */
.btn-contact {
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-contact .btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-contact.loading .btn-text {
    opacity: 0;
}

.btn-contact.loading .btn-loading {
    display: block;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* ===== MESSAGE FORMULAIRE ===== */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(34, 139, 34, 0.1);
    color: var(--green-garnish);
    border: 1px solid rgba(34, 139, 34, 0.2);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ===== INFORMATIONS DE CONTACT ===== */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card,
.social-media-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px var(--shadow-warm);
}

.contact-info-card h3,
.social-media-card h3 {
    color: var(--secondary-brown);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-brown), var(--accent-gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--secondary-brown);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-details a {
    color: var(--primary-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-brown);
}

/* ===== RÉSEAUX SOCIAUX ===== */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #E4405F, #F56040, #FFDC80);
}

.social-link.whatsapp {
    background: #25D366;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== SECTION FAQ ===== */

.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px var(--shadow-warm);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--neutral-light);
}

.faq-question[aria-expanded="true"] {
    background: var(--warm-beige);
    color: var(--secondary-brown);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-brown);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
    padding-top: 15px;
    background: white;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info-wrapper {
        order: -1;
    }
    
    .contact-hero-section {
        padding: 100px 0 50px;
    }
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }
        .social-media-card {
        display: none;
    }
    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
    
      .contact-main-section {
    display: flex;
    flex-direction: column;
  }
    
   .contact-form-wrapper {
    order: -1;
  }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-card,
    .social-media-card {
        padding: 1.5rem;
    }
    
    .faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .contact-hero-section {
        padding: 80px 0 40px;
    }
    
    .contact-main-section {
        padding: 40px 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 0 1rem 1rem;
    }
}

/* ===== ÉTATS DE FOCUS POUR L'ACCESSIBILITÉ ===== */
.faq-question:focus {
    outline: 2px solid var(--primary-brown);
    outline-offset: 2px;
}

.social-link:focus {
    outline: 2px solid var(--primary-brown);
    outline-offset: 2px;
}

/* ===== STYLES POUR LES BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
   background-color: #824c1e;
    color: white;
    box-shadow: 0 5px 20px var(--shadow-warm);
}

.btn-primary:hover {
  transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 117, 61, 0.4);
}

.btn-secondary {
     background: transparent;
    color: var(--primary-brown);
    border-color: #824c1e;
}

.btn-secondary:hover {
      background: #824c1e;
    color: white;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--secondary-brown);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    background: white;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
      background-color: #824c1e;
    color: white;
    box-shadow: 0 5px 20px var(--shadow-warm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 117, 61, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-brown);
    border-color: #824c1e;
}

.btn-secondary:hover {
    background: #824c1e;
    color: white;
}
.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1rem;
    color: var(--secondary-brown);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}