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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page d'accueil - Calendrier */
.calendrier-container {
    text-align: center;
}

.calendrier-container h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.mois-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.mois-navigation h2 {
    color: white;
    font-size: 1.8rem;
}

.nav-btn {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.calendrier-table {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: 0 auto;
}

.jour-semaine-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #667eea;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.jour-semaine-header div {
    padding: 0.5rem;
}

.semaine-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.jour-cell {
    aspect-ratio: 1;
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.jour-cell a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.jour-cell.disponible {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    cursor: pointer;
}

.jour-cell.disponible:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.jour-cell.complete {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
    cursor: pointer;
}

.jour-cell.complete:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.jour-cell.futur {
    background: #e0e0e0;
    color: #999;
}

.jour-cell.vide {
    background: #f8f8f8;
    color: #ccc;
}

.jour-vide {
    aspect-ratio: 1;
}

.jour-numero {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.status {
    font-size: 1.2rem;
}

/* Page de jeu */

.jeu-zone h3 {
    text-align: center;
}

.jeu-zone p {
    text-align: center;
}

.jeu-container, .message-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.jeu-container h1, .message-container h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 1rem;
}

.instruction {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.jeu-zone {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.resultat {
    text-align: center;
    animation: fadeIn 0.5s;
}

.resultat.hidden {
    display: none;
}

.succes {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
}

.succes h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* .message-jour {
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
} */

.message-deja-lu {
    text-align: center;
}

.note {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.message-contenu {
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    padding: 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
    margin: 2rem 0;
}

/* Markdown content styling */
.message-contenu h1,
.message-contenu h2,
.message-contenu h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: white;
}

.message-contenu p {
    margin-bottom: 1rem;
}

.message-contenu ul,
.message-contenu ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.message-contenu li {
    margin-bottom: 0.5rem;
}

.message-contenu a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.message-contenu a:hover {
    opacity: 0.8;
}

.message-contenu img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

.message-contenu blockquote {
    border-left: 4px solid rgba(255,255,255,0.5);
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    font-style: italic;
}

.message-contenu code {
    background: rgba(0,0,0,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.message-contenu pre {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

/* Question styling - smaller than messages */
#question-text {
    font-size: 1rem;
    line-height: 1.6;
}

#question-text h1 {
    font-size: 1.5rem;
    color: #667eea;
}

#question-text h2 {
    font-size: 1.3rem;
    color: #667eea;
}

#question-text h3 {
    font-size: 1.1rem;
    color: #667eea;
}

/* Quiz question styling - smaller font */
#quiz-question {
    font-size: 1rem;
    line-height: 1.6;
}

#quiz-question h1 {
    font-size: 1.5rem;
    color: #667eea;
}

#quiz-question h2 {
    font-size: 1.3rem;
    color: #667eea;
}

#quiz-question h3 {
    font-size: 1.1rem;
    color: #667eea;
}

/* Boutons */
.btn-retour, .btn-continuer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s;
    font-weight: bold;
}

.btn-retour:hover, .btn-continuer:hover {
    background: #5568d3;
}

.btn-continuer {
    background: white;
    color: #667eea;
    margin-top: 1.5rem;
}

.btn-continuer:hover {
    background: #f0f0f0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .calendrier-container h1 {
        font-size: 1.8rem;
    }
    
    .mois-navigation h2 {
        font-size: 1.3rem;
    }
    
    .nav-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .calendrier-table {
        padding: 1rem;
    }
    
    .jour-numero {
        font-size: 1rem;
    }
    
    .status {
        font-size: 1rem;
    }
}