/* ===== Variables et Reset ===== */
:root {
    --primary-color: #8B0000;
    --secondary-color: #D4AF37;
    --accent-color: #F5E6D3;
    --dark-color: #1a1a1a;
    --light-color: #f9f9f9;
    --text-color: #333;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--light-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover .nav-toggle-bar {
    background: var(--secondary-color);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

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

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: zoomIn 0.8s ease;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--secondary-color);
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== Thank You Section ===== */
.thank-you-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.message-box {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeInUp 0.8s ease;
    border-top: 4px solid var(--primary-color);
}

.message-box h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.main-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.signature {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 2rem;
}

/* ===== About Section ===== */
.about-section {
    padding: 6rem 0;
    background-color: white;
}

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

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.info-box {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.info-box p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.about-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    height: 400px;
    animation: fadeInRight 0.8s ease;
}

/* ===== Gallery Showcase Section ===== */
.gallery-showcase-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(139, 0, 0, 0.3) 100%);
}

.gallery-showcase-section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;

    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-plus {
    font-size: 3.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    animation: pulse 0.6s ease infinite;
}

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

/* ===== Lightbox Modal ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lightbox-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lightbox-media img,
#lightbox-media video {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: slideIn 0.3s ease;
    border-radius: 4px;
}
.lightbox-content img {
}
@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lightbox-close:hover {
    color: white;
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    font-size: 2.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: white;
    transform: scale(1.3);
}

/* ===== Specialties Section ===== */
.specialties-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, var(--light-color) 100%);
}

.specialties-section h2 {
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.specialty-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.specialty-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.specialty-card:hover .specialty-image {
    transform: scale(1.05);
}

.specialty-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
}

.specialty-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Memories Section ===== */
.memories-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, white 100%);
}

.memories-section h2 {
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 4px solid white;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -56px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -56px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(139, 0, 0, 0.8) 100%);
    color: white;
}

.contact-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--secondary-color);
    backdrop-filter: blur(10px);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.info-card p {
    font-size: 1rem;
    line-height: 1.8;
}

.final-message {
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.final-message p {
    font-size: 1.1rem;
    margin: 1rem 0;
    line-height: 1.8;
}

.signature-large {
    font-size: 1.3rem !important;
    color: var(--secondary-color);
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes zoomIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        margin: 0;
        padding: 6rem 2rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(26, 26, 26, 0.98);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(249, 249, 249, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .message-box {
        padding: 2rem;
    }

    .message-box h2 {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .gallery-showcase-section h2 {
        font-size: 1.8rem;
    }

    .lightbox-nav {
        gap: 1.5rem;
        bottom: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
    }

    .lightbox-close {
        font-size: 30px;
        top: 20px;
        right: 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }

    .timeline-item .timeline-marker {
        left: 0 !important;
        right: auto !important;
    }

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

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

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        width: 100%;
        padding: 5.5rem 1.5rem 2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        margin-top: 60px;
    }

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

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .thank-you-section,
    .about-section,
    .specialties-section,
    .memories-section,
    .contact-section {
        padding: 3rem 0;
    }

    .message-box h2,
    .about-text h2,
    .specialties-section h2,
    .memories-section h2,
    .contact-section h2 {
        font-size: 1.5rem;
    }

    .about-image {
        height: 200px;
    }
}
