date-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#titre {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}



body {
    background-color: #f2f2f2;
    font-family: Arial, sans-serif;
    text-align: center;
    cursor: default;
}

.white-box {
    display: flex;
    justify-content: left;
    background-color: white;
    height: 666px;
    width: 40%;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 10px;
    flex-direction: column;
    margin-top: 3%;
}

.grey-box {
    display: flex;
    justify-content: left;
    background-color: #f2f2f2;
    flex-direction: column;
    border-radius: 10px;
    width: 40%;
    height: 500px;
    margin-top: 50px;
    margin-right: 5%;
    margin-left: 5%;
}

.navbutton {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 40%;
    font-weight: normal;
    text-align: center;
}

.actualmonth {
    cursor: pointer;
}

.navbutton h1 {
    font-size: 20px;
    font-weight: bold;
}

.horizontaline {
    width: 100%;
    height: 2px;
    background-color: gray;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* garantit que les colonnes ne dépassent pas */
    gap: 10px;
    padding: 10px;
    width: 100%; /* s'adapte au parent */
    box-sizing: border-box;
    overflow-x: auto; /* permet le scroll horizontal si nécessaire */
}


/*.calendar-day {
    padding: 10px;
    background-color: rgb(172, 171, 171);
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}*/
.calendar-day {
    min-width: 0; /* empêche les débordements */
    word-wrap: break-word;
    position: relative;
    padding: 10px;
    background-color: rgb(172, 171, 171);
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    font-size: clamp(10px, 1.5vw, 16px);
    display: flex;
    justify-content: center;  /* centre horizontalement */
    align-items: center;      /* centre verticalement */


}

.calendar-day button {
    background-color: rgb(172, 171, 171);
    border-radius: 5px;
    border: none;
    width: 100%;
    height: auto; /* ou fixe comme tu veux */
    aspect-ratio: 1; /* pour des cases carrées */
    font-size: clamp(12px, 2vw, 20px); /* responsive */
    font-weight: bold;
    color: black;
    cursor: pointer;
    margin: 0 auto;
    text-align: center;
    display: flex;             /* active flexbox */
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
}




.calendar-day.off {
    background-color: white;
    cursor: default;
}
/*
.calendar-day button {
    background-color: rgb(172, 171, 171);
    border-radius: 5px;
    border: none;
    width: 100%;
    height: 60px;
    font-size: 20px;
    font-weight: bold;
    color: black;
    cursor: pointer;
}*/

.calendar-day button:hover {
    background-color: rgb(125,125,125);
}

.calendar-day button:disabled {
    color: #757575;
    background-color: #f0f0f0;
    cursor: default;
}

.disabled {
    background-color: #f0f0f0; 
    color: #777;
}

.info-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inscription-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#titre {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.date-info {
    width: 45%;
    border-left: 1px solid #ccc;
    height: 80vh
}

.page-calendar {
    display: flex; 
    justify-content: space-between; 
}

.password-container {
    position: relative;
    display: inline-block;
}
.password-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    align-content: center;
}


.toggle-password {
    position: absolute;
    transform: translate(650%, 20%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#calendar-container {
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}


.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
}
/*input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}*/
button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button.logout {
    background-color: #dc3545;
    width: 100%;
}

.inscription {
    width: 100%;
    background-color: #007BFF;
    cursor: pointer;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.disponibilité {
    position: absolute;
    width: 20%;
    height: 20%;
    background-color: grey;
    border-radius: 100%;

    top: 5%;
    right: 5%;

}


header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}
header a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
section {
    margin-bottom: 20px;
}
h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}
.nom_projet {
    color: #300ba9;
}
.document-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.document-links a {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.document-links p {
    margin: 5px 0 0;
}
img.screenshot {
    width: 800px;
    height: auto;
    display: block;
    margin: 10px auto;
}
.weekday {
    writing-mode: vertical-rl; /* écrit verticalement de droite à gauche */
    text-align: center;
    display: flex;             /* active flexbox */
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
    height: 100%;              /* pour que flex prenne toute la hauteur */
    margin: 0 auto;            /* au cas où */
}

@media (max-width: 1080px) {
    .page-calendar {
        flex-direction: column;
        align-items: center;
    }

    .white-box,
    .date-info {
        width: 90%;
        margin: 10px auto;
    }

    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }

    .calendar-day button {
        font-size: 14px;
    }
}
@media (max-width: 500px) {
    .calendar-day {
        font-size: 10px;
    }

    .calendar-day button {
        font-size: 12px;
    }

    h2 {
        font-size: 18px;
    }
}

