/* ============================
   1. TOKENS — Variables CSS
   ============================ */
:root {
    --bg-color: #eeeae2;
    --featured-container-min-h: 45svh;
    --featured-media-max-h: 50svh;
}

/* ============================
   2. FOND — Couleur de fond globale + transition nuancier
   ============================ */
body,
#portfolio-canvas,
#portfolio-single,
#portfolio-lightbox,
.ldk-page-container {
    background-color: var(--bg-color) !important;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================
   3. TYPOGRAPHIE — Couleurs & Fonts
   ============================ */
body, h1, h2, h3, p, a, div, span {
    color: #ff1400 !important;
}

body, p, a, div, span, li, h3 {
    font-family: 'Sono', sans-serif !important;
    font-weight: 300;
}

h1, h2, h4, h5, h6 {
    font-family: 'Philosopher', sans-serif !important;
}

h2 {
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: bold;
}

strong {
    font-weight: 400;
}

h2 strong {
    font-weight: bold;
}

/* ============================
   4. LISTES — Style global avec ✤
   ============================ */
ul {
    list-style: none;
    padding-left: 0;
}

li {
    position: relative;
    padding-left: 1.7em;
    margin-bottom: 1em;
}

li::before {
    content: '✤';
    position: absolute;
    left: 5px;
    top: 0;
    font-size: 1em;
}

/* ============================
   5. LAYOUT — Header
   ============================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 9000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* les clics passent à travers le fond transparent */
    pointer-events: none;
    background-color: transparent;
}

/* on réactive les clics uniquement sur les éléments cliquables */
.site-logo,
.site-nav {
    pointer-events: auto;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

/* ============================
   6. NAVIGATION
   ============================ */
.site-nav ul li::before {
    content: none;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.site-nav ul li {
    margin: 0;
    padding: 0;
}

.site-nav a {
    text-decoration: none;
    color: #ff1400;
    font-family: 'Philosopher', sans-serif !important;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

/* ============================
   7. LAYOUT — Footer
   ============================ */
footer#footer {
    position: fixed;
    bottom: 0;
    right: 40px;
    background-color: #ff1400;
    z-index: 9000;
    padding: 12px 20px;
    box-sizing: border-box;
    text-align: center;
    pointer-events: none;
    font-family: Helvetica, sans-serif;
    font-size: 12px;
    width: fit-content;
}

footer#footer > div {
    pointer-events: auto;
}

footer#footer a {
    color: var(--bg-color) !important;
    text-decoration: none;
    font-weight: 500;
}

body.single footer#footer {
    display: none !important;
}

/* ============================
   8. COMPOSANT — Theme Switcher (nuancier)
   ============================ */
.ldk-theme-switcher {
    position: fixed;
    bottom: 30px;
    left: 40px;
    display: flex;
    z-index: 90000;
    flex-direction: column;
    filter: drop-shadow(0px 0px 3px #00000026);
}

.ldk-swatch {
    width: 20px;
    height: 35px;
    cursor: crosshair;
    transition: transform 0.2s;
}

.ldk-swatch:hover {
    transform: scale(1.1);
}

/* ============================
   9. COMPOSANT — Visuels adaptatifs (dark/light bg)
   ============================ */
.visuel-adaptatif {
    filter: brightness(0);
    transition: filter 0.3s ease;
}

.is-dark-bg .visuel-adaptatif {
    filter: brightness(0) invert(1);
}

/* ============================
   10. COMPOSANT — Ombres photos
   ============================ */
.ombre-photo img {
    box-shadow: 2px 3px 4px #00000052;
}

.draggable-item.ombredroite img {
    filter: drop-shadow(3px 3px 1px #00000057);
    padding: 0 10px 10px 0;
}

.ombredroite #lb-featured-image {
    filter: drop-shadow(3px 3px 1px #00000057);
}

/* ============================
   11. COMPOSANT — Badges de catégories (partagé index + single)
   ============================ */
#lb-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-badge {
    border: 1px solid;
    border-radius: 30px;
    padding: 3px 7px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 400;
}
