@font-face {
    font-family: 'Encode Sans';
    src: url('fonts/encode-sans.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --fond: #f8f7f3;
    --bloc: #cedae1;
    --turquoise: #1aa6b0;
    --turquoise-fonce: #12838b;
    --texte: #42667e;
    --violet: #ba61bb;
    --rouge: #c4473a;
    --champ: #fcfcfc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: 500 15px/1.45 'Encode Sans', system-ui, sans-serif;
}

#page {
    max-width: 950px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.titre {
    margin: 0 0 16px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.entete,
.section {
    background: var(--bloc);
    padding: 16px 14px 20px;
    margin-bottom: 10px;
}

.entete h2 {
    margin: 10px 0;
    font-size: 17px;
    font-weight: 700;
}

.entete h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.carte {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}

.lien {
    color: #0b3fd1;
    font-weight: 700;
    text-decoration: underline;
}

.avertissements {
    margin: 14px 0 18px 5%;
    padding-left: 18px;
    color: var(--violet);
}

.entete p {
    margin: 0 0 16px;
}

.fort {
    font-weight: 700;
}

.obligatoire {
    text-align: right;
    font-size: 12px;
    color: var(--rouge);
}

.message p:last-child {
    margin-bottom: 0;
}

.section h2 {
    margin: -16px -14px 14px;
    padding: 6px 12px;
    background: var(--turquoise);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 0 24px;
}

.champ {
    margin-bottom: 14px;
}

.champ--large {
    max-width: 600px;
}

.champ[hidden],
[hidden] {
    display: none;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 14px;
}

.requis {
    color: var(--rouge);
}

input[type='text'],
input[type='email'],
input[type='tel'],
select,
textarea {
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #b9c7cf;
    border-radius: 2px;
    background: var(--champ);
    color: #2b3f4c;
    font: inherit;
    font-weight: 500;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.bouton:focus-visible {
    outline: 3px solid rgb(26 166 176 / 0.45);
    outline-offset: 1px;
}

[aria-invalid='true'] {
    border-color: var(--rouge);
}

.erreur {
    margin: 4px 0 0;
    color: var(--rouge);
    font-size: 13px;
    font-weight: 700;
}

.aide {
    margin: 0 0 6px;
    font-size: 12px;
    color: #5d7a8d;
}

.alerte {
    margin: 0 0 10px;
    padding: 10px 14px;
    background: #fbe9e6;
    border-left: 4px solid var(--rouge);
    color: #8a2a20;
    font-weight: 700;
}

.depot {
    padding: 14px;
    border: 2px dashed #8aa3b2;
    background: #f1f4f6;
    text-align: center;
}

.bouton {
    display: inline-block;
    padding: 6px 14px;
    border: 0;
    background: var(--turquoise);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.bouton:hover {
    background: var(--turquoise-fonce);
}

.bouton[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.bouton--petit {
    font-size: 14px;
}

.envoi {
    margin-top: 18px;
    text-align: center;
}

.verification {
    margin: 0 0 10px;
    font-size: 13px;
}

.recap {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0 0 8px;
}

.recap dt {
    font-weight: 700;
}

.recap dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.piege,
.cache {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 560px) {
    .grille {
        grid-template-columns: 1fr;
    }

    .recap {
        grid-template-columns: 1fr;
    }
}
