/* Variables CSS - Palette Limoncello */
:root {
    --primary-color: #6b7c32;
    --secondary-color: #f4d03f;
    --accent-color: #a8cc8c;
    --sky-blue: #87ceeb;
    --lemon-yellow: #fff700;
    --olive-green: #8fbc8f;
    --text-color: #2f2f2f;
    --text-light: #666;
    --bg-light: #fffef7;
    --bg-section: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(107, 124, 50, 0.15);
    --shadow-hover: 0 5px 30px rgba(107, 124, 50, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: 1px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Header/Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, #f0f8ff 0%, rgba(168, 204, 140, 0.4) 25%, rgba(244, 208, 63, 0.3) 50%, rgba(135, 206, 235, 0.4) 75%, #fffef7 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="floral" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1.5" fill="%23f4d03f" opacity="0.2"/><circle cx="75" cy="75" r="1" fill="%236b7c32" opacity="0.15"/><circle cx="50" cy="10" r="0.8" fill="%2387ceeb" opacity="0.1"/><path d="M50,45 Q52,47 50,49 Q48,47 50,45" fill="%23a8cc8c" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23floral)"/></svg>');
    opacity: 0.3;
}

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

.names h1 {
    margin-bottom: 2rem;
}

.bride-name, .groom-name {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.ampersand {
    color: var(--secondary-color);
    font-style: italic;
    margin: 0 1rem;
    font-size: 0.8em;
}

.date-location {
    margin-bottom: 3rem;
}

.wedding-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.wedding-location {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-ornament {
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--secondary-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--secondary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Navigation */
.navigation {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-color);
    z-index: 1000;
    padding: 1rem 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    color: var(--primary-color);
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 9999;
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navigation a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.navigation a:hover {
    color: var(--secondary-color);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    background: var(--bg-light);
}

.section:nth-child(even) {
    background: var(--bg-section);
}

/* Details Section */
.details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.detail-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.detail-item h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.detail-item p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dress-note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Programme Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.day-separator {
    text-align: center;
    margin: 3rem 0 2rem 0;
    position: relative;
}

.day-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
    z-index: 1;
}

.day-separator h3 {
    display: inline-block;
    background: var(--bg-section);
    padding: 0 2rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-time {
    flex: 0 0 120px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50px;
    border: 2px solid var(--secondary-color);
    height: 40px;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 2rem;
    position: relative;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Lieu Section */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.transport-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.transport-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.transport-item h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.map-placeholder {
    background: var(--accent-color);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    color: var(--text-light);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-placeholder iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
}

/* Hébergement Section */
.accommodation-notice {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.special-notice {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    max-width: 700px;
    border: 3px solid var(--secondary-color);
    position: relative;
}

.special-notice h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.special-notice p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.highlight {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: 10px;
    font-style: italic;
    color: var(--primary-color);
    margin-top: 1.5rem !important;
    font-weight: 500;
}

/* RSVP Section */
.rsvp {
    background: linear-gradient(45deg, #f0f8ff 0%, rgba(168, 204, 140, 0.4) 25%, rgba(244, 208, 63, 0.3) 50%, rgba(135, 206, 235, 0.4) 75%, #fffef7 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
}

.rsvp-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.rsvp-text {
    margin-bottom: 3rem;
}

.rsvp-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.google-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.form-placeholder {
    padding: 2rem;
    border: 2px dashed var(--accent-color);
    border-radius: 10px;
    background: var(--bg-light);
}

.form-placeholder p:first-child {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.form-instructions {
    margin-top: 2rem;
    text-align: left;
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 8px;
}

.form-instructions em {
    color: var(--secondary-color);
    font-weight: 600;
}

.form-instructions ol {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.form-instructions li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-person {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-person h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-person p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

.footer-ornament {
    margin-bottom: 1.5rem;
}

footer p {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .names h1 {
        font-size: 2.5rem;
    }

    .ampersand {
        display: block;
        margin: 1rem 0;
    }

    /* Hide desktop navigation, show burger */
    .navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        z-index: 9998;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .mobile-menu-overlay.open {
        display: flex;
    }

    .mobile-menu-overlay a {
        font-size: 2rem;
        font-weight: 600;
        color: var(--primary-color);
        padding: 1rem 2rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 25px;
    }

    .mobile-menu-overlay a:hover {
        background: var(--accent-color);
        color: var(--secondary-color);
        transform: scale(1.05);
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .details-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-item {
        padding: 2rem;
    }

    .timeline::before {
        left: 20px;
        width: 3px;
        background: linear-gradient(to bottom, var(--secondary-color) 0%, var(--accent-color) 50%, var(--sky-blue) 100%);
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: column;
        text-align: left;
    }

    .timeline-time {
        position: absolute;
        left: 0;
        width: 40px;
        height: 40px;
        flex: none;
        font-size: 0.8rem;
        font-weight: 700;
        border: 3px solid var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        margin-top: 0.5rem;
    }

    .timeline-content {
        margin: 0;
        margin-top: 0.5rem;
        background: var(--white);
        border-radius: 15px 15px 15px 5px;
        box-shadow: 0 3px 15px rgba(0,0,0,0.1);
        position: relative;
        padding: 1.5rem;
    }

    .timeline-content::before {
        content: '';
        position: absolute;
        left: -8px;
        top: 15px;
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid var(--white);
    }

    .timeline-content h4 {
        color: var(--secondary-color);
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--text-color);
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-placeholder {
        padding: 1.5rem;
        min-height: 250px;
    }

    .map-placeholder iframe {
        height: 250px !important;
        border-radius: 8px;
    }

    .accommodation-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .google-form-container {
        padding: 2rem 1rem;
    }

    .form-instructions {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .detail-item,
    .transport-item,
    .accommodation-item,
    .contact-person {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }
}

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

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

.detail-item,
.timeline-item,
.accommodation-item,
.contact-person {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background 0.3s ease;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}