@import url('https://fonts.googleapis.com/css2?family=Cal+Sans:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Mise en page du formulaire de contact inspirée de la démo originale */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 60px;
}

h4 {
    text-align: center;
    letter-spacing: 0,5px;
    font-weight: 600;
}

.container-left {
    padding-left: 20px;
}

.container-right {
    width: 50%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px;
}

.localisation {
    border-radius: 10px;
}

.title {
    color: #981d39;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 40px;
    align-items: center;
    font-family: 'Cal Sans';
    letter-spacing: 1px;
}
label{
    font-family :"Cal Sans";
}

input {
    font-family: 'Cal Sans', sans-serif;
    margin: 0;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #000000;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    font-family: 'Cal Sans', sans-serif;
    margin: 0;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #000000;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
}

.send {
    font-family: 'Cal Sans', sans-serif;
    font-size: 16px;
    width: 140px;
    height: 45px;
    border-radius: 10px;
    background-color: #981d39;
    color: white;
    border: none;
    cursor: pointer;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
    touch-action: manipulation;
}

.send:hover {
    transform: scale(1.05);
}

.button {
    text-align: center;
    margin-top: 20px;
}

/* Styles responsives pour tablettes */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 20px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .container-left {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    .container-right {
        width: 70%;
        max-width: 450px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
    }
    input, textarea {
        max-width: 100%;
        width: 100%;
    }
    iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* Styles responsives pour téléphones */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        gap: 25px;
    }
    .container-right {
        width: 85%;
        max-width: 380px;
        padding: 20px;
        margin: 0 auto;
    }
    .title {
        font-size: 24px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    input, textarea {
        padding: 15px;
        font-size: 16px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    .send {
        width: 160px;
        height: 50px;
        font-size: 17px;
        margin-top: 10px;
    }
}

/* Styles responsives pour très petits téléphones */
@media (max-width: 480px) {
    .container {
        padding: 10px;
        gap: 20px;
    }
    .container-right {
        width: 95%;
        max-width: 340px;
        padding: 15px;
    }
    .title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    input, textarea {
        padding: 12px;
        font-size: 16px;
        margin-bottom: 12px;
    }
    textarea {
        min-height: 100px;
    }
    .send {
        width: 100%;
        max-width: 200px;
        height: 48px;
        margin: 15px auto 0;
        display: block;
    }
    .contact-methods {
        gap: 20px;
    }
    .contact-box {
        max-width: 280px;
        padding: 15px 20px;
        height: auto;
        min-height: 160px;
    }
}

/* Styles pour les options de contact (téléphone et email) */
.contact-options {
    text-align: center;
    margin: 50px auto;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
.contact-title {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}
.contact-box {
    border: 1px solid #aaa;
    padding: 20px 30px;
    border-radius: 5px;
    max-width: 300px;
    height: 183px;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}
.contact-box:hover {
    transform: scale(1.05);
}
.contact-icon {
    width: 42px;
    height: auto;
    margin-bottom: 15px;
}
.contact-text {
    font-weight: bold;
    margin-bottom: 5px;
}
.contact-subtext {
    font-size: 13px;
    color: #555;
}
.link-wrapper {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Optimisations spécifiques pour mobile supplémentaires */
@media (max-width: 768px) {
    /*
     * Sur petit écran, augmenter la hauteur minimale des champs du formulaire uniquement.
     * On cible les éléments du formulaire à l’intérieur de la classe .container pour
     * éviter d’affecter d’autres boutons de la page comme le menu hamburger du header.
     */
    .container input,
    .container textarea,
    .container button {
        min-height: 44px;
    }
    .button {
        margin-top: 25px;
        padding: 10px;
    }
    h4 {
        font-size: 18px;
        line-height: 1.4;
    }
    .contact-title {
        font-size: 20px;
    }
}