/* ====================================================================
   Les Patriotes 64 — Articles Frontend CSS
   Charte : Orange #F7941D | Bleu #1B3A6B | Vert #2E7D32 | Rouge #C62828
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --lp-orange    : #F7941D;
    --lp-bleu      : #1B3A6B;
    --lp-bordeaux  : #8B1A1A;
    --lp-vert      : #2E7D32;
    --lp-rouge     : #C62828;
    --lp-gris-fond : #F5F5F5;
    --lp-texte     : #333333;
    --lp-texte-2   : #555555;
    --lp-texte-3   : #888888;
    --font-titre   : 'Montserrat', sans-serif;
    --font-corps   : 'Open Sans', sans-serif;
}

/* ── WRAP ───────────────────────────────────────────────────────────── */
.lp-article-wrap {
    background: #fff;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* ── HERO ───────────────────────────────────────────────────────────── */
.lp-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    background-color: var(--lp-bleu);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(27, 58, 107, .80) 0%,
        rgba(27, 58, 107, .24) 55%,
        transparent 100%
    );
}
.lp-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 32px;
}
.lp-cat-badge {
    display: inline-block;
    background: var(--lp-orange);
    color: #fff;
    font-family: var(--font-titre);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 2px;
    margin-bottom: 12px;
}
.lp-article-title {
    color: #fff;
    font-family: var(--font-titre);
    font-size: clamp(18px, 4vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
    margin: 0;
}

/* ── META AUTEUR ────────────────────────────────────────────────────── */
.lp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 32px;
    border-bottom: 1px solid #f0f0f0;
}
.lp-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lp-author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--lp-bleu);
    object-fit: cover;
    flex-shrink: 0;
}
.lp-author-name {
    font-family: var(--font-titre);
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-bleu);
}
.lp-author-role {
    font-size: 11px;
    color: var(--lp-texte-3);
    margin-top: 2px;
}
.lp-date {
    font-size: 12px;
    color: var(--lp-texte-3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── TAGS ───────────────────────────────────────────────────────────── */
.lp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 32px;
}
.lp-tag {
    background: #f0f3f8;
    color: var(--lp-bleu);
    font-family: var(--font-titre);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: .3px;
    text-decoration: none;
    transition: background .15s;
}
.lp-tag:hover { background: #dce3f0; }

/* ── CORPS ARTICLE ──────────────────────────────────────────────────── */
.lp-article-body {
    padding: 28px 32px 22px;
}
.lp-lead {
    font-family: var(--font-titre);
    font-size: 15px;
    font-weight: 600;
    color: var(--lp-texte);
    line-height: 1.75;
    border-left: 3px solid var(--lp-orange);
    padding-left: 16px;
    margin-bottom: 22px;
}
.lp-article-body p,
.lp-block-para p {
    font-family: var(--font-corps);
    font-size: 14px;
    color: var(--lp-texte-2);
    line-height: 1.85;
    margin-bottom: 18px;
}
.lp-article-body h2,
.lp-block-h2 {
    font-family: var(--font-titre);
    font-size: 19px;
    font-weight: 800;
    color: var(--lp-bleu);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2.5px solid var(--lp-orange);
    display: inline-block;
}
.lp-article-body h3,
.lp-block-h3 {
    font-family: var(--font-titre);
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-bleu);
    margin: 20px 0 10px;
}
.lp-article-body ul,
.lp-block-list {
    padding-left: 20px;
    margin-bottom: 18px;
}
.lp-article-body ul li,
.lp-block-list li {
    font-family: var(--font-corps);
    font-size: 14px;
    color: var(--lp-texte-2);
    line-height: 1.8;
    margin-bottom: 6px;
    padding-left: 4px;
}
.lp-article-body ul li::marker,
.lp-block-list li::marker {
    color: var(--lp-orange);
    font-weight: 700;
}
.lp-article-body img,
.lp-block-image img {
    max-width: 100%;
    border-radius: 6px;
    display: block;
    height: auto;
}
.lp-img-cap {
    font-size: 11px;
    color: var(--lp-texte-3);
    text-align: center;
    padding: 8px 0 4px;
    font-style: italic;
}

/* ── GALERIE ACF ────────────────────────────────────────────────────── */
.lp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin: 18px 0;
}
.lp-block-gallery a { display: block; }
.lp-block-gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; }

/* ── CITATION ───────────────────────────────────────────────────────── */
.lp-quote {
    background: #f8f9fb;
    border-left: 4px solid var(--lp-orange);
    padding: 16px 22px;
    margin: 22px 0;
    border-radius: 0 6px 6px 0;
}
.lp-quote p {
    font-size: 15px !important;
    color: var(--lp-texte) !important;
    font-style: italic;
    margin-bottom: 8px !important;
}
.lp-quote cite {
    font-size: 11px;
    color: var(--lp-texte-3);
    font-style: normal;
    font-weight: 600;
}

/* ── CTA ────────────────────────────────────────────────────────────── */
.lp-cta-wrap {
    padding: 0 32px 28px;
}
.lp-cta {
    background: var(--lp-bleu);
    border-radius: 8px;
    padding: 28px 32px;
    text-align: center;
}
.lp-cta p {
    color: rgba(255,255,255,.85);
    font-family: var(--font-corps);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.65;
}
.lp-cta a {
    display: inline-block;
    background: var(--lp-orange);
    color: #fff;
    font-family: var(--font-titre);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 28px;
    border-radius: 3px;
    text-decoration: none;
    transition: opacity .2s;
}
.lp-cta a:hover { opacity: .88; }

/* ── PARTAGE ────────────────────────────────────────────────────────── */
.lp-share {
    padding: 16px 32px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.lp-share-label {
    font-size: 12px;
    color: var(--lp-texte-3);
    font-weight: 600;
}
.lp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-corps);
    text-decoration: none;
    transition: opacity .2s;
}
.lp-share-btn:hover { opacity: .85; }
.lp-share-fb  { background: #1877F2; }
.lp-share-tw  { background: #1DA1F2; }
.lp-share-wa  { background: #25D366; }
.lp-share-cp  { background: #888; }

/* ── ARTICLES SIMILAIRES ────────────────────────────────────────────── */
.lp-related {
    background: #f9f9f9;
    padding: 22px 32px 28px;
}
.lp-related-title {
    font-family: var(--font-titre);
    font-size: 12px;
    font-weight: 800;
    color: var(--lp-bleu);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.lp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.lp-related-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    text-decoration: none;
    display: block;
    transition: border-color .2s;
}
.lp-related-card:hover { border-color: var(--lp-orange); }
.lp-related-card-img {
    height: 90px;
    background: var(--lp-bleu);
    background-size: cover;
    background-position: center;
}
.lp-related-card-body { padding: 10px 12px; }
.lp-related-card-cat {
    font-family: var(--font-titre);
    font-size: 9.5px;
    font-weight: 800;
    color: var(--lp-orange);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
}
.lp-related-card-title {
    font-family: var(--font-titre);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--lp-texte);
    line-height: 1.4;
}

/* ── ARCHIVE ────────────────────────────────────────────────────────── */
.lp-archive-hdr {
    background: var(--lp-bleu);
    padding: 28px 0 0;
}
.lp-archive-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.lp-archive-title {
    color: #fff;
    font-family: var(--font-titre);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}
.lp-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 0;
}
.lp-cat-tab {
    display: inline-block;
    padding: 8px 16px;
    font-family: var(--font-titre);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all .15s;
}
.lp-cat-tab:hover,
.lp-cat-tab.active {
    color: #fff;
    border-bottom-color: var(--lp-orange);
}

.lp-archive-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* Article vedette */
.lp-vedette-wrap { margin-bottom: 24px; }
.lp-vedette { display: block; text-decoration: none; border-radius: 10px; overflow: hidden; }
.lp-vedette-img {
    position: relative;
    height: 280px;
    background: var(--lp-bleu);
    background-size: cover;
    background-position: center;
}
.lp-vedette-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,58,107,.85) 0%, rgba(27,58,107,.2) 55%, transparent 100%);
}
.lp-vedette-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
}
.lp-vedette-title {
    color: #fff;
    font-family: var(--font-titre);
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    margin: 8px 0 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.lp-vedette-exc {
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Grille archive */
.lp-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.lp-article-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.lp-article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.lp-card-img {
    height: 150px;
    background: var(--lp-bleu);
    background-size: cover;
    background-position: center;
    position: relative;
}
.lp-card-img .lp-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    margin: 0;
}
.lp-card-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lp-card-title {
    font-family: var(--font-titre);
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-bleu);
    line-height: 1.35;
    margin-bottom: 8px;
}
.lp-card-exc {
    font-family: var(--font-corps);
    font-size: 12.5px;
    color: var(--lp-texte-2);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lp-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--lp-texte-3);
    margin-bottom: 8px;
}
.lp-card-read {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lp-orange);
}
.lp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--lp-texte-3);
    padding: 40px;
}

/* Pagination */
.lp-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.lp-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.lp-pagination .page-numbers li a,
.lp-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 5px;
    font-family: var(--font-titre);
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-bleu);
    text-decoration: none;
    transition: all .15s;
}
.lp-pagination .page-numbers li a:hover {
    border-color: var(--lp-orange);
    color: var(--lp-orange);
}
.lp-pagination .page-numbers li .current {
    background: var(--lp-orange);
    border-color: var(--lp-orange);
    color: #fff;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .lp-hero-content { padding: 16px; }
    .lp-meta, .lp-tags, .lp-article-body,
    .lp-cta-wrap, .lp-share, .lp-related { padding-left: 16px; padding-right: 16px; }
    .lp-related-grid { grid-template-columns: 1fr 1fr; }
    .lp-articles-grid { grid-template-columns: 1fr; }
    .lp-hero { height: 260px !important; }
    .lp-article-body { padding-top: 20px; }
    .lp-cta { padding: 20px 18px; }
    .lp-archive-title { font-size: 18px; }
    .lp-vedette-img { height: 200px; }
}
