* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #f5f0e8 0%, #faf7f2 50%, #f5f0e8 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle 1px at 15% 25%, rgba(139, 115, 85, 0.08), transparent),
        radial-gradient(circle 1px at 85% 75%, rgba(139, 115, 85, 0.08), transparent),
        radial-gradient(circle 1px at 50% 50%, rgba(139, 115, 85, 0.05), transparent);
    pointer-events: none;
}

/* Sections */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
    padding: 20px;
}

@media (max-width: 768px) {
    .section {
        padding: 20px 20px 100px 20px;
    }
}

.section.active {
    opacity: 1;
    visibility: visible;
}

/* Ornements intro dans les coins */
.intro-ornaments {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.corner-ornament {
    position: absolute;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #c8b896;
    opacity: 0;
    animation: fadeIn 1.5s ease 1s forwards;
}

.top-left {
    top: clamp(30px, 5vh, 60px);
    left: clamp(30px, 5vw, 60px);
}

.top-right {
    top: clamp(30px, 5vh, 60px);
    right: clamp(30px, 5vw, 60px);
}

.bottom-left {
    bottom: clamp(30px, 5vh, 60px);
    left: clamp(30px, 5vw, 60px);
}

.bottom-right {
    bottom: clamp(30px, 5vh, 60px);
    right: clamp(30px, 5vw, 60px);
}

/* Section texte */
.text-container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.intro-top-ornament {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #c8b896;
    margin-bottom: clamp(25px, 4vh, 40px);
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

.intro-bottom-ornament {
    position: relative;
    margin-top: clamp(35px, 5vh, 60px);
    margin-bottom: 60px;
    opacity: 0;
    transition: opacity 1.5s ease;
    display: inline-block;
}

@media (max-width: 768px) {
    .intro-bottom-ornament {
        margin-bottom: 80px;
    }
}

.main-ornament {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #c8b896;
    text-shadow: 0 2px 8px rgba(200, 184, 150, 0.4);
    position: relative;
    z-index: 2;
}

/* Étoiles autour de l'ornement */
.ornament-star {
    position: absolute;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: #d4c4b0;
    opacity: 0;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star-1 {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.star-2 {
    top: -20px;
    right: -30px;
    animation-delay: 0.75s;
}

.star-3 {
    bottom: 10px;
    left: -35px;
    animation-delay: 1.5s;
}

.star-4 {
    bottom: 10px;
    right: -35px;
    animation-delay: 2.25s;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.7) rotate(0deg);
    }
    50% {
        opacity: 0.4;
        transform: scale(1) rotate(90deg);
        text-shadow: 0 0 6px rgba(212, 196, 176, 0.3);
    }
}

.text-part {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    color: #5a4a3a;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.text-part:nth-child(2) {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-style: italic;
    margin-top: 15px;
}

.text-part:last-child {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-top: 20px;
}

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

/* Section Save the Date */
.container {
    max-width: 90vw;
    width: 650px;
    max-height: 95vh;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(to bottom, #fefefe 0%, #fdfdfb 100%);
    padding: clamp(25px, 4vh, 50px) clamp(30px, 5vw, 45px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 3px double #c8b896;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.container::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid #d4c4b0;
    pointer-events: none;
}

/* Ornements */
.ornament {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: #c8b896;
    opacity: 0.7;
}

.top-ornament {
    position: absolute;
    top: clamp(20px, 3vh, 35px);
    left: 50%;
    transform: translateX(-50%);
}

.bottom-ornament {
    margin-top: clamp(15px, 2vh, 20px);
    position: relative;
}

/* Photo */
.photo-circle {
    width: fit-content;
    max-width: min(90%, 450px);
    margin: 0 auto clamp(15px, 2vh, 25px);
    border: 4px solid #c8b896;
    box-shadow:
        inset 0 0 0 8px white,
        0 8px 25px rgba(0, 0, 0, 0.12);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-circle::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(200, 184, 150, 0.4);
    pointer-events: none;
}

.photo-circle img {
    max-width: 100%;
    max-height: 22vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Titre */
.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: 400;
    letter-spacing: clamp(2px, 0.6vw, 3px);
    color: #8b7355;
    text-transform: uppercase;
    margin-bottom: clamp(12px, 1.8vh, 20px);
}

/* Noms */
.names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    font-weight: 600;
    color: #5a4a3a;
    margin-bottom: clamp(15px, 2.2vh, 25px);
    line-height: 1.2;
}

.ampersand {
    font-family: 'Cinzel Decorative', serif;
    color: #c8b896;
    font-size: 1.1em;
    margin: 0 0.2em;
}

/* Séparateur mariage */
.separator {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #c8b896;
    margin-bottom: clamp(12px, 2vh, 18px);
    opacity: 0.8;
}

/* Date et lieu */
.date-info {
    margin-bottom: clamp(15px, 2vh, 25px);
    padding: clamp(12px, 2vh, 18px) 0;
    border-top: 2px solid #d4c4b0;
    border-bottom: 2px solid #d4c4b0;
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #5a4a3a;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.location {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    color: #8b7355;
    font-style: italic;
}

/* Message */
.message {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #9b8b7b;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Scrollbar */
.container::-webkit-scrollbar {
    width: 4px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(90, 80, 73, 0.2);
    border-radius: 10px;
}
