/* Page Contact. S'appuie sur landing.css pour le fil d'Ariane, le titre et le bouton. */
.yr-ct {
    padding: 64px 0 96px;
}

.yr-ct-rail {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.yr-ct-intro {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.yr-ct-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 64px;
}

.yr-ct-form {
    flex: 1.4 1 520px;
    min-width: 0;
    padding: 32px;
    border-radius: 12px;
    background: var(--yr-blanc);
    box-shadow: inset 0 0 0 1px var(--yr-ligne);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yr-ct-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.yr-ct-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yr-ct-field > span {
    font-size: var(--yr-text-small);
    font-weight: 600;
}

.yr-ct-field small {
    font-size: var(--yr-text-caption);
    color: var(--yr-encre-500);
}

.yr-ct-field input,
.yr-ct-field select,
.yr-ct-field textarea {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background-color: var(--yr-blanc);
    box-shadow: inset 0 0 0 1px var(--yr-encre-200);
    color: var(--yr-encre-900);
    font-family: var(--yr-font);
    font-size: var(--yr-text-body-lg);
}

.yr-ct-field .yr-ct-mono {
    font-family: var(--yr-mono);
}

.yr-ct-field select {
    padding-right: 36px;
    font-size: var(--yr-text-body);
    text-overflow: ellipsis;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%230E1A24' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.yr-ct-field textarea {
    height: auto;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.yr-ct-field input::placeholder,
.yr-ct-field textarea::placeholder {
    color: var(--yr-encre-300);
}

.yr-ct-field input:focus,
.yr-ct-field select:focus,
.yr-ct-field textarea:focus {
    outline: 0;
    box-shadow: inset 0 0 0 1px var(--yr-sceau-600), 0 0 0 3px rgba(79, 179, 161, .45);
}

.yr-ct-consent {
    display: flex;
    gap: 12px;
    font-size: var(--yr-text-small);
    line-height: 1.55;
    color: var(--yr-encre-700);
    cursor: pointer;
}

.yr-ct-consent input {
    flex-shrink: 0;
    align-self: flex-start;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--yr-sceau-600);
}

.yr-ct-submit {
    align-self: flex-start;
}

.yr-ct-status {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--yr-encre-200);
    font-size: var(--yr-text-small);
    line-height: 1.5;
    color: var(--yr-encre-900);
}

.yr-ct-status[hidden] {
    display: none;
}

.yr-ct-aside {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.yr-ct-reach {
    display: flex;
    flex-direction: column;
}

.yr-ct-reach > .yr-eyebrow {
    padding-bottom: 12px;
}

.yr-ct-line {
    padding: 16px 0;
    border-top: 1px solid var(--yr-ligne);
    display: flex;
    gap: 12px;
}

.yr-ct-line svg {
    flex-shrink: 0;
}

.yr-ct-line > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: var(--yr-text-body);
}

.yr-ct-line span {
    font-size: var(--yr-text-small);
    line-height: 1.5;
    color: var(--yr-encre-700);
}

.yr-ct-phone {
    font-family: var(--yr-mono);
    font-weight: 500;
    color: var(--yr-encre-900);
    text-decoration: none;
}

.yr-ct-mail {
    font-weight: 600;
    color: var(--yr-encre-900);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.yr-ct-card {
    padding: 24px;
    border-radius: 12px;
    background: var(--yr-blanc);
    box-shadow: inset 0 0 0 1px var(--yr-ligne);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--yr-text-small);
}

.yr-ct-card strong {
    font-size: var(--yr-text-body);
}

.yr-ct-card p {
    margin: 0;
    line-height: 1.55;
    color: var(--yr-encre-700);
}

@media (max-width: 899px) {
    .yr-ct {
        padding: 24px 0 48px;
    }

    .yr-rail.yr-ct-rail {
        padding: 0 20px;
        gap: 24px;
    }

    .yr-ct-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .yr-ct-form,
    .yr-ct-aside {
        flex: 0 0 auto;
    }

    .yr-ct-form {
        padding: 20px;
    }

    .yr-ct-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .yr-ct-submit {
        align-self: stretch;
    }
}

/* Ecran tactile : zone de toucher de 44 px sur les coordonnees et les liens
   de la colonne, rendu inchange grace a la marge negative. */
@media (pointer: coarse) {
    .yr-ct-phone,
    .yr-ct-mail,
    .yr-ct-aside .yr-link {
        display: inline-block;
        padding-block: 13px;
        margin-block: -13px;
    }
}

/* Couleur des icones, portee par le CSS (stroke="currentColor"). */
.yr-ct-line > svg {
    color: var(--yr-sceau-600);
}

/* iOS agrandit la page au focus d'un champ dont le texte fait moins de 16 px */
@media (pointer: coarse) {
    .yr-ct-field select {
        font-size: var(--yr-text-body-lg);
    }
}
