/*
 * Homepage calme — une hiérarchie courte, peu d'accents et aucun doublon.
 * Ce fichier est chargé en dernier afin de neutraliser les anciens habillages
 * magazine sans perturber les panneaux internes de Retroverse.
 */

:root {
    --home-surface: rgba(12, 17, 24, .88);
    --home-surface-soft: rgba(255, 255, 255, .025);
    --home-line: rgba(255, 255, 255, .095);
    --home-line-strong: rgba(255, 255, 255, .16);
    --home-accent: #55d7f5;
}

body {
    background:
        radial-gradient(circle at 72% -12%, rgba(42, 98, 124, .11), transparent 33rem),
        #070a0f;
}

.top {
    border-bottom: 1px solid var(--home-line);
    background: rgba(7, 10, 15, .96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.nav {
    min-height: 64px;
    gap: 12px;
}

#primaryNav {
    gap: 2px;
    flex-wrap: nowrap;
}

#primaryNav button,
#primaryNav a {
    min-height: 36px;
    padding: 8px 9px;
    border-radius: 8px;
    color: #9ba8b8;
    font-size: 11px;
    white-space: nowrap;
}

#primaryNav button:hover,
#primaryNav button:focus-visible,
#primaryNav a:hover,
#primaryNav a:focus-visible {
    background: rgba(255, 255, 255, .045);
    color: #fff;
}

#primaryNav button[aria-current="page"],
#primaryNav a[aria-current="page"] {
    background: rgba(85, 215, 245, .07);
    color: #d8f8ff;
}

.account {
    border-color: var(--home-line-strong);
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 11px;
}

.site-search {
    max-width: 680px;
    margin: 0 auto;
    padding: 18px 0 8px;
}

.site-search .search {
    max-width: none;
    padding: 4px;
    border-color: var(--home-line);
    border-radius: 13px;
    background: rgba(12, 17, 24, .72);
    box-shadow: none;
}

.site-search .search input {
    padding: 12px 13px;
    border-radius: 9px;
    background: rgba(18, 24, 33, .86);
    font-size: 14px;
}

.site-search .search .primary {
    border-radius: 9px;
    padding: 10px 15px;
    background: #d90f2d;
    box-shadow: none;
}

.home-panel {
    padding-top: 10px;
}

.home-panel::before {
    display: none;
}

.home-masthead {
    align-items: center;
    padding: 12px 1px 10px;
    margin-bottom: 13px;
    border-bottom-color: var(--home-line);
}

.home-masthead > div {
    gap: 10px;
}

.home-masthead .mast-kicker {
    color: var(--home-accent);
    font-size: 11px;
    letter-spacing: .13em;
}

.home-masthead strong {
    color: #7f8c9e;
    font-size: 10px;
}

.home-masthead p {
    margin: 0;
    color: #8390a1;
    font-size: 12px;
}

.home-news-lead {
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, .72fr);
    gap: 12px;
    align-items: stretch;
}

.home-panel .news-feature {
    min-height: 340px;
    max-height: none;
    grid-template-columns: minmax(240px, 1.12fr) minmax(0, 1fr);
    border: 1px solid rgba(85, 215, 245, .22);
    border-radius: 13px;
    background: var(--home-surface);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

.home-panel .news-feature .news-visual {
    min-height: 340px;
    height: 100%;
}

.home-panel .news-feature-copy {
    justify-content: center;
    padding: 25px;
    background: linear-gradient(145deg, rgba(15, 22, 31, .97), rgba(9, 14, 21, .98));
}

.home-panel .news-feature h1 {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 10px;
    font-size: clamp(25px, 2.45vw, 36px);
    line-height: 1.08;
    letter-spacing: -.04em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-panel .news-feature-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 10px;
    color: #aeb8c6;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-panel .news-feature .kicker {
    padding: 0;
    background: transparent;
    color: var(--home-accent);
    font-size: 10px;
    letter-spacing: .1em;
}

.home-panel .news-feature .primary {
    align-self: flex-start;
    margin-top: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 11px;
}

.home-panel .news-side-stack {
    max-height: none;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-panel .news-side-card {
    min-height: 0;
    grid-template-columns: 108px minmax(0, 1fr);
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: var(--home-surface);
    box-shadow: none;
}

.home-panel .news-side-card:nth-child(1),
.home-panel .news-side-card:nth-child(2) {
    border-color: var(--home-line);
    box-shadow: none;
}

.home-panel .news-side-card > div:last-child {
    align-self: center;
    padding: 13px;
}

.home-panel .news-side-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 7px;
    font-size: 15px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-panel .news-side-card .kicker {
    padding: 0;
    background: transparent;
    color: #a8ddea;
    font-size: 9px;
    letter-spacing: .08em;
}

.home-panel .news-side-card .news-meta {
    color: #788596;
    font-size: 9px;
    white-space: normal;
}

.home-panel .news-side-card .text-button {
    min-height: 25px;
    margin-top: 3px;
    color: #c4cdd9;
    font-size: 10px;
}

.home-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 14px 0 0;
    padding: 0;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.home-shortcuts button {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 12px 15px;
    border: 0;
    border-right: 1px solid var(--home-line);
    background: transparent;
    color: #e7ebf1;
    text-align: left;
    cursor: pointer;
}

.home-shortcuts button:last-child {
    border-right: 0;
}

.home-shortcuts button:hover,
.home-shortcuts button:focus-visible {
    background: rgba(255, 255, 255, .035);
}

.home-shortcuts strong {
    font-size: 12px;
}

.home-shortcuts span {
    overflow: hidden;
    color: #718094;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-latest,
.home-collector,
.editorial-team {
    margin-top: 52px;
}

.home-section-title {
    margin: 0 0 17px;
}

.home-section-title::after {
    bottom: -8px;
    width: 42px;
    height: 2px;
    background: var(--home-accent);
    opacity: .72;
}

.home-section-title h2 {
    margin-top: 3px;
    font-size: 23px;
    letter-spacing: -.025em;
}

.home-section-title .eyebrow,
.collector-title .eyebrow {
    color: #8394a8;
    font-size: 9px;
    letter-spacing: .14em;
}

.home-section-title .ghost {
    padding: 8px 11px;
    border-color: var(--home-line);
    border-radius: 8px;
    color: #b8c2cf;
    font-size: 10px;
}

.home-news-latest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-panel .news-latest-card,
.home-panel .news-latest-card:nth-child(3n+1),
.home-panel .news-latest-card:nth-child(3n+2),
.home-panel .news-latest-card:nth-child(3n) {
    min-height: 118px;
    grid-template-columns: 105px minmax(0, 1fr);
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: var(--home-surface-soft);
    box-shadow: none;
}

.home-panel .news-latest-card:hover {
    transform: none;
    border-color: var(--home-line-strong);
    box-shadow: none;
}

.home-panel .news-latest-card > div:last-child {
    padding: 13px;
}

.home-panel .news-latest-card h3 {
    margin: 4px 0 6px;
    font-size: 14px;
    line-height: 1.28;
}

.home-panel .news-latest-card .kicker,
.home-panel .news-latest-card .news-meta,
.home-panel .news-latest-card .text-button {
    font-size: 9px;
}

.home-collector {
    padding-top: 28px;
    border-top: 1px solid var(--home-line);
}

.collector-title {
    align-items: start;
}

.collector-title::after {
    background: var(--home-accent);
}

.collector-title p {
    max-width: 600px;
    margin: 7px 0 0;
    color: #8592a2;
    font-size: 13px;
    line-height: 1.5;
}

.home-essentials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-essentials-grid button {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 11px;
    min-width: 0;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--home-line);
    border-radius: 11px;
    background: var(--home-surface-soft);
    color: #edf1f6;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.home-essentials-grid button:hover,
.home-essentials-grid button:focus-visible {
    border-color: rgba(85, 215, 245, .28);
    background: rgba(85, 215, 245, .045);
}

.essential-icon {
    display: grid;
    width: 32px;
    height: 32px;
    grid-row: 1 / 3;
    place-items: center;
    border: 1px solid rgba(85, 215, 245, .18);
    border-radius: 9px;
    color: #bceff9;
    font-size: 14px;
    font-weight: 900;
}

.home-essentials-grid strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-essentials-grid small {
    grid-column: 2 / 4;
    color: #7f8c9d;
    font-size: 10px;
    line-height: 1.4;
}

.essential-arrow {
    color: #778697;
    font-size: 14px;
}

.home-panel .editorial-team {
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--home-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-panel .team-heading {
    padding: 26px 0 15px;
    border: 0;
    background: transparent;
}

.home-panel .team-heading h2 {
    margin-top: 3px;
    color: #dce2ea;
    font-size: 20px;
    font-style: normal;
    font-weight: 750;
    letter-spacing: -.02em;
}

.home-panel .team-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.home-panel .editor-card,
.home-panel .editor-chief {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 13px 8px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
    box-shadow: none;
    text-align: center;
}

.home-panel .editor-card:last-child {
    border-right: 1px solid var(--home-line);
}

.home-panel .editor-avatar {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: none;
}

.home-panel .editor-card h3 {
    margin: 0;
    color: #d7dde6;
    font-size: 11px;
    line-height: 1.25;
}

.home-panel .editor-chief h3::after {
    content: none;
}

.home-panel .editor-card p {
    margin: 3px 0 0;
    color: #748295;
    font-size: 8px;
    line-height: 1.35;
}

.home-panel .editor-chief p::first-line {
    color: inherit;
}

.home-panel .role-badge {
    display: none;
}

.footer {
    margin-top: 42px;
    border-top-color: var(--home-line);
}

@media (max-width: 1180px) {
    .home-news-lead {
        grid-template-columns: minmax(0, 1.3fr) minmax(235px, .7fr);
    }

    .home-panel .news-feature {
        grid-template-columns: 1fr;
    }

    .home-panel .news-feature .news-visual {
        min-height: 200px;
        height: 200px;
    }

    .home-panel .news-feature-copy {
        padding: 18px;
    }

    .home-panel .team-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-panel .editor-card,
    .home-panel .editor-chief {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 1050px) {
    #primaryNav {
        flex-wrap: wrap;
    }

    .home-news-lead {
        grid-template-columns: 1fr 1fr;
    }

    .home-panel .news-feature {
        min-height: 0;
    }

    .home-panel .news-side-stack {
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .home-essentials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-masthead {
        align-items: flex-start;
    }

    .home-masthead p {
        display: none;
    }

    .home-shortcuts {
        grid-template-columns: 1fr 1fr;
    }

    .home-shortcuts button:nth-child(2) {
        border-right: 0;
    }

    .home-shortcuts button:nth-child(-n+2) {
        border-bottom: 1px solid var(--home-line);
    }

    .home-essentials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-panel .team-strip {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 3px;
        scroll-snap-type: x proximity;
    }

    .home-panel .editor-card,
    .home-panel .editor-chief {
        flex: 0 0 205px;
        scroll-snap-align: start;
    }
}

@media (max-width: 650px) {
    .site-search {
        padding-top: 10px;
    }

    .site-search .search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .home-masthead {
        flex-direction: row;
        padding-top: 8px;
    }

    .home-news-lead {
        grid-template-columns: 1fr;
    }

    .home-panel .news-feature .news-visual {
        min-height: 185px;
        height: 185px;
    }

    .home-panel .news-feature-copy {
        padding: 15px;
    }

    .home-panel .news-feature h1 {
        font-size: 23px;
        -webkit-line-clamp: 3;
    }

    .home-panel .news-feature-copy p {
        display: none;
    }

    .home-panel .news-side-card {
        grid-template-columns: 88px minmax(0, 1fr);
        min-height: 100px;
    }

    .home-panel .news-side-card .news-meta {
        display: none;
    }

    .home-shortcuts button {
        padding: 11px;
    }

    .home-shortcuts span {
        display: none;
    }

    .home-latest,
    .home-collector,
    .editorial-team {
        margin-top: 40px;
    }

    .home-news-latest {
        grid-template-columns: 1fr;
    }

    .home-news-latest .news-latest-card:nth-child(n+3) {
        display: none;
    }

    .home-essentials-grid {
        grid-template-columns: 1fr;
    }

    .home-essentials-grid button {
        min-height: 94px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-essentials-grid button {
        transition: none;
    }
}


/* UX hierarchy pass — one obvious action, quieter secondary controls. */
#primaryNav #analysisNav {
    color: #f3fbff;
    background: rgba(85, 215, 245, .10);
    border: 1px solid rgba(85, 215, 245, .20);
}
#primaryNav #analysisNav:hover,
#primaryNav #analysisNav:focus-visible {
    background: rgba(85, 215, 245, .16);
}
.section-head {
    align-items: flex-end;
    gap: 18px;
}
.section-intro {
    max-width: 680px;
    line-height: 1.55;
}
.catalog-tools {
    display: grid;
    grid-template-columns: minmax(180px, .65fr) minmax(260px, 1.35fr) auto;
    gap: 9px;
    align-items: center;
}
.catalog-tools .primary {
    min-height: 42px;
    padding-inline: 18px;
}
.panel .empty {
    max-width: 720px;
    margin-inline: auto;
    padding: 28px 22px;
    line-height: 1.55;
    text-align: center;
}
.actions {
    gap: 7px;
}
.actions .ghost {
    opacity: .88;
}
.actions .ghost:first-child {
    opacity: 1;
}
@media (max-width: 650px) {
    .catalog-tools {
        grid-template-columns: 1fr;
    }
    .catalog-tools .primary {
        width: 100%;
    }
    .section-head {
        align-items: stretch;
    }
    .section-head > .primary {
        width: 100%;
    }
}



/* UX pass 4: keep orientation visible and search destinations reachable. */
.search-destinations { display: flex; flex-wrap: wrap; gap: 8px; }
.search-destinations button { min-height: 44px; }
#searchResult p { margin: 0 0 8px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .home-masthead { flex-wrap: wrap; }
    .home-masthead p { display: block; flex-basis: 100%; margin: 0; }
    #primaryNav button { min-height: 44px; }
}
