/* 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 NEW DESIGN */
.hero-new {
    min-height: 100vh;
    background: #F9F9F9; /* Off-white for clean look */
    color: #4B3621; /* Dark brown for text */
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    position: relative;
    font-family: 'Playfair Display', serif;
}

/* Important pour le dégradé sur du texte */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Yves-Durand (orange -> brun) */
.text-yves {
  background-image: linear-gradient(90deg, #E07A3A 0%, #A84B1F 100%);
}

/* Sonia (rose -> magenta) */
.text-sonia {
  background-image: linear-gradient(90deg, #FF3AAE 0%, #B0006E 100%);
}

/* & (beige -> or) */
.text-amp {
  background-image: linear-gradient(90deg, #F2C38D 0%, #C88A3A 100%);
}

.hero-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    height: 100%;
    align-items: center;
}

/* LEFT SIDE - Typography */
.hero-left {
    flex: 0.8;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center logo vertically in its space */
}

/* Hide small top logo as requested ("remplacer cette partie") */
.logo-top {
    display: none;
}

.hero-main-logo {
    width: 100%;
    max-width: 600px; /* Big size as requested */
    margin-bottom: 2rem;
}

.hero-main-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); /* Slight shadow for depth */
}

/* Spinning Badge */
.spinning-badge {
    width: 150px;
    height: 150px;
    position: relative;
    animation: rotate 20s linear infinite;
}

.badge-text {
    width: 100%;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    fill: #333;
}

.badge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* RIGHT SIDE - Image Arches */
.hero-right {
    flex: 1.2;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
}

.hero-card {
    position: relative;
    width: 30%;
    transition: transform 0.5s ease;
}

.hero-card:hover {
    transform: translateY(-20px);
}

/* Center card slightly offset (lower or higher) for rhythm */
.offset-card {
    margin-top: 5rem; 
}

.img-arch {
    width: 100%;
    aspect-ratio: 2 / 3.5; /* Tall vertical oval */
    border-radius: 100px; /* Full pill shape */
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Grayscale removed, replaced by overlay below */
    transition: transform 0.5s ease;
}

.hero-card:hover .img-arch img {
    /* No filter change needed on img, overlay handles it */
    transform: scale(1.1);
}

/* Color Overlay System */
.img-arch::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: color; /* Tints the image with the gradient color */
    opacity: 0.8; /* Strong tint by default */
    transition: opacity 0.5s ease;
}

/* Card 1: Yves-Durand (Orange -> Brun) */
.hero-card:nth-child(1) .img-arch::after {
    background-image: linear-gradient(90deg, #E07A3A 0%, #A84B1F 100%);
}

/* Card 2: Sonia (Rose -> Magenta) - Wait, logical order: Meeting/Proposal/Day? 
   Actually user said:
   Card 1: 01. RENCONTRE
   Card 2: 02. FIANÇAILLES
   Card 3: 03. LE GRAND JOUR
   
   User snippets:
   text-yves: Orange/Brun
   text-sonia: Rose/Magenta
   text-amp: Gold
   
   Let's map: 
   Card 1 (Rencontre) -> Orange/Brun (Yves theme)
   Card 2 (Fiancailles) -> Gold (& theme - Union)
   Card 3 (Grand Jour) -> Rose/Magenta (Sonia theme)
   
   This matches the "Durand & Sonia" order logic often used.
*/

/* Card 2: Union/Fiancailles (Gold) */
.hero-card:nth-child(2) .img-arch::after {
    background-image: linear-gradient(90deg, #F2C38D 0%, #C88A3A 100%);
}

/* Card 3: Grand Jour (Rose/Magenta) */
.hero-card:nth-child(3) .img-arch::after {
    background-image: linear-gradient(90deg, #FF3AAE 0%, #B0006E 100%);
}

/* Reveal clear image on hover */
.hero-card:hover .img-arch::after {
    opacity: 0;
}

/* Card Typography */
.card-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    position: absolute;
    bottom: 60px;
    right: -10px;
    /* Color handled by text-gradient class */
    z-index: 2;
    font-style: italic;
    /* mix-blend-mode removed to show gold gradient */
}

.card-meta {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-date {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #666;
    text-transform: uppercase;
}

.meta-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Mobile Hero Adjustments */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        padding-top: 100px;
        gap: 2rem;
    }

    .hero-left {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-right {
        width: 100%;
        overflow-x: auto; /* Horizontal scroll on mobile */
        padding-bottom: 2rem;
        justify-content: flex-start;
        padding-left: 1rem;
    }

    .hero-card {
        min-width: 200px; /* Keep them detailed */
        width: 200px;
    }
    
    .offset-card {
        margin-top: 0;
    }
}

/* 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 {
    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;
    /* Flexbox for alignment */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.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 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.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 {
    margin-top: auto; /* Pushes button to the bottom */
    background-image: linear-gradient(90deg, #F2C38D 0%, #C88A3A 100%); /* Gold Gradient */
    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(200, 138, 58, 0.3);
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 138, 58, 0.4);
    filter: brightness(1.1);
}


/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--light-gray);

}

.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;
    }
}

/* Accordion Gallery Styles */
.gallery-section {
    background: var(--white);
    overflow: hidden; /* Prevent spillover */
}

.gallery-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: none; /* Override user snippet if needed, keep site style */
}

.gallery-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 70vh; /* As requested */
    /* border-radius: 20px; */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.item {
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: flex 0.8s ease;
    cursor: pointer;
    position: relative;
}

.item:hover {
    flex: 3; /* Reduced expansion from 7 to 3 for gentler effect */
}

/* Local Image Mapping */
.item-1 { 
    background-image: url('dance_vert.jpg');
}

.item-2 { 
    background-image: url('main.jpg');
}

.item-3 { 
    background-image: url('dep_vert.jpg');
}

.item-4 { 
    background-image: url('oui.jpg');
}

.item-5 { 
    background-image: url('couronne_horiz.jpg');
}

/* Optional Overlay Title on Hover */
.item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.5s;
}

.item:hover::after {
    opacity: 1;
}

/* Mobile Adaptation - Vertical Accordion */
@media (max-width: 768px) {
    .gallery-wrap {
        height: 80vh; /* Needs a fixed height for vertical accordion to work */
        flex-direction: column; /* Stack vertically */
    }
    
    .item {
        width: 100%;
        height: auto; /* Let flex handle height */
        flex: 1; /* Start equal */
        margin-bottom: 0; /* No gaps */
    }

    .item:hover, .item:active, .item:focus {
        flex: 5; /* Expand vertically on touch/hover */
    }
}


/* NEW Countdown + Details Styles */
.container-flex {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.countdown-left {
    flex: 1;
}

.countdown-right {
    flex: 1;
}

/* Texte Styles from User */
.verse {
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 3px solid rgba(139, 21, 56, 0.25);
}

.quote { margin: 0; color: var(--gray); font-style: italic; }
.ref { margin: 8px 0 0; color: var(--burgundy); font-weight: 700; }

.names-line {
    margin: 14px 0 14px;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: baseline;
    font-family: 'Playfair Display', serif;
    justify-content: center; /* Centered as requested */
}

.name-yd { color: #A4482A; }
.name-sonia { color: #C80A6B; }
.amp { color: #D8A06D; }

.families {
    color: var(--gray);
    line-height: 1.6;
    margin: 12px 0;
}

.invite {
    margin: 14px 0 18px;
    color: var(--burgundy);
    line-height: 1.4;
}

/* Date Block */
/* Simple Date Style */
.date-simple {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    height: 100%;
}

.photo {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
    border: 1px solid rgba(0,0,0,.06);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* grande photo arrondie (bas gauche) */
.photo-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    border-radius: 28px;
    min-height: 260px;
}

/* grande photo (haut droite) */
.photo-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    min-height: 220px;
}

.photo-2, .photo-4 { min-height: 120px; }


/* Responsive specifics for this section */
@media (max-width: 900px) {
    .container-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .date-block {
        justify-content: center;
    }

    .names-line {
        justify-content: center;
    }
}

/* Gift Button Style */
.gift-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-image: linear-gradient(90deg, #F2C38D 0%, #C88A3A 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(200, 138, 58, 0.4);
    margin-top: 1rem;
}

.gift-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 138, 58, 0.6);
    filter: brightness(1.1);
}

/* Footer Styles */
.site-footer {
    background: #fff;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    height: 60px; /* Smaller but visible */
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.site-footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Generic Gold Button (Reusable) */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-image: linear-gradient(90deg, #F2C38D 0%, #C88A3A 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(200, 138, 58, 0.4);
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 138, 58, 0.6);
    filter: brightness(1.1);
}


/* RSVP Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--burgundy);
    font-size: 1.1rem;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 138, 58, 0.1);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: var(--gray);
}

.radio-option input, .checkbox-option input {
    margin-top: 4px; /* Align with text top */
    accent-color: var(--burgundy);
}

/* Options (Responses) Styling */
.radio-option span, .checkbox-option span {
    line-height: 1.4;
    color: #000; /* Distinct black color for answers as requested */
    font-weight: 500;
}

/* Responsive Button Text */
.text-mobile {
    display: none;
}

@media (max-width: 600px) {
    .text-desktop {
        display: none;
    }
    .text-mobile {
        display: inline;
    }
}

/* Hide Gallery on Mobile (as requested) */
@media (max-width: 900px) {
    .gallery-section {
        display: none;
    }
}

/* Distinctive Gift List Card */
.contact-card.card-gift {
    background-color: #8B1538; /* Deep Burgundy requested */
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.2);
}

.contact-card.card-gift h3,
.contact-card.card-gift p {
    color: #fff;
}

/* Ensure button looks good on dark bg */
.contact-card.card-gift .gift-btn {
    background: #fff;
    color: #8B1538;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Force single line on mobile for "Confirmer votre présence" */
@media (max-width: 600px) {
    .btn-gold {
        font-size: 0.8rem !important; /* Smaller text */
        padding: 0.8rem 1.2rem !important; /* Tighter padding */
        white-space: nowrap; /* Start on one line */
        letter-spacing: 0px; /* Reduce spacing */
        width: auto;
        max-width: 100%;
    }
}

.contact-card.card-gift .gift-btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
