/* Approbation du code d'éthique : bloc commun à Membre, Benevole et Candidat. */
.code-ethique {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding: .9rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #d9e1ec;
    border-radius: .6rem;
    transition: background-color .2s ease, border-color .2s ease;
}

.code-ethique:has(.form-check-input:checked) {
    background: #f1f9f5;
    border-color: #198754;
}

.code-ethique-accord {
    display: flex;
    flex: 1 1 22rem;
    align-items: center;
    gap: .9rem;
    margin: 0;
    cursor: pointer;
}

.code-ethique-bascule.form-check.form-switch {
    flex-shrink: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.code-ethique-bascule .form-check-input {
    float: none;
    width: 2.6em;
    height: 1.4em;
    margin: 0;
    cursor: pointer;
}

.code-ethique-titre {
    display: block;
    font-weight: 600;
    color: #1f2937;
}

.code-ethique-oblig {
    color: #dc3545;
}

.code-ethique-note {
    display: block;
    margin-top: .1rem;
    font-size: .85rem;
    line-height: 1.35;
    color: #5b6675;
}

.code-ethique-liens {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem 1rem;
    font-size: .875rem;
}

.code-ethique-liens a {
    white-space: nowrap;
}

.code-ethique-pdf {
    padding: .35rem .75rem;
    font-weight: 600;
    color: #1e4da1;
    text-decoration: none;
    background: #fff;
    border: 1px solid #1e4da1;
    border-radius: .4rem;
}

.code-ethique-pdf:hover,
.code-ethique-pdf:focus {
    color: #fff;
    background: #1e4da1;
}
