        /* Background ambiance "premium" inspiré du wizard onboarding :
           gradients radiaux subtils dans les coins (violet en haut, orange
           en bas), background-attachment fixed pour ne pas scroller. */
        body.page-home {
            background:
                radial-gradient(ellipse at top left, color-mix(in srgb, var(--violet-soft) 75%, transparent) 0%, transparent 40%),
                radial-gradient(ellipse at bottom right, color-mix(in srgb, var(--orange) 12%, transparent) 0%, transparent 45%),
                var(--bg);
            background-attachment: fixed;
        }
        .home-greeting {
            margin-top: var(--space-4);
            margin-bottom: var(--space-3);
        }
        .home-greeting h1 {
            margin: 0;
            font-size: clamp(1.6rem, 4.5vw, 2.1rem);
            font-weight: 600;
            letter-spacing: -0.02em;
            line-height: 1.1;
        }
        .home-greeting__sub {
            margin: 4px 0 0;
            font-family: var(--font-mono);
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--subtle);
        }

        .home-section {
            margin-top: var(--space-5);
        }
        .home-section__header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: var(--space-3);
        }
        .home-section__title {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 500;
            letter-spacing: -0.01em;
            display: flex;
            align-items: baseline;
            gap: 8px;
        }
        /* Titre de section cliquable : le titre + une petite flèche ">", au lieu
           d'un "Tout voir" séparé. */
        .home-section__title-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            text-decoration: none;
            color: inherit;
        }
        .home-section__chevron {
            width: 17px;
            height: 17px;
            color: var(--muted);
            flex-shrink: 0;
            transform: translateY(1px);
        }
        .home-section__title-link:active .home-section__chevron { color: var(--violet); }
        .home-section__more {
            font-family: var(--font-mono);
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--violet);
        }
        .home-section__more:hover { text-decoration: underline; }
        /* Sous-titre court d'une section, posé juste sous le titre.
           Explicite pourquoi la section existe (ex. recos, trending)
           sans empiler du texte lourd. */
        .home-section__sub {
            margin: -8px 0 var(--space-3);
            font-size: 0.85rem;
            color: var(--muted);
        }

        /* Carrousel horizontal swipeable, scroll natif + snap.
           Le wrapper déborde sur les marges latérales du .app-main pour
           que les couvertures atteignent le bord de l'écran (effet
           "feuille de magazine" qui se poursuit hors-champ). Mobile-first :
           96px par card, plus large en tablette/desktop. */
        .home-swipe {
            display: flex;
            gap: var(--space-3);
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-padding-left: max(var(--space-4), var(--safe-left));
            padding-left: max(var(--space-4), var(--safe-left));
            padding-right: max(var(--space-4), var(--safe-right));
            margin-left: calc(-1 * max(var(--space-4), var(--safe-left)));
            margin-right: calc(-1 * max(var(--space-4), var(--safe-right)));
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .home-swipe::-webkit-scrollbar { display: none; }
        .home-cover--swipe {
            flex: 0 0 104px;
            scroll-snap-align: start;
        }
        @media (min-width: 480px) {
            .home-cover--swipe { flex-basis: 120px; }
        }

        /* Poster critique façon Letterboxd (feed "Critiques de tes amis") :
           cover + mini PDP ami + note (avec demi) + logo commentaire + date. */
        .review-poster {
            flex: 0 0 104px;
            scroll-snap-align: start;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
        }
        @media (min-width: 480px) {
            .review-poster { flex-basis: 120px; }
        }
        .review-poster__img {
            width: 100%;
            aspect-ratio: 2/3;
            object-fit: cover;
            border-radius: var(--radius);
            background: var(--bg-paper);
            display: block;
            box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(15, 15, 18, 0.07);
        }
        /* Hairline des covers en dark : claire au lieu de sombre (sinon invisible). */
        [data-theme="dark"] .now-card__cover,
        [data-theme="dark"] .home-cover__img,
        [data-theme="dark"] .review-poster__img {
            box-shadow: var(--shadow-cover), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        }
        [data-theme="dark"] .review-poster__img {
            box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        }
        .review-poster__img--ph {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted);
        }
        .review-poster__meta {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 6px;
            overflow: hidden;
        }
        .review-poster__avatar {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--violet-soft);
            flex-shrink: 0;
        }
        .review-poster__avatar--ph {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--violet);
            font-size: 0.55rem;
            font-weight: 600;
        }
        .review-poster__stars {
            display: inline-flex;
            align-items: center;
            gap: 1px;
            color: var(--orange);
            min-width: 0;
        }
        .review-poster__stars svg { width: 10px; height: 10px; flex-shrink: 0; }
        .review-poster__half { color: var(--orange); font-size: 0.7rem; line-height: 1; }
        .review-poster__comment { color: var(--muted); flex-shrink: 0; margin-left: auto; }
        .review-poster__date {
            margin-top: 3px;
            font-family: var(--font-mono);
            font-size: 0.62rem;
            color: var(--muted);
        }

        /* Page /feed : les memes posters mais en grille qui wrappe (facon
           Letterboxd), au lieu du scroll horizontal de la home. .review-poster
           est un item de grille ici : son flex-basis est ignore, il remplit la
           cellule. */
        .feed-title {
            font-size: 1.3rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            margin-bottom: var(--space-5);
        }
        .feed-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
            gap: var(--space-4) var(--space-3);
        }
        @media (min-width: 480px) {
            .feed-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
        }

        @media (min-width: 720px) {
            .home-cover--swipe { flex-basis: 120px; }
        }

        /* ========== Card "Continue ta lecture" ==========
           Alignée sur le pattern .card (fond élevé, radius-lg, ombre
           tokenisée, pas de bordure), cf. .pinned-review__card. */
        .now-card {
            display: grid;
            grid-template-columns: 88px 1fr;
            gap: var(--space-3);
            align-items: center;
            text-decoration: none;
            color: inherit;
            padding: var(--space-3);
            background: var(--bg-elevated);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            transition: transform 200ms, box-shadow 200ms;
        }
        .now-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
            text-decoration: none;
        }
        .now-card:active { transform: scale(0.99); }
        .now-card:hover .now-card__title { color: var(--violet); }
        .now-card__cover {
            width: 88px;
            aspect-ratio: 2/3;
            object-fit: cover;
            border-radius: var(--radius);
            background: var(--bg-paper);
            /* cover = objet posé : ombre douce + fine hairline qui détache la
               couverture (surtout une cover claire sur fond clair). */
            box-shadow: var(--shadow-cover), inset 0 0 0 1px rgba(15, 15, 18, 0.07);
        }
        .now-card__cover--placeholder {
            display: flex; align-items: center; justify-content: center;
            color: var(--subtle);
            border: 1px solid var(--border);
            box-shadow: none;
        }
        .now-card__title {
            margin: 0;
            font-size: 1.18rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            line-height: 1.15;
            transition: color 150ms;
        }
        .now-card__author { margin-top: 2px; font-size: 0.92rem; color: var(--muted); }
        .now-card__date {
            margin-top: 8px;
            font-family: var(--font-mono);
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--muted);
        }

        /* ========== Grilles couvertures ========== */
        .home-grid-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
        .home-grid-want {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--space-3);
        }
        @media (min-width: 480px) { .home-grid-want { grid-template-columns: repeat(4, 1fr); } }
        @media (min-width: 720px) { .home-grid-want { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); } }

        .home-cover {
            display: block;
            text-decoration: none;
            color: inherit;
            transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        .home-cover:hover {
            transform: translateY(-3px);
            text-decoration: none;
        }
        .home-cover:active { transform: scale(0.97); }
        .home-cover__img {
            width: 100%;
            aspect-ratio: 2/3;
            object-fit: cover;
            border-radius: var(--radius);
            background: var(--bg-paper);
            box-shadow: var(--shadow-cover), inset 0 0 0 1px rgba(15, 15, 18, 0.07);
            transition: box-shadow 200ms, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        .home-cover__img--placeholder {
            display: flex; align-items: center; justify-content: center;
            color: var(--subtle);
            border: 1px solid var(--border);
            box-shadow: none;
        }
        .home-cover__title {
            margin: 6px 0 0;
            font-size: 0.78rem;
            font-weight: 500;
            line-height: 1.3;
            color: var(--ink);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        /* ========== Suggestions de lecteurs (sidebar) ==========
           Liste sobre, row avec avatar + nom + bouton Suivre. Border-bottom
           subtil pour séparer, cohérent avec le pattern conversationnel
           des autres composants (comment, notif, review). */
        .suggested-users {
            list-style: none;
            margin: var(--space-2) 0 0;
            padding: 0;
            border-top: 1px solid var(--border);
        }
        /* Variante page dédiée « Lecteurs à suivre » : liste centrée, pas
           pleine largeur (sinon le bouton Suivre part loin à droite). */
        .suggested-users--page { max-width: 560px; margin: var(--space-4) auto 0; }
        .suggested-user {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--space-2);
            padding: var(--space-2) 0;
            border-bottom: 1px solid var(--border);
        }
        .suggested-user__info {
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            text-decoration: none;
            color: inherit;
            min-width: 0;
            flex: 1;
        }
        .suggested-user__info:hover { text-decoration: none; }
        .suggested-user__info:hover .suggested-user__name strong { color: var(--violet); }
        .suggested-user__avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--violet-soft);
            flex-shrink: 0;
        }
        .suggested-user__avatar--placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--violet);
            font-size: 0.78rem;
            font-weight: 600;
        }
        .suggested-user__name {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
            min-width: 0;
        }
        .suggested-user__name strong {
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--ink);
            transition: color 150ms;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .suggested-user__handle {
            font-family: var(--font-mono);
            font-size: 0.68rem;
            color: var(--muted);
        }
        .suggested-user__form { margin: 0; flex-shrink: 0; }
        .suggested-user__btn {
            font-size: 0.78rem;
            padding: 4px 10px;
            min-height: 28px;
        }

        /* "Aimé par" (section Populaire chez tes amis) : pas de titre ni de
           phrase, juste les pdp des lecteurs empilées + un petit cœur orange
           (coup de cœur). Les avatars sont le signal, l'app s'efface. */
        .home-cover__likers {
            display: flex;
            align-items: center;
            gap: 5px;
            margin: 7px 0 0;
        }
        .home-cover__avatars {
            display: inline-flex;
            align-items: center;
        }
        .home-cover__avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--violet-soft);
            box-shadow: 0 0 0 2px var(--bg); /* anneau = fond page, sépare l'empilement */
        }
        .home-cover__avatar + .home-cover__avatar { margin-left: -7px; }
        .home-cover__avatar--ph {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--violet);
            font-size: 0.6rem;
            font-weight: 600;
        }
        .home-cover__heart {
            width: 14px;
            height: 14px;
            color: #E23744; /* rouge cœur : signal "aimé" */
            flex-shrink: 0;
        }
        .home-cover__comment {
            width: 14px;
            height: 14px;
            color: var(--muted); /* discret : un ami a critiqué le livre */
            flex-shrink: 0;
        }

        /* ========== Critiques récentes (pattern conversationnel) ==========
           Structure : <article class="home-review-card"> wrap un lien
           cliquable + un footer d'actions. Pas de carte (background +
           border) — juste un séparateur en bas et un padding vertical.
           Pattern Twitter/Letterboxd : le contenu respire, l'app s'efface. */
        .home-reviews {
            border-top: 1px solid var(--border);
        }
        /* Card compacte : grid 3 colonnes (cover · content · actions).
           Le wrapper <article> ne porte que le séparateur en bas. La
           cover et le content sont dans un <a> cliquable (col 1+2), les
           actions like/comment en col 3 sont hors du lien parent. */
        .home-review-card {
            display: grid;
            grid-template-columns: 36px 1fr auto;
            gap: var(--space-2);
            align-items: start;
            padding: var(--space-2) 0;
            border-bottom: 1px solid var(--border);
        }
        .home-review-card__link {
            display: contents;
            text-decoration: none;
            color: inherit;
        }
        .home-review-card__link:hover .home-review-card__title { color: var(--violet); }
        .home-review-card__content { min-width: 0; }
        /* Actions inline à droite (like + comment) en colonne verticale. */
        .home-review-card__actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
        }
        .home-review-card__actions .like-btn,
        .home-review-card__actions .comment-link {
            min-height: 26px;
            padding: 4px 6px;
            font-size: 0.75rem;
            gap: 4px;
        }
        .home-review-card__actions .like-btn { margin: 0; }
        .home-review-card__actions .like-btn__icon,
        .home-review-card__actions .comment-link svg {
            width: 14px;
            height: 14px;
        }
        .home-review-card__actions .like-btn__count,
        .home-review-card__actions .comment-link__count {
            font-size: 0.72rem;
        }
        .home-review-card__cover {
            width: 36px;
            aspect-ratio: 2/3;
            object-fit: cover;
            border-radius: 3px;
            background: var(--bg-paper);
        }
        /* Byline auteur de la review (feed uniquement, show_author=true) */
        .home-review-card__byline {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.78rem;
            color: var(--ink);
            margin-bottom: 2px;
        }
        .home-review-card__byline .muted {
            color: var(--muted);
            font-weight: 400;
            font-family: var(--font-mono);
            font-size: 0.72rem;
        }
        .home-review-card__avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--violet-soft);
            flex-shrink: 0;
        }
        .home-review-card__avatar--placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--violet);
            font-size: 0.6rem;
            font-weight: 600;
        }
        .home-review-card__title {
            margin: 0;
            font-size: 0.92rem;
            font-weight: 500;
            letter-spacing: -0.01em;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .home-review-card__meta {
            display: flex; align-items: center; gap: 6px;
            margin-top: 2px;
            font-family: var(--font-mono);
            font-size: 0.65rem;
            color: var(--muted);
        }
        .home-review-card__score { font-family: var(--font-mono); }
        .home-review-card__stars { display: inline-flex; gap: 1px; color: var(--orange); }
        .home-review-card__stars svg { width: 11px; height: 11px; }
        .home-review-card__body {
            margin: 5px 0 0;
            font-size: 0.88rem;
            line-height: 1.45;
            color: var(--ink);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .home-review-card__body--spoilers {
            font-style: italic;
            opacity: 0.7;
        }

        /* ========== Bouton like (footer review card) ==========
           Cœur outline au repos, plein orange-corail quand liked.
           Pourquoi orange : palette Letterbook = orange = qualité/coup
           de cœur. Réservé à ce signal. Tap target 44px (min-height).
           Sobre, pas de gros boutons gamifiés. */
        .like-form { margin: 0; display: inline-flex; }
        .like-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px 6px 6px;
            margin: -6px 0 -6px -6px;
            min-height: 36px;
            background: transparent;
            border: 0;
            color: var(--muted);
            font-family: inherit;
            font-size: 0.82rem;
            font-weight: 500;
            cursor: pointer;
            border-radius: var(--radius-sm);
            transition: color 120ms ease, background 120ms ease;
        }
        .like-btn:hover { color: var(--ink); background: var(--bg-paper); }
        .like-btn:focus-visible {
            outline: none;
            box-shadow: 0 0 0 2px var(--violet);
        }
        .like-btn--liked { color: var(--orange); }
        .like-btn--liked:hover { color: var(--orange); }
        .like-btn__icon {
            flex-shrink: 0;
            transition: transform 150ms ease;
        }
        .like-btn:active .like-btn__icon { transform: scale(0.85); }
        .like-btn__count {
            font-family: var(--font-mono);
            font-size: 0.78rem;
            min-width: 1ch;
            text-align: left;
        }

        /* Lien "commenter" — sœur visuelle du like-btn mais en simple <a> :
           pas d'action sur place, navigue vers la page critique pour lire
           et écrire. Même tap target, même tonalité gris/ink, sans accent
           coloré (l'engagement reste sur le bouton like). */
        .comment-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            min-height: 36px;
            color: var(--muted);
            text-decoration: none;
            font-family: inherit;
            font-size: 0.82rem;
            font-weight: 500;
            border-radius: var(--radius-sm);
            transition: color 120ms ease, background 120ms ease;
        }
        .comment-link:hover {
            color: var(--ink);
            background: var(--bg-paper);
            text-decoration: none;
        }
        .comment-link__count {
            font-family: var(--font-mono);
            font-size: 0.78rem;
            min-width: 1ch;
        }

        /* ========== Empty state global ========== */
        .home-empty {
            margin-top: var(--space-5);
            padding: var(--space-5);
            background: var(--bg-paper);
            border-radius: var(--radius-lg);
            text-align: center;
        }
        /* Petit repère livre au-dessus de l'état vide : un peu de craft, ton
           posé. Masqué en variante inline (compacte, dans une section). */
        .home-empty::before {
            content: "";
            display: block;
            width: 44px;
            height: 44px;
            margin: 0 auto var(--space-3);
            border-radius: var(--radius);
            background: var(--violet-soft) center / 22px 22px no-repeat
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238649F1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
        }
        .home-empty--inline::before { display: none; }
        .home-empty__title {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 500;
        }
        .home-empty__hint {
            margin: 8px 0 var(--space-3);
            color: var(--muted);
            font-size: 0.92rem;
        }
        /* Variante inline : utilisée comme placeholder DANS une section
           (vs. plein écran). Padding plus court, marge top neutre. */
        .home-empty--inline {
            margin-top: 0;
            padding: var(--space-4);
        }
        .home-empty--inline .home-empty__title {
            font-size: 0.95rem;
        }


        /* ========== Onboarding (checklist 3 étapes) ==========
           Sobre : fond violet pâle, liste numérotée verticale. Chaque step
           a un cercle violet à gauche (numéro ou check) et un titre + CTA
           à droite. État "is-done" : cercle rempli violet avec check blanc,
           titre opacity réduite. Disparait quand les 3 étapes sont faites. */
        .onboarding {
            margin-top: var(--space-3);
            padding: var(--space-4);
            background: var(--violet-soft);
            border-radius: var(--radius-lg);
        }
        .onboarding__steps {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: var(--space-3);
        }
        .onboarding__step {
            display: grid;
            grid-template-columns: 28px 1fr;
            gap: var(--space-3);
            align-items: start;
        }
        .onboarding__check {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--bg);
            color: var(--violet);
            border: 1.5px solid var(--violet);
            font-family: var(--font-mono);
            font-size: 0.78rem;
            font-weight: 600;
        }
        .onboarding__step.is-done .onboarding__check {
            background: var(--violet);
            color: #fff;
            border-color: var(--violet);
        }
        .onboarding__step-body {
            min-width: 0;
            padding-top: 4px;
        }
        .onboarding__step-title {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--ink);
        }
        .onboarding__step.is-done .onboarding__step-title {
            opacity: 0.55;
            text-decoration: line-through;
        }
        .onboarding__step-cta {
            display: inline-block;
            margin-top: 4px;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--violet);
            text-decoration: none;
        }
        .onboarding__step-cta:hover { text-decoration: underline; }
        .onboarding__step-hint {
            margin: 4px 0 0;
            font-size: 0.82rem;
            color: var(--muted);
            line-height: 1.4;
        }

        /* Lien découverte tout en bas de la home, discret mais visible.
           Séparé du contenu par de l'air (pas de trait), cf. recette R5. */
        .home-explore {
            margin-top: var(--space-6);
            padding-top: var(--space-5);
            text-align: center;
        }
        .home-explore__link {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--muted);
            text-decoration: none;
            transition: color 120ms;
        }
        .home-explore__link:hover {
            color: var(--violet);
        }

        /* ============================================================
         * Layout desktop (≥ 1024px) — 2 colonnes : main feed + sidebar
         * ============================================================ */

        .home-grid {
            display: grid;
            gap: var(--space-5);
            /* Colonne contrainte (minmax 0) : sans ça, une rangée à scroll
               horizontal (cartes non rétrécissables) force la colonne — et donc
               la page — plus large que l'écran, ce qui faisait dézoomer le site
               en "mode tablette" sur iPhone. */
            grid-template-columns: minmax(0, 1fr);
        }
        .home-main { min-width: 0; }

        @media (min-width: 1024px) {
            /* Élargit .app-main UNIQUEMENT sur la home (autres pages restent
               en 760px, lecture confortable centrée). */
            body.page-home .app-main {
                max-width: 1200px;
            }

            .home-grid {
                grid-template-columns: minmax(0, 1fr) 340px;
                gap: var(--space-6);
                align-items: start;
            }

            /* Le greeting reste au-dessus, full-width du contenu. */
            .home-greeting {
                margin-bottom: var(--space-4);
            }

            /* Sidebar sticky : reste visible pendant qu'on scrolle le feed.
               Top calculé pour passer sous le header fixed. */
            .home-aside {
                position: sticky;
                top: calc(var(--header-h) + var(--space-3));
                max-height: calc(100vh - var(--header-h) - var(--space-5));
                overflow-y: auto;
                scrollbar-width: thin;
            }

            /* Les sections dans l'aside sont plus serrées (espace contraint). */
            .home-aside .home-section {
                margin-top: var(--space-4);
            }
            .home-aside .home-section:first-child {
                margin-top: 0;
            }

            /* Carrousel swipe dans l'aside : on garde le scroll natif mais on
               annule le débord latéral (l'aside est étroit, on ne déborde pas
               hors-écran comme sur mobile). */
            .home-swipe--aside {
                margin-left: 0;
                margin-right: 0;
                padding-left: 0;
                padding-right: 0;
            }

            /* Grille "Cette semaine" dans l'aside : 3 colonnes étroites. */
            .home-aside .home-grid-want {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            /* Lien découverte : espacement resserré dans l'aside (espace
               contraint), aligné à gauche au lieu de centré. */
            .home-aside .home-explore {
                margin-top: var(--space-4);
                padding-top: var(--space-3);
                text-align: left;
            }
        }

        /* Très grand écran (≥1440px) : on autorise un peu plus de largeur
           pour le feed (qui reste agréable à lire), mais on plafonne pour
           ne pas avoir un feed monstrueux. */
        @media (min-width: 1440px) {
            body.page-home .app-main {
                max-width: 1320px;
            }
            .home-grid {
                grid-template-columns: minmax(0, 1fr) 380px;
            }
        }

        /* ============================================================
         * Polish layout desktop (≥ 1024px) — corrections après test :
         * - Bottom-nav passe en top-right du header (pas au milieu de page)
         * - Aside : covers swipe réduites, feed main limité en largeur
         * ============================================================ */

        @media (min-width: 1024px) {
            /* Limite la largeur du feed pour rester lisible (cards pas trop
               étirées). L'aside garde sa colonne 340/380px. */
            .home-main {
                max-width: 720px;
            }

            /* Override la swipe row dans l'aside : cards plus petites pour
               tenir dans les 340px sans déborder agressivement. */
            .home-cover--swipe {
                flex-basis: 110px;
            }
            .home-swipe--aside .home-cover--swipe {
                flex-basis: 90px;
            }
        }
