:root {
    --primary: #00B5AC;     /* Turquoise */
    --secondary: #FCF2EB;   /* Beige */
    --accent1: #FFED9F;     /* Jaune pâle */
    --accent2: #F1BD55;     /* Orange pâle */
    --accent3: #3A3939;     /* Gris foncé */
    --light: #FCF2EB;       /* Beige */
    --dark: #3A3939;        /* Gris foncé */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--accent1) 0%, var(--primary) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
}

.container {
    width: 90%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin: 20px auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    color: var(--primary);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

h2 {
    color: var(--dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h3 {
    color: var(--dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn {
    background-color: var(--primary);  /* Changed from accent2 to primary (Turquoise) */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 10px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 181, 172, 0.4);  /* Adjusted shadow color */
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    100% { transform: scale(20, 20); opacity: 0; }
}


.question {
    margin-bottom: 30px;
}

.question h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.option {
    background-color: white;
    border: 2px solid var(--primary);  /* Changed from secondary to primary */
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    font-weight: 500;
    text-align: center;
}

.option:hover {
    background-color: var(--accent1);  /* Changed from secondary to accent1 (Jaune pâle) */
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.option.selected {
    background-color: var(--primary);    /* Changed from accent2 to primary */
    color: white;
    border-color: var(--primary);        /* Changed to primary */
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 181, 172, 0.4);  /* Adjusted shadow color */
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent2));  /* Changed gradient colors */
    width: 0%;
    transition: width 0.3s ease;
}

.result-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.tea-image {
    width: 220px;
    height: 220px;
    margin: 20px auto;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 8px solid var(--primary);  /* Changed from accent3 to primary */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
    50% { transform: scale(1.05); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
    100% { transform: scale(1); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
}

.personality-traits {
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.personality-traits:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.tea-leaf {
    position: absolute;
    background-color: rgba(0, 181, 172, 0.2);  /* Changed to match primary color with opacity */
    border-radius: 50% 50% 50% 0;
    animation: float 15s infinite ease-in-out;
}

.leaf1 { top: 10%; left: 10%; width: 100px; height: 70px; animation-delay: 0s; }
.leaf2 { top: 20%; right: 20%; width: 80px; height: 60px; animation-delay: 2s; }
.leaf3 { bottom: 30%; left: 15%; width: 90px; height: 65px; animation-delay: 4s; }
.leaf4 { bottom: 15%; right: 15%; width: 70px; height: 50px; animation-delay: 6s; }
.leaf5 { top: 40%; left: 50%; width: 110px; height: 75px; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(10deg) scale(1.05); }
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    .result-container {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 30px 20px;
    }
}

/* Ajout des images flottantes en arrière-plan */
.floating-tea-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-tea {
    position: absolute;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

@keyframes float-random-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(5deg); }
    66% { transform: translate(-20px, 30px) rotate(-3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-random-2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 15px) rotate(-5deg); }
    66% { transform: translate(15px, -25px) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-random-3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, 20px) rotate(3deg); }
    66% { transform: translate(-15px, -15px) rotate(-2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-random-4 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -10px) rotate(-4deg); }
    66% { transform: translate(25px, 10px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Email Collection Section */
#email-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.email-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.privacy-note {
    font-size: 12px;
    color: #777;
    margin-top: 1rem;
} 