/* Toquata — La table des lecteurs */
.tc-contribution {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    color: #292929;
    font-family: inherit;
}

.tc-contribution * {
    box-sizing: border-box;
}

.tc-contribution h2 {
    margin: 0 0 .65rem;
    color: #292929;
    font-size: 1.45rem;
    line-height: 1.3;
}

.tc-contribution-intro {
    margin: 0 0 1rem;
    line-height: 1.55;
}

.tc-contribution-rules {
    margin: 0 0 1.25rem;
    padding: .8rem .95rem;
    border-left: 3px solid #d97832;
    border-radius: 4px;
    background: #fff7f0;
    font-size: .95rem;
    line-height: 1.5;
}

.tc-contribution-form {
    display: grid;
    gap: 1rem;
}

.tc-form-field {
    display: grid;
    gap: .4rem;
}

.tc-form-field label {
    font-weight: 600;
}

.tc-form-field input,
.tc-form-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: .75rem .8rem;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font: inherit;
    line-height: 1.45;
}

.tc-form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.tc-form-field input:focus,
.tc-form-field textarea:focus {
    border-color: #b85f20;
    outline: 2px solid rgba(217, 120, 50, .2);
    outline-offset: 1px;
}

.tc-form-field small {
    color: #626262;
    font-size: .875rem;
    line-height: 1.45;
}

.tc-contribution-submit {
    justify-self: start;
    padding: .75rem 1.1rem;
    border: 0;
    border-radius: 6px;
    background: #b85f20;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tc-contribution-submit:hover {
    background: #934a18;
}

.tc-contribution-submit:focus-visible {
    outline: 3px solid rgba(184, 95, 32, .35);
    outline-offset: 3px;
}

.tc-contribution-message {
    margin: 1rem 0;
    padding: .8rem .95rem;
    border: 1px solid transparent;
    border-radius: 6px;
    line-height: 1.5;
}

.tc-contribution-success {
    border-color: #b9d9c0;
    background: #f0faf2;
    color: #205b2c;
}

.tc-contribution-error {
    border-color: #e5b9b9;
    background: #fff3f3;
    color: #852323;
}

/* Champ piège anti-robots : masqué visuellement, conservé hors du parcours clavier. */
.tc-contribution-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .tc-contribution {
        margin: 1.5rem 0;
        padding: 1rem;
        border-radius: 8px;
    }

    .tc-contribution h2 {
        font-size: 1.25rem;
    }

    .tc-contribution-submit {
        width: 100%;
        justify-self: stretch;
    }
}
