/* Final refinements — page titles, Ailleurs hierarchy and full desktop navigation */

/* Global page titles: restore stronger editorial scale across static pages. */
.page-template .article-title {
    font-size: clamp(4.2rem, 6vw, 6.4rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}

/* Le Chronoscope ailleurs: quieter item titles and author names. */
.chrono-ailleurs-item h2 {
    font-size: clamp(1.45rem, 1.8vw, 1.95rem);
    line-height: 1.2;
    letter-spacing: -.012em;
    font-weight: 600;
}
.chrono-ailleurs-meta {
    font-size: .92rem;
    margin-bottom: .65rem;
}

/* Keep the Ailleurs page title clearly readable without becoming oversized. */
.chrono-ailleurs-header h1 {
    font-size: clamp(4.4rem, 6vw, 6.6rem);
}

/* Make the complete desktop header fit on one line, including search. */
@media (min-width: 992px) {
    #gh-head .gh-head-inner {
        column-gap: 12px;
    }
    #gh-head .gh-head-logo {
        font-size: 1.58rem;
        letter-spacing: .045em;
    }
    #gh-head .gh-head-menu .nav {
        gap: 9px;
    }
    #gh-head .gh-head-menu a {
        font-size: 1.04rem;
        letter-spacing: -.005em;
    }
    #gh-head .gh-head-actions {
        gap: 4px;
        flex-shrink: 0;
    }
    #gh-head .gh-search {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 700px) {
    .page-template .article-title {
        font-size: clamp(3.4rem, 11vw, 4.8rem);
    }
    .chrono-ailleurs-header h1 {
        font-size: 4.2rem;
    }
    .chrono-ailleurs-item h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================
   CHRONOSCOPE — BOUTON PDF (style de base, partagé par la barre
   flottante et le bouton fixe des métadonnées de l'entretien)
   ========================================================== */
.chrono-pdf-bar-label {
    color: #18293d;
    font-family: var(--font-sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.chrono-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1.35rem;
    border: 1px solid #7A3E48;
    border-radius: 0;
    background: #7A3E48;
    color: #fff;
    font-family: var(--font-sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
}
.chrono-pdf-button:hover,
.chrono-pdf-button:focus-visible { background:#18293d; border-color:#18293d; }
.chrono-pdf-button[disabled] { opacity: .65; cursor: default; }
/* Le bouton fixe des métadonnées reprend le même style que la barre
   flottante, en plus compact pour s'aligner avec les autres lignes
   (Date, Lecture) du bloc. */
.chrono-pdf-button-inline {
    padding: .55rem .95rem;
    font-size: 1rem;
}

/* ==========================================================
   CHRONOSCOPE — PDF BAR / FINAL CLEAN OVERRIDE
   ========================================================== */
body:has(.chrono-post-page) #gh-head {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 50000 !important;
}
body:has(.chrono-post-page) .site-content {
    padding-top: var(--chrono-header-height, 88px) !important;
}
body:has(.chrono-post-page) .chrono-pdf-bar {
    position: fixed !important;
    top: var(--chrono-header-height, 88px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    display: block !important;
    z-index: 49000 !important;
    background: #f7f3ed !important;
    border-bottom: 1px solid rgba(47,43,40,.16) !important;
    box-shadow: 0 3px 12px rgba(47,43,40,.08) !important;
    transform: translate3d(0,-120%,0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .22s ease, opacity .18s ease, visibility 0s linear .22s !important;
}
body:has(.chrono-post-page) .chrono-pdf-bar.is-visible {
    transform: translate3d(0,0,0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .22s ease, opacity .18s ease !important;
}
body:has(.chrono-post-page) .chrono-pdf-bar-inner {
    width: min(132rem, calc(100% - 4rem)) !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
body:has(.chrono-post-page) .chrono-pdf-bar-label {
    display: inline-block !important;
}
body:has(.chrono-post-page) .chrono-pdf-button {
    margin: 0 0 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
}
@media (max-width: 767px) {
    body:has(.chrono-post-page) .site-content { padding-top: var(--chrono-header-height, 64px) !important; }
    body:has(.chrono-post-page) .chrono-pdf-bar { height: 54px !important; min-height:54px !important; }
    body:has(.chrono-post-page) .chrono-pdf-bar-inner { width:calc(100% - 2.4rem) !important; height:54px !important; min-height:54px !important; }
    body:has(.chrono-post-page) .chrono-pdf-bar-label { display:none !important; }
}

@media print {
    .chrono-pdf-bar,#gh-head,.gh-head,.footer-cta,.article-comments,.chrono-newsletter-cta,.chrono-post-nav,.chrono-post-end-rule,.read-more-wrap { display:none !important; }
    html,body { background:#f7f3ed !important; }
    *,*::before,*::after { -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important; }
}

/* ==========================================================
   CHRONOSCOPE — FINITIONS ENTRETIENS / BANDEAU PDF
   ========================================================== */

/* L'introduction de l'entretien suit la même justification que le corps. */
.chrono-editorial-excerpt {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
}

/* Les questions d'entretien sont également justifiées, tout en conservant
   leur couleur et leur graisse éditoriales. */
.chrono-editorial-content .chrono-interview-question,
.chrono-editorial-content .chrono-interview-question * {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
}

/* Sur la barre flottante, seul le bouton PDF est affiché. */
body:has(.chrono-post-page) .chrono-pdf-bar-label {
    display: none !important;
}

body:has(.chrono-post-page) .chrono-pdf-button {
    margin-left: auto !important;
}

@media (max-width: 640px) {
    .chrono-editorial-excerpt {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

/* CHRONOSCOPE — justification du texte éditorial dans le contenu de l'entretien. */
.chrono-editorial-content p {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
}
