body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

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

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.modal {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.calendar {
    display: flex;
    justify-content: center; /* Centre le calendrier horizontalement */
    flex-wrap: wrap;          /* Permet de faire passer les éléments à la ligne si nécessaire */
    max-width: 100%;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 colonnes égales */
    gap: 10px;  /* Espace entre les cases */
    max-width: 100%; /* S'assurer que le contenu ne dépasse pas */
    width: 100%;  /* Remplir tout l'espace disponible */
}

.calendar-day {
    position: relative;
    width: 100px;
    height: 100px;
    text-align: center;
    box-sizing: border-box;
    background-color: #f1f1f1; /* Gris clair pour les cases */
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.3s ease;
}

.calendar-day img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Pour que l'image occupe toute la case sans déborder */
    border-radius: 5px; /* Arrondir les bords des images */
}

.calendar-day.locked {
    background-color: #e0e0e0;
    
}

/* Style global du corps */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Ajout d'une couleur douce et d'un ombrage pour les sections */
main, .calendar, .content-section {
    background-color: #ffffff;  /* Fond blanc */
    padding: 20px;
    border-radius: 10px;        /* Coins arrondis */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
    max-width: 1200px;
    margin: 20px auto;         /* Centrage du contenu */
}

/* Titre principal de la page */
header h1 {
    font-size: 2.5em;
    margin: 20px 0;
    color: #333; /* Couleur de texte douce */
}

/* Style du texte dans la section principale */
main h2 {
    font-size: 1.8em;
    color: #444;
    margin-bottom: 20px;
}

main p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* Style des boutons */
button {
    background-color: #4CAF50;  /* Vert doux */
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

/* Calendrier en grille */
.calendar .grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);  /* 6 colonnes égales */
    gap: 10px; /* Espacement entre les cases */
    max-width: 100%; /* S'assurer que la grille ne dépasse pas du conteneur */
    margin: 0 auto; /* Centrer le calendrier */
}


/* Ajout d'un effet de survol */
.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}



.calendar-day .day-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
}


/* Couleur de fond des jours verrouillés */
.calendar-day.locked {
    background-color: #e0e0e0;
}

.calendar-day.locked img {
    visibility: hidden;
}

.calendar-day.locked::before {
    content: '🔒';
    position: absolute;
    top: 35%;
    left: 35%;
    font-size: 24px;
    color: white;
}


/* Sections supplémentaires avec fond clair */
.content-section {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-section h3 {
    color: #333;
    font-size: 1.5em;
}

.content-section p {
    font-size: 1em;
    color: #555;
}

/* Style global du calendrier */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes par défaut */
    gap: 10px;
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Style des cases du calendrier */
.calendar-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    box-sizing: border-box;
    height: 100px;
}

/* Pour les petits écrans, nous modifions la grille pour avoir moins de colonnes */
@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur les tablettes */
    }
}

/* Pour les écrans de téléphone, nous utilisons 2 colonnes */
@media (max-width: 480px) {
    .calendar-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur les téléphones */
    }
}

/* Pour un affichage très petit, nous ajustons encore la taille des cellules */
@media (max-width: 320px) {
    .calendar-day {
        padding: 10px;  /* Réduire l'espace de padding */
        font-size: 16px; /* Réduire la taille du texte */
    }
}

