/* PrimePost.be - Main Styles - Light Mode */
/* Palette colorée inspirée années 90/early 2000s web nostalgie */

:root {
    /* Colors - Light Mode */
    --primary-bg: #FFF8E7;
    --secondary-bg: #FFE5EC;
    --accent-bg: #E0F4FF;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A5E;
    --highlight-yellow: #FFD93D;
    --highlight-pink: #FF6B9D;
    --highlight-blue: #6BCF7F;
    --highlight-purple: #C77DFF;
    --link-color: #FF6B9D;
    --link-hover: #E85D8A;
    --paper-bg: #FFFEF9;
    --paper-shadow: rgba(0, 0, 0, 0.1);
    --checkbox-color: #FF6B9D;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-serif: 'Fraunces', serif;
    --font-body: 'Epilogue', sans-serif;
    --font-fallback: 'Inter', sans-serif;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Améliore touch sur mobile */
    -webkit-tap-highlight-color: rgba(255, 107, 157, 0.2);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Évite le zoom sur iOS lors du focus sur inputs */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Optimisation scroll mobile */
    -webkit-overflow-scrolling: touch;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* Hero Section */
.hero {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    font-family: var(--font-serif);
    font-variation-settings: 'WONK' 1, 'SOFT' 100;
    color: var(--highlight-pink);
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: var(--highlight-yellow);
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.big-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.big-text em {
    font-family: var(--font-serif);
    font-variation-settings: 'WONK' 0.5;
    color: var(--highlight-purple);
    font-style: italic;
}

.explanation {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.explanation strong {
    font-weight: 700;
    color: var(--highlight-pink);
    background: var(--highlight-yellow);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.explanation em {
    font-family: var(--font-serif);
    font-variation-settings: 'WONK' 0.3;
    font-style: italic;
    color: var(--text-primary);
}

/* Products Section */
.products-section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

/* Shopping List with Post-it Style */
.shopping-list {
    /* Post-it yellow pastel color */
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 20px
    ), #FFF9C4;
    padding: var(--space-xl);
    padding-top: calc(var(--space-xl) + 20px); /* Extra space for sticky top */
    border-radius: 2px;
    /* Post-it style shadow */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    transform: rotate(-0.5deg);
    /* Subtle border */
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: visible;
}

/* Post-it sticky top edge */
.shopping-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom,
        rgba(255, 243, 120, 0.5),
        transparent
    );
    border-radius: 2px 2px 0 0;
}

.list-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.list-item:last-child {
    border-bottom: none;
}

/* Card Style - Clickable Item */
.item-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    padding: var(--space-sm);
    margin: calc(var(--space-sm) * -1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.item-card:active {
    transform: translateX(2px) scale(0.98);
}

/* Price Badge */
.item-price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--highlight-pink);
    background: var(--highlight-yellow);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transform: rotate(1deg);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Product Image */
.item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: white;
    padding: var(--space-xs);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Product Name */
.item-name {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 3px;
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer-disclaimer {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.footer-contact {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-contact a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 2px solid var(--link-color);
    transition: all 0.2s ease;
}

.footer-contact a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }

    .hero {
        padding: var(--space-xl) 0;
    }

    .shopping-list {
        padding: var(--space-lg);
        transform: rotate(-1deg);
    }

    .item-card {
        gap: var(--space-sm);
    }

    .item-image {
        width: 60px;
        height: 60px;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-price {
        font-size: 0.875rem;
        padding: 4px 8px;
    }

    .list-item {
        padding: var(--space-sm) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-sm);
    }

    .hero {
        padding: var(--space-lg) 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--space-md);
    }

    .big-text {
        font-size: 1.125rem;
        margin-bottom: var(--space-md);
    }

    .explanation {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-lg);
    }

    .shopping-list {
        padding: var(--space-md);
        margin: 0 calc(var(--space-sm) * -1);
        border-radius: var(--radius-md);
    }

    .item-card {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .item-image {
        width: 50px;
        height: 50px;
    }

    .item-name {
        font-size: 0.9375rem;
        flex-basis: 100%;
    }

    .item-price {
        font-size: 0.8125rem;
        padding: 3px 6px;
    }

    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }

    .footer-text {
        font-size: 1.125rem;
    }
}
