/* ============================================
   VICIOUS AVRIL — Stylesheet
   Two themes: Journal (B&W) + Dark (Black/Red)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&family=UnifrakturCook:wght@700&family=Cinzel+Decorative:wght@400;700;900&display=swap');

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

/* ---- CSS Variables ---- */

/* Journal Theme (default) */
[data-theme="journal"] {
    --bg: #f5f0eb;
    --bg-alt: #e8e2da;
    --text: #1a1a1a;
    --text-muted: #555;
    --accent: #1a1a1a;
    --border: #1a1a1a;
    --border-thin: 1px solid #1a1a1a;
    --border-thick: 3px solid #1a1a1a;
    --border-double: 4px double #1a1a1a;
    --quote-bg: #1a1a1a;
    --quote-text: #f5f0eb;
    --font-title: 'UnifrakturCook', 'Playfair Display', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --img-filter: grayscale(100%) contrast(1.1);
    --img-hover-filter: grayscale(100%) contrast(1.2) brightness(1.05);
    --nav-bg: rgba(245, 240, 235, 0.95);
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #111;
    --text: #e0d5ca;
    --text-muted: #8a7e74;
    --accent: #c41e1e;
    --border: #c41e1e;
    --border-thin: 1px solid #2a1a1a;
    --border-thick: 2px solid #c41e1e;
    --border-double: 3px double #c41e1e;
    --quote-bg: #c41e1e;
    --quote-text: #0a0a0a;
    --font-title: 'Cinzel Decorative', 'Playfair Display', serif;
    --font-heading: 'Cinzel Decorative', 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --img-filter: brightness(0.85) contrast(1.15) sepia(40%) hue-rotate(-10deg) saturate(1.8);
    --img-hover-filter: brightness(0.95) contrast(1.2) sepia(50%) hue-rotate(-10deg) saturate(2.2);
    --nav-bg: rgba(10, 10, 10, 0.95);
    --shadow: 0 2px 30px rgba(196, 30, 30, 0.1);
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background-color 0.6s ease, color 0.6s ease;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover { opacity: 0.7; }

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-thin);
    transition: all 0.4s ease;
    height: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.3rem 0;
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }

/* ---- Theme Switch ---- */
.theme-switch {
    display: flex;
    align-items: center;
    border: var(--border-thick);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.theme-switch-option {
    padding: 0.35rem 0.7rem;
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.4s ease;
    white-space: nowrap;
    user-select: none;
}

[data-theme="journal"] .theme-switch-option[data-theme-val="journal"] {
    background: #1a1a1a;
    color: #f5f0eb;
}
[data-theme="dark"] .theme-switch-option[data-theme-val="dark"] {
    background: #c41e1e;
    color: #0a0a0a;
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    padding: 6rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: var(--border-thick);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: var(--border-double);
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(180deg, #e0d5ca 0%, #c41e1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.hero-logo {
    width: 160px;
    flex-shrink: 0;
}

[data-theme="journal"] .logo-dark { display: none; }
[data-theme="dark"] .logo-journal { display: none; }

/* PNG logos — no blend mode needed */

.hero-photo {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-photo img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center 30%;
    filter: var(--img-filter);
    transition: filter 0.6s ease;
}

.hero-tagline {
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ---- Sections ---- */
.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    border-bottom: var(--border-thin);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

[data-theme="journal"] .section-title {
    font-family: var(--font-title);
}
[data-theme="dark"] .section-title {
    font-family: var(--font-title);
    letter-spacing: 0.08em;
}

/* ---- Grid Layout ---- */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.section-text p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.section-image {
    overflow: hidden;
}
.section-image img {
    width: 100%;
    filter: var(--img-filter);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.section-image:hover img {
    filter: var(--img-hover-filter);
    transform: scale(1.02);
}

/* ---- Explore Section ---- */
.section-explore {
    padding: 0;
    max-width: 100%;
    margin: 0;
}
.explore-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 50vh;
}
.explore-image {
    overflow: hidden;
}
.explore-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--img-filter);
    transition: filter 0.5s;
}
.explore-image:hover img {
    filter: var(--img-hover-filter);
}
.explore-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-alt);
    border-left: var(--border-thick);
}
.explore-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.credit {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Quote ---- */
.quote {
    margin-top: 3rem;
    padding: 2.5rem 3rem;
    background: var(--quote-bg);
    color: var(--quote-text);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    line-height: 1.5;
    position: relative;
    transition: all 0.4s ease;
}
.quote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    opacity: 0.2;
    font-style: normal;
}
.quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

[data-theme="dark"] .quote {
    border-left: 4px solid var(--accent);
    background: rgba(196, 30, 30, 0.08);
    color: var(--text);
}

/* ---- Portfolio ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.portfolio-item {
    overflow: hidden;
    position: relative;
}
.portfolio-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: var(--img-filter);
    transition: filter 0.5s ease, transform 0.6s ease;
}
.portfolio-item:hover img {
    filter: var(--img-hover-filter);
    transform: scale(1.03);
}
.portfolio-item-wide {
    grid-column: 1 / -1;
}
.portfolio-item-wide img {
    height: 450px;
}

.photo-credit {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: var(--border-thin);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.photo-credit strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text);
}

/* ---- Conditions ---- */
.section-conditions {
    text-align: center;
}
.section-conditions .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.conditions-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}
.conditions-list li {
    padding: 1rem 0;
    border-bottom: var(--border-thin);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
}
.conditions-list li::before {
    content: '—';
    margin-right: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

/* ---- Contact ---- */
.section-contact {
    border-bottom: none;
    padding: 6rem 2rem;
}
.contact-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.contact-logo {
    flex: 1;
    max-width: 400px;
}
.contact-logo img {
    width: 100%;
}
.contact-info {
    flex: 1;
}
.contact-email {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: var(--border-thick);
    margin-top: 1rem;
    transition: all 0.3s ease;
}
.contact-email:hover {
    background: var(--accent);
    color: var(--bg);
    opacity: 1;
}

/* ---- Age Gate ---- */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, background-color 0.6s ease;
}
.age-gate.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Age gate — Dark theme (default) */
[data-theme="dark"] .age-gate {
    background: #0a0a0a;
}
[data-theme="dark"] .age-gate-title {
    font-family: 'Cinzel Decorative', serif;
    color: #c41e1e;
}
[data-theme="dark"] .age-gate-text {
    color: #8a7e74;
}
[data-theme="dark"] .age-gate-enter {
    background: #c41e1e;
    color: #0a0a0a;
}
[data-theme="dark"] .age-gate-enter:hover {
    background: #e02020;
}
[data-theme="dark"] .age-gate-leave {
    background: transparent;
    color: #8a7e74;
    border: 1px solid #2a1a1a;
}
[data-theme="dark"] .age-gate-leave:hover {
    color: #e0d5ca;
    border-color: #e0d5ca;
}

/* Age gate — Journal theme */
[data-theme="journal"] .age-gate {
    background: #f5f0eb;
}
[data-theme="journal"] .age-gate-title {
    font-family: 'UnifrakturCook', serif;
    color: #1a1a1a;
}
[data-theme="journal"] .age-gate-text {
    color: #555;
}
[data-theme="journal"] .age-gate-enter {
    background: #1a1a1a;
    color: #f5f0eb;
}
[data-theme="journal"] .age-gate-enter:hover {
    background: #333;
}
[data-theme="journal"] .age-gate-leave {
    background: transparent;
    color: #555;
    border: 1px solid #1a1a1a;
}
[data-theme="journal"] .age-gate-leave:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.age-gate-content {
    text-align: center;
    max-width: 420px;
    padding: 2rem;
}
.age-gate-logo {
    width: 100px;
    margin: 0 auto 2rem;
}
.age-gate-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    transition: color 0.4s ease, font-family 0.4s ease;
}
.age-gate-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    transition: color 0.4s ease;
}

/* Age gate theme switch */
.age-gate-theme-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    border: 2px solid var(--border);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    transition: border-color 0.4s ease;
}
.age-gate-theme-option {
    padding: 0.5rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    user-select: none;
}

[data-theme="dark"] .age-gate-theme-option {
    color: #8a7e74;
}
[data-theme="dark"] .age-gate-theme-option[data-theme-val="dark"] {
    background: #c41e1e;
    color: #0a0a0a;
}
[data-theme="journal"] .age-gate-theme-option {
    color: #555;
}
[data-theme="journal"] .age-gate-theme-option[data-theme-val="journal"] {
    background: #1a1a1a;
    color: #f5f0eb;
}

/* Pulse animation for theme switch demo */
@keyframes theme-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.age-gate-theme-switch.demo-pulse {
    animation: theme-pulse 0.4s ease;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.age-gate-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ---- Mentions Légales Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg);
    color: var(--text);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    border: var(--border-thin);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    line-height: 1;
}
.modal-close:hover { opacity: 1; }
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: var(--border-thin);
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.mention-block h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.mention-block p {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.mention-block a {
    color: var(--accent);
}

@media (max-width: 600px) {
    .modal { padding: 2rem 1.5rem; }
    .modal-body { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    border-top: var(--border-thin);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.footer-link {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s;
}
.footer-link:hover { opacity: 1; }

/* ---- Clickable images ---- */
.section-image img,
.explore-image img,
.portfolio-item img,
.hero-photo img {
    cursor: zoom-in;
}

/* ---- Lightbox ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.97);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 5001;
    line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 5001;
    padding: 1rem;
    line-height: 1;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

/* ---- Animations handled via JS inline styles ---- */

/* ---- Dark theme specific overrides ---- */
[data-theme="dark"] .section-explore .explore-text {
    border-left-color: #c41e1e;
}

[data-theme="dark"] .contact-email:hover {
    background: #c41e1e;
    color: #0a0a0a;
}

[data-theme="dark"] .conditions-list li {
    border-bottom-color: #2a1a1a;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 0.6rem 1rem;
        gap: 0.4rem;
    }
    .nav-links {
        gap: 0.8rem;
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0.5rem;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-link { font-size: 0.55rem; letter-spacing: 0.06em; }
    .theme-switch {
        border-width: 1.5px;
    }
    .theme-switch-option {
        padding: 0.25rem 0.6rem;
        font-size: 0.5rem;
    }

    .hero { padding: 5.5rem 1.5rem 2rem; }
    .hero-title { font-size: clamp(2.5rem, 13vw, 4.5rem); }
    .hero-subtitle { font-size: 0.85rem; }
    .hero-logo { width: 100px; }

    .section { padding: 3rem 1.5rem; }
    .section-grid { grid-template-columns: 1fr; gap: 2rem; }

    .explore-grid { grid-template-columns: 1fr; }
    .explore-text { border-left: none; border-top: var(--border-thick); }

    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item img { height: 250px; }
    .portfolio-item-wide img { height: 300px; }

    .contact-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .contact-logo { max-width: 250px; }
    .section-contact .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .hero-content { flex-direction: row; align-items: flex-start; }
    .hero-logo { width: 65px; }
    .quote { padding: 2rem; font-size: 1rem; }
    .contact-email { font-size: 0.8rem; padding: 0.8rem 1.5rem; }
}
