﻿input[type="checkbox"] {
    opacity: 0;
    position: absolute; /* mieux que float */
}

    /* Label bien aligné */
    input[type="checkbox"] + label {
        cursor: pointer;
        display: inline-flex;
        align-items: center;
    }

        /* Case personnalisée */
        input[type="checkbox"] + label::before {
            content: '';
            color: white;
            text-align: center;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.375rem;
            height: 1.375rem;
            border: 0.125rem solid #d1d5db;
            border-radius: 0.375rem;
            margin-right: 0.75rem;
            transition: all 0.2s ease;
        }

        input[type="checkbox"] + label:hover::before {
            border-color: #007944;
            background-color: #e6f4ee;
        }

    /* Checked */
    input[type="checkbox"]:checked + label::before {
        content: '✔';
        background: white;
        border-color: #007944;
        color: #007944;
    }

    /* Focus clavier */
    input[type="checkbox"]:focus + label::before {
        outline: 2px solid #007944;
        outline-offset: 2px;
    }
