/* ==========================================
   SITE ANNIVERSAIRE - CSS PRINCIPAL
   Direction Artistique Moderne & Élégante
   ========================================== */

:root {
    /* Palette de couleurs festive et élégante */
    --primary-color: #FF6B9D;
    --secondary-color: #C44569;
    --accent-color: #FFC371;
    --dark-color: #1e272e;
    --light-color: #f8f9fa;
    --text-color: #2d3436;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Neutraliser le style des liens tel sur mobile si un navigateur les force */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}

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

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 50px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: var(--transition-normal);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    width: 25px;
    height: 18px;
    position: relative;
    overflow: visible;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
    position: relative;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .date {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 0.8s both;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}


.btn-secondary {
    background: var(--gradient-2);
    color: white;
}

/* ==========================================
   SECTIONS COMMUNES
   ========================================== */

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background-clip: padding-box;
}

/* Conteneur de section pour éviter les chevauchements */
section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

/* ==========================================
   CARDS & GRID
   ========================================== */

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

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.card p {
    color: #636e72;
    line-height: 1.8;
}

.card .price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 15px;
}

/* ==========================================
   MAP CONTAINER
   ========================================== */

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 30px 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   INFO BOXES
   ========================================== */

.info-box {
    background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ==========================================
   LISTE CADEAUX
   ========================================== */

.gift-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gift-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.gift-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.gift-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
}

.gift-info {
    flex: 1;
}

.gift-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.gift-info p {
    color: #636e72;
    font-size: 0.9rem;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

footer p {
    opacity: 0.8;
}

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

footer .social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

footer .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==========================================
   ANIMATIONS UTILITAIRES
   ========================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero .date {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 20px;
    }
}

/* ==========================================
   CONFETTIS ANIMATION (Bonus)
   ========================================== */

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    top: -20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
