/* ==========================================================================
   Page d'une analyse — « retour à la charte »
   --------------------------------------------------------------------------
   Intégrée le 5 décembre 2026 depuis la maquette « Analyse v1 ». Ce qui est
   commun à toutes les pages d'analyse reprend la charte et le vocabulaire
   des pages Services et Analyses : papier blanc, textes en Spectral,
   graphite pour la lecture, ardoise pour les textes annexes, filets, bleu
   seulement pour ce qui se clique.

   - le haut de nuit : fil d'Ariane, thème en pastille, titre, chapô,
     signature en toutes lettres, motif « une ligne lue et annotée » ;
   - le texte couvre la colonne de contenu du site — le même cadre que les
     pages d'accueil, Services et Analyses — et se justifie, avec césure
     française ;
   - le sommaire rédigé dans l'article : dans une colonne à gauche, collante,
     sur grand écran ; replié en une ligne ailleurs ;
   - l'expertise liée et « À lire ensuite » ferment la page.

   Cette page a sa feuille propre (site.css ne change pas). Toutes les
   règles sont rattachées à la page (body.page-analyse). Aucun style en
   ligne (CSP : style-src 'self').

   Le gabarit fixe les valeurs retenues sur <html> (data-an-…) : ambiance,
   texte, sommaire, fil, theme, signature, filets, tableaux, code, alerte,
   expertise, ensuite, motif, progression.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Socle : page de papier, mesures
   -------------------------------------------------------------------------- */

.page-analyse {
    /* Colonne du sommaire et espace qui la sépare du texte. */
    --an-rail: 15rem;
    --an-entre: clamp(2.5rem, 4vw, 4rem);
    /* L'ardoise d'origine, pour les textes annexes : dates, légendes. */
    --an-ardoise: var(--color-slate);
    /* Corps du texte : 17 px sur téléphone, 20 px à partir de 1440 px et
       22 px sur les grands moniteurs. La taille suit l'élargissement de la
       colonne pour garder une longueur de ligne lisible. */
    --an-corps: clamp(1.0625rem, 0.95rem + 0.35vw, 1.375rem);
    background: var(--color-paper);
    color: var(--color-graphite);
    line-height: 1.6;
}

.page-analyse .site-main {
    /* Comme sur les pages Services et Analyses : les textes de lecture
       prennent le graphite de la charte, plus net que le gris ardoise. */
    --color-slate: var(--color-graphite);
}

/* Texte courant en Spectral, comme les pages Services et Analyses. */
html[data-an-texte="spectral"] .page-analyse .site-main {
    --font-body: var(--font-display);
}

.page-analyse .an-article {
    font-family: var(--font-body);
    overflow-x: clip;
}

/* --------------------------------------------------------------------------
   2. La grille de la page : le même conteneur que les autres pages
   (--content-width, celui de l'en-tête, de l'accueil, de Services et des
   Analyses), gouttières du site comprises. Avec le sommaire en marge, une
   colonne de plus à gauche, à l'intérieur de ce conteneur. Chaque bande du
   haut, du corps et de fin pose son contenu dessus.
   -------------------------------------------------------------------------- */

.page-analyse .an-cadre {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
    margin-inline: auto;
}

.page-analyse .an-cadre > * {
    grid-column: 1;
    min-width: 0;
}

@media (min-width: 1280px) {
    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-cadre {
        grid-template-columns: var(--an-rail) minmax(0, 1fr);
        column-gap: var(--an-entre);
    }

    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-cadre > * {
        grid-column: 2;
    }
}

/* Les éléments larges (tableaux, code, images, couverture, « À lire
   ensuite ») prennent toute la colonne de texte : celle-ci occupe déjà la
   largeur restante du conteneur, il n'y a plus de mesure à déborder. */
.page-analyse :is(.an-couverture, .article-related, .an-texte > .code-block, .an-texte > .article-image, .an-texte .article-table) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* --------------------------------------------------------------------------
   3. Le haut de l'analyse : fil d'Ariane, thème, titre, chapô, signature
   -------------------------------------------------------------------------- */

.page-analyse .an-tete {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-paper);
    color: var(--color-graphite);
}

.page-analyse .an-tete__cadre {
    position: relative;
    z-index: 2;
    padding-top: clamp(8rem, 14vh, 10rem);
    padding-bottom: clamp(2.5rem, 5vh, 3.5rem);
}

/* Apparition en cascade des cinq lignes du haut, comme sur les héros. */
.js .page-analyse .an-tete__cadre > [data-reveal]:nth-child(2) {
    transition-delay: 90ms;
}

.js .page-analyse .an-tete__cadre > [data-reveal]:nth-child(3) {
    transition-delay: 180ms;
}

.js .page-analyse .an-tete__cadre > [data-reveal]:nth-child(4) {
    transition-delay: 270ms;
}

.js .page-analyse .an-tete__cadre > [data-reveal]:nth-child(5) {
    transition-delay: 360ms;
}

/* Le fil d'Ariane : les pages qui mènent à l'analyse. L'analyse elle-même
   n'y est répétée que sur demande : le titre suit aussitôt. */
.page-analyse .an-fil {
    margin: 0 0 0.75rem;
    color: var(--an-ardoise);
    font-size: 1rem;
    line-height: 1.5;
}

.page-analyse .an-fil ol {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.55rem;
    list-style: none;
}

.page-analyse .an-fil li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.page-analyse .an-fil li + li::before {
    content: "/";
}

.page-analyse .an-fil a {
    position: relative;
    min-height: 2.75rem;
    margin-inline: -0.3rem;
    padding-inline: 0.3rem;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

.page-analyse .an-fil a:hover,
.page-analyse .an-fil a:focus-visible {
    color: var(--color-blue);
}

.page-analyse .an-fil li.an-fil__ici {
    display: none;
}

html[data-an-fil="titre"] .page-analyse .an-fil__ici {
    display: inline;
}

/* Le thème mène aux analyses du même thème ; le format (rapport,
   webinaire) le suit, en toutes lettres. */
.page-analyse .an-origine {
    margin: 0 0 0.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.35rem;
    color: var(--an-ardoise);
    font-size: 1rem;
    line-height: 1.5;
}

.page-analyse .an-origine__lien {
    position: relative;
    min-height: 2.75rem;
    margin-inline: -0.3rem;
    padding-inline: 0.3rem;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(54, 80, 116, 0.38);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
    transition: color 160ms ease;
}

.page-analyse .an-origine__lien:hover,
.page-analyse .an-origine__lien:focus-visible {
    color: var(--color-blue);
}

.page-analyse .an-origine__format::before {
    margin: 0 0.35rem;
    content: "·";
}

.page-analyse .an-origine__format--seul::before {
    content: none;
}

/* Le thème en pastille, comme aujourd'hui. */
html[data-an-theme="pastille"] .page-analyse .an-origine__lien {
    min-height: 0;
    margin-bottom: 0.35rem;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    background: var(--color-paper-blue);
    color: var(--color-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

html[data-an-theme="pastille"] .page-analyse .an-origine__lien::before {
    position: absolute;
    inset: -0.6rem -0.3rem;
    content: "";
}

.page-analyse .an-titre {
    /* Le titre prend la largeur de la colonne de lecture, à l'intérieur du
       conteneur du site. */
    width: 100%;
    margin: 0;
    color: inherit;
    font-family: var(--font-display);
    font-size: clamp(2.125rem, 1rem + 2.6vw, 3.125rem);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.08;
    text-wrap: balance;
}

.page-analyse .an-chapo {
    margin: 1.5rem 0 0;
    font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.4375rem);
    line-height: 1.5;
    text-wrap: pretty;
}

/* La signature : « Par », le nom, la fonction ; dessous la date, le temps
   de lecture et, s'il y a lieu, la mise à jour. Pas de pastille : la
   signature est en toutes lettres. */
.page-analyse .an-signature {
    margin-top: 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.page-analyse .an-signature__pastille {
    display: none;
}

.page-analyse .an-signature__qui {
    margin: 0;
}

.page-analyse .an-signature__mot,
.page-analyse .an-signature__virgule,
.page-analyse .an-signature__role {
    color: var(--an-ardoise);
}

.page-analyse .an-signature__nom {
    color: inherit;
    font-weight: 600;
}

.page-analyse .an-signature__meta {
    margin: 0.35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.1rem;
    color: var(--an-ardoise);
}

/* La signature avec sa pastille (photo ou initiales), comme aujourd'hui :
   l'identité à gauche, la date à droite. */
html[data-an-signature="pastille"] .page-analyse .an-signature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

html[data-an-signature="pastille"] .page-analyse .an-signature__pastille {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-paper-blue);
    color: var(--color-blue-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

html[data-an-signature="pastille"] .page-analyse .an-signature__pastille img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[data-an-signature="pastille"] .page-analyse .an-signature__texte {
    display: contents;
}

html[data-an-signature="pastille"] .page-analyse .an-signature__mot,
html[data-an-signature="pastille"] .page-analyse .an-signature__virgule {
    display: none;
}

html[data-an-signature="pastille"] .page-analyse .an-signature__role {
    display: block;
    margin-top: 0.1rem;
}

html[data-an-signature="pastille"] .page-analyse .an-signature__meta {
    margin-top: 0;
    font-size: 0.88rem;
}

/* Grand écran et sommaire en marge : le thème et la signature passent dans
   la colonne de gauche, le titre et le chapô prennent toute la colonne de
   lecture. */
@media (min-width: 1280px) {
    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-fil {
        grid-row: 1;
    }

    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-titre {
        grid-row: 2;
    }

    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-chapo {
        grid-row: 3;
    }

    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-origine {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        margin-top: 0.35rem;
    }

    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-signature {
        grid-column: 1;
        grid-row: 2 / 4;
        align-self: end;
        margin-top: 2rem;
    }

    html[data-an-sommaire="marge"][data-an-theme="pastille"] .page-analyse .an-article--sommaire .an-origine {
        margin-top: 0;
    }

    /* Dans la colonne de gauche, la date et le temps de lecture se lisent
       en deux lignes. */
    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-signature__meta {
        flex-direction: column;
        gap: 0.1rem;
    }

    html[data-an-sommaire="marge"][data-an-signature="pastille"] .page-analyse .an-article--sommaire .an-signature {
        align-items: start;
        flex-direction: column;
        justify-content: flex-start;
    }
}

/* En dessous de 700 px, l'en-tête du site est moins haut. */
@media (max-width: 699.98px) {
    .page-analyse .an-tete__cadre {
        padding-top: 6.75rem;
    }
}


/* --------------------------------------------------------------------------
   3 bis. Le haut de nuit : les deux encres et le halo du héros de la page
   Analyses ; « une ligne lue et annotée » court sous le titre, d'un bord à
   l'autre, sur grand écran seulement.
   -------------------------------------------------------------------------- */

html[data-an-ambiance="nuit"] .page-analyse .an-tete {
    --an-ardoise: rgba(255, 255, 255, 0.78);
    background-color: var(--color-obsidian-soft);
    background-image:
        radial-gradient(ellipse at 78% 46%, rgba(11, 92, 255, 0.2), transparent 34%),
        linear-gradient(118deg, var(--color-obsidian) 30%, var(--color-obsidian-soft) 100%);
    color: var(--color-white);
}

html[data-an-ambiance="nuit"] .page-analyse .an-fil a {
    color: var(--color-muted);
}

html[data-an-ambiance="nuit"] .page-analyse .an-fil a:hover,
html[data-an-ambiance="nuit"] .page-analyse .an-fil a:focus-visible,
html[data-an-ambiance="nuit"] .page-analyse .an-origine__lien:hover,
html[data-an-ambiance="nuit"] .page-analyse .an-origine__lien:focus-visible {
    color: var(--color-white);
}

html[data-an-ambiance="nuit"] .page-analyse .an-chapo {
    color: rgba(255, 255, 255, 0.88);
}

html[data-an-ambiance="nuit"] .page-analyse .an-origine__lien {
    text-decoration-color: rgba(255, 255, 255, 0.42);
}

html[data-an-ambiance="nuit"][data-an-theme="pastille"] .page-analyse .an-origine__lien {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

html[data-an-ambiance="nuit"][data-an-signature="pastille"] .page-analyse .an-signature__pastille {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

/* Le motif : il ne se voit que sur le haut de nuit, sur grand écran, et
   seulement si on le garde. Sans script, la ligne et ses notes restent. */
.page-analyse .an-tete__art {
    display: none;
}

@media (min-width: 1200px) {
    html[data-an-ambiance="nuit"][data-an-motif="oui"] .page-analyse .an-tete__art {
        position: absolute;
        z-index: 1;
        right: 0;
        bottom: -1px;
        left: 0;
        display: block;
        height: clamp(5.5rem, 12vh, 7rem);
        pointer-events: none;
    }

    html[data-an-ambiance="nuit"][data-an-motif="oui"] .page-analyse .an-tete__cadre {
        padding-bottom: clamp(7.25rem, 15vh, 8.75rem);
    }
}

.page-analyse .rs-signaux {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.page-analyse .rs-signaux path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.page-analyse .rs-signaux__axe {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.page-analyse .rs-signaux__brut,
.page-analyse .rs-signaux__commune {
    stroke-width: 1.5;
}

.page-analyse .rs-signaux__impulsion,
.page-analyse .rs-signaux__halo {
    stroke-dasharray: 120 480;
    stroke-dashoffset: 600;
    animation: an-impulsion 4.6s linear infinite;
}

.page-analyse .rs-signaux__halo {
    stroke: var(--color-cyan);
    stroke-width: 0.6rem;
    opacity: 0.16;
}

.page-analyse .rs-signaux__impulsion {
    stroke: var(--color-white);
    stroke-width: 2.5;
    opacity: 0.9;
}

@keyframes an-impulsion {
    to {
        stroke-dashoffset: 0;
    }
}

.page-analyse .rs-note path {
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 1.2;
}

.page-analyse .rs-note path:last-child {
    stroke: var(--color-cyan);
    stroke-opacity: 0.9;
}

.page-analyse .rs-note {
    opacity: 0;
    animation: an-note 1100ms var(--ease-out) forwards;
    animation-delay: calc(900ms + var(--i, 0) * 520ms);
}

.page-analyse .rs-note--1 {
    --i: 0;
}

.page-analyse .rs-note--2 {
    --i: 1;
}

.page-analyse .rs-note--3 {
    --i: 2;
}

.page-analyse .rs-note--4 {
    --i: 3;
}

.page-analyse .rs-note--5 {
    --i: 4;
}

@keyframes an-note {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* --------------------------------------------------------------------------
   4. La couverture
   -------------------------------------------------------------------------- */

.page-analyse .an-couverture {
    margin: 2.5rem 0 0;
}

.page-analyse .an-couverture__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 10;
    object-fit: cover;
    border-radius: 0;
}

html[data-an-ambiance="nuit"] .page-analyse .an-couverture {
    margin-top: 0;
}


/* --------------------------------------------------------------------------
   5. Le corps : la colonne de lecture du cadre, titres en Spectral
   -------------------------------------------------------------------------- */

.page-analyse .an-corps {
    padding-top: clamp(2.5rem, 5vh, 3.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

/* Texte courant en Spectral : 17 à 22 px, interligne ouvert ; la colonne
   occupe la largeur restante du conteneur, le texte se justifie et la
   césure française évite les blancs trop larges entre les mots. */
.page-analyse .an-texte {
    font-size: var(--an-corps);
    line-height: 1.7;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

html[data-an-texte="source"] .page-analyse .an-texte {
    --an-corps: clamp(1.0625rem, 1.045rem + 0.0893vw, 1.125rem);
    line-height: 1.75;
}

.page-analyse .an-texte p,
.page-analyse .an-texte .rich-text li {
    text-align: justify;
    text-justify: inter-word;
}

.page-analyse .an-texte p {
    margin: 0 0 1.2em;
    text-wrap: pretty;
}

.page-analyse .an-texte :is(h2, h3, h4) {
    margin: var(--an-avant-titre, 2.75rem) 0 0.9rem;
    color: var(--color-graphite);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.22;
    text-wrap: balance;
}

.page-analyse .an-texte h2 {
    --an-avant-titre: clamp(2.5rem, 1.5rem + 2vw, 3.25rem);
    font-size: clamp(1.6rem, 1.3rem + 0.7vw, 2rem);
}

.page-analyse .an-texte h3 {
    --an-avant-titre: 2rem;
    font-size: clamp(1.3rem, 1.2rem + 0.25vw, 1.45rem);
}

.page-analyse .an-texte h4 {
    --an-avant-titre: 1.75rem;
    font-size: 1.125rem;
}

/* Un filet au-dessus de chaque titre de niveau 2 : il marque les chapitres
   d'une longue analyse, comme les filets du journal. */
html[data-an-filets="oui"] .page-analyse .an-texte h2 {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-line);
}

/* Sauf au tout début du texte : le premier titre n'a rien au-dessus. */
html[data-an-filets="oui"] .page-analyse .an-texte > :first-child > h2:first-child,
html[data-an-filets="oui"] .page-analyse .an-texte > .an-sommaire + .rich-text > h2:first-child {
    padding-top: 0;
    border-top: 0;
}

/* Le tout premier titre du texte n'a ni marge ni filet au-dessus. */
.page-analyse .an-texte > :first-child > h2:first-child,
.page-analyse .an-texte > .an-sommaire + .rich-text > h2:first-child {
    margin-top: 0;
}

/* Entre deux blocs de texte consécutifs, le rythme est celui du texte : ni
   les marges ne se cumulent, ni le titre ne colle au paragraphe précédent. */
.page-analyse .an-texte .rich-text + .rich-text > :is(p, ul, ol):first-child {
    margin-top: 1.2em;
}

.page-analyse .an-texte .rich-text + .rich-text > :is(h2, h3, h4):first-child {
    margin-top: var(--an-avant-titre);
}

.page-analyse .an-texte .rich-text + .rich-text > :is(blockquote, hr, figure, .article-table):first-child {
    margin-top: 2.5rem;
}

.page-analyse .an-texte :is(ul, ol) {
    margin: 0 0 1.2em;
    padding-left: 1.6rem;
}

.page-analyse .an-texte li + li {
    margin-top: 0.4em;
}

.page-analyse .an-texte li::marker {
    color: var(--color-slate);
}

.page-analyse .an-texte a {
    color: var(--color-blue);
    text-decoration: underline;
    text-decoration-color: rgba(54, 80, 116, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    transition: text-decoration-color 160ms ease;
}

.page-analyse .an-texte a:hover,
.page-analyse .an-texte a:focus-visible {
    text-decoration-color: currentColor;
}

.page-analyse .an-texte strong {
    color: var(--color-graphite);
    font-weight: 600;
}

.page-analyse .an-texte hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--color-line);
}

.page-analyse .an-texte .rich-text blockquote {
    margin: 2rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--color-blue);
    font-style: italic;
}

/* Ancres du sommaire : le titre arrive 1,5 rem sous l'en-tête fixe. La
   place de l'en-tête est déjà réservée par le site (html :
   scroll-padding-top, 4,625rem sur ordinateur, 4rem en dessous de 1120 px) :
   la marge d'avant, 7rem, s'y ajoutait et laissait un vide de 112 px. */
.page-analyse .an-texte :is(h2, h3)[id] {
    scroll-margin-top: 1.5rem;
}

/* Code en ligne : lisible au milieu du texte courant. */
.page-analyse .an-texte :is(p, li, td, th, a, strong, em) > code {
    padding: 0.1em 0.35em;
    border-radius: 0.25em;
    background: var(--color-paper-blue);
    color: var(--color-blue-deep);
    font-family: var(--font-mono);
    font-size: 0.84em;
    overflow-wrap: anywhere;
}

/* Images insérées dans un texte libre. */
.page-analyse .an-texte .richtext-image {
    margin: 2.5rem 0;
}

.page-analyse .an-texte .richtext-image img {
    border-radius: 0;
}


/* --------------------------------------------------------------------------
   6. Le sommaire : en marge à gauche (colonne collante) sur grand écran ;
   replié en une ligne partout ailleurs. Même sommaire, deux places.
   -------------------------------------------------------------------------- */

.page-analyse .article-toc {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1rem;
    line-height: 1.45;
}

.page-analyse .article-toc__title {
    margin: 0 0 0.75rem;
    color: var(--an-ardoise);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.page-analyse .article-toc ol {
    margin: 0;
    padding: 0;
    columns: 1;
    column-gap: 0;
    list-style: none;
    font-size: 1rem;
    line-height: 1.45;
}

.page-analyse .article-toc li {
    margin: 0;
    break-inside: avoid;
}

/* Une ligne du sommaire : une cible de 2,75 rem de haut, le filet bleu de la
   rubrique en cours, comme la colonne des thèmes de la page Analyses. */
.page-analyse .article-toc a {
    min-height: 2.75rem;
    padding: 0.65rem 0.3rem 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    border-left: 2px solid transparent;
    color: inherit;
    text-decoration: none;
    transition:
        color 160ms ease,
        border-color 160ms ease;
}

.page-analyse .article-toc a:hover,
.page-analyse .article-toc a:focus-visible,
.page-analyse .article-toc a[aria-current] {
    border-left-color: var(--color-blue);
    color: var(--color-blue);
}

.page-analyse .article-toc a[aria-current] {
    font-weight: 600;
}

/* La colonne de gauche n'existe que sur grand écran, et seulement si le
   sommaire y a sa place. */
.page-analyse .an-rail {
    display: none;
}

@media (min-width: 1280px) {
    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-rail {
        display: block;
        grid-column: 1;
        grid-row: 1;
        align-self: stretch;
    }

    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-rail .article-toc {
        position: sticky;
        top: 6rem;
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
    }

    /* La version repliée se retire : le sommaire vit dans la marge. */
    html[data-an-sommaire="marge"] .page-analyse .an-article--sommaire .an-sommaire {
        display: none;
    }
}

/* Le sommaire replié : une ligne « Sommaire » entre deux filets, qui
   s'ouvre sur un appui. */
.page-analyse .an-sommaire {
    margin: 0 0 2.25rem;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.page-analyse .an-sommaire__ligne {
    min-height: 2.75rem;
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-graphite);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.page-analyse .an-sommaire__ligne::-webkit-details-marker {
    display: none;
}

.page-analyse .an-sommaire__ligne::after {
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.15rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: translateY(-0.15rem) rotate(45deg);
    transition: transform 200ms var(--ease-out);
}

.page-analyse .an-sommaire[open] .an-sommaire__ligne::after {
    transform: translateY(0.15rem) rotate(-135deg);
}

.page-analyse .an-sommaire .article-toc {
    padding: 0.25rem 0 0.85rem;
}

/* Le titre « Sommaire » est déjà sur la ligne : il n'est pas répété. */
.page-analyse .an-sommaire .article-toc__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.page-analyse .an-sommaire .article-toc ol {
    columns: 1;
}

html[data-an-sommaire="aucun"] .page-analyse .an-sommaire,
html[data-an-sommaire="aucun"] .page-analyse .an-rail {
    display: none;
}

@media (min-width: 861px) {
    .page-analyse .an-sommaire .article-toc ol {
        columns: 2;
        column-gap: 2.5rem;
    }
}


/* --------------------------------------------------------------------------
   7. Tableaux : des filets, pas une carte. Une règle forte en haut et sous
   les têtes, des filets fins entre les lignes ; défilement horizontal sur
   petit écran (la zone garde le focus).
   -------------------------------------------------------------------------- */

.page-analyse .an-texte .article-table {
    margin: 2.5rem 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow-x: auto;
}

.page-analyse .an-texte .article-table table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.92em;
    line-height: 1.5;
}

.page-analyse .an-texte .article-table :is(th, td) {
    padding: 0.8rem 1.25rem 0.8rem 0;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.page-analyse .an-texte .article-table tr > :last-child {
    padding-right: 0;
}

.page-analyse .an-texte .article-table thead th {
    padding-top: 0.85rem;
    border-top: 2px solid var(--color-graphite);
    border-bottom: 1px solid var(--color-graphite);
    color: var(--color-graphite);
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0;
}

.page-analyse .an-texte .article-table tbody tr:last-child :is(th, td) {
    border-bottom-color: var(--color-graphite);
}

.page-analyse .an-texte .article-table :is(th, td) code {
    padding: 0.05em 0.3em;
    /* Le plus petit texte de la page : 14 px sur téléphone, 15,7 px à partir
       de 1440 px. */
    font-size: 0.9em;
    white-space: nowrap;
}

/* Lignes alternées, comme aujourd'hui. */
html[data-an-tableaux="alternees"] .page-analyse .an-texte .article-table tbody tr:nth-child(even) :is(th, td) {
    background: var(--color-paper-blue);
}

html[data-an-tableaux="alternees"] .page-analyse .an-texte .article-table :is(th, td) code {
    background: var(--color-paper);
}

.page-analyse .an-texte .article-table:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

@media (max-width: 540px) {
    .page-analyse .an-texte .article-table table {
        min-width: 30rem;
    }
}


/* --------------------------------------------------------------------------
   8. Code : une fenêtre d'éditeur. Barre de fenêtre (pastilles, libellé,
   bouton Copier), gouttière de numéros hors de la zone de défilement,
   code sur fond de nuit (couleurs de la charte) ou sur papier.
   -------------------------------------------------------------------------- */

.page-analyse .an-texte .code-block {
    --an-code-fond: var(--color-obsidian-soft);
    --an-code-texte: rgba(255, 255, 255, 0.88);
    --an-code-filet: rgba(255, 255, 255, 0.14);
    --an-code-annotation: rgba(255, 255, 255, 0.52);
    --an-code-defilement: rgba(255, 255, 255, 0.22);
    margin: 2.5rem 0;
    overflow: hidden;
    border: 1px solid var(--an-code-filet);
    border-radius: 0;
    background: var(--an-code-fond);
    color: var(--an-code-texte);
}

html[data-an-code="papier"] .page-analyse .an-texte .code-block {
    --an-code-fond: var(--color-paper-blue);
    --an-code-texte: var(--color-graphite);
    --an-code-filet: rgba(23, 32, 46, 0.18);
    --an-code-annotation: rgba(23, 32, 46, 0.7);
    --an-code-defilement: rgba(23, 32, 46, 0.28);
}

/* La barre de la fenêtre : les trois pastilles prennent les couleurs de la
   charte, jamais le rouge et le vert d'un système d'exploitation. */
.page-analyse .an-texte .code-block__bar {
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--an-code-filet);
    background: rgba(255, 255, 255, 0.035);
}

html[data-an-code="papier"] .page-analyse .an-texte .code-block__bar {
    background: rgba(23, 32, 46, 0.035);
}

.page-analyse .an-texte .code-block__dots i {
    width: 0.6rem;
    height: 0.6rem;
    opacity: 0.8;
}

.page-analyse .an-texte .code-block__dots i:nth-child(1) {
    background: var(--color-blue);
}

.page-analyse .an-texte .code-block__dots i:nth-child(2) {
    background: var(--color-cyan);
}

.page-analyse .an-texte .code-block__dots i:nth-child(3) {
    background: var(--an-ardoise);
}

.page-analyse .an-texte .code-block__caption {
    color: var(--an-code-texte);
}

.page-analyse .an-texte .code-block__lang {
    color: var(--an-code-annotation);
}

.page-analyse .an-texte .code-block__copy {
    border-color: var(--an-code-filet);
    color: var(--an-code-annotation);
}

.page-analyse .an-texte .code-block__copy:hover {
    border-color: var(--an-code-annotation);
    color: var(--an-code-texte);
}

.page-analyse .an-texte .code-block__copy:focus-visible {
    outline-color: var(--color-cyan);
}

.page-analyse .an-texte .code-block__copy.is-copied {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

html[data-an-code="papier"] .page-analyse .an-texte .code-block__copy:focus-visible {
    outline-color: var(--color-blue);
}

html[data-an-code="papier"] .page-analyse .an-texte .code-block__copy.is-copied {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

/* Le corps : la gouttière des numéros ne défile pas avec le code. Les deux
   colonnes partagent la même fonte et la même interligne, donc les numéros
   tombent juste, y compris sur les lignes vides. */
.page-analyse .an-texte .code-block__window {
    display: flex;
    align-items: stretch;
}

.page-analyse .an-texte .code-block__gutter {
    display: block;
    flex: 0 0 auto;
    min-width: 3.6rem;
    padding: 1.25rem 0.9rem 1.35rem 1rem;
    border-right: 1px solid var(--an-code-filet);
    background: rgba(255, 255, 255, 0.02);
    color: var(--an-code-annotation);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.75;
    text-align: right;
    user-select: none;
}

html[data-an-code="papier"] .page-analyse .an-texte .code-block__gutter {
    background: rgba(23, 32, 46, 0.025);
}

.page-analyse .an-texte .code-block__num {
    display: block;
}

.page-analyse .an-texte .code-block__pre {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 1.25rem 1.4rem 1.35rem 1.1rem;
    overflow-x: auto;
    background: transparent;
    color: inherit;
    border-radius: 0;
    scrollbar-color: var(--an-code-defilement) transparent;
    scrollbar-width: thin;
}

.page-analyse .an-texte .code-block__pre::-webkit-scrollbar {
    height: 0.5rem;
}

.page-analyse .an-texte .code-block__pre::-webkit-scrollbar-track {
    background: transparent;
}

.page-analyse .an-texte .code-block__pre::-webkit-scrollbar-thumb {
    background: var(--an-code-defilement);
    border-radius: 0;
}

.page-analyse .an-texte .code-block__pre:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: -2px;
}

html[data-an-code="papier"] .page-analyse .an-texte .code-block__pre:focus-visible {
    outline-color: var(--color-blue);
}

.page-analyse .an-texte .code-block__code {
    color: inherit;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.75;
    tab-size: 4;
    white-space: pre;
}

.page-analyse .an-texte .code-block__pre ::selection {
    background: var(--color-blue);
    color: var(--color-paper);
}

@media (max-width: 620px) {
    .page-analyse .an-texte .code-block__gutter,
    .page-analyse .an-texte .code-block__code {
        font-size: 0.8rem;
    }

    .page-analyse .an-texte .code-block__gutter {
        min-width: 2.7rem;
        padding: 1.15rem 0.65rem 1.25rem 0.75rem;
    }

    .page-analyse .an-texte .code-block__pre {
        padding: 1.15rem 1rem 1.25rem 0.9rem;
    }
}


/* --------------------------------------------------------------------------
   9. Encadrés : « attention » en encadré au trait, sur papier ; les autres
   (note, conseil) sur bleu papier, un filet bleu à gauche. Le rouge et le
   vert d'aujourd'hui ne sont pas dans la charte. Aucun pictogramme.
   -------------------------------------------------------------------------- */

.page-analyse .an-texte .callout {
    --an-encadre-filet: var(--color-blue);
    margin: 2.5rem 0;
    padding: 1.5rem 1.6rem 1.4rem;
    border: 0;
    border-left: 2px solid var(--an-encadre-filet);
    border-radius: 0;
    background: var(--color-paper-blue);
    color: var(--color-graphite);
}

.page-analyse .an-texte .callout--alert {
    --an-encadre-filet: var(--color-graphite);
    background: var(--color-paper);
    border: 1px solid var(--color-graphite);
    border-left-width: 3px;
}

/* L'encadré d'attention teinté comme les autres, ou sur fond de nuit. */
html[data-an-alerte="teinte"] .page-analyse .an-texte .callout--alert {
    --an-encadre-filet: var(--color-blue);
    border: 0;
    border-left: 2px solid var(--an-encadre-filet);
    background: var(--color-paper-blue);
}

html[data-an-alerte="nuit"] .page-analyse .an-texte .callout--alert {
    --an-encadre-filet: var(--color-cyan);
    border: 0;
    border-left: 2px solid var(--an-encadre-filet);
    background: var(--color-obsidian-soft);
    color: rgba(255, 255, 255, 0.88);
}

.page-analyse .an-texte .callout__title {
    margin: 0 0 0.6rem;
    color: var(--color-graphite);
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

html[data-an-alerte="nuit"] .page-analyse .an-texte .callout--alert .callout__title {
    color: var(--color-white);
}

html[data-an-alerte="nuit"] .page-analyse .an-texte .callout--alert strong {
    color: var(--color-white);
}

html[data-an-alerte="nuit"] .page-analyse .an-texte .callout--alert a {
    color: var(--color-cyan);
    text-decoration-color: rgba(107, 217, 255, 0.5);
}

.page-analyse .an-texte .callout__text > :last-child {
    margin-bottom: 0;
}

.page-analyse .an-texte .callout__text ul,
.page-analyse .an-texte .callout__text ol {
    margin-bottom: 0;
}

/* Le code en ligne d'un encadré teinté se détache sur du papier. */
html:not([data-an-alerte="nuit"]) .page-analyse .an-texte .callout:not(.callout--alert) .callout__text code {
    background: var(--color-paper);
}

html[data-an-alerte="teinte"] .page-analyse .an-texte .callout--alert .callout__text code {
    background: var(--color-paper);
}

html[data-an-alerte="nuit"] .page-analyse .an-texte .callout--alert code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

html[data-an-alerte="nuit"] .page-analyse .an-texte .callout--alert li::marker {
    color: rgba(255, 255, 255, 0.62);
}


/* --------------------------------------------------------------------------
   10. La citation : une phrase forte en Spectral italique, un court filet
   au-dessus, sa source dessous. Ni carte ni barre latérale.
   -------------------------------------------------------------------------- */

.page-analyse .an-texte .article-quote {
    margin: 3rem 0;
    padding: 0;
    border: 0;
    background: none;
}

.page-analyse .an-texte .article-quote::before {
    display: block;
    width: 2.75rem;
    height: 1px;
    margin-bottom: 1.25rem;
    background: var(--color-graphite);
    content: "";
}

.page-analyse .an-texte .article-quote p {
    margin: 0;
    color: var(--color-graphite);
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.625rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    text-wrap: pretty;
}

.page-analyse .an-texte .article-quote figcaption {
    margin-top: 1rem;
    color: var(--an-ardoise);
    font-size: 1rem;
    line-height: 1.5;
}


/* --------------------------------------------------------------------------
   11. Les images de l'article : larges, sans coin arrondi, la légende
   dessous en ardoise.
   -------------------------------------------------------------------------- */

.page-analyse .an-texte > .article-image {
    margin: 2.5rem 0;
}

.page-analyse .an-texte .article-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.page-analyse .an-texte .article-image figcaption {
    margin-top: 0.75rem;
    color: var(--an-ardoise);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.5;
}


/* --------------------------------------------------------------------------
   12. L'expertise liée : une bande pleine largeur, de nuit ou sur papier.
   Plus de halo, plus de sur-titre en capitales : le nom de l'expertise, sa
   phrase, le bouton du site.
   -------------------------------------------------------------------------- */

.page-analyse .an-bande--expertise {
    background: var(--color-paper);
    border-top: 1px solid var(--color-line);
    color: var(--color-graphite);
}

html[data-an-expertise="nuit"] .page-analyse .an-bande--expertise {
    border-top: 0;
    background: var(--color-obsidian-soft);
    color: var(--color-white);
}

.page-analyse .an-bande .an-cadre > .article-cta {
    width: auto;
    margin: 0;
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-radius: 0;
    background: none;
    color: inherit;
}

.page-analyse .an-bande .article-cta__kicker {
    margin: 0 0 0.85rem;
    color: var(--an-ardoise);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

html[data-an-expertise="nuit"] .page-analyse .an-bande .article-cta__kicker {
    color: rgba(255, 255, 255, 0.78);
}

.page-analyse .an-bande .article-cta h2 {
    max-width: 34rem;
    margin: 0;
    color: inherit;
    font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

.page-analyse .an-bande .article-cta__text {
    max-width: 34rem;
    margin: 1rem 0 1.75rem;
    color: var(--an-ardoise);
    font-size: 1.125rem;
    line-height: 1.55;
}

html[data-an-expertise="nuit"] .page-analyse .an-bande .article-cta__text {
    color: var(--color-muted);
}

@media (max-width: 540px) {
    .page-analyse .an-bande .article-cta .button {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   13. « À lire ensuite » : les analyses liées, comme dans le journal — le
   thème au-dessus du titre, la date en toutes lettres, toute la ligne
   cliquable. Une colonne par analyse sur grand écran, une ligne par analyse
   sur l'autre réglage.
   -------------------------------------------------------------------------- */

.page-analyse .an-bande--ensuite .an-cadre > .article-related {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.page-analyse .an-ensuite__tete {
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 2rem;
}

.page-analyse .an-ensuite__tete h2 {
    margin: 0;
    color: var(--color-graphite);
    font-size: clamp(1.6rem, 1.3rem + 0.7vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.page-analyse .an-ensuite__tout {
    min-height: 2.75rem;
    padding: 0.65rem 0;
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-color: rgba(54, 80, 116, 0.38);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
    transition: color 160ms ease;
}

.page-analyse .an-ensuite__tout:hover,
.page-analyse .an-ensuite__tout:focus-visible {
    color: var(--color-blue);
}

.page-analyse .an-ensuite {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-line);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    list-style: none;
}

@media (min-width: 641px) {
    .page-analyse .an-ensuite {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Une seule analyse liée : elle prend toute la largeur. */
    .page-analyse .an-ensuite:has(> :only-child) {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Trois ou plus, sur deux colonnes : la dernière s'étale. */
    .page-analyse .an-ensuite > :last-child:nth-child(odd):not(:only-child) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 861px) {
    .page-analyse .an-ensuite {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-analyse .an-ensuite:has(> :nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-analyse .an-ensuite > :last-child:nth-child(odd):not(:only-child) {
        grid-column: auto;
    }

    /* Le filet vertical qui sépare deux analyses voisines. */
    .page-analyse .an-entree + .an-entree {
        border-left: 1px solid var(--color-line);
    }

    .page-analyse .an-entree + .an-entree article {
        padding-left: 1.75rem;
    }

    .page-analyse .an-entree + .an-entree:hover article,
    .page-analyse .an-entree + .an-entree:focus-within article {
        padding-left: 2.6rem;
    }
}

.page-analyse .an-entree {
    position: relative;
    border-bottom: 1px solid var(--color-line);
    transition: background-color 200ms ease;
}

.page-analyse .an-entree article {
    position: relative;
    padding: 1.5rem 0.85rem 1.5rem 0;
    transition: padding 280ms var(--ease-out);
}

.page-analyse .an-entree__theme {
    margin: 0;
    color: var(--an-ardoise);
    font-size: 1rem;
    line-height: 1.5;
}

.page-analyse .an-entree__format::before {
    margin: 0 0.35rem;
    content: "·";
}

.page-analyse .an-entree__format--seul::before {
    content: none;
}

.page-analyse .an-entree__titre {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.25;
    text-wrap: balance;
    transition: color 180ms ease;
}

.page-analyse .an-entree__titre a {
    color: inherit;
    text-decoration: none;
}

/* La zone cliquable du lien recouvre toute la ligne. */
.page-analyse .an-entree__titre a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.page-analyse .an-entree__titre a:focus-visible {
    outline: none;
}

.page-analyse .an-entree__titre a:focus-visible::after {
    outline: 2px solid var(--color-blue);
    outline-offset: -2px;
}

.page-analyse .an-entree__meta {
    margin: 0.6rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.1rem;
    color: var(--an-ardoise);
    font-size: 1rem;
    line-height: 1.5;
}

@media (hover: hover) {
    .page-analyse .an-entree:hover {
        background: var(--color-paper-blue);
    }

    .page-analyse .an-entree:hover article {
        padding-left: 1.7rem;
    }

    .page-analyse .an-entree:hover .an-entree__titre {
        color: var(--color-blue);
    }
}

.page-analyse .an-entree:focus-within {
    background: var(--color-paper-blue);
}

.page-analyse .an-entree:focus-within article {
    padding-left: 1.7rem;
}

/* « À lire ensuite » en lignes : une analyse par ligne, la date dans la
   marge de gauche, comme « Les précédentes » du journal. */
@media (min-width: 641px) {
    html[data-an-ensuite="lignes"] .page-analyse .an-ensuite {
        display: block;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree {
        border-left: 0;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree article {
        padding: 1.1rem 0.85rem 1.1rem 0;
        display: grid;
        grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
        column-gap: clamp(1.5rem, 3vw, 3rem);
        align-items: baseline;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree + .an-entree:hover article,
    html[data-an-ensuite="lignes"] .page-analyse .an-entree + .an-entree:focus-within article {
        padding-left: 1.7rem;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree__theme {
        grid-column: 2;
        grid-row: 1;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree__titre {
        grid-column: 2;
        grid-row: 2;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree__meta {
        display: contents;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree__meta time {
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    html[data-an-ensuite="lignes"] .page-analyse .an-entree__meta span {
        grid-column: 2;
        grid-row: 3;
        margin-top: 0.35rem;
    }
}


/* --------------------------------------------------------------------------
   14. La ligne de progression de la lecture (sur demande seulement) : un
   trait bleu de trois pixels en haut de l'écran. Elle est tracée par
   analyse.js ; en mouvement réduit, elle ne se montre pas.
   -------------------------------------------------------------------------- */

.page-analyse .an-progression {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 3px;
    background: var(--color-blue);
    transform-origin: 0 50%;
    transform: scaleX(var(--an-progres, 0));
    pointer-events: none;
}

html[data-an-progression="oui"] .page-analyse .an-progression {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    html[data-an-progression="oui"] .page-analyse .an-progression {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   15. Mouvement réduit : tout est figé, mais tout est visible
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    /* Le motif reste visible, mais figé : plus d'impulsion ni d'apparition
       en cascade. */
    .page-analyse .rs-signaux__impulsion,
    .page-analyse .rs-signaux__halo,
    .page-analyse .rs-note {
        animation: none;
    }

    .page-analyse .rs-note {
        opacity: 1;
        transform: none;
    }
}
