:root {
    --bg-color: #fff0f5; /* Lavender blush / Rose poudré */
    --text-color: #4a4a4a;
    --primary-color: #ffb6c1; /* Light pink - utilisé pour la timeline */
    --accent-color: #ff6b81; /* Soft bordeaux/red */
    --accent-hover: #ff4757;
    --white: #ffffff;
    
    --font-title: 'Great Vibes', cursive;
    --font-text: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Start Overlay */
.start-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.start-btn {
    padding: 20px 40px;
    font-size: 1.5rem;
    font-family: var(--font-text);
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.start-btn:hover {
    transform: scale(1.05);
}

/* Common */
.section {
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.primary-btn, .secondary-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--white);
    margin-top: 30px;
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.secondary-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Floating Music Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--accent-color);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}
.slide-in-left.visible, .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Hero Section */
.hero {
    text-align: center;
    background: radial-gradient(circle, #fff 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.title {
    font-family: var(--font-title);
    font-size: 7rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.counter-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.counter-container p {
    font-size: 1.1rem;
    color: #888;
}

.counter {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span:first-child {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1;
}

.time-box .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-top: 5px;
}

/* Timeline */
.timeline {
    background-color: var(--white);
}

.timeline-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 5px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 25px;
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

/* Flèches pour la timeline */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 25px;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-color);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 25px;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent var(--bg-color) transparent transparent;
}


.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Gallery */
.gallery {
    background: linear-gradient(to bottom, var(--bg-color), var(--white));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 800px;
    width: 100%;
}

.polaroid {
    background: var(--white);
    padding: 15px 15px 50px 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.polaroid:nth-child(even) {
    transform: rotate(4deg);
}

.polaroid:nth-child(3) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

.polaroid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 2px;
}

.polaroid .caption {
    font-family: var(--font-title);
    font-size: 2rem;
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    color: var(--accent-color);
}

/* Letter */
.letter {
    background-color: var(--white);
}

.letter-container {
    max-width: 700px;
    width: 100%;
}

.letter-paper {
    background: #fffdf5; /* Off-white/cream paper */
    padding: 50px;
    border-radius: 5px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.1), inset 0 0 40px rgba(0,0,0,0.02);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    overflow: hidden;
    color: #333;
    min-height: 400px;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, transparent 29px, rgba(232, 216, 216, 0.5) 30px);
    background-size: 100% 30px;
    pointer-events: none;
}

/* Surprise */
.surprise {
    background: var(--bg-color);
    text-align: center;
    overflow: hidden; /* For hearts */
    position: relative;
}

.messages-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.love-message {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-style: italic;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    max-width: 90%;
}

.love-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
}

.final-words {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.heart-pulse {
    display: inline-block;
    animation: pulse 1s infinite;
    color: red;
}

/* Floating hearts background */
.heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.8;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-150px) scale(1.5); opacity: 0; }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .title {
        font-size: 5rem;
    }
    
    .counter {
        gap: 15px;
    }

    .time-box span:first-child {
        font-size: 2rem;
    }
    
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after, .timeline-item:nth-child(even)::after {
        left: 21px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--bg-color) transparent transparent;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .letter-paper {
        padding: 30px 20px;
    }

    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
