html, body {
    overflow-x: hidden;
  }
  
  * {
    text-decoration: none;
    margin: 0;
    box-sizing: border-box;
  }

/* ✅ Conteneur principal */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 150px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ✅ Partie Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1;
    min-width: 300px;
}

/* ✅ Titres et textes */
.contact-title {
    font-size: 48px;
    font-weight: 500;
    color: #303030;
}

.text-bold {
    font-family: var(--text-engagement-font-family);
    font-weight: var(--text-engagement-font-weight);
    font-size: var(--text-engagement-font-size);
    letter-spacing: var(--text-engagement-letter-spacing);
    line-height: var(--text-engagement-line-height);
    font-style: var(--text-engagement-font-style);
}



.contact-description {
    font-size: 24px;
    color: #303030;
}

/* ✅ Section Détails Contact */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 32px;
    height: 32px;
}

/* ✅ Lien Contact */
.contact-link {
    text-decoration: none;
    color: black;
    font-size: 20px;
}

/* ✅ Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* ✅ Assure que le conteneur du formulaire prend bien toute la largeur disponible */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%; /* ✅ Assure que l’ensemble des inputs ne dépasse pas */
    max-width: 100%; /* ✅ Empêche le dépassement */
    box-sizing: border-box; /* ✅ Inclut padding et border dans la largeur */
}

/* ✅ Ajuste les inputs et textarea pour s'adapter proprement à .form-group */
.form-input,
.form-textarea {
    width: 100%; /* ✅ Prend exactement la largeur de .form-group */
    max-width: 100%; /* ✅ Empêche le dépassement */
    padding: 12px;
    border: 1px solid #3355ff;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box; /* ✅ Empêche que padding & border augmentent la taille */
}

.contact{
    border-color: var(--cyan);
}
.form-title {    
    color: #3355ff;
    font-family: var(--h4-font-family);
    font-weight: var(--h4-font-weight);
    font-size: var(--h4-font-size);
    letter-spacing: var(--h4-letter-spacing);
    line-height: var(--h4-line-height);
    font-style: var(--h4-font-style);
}



/* ✅ Ajout d'un espace entre le textarea et le bouton */
.form-textarea {
    margin-bottom: 20px;
}

/* ✅ Bouton d'envoi */
.contact-button {
    background-color: #5271ff;
    color: white;
    font-size: 18px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-button:hover {
    background-color: #3355ff;
}

/* ✅ Responsive Tablette */
@media only screen and (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        gap: 50px;
        padding: 100px 5%;
    }

    .contact-title {
        font-size: 40px;
    }

    .contact-description {
        font-size: 20px;
    }

    .contact-form {
        max-width: 400px;
    }

    /* ✅ Espacement ajusté */
    .form-textarea {
        margin-bottom: 16px;
    }

    .contact-button {
        width: 100%; /* ✅ Ajuste le bouton pour qu'il s'aligne bien */
        padding: 12px;
    }
}

/* ✅ Responsive Mobile */
@media only screen and (max-width: 768px) {
    .contact-container {
        padding: 72px 5%;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-description {
        font-size: 18px;
    }

    .contact-icon {
        width: 24px;
        height: 24px;
    }

    .form-input, .form-textarea {
        font-size: 14px;
        padding: 10px;
    }

    .form-textarea {
        margin-bottom: 16px;
    }

    .contact-button {
        font-size: 16px;
        padding: 12px;
        width: 100%;
    }
}

/* ✅ Responsive Petits Mobiles */
@media only screen and (max-width: 480px) {
    .contact-container {
        padding: 96px 4%;
    }

    .contact-title {
        font-size: 28px;
        text-align: center;
    }

    .contact-description {
        font-size: 16px;
        text-align: center;
    }

    .form-group {
        gap: 12px;
    }

    .form-title {
        font-size: 20px;
        text-align: center;
    }

    .contact-button {
        font-size: 14px;
        padding: 10px;
    }
}

/* ✅ Placeholder styling */
::placeholder {
    color: #8599ff80;
}
