/* Variables CSS pour les couleurs du mariage - Basées sur l'invitation */
:root {
    /* Nuances de rouge bordeaux (couleurs principales) */
    --burgundy: #8B1538;
    --dark-burgundy: #6B0F2B;
    --light-burgundy: #B71C4E;
    --burgundy-soft: #C2185B;
    --rose-pink: #E91E63;
    --rose-light: #F4C2C2;

    /* Nuances de vert émeraude */
    --emerald: #50C878;
    --dark-emerald: #2E7D32;
    --light-emerald: #81C784;
    --emerald-soft: #66BB6A;
    --sage-green: #A5D6A7;

    /* Couleurs neutres et d'accent */
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --cream: #F5F5DC;
    --cream-warm: #FAF0E6;
    --beige: #F5F0E8;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #666666;
    --light-gray: #F8F8F8;

    /* Couleurs spécifiques pour les sections */
    --hero-bg: var(--burgundy);
    --section-accent: var(--burgundy-soft);
}

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

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--cream);
}


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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(139, 21, 56, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo span {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--hero-bg);
    background-image: url('hero_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: kenBurns 30s ease-in-out infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--burgundy);
    opacity: 0.3;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 100px;
    height: 100px;
    background: var(--rose-light);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-text {
    color: var(--white);
    text-align: center;
}

.small-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--white);
}

.names {
    font-family: 'Dancing Script', cursive;
    font-size: 80px;
    color: var(--gold);
    margin: 30px 0;
    line-height: 1.2;
}

.names span {
    display: block;
    font-size: 60px;
    color: var(--white);
}

.wedding-date {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--cream);
}

.wedding-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--cream);
    line-height: 1.5;
}

.bible-verse {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bible-verse p {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--cream);
}

.bible-verse cite {
    font-size: 0.9rem;
    color: var(--gold);
}

/* Call to Action Button */
.cta-section {
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gold);
    color: var(--burgundy);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border: 2px solid transparent;
}

.cta-button:hover {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.cta-button i {
    font-size: 1.2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

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

/* Animation Ken Burns pour le hero */
@keyframes kenBurns {
    0% {
        background-size: cover;
        background-position: center center;
    }
    25% {
        background-size: 115%;
        background-position: left center;
    }
    50% {
        background-size: 120%;
        background-position: center top;
    }
    75% {
        background-size: 115%;
        background-position: right center;
    }
    100% {
        background-size: cover;
        background-position: center bottom;
    }
}

/* Animation Ken Burns pour mobile (effet vidéo) */
@keyframes kenBurnsMobile {
    0% {
        background-size: cover;
        background-position: center 25%;
    }
    20% {
        background-size: cover;
        background-position: left 20%;
    }
    40% {
        background-size: cover;
        background-position: center 15%;
    }
    60% {
        background-size: cover;
        background-position: right 30%;
    }
    80% {
        background-size: cover;
        background-position: center 35%;
    }
    100% {
        background-size: cover;
        background-position: center 25%;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-roses {
    max-width: 400px;
    height: auto;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
    z-index: 3;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Countdown Section */
.countdown-section {
    padding: 80px 0;
    background: var(--cream-warm);
    text-align: center;
    position: relative;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: url('floral-elements.svg') no-repeat center;
    background-size: contain;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.countdown-section::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: url('floral-elements.svg') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    transform: rotate(25deg);
}

.countdown-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.countdown-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.time-unit {
    background: var(--section-accent);
    color: var(--white);
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}

.time-unit:hover {
    transform: translateY(-5px);
}

.time-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--beige);
    text-align: center;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    width: 40px;
    height: 40px;
    background: var(--rose-pink);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.gallery-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--emerald-soft);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 4s ease-in-out infinite reverse;
}

.gallery-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.gallery-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.photo-card {
    height: 350px;
    position: relative;
    cursor: pointer;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.photo-card:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(139, 21, 56, 0.3);
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1), rgba(80, 200, 120, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.photo-card:hover .gallery-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(139, 21, 56, 0.9));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.photo-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    margin: 0;
    color: var(--gold);
    text-align: center;
}

/* Locations Section */
.locations-section {
    padding: 80px 0;
    background: var(--cream-warm);
    position: relative;
}

.locations-section::before {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--emerald);
    border-radius: 50%;
    opacity: 0.1;
}

.locations-section::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 35px;
    height: 35px;
    background: var(--rose-pink);
    border-radius: 50%;
    opacity: 0.1;
}

.locations-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 3rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.location-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: var(--burgundy);
}

.location-icon {
    width: 80px;
    height: 80px;
    background: var(--burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.3);
}

.location-info h3 {
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.location-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--emerald);
    margin-bottom: 0.5rem;
}

.location-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

.location-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.location-btn {
    background: var(--emerald);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.location-btn:hover {
    background: var(--dark-emerald);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.4);
}


/* Contact Section */
.contact-section {
    padding: 80px 0 600px 0;
    background: var(--light-gray);
    background-image: url('bottom.png');
    background-size: 80%;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
}

.contact-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: var(--burgundy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.contact-item i {
    color: var(--emerald);
    width: 20px;
}

.bible-quote {
    background: var(--burgundy);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.3);
}

.bible-quote p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bible-quote cite {
    color: var(--gold);
    font-size: 0.9rem;
}


/* Décoration en haut */
.top-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

/* Rose en haut à gauche */
.corner-rose-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background-image: url('top_left.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    min-width: 200px;
    min-height: 150px;
}

/* Accent doré en haut à droite */
.corner-accent-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gold);
    clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
    opacity: 0.6;
}


/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* Responsive Design */

/* Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-section {
        padding: 80px 0 400px 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0 200px 0;
    }

    .hero {
        background-image: url('hero_bg_mobile.webp');
        background-position: center center;
        background-attachment: scroll;
        background-size: cover;
        animation: kenBurnsMobile 40s ease-in-out infinite;
    }

    .hero::before {
        opacity: 0.4;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--burgundy);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hero-content {
        justify-content: center;
        text-align: center;
        padding: 0 15px;
    }

    .names {
        font-size: 50px;
    }

    .names span {
        font-size: 40px;
    }

    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .photo-card {
        height: 280px;
    }

    .photo-card:hover {
        transform: rotateY(5deg) rotateX(2deg) scale(1.02);
    }

    .card-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(139, 21, 56, 0.8));
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 15px;
    }
}