/* Styles spécifiques à la page Contact */

/* En-tête de la page */
.contact-header {
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('images/contact-banner.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    margin-top: 80px;
}

.contact-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.contact-header p {
    font-size: 1.1rem;
    max-width: 700px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Section principale */
.contact-main {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

/* Informations de contact */
.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--rich-black);
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.contact-info-header p {
    font-size: 1rem;
    color: var(--mid-gray);
    line-height: 1.6;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--gold);
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--rich-black);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-text p {
    color: var(--mid-gray);
    line-height: 1.6;
}

.contact-social {
    margin-top: auto;
}

.contact-social h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--rich-black);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.contact-social .social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--rich-black);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Formulaire de contact */
.contact-form-section {
    background-color: var(--white);
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--rich-black);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--rich-black);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--rich-black);
    background-color: rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.required {
    color: #d9534f;
}

.form-error {
    color: #d9534f;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-submit {
    margin-top: 1rem;
}

.submit-btn {
    padding: 1rem 2rem;
    background-color: var(--gold);
    color: var(--white);
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Section Carte */
.map-section {
    padding: 0;
    background-color: var(--white);
}

.map-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    pointer-events: none;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.8) contrast(1.1);
    border: none;
}

/* Section CTA */
.contact-cta {
    padding: 5rem 0;
    background-color: var(--cream);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--rich-black);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--mid-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--gold);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.cta-btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Popup de confirmation */
.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 3px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.confirmation-popup.active .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--mid-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--rich-black);
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--mid-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.popup-btn {
    padding: 0.8rem 2rem;
    background-color: var(--gold);
    color: var(--white);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.popup-btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Bouton retour en haut de page */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--dark-gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animation lors du chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info,
.contact-form-section {
    animation: fadeIn 0.8s ease forwards;
}

.contact-form-section {
    animation-delay: 0.3s;
}

/* Style pour les champs avec erreur */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-section {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .contact-header h1 {
        font-size: 2.2rem;
    }
    
    .contact-header {
        height: 250px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-header p {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-item {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .popup-content {
        padding: 2rem;
    }
}


.social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* couleur normale */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #E1306C; /* couleur officielle Instagram au hover */
  }

  .social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* Couleur normale */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #1877F2; /* Bleu officiel Facebook au survol */
  }
  

  .social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* Couleur normale */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #E60023; /* Couleur officielle Pinterest au hover */
  }
  
  .social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* ou blanc #fff selon ton design */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #69C9D0; /* couleur officielle TikTok ou autre couleur au survol */
  }
  