:root {
    --bg: #f4f5f7;
    --paper: #ffffff;
    --ink: #121212;
    --muted: #5c6370;
    --line: #e2e5eb;
    --blue: #0055a4;
    --red: #e30613;
    --max: 1180px;
    --sans: "Libre Franklin", system-ui, sans-serif;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.gj-preview {
    background: var(--red); color: #fff; text-align: center;
    padding: .55rem 1rem; font-size: .85rem; font-weight: 600;
}
.gj-preview a { text-decoration: underline; }

/* —— Header —— */
.gj-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.gj-topbar {
    border-bottom: 1px solid var(--line);
    background: #fafbfc;
    font-size: .78rem;
    color: var(--muted);
}
.gj-topbar-inner,
.gj-masthead,
.gj-nav-wrap,
.gj-main,
.gj-footer-inner {
    width: min(var(--max), calc(100% - 1.5rem));
    margin: 0 auto;
}
.gj-topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; min-height: 36px;
}
.gj-topbar-left, .gj-topbar-right { display: flex; align-items: center; gap: .85rem; }
.gj-topbar a:hover { color: var(--blue); }
.gj-live {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--red); font-weight: 700;
}
.gj-live i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--red);
    box-shadow: 0 0 0 0 rgba(227, 6, 19, .55);
    animation: gjPulse 1.6s ease-out infinite;
}
@keyframes gjPulse {
    70% { box-shadow: 0 0 0 8px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.gj-masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0 1rem;
}
.gj-brand {
    text-align: center;
    justify-self: center;
}
.gj-brand-kicker {
    display: block;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: .2rem;
}
.gj-brand-name {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--ink);
}

.gj-search {
    display: flex; align-items: center;
    max-width: 240px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fafbfc;
    overflow: hidden;
}
.gj-search input {
    border: 0; background: transparent; outline: none;
    padding: .55rem .85rem; width: 100%;
    font: inherit; font-size: .82rem;
}
.gj-search button {
    border: 0; background: transparent; padding: .55rem .8rem;
    cursor: pointer; color: var(--muted); font-size: 1rem;
}
.gj-quick {
    justify-self: end;
    display: flex; align-items: center; gap: .5rem;
}
.gj-quick-btn {
    display: inline-flex; align-items: center;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}
.gj-burger {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
}

.gj-nav-wrap { border-top: 1px solid var(--line); }
.gj-nav {
    display: flex; flex-wrap: wrap; gap: 0;
    list-style: none; margin: 0; padding: 0;
    overflow-x: auto;
}
.gj-nav a {
    display: block;
    padding: .85rem .95rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.gj-nav a:hover { color: var(--blue); }
.gj-nav a.is-active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.gj-main { padding: 1.25rem 0 3rem; }

.gj-kicker {
    display: inline-block;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}
.gj-meta {
    display: flex; flex-wrap: wrap; gap: .35rem 1rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 500;
}
.gj-btn {
    display: inline-flex; align-items: center;
    padding: .7rem 1.1rem;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}
.gj-empty, .gj-empty-page {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
}
.gj-empty-page h1 {
    font-family: var(--serif);
    margin: .4rem 0 1rem;
}

/* —— Une —— */
.gj-une {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
    gap: 1.15rem;
    margin-bottom: 1.75rem;
}
.gj-hero {
    background: var(--paper);
    border: 1px solid var(--line);
    display: grid;
    grid-template-rows: auto 1fr;
}
.gj-hero-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #dfe3ea;
    overflow: hidden;
}
.gj-hero-copy { padding: 1.15rem 1.25rem 1.35rem; }
.gj-hero h1 {
    margin: 0 0 .7rem;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.4vw, 2.45rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.02em;
}
.gj-hero h1 a:hover { color: var(--blue); }
.gj-chapo {
    margin: 0 0 .9rem;
    color: #2c3340;
    font-size: 1.05rem;
    line-height: 1.5;
}

.gj-livefeed {
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.gj-livefeed-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #fafbfc;
}
.gj-livefeed-head h2 {
    margin: 0;
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.gj-livefeed-head h2 i {
    width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.gj-livefeed-head span {
    font-size: .78rem; font-weight: 700; color: var(--muted);
}
.gj-livefeed-list {
    list-style: none; margin: 0; padding: 0;
    flex: 1;
}
.gj-livefeed-list li { border-bottom: 1px solid var(--line); }
.gj-livefeed-list a {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: .7rem;
    padding: .8rem 1rem;
    align-items: start;
}
.gj-livefeed-list a:hover span { color: var(--blue); }
.gj-livefeed-list time {
    font-size: .78rem;
    font-weight: 800;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}
.gj-livefeed-list span {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
}

/* —— Rubriques —— */
.gj-section {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.1rem 1.15rem 1.25rem;
    margin-bottom: 1.15rem;
}
.gj-section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: .95rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--ink);
}
.gj-section-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.gj-section-head h2 a:hover { color: var(--blue); }
.gj-more {
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue);
}

.gj-rubrique {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.15rem;
}
.gj-rubrique-lead {
    display: grid;
    gap: .75rem;
}
.gj-rubrique-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #dfe3ea;
    overflow: hidden;
}
.gj-rubrique-lead h3 {
    margin: 0 0 .4rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.2;
}
.gj-rubrique-lead h3 a:hover { color: var(--blue); }
.gj-rubrique-lead p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}
.gj-rubrique-list {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--line);
}
.gj-mini {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.gj-mini:hover strong { color: var(--blue); }
.gj-mini-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    background: #dfe3ea;
    overflow: hidden;
}
.gj-mini strong {
    display: block;
    font-size: .92rem;
    line-height: 1.3;
    font-weight: 700;
}
.gj-mini em {
    display: block;
    margin-top: .25rem;
    font-style: normal;
    font-size: .75rem;
    color: var(--muted);
    font-weight: 600;
}

/* —— Bottom —— */
.gj-bottom {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1.15rem;
}
.gj-regions, .gj-rank-block {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.1rem 1.15rem 1.25rem;
}
.gj-regions .gj-section-head { margin-bottom: .85rem; }
.gj-region-chips {
    display: flex; flex-wrap: wrap; gap: .4rem;
    margin-bottom: .9rem;
}
.gj-region-chips a {
    padding: .35rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: #fafbfc;
}
.gj-region-chips a:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.gj-region-list {
    display: flex; flex-direction: column;
}
.gj-region-list a {
    padding: .75rem 0;
    border-top: 1px solid var(--line);
}
.gj-region-list a:hover strong { color: var(--blue); }
.gj-region-list strong {
    display: block;
    font-size: .95rem;
    line-height: 1.3;
}

.gj-rankings { display: grid; gap: 1.15rem; }
.gj-rank-block h2 {
    margin: 0 0 .85rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}
.gj-rank-block ol {
    list-style: none; margin: 0; padding: 0;
    counter-reset: none;
}
.gj-rank-block li { border-bottom: 1px solid var(--line); }
.gj-rank-block a {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .65rem;
    align-items: start;
    padding: .7rem 0;
}
.gj-rank-block a:hover span:last-child { color: var(--blue); }
.gj-rank {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}
.gj-rank-block a span:last-child {
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.35;
}

/* —— Cards —— */
.gj-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}
.gj-card {
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.gj-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #dfe3ea;
}
.gj-card-body { padding: .85rem .9rem 1rem; }
.gj-card h3 {
    margin: 0 0 .4rem;
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.25;
}
.gj-card h3 a:hover { color: var(--blue); }
.gj-card p {
    margin: 0 0 .55rem;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gj-card time {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 600;
}

.gj-fallback {
    display: grid; place-content: center;
    width: 100%; height: 100%; min-height: 80px;
    background: linear-gradient(135deg, #e8ecf2, #d5dbe6);
    color: #7a8494;
    font-weight: 800;
    letter-spacing: .08em;
}
.gj-fallback-lg { min-height: 220px; font-size: 2rem; }

/* —— Article —— */
.gj-article {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.4rem clamp(1rem, 3vw, 2rem) 2rem;
    margin-bottom: 1.15rem;
    max-width: 780px;
}
.gj-breadcrumb {
    display: flex; flex-wrap: wrap; gap: .4rem;
    font-size: .78rem; color: var(--muted); margin-bottom: .9rem;
}
.gj-breadcrumb a:hover { color: var(--blue); }
.gj-article h1 {
    margin: 0 0 .75rem;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.12;
}
.gj-article-cover {
    margin: 1.25rem 0 1.4rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe3ea;
}
.gj-article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1c2230;
}
.gj-article-body p { margin: 0 0 1.1rem; }
.gj-article-body h2, .gj-article-body h3 {
    font-family: var(--serif);
    margin: 1.6rem 0 .7rem;
}
.gj-tags {
    display: flex; flex-wrap: wrap; gap: .4rem;
    margin-top: 1.5rem;
}
.gj-tags span {
    padding: .25rem .55rem;
    border: 1px solid var(--line);
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
}
.gj-source { margin-top: 1.5rem; }

/* —— Footer —— */
.gj-footer {
    background: #111827;
    color: rgba(255,255,255,.72);
    margin-top: 1rem;
}
.gj-footer-inner { padding: 2rem 0 1.5rem; }
.gj-footer-brand strong {
    display: block;
    color: #fff;
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: .35rem;
}
.gj-footer-brand p { margin: 0 0 1.25rem; font-size: .9rem; }
.gj-footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.gj-footer-cols h3 {
    margin: 0 0 .55rem;
    color: #fff;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.gj-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.gj-footer-cols li { margin: 0 0 .35rem; }
.gj-footer-cols a:hover { color: #fff; }
.gj-footer-copy {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1rem;
    font-size: .78rem;
}

@media (max-width: 960px) {
    .gj-une, .gj-rubrique, .gj-bottom { grid-template-columns: 1fr; }
    .gj-masthead { grid-template-columns: 1fr auto; }
    .gj-search { display: none; }
    .gj-burger { display: inline-flex; align-items: center; justify-content: center; }
    .gj-nav {
        display: none;
        flex-direction: column;
        border-top: 1px solid var(--line);
    }
    .gj-nav.is-open { display: flex; }
}
@media (max-width: 640px) {
    .gj-topbar-left time { display: none; }
    .gj-brand-name { font-size: 1.8rem; }
    .gj-quick-btn { display: none; }
}
