/* ============================================
   WAB. — Page WORK (réalisations)
   Réutilise les tokens globaux de style.css
   (couleurs, polices, easings).
   Lié APRÈS style.css dans work.html.
   Inspiration : liste éditoriale type redondo.design
   — rangées pleine largeur, méta en colonne,
   numérotation géante en filigrane.
   ============================================ */

.accent {
    color: var(--accent);
}

.section-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: clamp(28px, 4vw, 56px);
}

.meta-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
    vertical-align: middle;
}

/* ============================================
   1. HERO — déclaration typographique
   ============================================ */
.work-hero {
    padding: clamp(140px, 22vh, 220px) 0 clamp(48px, 7vw, 96px);
}

.work-hero__label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: clamp(20px, 3vw, 36px);
    opacity: 0;
}

.work-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.8vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.04;
    color: var(--text);
    max-width: 1200px;
}

.work-hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.work-hero__line-inner {
    display: block;
    transform: translateY(112%);
}

.work-hero__meta {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: var(--text-muted);
    margin-top: clamp(20px, 3vw, 36px);
    opacity: 0;
}

/* ============================================
   2. LISTE DES PROJETS — rangées éditoriales
   ============================================ */
.work-item {
    position: relative;
    border-top: 1px solid var(--border);
    padding: clamp(48px, 7vw, 110px) 0;
    /* « clip » rogne le filigrane comme « hidden »,
       mais sans casser le sticky de la colonne méta */
    overflow: hidden;
    overflow: clip;
}

/* Numérotation géante en filigrane — l'élément signature */
.work-item__watermark {
    position: absolute;
    top: clamp(8px, 1.5vw, 24px);
    right: -0.06em;
    font-family: var(--font-display);
    font-size: clamp(7rem, 22vw, 20rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.8;
    color: color-mix(in srgb, var(--text) 4%, transparent);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.work-item__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 3vw, 40px);
}

/* ── Colonne méta ── */
.work-item__index {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 10px;
}

.work-item__type {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 20px;
}

.work-item__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tag {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    color: var(--text-muted);
}

/* ── Colonne contenu ── */
.work-item__media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    margin-bottom: clamp(20px, 3vw, 36px);
}

.work-item__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.8s var(--ease);
}

.work-item__media:hover img {
    transform: scale(1.04);
}

.work-item__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: clamp(12px, 1.5vw, 18px);
}

.work-item__desc {
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.work-item__details-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.work-item__list {
    list-style: none;
    max-width: 640px;
    margin-bottom: clamp(28px, 4vw, 40px);
}

.work-item__list li {
    position: relative;
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid var(--border);
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    color: var(--text);
    line-height: 1.55;
}

.work-item__list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
}

.work-item__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.work-item__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-strong);
    transition: background 0.3s ease;
}

.work-item__link svg {
    transition: transform 0.4s var(--ease);
}

.work-item__link:hover {
    color: var(--accent);
}

.work-item__link:hover::after {
    background: var(--accent);
}

.work-item__link:hover svg {
    transform: translate(3px, -3px);
}

/* ============================================
   3. CTA
   ============================================ */
.work-cta {
    border-top: 1px solid var(--border);
    padding: clamp(56px, 8vw, 120px) 0;
}

.work-cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin-bottom: clamp(36px, 5vw, 64px);
}

/* ============================================
   RESPONSIVE — enrichissement desktop
   ============================================ */
@media (min-width: 900px) {
    .work-item__grid {
        grid-template-columns: 300px 1fr;
        gap: clamp(48px, 6vw, 96px);
    }

    /* La colonne méta accompagne la lecture */
    .work-item__meta {
        position: sticky;
        top: 120px;
        align-self: start;
    }
}

/* ── Touch : pas d'états hover persistants ── */
@media (hover: none) {
    .work-item__media:hover img {
        transform: none;
    }

    .work-item__link:hover {
        color: var(--text);
    }

    .work-item__link:hover::after {
        background: var(--border-strong);
    }

    .work-item__link:hover svg {
        transform: none;
    }
}
