/* =========================================================================
   LE PROGRÈS DIGITAL — Site public
   Presse : hiérarchie typographique nette, lecture confortable,
   performances soignées pour les connexions limitées.
   ========================================================================= */

:root {
    --lp-primary: #0d3b66;
    --lp-secondary: #c1121f;
    --lp-accent: #f4a261;
    --lp-radius: .5rem;
    --lp-max: 1240px;

    --lp-bg: #fff;
    --lp-surface: #f7f8fa;
    --lp-text: #16202b;
    --lp-muted: #5b6b7c;
    --lp-border: #e2e6ea;
}

[data-theme="dark"] {
    --lp-bg: #12171d;
    --lp-surface: #1a212a;
    --lp-text: #e7edf3;
    --lp-muted: #9aa8b6;
    --lp-border: #2a333d;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --lp-bg: #12171d;
        --lp-surface: #1a212a;
        --lp-text: #e7edf3;
        --lp-muted: #9aa8b6;
        --lp-border: #2a333d;
    }
}

* { box-sizing: border-box; }
html { font-size: var(--lp-font-size, 16px); }
h1, h2, h3, h4, h5, h6 { font-family: var(--lp-font-headings, inherit); }
body[data-design="classic"] { --lp-radius: 0; }
body[data-design="classic"] .lp-section-title { border-bottom: 3px double var(--lp-primary); }
body[data-design="modern"] { --lp-radius: 1rem; }
body[data-design="modern"] .lp-card { box-shadow: 0 6px 24px rgba(0,0,0,.06); border: 1px solid var(--lp-border); padding: .8rem; }
body[data-design="compact"] { --lp-radius: .2rem; line-height: 1.45; }
body[data-design="compact"] .lp-section { margin-bottom: 1.25rem; }

body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
[data-theme="dark"] a { color: #7fb3e8; }

.container-lp { max-width: var(--lp-max); margin-inline: auto; padding-inline: 1rem; }

.skip-link {
    position: absolute; top: -3rem; left: .5rem; z-index: 300;
    background: var(--lp-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--lp-radius);
}
.skip-link:focus { top: .5rem; }

/* -------------------------------------------------------------- En-tête */

.lp-topbar {
    background: var(--lp-primary);
    color: rgba(255, 255, 255, .92);
    font-size: .8rem;
    padding: .4rem 0;
}
.lp-topbar a { color: rgba(255, 255, 255, .92); }
.lp-topbar .container-lp { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.lp-topbar-links { display: flex; gap: .85rem; flex-wrap: wrap; }

.lp-header { border-bottom: 1px solid var(--lp-border); background: var(--lp-bg); }
.lp-header-inner { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; }
.lp-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.lp-brand img { max-height: 54px; width: auto; }
.lp-brand-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--lp-primary); }
[data-theme="dark"] .lp-brand-name { color: #8ec5ff; }
.lp-brand-tagline { font-size: .75rem; color: var(--lp-muted); }
.lp-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .4rem; }

.lp-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border); background: transparent; color: inherit; cursor: pointer;
}
.lp-icon-btn:hover { background: var(--lp-surface); }

/* Navigation principale */
.lp-nav { background: var(--lp-primary); }
.lp-nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.lp-nav-list > li { position: relative; }
.lp-nav-list a {
    display: block; padding: .7rem .85rem; color: rgba(255, 255, 255, .92);
    font-size: .875rem; font-weight: 600; text-decoration: none;
}
.lp-nav-list a:hover, .lp-nav-list a:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.lp-nav-list .active > a { background: rgba(255, 255, 255, .18); color: #fff; }

.lp-submenu {
    display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 14rem;
    background: var(--lp-bg); border: 1px solid var(--lp-border); border-radius: 0 0 var(--lp-radius) var(--lp-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12); list-style: none; margin: 0; padding: .25rem 0; z-index: 120;
}
.lp-nav-list > li:hover > .lp-submenu, .lp-nav-list > li:focus-within > .lp-submenu { display: block; }
.lp-submenu a { color: var(--lp-text); padding: .45rem .85rem; font-weight: 500; }
.lp-submenu a:hover { background: var(--lp-surface); }

.lp-nav-toggle { display: none; }

/* Bandeau Breaking News */
.lp-breaking {
    background: var(--lp-secondary); color: #fff; padding: .5rem 0; font-size: .875rem;
}
.lp-breaking .container-lp { display: flex; align-items: center; gap: .75rem; }
.lp-breaking-label {
    background: #fff; color: var(--lp-secondary); font-weight: 800; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .06em; padding: .2rem .5rem; border-radius: .25rem; flex-shrink: 0;
}
.lp-breaking-items { display: flex; gap: 2rem; overflow: hidden; white-space: nowrap; }
.lp-breaking a { color: #fff; }

/* ------------------------------------------------------------- Structure */

main { min-height: 50vh; padding-block: 1.75rem; }

.lp-section { margin-bottom: 2.5rem; }
.lp-section-head {
    flex-wrap: wrap;
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    border-bottom: 3px solid var(--lp-primary); padding-bottom: .4rem; margin-bottom: 1.1rem;
}
.lp-section-title { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.lp-section-more { font-size: .82rem; font-weight: 600; }

.lp-grid { display: grid; gap: 1.25rem; }
.lp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.lp-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.lp-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }

/* ----------------------------------------------------------------- Cartes */

.lp-card { background: var(--lp-bg); border-radius: var(--lp-radius); overflow: hidden; }
.lp-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--lp-surface); overflow: hidden; border-radius: var(--lp-radius); }
.lp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lp-card:hover .lp-card-media img { transform: scale(1.04); }
.lp-card-body { padding: .7rem 0 0; }

.lp-kicker {
    display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .07em; color: var(--lp-secondary); margin-bottom: .3rem;
}
.lp-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0 0 .35rem; }
.lp-card-title a { color: inherit; }
.lp-card-title a:hover { color: var(--lp-primary); text-decoration: none; }
.lp-card-excerpt { font-size: .875rem; color: var(--lp-muted); margin: 0 0 .4rem; }
.lp-card-meta { font-size: .76rem; color: var(--lp-muted); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.lp-card-meta .dot::before { content: "·"; margin-inline-end: .5rem; }

.lp-card-lead .lp-card-title { font-size: 1.9rem; letter-spacing: -.02em; }
.lp-card-lead .lp-card-excerpt { font-size: 1rem; }
.lp-card-lead .lp-card-media { aspect-ratio: 16 / 9; }

.lp-card-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: .75rem; align-items: start; }
.lp-card-row .lp-card-media { aspect-ratio: 1 / 1; }
.lp-card-row .lp-card-title { font-size: .95rem; }

.lp-badge {
    display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; padding: .18rem .45rem; border-radius: .25rem; color: #fff;
}

/* --------------------------------------------------------------- Article */

.lp-article-header { margin-bottom: 1.5rem; }
.lp-overline { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-secondary); }
.lp-article-title { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin: .4rem 0; }
.lp-article-subtitle { font-size: 1.15rem; color: var(--lp-muted); font-weight: 400; margin: 0 0 .75rem; }
.lp-article-summary { font-size: 1.1rem; font-weight: 500; line-height: 1.6; border-inline-start: 4px solid var(--lp-primary); padding-inline-start: 1rem; margin: 1rem 0 1.4rem; }

.lp-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 0; border-block: 1px solid var(--lp-border); font-size: .85rem; }
.lp-byline-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.lp-byline-name { font-weight: 700; }
.lp-byline-role { color: var(--lp-muted); font-size: .8rem; }

.lp-figure { margin: 1.5rem 0; }
.lp-figure img { width: 100%; border-radius: var(--lp-radius); }
.lp-figure figcaption { font-size: .8rem; color: var(--lp-muted); padding-top: .45rem; border-bottom: 1px solid var(--lp-border); padding-bottom: .45rem; }
.lp-credit { font-style: italic; }

.lp-content { font-size: 1.075rem; line-height: 1.75; }
.lp-layout.lp-layout-wide { grid-template-columns: minmax(0, 1fr); }
.lp-layout-wide > aside { display: none; }
.lp-article-header-centered { text-align: center; }
.lp-article-header-centered .lp-byline { justify-content: center; }
.lp-content.lp-content-large { font-size: 1.22rem; line-height: 1.9; }
.lp-content-dropcap > p:first-of-type::first-letter { float: inline-start; font-family: var(--lp-font-headings, Georgia, serif); font-size: 3.5em; line-height: .9; margin: .08em .12em 0 0; color: var(--lp-primary); }
.lp-article-highlight, .lp-article-toc { border: 1px solid var(--lp-border); border-inline-start: 4px solid var(--lp-primary); background: var(--lp-surface); border-radius: var(--lp-radius); padding: 1.25rem; margin-block: 1.5rem; }
.lp-article-highlight h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.lp-article-highlight p { margin: 0; }
.lp-article-toc ol { margin: .6rem 0 0; padding-inline-start: 1.25rem; }
.lp-article-toc li { margin-block: .3rem; }
.lp-article-toc .lp-toc-subheading { margin-inline-start: 1rem; }
.lp-content h2[id], .lp-content h3[id] { scroll-margin-top: 5rem; }
.lp-article-source { font-size: .85rem; color: var(--lp-muted); margin-block: 1.5rem; }
.lp-content > * + * { margin-top: 1.1rem; }
.lp-content h2 { font-size: 1.45rem; font-weight: 700; margin-top: 2rem; letter-spacing: -.01em; }
.lp-content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6rem; }
.lp-content blockquote {
    border-inline-start: 4px solid var(--lp-secondary); padding: .35rem 0 .35rem 1.15rem;
    font-size: 1.15rem; font-style: italic; color: var(--lp-text); margin-inline: 0;
}
.lp-content img, .lp-content figure img { border-radius: var(--lp-radius); }
.lp-content figure figcaption { font-size: .8rem; color: var(--lp-muted); padding-top: .4rem; }
.lp-content ul, .lp-content ol { padding-inline-start: 1.4rem; }
.lp-content li + li { margin-top: .35rem; }
.lp-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lp-content th, .lp-content td { border: 1px solid var(--lp-border); padding: .5rem .65rem; text-align: start; }
.lp-content th { background: var(--lp-surface); font-weight: 700; }
.lp-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--lp-radius); }
.lp-table-scroll { overflow-x: auto; }

.lp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; }
.lp-tag { font-size: .78rem; padding: .25rem .6rem; border: 1px solid var(--lp-border); border-radius: 2rem; color: var(--lp-muted); }
.lp-tag:hover { background: var(--lp-surface); text-decoration: none; }

.lp-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem 0; border-block: 1px solid var(--lp-border); }
.lp-share-btn {
    display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem;
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius); font-size: .82rem; color: inherit;
}
.lp-share-btn:hover { background: var(--lp-surface); text-decoration: none; }

/* --------------------------------------------------------------- Missions */

.lp-mission-header { border-radius: var(--lp-radius); padding: 1.5rem; color: #fff; margin-bottom: 1.75rem; }
.lp-mission-header h1 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.lp-mission-objective { font-size: 1.05rem; opacity: .95; margin: 0; max-width: 46rem; }
.lp-mission-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.lp-mission-chip { background: rgba(255, 255, 255, .2); color: #fff; padding: .25rem .65rem; border-radius: 2rem; font-size: .8rem; }
.lp-mission-chip:hover { background: rgba(255, 255, 255, .32); text-decoration: none; }

.lp-mission-block { border-top: 4px solid; padding-top: .9rem; }

/* ------------------------------------------------------------- Le Journal */

.lp-edition-cover { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden; background: var(--lp-surface); aspect-ratio: 210 / 297; }
.lp-edition-cover img { width: 100%; height: 100%; object-fit: cover; }
.lp-edition-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--lp-muted); text-align: center; padding: 1rem; }

.lp-summary-group { margin-bottom: 1.5rem; }
.lp-summary-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-primary); border-bottom: 2px solid var(--lp-border); padding-bottom: .35rem; margin-bottom: .6rem; }
.lp-summary-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .75rem; padding: .5rem 0; border-bottom: 1px dotted var(--lp-border); }
.lp-summary-page { font-weight: 800; color: var(--lp-secondary); }
.lp-summary-meta { font-size: .78rem; color: var(--lp-muted); }

.lp-back-to-summary {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600;
    padding: .4rem .8rem; border: 1px solid var(--lp-border); border-radius: 2rem; margin-bottom: 1rem;
}

.lp-masthead { background: var(--lp-surface); border-radius: var(--lp-radius); padding: 1.1rem 1.25rem; font-size: .84rem; }
.lp-masthead dt { font-weight: 700; color: var(--lp-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.lp-masthead dd { margin: 0 0 .6rem; }

/* Mode magazine */
.lp-magazine-page { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 1.5rem; margin-bottom: 1.25rem; background: var(--lp-bg); }
.lp-magazine-number { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); border-bottom: 2px solid var(--lp-border); padding-bottom: .35rem; margin-bottom: .9rem; }

/* -------------------------------------------------------------- Timeline */

.lp-timeline { position: relative; padding-inline-start: 2rem; }
.lp-timeline::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: .55rem; width: 2px; background: var(--lp-border); }
.lp-timeline-decade { font-size: 1.5rem; font-weight: 800; color: var(--lp-primary); margin: 2rem 0 .75rem; position: relative; }
.lp-timeline-year { font-weight: 800; color: var(--lp-secondary); margin: 1.2rem 0 .5rem; }
.lp-timeline-item { position: relative; padding-bottom: 1.1rem; }
.lp-timeline-item::before { content: ""; position: absolute; inset-inline-start: -1.72rem; top: .45rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--lp-primary); border: 2px solid var(--lp-bg); }

/* ------------------------------------------------- Engagements et tableaux */

.lp-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lp-table th { background: var(--lp-surface); text-align: start; padding: .6rem .7rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); }
.lp-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--lp-border); vertical-align: top; }

.lp-progress { height: 7px; background: var(--lp-border); border-radius: 4px; overflow: hidden; min-width: 80px; }
.lp-progress > span { display: block; height: 100%; border-radius: 4px; }

.lp-status { display: inline-block; font-size: .72rem; font-weight: 700; padding: .18rem .5rem; border-radius: 2rem; }
.lp-status-todo { background: #e9ecef; color: #495057; }
.lp-status-in_progress { background: #cfe2ff; color: #084298; }
.lp-status-late { background: #f8d7da; color: #842029; }
.lp-status-done { background: #d1e7dd; color: #0f5132; }
.lp-status-suspended { background: #e2e3e5; color: #41464b; }

/* --------------------------------------------------------------- Aside */

.lp-aside { position: sticky; top: 1rem; }
.lp-widget { background: var(--lp-surface); border-radius: var(--lp-radius); padding: 1.1rem; margin-bottom: 1.25rem; }
.lp-widget-title { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .75rem; color: var(--lp-primary); }
.lp-widget-list { list-style: none; margin: 0; padding: 0; }
.lp-widget-list li { padding: .55rem 0; border-bottom: 1px solid var(--lp-border); font-size: .88rem; }
.lp-widget-list li:last-child { border-bottom: 0; }

/* --------------------------------------------------------- Formulaires */

.lp-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.lp-form .lp-input, .lp-form textarea, .lp-form select {
    width: 100%; padding: .55rem .7rem; border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    background: var(--lp-bg); color: var(--lp-text); font: inherit; font-size: .92rem;
}
.lp-form .lp-input:focus, .lp-form textarea:focus, .lp-form select:focus { outline: 2px solid var(--lp-primary); outline-offset: -1px; }
.lp-form .lp-field { margin-bottom: .9rem; }
.lp-form .lp-hint { font-size: .78rem; color: var(--lp-muted); margin-top: .2rem; }

.lp-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: var(--lp-radius);
    background: var(--lp-primary); color: #fff; border: 0; font-weight: 600; font-size: .92rem; cursor: pointer;
}
.lp-btn:hover { background: #0a2f52; color: #fff; text-decoration: none; }
.lp-btn-outline { background: transparent; color: var(--lp-primary); border: 1px solid var(--lp-primary); }
.lp-btn-outline:hover { background: var(--lp-primary); color: #fff; }
.lp-btn-secondary { background: var(--lp-secondary); }
.lp-btn-secondary:hover { background: #9d0e19; }

.lp-alert { padding: .75rem 1rem; border-radius: var(--lp-radius); margin-bottom: 1rem; font-size: .9rem; }
.lp-alert-success { background: #d1e7dd; color: #0f5132; }
.lp-alert-danger { background: #f8d7da; color: #842029; }
.lp-alert-warning { background: #fff3cd; color: #664d03; }
.lp-alert-info { background: #cff4fc; color: #055160; }

.lp-newsletter { background: var(--lp-primary); color: #fff; border-radius: var(--lp-radius); padding: 1.6rem; }
.lp-newsletter h2 { margin: 0 0 .4rem; font-size: 1.3rem; font-weight: 800; }
.lp-newsletter p { margin: 0 0 1rem; opacity: .9; font-size: .9rem; }
.lp-newsletter form { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-newsletter input[type="email"] { flex: 1 1 15rem; padding: .6rem .8rem; border: 0; border-radius: var(--lp-radius); font: inherit; }

/* ------------------------------------------------------------- Pagination */

.lp-pagination { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin: 2rem 0; list-style: none; padding: 0; }
.lp-pagination a, .lp-pagination span {
    display: inline-block; min-width: 2.3rem; text-align: center; padding: .45rem .65rem;
    border: 1px solid var(--lp-border); border-radius: var(--lp-radius); font-size: .88rem; color: inherit;
}
.lp-pagination .current { background: var(--lp-primary); color: #fff; border-color: var(--lp-primary); font-weight: 700; }
.lp-pagination .disabled { opacity: .4; }

.lp-breadcrumb { font-size: .8rem; color: var(--lp-muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.lp-breadcrumb span::after { content: "›"; margin-inline-start: .35rem; opacity: .6; }
.lp-breadcrumb span:last-child::after { content: ""; }

/* ------------------------------------------------------------- Pied de page */

.lp-footer { background: var(--lp-footer-bg, #0b2135); color: var(--lp-footer-text, #c4cbd0); margin-top: 3rem; padding-block: 2.5rem 1.25rem; font-size: .875rem; }
.lp-footer a, [data-theme="dark"] .lp-footer a { color: var(--lp-footer-link, #c4cbd0); }
.lp-footer a:hover { text-decoration: underline; }
.lp-footer h3 { color: var(--lp-footer-heading, #fff); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .75rem; }
.lp-footer .lp-content h2, .lp-footer .lp-content h3, .lp-footer .lp-content h4 { color: var(--lp-footer-heading, #fff); }
.lp-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1.75rem; }
.lp-footer-list { list-style: none; margin: 0; padding: 0; }
.lp-footer-list li { padding: .25rem 0; }
.lp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .8rem; }
.lp-social { display: flex; gap: .5rem; }
.lp-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.lp-social a:hover { background: var(--lp-secondary); }

/* --------------------------------------------------------------- Divers */

.lp-empty { text-align: center; padding: 3rem 1rem; color: var(--lp-muted); }
.lp-empty i { font-size: 2.6rem; opacity: .4; display: block; margin-bottom: .75rem; }

.lp-player { width: 100%; }
.lp-video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--lp-radius); overflow: hidden; background: #000; }
.lp-video-wrap iframe, .lp-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Vidéo dont la source n'est pas disponible : on affiche la vignette
   plutôt qu'un cadre noir vide. */
.lp-video-pending { position: absolute; inset: 0; display: block; text-decoration: none; }
.lp-video-pending img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.lp-video-pending p { position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: .85rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: .9rem; text-align: center; }

.lp-search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.lp-search-form input[type="search"] { flex: 1 1 16rem; padding: .6rem .8rem; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); font: inherit; background: var(--lp-bg); color: var(--lp-text); }

/* Recherche fédérée : onglets par famille de contenu et liste unique de
   résultats. Le même gabarit sert un article, une vidéo ou une fédération —
   seule la vignette change, ce qui garde la lecture homogène. */

.lp-search-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .25rem; }
.lp-search-tab {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .7rem; border: 1px solid var(--lp-border); border-radius: 2rem;
    font-size: .82rem; font-weight: 600; color: var(--lp-text); background: var(--lp-surface);
    text-decoration: none; white-space: nowrap;
}
.lp-search-tab:hover { border-color: var(--lp-primary); color: var(--lp-primary); }
.lp-search-tab.active { background: var(--lp-primary); border-color: var(--lp-primary); color: #fff; }
.lp-search-tab span {
    font-size: .72rem; font-weight: 700; padding: .05rem .35rem;
    border-radius: 1rem; background: rgba(0, 0, 0, .08);
}
.lp-search-tab.active span { background: rgba(255, 255, 255, .25); }

.lp-results { list-style: none; margin: 0; padding: 0; }
.lp-result {
    display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--lp-border);
}
.lp-result:last-child { border-bottom: 0; }
.lp-result-media { display: block; border-radius: var(--lp-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--lp-surface); }
.lp-result-media img { width: 100%; height: 100%; object-fit: cover; }
.lp-result-icon { display: flex; align-items: center; justify-content: center; color: var(--lp-muted); }
.lp-result-icon i { font-size: 1.9rem; opacity: .55; }
.lp-result-body { min-width: 0; }
.lp-result-title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin: .2rem 0 .3rem; }
.lp-result-subtitle { font-size: .85rem; color: var(--lp-muted); margin: 0 0 .3rem; }
.lp-result-excerpt { font-size: .875rem; color: var(--lp-muted); margin: 0 0 .4rem; }
.lp-result-excerpt mark, .lp-result-title mark {
    background: rgba(255, 193, 7, .35); color: inherit; padding: 0 .1em; border-radius: .15rem;
}

@media (max-width: 575.98px) {
    .lp-result { grid-template-columns: 76px minmax(0, 1fr); gap: .75rem; }
    .lp-result-title { font-size: .98rem; }
}

.lp-letter { background: var(--lp-surface); border-radius: var(--lp-radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.lp-letter-answer { border-inline-start: 3px solid var(--lp-primary); padding-inline-start: .9rem; margin-top: .9rem; font-size: .9rem; }

/* ------------------------------------------------------------ Responsive */

@media (max-width: 991.98px) {
    .lp-layout { grid-template-columns: minmax(0, 1fr); }
    .lp-aside { position: static; }
}

@media (max-width: 767.98px) {
    .lp-nav-toggle {
        display: inline-flex; align-items: center; gap: .4rem; width: 100%;
        background: transparent; border: 0; color: #fff; padding: .7rem 1rem; font-weight: 700; cursor: pointer;
    }
    .lp-nav-list { display: none; flex-direction: column; }
    .lp-nav-list.open { display: flex; }
    .lp-nav-list a { border-top: 1px solid rgba(255, 255, 255, .12); }
    .lp-submenu { position: static; display: block; background: rgba(0, 0, 0, .18); border: 0; box-shadow: none; }
    .lp-submenu a { color: rgba(255, 255, 255, .85); padding-inline-start: 2rem; }
    .lp-card-lead .lp-card-title { font-size: 1.45rem; }
    .lp-brand-name { font-size: 1.3rem; }
    .lp-topbar-links { display: none; }
}

@media (max-width: 575.98px) {
    body { font-size: 15px; }
    .lp-card-row { grid-template-columns: 84px minmax(0, 1fr); }
    .lp-summary-item { grid-template-columns: 2.4rem minmax(0, 1fr); }
    .lp-content { font-size: 1.02rem; }
}

@media print {
    .lp-topbar, .lp-nav, .lp-header-actions, .lp-footer, .lp-share, .lp-breaking,
    .lp-aside, .lp-pagination, .no-print { display: none !important; }
    body { font-size: 11pt; background: #fff; color: #000; }
    .lp-layout { display: block; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
    .lp-article-title { font-size: 20pt; }
}

/* Réduction des animations pour les personnes sensibles au mouvement */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Direction RTL (arabe) */
[dir="rtl"] .lp-article-summary { border-inline-start: 0; border-inline-end: 4px solid var(--lp-primary); }
[dir="rtl"] .lp-content blockquote { border-inline-start: 0; border-inline-end: 4px solid var(--lp-secondary); }
[dir="rtl"] .lp-timeline { padding-inline-start: 0; padding-inline-end: 2rem; }
[dir="rtl"] .lp-timeline::before { inset-inline-start: auto; inset-inline-end: .55rem; }
[dir="rtl"] .lp-timeline-item::before { inset-inline-start: auto; inset-inline-end: -1.72rem; }

/* ------------------------------------------ Robustesse en petite largeur */

/* Un mot long — nom composé, adresse, référence d'acte — ne doit jamais
   élargir la page : sur un téléphone, le moindre débordement horizontal
   décale tout le contenu et donne l'impression que les titres sont rognés. */
h1, h2, h3, h4,
.lp-card-title, .lp-article-title, .lp-section-title, .lp-card-excerpt,
.lp-summary-title, .lp-widget-title, .lp-content, .lp-brand-tagline {
    overflow-wrap: break-word;
}

/* Les éléments d'une rangée flex ne se rétrécissent pas sous leur contenu
   tant qu'on ne l'autorise pas explicitement. */
.lp-header-inner, .lp-brand { min-width: 0; }
.lp-brand > span { min-width: 0; }

/* Filet de sécurité : aucun média ne dépasse son conteneur. */
img, video, iframe, table { max-width: 100%; }

/* Mention libre du pied de page, pilotee depuis les parametres. */
.lp-footer-note {
    margin: 0 0 .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .82rem;
    color: rgba(255, 255, 255, .72);
}

/* Navigation qui suit le defilement, activable depuis les parametres. */
.lp-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 150;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
