:root {
    --ink: #243238;
    --ink-soft: #5d6b72;
    --line: #e8ebed;
    --bg: #ffffff;
    --bg-soft: #f6f7f8;
    --card: #ffffff;
    --chip: #f1f3f4;
    --btn-dark: #243238;
    --btn-dark-text: #ffffff;
    --brand: #9b59b6;
    --brand-dark: #7d3f98;
    --flame: #f08a24;
    --radius: 12px;
    --nav-h: 68px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

[data-theme="dark"] {
    --ink: #f2f2f2;
    --ink-soft: #9a9a9a;
    --line: #222222;
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --card: #111111;
    --chip: #181818;
    --btn-dark: #f2f2f2;
    --btn-dark-text: #0a0a0a;
    --brand: #b878d6;
    --brand-dark: #a15fc4;
    --shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    padding-top: var(--nav-h);
    transition: background .3s, color .3s;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -.01em;
}

.text-soft {
    color: var(--ink-soft) !important;
}

.min-w-0 {
    min-width: 0;
}

/* ======================= NAVBAR ======================= */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1030;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s, background .3s;
}

.topbar.scrolled {
    border-color: var(--line);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.topbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
}

.logo-mark {
    width: 44px;
    height: 32px;
    background: var(--brand);
    border-radius: 14px 10px 14px 8px;
    transform: rotate(-6deg);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    transition: transform .3s;
}

.logo:hover .logo-mark {
    transform: rotate(0) scale(1.06);
}

.logo-mark span {
    transform: rotate(6deg);
}

.nav-links {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    font-size: .95rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--brand);
    transition: width .25s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--brand);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    transition: background .2s, transform .2s;
}

.icon-btn:hover {
    background: var(--chip);
    transform: scale(1.08);
}

.btn-dark-ono {
    background: var(--btn-dark);
    color: var(--btn-dark-text);
    border: 0;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 800;
    font-size: .92rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn-dark-ono:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    opacity: .92;
}

.lang {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 10px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: .85rem;
    transition: background .2s;
}

.lang-btn:hover {
    background: var(--chip);
}

.lang-btn img,
.lang-opt img,
.lang-opt-m img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .2s;
}

.lang.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lang-opt,
.lang-opt-m {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 9px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    text-align: left;
}

.lang-opt:hover,
.lang-opt-m:hover {
    background: var(--chip);
}

.lang-opt.active,
.lang-opt-m.active {
    color: var(--brand);
}

/* MENU UTILISATEUR */
.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 50%;
    overflow: hidden;
    background: var(--chip);
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.user-avatar:hover,
.user-menu.open .user-avatar {
    transform: scale(1.06);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1040;
    width: 238px;
    padding: 8px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s, transform .2s, visibility .2s;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.user-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.user-head img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    display: block;
    font-weight: 800;
    font-size: .92rem;
}

.user-email {
    display: block;
    color: var(--ink-soft);
    font-size: .74rem;
    overflow-wrap: anywhere;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-align: left;
}

.user-link i {
    width: 18px;
    color: var(--ink-soft);
    text-align: center;
}

.user-link:hover {
    background: var(--chip);
}

.user-logout {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 10px;
    color: #c94c58;
}

.user-logout i {
    color: #c94c58;
}

/* Recherche */
.search-bar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 1029;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    transform: translateY(-120%);
    transition: transform .3s;
}

.search-bar.open {
    transform: none;
}

.search-bar .box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--ink);
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--brand);
}

/* Mobile */
.burger {
    display: none;
}

@media (max-width: 991.98px) {

    .nav-links,
    .nav-right .btn-dark-ono,
    .nav-right .lang,
    .nav-right #themeToggle {
        display: none;
    }

    .burger {
        display: grid;
    }

    .topbar .container {
        gap: 10px;
    }

    .logo {
        margin-right: auto;
    }

    .nav-right {
        margin-left: 0;
    }
}

.offcanvas {
    background: var(--bg);
    color: var(--ink);
    width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid var(--line);
}

.m-links a {
    display: block;
    padding: 14px 4px;
    font-weight: 800;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    transition: padding-left .2s, color .2s;
}

.m-links a:hover {
    padding-left: 12px;
    color: var(--brand);
}

/* ======================= SLIDER ======================= */
.hero {
    padding-top: 24px;
}

.hero-stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 21/8;
    min-height: 340px;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 7s ease-out;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .15) 70%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: clamp(20px, 5vw, 64px);
    bottom: clamp(24px, 6vw, 64px);
    max-width: 560px;
    color: #fff;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.08;
    margin-bottom: 10px;
}

.hero-desc {
    opacity: .9;
    margin-bottom: 20px;
    font-size: 1rem;
}

.hero-slide.active .hero-tag,
.hero-slide.active .hero-title,
.hero-slide.active .hero-desc,
.hero-slide.active .btn-white {
    animation: rise .7s both;
}

.hero-slide.active .hero-title {
    animation-delay: .1s;
}

.hero-slide.active .hero-desc {
    animation-delay: .2s;
}

.hero-slide.active .btn-white {
    animation-delay: .3s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 11px 22px;
    font-weight: 800;
    font-size: .92rem;
    transition: transform .2s, box-shadow .2s, gap .2s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
    gap: 12px;
    color: #111;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #111;
    display: grid;
    place-items: center;
    transition: transform .2s, background .2s;
}

.hero-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: #fff;
}

.hero-arrow.prev {
    left: 16px;
}

.hero-arrow.next {
    right: 16px;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    border: 0;
    background: rgba(255, 255, 255, .5);
    padding: 0;
    transition: width .3s, background .3s;
}

.hero-dots button.on {
    width: 28px;
    background: #fff;
}

@media (max-width: 767.98px) {
    .hero-stage {
        aspect-ratio: 4/3;
    }

    .hero-arrow {
        display: none;
    }
}

/* ======================= SECTIONS ======================= */
.block {
    padding-top: 48px;
}

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.sec-head h2 {
    font-size: 1.6rem;
    margin: 0;
}

.sec-head p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: .92rem;
}

.btn-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--ink);
    border-radius: 12px;
    padding: 9px 16px;
    font-weight: 800;
    font-size: .88rem;
    transition: transform .2s, border-color .2s, gap .2s;
}

.btn-all:hover {
    border-color: var(--brand);
    gap: 10px;
    transform: translateX(2px);
}

.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.tab {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 800;
    font-size: .88rem;
    padding: 8px 18px;
    border-radius: 8px;
    transition: .2s;
}

.tab:hover {
    color: var(--ink);
}

.tab.active {
    background: var(--chip);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}

/* ======================= CARTE WEBTOON ======================= */
.row-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 214px;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.row-scroll>* {
    scroll-snap-align: start;
}

.toon {
    display: block;
    transition: transform .3s;
}

.toon:hover {
    transform: translateY(-6px);
}

.cover {
    position: relative;
    aspect-ratio: 3/4.2;
    border-radius: 14px;
    overflow: hidden;
    background: var(--chip);
    border: 1px solid var(--line);
    transition: box-shadow .3s, border-color .3s;
}

.toon:hover .cover {
    box-shadow: var(--shadow);
    border-color: var(--brand);
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.toon:hover .cover img {
    transform: scale(1.08);
}

.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 65%, rgba(0, 0, 0, .55));
    pointer-events: none;
}

.type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 10, .78);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 4px 9px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.type-badge img {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 2px;
}

.rating {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    background: rgba(10, 10, 10, .8);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 8px;
    padding: 4px 9px;
    font-size: .78rem;
    font-weight: 800;
}

.rating i {
    color: #ffc94a;
    font-size: .7rem;
    margin-right: 3px;
}

.toon h3 {
    font-size: .98rem;
    margin: 12px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chap-line {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.chap {
    flex: 1;
    min-width: 0;
    background: var(--chip);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color .2s, background .2s;
}

.chap:hover {
    border-color: var(--brand);
}

.chip-flame {
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(240, 138, 36, .12);
    border: 1px solid rgba(240, 138, 36, .45);
    color: var(--flame);
    font-size: .9rem;
}

.chip-date {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--chip);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .68rem;
    font-weight: 700;
    padding: 0 10px;
    white-space: nowrap;
}

/* ======================= REPRENDRE LA LECTURE ======================= */
.resume-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.resume-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s;
    background: radial-gradient(500px circle at 0 0, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%);
}

.resume-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.resume-card:hover::before {
    opacity: 1;
}

.resume-cover {
    position: relative;
    flex: 0 0 104px;
    aspect-ratio: 3/4.2;
    border-radius: 12px;
    overflow: hidden;
    background: var(--chip);
}

.resume-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.resume-card:hover .resume-cover img {
    transform: scale(1.1);
}

.resume-body {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.resume-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.resume-genre {
    font-size: .7rem;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.resume-time {
    font-size: .72rem;
    color: var(--ink-soft);
    font-weight: 600;
}

.resume-body h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resume-chap {
    font-size: .84rem;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 14px;
}

.progress-line {
    margin-top: auto;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: .74rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.bar {
    height: 6px;
    border-radius: 6px;
    background: var(--chip);
    overflow: hidden;
    border: 1px solid var(--line);
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: var(--brand);
    transition: width 1s cubic-bezier(.2, .8, .2, 1);
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--btn-dark);
    color: var(--btn-dark-text);
    font-weight: 800;
    font-size: .84rem;
    transition: gap .2s, opacity .2s;
}

.resume-card:hover .resume-btn {
    gap: 12px;
}

/* ======================= POPULAIRES / TOP ======================= */
.rank {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    margin-bottom: 10px;
    transition: transform .25s, border-color .25s;
}

.rank:hover {
    transform: translateX(6px);
    border-color: var(--brand);
}

.rank-n {
    font-size: 1.5rem;
    font-weight: 800;
    width: 32px;
    text-align: center;
    color: var(--ink-soft);
}

.rank:nth-child(-n+3) .rank-n {
    color: var(--brand);
}

.rank img {
    width: 52px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* ======================= BANNIÈRES ======================= */
.banner {
    position: relative;
    display: block;
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    transition: transform .4s, box-shadow .4s;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .2));
    transition: opacity .3s;
}

.banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: #fff;
}

.banner-inner {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 48px);
    max-width: 620px;
}

.banner-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.banner h3 {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    margin-bottom: 8px;
}

.banner p {
    opacity: .88;
    margin-bottom: 18px;
}

/* ======================= CRÉATEUR / NEWSLETTER ======================= */
.promo {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-soft);
    padding: clamp(24px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.promo h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.promo p {
    margin: 0;
    color: var(--ink-soft);
    max-width: 520px;
}

.btn-brand {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 800;
    transition: transform .2s, background .2s;
}

.btn-brand:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.news {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(28px, 5vw, 56px);
    background: var(--bg-soft);
}

.news form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 20px auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

.news input {
    flex: 1;
    min-width: 220px;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--ink);
    border-radius: 10px;
    padding: 12px 16px;
    outline: none;
    font-weight: 600;
}

.news input:focus {
    border-color: var(--brand);
}

/* ======================= FOOTER ======================= */
footer.site {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    padding: 48px 0 24px;
    background: var(--bg);
}

footer.site h6 {
    font-weight: 800;
    margin-bottom: 14px;
}

footer.site ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.site li {
    margin-bottom: 9px;
}

footer.site li a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .92rem;
    transition: color .2s, padding-left .2s;
}

footer.site li a:hover {
    color: var(--brand);
    padding-left: 6px;
}

.social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    transition: .25s;
}

.social a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-3px);
}

/* ======================= RETOUR EN HAUT ======================= */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .3s;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

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

.to-top svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.to-top circle {
    fill: none;
    stroke: var(--brand);
    stroke-width: 3;
    stroke-dasharray: 163.4;
    stroke-dashoffset: 163.4;
    stroke-linecap: round;
}

.to-top i {
    position: relative;
    font-size: 1.1rem;
}

/* ======================= ANIMATIONS AU SCROLL ======================= */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.stagger>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.stagger.in>* {
    opacity: 1;
    transform: none;
}

.stagger.in>*:nth-child(1) {
    transition-delay: .03s;
}

.stagger.in>*:nth-child(2) {
    transition-delay: .08s;
}

.stagger.in>*:nth-child(3) {
    transition-delay: .13s;
}

.stagger.in>*:nth-child(4) {
    transition-delay: .18s;
}

.stagger.in>*:nth-child(5) {
    transition-delay: .23s;
}

.stagger.in>*:nth-child(6) {
    transition-delay: .28s;
}

.stagger.in>*:nth-child(7) {
    transition-delay: .33s;
}

.stagger.in>*:nth-child(8) {
    transition-delay: .38s;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .stagger>* {
        opacity: 1;
        transform: none;
    }
}
