/*
 * Formulaire de contact public.
 *
 * ── DESIGN REPRIS DU FORMULAIRE EXISTANT (06/10/2026) ──
 * Anthony : « prend les couleurs du formulaire présent sur /nous-contacter/ ».
 *
 * Les valeurs ci-dessous viennent d'une MESURE du formulaire en place, pas
 * d'une estimation :
 *
 *   champs       fond rgb(66,66,66) · texte rgb(206,206,206)
 *                bordure 1px rgb(117,117,117) · rayon 3px · padding 8px 16px
 *   libelles     16px, poids 600
 *   bouton       fond rgb(213,9,28) · texte blanc · rayon 25px · pleine largeur
 *   disposition  Nom+Prenom cote a cote, Email+Telephone cote a cote,
 *                puis Sujet et Message en pleine largeur (comme l'original)
 *
 * Le fond de page du site est BLANC : c'est le formulaire lui-meme qui est
 * sombre. On ne touche donc ni au fond de page, ni au theme.
 */

.ltd-contact {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 0;
    box-sizing: border-box;
    /* Couleurs du site : texte gris fonce, comme autour de l'ancien formulaire. */
    font-family: 'Overpass', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.ltd-contact *,
.ltd-contact *::before,
.ltd-contact *::after {
    box-sizing: border-box;
}

.ltd-contact__titre {
    margin: 0 0 10px;
    padding: 0;
    font-size: 26px;
    line-height: 1.3;
    color: #333333;
}

.ltd-contact__intro {
    margin: 0 0 22px;
    padding: 0;
    color: #555555;
}

/* ── Messages (succes, erreur, information) ── */

.ltd-contact__message {
    display: none;
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 3px;
    border-left: 4px solid #d5091c;
    background: #fdf0f1;
    color: #a30616;
    line-height: 1.5;
}

.ltd-contact__message.is-visible {
    display: block;
}

.ltd-contact__message.is-succes {
    border-left-color: #1c7a3e;
    background: #f1f9f3;
    color: #145c2f;
}

.ltd-contact__message.is-info {
    border-left-color: #757575;
    background: #f5f5f5;
    color: #424242;
}

/* ── Le formulaire ── */

.ltd-contact__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Deux champs cote a cote, comme le formulaire d'origine. */
.ltd-contact__grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ltd-contact__champ {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

/* Libelles : 16px, semi-gras (mesure sur l'original). */
.ltd-contact__champ > span {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
}

/* L'asterisque rouge des champs obligatoires. */
.ltd-contact__champ > span em {
    font-style: normal;
    color: #d5091c;
}

/* Champs : couleurs MESUREES sur le formulaire en place. */
.ltd-contact__champ input,
.ltd-contact__champ textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 16px;
    border: 1px solid #757575;
    border-radius: 3px;
    background: #424242;
    color: #cecece;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* Le texte d'indication, dans la meme teinte que la saisie. */
.ltd-contact__champ input::placeholder,
.ltd-contact__champ textarea::placeholder {
    color: #cecece;
    opacity: .8;
}

.ltd-contact__champ textarea {
    resize: vertical;
    min-height: 130px;
}

/* Au focus : bordure rouge du site. */
.ltd-contact__champ input:focus,
.ltd-contact__champ textarea:focus {
    outline: none;
    border-color: #d5091c;
    box-shadow: 0 0 0 2px rgba(213, 9, 28, .25);
}

/* Champ en erreur : bordure rouge. */
.ltd-contact__champ input[aria-invalid="true"],
.ltd-contact__champ textarea[aria-invalid="true"] {
    border-color: #d5091c;
}

/* ── Piege anti-robot : invisible pour un humain ── */

.ltd-contact__piege {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Bouton : rouge du site, forme arrondie, PLEINE LARGEUR ── */

.ltd-contact__envoyer {
    width: 100%;
    padding: 8px 16px;
    margin-top: 4px;
    border: none;
    border-radius: 25px;
    background: #d5091c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.6;
    cursor: pointer;
    transition: background .15s ease;
}

.ltd-contact__envoyer:hover,
.ltd-contact__envoyer:focus-visible {
    background: #b20717;
    color: #ffffff;
    outline: none;
}

.ltd-contact__envoyer:disabled {
    opacity: .65;
    cursor: progress;
}

/* ── Page de reponse : le fil de discussion ── */

.ltd-contact__fil {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 26px;
}

.ltd-contact__bulle {
    max-width: 86%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #d5d5d5;
    background: #f7f7f7;
    color: #333333;
}

/* Les messages du visiteur a droite, ceux de l'equipe a gauche. */
.ltd-contact__bulle.is-visiteur {
    align-self: flex-end;
    border-color: #e8b5bb;
    background: #fdf0f1;
}

.ltd-contact__bulle.is-equipe {
    align-self: flex-start;
    border-color: #cfcfcf;
    background: #f2f2f2;
}

.ltd-contact__bulle-auteur {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #d5091c;
}

.ltd-contact__bulle.is-visiteur .ltd-contact__bulle-auteur {
    color: #a30616;
}

.ltd-contact__bulle-texte {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ltd-contact__bulle-date {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #757575;
}

.ltd-contact__vide {
    margin: 0;
    padding: 18px;
    border: 1px dashed #bdbdbd;
    border-radius: 3px;
    text-align: center;
    color: #616161;
}

/* ── Ecrans etroits ── */

@media (max-width: 620px) {
    .ltd-contact__grille {
        grid-template-columns: 1fr;
    }

    .ltd-contact__bulle {
        max-width: 100%;
    }
}
