/* ========================================
   STYLES PAGES ACCUEIL / MENU / RESSOURCES
   ======================================== */

/* ========================================
   PAGE D'ACCUEIL
   ======================================== */

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
}

/* Mascotte */
.mascot {
    width: 160px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* Titre */
.home-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    text-shadow: var(--shadow-text);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.home-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

/* Formulaire prénom */
.name-input-section {
    background: var(--color-bg-overlay);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    width: 100%;
}

.name-input-section label {
    display: block;
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 12px;
}

.name-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.4rem;
    border: 3px solid var(--color-primary);
    border-radius: 15px;
    text-align: center;
    outline: none;
    transition: all var(--transition-normal);
    margin-bottom: 15px;
}

.name-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.name-input::placeholder {
    color: var(--color-text-muted);
}

.start-button {
    font-size: 1.5rem;
    padding: 15px 50px;
    width: 100%;
}

/* ========================================
   PAGE MENU
   ======================================== */

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 550px;
    width: 100%;
}

.welcome-message {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 10px;
    text-align: center;
}

.welcome-message .player-name {
    color: var(--color-secondary);
    font-weight: bold;
}

.welcome-emoji {
    display: inline-block;
    animation: float 1s ease-in-out infinite;
}

.menu-title {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Grille de niveaux */
.level-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: 55vh;
    overflow-y: auto;
    padding: 5px;
}

.level-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-bg-white);
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-soft);
    border: 3px solid transparent;
}

.level-card:hover {
    transform: translateX(5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-medium);
}

.level-number {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    flex-shrink: 0;
}

.level-info {
    flex: 1;
    text-align: left;
}

.level-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 3px;
}

.level-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.3;
}

/* Couleurs des niveaux */
.level-card[data-level="0"] .level-number { background: #FF9AA2; }
.level-card[data-level="1"] .level-number { background: #FFB7B2; }
.level-card[data-level="2"] .level-number { background: #FFDAC1; }
.level-card[data-level="3"] .level-number { background: #B5EAD7; }
.level-card[data-level="4"] .level-number { background: #C7CEEA; }

.btn-back {
    margin-top: 20px;
    font-size: 1rem;
    padding: 10px 25px;
}

/* ========================================
   PAGE RESSOURCES
   ======================================== */

.ressources-content {
    background: var(--color-bg-overlay);
    border-radius: 20px;
    padding: 30px;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-medium);
}

.ressources-title {
    font-size: 2rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 25px;
}

.ressource-section {
    margin-bottom: 25px;
}

.ressource-section h2 {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}

.ressource-section p {
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.ressource-list {
    list-style: none;
    padding-left: 0;
}

.ressource-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text-light);
    line-height: 1.4;
}

.ressource-list li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.ressource-list li strong {
    color: var(--color-text);
}

.links-list li::before {
    content: "→";
}

.links-list a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.links-list a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.btn-back-home {
    display: block;
    text-align: center;
    margin-top: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 600px) {
    .home-title {
        font-size: 1.8rem;
    }
    
    .mascot {
        width: 120px;
    }
    
    .name-input-section {
        padding: 20px;
    }
    
    .level-card {
        padding: 12px 15px;
    }
    
    .level-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .ressources-content {
        padding: 20px;
        max-height: 75vh;
    }
}
