/* Importation des polices */
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F6F6E9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Barre de navigation */
header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

nav .logo img {
    width: 180px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #167151;
}

/* Section Contact */
#contact {
    padding: 60px 20px;
    background-color: #E9E9E1;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info, .contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-info h2, .contact-map h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #167151;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 1.2em;
    color: #167151;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1em;
    color: #555;
    margin: 0;
}

.map-container {
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

iframe {
    border: 0;
    width: 100%;
    height: 450px;
}

/* Formulaire de contact */
#message {
    padding: 60px 20px;
    text-align: center;
}

#message h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #167151;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#contact-form .form-group label {
    display: block;
    font-size: 1em;
    color: #333;
    margin-bottom: 8px;
}

#contact-form .form-group input,
#contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

#contact-form .form-group input:focus,
#contact-form .form-group textarea:focus {
    border-color: #167151;
    outline: none;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#contact-form .form-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form .form-actions button[type="submit"] {
    background-color: #167151;
    color: white;
}

#contact-form .form-actions button[type="submit"]:hover {
    background-color: #145a41;
}

#contact-form .form-actions button[type="reset"] {
    background-color: #ccc;
    color: #333;
}

#contact-form .form-actions button[type="reset"]:hover {
    background-color: #999;
}

/* Notification de confirmation (toast) */
.confirmation-toast {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #167151;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeInOut 4s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    10%, 90% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.confirmation-toast p {
    margin: 0;
    font-size: 1em;
}

/* Pied de page */
footer {
    background-color: #fff;
    padding: 60px 20px 20px;
    color: #333;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 220px;
    margin: 20px 0;
}

.footer-col h4 {
    font-size: 18px;
    color: #167151;
    text-transform: capitalize;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #167151;
    height: 2px;
    width: 50px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #167151;
}

.footer-logo {
    width: 150px;
    margin-top: 10px;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    margin-right: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.social-links a img {
    width: 30px;
    height: 30px;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #167151;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0; /* Supprime l'espace intérieur */
}

#scrollToTopBtn img {
    width: 24px; /* Taille de l'image */
    height: 24px;
    margin: auto; /* Centre l'image */
    display: block;
}

#scrollToTopBtn:hover {
    background-color: #145a41;
}

/* Affichage du bouton lorsqu'on scrolle */
.show-scrollTop {
    display: block;
}

/* Responsivité */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    #contact-form .form-actions {
        flex-direction: column;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-col {
        max-width: 100%;
        text-align: center;
    }

    .footer-col ul li a {
        font-size: 18px;
    }
}
