/* Styles spécifiques pour la page de contact */

/* Hero section pour contact - Simple et épuré */
.hero-contact {
    min-height: 40vh;
    height: 40vh;
    background-image: url('../Images/Illustrations/Desktop/bonahora_contruction.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Overlay sombre pour améliorer la lisibilité du texte */
.hero-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-contact .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

/* Les styles .hero-title sont désormais définis dans styles-index.css */
/* Cela garantit une cohérence sur tout le site */

/* Lien cliquable du hero */
.hero-contact .hero-content-link {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animation pour le titre et la flèche du hero */
.hero-contact .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both, titleBounce 2s ease-in-out 2s infinite;
}

.hero-contact .hero-arrow {
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-contact .hero-content-link:hover .hero-arrow {
    opacity: 1;
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Section de contact */
.contact-section {
    max-height: none !important;
}

.contact-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

/* Informations de contact */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(238, 127, 8, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.info-block h3 {
    color: #ee7f08;
    font-family: "Comfortaa", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-align: left;
}

.info-block p,
.info-block a {
    color: #616362;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-block a:hover {
    color: #ee7f08;
    text-decoration: underline;
}

.info-text {
    padding: 20px;
    background-color: #fff7f0;
    border-left: 4px solid #ee7f08;
    border-radius: 5px;
}

.info-text p {
    color: #616362;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Formulaire de contact */
.contact-form-wrapper {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #616362;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    color: #616362;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ee7f08;
    box-shadow: 0 0 0 3px rgba(238, 127, 8, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

/* Bouton de soumission */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #ee7f08;
    color: white;
    border: 2px solid #ee7f08;
    border-radius: 40px 50px / 70px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: white;
    color: #ee7f08;
    border-color: #ee7f08;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages de retour */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section carte */
.map-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.map-section h2 {
    margin-bottom: 30px;
}

.map-and-image-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.office-image-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.office-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    text-align: center;
    margin-top: 0;
    color: #616362;
    font-size: 0.95rem;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
}

.map-container {
    flex: 1;
    width: 100%;
}

.map-container iframe {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
}

/* Responsive design */
@media (max-width: 900px) {
    /* Hero responsive pour tablette */
    .hero-contact {
        background-image: url('../Images/Illustrations/Tablette/bonahora_contruction.webp');
    }

    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-block {
        padding: 15px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
    }

    .info-block h3 {
        font-size: 1rem;
    }

    .info-block p,
    .info-block a {
        font-size: 0.9rem;
    }

    .map-and-image-container {
        flex-direction: column;
        gap: 30px;
    }

    .office-image,
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 600px) {
    /* Hero responsive pour mobile */
    .hero-contact {
        background-image: url('../Images/Illustrations/Mobile/bonahora_contruction.webp');
    }

    .contact-section {
        padding: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    .office-image,
    .map-container iframe {
        height: 300px;
    }
}
