/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Classe utilitaire */
.hidden {
    display: none !important;
}

/* Header / Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #d63384;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.5rem;
    color: #6f42c1;
    font-weight: 300;
    margin-bottom: 30px;
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
    to { text-shadow: 2px 2px 20px rgba(214, 51, 132, 0.3); }
}

/* Animation des coeurs */
.hearts-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
}

.heart:before {
    top: -10px;
    left: 0;
}

.heart:after {
    top: 0;
    left: -10px;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 30%; animation-delay: 1s; }
.heart:nth-child(3) { left: 50%; animation-delay: 2s; }
.heart:nth-child(4) { left: 70%; animation-delay: 3s; }
.heart:nth-child(5) { left: 90%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0; }
    50% { transform: translateY(-100px) rotate(45deg); opacity: 1; }
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.nav-btn.active {
    background: linear-gradient(45deg, #6f42c1, #495057);
    transform: translateY(-3px);
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

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

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #d63384;
    margin-bottom: 40px;
    font-family: 'Dancing Script', cursive;
}

/* Section Compliments */
.compliments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.compliment-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.compliment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #ff6b9d;
}

.compliment-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.compliment-card p {
    font-size: 1.2rem;
    color: #495057;
    font-style: italic;
    line-height: 1.6;
}

/* Section Photos */
.photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.photo-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-item p {
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
}

.photo-note {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    margin-top: 20px;
}

/* Section Poèmes */
.poems-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.poem-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-left: 5px solid #ff6b9d;
}

.poem-card h3 {
    color: #d63384;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}

.poem-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #495057;
}

.poem-content p {
    margin-bottom: 20px;
}

/* Section Surprise */
.surprise-container {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

/* Animation du cadeau avec images */
.gift-animation-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 40px;
}

.gift-image {
    width: 300px;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gift-image:hover {
    transform: scale(1.05);
}

.gift-instruction {
    margin-top: 20px;
    font-size: 1.4rem;
    color: #d63384;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Contenu de la surprise */
.surprise-content {
    opacity: 0;
    transform: scale(0);
    transition: all 1.2s ease;
    position: relative;
}

.surprise-content.show {
    opacity: 1;
    transform: scale(1);
}

/* Gâteau en forme de cœur avec image */
.heart-cake-container {
    position: relative;
    margin: 40px auto;
    display: inline-block;
}

.heart-cake-image {
    width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: cakeAppear 1s ease-out;
}

@keyframes cakeAppear {
    0% { 
        opacity: 0; 
        transform: scale(0.5) rotate(-10deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

.cake-message {
    margin-top: 30px;
    text-align: center;
}

.cake-message p {
    font-size: 1.4rem;
    color: #d63384;
    margin: 10px 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Confettis de cœurs */
.heart-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.heart-piece {
    position: absolute;
    font-size: 2rem;
    animation: heartConfetti 4s linear infinite;
    opacity: 0;
}

.heart-piece:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart-piece:nth-child(2) { left: 20%; animation-delay: 0.3s; }
.heart-piece:nth-child(3) { left: 30%; animation-delay: 0.6s; }
.heart-piece:nth-child(4) { left: 40%; animation-delay: 0.9s; }
.heart-piece:nth-child(5) { left: 50%; animation-delay: 1.2s; }
.heart-piece:nth-child(6) { left: 60%; animation-delay: 1.5s; }
.heart-piece:nth-child(7) { left: 70%; animation-delay: 1.8s; }
.heart-piece:nth-child(8) { left: 80%; animation-delay: 2.1s; }
.heart-piece:nth-child(9) { left: 90%; animation-delay: 2.4s; }
.heart-piece:nth-child(10) { left: 95%; animation-delay: 2.7s; }

@keyframes heartConfetti {
    0% { 
        transform: translateY(-50px) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(600px) rotate(360deg); 
        opacity: 0; 
    }
}

/* Feux d'artifice */
.fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 2s ease-out infinite;
}

.firework:nth-child(1) {
    left: 20%;
    top: 30%;
    background: #ff6b9d;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    left: 80%;
    top: 40%;
    background: #ffd700;
    animation-delay: 0.4s;
}

.firework:nth-child(3) {
    left: 50%;
    top: 20%;
    background: #6f42c1;
    animation-delay: 0.8s;
}

.firework:nth-child(4) {
    left: 30%;
    top: 50%;
    background: #20c997;
    animation-delay: 1.2s;
}

.firework:nth-child(5) {
    left: 70%;
    top: 60%;
    background: #fd7e14;
    animation-delay: 1.6s;
}

@keyframes fireworkExplode {
    0% {
        transform: scale(0);
        opacity: 1;
        box-shadow: 
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor;
    }
    25% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 
            20px 0 0 -2px currentColor,
            -20px 0 0 -2px currentColor,
            0 20px 0 -2px currentColor,
            0 -20px 0 -2px currentColor;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
        box-shadow: 
            40px 0 0 -4px currentColor,
            -40px 0 0 -4px currentColor,
            0 40px 0 -4px currentColor,
            0 -40px 0 -4px currentColor,
            28px 28px 0 -4px currentColor,
            -28px -28px 0 -4px currentColor,
            28px -28px 0 -4px currentColor,
            -28px 28px 0 -4px currentColor;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        box-shadow: 
            60px 0 0 -6px currentColor,
            -60px 0 0 -6px currentColor,
            0 60px 0 -6px currentColor,
            0 -60px 0 -6px currentColor,
            42px 42px 0 -6px currentColor,
            -42px -42px 0 -6px currentColor,
            42px -42px 0 -6px currentColor,
            -42px 42px 0 -6px currentColor;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.footer p {
    font-size: 1.2rem;
    color: #6f42c1;
    margin: 10px 0;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .navigation {
        gap: 10px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .compliments-grid {
        grid-template-columns: 1fr;
    }
    
    .poems-container {
        grid-template-columns: 1fr;
    }
    
    .poem-card {
        padding: 25px;
    }
    
    .gift-image {
        width: 250px;
    }
    
    .heart-cake-image {
        width: 300px;
    }
    
    .photos-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .compliment-card {
        padding: 20px;
    }
    
    .compliment-card p {
        font-size: 1rem;
    }
    
    .gift-image {
        width: 200px;
    }
    
    .heart-cake-image {
        width: 250px;
    }
    
    .gift-instruction {
        font-size: 1.2rem;
    }
    
    .photos-gallery {
        grid-template-columns: 1fr;
    }
}
