:root {
    --beige: #FFDBBB;
    --blue-light: #BADDFF;
    --mint: #BAFFF5;
    --blue-dark: #496580;
    --black: #252121;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: var(--black);
}

.header-gradient {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--mint) 100%);
}

.btn-primary {
    background-color: var(--blue-dark);
    color: white;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #3a526a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.step-container {
    display: none;
}

.step-container.active {
    display: block;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-light) 0%, var(--mint) 100%);
    transition: width 0.5s ease-in-out;
}

.badge {
    background-color: var(--beige);
    color: var(--black);
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 5px;
    opacity: 0.6;
    transition: all 0.3s;
}

.badge.earned {
    opacity: 1;
    background-color: var(--mint);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--blue-dark);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.task-checkbox:checked {
    background-color: var(--blue-dark);
}

.task-checkbox:checked::after {
    content: '✓';
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.status-indicator {
    font-weight: 700;
    background: linear-gradient(90deg, var(--blue-dark) 0%, #6a8bab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--black);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.pyramid {
    width: 300px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.pyramid-level {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--blue-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.pyramid-level.active {
    background-color: var(--mint);
}

.pyramid-level:nth-child(1) {
    width: 100%;
    height: 40px;
    bottom: 0;
    border-radius: 5px;
}

.pyramid-level:nth-child(2) {
    width: 85%;
    height: 40px;
    bottom: 45px;
    border-radius: 5px;
}

.pyramid-level:nth-child(3) {
    width: 70%;
    height: 40px;
    bottom: 90px;
    border-radius: 5px;
}

.pyramid-level:nth-child(4) {
    width: 55%;
    height: 40px;
    bottom: 135px;
    border-radius: 5px;
}

.pyramid-level:nth-child(5) {
    width: 40%;
    height: 40px;
    bottom: 180px;
    border-radius: 5px;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f2d74e;
    opacity: 0;
    animation: confetti-fall 5s ease-in-out forwards;
    z-index: 9999;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.level-up-animation {
    animation: pulse 1s ease-in-out;
}

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

/* Animations pour changement de statut */
.status-level-up {
    animation: statusLevelUp 2s ease-in-out;
}

@keyframes statusLevelUp {
    0% {
        transform: scale(1);
        text-shadow: none;
    }
    15% {
        transform: scale(1.2);
        text-shadow: 0 0 20px rgba(73, 101, 128, 0.6);
    }
    30% {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(185, 221, 255, 0.8);
    }
    45% {
        transform: scale(1.15);
        text-shadow: 0 0 25px rgba(186, 255, 245, 0.9);
    }
    60% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(73, 101, 128, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow: none;
    }
}

/* Popup spécial pour changement de statut */
.status-upgrade-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--mint) 50%, #FFD700 100%);
    color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    text-align: center;
    max-width: 400px;
    width: 90%;
    opacity: 0;
    border: 3px solid #FFD700;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .status-upgrade-popup {
        padding: 1rem;
        max-width: 320px;
        font-size: 0.9rem;
    }
}

.status-upgrade-popup.show {
    animation: statusPopupShow 1s ease-out forwards;
}

@keyframes statusPopupShow {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.95) rotate(-1deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.02) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Animation de particules pour le statut */
.status-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-particle.gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 0 6px #FFD700;
}

.status-particle.blue {
    background: linear-gradient(45deg, var(--blue-light), var(--mint));
    box-shadow: 0 0 6px var(--blue-light);
}

.status-particle.animate {
    animation: particleFloat 3s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* Effet de glow pour les éléments de statut */
.status-glow {
    animation: statusGlow 2s ease-in-out;
}

@keyframes statusGlow {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 30px rgba(73, 101, 128, 0.5);
        background: rgba(185, 221, 255, 0.1);
    }
}

/* Animation du header lors du changement de statut */
.header-celebration {
    animation: headerCelebration 3s ease-in-out;
}

@keyframes headerCelebration {
    0% {
        background: linear-gradient(135deg, var(--blue-light) 0%, var(--mint) 100%);
    }
    25% {
        background: linear-gradient(135deg, #FFD700 0%, var(--mint) 50%, var(--blue-light) 100%);
    }
    50% {
        background: linear-gradient(135deg, var(--mint) 0%, #FFD700 50%, var(--blue-light) 100%);
    }
    75% {
        background: linear-gradient(135deg, var(--blue-light) 0%, #FFD700 50%, var(--mint) 100%);
    }
    100% {
        background: linear-gradient(135deg, var(--blue-light) 0%, var(--mint) 100%);
    }
}

.achievement-popup {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: linear-gradient(135deg, var(--blue-dark) 0%, #3a526a 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    max-width: 300px;
}

.achievement-popup.show {
    bottom: 20px;
}

/* Homepage specific styles */
.hero-gradient {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 50%, var(--mint) 100%);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.pulse-animation {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(185, 221, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(185, 221, 255, 0.6); }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(185, 221, 255, 0.3);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--blue-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.cta-button {
    background: linear-gradient(45deg, var(--blue-dark) 0%, #6a8bab  100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(73, 101, 128, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(73, 101, 128, 0.4);
    background: linear-gradient(45deg, #3a526a 0%, var(--blue-dark) 100%);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--mint) 0%, var(--blue-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blue-dark);
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(185, 221, 255, 0.3);
}