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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    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;
}

.nav-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4af37;
}

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

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

/* Section Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-date {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-location {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-ornament {
    font-size: 3rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-photo {
    max-width: 600px;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 18px solid white;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    background: #f0f0f0;
    padding: 0;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

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

/* Sections générales */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #d4af37;
}

/* Section Notre Histoire */
.story {
    background: #f8f9fa;
    padding: 3rem 0;
}

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

.story-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.centered-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Formulaire d'invitation */
.invitation-form {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.form-step {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.form-step.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.form-question {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.btn-primary {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #d4af37 0%, #c9a96e 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c9a96e 0%, #d4af37 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.choice-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    background: white;
    border: 3px solid #d4af37;
    border-radius: 20px;
    padding: 2rem 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.choice-btn:hover {
    background: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.choice-btn:hover .choice-icon,
.choice-btn:hover .choice-text {
    color: white;
}

.choice-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
    transition: color 0.3s ease;
}

.choice-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.counters-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.counter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.counter-group label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.counter {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #d4af37;
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.counter-btn:hover {
    background: #c9a96e;
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.counter-value {
    min-width: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: inline-block;
    user-select: none;
}

.text-input {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #d4af37;
    border-radius: 50px;
    margin: 0 auto 2rem auto;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.text-input:focus {
    outline: none;
    border-color: #c9a96e;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.thank-you-message {
    text-align: center;
    padding: 2rem;
}

.thank-you-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.thank-you-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.thank-you-message p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.story-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

/* Section Galerie */
.gallery {
    background: #f8f9fa;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.scattered-photos {
    position: relative;
    height: 600px;
    margin: 3rem 0;
}

.scattered-photo {
    position: absolute;
    width: 200px;
    height: 250px;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
}

.scattered-photo:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Positions et rotations spécifiques pour chaque photo */
.photo-1 {
    top: 80px;
    left: 5%;
    transform: rotate(-8deg);
}

.photo-2 {
    top: 40px;
    right: 8%;
    transform: rotate(12deg);
}

.photo-3 {
    top: 180px;
    left: 15%;
    transform: rotate(-15deg);
}

.photo-4 {
    top: 60px;
    left: 45%;
    transform: rotate(18deg);
}

.photo-5 {
    top: 220px;
    right: 20%;
    transform: rotate(-12deg);
    z-index: 5;
}

.photo-6 {
    top: 140px;
    left: 65%;
    transform: rotate(9deg);
}

.photo-7 {
    top: 320px;
    left: 8%;
    transform: rotate(-6deg);
}

.photo-8 {
    top: 100px;
    left: 35%;
    transform: rotate(14deg);
}

.photo-9 {
    top: 280px;
    left: 50%;
    transform: rotate(-11deg);
}

.photo-10 {
    top: 350px;
    right: 12%;
    transform: rotate(7deg);
}

.photo-11 {
    top: 120px;
    left: 28%;
    transform: rotate(-10deg);
}

.photo-12 {
    top: 380px;
    left: 32%;
    transform: rotate(16deg);
}

/* Section Le Mariage */
.wedding-info {
    background: linear-gradient(135deg, #c9a96e 0%, #a67c52 100%);
    color: white;
}

.wedding-info .section-title {
    color: white;
}

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

.detail-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
}

.detail-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-svg {
    width: 3rem;
    height: 3rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.detail-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.wedding-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.wedding-photo {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.domaine-photo {
    max-width: 600px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 15px solid white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

/* Section Contact */
.contact {
    background: #f8f9fa;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

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

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #a67c52;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-heart {
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        overflow: hidden;
        padding-top: 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-date {
        font-size: 2rem;
    }
    
    .hero-photo {
        max-width: 400px;
        height: 300px;
        transform: rotate(-2deg);
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .photo-grid-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .gallery-photo {
        height: 250px;
    }
    
    .wedding-details {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Amélioration responsive pour la section Notre Vie */
    .scattered-photos {
        height: 1400px;
    }
    
    .scattered-photo {
        width: 150px;
        height: 180px;
    }
    
    /* Repositionnement des photos pour mobile */
    .photo-1 {
        top: 50px;
        left: 5%;
    }
    
    .photo-2 {
        top: 200px;
        right: 5%;
    }
    
    .photo-3 {
        top: 350px;
        left: 10%;
    }
    
    .photo-4 {
        top: 500px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .photo-5 {
        top: 650px;
        right: 10%;
    }
    
    .photo-6 {
        top: 800px;
        left: 5%;
    }
    
    .photo-7 {
        top: 950px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .photo-8 {
        top: 200px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .photo-9 {
        top: 500px;
        right: 5%;
    }
    
    .photo-10 {
        top: 1100px;
        right: 10%;
    }
    
    .photo-11 {
        top: 650px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .photo-12 {
        top: 1250px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .wedding-description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-date {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .photo-grid-gallery {
        grid-template-columns: 1fr;
    }
}



/* Scroll smooth */
html {
    scroll-behavior: smooth;
}


