*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: Verdana, Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
    line-height: 1.5;
    background-color: #f9f9f9;
    color: #333;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checklist-container {
    max-width: 80rem;
    margin: 5rem auto;
    padding: 4rem;
    background: #FFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

h1 {
    font-size: 3rem;
    text-align: center;
}

.item-count {
    display: inline-block;    
    padding: 0.6rem 1rem;
    border-radius: 0.8rem;
    background-color: #eaeaea;
    font-size: 1.8rem;
}

.item-count span {
    display: inline-block;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
}

/* Ajouter une boîte personnalisée pour la checkbox */
input[type="checkbox"] + label {
    position: relative;
    padding-left: 3.5rem;
    cursor: pointer;
}

/* Style de la boîte avec ::before */
input[type="checkbox"] + label::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 0.3rem;
    width: 2rem;
    height: 2rem;
    border: 0.2rem solid #006FE6;
    border-radius: 0.4rem;
    background-color: #FFF;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Ajouter une coche avec ::after */
input[type="checkbox"]:checked + label::after {
    content: '';
	position: absolute;
	left: 6px;
	top: 12px;
	transform: translateY(-50%) rotate(45deg);
	width: 7px;
	height: 10px;
	border: solid #FFF;
	border-width: 0 2px 2px 0;
	background: transparent;
}

/* Changer la couleur de la boîte au survol */
input[type="checkbox"] + label:hover::before {
    border-color: #0056b3;
    background-color: #0056b3;
}

/* Modifier la couleur de la boîte cochée */
input[type="checkbox"]:checked + label::before {
    background-color: #006FE6;
    border-color: #006FE6;
}

input[type="checkbox"]:focus + label {
    outline: 0.2rem dashed #000;
    outline-offset: 1rem;
    border-radius: 0.2rem;
}




label {
    color: #555;
}

button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #006FE6;
    color: #FFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.counter-block {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    text-align: center;
    font-weight: bold;
}

.counter {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #d1ffbf;
}

/* MQ > 641 */
@media screen and (min-width: 641px) {
    .m-hidden {
        display: block;
    }
}

/* MQ < 640 */
@media screen and (max-width: 640px) {
    .m-hidden {
        display: none;
    }
}