@import url("header.css");
@import url("footer.css");

html {
    height: 100%;
}

@media screen and (max-width: 768px) {
    html {
        min-height: 100%;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    height: 100%;
}

.container {
    max-width: 80%;
    margin: auto;
}


/* Styles pour la page de contact */
.contact-page {
    height: 80%;
    background-color: #f7f7f7;
}

.contact-page h1 {
    font-size: 36px;
    margin-top: 0px;
    padding-top: 30px;
}

.contact-us {
    height: 50%;
}

.contact-us form {
    max-width: 600px;
    text-align: left;
}

.contact-us input,
.contact-us textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-us button {
    background-color: #35424a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.contact-us button:hover {
    background-color: #1f2a30;
}

.contact-content {
    display: flex;
    justify-content: left;
    align-items: flex-start;
    gap: 200px;
    margin-top: 30px;
}


/* Responsive contact page */

@media screen and (max-width: 900px) {
    .contact-page {
        height: auto;
    }

    .contact-us {
        height: auto;
    }

    .contact-content {
        gap: 60px;
    }

    .contact-us form {
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .contact-content {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        align-items: stretch;
    }

    .contact-page h1 {
        font-size: 24px;
        padding-top: 10px;
    }

    .contact-us form {
        padding: 0 10px;
    }

    #email {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .find-us {
        height: auto;
        padding-bottom: 20px;
    }

    .map-container {
        height: 180px;
    }

}

#horaires,
#telephone,
#email {
    margin-bottom: 20px;
    font-size: large;
}

.horaires-text {
    text-decoration: underline;
    cursor: pointer;
}

/* Popup horaires */
.popup-horaires ul {
    padding-left: 0;
    margin: 12px 0 0 0;
    list-style: none;
}

.popup-horaires ul li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 16px;
    border-bottom: 1px solid #e2e2e2;
}

.popup-horaires ul li:last-child {
    border-bottom: none;
}

.popup-horaires ul li::before {
    content: "🕒";
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 18px;
    color: #2196f3;
}

.popup-horaires ul li:last-child::before {
    content: "⛔";
    color: #e53935;
}

.popup-horaires {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-horaires .popup-content {
    background: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    min-width: 260px;
    max-width: 90vw;
    text-align: left;
    position: relative;
}

.popup-horaires h3 {
    margin-top: 0;
    color: #35424a;
}

.popup-horaires ul {
    padding-left: 18px;
    margin: 12px 0 0 0;
}

.close-popup {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    color: #35424a;
    cursor: pointer;
    font-weight: bold;
}

#telephone a,
#email a {
    text-decoration: none;
    padding: 5px;
    border-radius: 8px;
    transition: transform 0.s cubic-bezier(.4, 0, .2, 1), box-shadow 0.s cubic-bezier(.4, 0, .2, 1);
}

#telephone a:hover,
#email a:hover {
    text-decoration: underline;
}

#telephone a {
    background-color: #4caf50;
    color: white;
}

#telephone a:hover {
    background-color: #45a049;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#email a {
    background-color: #2196f3;
    color: white;
}

#email a:hover {
    background-color: #1e88e5;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.find-us {
    background-color: #e2e2e2;
    height: 50%;
}

.find-us h2 {
    padding-top: 20px;
    margin-top: 0px;
}

.find-us .container {
    height: 100%;
}

.map-container {
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}
