/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Étoiles animées */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.stars::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    box-shadow: 
        0 0 0 #fff,
        40px 60px 0 #fff,
        80px 20px 0 #fff,
        120px 80px 0 #fff,
        160px 30px 0 #fff,
        200px 70px 0 #fff,
        240px 10px 0 #fff,
        280px 90px 0 #fff;
}

.stars::after {
    top: 40%;
    left: 60%;
    animation-delay: 1.5s;
    box-shadow: 
        0 0 0 #fff,
        60px 40px 0 #fff,
        100px 80px 0 #fff,
        140px 20px 0 #fff,
        180px 60px 0 #fff,
        220px 90px 0 #fff,
        260px 30px 0 #fff,
        300px 70px 0 #fff;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #ff69b4;
}

.logo {
    font-size: 2.5rem;
    color: #ff1493;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #8b008b;
    text-align: center;
    font-weight: bold;
}

/* Animations de base */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-5deg); }
    30% { transform: rotate(5deg); }
    45% { transform: rotate(-3deg); }
    60% { transform: rotate(3deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

.bounce { animation: bounce 2s infinite; }
.pulse { animation: pulse 2s infinite; }
.wobble { animation: wobble 1s infinite; }

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.doll-container {
    position: relative;
}

.main-doll {
    width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-doll:hover {
    transform: scale(1.1) rotate(5deg);
}

.health-bar {
    width: 200px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
    border: 3px solid #ff69b4;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ffa726, #66bb6a);
    border-radius: 10px;
    transition: width 1s ease;
    width: 50%;
}

.health-text {
    color: #8b008b;
    font-weight: bold;
    margin-top: 10px;
}

.hero-title {
    font-size: 2.5rem;
    color: #ff1493;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.3rem;
    color: #8b008b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #87ceeb, #4169e1);
    color: white;
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Sections */
.care-section, .games-section, .sound-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.2rem;
    color: #ff1493;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #8b008b;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Grille des accessoires */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.accessory {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.accessory:hover {
    transform: translateY(-10px) rotate(2deg);
    border-color: #ff69b4;
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.4);
}

.accessory img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.accessory h3 {
    color: #ff1493;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.use-accessory {
    background: linear-gradient(45deg, #32cd32, #90ee90);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-accessory:hover {
    background: linear-gradient(45deg, #228b22, #32cd32);
    transform: scale(1.1);
}

/* Jeux */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #ff69b4;
}

.game-card h3 {
    color: #ff1493;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.game-card p {
    color: #8b008b;
    margin-bottom: 20px;
}

/* Jeu de mémoire */
.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    max-width: 200px;
    margin: 20px auto;
}

.memory-card {
    aspect-ratio: 1;
    background: #ff69b4;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid #ff1493;
}

.memory-card.flipped {
    background: white;
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: #90ee90;
    animation: pulse 0.5s;
}

/* Jeu de clic */
.click-counter {
    font-size: 1.5rem;
    color: #ff1493;
    margin: 20px 0;
    font-weight: bold;
}

.btn-huge {
    font-size: 2rem !important;
    padding: 20px 40px !important;
    border-radius: 60px !important;
}

/* Couleurs magiques */
.color-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.color-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.color-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Sons */
.sound-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sound-btn {
    background: linear-gradient(45deg, #ffd700, #ffb347);
    color: #8b4513;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #ff8c00;
}

.sound-btn:hover {
    background: linear-gradient(45deg, #ffb347, #ffd700);
    transform: scale(1.1);
    animation: wobble 0.5s;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #ff1493;
}

#modal-title {
    color: #ff1493;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

#modal-text {
    color: #8b008b;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.modal-animation {
    font-size: 4rem;
    animation: bounce 1s infinite;
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.1);
    padding: 30px 0;
    text-align: center;
    color: #8b008b;
    margin-top: 60px;
}

.footer p {
    margin-bottom: 10px;
}

.easter-egg {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* MODE CURSED */
.cursed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.cursed-text {
    color: #ff0000;
    font-size: 3rem;
    text-align: center;
    font-weight: bold;
    text-shadow: 3px 3px 0 #000;
    animation: glitch 0.3s infinite;
}

body.cursed-mode {
    filter: invert(1) hue-rotate(180deg) contrast(2);
    animation: shake 0.1s infinite;
}

body.cursed-mode * {
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(1px, 1px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-doll {
        width: 250px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .accessories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .sound-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .cursed-text {
        font-size: 1.5rem;
    }
}