:root {
    --brand-red: #E10600;
    --ink: #111;
    --paper: #fff;
    --soft: #f6f6f6;
    --size: clamp(360px, 70vmin, 720px);
    --item: clamp(160px, 22vmin, 220px);
    --step: 60deg;
    /* 6 items */
    --radius-offset: 40px;
}

@media (min-width: 900px) {
    :root {
        --size: 600px;
    }
		
		
    #appr{
        height: 115%;
    }
}

* {
    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;
}

main {
    view-transition-name: page
}

::view-transition-old(page) {
    animation: page-out .60s ease both
}

::view-transition-new(page) {
    animation: page-in .80s ease both
}

@keyframes page-out {
    from {
        opacity: 1;
        transform: scale(1)
    }

    to {
        opacity: 0;
        transform: scale(.98)
    }
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: scale(1.04)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
    border-bottom: none;
}

.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;
    }
}
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin: auto;
}

.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)
}

.topbar-inner {
    max-width: 1100px;
    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: .2s
}

.back:hover {
    background: var(--brand-red);
    color: #fff
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-red)
}

/* ===== Cercle ===== */
.circle {
    position: relative;
    width: var(--size);
    height: var(--size);
    margin: 28px auto
}

.center {
    position: absolute;
    inset: 0;
    margin: auto;
    width: clamp(180px, 26vmin, 260px);
    height: clamp(180px, 26vmin, 260px);
    border-radius: 50%;
    border: 2px dashed var(--brand-red);
    display: grid;
    place-items: center;
    background: var(--paper)
}

.center img {
    height: 80px;
    width: auto
}

ul.ring {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0
}

ul.ring li {
    position: absolute;
    inset: 0;
    margin: auto;
    width: var(--item);
    height: var(--item);
    transform-origin: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(calc(var(--i)*var(--step))) translate(calc(var(--size)/2 - var(--item)/2 + var(--radius-offset))) rotate(calc(-1*var(--i)*var(--step)));
}

.tile {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid var(--brand-red);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    opacity: 0;
    transform: translateY(10px) scale(.96);
    animation: tileIn 1.4s ease-out forwards;
}

.tile small {
    font-weight: 400;
    opacity: .85;
    margin-top: 8px;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.3
}

.tile:hover {
    transition: 0.2s;
    background: var(--brand-red);
    color: #fff;
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}

.tile:focus-visible {
    outline: 3px solid rgba(225, 6, 0, .35);
    outline-offset: 3px;
}

@keyframes tileIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.94)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}


@media(max-width:560px) {
    .topbar::after {
        content: none;
    }

    :root {
        --size: 560px;
        --item: 160px
    }

    .circle {
        width: min(520px, 92vw);
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center
    }

    ul.ring {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        width: 100%
    }

    ul.ring li {
        position: static;
        transform: none;
        width: 100%;
        height: 100%
    }

    .tile {
        min-height: 120px
    }

    .center {
        position: static;
        width: 140px;
        height: 140px
    }

    .center img {
        height: 60px
    }
}

footer {
    margin: 36px 0 26px;
    text-align: center;
    color: #666;
    font-size: 14px
}
