/* ------------------------------ */
/*           theme.css            */
/* ------------------------------ */
/* ------------------------------
   Custom Font — Aubrey (Elegant Serif)
------------------------------ */
@font-face {
    font-family: 'Aubrey';
    src: url('../fonts/Aubrey-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    /* Performance optimization */
}

/* ------------------------------
   Tokens (design system)
------------------------------ */
:root {
    --bg: #0a0a0a;
    /* fond noir profond */
    --fg: #e6e6e6;
    /* texte principal */
    --muted: #9a9a9a;
    /* texte secondaire */
    --accent: #b31217;
    /* rouge carmin */
    --accent-2: #6e0f13;
    /* sang séché */
    --line: #141414;
    /* séparateurs */
    --radius: 14px;
    --w: 1180px;
    --gap: 16px;
    --step--1: 1rem;
    /* taille de police de base */
}

/* ------------------------------
   About (titre serif + lede + 2 colonnes + divider)
------------------------------ */
.about-title {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    /* fallback serif */
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    line-height: 1.1;
    letter-spacing: .03em;
    margin: 0 0 1rem;
}

.about-lede {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: clamp(1rem, 1.2vw + .9rem, 1.25rem);
    line-height: 1.95;
    letter-spacing: .06em;
    /* rendu “spacieux” */
    color: #dcdcdc;
    /* léger contraste vs body */
    max-width: 1100px;
    margin: .5rem 0 1.8rem;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    max-width: 1100px;
}

.about-columns p {
    color: var(--muted);
    line-height: 1.9;
    margin: 0 0 1rem
}

.about-divider {
    border: 0;
    height: 1px;
    margin: 2rem 0 0;
    background: linear-gradient(to right, transparent, #2a2a2a, transparent);
}

/* ------------------------------
   Socials (Font Awesome) palette maison
------------------------------ */
.socials {
    display: flex;
    gap: 0.2em;
    flex-wrap: wrap
}

.socials a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .8rem;
    color: var(--fg);
    transition: background-color .2s, border-color .2s, color .2s;
}

.socials a i {
    font-size: 1.1rem;
    color: var(--fg);
    opacity: .9
}

.socials a:hover {

    border-color: var(--accent);
    color: var(--fg);
}

.socials a:hover i {
    color: var(--accent);
    transform: scale(1.1);
    transition: transform .2s ease;
}


/* Size modifiers */
.socials.socials-sm a {
    padding: .3rem .6rem;
}

.socials.socials-sm a i {
    font-size: .9rem;
}

.socials.socials-lg a {
    padding: .8rem 1.2rem;
}

.socials.socials-lg a i {
    font-size: 1.4rem;
}

.socials.socials-xl a {
    padding: 1rem 1.5rem;
}

.socials.socials-xl a i {
    font-size: 1.8rem;
}

.music-preview-img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--line);
    box-shadow: 0 0 15px rgba(204, 31, 31, 0.5);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.music-preview {
    padding-top: 2rem;
    padding-bottom: 2rem;
}


/* ------------------------------ */
/*           body.css             */
/* ------------------------------ */

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html:focus-within {
    scroll-behavior: smooth
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 70% -10%, rgba(179, 18, 23, .15), transparent 60%),
        var(--bg);
    color: var(--fg);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--fg);
    text-decoration: none
}

a:hover {
    color: var(--accent)
}

::selection {
    background: rgba(179, 18, 23, .35)
}

/* Typographie — Titres avec police custom Aubrey */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Accessibilité */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Utils layout */
.container {
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 20px
}

.section {
    padding: 1.5rem 0
}

.grid {
    display: grid;
    gap: var(--gap)
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.muted {
    color: var(--muted)
}


/* ------------------------------
   Cards / frames
------------------------------ */
.card {
    background: #0f0f10;
    border: 1px solid #151516;
    border-radius: var(--radius);
    overflow: hidden;
}

.img-frame {
    border: 1px solid #151516;
    border-radius: var(--radius);
    overflow: hidden;
}

/* ----- Fullscreen responsive background ----- */
.bg-image {
    position: fixed;
    inset: 0;
    z-index: -1;
    /* derrière tout le contenu */
    pointer-events: none;
    /* aucun clic capturé */
}

.bg-image picture,
.bg-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.bg-image img {
    object-fit: cover;
    /* couvre tout l’écran */
    filter: brightness(0.85);
    /* assombrit légèrement l’image */
}

/* Voile/gradient maison par-dessus l’image (vignette + carmin) */
.bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 70% -10%, rgba(179, 18, 23, .15), transparent 60%),
        linear-gradient(0deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .25));
    pointer-events: none;
}



/* ------------------------------
   A11y helpers
------------------------------ */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container.section {
    padding-top: 15rem;
}



/* ------------------------------
   Artworks preview
------------------------------ */

.artworks_preview {
    width: 80%;
    height: auto;
    max-width: 1024px;
    margin: 0 auto;
    align-items: center;
    padding-bottom: 5rem;
}

/* ------------------------------ */
/*         boutons.css            */
/* ------------------------------ */
/* ------------------------------
   Boutons
------------------------------ */
.btn {
    display: inline-block;
    padding: .75rem 1.1rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    transition: filter .15s, transform .06s;
    will-change: filter, transform;
}

.btn:active {
    transform: translateY(1px)
}

.btn-accent {
    background: var(--accent-2);
    border-color: var(--accent-2)
}

.btn-accent:hover {
    filter: brightness(1.12);
    transform: scale(1.05);
}

/* Bouton encadré + souligné */
.btn-outline {
    display: inline-block;
    padding: .7rem 1.2rem;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    background: transparent;
    color: var(--fg);
    text-decoration: none;
    transition: border-color .2s, background-color .2s, color .2s, filter .2s;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(179, 18, 23, .10);
    color: var(--fg);
    transform: scale(1.05);
    animation-duration: transform .4s;
}


/* ------------------------------ */
/*          footer.css            */
/* ------------------------------ */
/* ------------------------------
   Footer
------------------------------ */
.footer {
    margin-top: 4rem;
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mobile: icônes au-dessus du copyright */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* ------------------------------ */
/*          header.css            */
/* ------------------------------ */

/* ------------------------------
   Header / Navigation
------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, background-color .25s ease;
    /* patch */
}

.site-header.scrolled {
    /* background: rgba(10,10,10,.92);          /* patch */
    box-shadow: 0 8px 24px rgba(0, 0, 0, .6),
        0 1px 0 rgba(255, 255, 255, .04) inset;
    /* patch */
}


.top_black_leak {
    position: absolute;
    top: 100%;
    /* Position it just below the header */
    left: 0;
    width: 100%;
    z-index: 10;
    /* Ensure it's above other content but below the header */
}

.top_black_leak img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 2rem;
    /* Horizontal padding for full-width layout */
    max-width: none;
    /* Remove container max-width constraint */
    width: 100%;
    /* Full viewport width */
    position: relative;
    /* For absolute positioning of nav-links */
}

/* Brand (logo) */
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    letter-spacing: 2px;
    font-weight: 700
}

.brand img {
    display: block;
    height: auto;
    max-width: 180px
}


/* Liens nav (desktop) */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    padding: .2rem .1rem;
    text-transform: uppercase;
}

/* Sélecteur de langue (drapeaux) */
.lang-selector {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: 1rem
}

.lang-flag {
    width: 24px;
    height: 24px;
    display: inline-block;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid transparent;
    opacity: .9;
    transition: transform .12s, border-color .2s, opacity .2s, box-shadow .2s;
}

.lang-flag:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    opacity: 1
}

.lang-flag.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(179, 18, 23, .25)
}

/* Bouton hamburger (mobile) */
#hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0f0f10;
    color: var(--fg);
    align-items: center;
    justify-content: center;
}

#hamburger-btn i {
    font-size: 1.1rem
}

#hamburger-btn:focus-visible {
    outline: 2px solid var(--accent)
}

/* ------------------------------ */
/*       mobile_menu.css          */
/* ------------------------------ */
/* ------------------------------
   Menu mobile (drawer) — PATCH ANIM
------------------------------ */
.mobile-menu {
    /* remplace l'ancien display:none/block pour permettre l'animation */
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    pointer-events: none;
    border-top: 1px solid var(--line);
    background: #0a0a0a;
    padding: 1rem 20px;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    will-change: opacity, transform;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.mobile-menu nav a {
    display: block;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-menu nav a:last-child {
    border-bottom: 0
}

.lang-selector-mobile {
    display: flex;
    gap: .6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.lang-selector-mobile .lang-flag {
    width: 28px;
    height: 28px
}

/* Overlay (assombrit le fond quand menu ouvert) — PATCH */
#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility 0s linear .22s;
}

#menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* ------------------------------ */
/*      organic_bottom.css        */
/* ------------------------------ */

/* ---------- Organic ground vines (bottom decorative strip) ---------- */
.ground-vines {
    position: fixed;
    /* reste collé à la fenêtre, n'étire pas la page */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    /* décoratif */
    transform: translateY(40%);
    will-change: transform;
}

.ground-vines picture,
.ground-vines img {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------------------ */
/*        responsive.css          */
/* ------------------------------ */
/* =========================================================
   Responsive stylesheet — TenebraeCorpus
   - Breakpoints: 980px / 900px / 600px
   - Motion/Print handling
   - SoundCloud slider (mobile tuning)
   - Footer centering on mobile
   ========================================================= */

/* ---------------------------------
   Light color scheme override
-----------------------------------*/
@media (prefers-color-scheme: light) {
    :root {
        --bg: #0e0e10;
        --fg: #f3f3f3;
        /* keep other vars from base theme (e.g. --line, --muted, --accent) */
    }
}

/* ---------------------------------
   ≤ 980px
   - Grids / shop layout
-----------------------------------*/
@media (max-width: 980px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------
   ≤ 900px
   - Navigation simplification
   - About columns
   - Section spacing
   - SoundCloud slider refinements
-----------------------------------*/
@media (max-width:900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .lang-selector {
        display: none;
    }

    #hamburger-btn {
        display: inline-flex;
    }

    .about-columns {
        grid-template-columns: 1fr;
    }

    .container.section {
        padding-top: 5rem;
    }

    /* SoundCloud slider (compact & readable) */
    .sc-slider {
        margin: 28px auto;
        padding: 0 12px;
    }

    .soundcloud-wrapper {
        border-width: 1px;
        box-shadow: 0 0 12px rgba(204, 31, 31, 0.35);
        border-radius: 10px;
    }

    .sc-meta {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* ---------------------------------
   ≤ 600px
   - Branding
   - SoundCloud slider: touch targets, density
   - Footer: stacked + centered
   - Prevent horizontal scroll
-----------------------------------*/
@media (max-width:650px) {

    /* Prevent horizontal overflow on mobile */
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        max-width: 100vw;
    }

    /* Ensure all containers respect viewport width */
    *:not(.back-to-top):not(.lightbox):not(.lightbox *):not([style*="position: fixed"]) {
        max-width: 100%;
    }

    .container {
        max-width: 100%;
    }

    /* Branding */
    .brand img {
        max-width: 140px;
    }

    /* SoundCloud: keep visual ratio but a bit shorter */
    .soundcloud-wrapper {
        padding-top: 60%;
    }

    /* instead of 56.25% */

    /* Controls row with large touch targets (≥44px) */
    .sc-controls {
        display: grid;
        /* ensure grid if not already set */
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        margin-top: 10px;
    }

    .sc-btn {
        padding: 10px 14px;
        min-width: 44px;
        min-height: 44px;
        font-size: 14px;
    }

    /* Bigger dots, thumb-friendly spacing */
    .sc-dots {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .sc-dot {
        width: 11px;
        height: 11px;
    }

    /* Metadata: slightly smaller + safe wrapping */
    .sc-meta {
        font-size: 12px;
        padding: 2px 4px;
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Optional: full‑bleed player
     Add data-edge="true" on <section class="sc-slider"> */
    .sc-slider[data-edge="true"] {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Footer: stack + center */
    .footer-inner {
        display: flex;
        /* keep flex to stack children */
        flex-direction: column;
        /* socials + copyright stacked */
        align-items: center;
        /* horizontal centering */
        text-align: center;
        /* text centering */
        gap: .5rem;
    }

    .footer .socials {
        justify-content: center;
        /* center icons row */
        gap: .6em;
        /* slightly larger spacing for touch */
        flex-wrap: wrap;
        /* wrap if needed on small widths */
    }

    .footer .copyright,
    .footer p {
        margin: .5rem 0 0;
        text-align: center;
    }
}

/* ---------------------------------
   Motion preferences
-----------------------------------*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .mobile-menu {
        transform: none !important;
    }

    #menu-overlay {
        transition: none;
    }

    .site-header {
        transition: none;
    }

    /* Any decorative motion elements */
    .ground-vines {
        transform: none !important;
    }
}

/* ---------------------------------
   Print styles
-----------------------------------*/
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .footer {
        border: 0;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ------------------------------ */
/*           shop.css             */
/* ------------------------------ */
/* ---------- Shop cards (Gumroad / INPRNT) ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

/* Mobile: une seule colonne */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

.shop-card {
    background: #0f0f10;
    border: 1px solid #151516;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Bandeau image */
.shop-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 3;
    /* strip panoramique */
    object-fit: cover;
}

/* Corps clair comme sur ta capture */
.shop-body {
    background: #121314;
    /* léger contraste vs header */
    padding: 2rem 1.6rem 2.2rem;
    text-align: center;
}

.shop-title {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    letter-spacing: .18em;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    margin: .6rem 0 .4rem;
    text-transform: uppercase;
    color: var(--fg);
}

.shop-sub {
    color: var(--muted);
    letter-spacing: .06em;
    margin: 0 0 1.2rem;
}

/* ------------------------------ */
/*          contact.css           */
/* ------------------------------ */
/* ─────────────────────────────────────────
   TenebraeCorpus — Contact Section
   ───────────────────────────────────────── */

/* Section contact */
.contact-section {
    padding: 2rem 0;
    text-align: center;
}

.contact-section h2 {
    margin: 0 0 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color, #e0e0e0);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Wrapper du lien */
.contact-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* Lien email stylisé */
.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-email-link:hover::before {
    left: 100%;
}

.contact-email-link:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-email-link:active {
    transform: translateY(-1px);
}

/* Icône envelope */
.contact-email-link i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.contact-email-link:hover i {
    transform: scale(1.1) rotate(-10deg);
}

/* Texte email */
.email-text {
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .contact-email-link {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }

    .contact-email-link i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-email-link {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        width: 90%;
    }

    .email-text {
        word-break: break-all;
    }
}

/* Respecte reduced motion */
@media (prefers-reduced-motion: reduce) {

    .contact-email-link,
    .contact-email-link i,
    .contact-email-link::before {
        transition: none !important;
    }

    .contact-email-link:hover {
        transform: none;
    }
}

/* ─────────────────────────────────────────
   Contact Form Styles
   ───────────────────────────────────────── */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color, #e0e0e0);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
}

.form-status:not(:empty) {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive form */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .contact-form button[type="submit"] {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1rem 0.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact-form button[type="submit"] {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Respecte reduced motion pour le formulaire */
@media (prefers-reduced-motion: reduce) {

    .form-group input,
    .form-group textarea {
        transition: none !important;
    }
}

/* ------------------------------ */
/*        soundcloud.css          */
/* ------------------------------ */
.sc-slider {
    max-width: 900px;
    margin: 40px auto;
    color: #ccc;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.soundcloud-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border: 2px solid #cc1f1f;
    box-shadow: 0 0 18px rgba(204, 31, 31, 0.45);
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.soundcloud-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sc-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.sc-btn {
    justify-self: start;
    background: #0f0f0f;
    color: #e1e1e1;
    border: 1px solid #2a2a2a;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}

.sc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    border-color: #3a3a3a;
}

.sc-btn:active {
    transform: translateY(0);
}

.sc-next {
    justify-self: end;
}

.sc-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.sc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #555;
    border: 1px solid #777;
    cursor: pointer;
    transition: transform .1s ease, background .2s ease;
}

.sc-dot:hover {
    transform: scale(1.15);
}

.sc-dot.active {
    background: #cc1f1f;
    border-color: #cc1f1f;
    box-shadow: 0 0 12px rgba(204, 31, 31, .7);
}

.sc-meta {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #bdbdbd;
    opacity: .95;
}

.sc-meta a {
    color: #cc1f1f;
    text-decoration: none;
}

.sc-meta a:hover {
    text-decoration: underline;
}

/* ------------------------------ */
/*         carousel.css           */
/* ------------------------------ */
/* Gallery Carousel 3D Styles */

.gallery-carousel {
    padding: 6rem 0;
    overflow: hidden;
    /* Prevent horizontal scrollbar during rotation */
}

.gallery-carousel .container {
    background: linear-gradient(to top, #380406 0%, transparent 70%);
    padding: 4rem 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.gallery-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem !important;
    color: var(--fg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(179, 18, 23, 0.4);
}

.carousel-3d-viewport {
    position: relative;
    width: 550px;
    height: 420px;
    margin: 0 auto;
    perspective: 1500px;
    /* Essential for 3D effect */
}

.carousel-3d-spinner {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    /* Ease-out quart for smooth spin */
}

.carousel-3d-spinner img {
    position: absolute;
    width: 550px;
    height: 380px;
    left: 0;
    top: 0;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: none;
    background: transparent;
    border: none;
    /* Backface visibility: hidden if we want to hide back items, but visible is usually better for cylinder */
    backface-visibility: hidden;
    cursor: pointer;
    /* transition: transform handled by JS for scale, but transition here for filter/other */
    transition: filter 0.3s ease, opacity 0.8s ease;
}

.carousel-3d-spinner img:hover {
    transform: scale(1.05) translateZ(10px);
    /* Pop out slightly on hover */
    border-color: var(--accent);
    filter: brightness(1.1);
    z-index: 10;
}

/* Controls */
.carousel-3d-controls {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    z-index: 5;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-instruction {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .carousel-3d-viewport {
        width: 260px;
        height: 200px;
    }

    .carousel-3d-spinner img {
        width: 260px;
        height: 180px;
    }

    .carousel-3d-controls {
        gap: 1.5rem;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.lightbox-content img.dragging {
    cursor: grabbing;
}

.lightbox-zoom-info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.lightbox.active .lightbox-zoom-info {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    70% {
        opacity: 1;
    }
}

/* Cursor hint for clickable images */
.carousel-slide img {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-slide img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.carousel-slide img:active {
    transform: scale(0.98);
}

/* Mobile specific lightbox styles */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .lightbox-content {
        width: 95%;
        height: 95%;
    }

    .lightbox-zoom-info {
        bottom: 20px;
        font-size: 0.85rem;
    }
}

/* ------------------------------ */
/*         paintings.css          */
/* ------------------------------ */
/* ─────────────────────────────────────────
   TenebraeCorpus — Paintings Gallery
   ───────────────────────────────────────── */

.paintings-section {
    padding: 2rem 0;
}

.paintings-section h2 {
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color, #e0e0e0);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Grid de produits */
.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Carte produit */
.painting-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.painting-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Image wrapper */
.painting-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
}

/* Status badge */
.painting-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease;
}

.painting-status.available {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.painting-status.sold {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.painting-image-wrapper:hover .painting-status {
    transform: scale(1.05);
}

.painting-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.painting-image-wrapper:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Overlay pour indiquer que c'est cliquable */
.painting-image-wrapper::after {
    content: '\f00e';
    /* Font Awesome search-plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.painting-image-wrapper:hover::after {
    opacity: 1;
}

/* Contenu de la carte */
.painting-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.painting-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
    letter-spacing: 0.05em;
}

.painting-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent, #b31217);
    margin: 0;
}

.painting-dimensions {
    font-size: 0.9rem;
    color: var(--muted, #9a9a9a);
    margin: 0;
    font-style: italic;
}

.painting-medium {
    font-size: 0.9rem;
    color: var(--muted, #9a9a9a);
    margin: 0;
    font-style: italic;
}

/* Bouton contact */
.painting-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* Cache le bouton contact et le prix pour les peintures vendues */
.painting-card.sold .painting-contact-btn,
.painting-card.sold .painting-price {
    display: none;
}

.painting-contact-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.painting-contact-btn:active {
    transform: translateY(0);
}

.painting-contact-btn i {
    font-size: 1rem;
}

/* Lightbox pour peintures (réutilise le style existant mais avec un ID différent) */
#paintings-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#paintings-lightbox.active {
    display: flex;
    opacity: 1;
}

.paintings-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.paintings-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.paintings-lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.paintings-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.paintings-lightbox-content img.dragging {
    cursor: grabbing;
}

/* Info produit dans lightbox */
.paintings-lightbox-info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 12px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.paintings-lightbox-info .painting-name {
    font-size: 1.5rem;
    margin: 0;
}

.paintings-lightbox-info .painting-price {
    font-size: 1.75rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .paintings-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .paintings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .painting-info {
        padding: 1rem;
    }

    .painting-name {
        font-size: 1.1rem;
    }

    .painting-price {
        font-size: 1.25rem;
    }

    .painting-status {
        top: 8px;
        right: 8px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .paintings-lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .paintings-lightbox-content {
        width: 95%;
        height: 95%;
    }

    .paintings-lightbox-info {
        bottom: 20px;
        padding: 0.75rem 1.5rem;
    }

    .paintings-lightbox-info .painting-name {
        font-size: 1.2rem;
    }

    .paintings-lightbox-info .painting-price {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .paintings-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .painting-contact-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Respecte reduced motion */
@media (prefers-reduced-motion: reduce) {

    .painting-card,
    .painting-image-wrapper img,
    .painting-contact-btn,
    .paintings-lightbox-close {
        transition: none !important;
    }

    .painting-card:hover,
    .painting-contact-btn:hover {
        transform: none;
    }

    .painting-image-wrapper:hover img {
        transform: none;
    }
}

/* ------------------------------ */
/*      image-protection.css      */
/* ------------------------------ */
/* ─────────────────────────────────────────
   TenebraeCorpus — Image Protection (CSS)
   Protection visuelle et UX pour empêcher la copie
   ───────────────────────────────────────── */

/* Protection UNIQUEMENT pour les images de contenu (galerie, peintures) */
/* NE PAS appliquer sur toutes les images pour ne pas bloquer les UI (logo, drapeaux, etc.) */

/* Empêcher le drag & drop sur les images de galerie et peintures */
.carousel-image img,
.painting-image-wrapper img,
.lightbox-content img,
.gallery img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Overlay invisible sur les images pour bloquer les interactions */
.image-protected {
    position: relative;
    display: inline-block;
}

.image-protected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    cursor: default;
}

/* Pas besoin de dupliquer, déjà défini ci-dessus */

/* Message discret au survol (optionnel) */
img[data-protected="true"]:hover::after {
    content: attr(data-copyright);
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 3px;
    pointer-events: none;
    opacity: 0.8;
}

/* Watermark subtil en overlay (optionnel) */
.image-watermark {
    position: relative;
}

.image-watermark::after {
    content: '© TenebraeCorpus';
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* ------------------------------ */
/*        back-to-top.css         */
/* ------------------------------ */
/* ------------------------------
   Back to Top Button
------------------------------ */

.back-to-top {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 50px !important;
    height: 50px;
    max-width: none !important;
    background: rgba(179, 18, 23, 0.9);
    border: 2px solid rgba(179, 18, 23, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(179, 18, 23, 0.4);
}

.back-to-top i {
    color: var(--fg);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* Animation when scrolling */
.back-to-top.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top i {
        font-size: 1.1rem;
    }
}

/* Accessibility */
.back-to-top:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* ------------------------------ */
/*           blog.css             */
/* ------------------------------ */
/* ------------------------------
   Blog Page Styles
------------------------------ */

/* Blog Header */
.blog-header {
    padding: 8rem 0 3rem;
    text-align: center;
}

.blog-main-title {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin: 0 0 1rem;
    color: var(--fg);
}

.blog-subtitle {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 2rem 0 4rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Blog Card */
.blog-card {
    background: rgba(15, 15, 16, 0.8);
    border: 1px solid #1a1a1b;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-2);
    box-shadow: 0 8px 25px rgba(179, 18, 23, 0.15);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0a0a;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.85) contrast(1.1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
    filter: brightness(0.95) contrast(1.15);
}

/* Blog Tags */
.blog-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.9rem;
    background: rgba(179, 18, 23, 0.9);
    color: var(--fg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.blog-tag-completed {
    background: rgba(40, 140, 60, 0.9);
}

.blog-tag-process {
    background: rgba(180, 120, 30, 0.9);
}

.blog-tag-inspiration {
    background: rgba(100, 60, 180, 0.9);
}

.blog-tag-update {
    background: rgba(30, 120, 180, 0.9);
}

.blog-tag-thoughts {
    background: rgba(140, 140, 140, 0.9);
}

/* Blog Card Content */
.blog-card-content {
    padding: 1.8rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.blog-date i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.blog-card-title {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 0 0 0.8rem;
    color: var(--fg);
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent);
}

.blog-card-excerpt {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Read More Link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: gap 0.3s ease, color 0.2s ease;
    margin-top: auto;
}

.blog-read-more:hover {
    gap: 0.8rem;
    color: var(--fg);
}

.blog-read-more i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0 1rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: rgba(15, 15, 16, 0.8);
    border: 1px solid #1a1a1b;
    border-radius: 8px;
    color: var(--fg);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(179, 18, 23, 0.1);
    border-color: var(--accent-2);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.pagination-btn i {
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 6rem 0 2rem;
    }

    .blog-card-content {
        padding: 1.5rem 1.2rem 1.8rem;
    }

    .blog-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Active nav link for blog page */
.nav-links a.active {
    color: var(--accent);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.mobile-menu a.active {
    color: var(--accent);
    font-weight: 600;
}

/* ------------------------------ */
/*       blog-article.css         */
/* ------------------------------ */
/* ------------------------------
   Blog Article Page Styles
------------------------------ */

/* Breadcrumb */
.article-breadcrumb {
    padding: 7rem 0 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.back-link:hover {
    color: var(--accent);
    gap: 0.8rem;
}

.back-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* Article Container */
.article-content {
    padding: 2rem 0 4rem;
}

.article-container {
    max-width: 900px;
}

/* Article Header */
.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(179, 18, 23, 0.9);
    color: var(--fg);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.article-tag.tag-completed {
    background: rgba(40, 140, 60, 0.9);
}

.article-tag.tag-process {
    background: rgba(180, 120, 30, 0.9);
}

.article-tag.tag-inspiration {
    background: rgba(100, 60, 180, 0.9);
}

.article-tag.tag-update {
    background: rgba(30, 120, 180, 0.9);
}

.article-tag.tag-thoughts {
    background: rgba(140, 140, 140, 0.9);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.article-date i {
    opacity: 0.8;
}

.article-title {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--fg);
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #1a1a1b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

/* Article Body */
.article-body {
    font-family: "EB Garamond", Garamond, Georgia, serif;
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: #dcdcdc;
    margin-bottom: 3rem;
}

.article-body p {
    margin: 0 0 1.5rem;
}

.article-body h2 {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 2.5rem 0 1.2rem;
    color: var(--fg);
}

.article-body h3 {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 2rem 0 1rem;
    color: var(--fg);
}

.article-body h4 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin: 1.5rem 0 0.8rem;
    color: var(--fg);
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(179, 18, 23, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--muted);
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--muted);
}

.article-body li {
    margin: 0.5rem 0;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: var(--fg);
}

.article-body img {
    width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: var(--radius);
    border: 1px solid #1a1a1b;
}

.article-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #2a2a2a, transparent);
    margin: 2.5rem 0;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1b;
}

.article-share {
    margin-bottom: 2rem;
}

.article-share h3 {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
    color: var(--fg);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(15, 15, 16, 0.8);
    border: 1px solid #1a1a1b;
    border-radius: 8px;
    color: var(--fg);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(179, 18, 23, 0.1);
}

.share-btn i {
    transition: transform 0.3s ease;
}

.share-btn:hover i {
    transform: scale(1.1);
}

.share-copy.copied {
    background: rgba(40, 140, 60, 0.2);
    border-color: rgba(40, 140, 60, 0.5);
}

.share-copy.copied i::before {
    content: "\f00c";
}

/* Article Tags */
.article-tags-list {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.article-topic-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #1a1a1b;
    border-radius: 20px;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.article-topic-tag:hover {
    background: rgba(179, 18, 23, 0.1);
    border-color: var(--accent-2);
    color: var(--fg);
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
}

.related-articles h2 {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 0 0 2rem;
    color: var(--fg);
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-card {
    background: rgba(15, 15, 16, 0.8);
    border: 1px solid #1a1a1b;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-2);
    box-shadow: 0 8px 25px rgba(179, 18, 23, 0.15);
}

.related-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0a0a;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.85);
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

.related-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.related-card-title {
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    color: var(--fg);
    transition: color 0.2s ease;
}

.related-card:hover .related-card-title {
    color: var(--accent);
}

.related-card-date {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .article-breadcrumb {
        padding: 5rem 0 1rem;
    }

    .article-header {
        margin-bottom: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .article-featured-image {
        margin-bottom: 2rem;
    }

    .article-body {
        font-size: 1.05rem;
    }

    .article-body blockquote {
        padding: 1rem 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------ */
/*          error404.css          */
/* ------------------------------ */
/* ─────────────────────────────────────────
   TenebraeCorpus — 404 Error Page
   ───────────────────────────────────────── */

/* Error Container */
.error-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Error Code */
.error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: var(--accent, #b31217);
    text-shadow: 0 0 20px rgba(179, 18, 23, 0.5);
    letter-spacing: 0.05em;
}

/* Error Title */
.error-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: 'Aubrey', 'EB Garamond', Garamond, Georgia, serif;
    margin: 1rem 0;
    color: var(--text-color, #e0e0e0);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Error Message */
.error-message {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted, #9a9a9a);
    max-width: 600px;
    margin: 1.5rem auto;
    line-height: 1.6;
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Error Buttons */
.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent, #b31217);
    color: var(--accent, #b31217);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 18, 23, 0.3);
}

.error-btn:active {
    transform: translateY(0);
}

.error-btn.primary {
    background: var(--accent, #b31217);
    border-color: var(--accent, #b31217);
    color: #fff;
}

.error-btn.primary:hover {
    background: rgba(179, 18, 23, 0.8);
    color: #fff;
    border-color: var(--accent, #b31217);
}

/* Error Icon */
.error-icon {
    font-size: 4rem;
    color: var(--accent, #b31217);
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Background for 404 page */
.bg-image-404 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
        url('../images/bg.jpg') center/cover no-repeat fixed;
}

/* Responsive */
@media (max-width: 768px) {
    .error-container {
        min-height: 70vh;
        padding: 1.5rem;
    }

    .error-icon {
        font-size: 3rem;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .error-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Respecte reduced motion */
@media (prefers-reduced-motion: reduce) {
    .error-btn {
        transition: none !important;
    }

    .error-btn:hover {
        transform: none;
    }

    .error-btn:active {
        transform: none;
    }
}