/* lp-lecture.css : la LECTURE de la landing (portage vanilla de
   main-landing@2efdee9), pendant visuel de js/lp-lecture.js : le moteur
   d'étapes (LP.etapes) et l'article à sommaire (LP.article), précédés de
   la règle de mesure sans transition dont LP.article a besoin. Troisième
   des trois feuilles du socle : chargée après lp-sections.css et avant la
   feuille de la page (lp-index.css, lp-article.css… la surchargent) ;
   l'ordre de la cascade est dit en tête de lp-composants.css.

   Sommaire : mesure sans transition · moteur d'étapes · article. */

/* Mesure sans transition (LP.article, défilement du sommaire) : le repli
   reduced-motion de lp-base.css donne .01 ms de transition à toute
   propriété ; une mesure prise juste après un changement de classe lirait
   encore l'ancienne valeur. Posée et retirée dans la même tâche. */
body.lp.lp-mesure *, body.lp.lp-mesure *::before, body.lp.lp-mesure *::after { transition: none !important; }

/* ================================================================
   MOTEUR D'ÉTAPES (LP.etapes) : scène collante, points et flèches
   Le positionnement des points est celui des .step-indicators des quatre
   sections de la prod : colonne à droite, ligne centrée en bas ≤ 1200.
   ================================================================ */
.lp-etapes { position: relative; }
.lp-etapes--defile > [data-lp-etapes-scene] {
    position: sticky;
    top: var(--lp-etapes-haut, 0px);
    min-height: 100vh;
}
.lp-etapes--statique [data-lp-etapes-points] { display: none; }

.lp-points {
    --lp-point-fond: rgba(0, 109, 236, .2);
    --lp-point-survol: rgba(0, 109, 236, .4);
    --lp-point-bord: var(--lp-orange, #FF934F);
    --lp-point-actif: var(--lp-orange, #FF934F);
    --lp-fleche: var(--lp-orange, #FF934F);
    --lp-fleche-survol: #FF761C;
    position: absolute;
    top: 50%;
    /* 2rem du bord comme la prod, moins la demi-marge de cible (44 - 12) / 2 :
       la puce tombe au même pixel. */
    right: calc(2rem - 16px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-50%);
}
/* ObtenirVosAides (--orange) : puce bleutée cerclée d'orange, les valeurs par défaut ci-dessus. */
/* OptionDetectez, sur fond sombre : puce blanche translucide, sans bord. */
.lp-points--blanc { --lp-point-fond: rgba(255, 255, 255, .3); --lp-point-survol: rgba(255, 255, 255, .5); --lp-point-bord: transparent; }
/* OptionAccompagnez : tout en bleu. */
.lp-points--bleu { --lp-point-bord: var(--lp-blue, #006DEC); --lp-point-actif: var(--lp-blue, #006DEC); --lp-fleche: var(--lp-blue, #006DEC); --lp-fleche-survol: #0054B9; }
/* PlatformShowcase : puce orangée cerclée d'orange. */
.lp-points--orange-pale { --lp-point-fond: rgba(255, 147, 79, .2); --lp-point-survol: rgba(255, 147, 79, .4); }
/* Chaque point est une cible qui pave l'intervalle de la prod (12 px de puce
   + 12 px d'écart) sur 44 px de large : le rythme visuel ne change pas. */
.lp-points__point {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.lp-points__puce {
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--lp-point-bord);
    border-radius: 50%;
    background: var(--lp-point-fond);
    transition: all .3s ease;
}
.lp-points__point:hover .lp-points__puce { background: var(--lp-point-survol); }
.lp-points__point.is-active .lp-points__puce { background: var(--lp-point-actif); transform: scale(1.2); }
.lp-points__point:focus-visible { outline: none; }
.lp-points__point:focus-visible .lp-points__puce { outline: 2px solid var(--lp-point-actif); outline-offset: 3px; }
/* Flèches : 36 px dessinés dans 44 px de cible, affichées ≤ 768 comme en prod. */
.lp-points__fleche {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--lp-fleche);
    background-clip: content-box;
    color: #fff;
    cursor: pointer;
    transition: all .3s ease;
}
.lp-points__fleche svg { width: 20px; height: 20px; }
/* ObtenirVosAides ne réduisait pas ses chevrons : 24 px (attributs du SVG). */
.lp-points--orange .lp-points__fleche svg { width: 24px; height: 24px; }
.lp-points__fleche:hover:not(:disabled) { background-color: var(--lp-fleche-survol); }
.lp-points__fleche:disabled { opacity: .3; cursor: not-allowed; }
.lp-points__fleche:focus-visible { outline: 2px solid var(--lp-fleche); outline-offset: 0; }
/* En ligne, la prod pose sa rangée de puces (12 px de haut) à 2rem du bas,
   1rem sous 768 px avec ses flèches de 36 px. Nos cibles font 44 px de haut :
   on descend la rangée de la demi-différence, (44 - 12) / 2 puis
   (44 - 36) / 2, pour que puces et flèches tombent au pixel de la prod
   (mesuré sur l'accueil et l'accueil EC à 1024, 768 et 375). */
@media (max-width: 1200px) {
    .lp-points { top: auto; right: 50%; bottom: calc(2rem - 16px); flex-direction: row; transform: translateX(50%); }
    .lp-points__point { width: 24px; height: 44px; }
}
@media (max-width: 768px) {
    .lp-points { bottom: calc(1rem - 4px); }
    .lp-points__point { width: calc(12px + 1.2rem); }
    .lp-points__fleche { display: flex; margin-inline: calc(.6rem - 4px); }
}
@media (prefers-reduced-motion: reduce) {
    .lp-points__puce,
    .lp-points__fleche { transition: none; }
}

/* ================================================================
   ARTICLE (article/Article.svelte, ArticleMenu, ArticleSections,
   ArticleSectionHeader)
   L'en-tête colle sous la barre de la coquille (--lp-article-haut, par
   défaut la hauteur de barre publiée par la coquille) : en prod il collait
   à 0 et le titre réduit passait sous la barre.
   ================================================================ */
.lp-article {
    --lp-article-haut: var(--lp-bar-h, 60px);
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    background-color: var(--lp-bg, #F7F7FA);
}
.lp-article * { word-break: break-word; }
.lp-article__entete {
    position: sticky;
    top: var(--lp-article-haut);
    z-index: 10;
    max-width: 100%;
    background: var(--lp-bg, #F7F7FA);
}
.lp-article__entete-contenu {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1336px;
    margin: 0 auto;
}
.lp-article__titre {
    max-width: 1336px;
    margin-bottom: 1rem;
    color: var(--lp-ink, #28323E);
    font-family: var(--lp-font-display, 'Museo Sans', 'Mukta Mahee', sans-serif);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: break-word;
}
.lp-article__titre.is-reduit {
    margin-bottom: 8px;
    overflow: hidden;
    font-size: 24px;
    line-height: 32px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-article__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    padding-bottom: 1.5rem;
}
.lp-article__corps { flex: 1; }
.lp-article__conteneur {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1336px;
    margin: 0 auto;
}
.lp-article__principal {
    flex: 1;
    min-width: 0;
    max-width: 897px;
    padding: 1.5rem;
    border-radius: 2.5rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.lp-article__lateral {
    position: sticky;
    top: calc(var(--lp-article-haut) + var(--lp-article-entete, 150px));
    flex-shrink: 0;
    width: 415px;
    max-height: calc(100vh - var(--lp-article-haut) - var(--lp-article-entete, 150px));
    padding: 0 .5rem .5rem 0;
    overflow-y: auto;
    scrollbar-width: thin;
}
.lp-article__nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border: 2px solid var(--lp-blue, #006DEC);
    border-radius: 40px;
    background: #fff;
    box-shadow: 4px 4px 0 0 var(--lp-blue, #006DEC);
}
.lp-article__nav-actions { display: flex; flex-direction: column; gap: 1rem; font-weight: 500; }
/* Les lignes « libellé / valeur » que les pages glissent en tête du sommaire
   (fiche d'aide : montant, date limite…), comme :global(.navbar-actions > div). */
.lp-article__nav-actions > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; white-space: nowrap; }
.lp-article__nav-actions .line { border-bottom: 1px solid var(--lp-blue-pale, #EBF6FF); }
.lp-article__menu { margin: 0; padding: 0; list-style: none; }
.lp-article__menu li { display: flex; border-top: 1px solid var(--lp-blue-pale, #EBF6FF); }
.lp-article__menu li:last-child { border-bottom: 1px solid var(--lp-blue-pale, #EBF6FF); }
.lp-article__menu a {
    flex: 1;
    min-height: 44px;
    padding: .75rem 1rem;
    overflow: hidden;
    color: var(--lp-blue, #006DEC);
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-article__menu li.is-lu a { padding: 1.25rem 1rem; background-color: var(--lp-blue-pale, #EBF6FF); }
.lp-article__menu a:focus-visible { outline: 2px solid var(--lp-blue, #006DEC); outline-offset: -2px; }
.lp-article__sections { display: flex; flex: 1; flex-direction: column; gap: 2.5rem; }
.lp-article__section { scroll-margin-top: 10rem; }
.lp-article h2 {
    margin-bottom: 1rem;
    color: var(--lp-blue, #006DEC);
    font-size: 26px;
    font-weight: 700;
    line-height: 32px;
}
/* Ci-dessus : le :global(h2) d'Article.svelte touchait TOUS les <h2> de la
   page ; ici il reste borné à l'article et à ses emplacements (colonne
   latérale comprise), là où l'effet se voyait. */
.lp-article__section:first-child h2 { margin-top: 0; }
.lp-article__entete-section { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.lp-article__entete-section img { flex-shrink: 0; width: auto; height: 40px; }
.lp-article__entete-section h2 {
    margin: 0;
    color: var(--lp-ink, #28323E);
    font-family: var(--lp-font-display, 'Museo Sans', 'Mukta Mahee', sans-serif);
    font-size: 40px;
    line-height: 71.333px;
}
.lp-article__sous-sections { display: flex; flex-direction: column; gap: 2.5rem; }
.lp-article__sous-entete { margin-bottom: 1rem; }
.lp-article__sous-entete h3 { margin: 0; color: var(--lp-blue, #006DEC); font-size: 26px; font-weight: 700; line-height: 32px; }
.lp-article__sous-titre,
.lp-article__section-sous-titre { margin: 0; color: var(--lp-text-3, #8C8C8C); font-size: 15px; font-weight: 500; line-height: 24px; }
.lp-article__section-sous-titre { margin-bottom: 1rem; }
/* Picture.svelte étire l'image sur toute la largeur du contenu (860 px à
   1440 et non sa taille naturelle) et la recadre au centre. */
.lp-article__img img { width: 100%; max-width: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 30px; box-shadow: 4px 4px 0 0 var(--lp-orange, #FF934F); }
.lp-article__contenu {
    color: var(--lp-ink, #28323E);
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    list-style-position: inside;
}
.lp-article__contenu * { max-width: 100%; height: unset !important; width: unset !important; font-size: 16px; line-height: 26px; }
.lp-article__contenu iframe { position: relative !important; }
.lp-article__contenu a { color: var(--lp-ink, #28323E); text-decoration: underline; }
.lp-article__contenu ul { list-style: disc; }
.lp-article__contenu ul:not(:last-child),
.lp-article__contenu li:not(:last-child) { margin-bottom: 1rem; }
.lp-article__contenu p { margin-block: 1em; font-weight: 400; }
.lp-article__contenu p + h3,
.lp-article__contenu p + h4 { margin-top: 1rem; }
.lp-article__contenu h3,
.lp-article__contenu h4 { color: var(--lp-ink, #28323E); font-weight: 700; }
.lp-article__contenu h4 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 .5rem;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
}
.lp-article__contenu h4::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 19px;
    border-left: 2px solid var(--lp-blue, #006DEC);
}
.lp-article__partage { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; font-weight: 500; line-height: 1.6; }
.lp-article__partage-item { display: flex; align-items: center; gap: 1rem; }
.lp-article__partage-item:first-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--lp-blue-pale, #EBF6FF);
    color: var(--lp-blue, #006DEC);
    font-size: 1.2rem;
    font-weight: 600;
}
.lp-article__partage-item:last-child { padding-block: 1.5rem 1rem; border-top: 1px solid var(--lp-blue-pale, #EBF6FF); }
/* 3.2rem ne vise que la photo de l'auteur ; le rond « Mapi » (MapiCircle)
   garde ses 48 px à toutes les largeurs. */
.lp-article__auteur-img { flex-shrink: 0; width: 3.2rem; height: 3.2rem; border-radius: 3.2rem; }
.lp-article__cercle { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; }
.lp-article__avis { flex: 1; }
.lp-article__espace { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-article__split { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: .5rem; }
.lp-article__actions { display: flex; align-items: center; gap: .5rem; }
.lp-article__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 2rem;
    background: var(--lp-blue-pale, #EBF6FF);
    color: var(--lp-blue, #006DEC);
    cursor: pointer;
}
.lp-article__action:focus-visible { outline: 2px solid var(--lp-blue, #006DEC); outline-offset: 2px; }
@media (pointer: coarse) {
    .lp-article__action { width: 44px; height: 44px; }
}
@media (max-width: 1200px) {
    .lp-article__entete-contenu { padding: 0 1rem; }
    .lp-article__titre { font-size: 2rem; }
    .lp-article__conteneur { flex-direction: column; padding: 0 1rem; }
    .lp-article__principal { max-width: 100%; }
    .lp-article__lateral { position: relative; top: 0; width: 100%; max-height: none; overflow: visible; }
    .lp-article h2 { font-size: 1.8rem; }
    .lp-article__entete-section h2 { font-size: 1.8rem; line-height: 1.4; }
}
@media (max-width: 768px) {
    .lp-article__entete-section img { height: 32px; }
}
@media (max-width: 640px) {
    .lp-article__espace { flex-direction: column; align-items: start; gap: .5rem; }
}
@media (max-width: 480px) {
    .lp-article__menu { overflow: auto; background-color: #fff; }
    .lp-article__menu li { color: var(--lp-card-border, #626263); list-style: none; }
    .lp-article__menu li.is-lu a { padding: .75rem 1rem; background-color: transparent; }
    .lp-article__menu a { display: block; width: max-content; }
    .lp-article__menu a:hover,
    .lp-article__menu a:focus { color: var(--lp-blue, #006DEC); }
}
