/* ==========================================
   BASES & TYPOGRAPHIE (Inter & Bodoni Moda)
   ========================================== */
:root {
    --bg-color: #FAFAF8;
    --text-color: #5b5b62;
    --accent-color: #838494;
    --border-color: #676876;
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Titres en Serif (Bodoni) */
h1, h2, h3, .logo {
    font-family: var(--font-serif);
    font-weight: 400;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p, span, li, label, input, textarea, button {
    font-family: var(--font-sans);
}

.subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}
.logo em { font-family: var(--font-serif); font-style: italic; }

.burger-menu {
    display: none;
}

nav .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

nav .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative; 
    padding-bottom: 6px; 
    transition: color 0.3s;
}

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

/* Ligne sous les liens */
nav .nav-links a:not(.btn-outline)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px; 
    background-color: var(--text-color); 
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

nav .nav-links a.active:not(.btn-outline)::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav .nav-links a:not(.btn-outline):hover::after, 
.dropdown:hover > a::after {
    transform: scaleX(1); 
    transform-origin: left; 
}

nav .nav-links:hover a.active:not(.btn-outline):not(:hover)::after {
    transform: scaleX(0);
    transform-origin: right;
}

/* Menu Déroulant Sections */
.dropdown { 
    position: relative; 
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    list-style: none;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover {
    background-color: var(--border-color);
    color: #FAFAF8;
}

/* ==========================================
   BOUTONS
   ========================================== */
.btn-outline {
    border: 1px solid var(--text-color);
    padding: 0.6rem 1.2rem; 
    border-radius: 0; 
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-outline:hover, .btn-outline.active {
    background-color: var(--text-color);
    color: var(--bg-color) !important;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 0; 
    padding: 0.8rem 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0; 
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: border 0.3s;
}
.btn-secondary:hover { border-color: var(--text-color); }

/* ==========================================
   PAGE D'ACCUEIL (HERO CANVAS)
   ========================================== */
.hero {
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: #15140F;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(21, 20, 15, 0.4), rgba(21, 20, 15, 0.4)), 
        url('https://picsum.photos/id/10/1800/1100'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    z-index: 0;
}

.hero::before { display: none !important; }

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero h1 { 
    color: #FAFAF8; 
    margin-bottom: 1.5rem; 
}

.hero p { 
    max-width: 500px; 
    color: #E2E2DE; 
}

/* ==========================================
   SECTIONS CONTENU
   ========================================== */
.services-section { padding: 6rem 4%; border-top: 1px solid var(--border-color); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    display: block;
    color: inherit;
}
.service-card .img-placeholder {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 1rem;
}

.service-card.mariage .img-placeholder {
    background-position: 34% 30%; 
    background-size: cover;
}

.service-card:hover .img-placeholder {
    filter: grayscale(0%);
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--accent-color); font-size: 0.9rem; }

.about-section {
    padding: 6rem 4%;
    border-top: 1px solid var(--border-color);
}
.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.about-image .img-placeholder-large {
    width: 350px;
    height: 350px;
    background-size: cover;
    background-position: center;
}
.about-content { flex: 1; }

/* ==========================================
   GALERIE & LIGHTBOX
   ========================================== */
.section-container { margin-top: 80px; padding: 4rem 4%; }
.section-header { max-width: 600px; margin-bottom: 4rem; }
.section-header h1 { margin-bottom: 1rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
    width: 100%;
}

.gallery-item {
    width: 100%;
    height: 300px; 
    overflow: hidden;
    background-color: var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Modale Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 1rem 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    user-select: none;
    z-index: 2001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.gallery-actions { text-align: center; margin-top: 3rem; }

.about-text {
    max-width: 680px; 
    margin: 4rem auto; 
    text-align: justify;
}

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

.about-text p:last-child {
    margin-bottom: 0;
}

.section-cta {
    text-align: center;
    padding: 3rem 0 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}
.section-cta h2 { font-size: 1.5rem; margin-bottom: 1.5rem; font-family: var(--font-serif); }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; }

/* ==========================================
   PAGE TARIFS
   ========================================== */
.pricing-container { margin-top: 80px; padding: 4rem 4%; }
.pricing-header { max-width: 600px; margin-bottom: 3rem; }

.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--accent-color);
    transition: color 0.3s;
}
.tab-btn.active {
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid var(--text-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.price-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
}
.price-card h3 { margin-bottom: 1rem; }
.price-card .price {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}
.price-card .price small {
    display: block;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    color: var(--accent-color);
}
.price-card ul { list-style: none; }
.price-card ul li {
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* ==========================================
   PAGE CONTACT
   ========================================== */
.no-scroll-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-fullscreen {
    flex: 1;
    margin-top: 80px;
    padding: 3rem 4%;
    display: flex;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-form-side h1 { margin-bottom: 1.5rem; }

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 500px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.field label { font-size: 0.85rem; color: var(--accent-color); }
.field input, .field textarea {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.7rem;
    color: inherit;
    font-size: 0.95rem;
}
.field input:focus, .field textarea:focus {
    outline: 1px solid var(--text-color);
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    border-left: 1px solid var(--border-color);
    padding-left: 4rem;
}
.info-block .info-row { margin-top: 1rem; }
.info-row span { font-size: 0.8rem; color: var(--accent-color); display: block; }
.social-links-stacked a { display: block; margin-top: 0.5rem; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 4rem 4% 2rem 4%;
    margin-top: auto; 
    width: 100%;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col { flex: 1; min-width: 150px; }
.footer-brand { flex: 1.5; }
.footer-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-color); }
.footer-col ul li a:hover { color: var(--accent-color); }
.footer-col a:hover { color: var(--accent-color); }
.social-icons a { display: block; margin-bottom: 0.5rem; color: var(--accent-color); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .about-container { gap: 2.5rem; }
    .contact-grid { gap: 2.5rem; }
    .contact-info-side { padding-left: 2rem; }
}

@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 5%;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .burger-menu span {
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        transition: all 0.3s ease;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav .nav-links {
        position: fixed;
        top: 70px;
        right: 0;                   
        width: 60%; 
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        border-left: 1px solid var(--border-color); 
        flex-direction: column;
        justify-content: flex-start; 
        align-items: flex-start; 
        padding: 3rem 2rem;
        gap: 1.8rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

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

    nav .nav-links a { font-size: 1.2rem; }
    nav .nav-links ul li a { font-size: 1rem; }

    .dropdown-menu {
        position: static;
        display: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-menu { display: block; }
    .dropdown.active .dropdown-trigger { font-weight: 600; }

    .hero {
        margin-top: 70px;
        height: 80vh;
        padding: 0 6%;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }

    .section-container,
    .pricing-container {
        margin-top: 70px;
        padding: 3rem 5%;
    }

    .services-section,
    .about-section { padding: 4rem 5%; }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-image .img-placeholder-large {
        width: 100%;
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 260px; }
	
	.lightbox-prev,
    .lightbox-next {
        padding: 0.6rem 0.5rem;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .contact-fullscreen {
        margin-top: 70px;
        padding: 2rem 5%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-side {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2.5rem;
    }

    #contactForm { max-width: 100%; }
    .site-footer { padding: 3rem 5% 1.5rem 5%; }
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    nav .nav-links {
        width: 80%;
        gap: 1.2rem;
    }
    .btn-outline, .btn-primary, .btn-secondary {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
}