: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 (même style que l'index) ===== */
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
}

/* ===== Barre top ===== */
.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)
}

/* ===== Contenu ===== */
.page {
    max-width: 980px;
    width: min(980px, 92vw);
    margin: 28px auto 48px;
    padding: 0 18px
}

h1 {
    font-size: clamp(26px, 3.2vw, 36px);
    margin: 10px 0 10px;
    line-height: 1.2
}

.lede {
    font-size: clamp(16px, 2.1vw, 19px);
    opacity: .85;
    margin: 0 0 16px;
    text-align: center;
    
}

.card {
    background: var(--soft);
    border: 2px solid var(--brand-red);
    border-radius: 20px;
    padding: 20px 22px;
}

.card p {
    margin: 0 0 12px;
    line-height: 1.6
}

.card p:last-child {
    margin-bottom: 0
}

a {
    color: inherit
}

a.link {
    color: var(--brand-red);
    text-underline-offset: 3px
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: 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;
}

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

.signature {
    margin-top: 22px;
    font-weight: 700
}

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

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