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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

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

/* ===== ÉCRAN D'INTRO NÉON ===== */
.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.intro-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.intro-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background_picture.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.intro-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.intro-text-center {
    text-align: center;
}

.neon-title {
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.neon-text {
    color: #ffffff;
    text-shadow: 
        0 0 5px #ffffff,
        0 0 10px #ffffff,
        0 0 15px #ffffff,
        0 0 20px #ff00de,
        0 0 35px #ff00de,
        0 0 40px #ff00de,
        0 0 50px #ff00de,
        0 0 75px #ff00de;
    animation: flicker 1.5s infinite alternate;
}

.neon-text-accent {
    color: #ffffff;
    text-shadow: 
        0 0 5px #ffffff,
        0 0 10px #ffffff,
        0 0 15px #ffffff,
        0 0 20px #00ff41,
        0 0 35px #00ff41,
        0 0 40px #00ff41,
        0 0 50px #00ff41,
        0 0 75px #00ff41;
    animation: flicker 2s infinite alternate;
}

.intro-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* ===== SITE PRINCIPAL ===== */
.main-site-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in, visibility 1s ease-in;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.main-site-visible {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(127, 176, 105, 0.1);
}

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

.nav-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #7FB069;
}

.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: #7FB069;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background_picture.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-subtitle {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #7FB069;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-names {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #333;
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-date {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #7FB069;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid #7FB069;
    border-bottom: 2px solid #7FB069;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Sections communes */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: #7FB069;
    margin: 0 auto;
}

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

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-paragraph {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.story-signature {
    font-size: 1.1rem;
    color: #7FB069;
    margin-top: 2rem;
    font-style: italic;
}

.story-image {
    position: relative;
}

.story-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Section Détails */
.details-section {
    padding: 6rem 0;
    background: white;
}

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

.detail-card {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(127, 176, 105, 0.1);
    border-color: #7FB069;
}

.detail-icon {
    color: #7FB069;
    margin-bottom: 1.5rem;
}

.detail-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.detail-content p {
    margin-bottom: 0.5rem;
    color: #555;
}

.detail-content strong {
    color: #7FB069;
}

/* Section Confirmation */
.confirmation-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.confirmation-content {
    text-align: center;
}

.confirmation-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.confirmation-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7FB069, #6fa055);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(127, 176, 105, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.confirmation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.confirmation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(127, 176, 105, 0.4);
}

.confirmation-btn:hover::before {
    left: 100%;
}

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

.form-note {
    display: block;
    margin-top: 1rem;
    color: #7FB069;
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-column {
    text-align: center;
}

.footer-title {
    font-size: 1.3rem;
    color: #7FB069;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-contact,
.footer-location {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-contact strong,
.footer-location strong {
    color: #7FB069;
}

/* ===== ANIMATIONS ===== */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: 
            0 0 3px #ffffff,
            0 0 6px #ffffff,
            0 0 9px #ffffff;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        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-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-card {
        padding: 2rem 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .neon-text, .neon-text-accent {
        text-shadow: 
            0 0 3px #ffffff,
            0 0 6px #ffffff,
            0 0 9px #ffffff,
            0 0 12px currentColor,
            0 0 20px currentColor,
            0 0 25px currentColor,
            0 0 30px currentColor,
            0 0 40px currentColor;
    }
    
    .intro-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .story-section,
    .details-section,
    .confirmation-section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }

    .neon-title {
        margin-bottom: 1.5rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
}