:root {
    --brand-red: #E10600;
    --ink: #111;
    --paper: #fff;
    --soft: #f6f6f6
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100svh;
    display: flex;
    flex-direction: column
}

/* View Transitions (cohérent avec autres pages) */
main {
    view-transition-name: page
}

::view-transition-old(page) {
    animation: page-out .60s ease both;
    transform-origin: 50% 60%
}

::view-transition-new(page) {
    animation: page-in .80s ease both;
    transform-origin: 50% 40%
}

@keyframes page-out {
    from {
        opacity: 1;
        transform: scale(1);
        filter: blur(0)
    }

    to {
        opacity: 0;
        transform: scale(.98);
        filter: blur(2px)
    }
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: scale(1.04);
        filter: blur(6px)
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0)
    }
}

.no-vt main {
    transition: opacity .25s ease
}

.no-vt .leaving main {
    opacity: 0
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
    border-bottom: none;
    backdrop-filter: saturate(120%) blur(2px);
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 24px;
    pointer-events: none;
    background-image: url('../img/bonhommes_noir.png');
    background-repeat: repeat-x;
    background-position: bottom left;
    margin-bottom: -12px;
    background-size: auto 24px;
}

@media (min-width: 768px) {
    body {
        background:
            url('../img/bonhommes_noir.png') center center / contain no-repeat,
            var(--paper);
    }

    .topbar {
        border-bottom: 1px solid rgba(17, 17, 17, .15);
    }

    .topbar::after {
        display: none;
    }
}

.topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px dashed var(--brand-red);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease
}

.back:hover {
    transform: translateY(-2px);
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 10px 22px rgba(225, 6, 0, .18)
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-red)
}

/* ===== Hero avec image et overlay ===== */
.hero {
    position: relative;
    width: min(1000px, 94vw);
    height: min(600px, 94vw);
    margin: 28px auto 38px;
    aspect-ratio: 16/8.6;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--brand-red)
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Léger flou + teinte rouge directement sur l'image */
    filter: blur(1px)
        sepia(.35)
        hue-rotate(-12deg)
        saturate(180%)
        brightness(.98);
    /* Légère mise à l'échelle pour éviter les bords visibles dus au flou */
    transform: scale(1.02);
}


.card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    right: 24px;
    max-width: 560px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(6px) saturate(140%);
    color: #fff;
    z-index: 2;
    user-select: text;

}

.name {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin: 0 0 4px
}

.role {
    margin: 0 0 12px;
    opacity: .9
}

.info {
    display: grid;
    gap: 6px;
    grid-template-columns: auto 1fr;
    align-items: center
}

.info dt {
    opacity: .85
}

.info a {
    color: #fff;
    text-underline-offset: 3px
}

.below {
    max-width: 980px;
    width: min(980px, 92vw);
    margin: 0 auto 42px;
    padding: 0 6px
}

.below .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid var(--brand-red);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease
}

.below .btn:hover {
    background: var(--brand-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(225, 6, 0, .18)
}

footer {
    margin: 10px 0 26px;
    text-align: center;
    color: #666;
    font-size: 14px
}

@media (max-width:720px) {
    .topbar::after {
        content: none;
    }

    .hero {
        /* Plus fine et plus longue sur mobile */
        width: 86vw;
        height: 150vw;
        aspect-ratio: auto;
    }

    .hero img {
        object-position: right -50%;
    }

    .card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px 14px
    }

    .info {
        grid-template-columns: 1fr;
    }

    .info dt {
        display: none
    }
}
