/* ========================================
   PEEPERS PARTY - Style CSS
   Theme: Fun, Colorful, Party Game
   ======================================== */

/* ====================
   CSS Variables
   ==================== */
:root {
    /* Couleurs principales */
    --orange: #FF6B35;
    --blue: #2196F3;
    --red: #FF4757;
    --vert: #2ED573;
    
    /* Couleurs supplémentaires */
    --orange-light: #FF8C5A;
    --blue-light: #4ECDC4;
    --red-light: #FF6B7A;
    --vert-light: #5AE896;
    
    /* Couleurs neutres */
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --white: #ffffff;
    --light-bg: #f8f9ff;
    
    /* Couleurs dégradées */
    --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #FF4757 50%, #2196F3 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow-orange: 0 0 30px rgba(255, 107, 53, 0.4);
    --shadow-glow-blue: 0 0 30px rgba(33, 150, 243, 0.4);
    --shadow-glow-red: 0 0 30px rgba(255, 71, 87, 0.4);
    --shadow-glow-green: 0 0 30px rgba(46, 213, 115, 0.4);
    
    /* Polices */
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;
}

/* ====================
   Reset CSS
   ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ====================
   Formes décoratives
   ==================== */
.decorative-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--orange);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--blue);
    top: 50%;
    right: -50px;
    animation-delay: 1s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--red);
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--vert);
    top: 30%;
    left: 20%;
    animation-delay: 3s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    background: var(--orange);
    bottom: 10%;
    right: 15%;
    animation-delay: 4s;
}

.shape-6 {
    width: 250px;
    height: 250px;
    background: var(--blue-light);
    top: 60%;
    left: -80px;
    opacity: 0.3;
    animation-delay: 5s;
}

/* ====================
   Navigation
   ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--orange);
}

.logo-emoji {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.logo-text {
    background: linear-gradient(135deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-light);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-orange);
}

.nav-privacy {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white) !important;
}

.nav-privacy:hover {
    box-shadow: var(--shadow-glow-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--orange);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ====================
   Hero Section
   ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite, float 4s ease-in-out infinite;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-word {
    display: inline-block;
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.hero-decoration {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: slideInUp 0.8s ease-out 1s forwards;
    opacity: 0;
}

.bounce-emoji {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.bounce-emoji:nth-child(1) { animation-delay: 0s; }
.bounce-emoji:nth-child(2) { animation-delay: 0.3s; }
.bounce-emoji:nth-child(3) { animation-delay: 0.6s; }
.bounce-emoji:nth-child(4) { animation-delay: 0.9s; }

/* ====================
   Buttons
   ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: var(--white);
    box-shadow: var(--shadow-md), var(--shadow-glow-orange);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--orange);
    color: var(--white);
}

.btn-itch {
    background: linear-gradient(135deg, #fa5c5c, #ff6b6b);
    box-shadow: var(--shadow-md), 0 0 30px rgba(250, 92, 92, 0.4);
}

.btn-itch:hover {
    box-shadow: var(--shadow-lg), 0 0 50px rgba(250, 92, 92, 0.6);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

.btn-icon {
    font-size: 1.5rem;
}

/* ====================
   Section Titles
   ==================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* ====================
   About Section
   ==================== */
.about-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--gradient-card);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--dark-light);
    font-size: 1rem;
    line-height: 1.8;
}

.highlight-orange {
    color: var(--orange);
    font-weight: 700;
}

.highlight-blue {
    color: var(--blue);
    font-weight: 700;
}

.highlight-red {
    color: var(--red);
    font-weight: 700;
}

.highlight-green {
    color: var(--vert);
    font-weight: 700;
}

/* ====================
   Features Section
   ==================== */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, #e8f4ff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    height: 8px;
}

.feature-orange::before { background: linear-gradient(90deg, var(--orange), var(--orange-light)); }
.feature-orange:hover { border: 2px solid var(--orange); }
.feature-blue::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.feature-blue:hover { border: 2px solid var(--blue); }
.feature-red::before { background: linear-gradient(90deg, var(--red), var(--red-light)); }
.feature-red:hover { border: 2px solid var(--red); }
.feature-green::before { background: linear-gradient(90deg, var(--vert), var(--vert-light)); }
.feature-green:hover { border: 2px solid var(--vert); }

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--dark-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ====================
   Download Section
   ==================== */
.download-section {
    padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    animation: rotate 20s linear infinite;
}

.download-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.download-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.download-section .section-title {
    color: var(--white);
}

.download-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 600;
}

.download-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    margin-top: 30px;
    color: var(--white);
    font-weight: 600;
}

.note-icon {
    font-size: 1.5rem;
}

/* ====================
   Footer
   ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.footer-logo .logo-emoji {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--blue);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: var(--blue);
    color: var(--white);
}

/* ====================
   Privacy Policy Page
   ==================== */
.privacy-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--light-bg) 0%, #e8f4ff 100%);
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-header {
    text-align: center;
    margin-bottom: 50px;
}

.privacy-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.privacy-content {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.privacy-content p {
    color: var(--dark-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.privacy-content ul {
    margin-bottom: 25px;
}

.privacy-content li {
    color: var(--dark-light);
    font-size: 1.05rem;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.privacy-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vert);
    font-weight: bold;
    font-size: 1.2rem;
}

.privacy-content li strong {
    color: var(--dark);
}

.privacy-content a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
}

.privacy-content a:hover {
    color: var(--red);
}

.privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 12px 24px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.privacy-back:hover {
    background: var(--red);
    transform: translateX(-5px);
}

/* ====================
   Keyframe Animations
   ==================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow-md);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        padding: 80px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-emoji {
        font-size: 3.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-decoration {
        flex-wrap: wrap;
    }
    
    .bounce-emoji {
        font-size: 2rem;
    }
    
    .about-section,
    .features-section,
    .download-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-content {
        padding: 30px 20px;
    }
    
    .privacy-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-emoji {
        font-size: 1.5rem;
    }
    
    .download-emoji {
        font-size: 3.5rem;
    }
    
    .download-text {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}