:root {
    --font-main: 'Cormorant Garamond', serif;
    --font-ui: 'Montserrat', sans-serif;
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --text-color-subtle: rgba(224, 224, 224, 0.7);
    --border-color: rgba(224, 224, 224, 0.4);
    --glow-color: rgba(230, 80, 80, 0.4);
    --icon-color: rgba(224, 224, 224, 0.4);
    --icon-hover-facebook: #1877F2;
    --icon-hover-instagram: #E4405F;
    --icon-hover-telephone: #25D366;
    --footer-gradient: linear-gradient(to top, rgba(5, 5, 5, 0.7), transparent);
    --cursor-x: 50%;
    --cursor-y: 50%;
}

.theme-light {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --text-color-subtle: rgba(26, 26, 26, 0.7);
    --border-color: rgba(26, 26, 26, 0.4);
    --glow-color: rgba(230, 80, 80, 0.4);
    --icon-color: rgba(26, 26, 26, 0.4);
    --icon-hover-facebook: #1877F2;
    --icon-hover-instagram: #E4405F;
    --icon-hover-telephone: #25D366;
    --footer-gradient: linear-gradient(to top, rgba(245, 245, 245, 0.7), transparent);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    transition: background-color 0.4s, color 0.4s;
}

#theme-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2000;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    opacity: 1;
    transform: scale(1);
    transition: border-color 0.4s, opacity 0.4s ease, transform 0.4s ease;
}

body.view-open #theme-toggle,
body.view-open #menu-toggle {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

#theme-toggle svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-color-subtle);
    transition: stroke 0.4s;
}

#theme-toggle:hover svg {
    stroke: var(--text-color);
}

#theme-toggle .sun { display: none; }
#theme-toggle .moon { display: block; }
.theme-light #theme-toggle .sun { display: block; }
.theme-light #theme-toggle .moon { display: none; }

#darkroom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: transparent;
    z-index: 100;
}

#revealer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    -webkit-mask-image: radial-gradient(circle at var(--cursor-x) var(--cursor-y), transparent 120px, black 180px);
    mask-image: radial-gradient(circle at var(--cursor-x) var(--cursor-y), transparent 120px, black 180px);
    z-index: 2;
    transition: background-color 0.4s;
}

.intro-text {
    text-align: center;
    z-index: 3;
    pointer-events: none;
    animation: fadeIn 3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-text p {
    color: var(--text-color);
    margin: 0;
}

.logo-svg {
    width: 320px;
    height: auto;
    margin-bottom: 0rem;
}

.logo-svg g {
    fill: var(--text-color);
    transition: fill 0.4s ease;
}

.actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 1s forwards;
    margin-top: 2rem;
}

#open-about {
    color: var(--text-color-subtle);
    font-family: var(--font-ui);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: color 0.4s, letter-spacing 0.4s;
}

#open-about:hover {
    color: var(--text-color);
    letter-spacing: 1.5px;
}

.cta-button {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.8rem;
    letter-spacing: 0.15rem;
    transition: background-color 0.4s, color 0.4s;
}

.cta-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

#menu-toggle {
    display: block;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    z-index: 2000;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease; 
}

#menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    border-radius: 3px;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

#menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100%;
    background-color: rgba(from var(--bg-color) r g b / 0.9);
    backdrop-filter: blur(10px);
    z-index: 2500;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.83, 0, 0.17, 1);
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

#side-menu.open {
    transform: translateX(0);
}

#close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

#main-nav {
    opacity: 1;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

#main-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

#main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 400;
    transition: color 0.3s;
    user-select: none;
}

#main-nav a:hover {
    color: var(--text-color-subtle);
}

.has-submenu > a::after {
    content: ' ▼';
    font-size: 1rem;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s;
}

.has-submenu.open > a::after {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    list-style: none;
    padding: 15px 0 0 20px;
    margin-top: 15px;
    border-left: 1px solid var(--border-color);
    width: 100%;
    flex-direction: column;
    gap: 15px;
}

.has-submenu.open .submenu {
    display: flex;
}

.submenu a {
    font-size: 1.2rem;
}

#secondary-nav {
    position: fixed;
    z-index: 101; 
    left: 50%;
    transform: translateX(-50%);
    bottom: 15%;
    opacity: 1;
}

#secondary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7rem;
}

#secondary-nav li {
    position: relative;
}

#secondary-nav a {
	display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    transition: color 0.4s, text-shadow 0.4s, transform 0.3s ease;
    padding: 10px 0;
    white-space: nowrap;
}

#secondary-nav a:hover {
    color: #fff;
    transform: translateY(-6px);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.theme-light #secondary-nav a:hover {
    color: #000;
}

#secondary-nav li::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -3.5rem;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
}

#secondary-nav li:last-child::after {
    display: none;
}

#tarifs-view .static-content p {
    text-align: left;
}

.tarif-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tarif-item:last-child {
    border-bottom: none;
}

.tarif-info {
    flex-shrink: 0; 
}

.tarif-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #d2a679; 
    margin: 0 0 0.5rem 0;
}

.tarif-features {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-subtle);
    margin: 0;
}

.tarif-dots {
    flex-grow: 1; 
    transform: translateY(-6px);
    margin: 0 0.5rem;
}

.tarif-price {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    text-align: right;
}

.tarif-item--special .tarif-price {
    font-size: 1.8rem;
}

.tarif-price-small {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-color-subtle);
    font-weight: 400;
}
.tarif-price-devis {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: #d2a679;
    font-weight: 400;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .tarif-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tarif-dots {
        display: none;
    }

    .tarif-price {
        font-size: 1.8rem;
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}



#gallery-view, #about-view, #contact-view, .static-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.83, 0, 0.17, 1), opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
}

#about-view, #contact-view {
    z-index: 250;
    text-align: center;
    padding: 2rem;
}

#gallery-view.active, #about-view.active, #contact-view.active, .static-view.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#close-gallery, #close-about, #close-contact, .close-view {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;
}

.filmstrip-container {
    width: 100%;
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 0 5vw;
    scrollbar-width: thin;
    scrollbar-color: #444 var(--dark-bg);
}

.filmstrip {
    display: flex;
    align-items: center;
    gap: 10vw;
    height: 70vh;
    padding: 0 30vw;
}

.filmstrip img {
    height: 80%;
    width: auto;
    object-fit: contain;
    filter: blur(4px) grayscale(50%) brightness(0.7);
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.filmstrip img.in-focus {
    transform: scale(1.05);
    filter: blur(0) grayscale(0) brightness(1);
}

#photo-description {
    height: 15vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60vw;
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, color 0.4s;
}

#photo-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-title {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.photo-desc-text {
    font-family: var(--font-main);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color-subtle);
    margin: 0;
    padding: 0;
}

.review-form-container {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    background-color: rgba(from var(--text-color) r g b / 0.03);
    border-radius: 8px;
    margin-bottom: 3rem;
}

.review-form-container h3 {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-subtle);
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 0.8rem;
    box-sizing: border-box;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 1rem;
}

.review-form button {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-form button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.reviews-list {
    margin-top: 2rem;
}

.review-item {
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-item blockquote {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-color-subtle);
    border-left: 3px solid #d2a679; 
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.review-signature {
    text-align: right;
    margin-top: 1rem;
}

.review-author {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--text-color);
    font-style: normal;
    font-size: 1.1rem;
    margin: 0;
}

.review-date {
    font-family: var(--font-main); 
    font-size: 0.9rem;
    color: var(--text-color-subtle);
    font-style: italic;
    margin: 0.25rem 0 0 0;
}

.form-success-message {
    background-color: #2a4b37;
    color: #a3e9b7;
    border: 1px solid #3e6b4f;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: var(--font-ui);
}

.form-success-message p {
    margin: 0;
    color: #a3e9b7 !important; 
    text-align: center !important;
    line-height: 1.5 !important;
}

.about-content, .contact-content, .static-content {
    max-width: 650px;
    animation: fadeIn 1.5s ease-in-out;
}

.photographer-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.about-content h2, .contact-content h2, .static-content h2 {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
}

h2.title-script {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-align: center;
}

#mentions-legales-view h3 {
    font-family: var(--font-ui); 
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-top: 2.5rem; 
    margin-bottom: 1rem;
    padding-bottom: 0.5rem; 
    border-bottom: 1px solid var(--border-color);
}

#mentions-legales-view h3:first-of-type {
    margin-top: 1rem;
}

#mentions-legales-view p {
    line-height: 1.8;
    color: var(--text-color-subtle);
}

#mentions-legales-view ul {
    list-style-type: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    border-left: 2px solid #d2a679;
    background-color: rgba(from var(--text-color) r g b / 0.03);
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

#mentions-legales-view li {
    margin-bottom: 0.75rem;
    font-family: var(--font-ui);
    color: var(--text-color-subtle);
}

#mentions-legales-view strong {
    color: var(--text-color);
    font-weight: 700;
}

.about-content p, .contact-content p, .static-content p {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color-subtle);
}

.about-content p, .static-content p {
    text-align: justify;
}

.contact-content p {
    margin-bottom: 3rem;
}

.contact-button {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 1rem 2.5rem;
    letter-spacing: 0.15rem;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.contact-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.social-links {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.social-link {
    color: var(--icon-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.facebook:hover {
    color: var(--icon-hover-facebook);
}

.social-link.instagram:hover {
    color: var(--icon-hover-instagram);
}

.social-link.telephone:hover {
    color: var(--icon-hover-telephone);
}

.social-link.telephone .social-icon {
    transform: scale(1.2);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 50;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--footer-gradient);
    opacity: 0;
    transition: opacity 1.5s ease-in-out, border-color 0.4s;
}

footer.visible {
    opacity: 1;
}

.footer-credit a {
    font-family: var(--font-ui);
    text-decoration: none;
    color: var(--text-color-subtle);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.footer-credit a:hover {
    color: var(--text-color);
    letter-spacing: 0.15em;
}

.footer-copyright {
    font-family: var(--font-ui);
    color: rgba(from var(--text-color) r g b / 0.4);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#lightbox.active img {
    transform: scale(1);
    opacity: 1;
}

#close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.static-view {
    padding: 6rem 2rem 2rem 2rem;
    justify-content: flex-start;
}

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

@media (max-width: 768px) {
    #darkroom {
        justify-content: flex-start; 
        padding-top: 20vh;
        padding-bottom: 0;
    }
        .actions-container { margin-top: 3rem; }
    
    #gallery-view, #about-view, #contact-view, .static-view {
        justify-content: flex-start;
        padding-top: 6rem;
    }
    
    .filmstrip {
        gap: 8vw;
        height: 60vh;
        padding: 0 10vw;
    }

    #photo-description {
        width: 85vw;
        font-size: 1rem;
        height: auto;
        min-height: 10vh;
        margin-top: 1rem;
    }
    
#secondary-nav {
        bottom: 12vh; 
        width: 100%;
        padding: 0 1rem;
    }

    #secondary-nav ul {
        gap: 2.5rem;
    }

    #secondary-nav a {
        font-size: 1.2rem;
    }
    
    #secondary-nav li::after {
        display: none;
    }

    footer {
        padding: 1rem 5%;
        background: var(--bg-color);
        border-top: none;
    }

    .footer-credit a, .footer-copyright { font-size: 0.6rem; }
    .footer-copyright { margin-top: 0.5rem; }
}