/* Style général */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    padding: 15px;
}

/* Conteneur principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #333;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Style des semaines */
/* Week container */
.week-group {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden; /* avoid children overflowing rounded corners */
}

/* Week header */
.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fb;
    border-bottom: 1px solid #e6e6e6;
}

.quota-reached { background: #fff6f6; }

/* Day rows */
.day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.day-label {
    font-weight: 600;
    font-size: 14px;
    color: #2b2b2b;
}

/* Checkbox styling scoped to calendar to avoid global side-effects */
.day-row input[type="checkbox"] {
    transform: scale(1.15);
    margin-left: 12px;
    /* keep native size but improve hit target */
    width: 18px;
    height: 18px;
}

/* Special day label */
/* Special day (holiday) label */
.ferie-label {
    /* Jours fériés : afficher le motif en rouge à côté de la date */
    color: #d9534f; /* rouge vif */
    font-weight: 700;
    margin-left: 8px;
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
}

/* Jours chômés et vacances scolaires en orange */
.chome-label, .vacances-label {
    color: #ff8c00; /* orange */
    font-weight: 700;
    margin-left: 8px;
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    body { padding: 10px; }
    .container { padding: 14px; margin: 0 8px; border-radius: 6px; }
    h1 { font-size: 20px; }
    .week-header { padding: 8px; font-size: 14px; }
    /* Keep checkbox on the same line as the date on mobile */
    .day-row { flex-direction: row; align-items: center; gap: 8px; }
    .day-row input[type="checkbox"] { margin-left: 12px; }
    .day-label { font-size: 15px; flex: 1; }
}

/* 2Small helper: remove border on last day-row of a week */
.week-group .day-row:last-child { border-bottom: none; }
