* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --orange: #F3763D;
    --bg: #2E2545;
    --max: 1000px;
}
body {
    font-family: "Amarna", sans-serif;   
    color:#222;    
    overflow: hidden;
    height: 100svh;
    background: var(--bg);    
}
.content {
    max-width: var(--max);
    margin: auto;
    position: relative;
}
header {
    height: 60px;
    background: var(--bg);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 50px;
    align-content: center;
}
header DIV {
    padding-left: 10px;
    font-weight: bold;
    line-height: 60px;
}
header DIV SPAN {
    color: var(--orange);
    display: inline-block;
}
header > SPAN {
    height: 30px;
    width: 30px;
    display: grid;
    align-content: center;
    text-align: center;
    background-color: #fff;
    color: var(--orange);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
}

.index {
    background-color: #f8f8f8;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    overflow-Y: auto;
    /*padding: 10px;*/
}
.index::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.index {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
footer {
    width: 100%;
    background-color: #fff;
    height: 75px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    align-content: center;
    margin-top: -1px;
    
    position: fixed;
    bottom: 0;
}
footer DIV {
    text-align: center;   
    margin: auto;
}
footer SPAN {
    display: grid;
    align-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
}
footer .active SPAN i {
    color: #fff;
}
footer i {
    font-size: 24px;
    color: var(--bg);
}
footer .active SPAN {
    background-color: var(--bg);
    color: #fff;
}

.calendar {
    background: var(--bg);
    margin: auto;
    padding-bottom: 10px;
}
#calendar {
    touch-action: pan-y; /* autorise scroll vertical */
}

.weekdays, .grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.month {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
    margin-left: 10px;
    display: grid;
    grid-template-columns: 1fr 30px 30px;
}
.month i {
    color: #fff;
    background-color: var(--orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: grid;
    align-content: center;
    text-align: center;
    font-size: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}
.weekdays div {
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    color: #fff;
    font-weight: bolder;
}
.cell {
    text-align: center;
    padding: 6px 0;
    min-height: 40px;   
}
.cell.cursor {
    cursor: pointer;
}

.cell.empty {
    background: none;
    color: #6d6389;
    font-size: 12px;
    font-weight: 600;
}
.cell .day {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cell.today .day {
    color: var(--bg);
}
.cell.today .day::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    left: 50%;
    transform: translateX(-50%);
    top: -10%;
    z-index: -1;
}


.cell.cursor:not(.active):hover .day::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    left: 50%;
    transform: translateX(-50%);
    top: -10%;
    z-index: -1;    
}
.cell.active .day::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--orange);
    left: 50%;
    transform: translateX(-50%);
    top: -10%;
    z-index: -1;
}
.cell.cursor:not(.active):hover .day {
    color: var(--bg);
}


.dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    min-height: 6px; /* 🔥 réserve la place */
    z-index: 1;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dot.match, .heure.match    { background: #28a745; }
.dot.training, .heure.training { background: #007bff; }
.dot.other, .heure.other    { background: #6c757d; }

.events {
    margin-top: 10px;
    padding: 10px;
}
.events .date {
    margin-bottom: 10px;
}
.events .card {
    position: relative;
    margin-bottom: 20px;
    display: grid;
    align-content: center;
    grid-template-columns: 25px 1fr;
}
.events .card .heure {
    text-align: center;
    color: #fff;
    border-radius: 6px;
    width: 50px;
    height: 50px;
    display: grid;
    align-content: center;    
    z-index: 10;
    margin-top: 25px;
}
.events .card .heure.heure2 {
    font-size: 12px;
    margin-top: 5px;
}
.events .card .body {
    background-color: #fff;
    z-index: 1;
    height: 100px;
    padding-left: 40px;
    border-radius: 6px;
    box-shadow: 2px 2px 0 0 #dedede;
    color: var(--bg);
    display: grid;
    align-content: center;
    line-height: 15px;
}
.events .card .body.body2 {
    height: 60px;
}
.events .card .body .matchType:not(:empty), .events .card .body .note:not(:empty) {
    font-size: 12px;
    margin-top: 5px;
    margin-left: 10px;
    height: 15px;
     white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event {
    background-color: #f8f8f8;  
    height: calc(100svh - 75px);
    display: none;
}
.event .head {
    background-color: #fff;
    padding: 10px;
}
.event .head .top {
    display: grid;
    text-align: center;
    align-content: center;
    height: 20px;  
    margin-bottom: 10px;
    position: relative;
}
.event .head .top span {
    display: grid;
    text-align: center;
    font-size: 12px;
    align-content: center;
    height: 20px; 
}
.event .head .top i {
    font-size: 26px;
    display: grid;
    text-align: center;
    align-content: center;
    height: 20px; 
    cursor: pointer;
    position: absolute;
    left: 2;
    top: 2;
    width: 30px;
}
.event .head {
    text-align: center;
    font-size: 18px;
    box-shadow: 0 0 5px 5px #dedede;
    padding-bottom: 10px;
}
.event .type {
    text-align: center;
    font-size: 14px;
    box-shadow: 0 0 5px 5px #dedede;
    margin-top: 10px;
    display: grid;
    align-content: center;
    padding: 10px;
    
    
}
.event .card {
    /*height: calc(100svh - 210px);*/
    overflow: hidden;
    overflow-y: auto;
    
}
.event .card UL {
    list-style: none;
    margin: 20px;
}
.event .card UL LI {
    border-bottom: 1px solid #dedede;
    height: 35px;
    display: grid;
    grid-template-columns: 20px 1fr 30px;
    align-content: center
}
.event .card UL LI .fa-check {
    color: #2d9e2d;
}
.event .card UL LI .fa-xmark {
    color: #e60f74;
}
.event .card UL LI .fa-question {
    color: #dedede;
}
.event .card UL LI  EM {
    font-weight: 700;
    font-style: normal;
    font-size: 14px;
}

.event .moi {
    text-align: center;
    display: grid;
    align-content: center;
    grid-template-columns: 1fr 1fr 70px;
    color: #fff;
    margin-top: 20px; 
    font-size: 14px;
}
.event .moi DIV {
    padding: 10px;    
    cursor: pointer;
}
.event .moi DIV SPAN {
    display: inline-block;
    width: 10px;
}
.event .moi .oui {
    background-color: #2d9e2d;
}
.event .moi .non {
    background-color: #e60f74;
}
.event .moi .unset {
   background-color: #919191;
}
.event .moi .active {
    position: relative;
}
.event .moi .active::after {
    position: absolute;
    right: 5px;
    top: 20px;
    content: "\f560";
    font: var(--fa-font-solid);
    font-size: 11px;    
}
.event LI.moii {
    color: red;
}

.absence-form, .edit-form {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,.08);
    display: none;
    gap: 12px;
    max-width: 420px;
    margin: 5px;    
}
.absence-form .field, .edit-form .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.absence-form label, .edit-form LABEL {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}
.absence-form input, .absence-form textarea, .edit-form INPUT, .edit-form TEXTAREA{
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
}
.absence-form input:focus, .edit-form input:focus {
    border-color: var(--orange);
}
.absence-form button, .edit-form BUTTON {
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: var(--orange);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.absence-form button:active, .edit-form button:active {
    transform: scale(.98);
}
.absence-form, .edit-form {
    grid-template-columns: 1fr 1fr;
}

.absence-form .field:nth-child(3),
.absence-form button, .edit-form .field:nth-child(3), .edit-form button {
    grid-column: 1 / -1;
}


#list {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,.08);
    list-style: none;
    margin: 5px;    
}
.absence {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}
.absence .dates {
    font-size: 14px;
    font-weight: 600;
}
.absence .dates span {
    margin: 0 6px;
    color: #888;
}
.absence .reason {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #555;
}
.absence .actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.absence .actions i {
    cursor: pointer;
    color: #888;
}
.absence .actions i:hover {
    color: var(--orange);
}
.absence.edit {
    background-color: var(--bg);
    color: #fff;
    border-radius: 10px;
}
