/*
   Page Contact : formulaire et carte de contact
*/

.contact {
    display: grid;
    gap: 34px;
    padding-bottom: 10px;
}

.champs-ligne {
    display: grid;
    gap: 18px;
}

.champ {
    display: grid;
    gap: 7px;
}

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

.consentement {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
    color: var(--encre);
}

.consentement input {
    width: 26px;
    min-height: 26px;
    height: 26px;
    flex: none;
    border-radius: 9px;
    padding: 0;
    margin-top: 1px;
    display: grid;
    place-items: center;
    box-shadow: none;
}

.consentement input:checked {
    background: var(--accent);
}

.consentement input:checked::after {
    content: "✓";
    color: #fff;
    font-weight: 900;
    font-size: 16px;
}

.consentement a {
    text-decoration: underline;
    font-weight: 700;
}

.note-formulaire {
    font-size: 13px;
    opacity: 0.75;
}

.note-formulaire a {
    text-decoration: underline;
}

.message-formulaire {
    border: 2.5px solid var(--encre);
    border-radius: 22px;
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.4s,
        opacity 0.4s,
        padding 0.4s,
        background-color 0.4s;
    font-weight: 700;
}

.message-formulaire.succes,
.message-formulaire.erreur {
    max-height: 200px;
    opacity: 1;
    padding: 14px 18px;
}

.message-formulaire.succes {
    background: var(--accent);
    color: var(--sur-accent);
}

.message-formulaire.erreur {
    background: var(--encre);
    color: var(--papier);
}

.contact-carte {
    position: relative;
    isolation: isolate;
    align-self: start;
    background: var(--accent);
    color: var(--sur-accent);
    border: 3px solid var(--encre);
    border-radius: 36px;
    box-shadow: 8px 8px 0 var(--encre);
    padding: 30px 26px;
    overflow: hidden;
}

.contact-carte h3 {
    font:
        900 30px/1 "Arial Black",
        system-ui;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-carte p {
    margin-bottom: 20px;
}

.contact-carte .reseaux a {
    border-color: var(--encre);
    background: var(--papier);
    color: var(--encre);
}

.contact-carte .reseaux a:hover {
    background: var(--encre);
    color: var(--papier);
}

.contact-carte .etoile-deco {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 140px;
    z-index: -1;
    opacity: 0.25;
}

.contact-carte .etoile-deco svg {
    width: 100%;
    height: auto;
    fill: var(--encre);
    animation: rotation 20s linear infinite;
}

@media (min-width: 640px) {
    .champs-ligne {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .contact {
        grid-template-columns: 1.5fr 0.8fr;
        gap: 50px;
    }

    .contact-carte {
        position: sticky;
        top: 100px;
    }
}

@media (horizontal-viewport-segments: 2) {
    .contact {
        grid-template-columns: 1fr 1fr;
        column-gap: var(--charniere);
    }

    .champs-ligne {
        column-gap: var(--charniere);
    }
}

@media (pointer: coarse) {
    .consentement input {
        width: 30px;
        height: 30px;
        min-height: 30px;
    }
}
