/* ============================================================
   BAUGÉ PLUS — Template Présidentiel
   Style : Élysée Editorial — or sur marine — Poppins
============================================================ */

:root {
    --bpres-navy:    #0d1b3e;
    --bpres-blue:    #1a2b5e;
    --bpres-gold:    #C9A84C;
    --bpres-gold-lt: #e8c97a;
    --bpres-cream:   #f5f0e8;
    --bpres-white:   #ffffff;
    --bpres-muted:   rgba(255,255,255,.55);
    --bpres-border:  rgba(201,168,76,.2);
    --bpres-text:    #1a1a2e;
    --bpres-body-bg: #f8f6f0;
    --bpres-max:     1260px;
}

/* ── Reset & base ── */
.bpres-wrap {
    font-family: 'Poppins', system-ui, sans-serif !important;
    background: var(--bpres-body-bg);
    min-height: 100vh;
}
.bpres-wrap *:not(svg):not(path):not(circle):not(polyline):not(text):not(line):not(rect) {
    font-family: 'Poppins', system-ui, sans-serif !important;
}

/* ════════════════════════════════════════════════════
   HERO — Fond marine + grain + sceau
════════════════════════════════════════════════════ */
.bpres-hero {
    position: relative;
    background: var(--bpres-navy);
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Texture grain présidentielle */
.bpres-grain {
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Sceau RF filigrane */
.bpres-seal {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
    color: var(--bpres-gold);
    opacity: .07;
    z-index: 2;
    pointer-events: none;
    animation: bpres-seal-rotate 120s linear infinite;
}
@keyframes bpres-seal-rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

/* Ligne dorée en bas du hero */
.bpres-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--bpres-gold) 30%, var(--bpres-gold) 70%, transparent 100%);
    z-index: 10;
}

.bpres-hero-inner {
    position: relative;
    z-index: 5;
    max-width: var(--bpres-max);
    margin: 0 auto;
    padding: 52px 40px 56px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* ── Badge Présidence ── */
.bpres-badge-presidence {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bpres-border);
    padding-bottom: 14px;
}
.bpres-badge-rf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bpres-gold);
    color: var(--bpres-navy);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    border-radius: 50%;
    flex-shrink: 0;
}
.bpres-badge-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--bpres-gold);
}

/* Type pill */
.bpres-hero-type {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.bpres-type-pill {
    background: rgba(201,168,76,.15);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--bpres-gold-lt);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 3px;
}
.bpres-lieu {
    font-size: 12px;
    color: var(--bpres-muted);
}
.bpres-hero-sep { color: rgba(255,255,255,.2); }

/* Titre */
.bpres-title {
    font-size: clamp(24px, 3.5vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    color: #fff !important;
    margin: 0 0 16px !important;
    letter-spacing: -.5px !important;
}

/* Chapeau */
.bpres-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.65);
    margin: 0 0 24px;
    max-width: 560px;
}

/* Méta */
.bpres-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,.5);
}
.bpres-meta-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(201,168,76,.4);
    object-fit: cover;
}
.bpres-meta-author { color: rgba(255,255,255,.75); font-weight: 600; }
.bpres-meta-date   { color: var(--bpres-gold-lt); font-weight: 600; }
.bpres-meta-sep    { opacity: .3; }
.bpres-meta-stats  {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Photo officielle ── */
.bpres-hero-right { position: relative; }
.bpres-hero-img-frame {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(201,168,76,.2);
}
.bpres-hero-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.92);
}
.bpres-img-caption {
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.5);
    font-size: 10px;
    padding: 6px 10px;
    font-style: italic;
}
/* Cadre doré */
.bpres-hero-img-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201,168,76,.25);
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════
   BANDEAU TRICOLORE ANIMÉ
════════════════════════════════════════════════════ */
.bpres-tricolore {
    display: flex;
    height: 5px;
    overflow: hidden;
}
.bpres-tc-bleu, .bpres-tc-blanc, .bpres-tc-rouge {
    flex: 1;
    animation: bpres-tc-reveal .8s ease forwards;
    transform-origin: left;
    transform: scaleX(0);
}
.bpres-tc-bleu  { background: #002395; animation-delay: .1s; }
.bpres-tc-blanc { background: #ffffff; animation-delay: .25s; }
.bpres-tc-rouge { background: #ED2939; animation-delay: .4s; }
@keyframes bpres-tc-reveal {
    to { transform: scaleX(1); }
}

/* ════════════════════════════════════════════════════
   TICKER — fil d'actu défilant
════════════════════════════════════════════════════ */
.bpres-ticker-wrap {
    background: var(--bpres-blue);
    border-bottom: 1px solid var(--bpres-border);
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    height: 40px;
}
.bpres-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bpres-gold);
    border-right: 1px solid var(--bpres-border);
    height: 100%;
    white-space: nowrap;
}
.bpres-ticker-label svg { fill: var(--bpres-gold); animation: bpres-pulse 1.5s infinite; }
@keyframes bpres-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.bpres-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.bpres-ticker-inner {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    animation: bpres-ticker-scroll 40s linear infinite;
}
@keyframes bpres-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.bpres-ticker-inner:hover { animation-play-state: paused; }
.bpres-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.7) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}
.bpres-ticker-item:hover { color: var(--bpres-gold-lt) !important; }
.bpres-ticker-date {
    font-size: 10px;
    font-weight: 700;
    color: var(--bpres-gold);
    opacity: .8;
}
.bpres-ticker-sep {
    color: rgba(201,168,76,.3);
    font-size: 8px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   CORPS — 2 colonnes
════════════════════════════════════════════════════ */
.bpres-body { background: var(--bpres-body-bg); }
.bpres-body-inner {
    max-width: var(--bpres-max);
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* ── Contenu éditorial ── */
.bpres-content-col { min-width: 0; }
.bpres-content {
    font-size: 17px;
    line-height: 1.82;
    color: var(--bpres-text);
}
.bpres-content > p:first-of-type {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--bpres-blue);
    border-left: 3px solid var(--bpres-gold);
    padding-left: 20px;
    margin-bottom: 2em;
}
.bpres-content h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--bpres-navy) !important;
    margin: 2.2em 0 .6em !important;
    letter-spacing: -.3px !important;
    position: relative;
}
.bpres-content h2::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--bpres-gold);
    margin-bottom: 10px;
}
.bpres-content h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--bpres-blue) !important;
    margin: 1.8em 0 .5em !important;
}
.bpres-content a {
    color: var(--bpres-blue) !important;
    text-decoration: underline;
    text-decoration-color: rgba(201,168,76,.4);
    text-underline-offset: 3px;
}
.bpres-content a:hover { text-decoration-color: var(--bpres-gold); }

/* Blockquote présidentiel — guillemets géants dorés */
.bpres-content blockquote {
    position: relative;
    border: none !important;
    background: var(--bpres-navy);
    border-radius: 2px;
    padding: 36px 40px 32px 56px !important;
    margin: 2.5em 0 !important;
    color: #fff !important;
}
.bpres-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 80px;
    line-height: 1;
    color: var(--bpres-gold);
    opacity: .6;
    font-family: Georgia, serif;
}
.bpres-content blockquote p {
    font-size: 18px !important;
    font-style: italic;
    line-height: 1.65;
    color: rgba(255,255,255,.9) !important;
    margin: 0 !important;
}
.bpres-content blockquote::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--bpres-gold);
    margin-top: 20px;
}
/* Ligne tricolore en bas du blockquote */
.bpres-content blockquote p + p {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: var(--bpres-gold) !important;
    font-style: normal !important;
    margin-top: 16px !important;
}

/* Images dans le contenu */
.bpres-content img {
    max-width: 100%;
    border-radius: 3px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.bpres-content figure { margin: 2em 0; }
.bpres-content figcaption {
    font-size: 12px;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
    border-top: 1px solid #e5e5e5;
    padding-top: 8px;
}

/* ════════════════════════════════════════════════════
   BOUTON RÉAGIR
════════════════════════════════════════════════════ */
.bpres-reactions {
    background: #fff;
    border: 1px solid #e8e3d5;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
    text-align: center;
}
.bpres-reactions-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 14px;
}
.bpres-reactions-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.bpres-reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: #f8f6f0;
    border: 1.5px solid #e8e3d5;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    min-width: 90px;
    user-select: none;
}
.bpres-reaction-btn:hover {
    border-color: var(--bpres-gold);
    background: rgba(201,168,76,.05);
    transform: translateY(-2px);
}
.bpres-reaction-btn.active {
    border-color: var(--bpres-gold);
    background: var(--bpres-navy);
    color: #fff;
}
.bpres-reaction-emoji { font-size: 24px; line-height: 1; }
.bpres-reaction-label { font-size: 11px; font-weight: 600; color: #666; }
.bpres-reaction-btn.active .bpres-reaction-label { color: rgba(255,255,255,.7); }
.bpres-reaction-count {
    font-size: 12px;
    font-weight: 800;
    color: var(--bpres-gold);
    min-height: 16px;
}

/* ════════════════════════════════════════════════════
   SIDEBAR PRÉSIDENTIELLE
════════════════════════════════════════════════════ */
.bpres-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bpres-sidebar-card {
    background: #fff;
    border: 1px solid #e8e3d5;
    border-radius: 8px;
    overflow: hidden;
}

/* Fiche Président */
.bpres-president-card-header {
    background: var(--bpres-navy);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bpres-president-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bpres-gold);
}
.bpres-president-photo-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--bpres-navy);
}
.bpres-president-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: contrast(1.05);
}
.bpres-president-photo-bg {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(13,27,62,.8), transparent);
}
.bpres-president-info {
    padding: 16px;
    border-bottom: 1px solid #f0ece0;
}
.bpres-president-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--bpres-navy);
    margin-bottom: 3px;
}
.bpres-president-role {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}
.bpres-president-affil {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}
.bpres-president-mandat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--bpres-gold);
    font-weight: 600;
}
.bpres-president-actions {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}
.bpres-elysee-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bpres-navy);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: background .15s;
    text-align: center;
}
.bpres-elysee-btn:hover { background: var(--bpres-blue); color: #fff !important; }
.bpres-elysee-btn-ghost {
    background: transparent;
    border: 1.5px solid #e8e3d5;
    color: var(--bpres-navy) !important;
}
.bpres-elysee-btn-ghost:hover { background: #f8f6f0; color: var(--bpres-navy) !important; }

/* Sidebar card générique */
.bpres-sidebar-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bpres-navy);
    border-bottom: 1px solid #f0ece0;
    background: #faf9f5;
}

/* ── Timeline ── */
.bpres-timeline { padding: 8px 0; }
.bpres-timeline-item {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f5f2ea;
    transition: background .12s;
    position: relative;
}
.bpres-timeline-item:last-child { border-bottom: none; }
.bpres-timeline-item:hover { background: #faf9f5; }
.bpres-timeline-current { background: rgba(201,168,76,.08) !important; }
.bpres-timeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid #fff;
    flex-shrink: 0;
    margin-top: 4px;
    transition: background .15s;
}
.bpres-timeline-current .bpres-timeline-dot,
.bpres-timeline-item:hover  .bpres-timeline-dot {
    background: var(--bpres-gold);
}
.bpres-timeline-body { flex: 1; min-width: 0; }
.bpres-timeline-date {
    font-size: 10px;
    font-weight: 700;
    color: var(--bpres-gold);
    display: block;
    margin-bottom: 1px;
}
.bpres-timeline-type {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #aaa;
    display: block;
    margin-bottom: 2px;
}
.bpres-timeline-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--bpres-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bpres-timeline-current .bpres-timeline-title {
    color: var(--bpres-navy);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .bpres-hero-inner { grid-template-columns: 1fr; }
    .bpres-hero-right { display: none; }
    .bpres-body-inner { grid-template-columns: 1fr; }
    .bpres-sidebar { position: static; }
    .bpres-seal { width: 300px; height: 300px; right: -40px; }
}
@media (max-width: 768px) {
    .bpres-hero-inner { padding: 36px 20px 40px; }
    .bpres-body-inner { padding: 32px 20px; }
    .bpres-title { font-size: 26px !important; }
    .bpres-reactions-row { flex-wrap: wrap; }
    .bpres-ticker-label { display: none; }
}
