/**
 * Longform Views – Flux continu
 * - Typographie globale
 * - Fonds alternés
 * - Back-to-top
 * - Cover plein écran
 */

/* --------------------------------------------------
   Fonts
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&display=swap');

:root {

    /* Typography */
    --bs-font-sans-serif: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --font-serif-display: "Noto Serif Display", serif;

    /* Ink */
    --ink-900: rgb(3, 48, 43);
    --ink-700: rgb(32, 32, 32);
    --ink-date: color-mix(in srgb, var(--ink-900) 70%, var(--ink-700) 30%);

 
}

/* --------------------------------------------------
   Global Typography
-------------------------------------------------- */
body {
    color: var(--ink-700);
    font-family: var(--bs-body-font-family);
}

h1, .h1 {
    font-family: var(--font-serif-display);
    color: var(--ink-900);
    font-weight: 300;
    text-wrap: balance;
}

h2, h3, h4, h5, h6 {
    font-weight: 300;
}

p {
    color: var(--ink-700);
    line-height: 1.7;
}

.title {
    display: none;
}

/* Date styling */
.views-field-field-date {
    color: var(--ink-date);
    margin-bottom: 1rem;
    font-weight: 300;
}


/* --------------------------------------------------
   Back to top
-------------------------------------------------- */
.back-to-top {
    position: fixed;
    left: var(--tl-left);
    bottom: 1.5rem;

    width: var(--tl-width);
    height: 44px;
    border-radius: 999px;

    background: var(--tl-bg);
    backdrop-filter: blur(var(--tl-blur));
    -webkit-backdrop-filter: blur(var(--tl-blur));
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);

    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 1000;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .back-to-top {
        display: none;
    }
}

/* --------------------------------------------------
   Cover plein écran
-------------------------------------------------- */
.longform-cover {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.longform-cover.m-md-3 {
    margin: 0 !important;
}

@supports (height: 100svh) {
    .longform-cover {
        min-height: 100svh;
    }
}

