/* Génération Transmission — overrides on top of Source (built/screen.css). */

@font-face {
    font-family: "Newsreader";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/newsreader-roman.woff2") format("woff2");
}

:root {
    --gt-yellow: #cca637;
    --gt-navy: #1b325a;
    --gt-navy-soft: #eef1f6;
    --gt-ink: #0f1a2e;
    --gt-radius: 14px;
    --gt-radius-s: 8px;
    --gt-shadow: 0 18px 48px rgba(15, 26, 46, 0.14);
    --gt-font-display: "Newsreader", Georgia, "Times New Roman", serif;
}

/* Tagline under the navigation (client's "bandeau") */
.bandeau {
    padding: 10px max(4vmin, 20px);
    text-align: center;
    background: var(--gt-navy);
    color: #fff;
}
.bandeau p {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
}

/* "Abonnez-vous" buttons: logo yellow, black text */
.gh-navigation-members .gh-button,
.gh-cta .gh-button,
.gh-footer-signup .gh-button,
.gt-button {
    background-color: var(--gt-yellow);
    color: #000;
}
.gh-navigation-members .gh-button:hover,
.gt-button:hover {
    opacity: 0.9;
}

/* Dropdown menus on hover / keyboard focus (desktop): rounded panel, items with a short description */
@media (min-width: 768px) {
    #gh-navigation .nav > li.gt-has-submenu {
        position: relative;
    }
    #gh-navigation .nav > li.gt-has-submenu > a::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-left: 7px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: translateY(-3px) rotate(45deg);
        transition: transform 0.2s ease;
    }
    #gh-navigation .nav > li.gt-has-submenu:hover > a::after,
    #gh-navigation .nav > li.gt-has-submenu:focus-within > a::after {
        transform: translateY(0) rotate(225deg);
    }
    #gh-navigation .gt-submenu {
        position: absolute;
        top: calc(100% + 14px);
        left: -24px;
        z-index: 100;
        display: grid;
        gap: 4px;
        min-width: 300px;
        margin: 0;
        padding: 12px;
        list-style: none;
        background: #fff;
        border-radius: var(--gt-radius);
        box-shadow: var(--gt-shadow);
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }
    #gh-navigation .gt-submenu.is-wide {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        min-width: 540px;
    }
    /* Invisible bridge so the pointer can travel from the item to the panel */
    #gh-navigation .gt-submenu::before {
        content: "";
        position: absolute;
        top: -14px;
        right: 0;
        left: 0;
        height: 14px;
    }
    #gh-navigation .gt-has-submenu:hover > .gt-submenu,
    #gh-navigation .gt-has-submenu:focus-within > .gt-submenu {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    #gh-navigation .gt-submenu li {
        display: block;
        margin: 0;
    }
    #gh-navigation .gt-submenu a {
        display: block;
        padding: 10px 14px;
        font-size: 1.5rem;
        font-weight: 600;
        white-space: normal;
        color: var(--gt-ink);
        border-radius: var(--gt-radius-s);
    }
    #gh-navigation .gt-submenu a small {
        display: block;
        margin-top: 2px;
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.4;
        color: var(--color-secondary-text);
    }
    #gh-navigation .gt-submenu a:hover {
        background: var(--gt-navy-soft);
        opacity: 1;
    }
    /* Source's overflow "…" menu must not clip the dropdowns */
    #gh-navigation .nav {
        overflow: visible;
    }
}

/* Mobile menu: only the sections (each links to its page); sub-items would push the menu off-screen */
@media (max-width: 767px) {
    #gh-navigation .gt-submenu {
        display: none;
    }
}

/* Third column of the home header: compact cards, the tag (surtitre) is shown */
.gh-header.is-highlight .gh-featured-feed .gh-card-tag {
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

/* Compact "Abonnez-vous" block on the home page */
.gh-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 32px;
    text-align: left;
}
.gh-cta-title {
    font-size: 2.2rem;
}
.gh-cta-description {
    margin-top: 4px;
    font-size: 1.6rem;
}
.gh-cta .gh-form {
    flex-shrink: 0;
    width: min(420px, 100%);
}
@media (max-width: 767px) {
    .gh-cta-inner {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Home feed: 2 rows of 3, then "Voir les articles suivants" */
@media (min-width: 992px) {
    .home-template .gh-container.is-grid .gh-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}
.home-template .gh-more {
    display: block;
}

/* Post pages: feature image limited to the text column */
.post-template .gh-article-image {
    grid-column: main;
}

/* Breadcrumb */
.gt-breadcrumb {
    margin-top: 32px;
    font-size: 1.3rem;
    color: var(--color-secondary-text);
}
.gt-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gt-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
}
.gt-breadcrumb li[aria-current] {
    overflow: hidden;
    max-width: 40ch;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tag-template .gt-breadcrumb {
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
}

/* Footer: three link columns */
.gh-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
}
.gh-footer-menu-colonne,
.gh-footer-menu-colonne .nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gh-footer-copyright {
    margin-top: 32px;
    white-space: normal; /* Source sets nowrap: the long publisher line widened the page on mobile */
    font-size: 1.3rem;
    color: var(--color-secondary-text);
}

/* Ad slots (#pub-bandeau, #pub-colonne) */
.gt-pub {
    margin: 24px 0 0;
}
.gt-pub-inner {
    text-align: center;
}
.gt-pub-label {
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-secondary-text);
}
.gt-pub img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.gt-pub-bandeau img {
    max-width: 970px;
}
.gt-pub-colonne {
    margin: 0 0 24px;
}

/* Subscription & donations page */
.gt-offres-grid {
    display: grid;
    gap: 32px;
    margin-top: 40px;
}
.gt-offre {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--gt-navy);
}
.gt-offre-premium {
    border-top-color: var(--gt-yellow);
}
.gt-offre h2 {
    margin: 0 0 12px;
    font-size: 2.6rem;
}
.gt-offre p,
.gt-offre li {
    font-size: 1.7rem;
    line-height: 1.5;
}
.gt-offre ul {
    margin: 12px 0;
    padding-left: 20px;
}
.gt-price {
    font-weight: 700;
}
.gt-offre .gt-button {
    display: inline-flex;
    margin-top: 16px;
}
.gt-offre-ok {
    font-weight: 600;
    color: var(--gt-navy);
}
.gt-signup-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}
.gt-signup-form label {
    display: grid;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 600;
}
.gt-signup-form input,
.gt-signup-form select {
    width: 100%;
    padding: 10px 12px;
    font-size: 1.6rem;
    font-weight: 400;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
}
.gt-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .gt-field-row {
        grid-template-columns: 1fr;
    }
}
.gt-consent {
    margin: 0;
    font-size: 1.4rem !important;
    color: var(--color-secondary-text);
}
.gt-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.gt-signup-form .gt-button {
    justify-self: start;
    margin-top: 0;
}
.gt-label-loading,
.gt-label-success,
.gt-signup-form.loading .gt-label-default,
.gt-signup-form.success .gt-label-default {
    display: none;
}
.gt-signup-form.loading .gt-label-loading,
.gt-signup-form.success .gt-label-success {
    display: inline;
}
.gt-form-error {
    margin: 0;
    color: #b00020;
}

/* Tally embeds */
.gt-tally {
    width: 100%;
    border: 0;
}

/* ───────────────── Refresh 02/11: modern editorial look ───────────────── */

/* Display serif for editorial titles, Inter stays for the interface.
   Source sets titles with font-family: var(--gh-font-heading, …) behind a very specific selector,
   so we set that variable on the title elements themselves. */
.gh-viewport :is(.gh-card-title, .gh-article-title, .gh-header-title, .gh-cta-title, .gh-footer-signup-header,
    .gh-container-title, .gt-offre h2, .gh-content > h2, .gh-content > h3) {
    --gh-font-heading: var(--gt-font-display);
    font-family: var(--gt-font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.gh-article-title {
    font-weight: 650;
    letter-spacing: -0.015em;
}

/* Header: sticky, white, a soft shadow once the page scrolls */
.gh-navigation {
    position: sticky;
    top: 0;
    z-index: 90;
    height: 84px;
    background: #fff;
    color: var(--gt-ink);
    transition: box-shadow 0.2s ease;
}
.gh-navigation.is-scrolled {
    box-shadow: 0 6px 24px rgba(15, 26, 46, 0.08);
}
/* Tighter menu so every section (Agenda included) fits without Source's "…" overflow */
.gh-navigation .nav {
    gap: 18px;
}
@media (min-width: 992px) {
    .gh-navigation.is-left-logo .gh-navigation-menu {
        margin-right: 24px;
    }
}
.gh-navigation .nav a {
    font-size: 1.5rem;
    font-weight: 500;
}
.gh-navigation .nav a:hover {
    color: var(--gt-navy);
    opacity: 1;
}
.gh-navigation-members .gh-button,
.gh-button {
    border-radius: var(--gt-radius-s);
    font-weight: 600;
}
.gh-navigation-members .gh-button {
    padding: 10px 18px;
}

/* Tagline band */
.bandeau {
    padding: 8px max(4vmin, 20px);
}
.bandeau p {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Cards: rounded images with a gentle zoom, tags as pills */
.gh-card-image {
    overflow: hidden;
    border-radius: var(--gt-radius);
}
.gh-card-image img {
    transition: transform 0.5s ease;
}
.gh-card-link:hover .gh-card-image img {
    transform: scale(1.04);
}
.gh-card-link:hover {
    opacity: 1;
}
.gh-card-link:hover .gh-card-title {
    color: var(--gt-navy);
    opacity: 1;
}
.gh-card-tag {
    display: inline-block;
    width: fit-content;
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gt-navy);
    background: var(--gt-navy-soft);
    border-radius: 999px;
}
.gh-header.is-highlight .gh-featured-feed .gh-card-tag {
    display: inline-block;
}
.gh-card-title {
    line-height: 1.2;
}
.gh-card-meta {
    font-size: 1.25rem;
    color: var(--color-secondary-text);
}

/* Lighter separators */
.gh-header.is-highlight .gh-header-middle,
.gh-header.is-highlight .gh-header-right,
.gh-header.is-highlight .gh-featured-feed .gh-card + .gh-card,
.home-template .gh-feed .gh-card::before {
    border-color: rgba(15, 26, 46, 0.08);
}

/* Section titles with a thin rule, like an editorial index */
.gh-container-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2.4rem;
    text-transform: none;
    letter-spacing: -0.01em;
}
.gh-container-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 26, 46, 0.12);
}

/* "Voir les articles suivants" */
.gh-more {
    font-family: inherit;
}
.gh-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gt-navy);
    border: 1px solid rgba(27, 50, 90, 0.25);
    border-radius: 999px;
    transition: background 0.2s ease;
}
.gh-more a:hover {
    background: var(--gt-navy-soft);
    opacity: 1;
}

/* Newsletter block and footer signup: soft panels */
.gh-cta-inner {
    background: var(--gt-navy-soft);
    border-radius: calc(var(--gt-radius) + 4px);
}
.gh-form {
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 26, 46, 0.1);
}
.gh-form .gh-button {
    border-radius: 999px;
}

/* Post pages: rounded feature image, pill tag */
.gh-article-image img {
    border-radius: var(--gt-radius);
}
.gh-article-tag {
    display: inline-block;
    width: fit-content;
    padding: 3px 10px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gt-navy) !important;
    background: var(--gt-navy-soft);
    border-radius: 999px;
}

/* Subscription page cards and ad slots follow the same radius */
.gt-offre {
    border-radius: var(--gt-radius);
    border-top-width: 1px;
    box-shadow: inset 0 4px 0 var(--gt-navy);
}
.gt-offre-premium {
    box-shadow: inset 0 4px 0 var(--gt-yellow);
}
.gt-pub img {
    border-radius: var(--gt-radius-s);
}
.gt-signup-form input,
.gt-signup-form select {
    border-radius: var(--gt-radius-s);
}

/* Footer */
.gh-footer {
    border-top: 1px solid rgba(15, 26, 46, 0.08);
}

.gh-footer-copyright a { text-decoration: underline; text-underline-offset: 2px; }
