/* Agora : fil communautaire (avatars, cartes de fil, commentaires, composeur). Couleurs de la Republique. */
.av { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: #002395; }
.av-1 { background: #ED2939; } .av-2 { background: #00164f; } .av-3 { background: #4a5ba6; }
.av-lg { width: 3.1rem; height: 3.1rem; font-size: 1.25rem; }

.side { background: #fff; border: 1px solid #d5d9e6; border-radius: 8px; padding: .9rem; position: sticky; top: 1rem; }
.side-title { font-weight: 700; color: #00164f; margin: 0 0 .5rem; }
.side-link { display: block; padding: .45rem .6rem; border-radius: 6px; color: #1b1f33; text-decoration: none; }
.side-link:hover { background: #eef1fa; }
.side-link.on { background: #002395; color: #fff; font-weight: 600; }
.side-link:focus-visible { outline: 3px solid #ED2939; outline-offset: 1px; }
.side-sep { margin-top: .6rem; border-top: 1px solid #e3e6f0; border-radius: 0 0 6px 6px; }

.compose-teaser { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid #d5d9e6; border-radius: 999px; padding: .6rem 1rem .6rem .6rem; margin-bottom: 1rem; color: #4a4f66; text-decoration: none; }
a.compose-teaser:hover { border-color: #002395; color: #002395; }
.compose-teaser-off { border-radius: 8px; padding: .8rem 1rem; }

.post-card { position: relative; background: #fff; border: 1px solid #d5d9e6; border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: .85rem; }
.post-card:hover { border-color: #9aa6d6; }
.post-main:hover { border-color: #d5d9e6; }
.post-link { position: absolute; inset: 0; border-radius: 8px; z-index: 1; }
.post-link:focus-visible { outline: 3px solid #ED2939; outline-offset: 2px; }
.post-top { display: flex; gap: .7rem; align-items: center; margin-bottom: .6rem; }
.post-title { font-size: 1.2rem; margin: 0 0 .35rem; color: #00164f; line-height: 1.3; }
.post-excerpt, .post-text { margin: 0 0 .6rem; color: #2a2e44; overflow-wrap: anywhere; }
.post-foot { margin: 0; color: #4a4f66; font-size: .92rem; }
.post-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; border-top: 1px solid #e3e6f0; padding-top: .6rem; margin-top: .4rem; }
.post-empty { color: #4a4f66; text-align: center; padding: 1.2rem 0; }

.com { display: flex; gap: .65rem; margin-bottom: .9rem; }
.com-main { flex: 1 1 auto; min-width: 0; }
.com-bubble { background: #eef1fa; border-radius: 14px; border-top-left-radius: 4px; padding: .6rem .85rem; }
.com-head { margin: 0 0 .15rem; font-size: .92rem; }
.com-head time { color: #5a5f78; font-size: .85rem; margin-left: .35rem; }
.com-reformule { margin: 0 0 .4rem; padding-left: .6rem; border-left: 3px solid #002395; font-size: .92rem; color: #2a2e44; }
.com-text { margin: 0; overflow-wrap: anywhere; }
.com-actions { display: flex; gap: .25rem 1rem; padding: .2rem .4rem 0; }
.act { background: none; border: 0; padding: .2rem 0; color: #4a4f66; font-size: .9rem; text-decoration: none; cursor: pointer; }
.act:hover { color: #002395; text-decoration: underline; }
.act-on { color: #ED2939; font-weight: 600; }
.act:focus-visible { outline: 3px solid #ED2939; outline-offset: 2px; }
.com:target .com-bubble { box-shadow: 0 0 0 2px #002395; }

#fil-reponses { margin-bottom: 1rem; }
.compose { position: sticky; bottom: .5rem; box-shadow: 0 -2px 14px rgba(0,22,79,.12); z-index: 5; }
@media (max-width: 575px) { .com .av { width: 2rem; height: 2rem; } .post-card { padding: .85rem; } }

/* Correctifs de mise en page : une carte ne prend plus 100 % de la hauteur de sa colonne (le bouton dessous debordait sous le pied de page). */
.carte { height: auto; }
.carte-lien .carte, .carte.h-100 { height: 100%; }
.section { padding-bottom: 3.5rem; }

/* Marche a suivre */
.howto{background:#eef2fc;border:1px solid #cfdaf6;border-left:5px solid #002395;border-radius:8px;padding:.75rem 1rem;margin:1rem 0}
.howto summary{cursor:pointer;font-weight:700;color:#00164f;min-height:44px;display:flex;align-items:center;gap:.5rem}
.howto ol{margin:.5rem 0 .75rem;padding-left:1.25rem;color:#1b1f33}
.howto li{margin-bottom:.25rem}
.stat-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:1rem 0}
.stat-strip div{background:#fff;border:1px solid #d8e0f0;border-radius:10px;padding:.75rem 1rem}
.stat-strip strong{display:block;font-size:1.8rem;color:#002395;line-height:1}
.act-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.act-card{background:#fff;border:1px solid #d8e0f0;border-top:5px solid #002395;border-radius:10px;padding:1rem}
.act-card:nth-child(even){border-top-color:#ED2939}
.act-card h3{font-size:1.15rem;color:#00164f}
.act-card ul{padding-left:1.1rem;margin:0}

.eco-band{background:#00164f;color:#fff;border-bottom:6px solid #ED2939}
.eco-title{font-size:clamp(1.7rem,4vw,2.5rem);font-weight:700;line-height:1.1;max-width:24ch}
.eco-lede{font-size:1.15rem;max-width:62ch;opacity:.92}
.eco-band .act-card{color:#141c33}

.eco-band h2,.eco-band .eco-title{color:#fff}
.eco-band .btn-light{color:#00164f}
.peace-ribbon{background:#fff7e0;border-bottom:1px solid #ecd9a0;padding:.75rem 0;color:#4a3b00}
.big-fact{font-size:2rem;font-weight:700;color:#002395;line-height:1}
.theme-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.theme-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 1rem;border:1px solid #cfdaf6;border-radius:999px;background:#fff;color:#00164f;text-decoration:none;font-weight:600}
.theme-chip:hover,.theme-chip:focus-visible{background:#002395;color:#fff}
.flow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;counter-reset:f}
.flow li{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid #d8e0f0;border-radius:10px;padding:.9rem}
.flow .n{flex:none;width:32px;height:32px;border-radius:50%;background:#002395;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.final-band{background:linear-gradient(180deg,#00164f,#002395);color:#fff;padding:3rem 0;border-top:6px solid #ED2939}
.final-band h2{color:#fff;font-size:clamp(1.8rem,4vw,2.6rem);font-weight:700}
.final-words{list-style:none;display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;padding:0;margin:1.5rem 0 0}
.final-words a{display:flex;flex-direction:column;align-items:center;gap:.4rem;min-width:110px;color:#fff;text-decoration:none;font-weight:600}
.final-words i{font-size:1.8rem;width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center}
.final-words a:hover i,.final-words a:focus-visible i{background:#ED2939}

.welcome-banner{background:#002395;color:#fff;padding:.6rem 0;font-size:.95rem}
.hub-card{background:#fff;border:1px solid #d8e0f0;border-radius:12px;color:#00164f}
.hub-card:hover{border-color:#002395;box-shadow:0 2px 10px rgba(0,35,149,.15)}
.commons-note{border-left:4px solid #ED2939;background:#f3f6fc;padding:1rem 1.25rem}

.need-fab{position:fixed;right:1rem;bottom:1rem;z-index:1025;background:#002395;color:#fff;border:0;border-radius:999px;padding:.7rem 1.1rem;font-weight:700;box-shadow:0 4px 14px rgba(0,22,79,.35);min-height:48px}
.need-fab:hover,.need-fab:focus-visible{background:#00164f;color:#fff}
.need-fab i{margin-right:.35rem}
@media (max-width:991.98px){.need-fab{bottom:calc(84px + env(safe-area-inset-bottom));right:.75rem}.need-fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.need-fab i{margin:0;font-size:1.3rem}}
.need-link{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;border:1px solid #d8e0f0;border-radius:10px;background:#fff;color:#00164f;text-decoration:none;font-weight:600;min-height:52px}
.need-link:hover,.need-link:focus-visible{border-color:#002395;background:#f3f6fc}
.need-link i{font-size:1.4rem;color:#ED2939}
.missions-band{background:#f3f6fc}

.live-ico{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:#fff;font-size:1.25rem;text-decoration:none}
.live-badge{position:absolute;top:2px;right:2px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ED2939;color:#fff;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.live-badge[hidden]{display:none}
.live-badge-tab{top:2px;right:calc(50% - 22px)}
.tabbar a{position:relative}
.live-toasts{position:fixed;left:1rem;bottom:calc(84px + env(safe-area-inset-bottom));z-index:1060;display:grid;gap:.5rem;max-width:min(92vw,360px)}
@media (min-width:992px){.live-toasts{bottom:1rem}}
.live-toast{display:block;background:#00164f;color:#fff;border-left:5px solid #ED2939;border-radius:8px;padding:.75rem 1rem;text-decoration:none;box-shadow:0 4px 14px rgba(0,22,79,.35)}
.live-toast:hover{color:#fff;background:#002395}
.need-unread{border-color:#ED2939;background:#fff7f7}

/* Accueil homogène : même rythme, mêmes titres, mêmes cartes */
.hx-native{padding:0;background:#f4f3ef;text-align:center}
.hx-brand{padding:4.5rem 1rem 1.5rem}
.hx-flag{display:inline-flex;width:78px;height:6px;margin-bottom:1.25rem}
.hx-flag i{flex:1}.hx-flag i:nth-child(1){background:#1f3a93}.hx-flag i:nth-child(2){background:#fff;border-block:1px solid #d8e0f0}.hx-flag i:nth-child(3){background:#c8202f}
.hx-title{font-family:Georgia,'Times New Roman',serif;font-weight:800;color:#1b2a5e;font-size:clamp(2.4rem,7vw,4.6rem);line-height:1.05;margin:0 0 .75rem;letter-spacing:-.01em}
.hx-tag{color:#4a5373;letter-spacing:.28em;text-transform:uppercase;font-size:clamp(.8rem,2vw,1.15rem);margin:0 0 1.25rem}
.hx-sub{color:#1b2a5e;font-size:clamp(1rem,2.4vw,1.35rem);margin:0}
.hx-native .hx-actions{padding:1.5rem 0 2.5rem;max-width:760px;margin:0 auto}
.hx-native .hx-lede{margin:0 auto 1.25rem;color:#1b1f33}
.hx-native .hx-meta{margin-top:1rem;color:#4a5373;font-size:.92rem}
.hx-strip{display:flex;height:12px}.hx-strip i{flex:1}.hx-strip i:nth-child(1){background:#1f3a93}.hx-strip i:nth-child(2){background:#fff}.hx-strip i:nth-child(3){background:#c8202f}
.home-flow > section.section{padding:3.5rem 0;background:#fff}
.home-flow > section.section:nth-of-type(odd){background:#f3f6fc}
.home-flow > section.section.eco-band{background:#00164f;color:#fff}
.home-flow > section.section h2{font-family:Georgia,'Times New Roman',serif;color:#00164f;text-align:center;margin-bottom:.4rem}
.home-flow > section.section h2::after{content:"";display:block;width:72px;height:4px;margin:.7rem auto 1.25rem;background:linear-gradient(90deg,#002395 0 33%,#d8e0f0 33% 66%,#ED2939 66%)}
.home-flow > section.section.eco-band h2,.home-flow > section.section.eco-band .eco-title{color:#fff}
.home-flow > section.section .lead{text-align:center;max-width:62ch;margin:0 auto 1.5rem}
.home-flow .carte{background:#fff;border:1px solid #d8e0f0;border-top:3px solid #002395;border-radius:10px;box-shadow:none}
.home-flow .eco-band .carte{border-top-color:#ED2939}
.home-flow > section.section .commons-note{max-width:760px;margin:0 auto}
@media (prefers-reduced-motion:no-preference){.need-link{transition:border-color .15s,background .15s}}

/* Cloche façon réseau social */
.notif-dd{position:relative}
.notif-panel{width:380px;max-width:92vw;padding:0;border-radius:12px;border:1px solid #d8e0f0;box-shadow:0 8px 28px rgba(0,22,79,.22);overflow:hidden}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-bottom:1px solid #e6edfb;font-size:1.05rem}
.notif-list{max-height:min(70vh,480px);overflow-y:auto}
.notif-item{display:flex;gap:.75rem;align-items:center;padding:.7rem 1rem;color:#141c33;text-decoration:none;min-height:64px;border-bottom:1px solid #f0f3fa}
.notif-item:hover,.notif-item:focus-visible{background:#f3f6fc;color:#141c33}
.notif-item.unread{background:#eef3ff}
.notif-ic{flex:none;width:44px;height:44px;border-radius:50%;background:#002395;color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.2rem}
.notif-tx{flex:1;min-width:0;display:flex;flex-direction:column}
.notif-t{font-size:.95rem;line-height:1.3}
.notif-item.unread .notif-t{font-weight:600}
.notif-w{font-size:.8rem;color:#4a5373}
.notif-item.unread .notif-w{color:#002395;font-weight:600}
.notif-dot{flex:none;width:12px;height:12px;border-radius:50%;background:#1877f2}
.notif-empty{padding:1.5rem 1rem;text-align:center;color:#4a5373}
.notif-foot{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;align-items:center;padding:.6rem 1rem;border-top:1px solid #e6edfb;background:#fafbfe}
@media (max-width:575.98px){.notif-panel{position:fixed!important;top:64px!important;left:8px!important;right:8px!important;width:auto;max-width:none;transform:none!important}}
/* Invitation à installer l'application */
.pwa-invite{position:fixed;left:.75rem;right:.75rem;bottom:calc(84px + env(safe-area-inset-bottom));z-index:1040;display:flex;gap:.75rem;align-items:center;background:#fff;border:1px solid #d8e0f0;border-top:4px solid #002395;border-radius:12px;padding:.75rem;box-shadow:0 8px 28px rgba(0,22,79,.28)}
.pwa-invite[hidden]{display:none}
.pwa-invite img{border-radius:10px;flex:none}
.pwa-text{flex:1;min-width:0;display:flex;flex-direction:column;font-size:.9rem;line-height:1.25}
.pwa-actions{display:flex;flex-direction:column;gap:.25rem;flex:none}
@media (min-width:992px){.pwa-invite{display:none!important}}
/* Navigation sans retour à la ligne */
.navbar-master .nav-link-custom{white-space:nowrap}
.need-fab{bottom:calc(150px + env(safe-area-inset-bottom))}
@media (min-width:992px){.need-fab{bottom:1rem}}

/* Barre du haut : une seule ligne à toutes les tailles */
.navbar-master .navbar-brand{white-space:nowrap}
.navbar-master .btn{white-space:nowrap}
.navbar-master .nav-link-custom{padding-inline:.6rem}
@media (max-width:991.98px){.navbar-master .container{flex-wrap:nowrap;gap:.25rem}.navbar-master .navbar-brand{font-size:1.05rem;margin-right:.25rem}.navbar-master .live-ico{width:40px;height:40px}}
@media (max-width:399.98px){.navbar-master .navbar-brand{font-size:.95rem}.navbar-master .btn-sm{padding:.25rem .5rem;font-size:.8rem}}
html,body{max-width:100%;overflow-x:hidden}
.hx-native .hx-lede{font-size:1.05rem;text-align:center}
@media (max-width:575.98px){.hx-native .hx-actions .btn{width:100%}.hx-brand{padding-top:2.5rem}}

.need-primary{border-color:#ED2939;background:#fff7f7}
.role-panel-compact ul{display:flex!important;flex-wrap:wrap;gap:.5rem!important}
.role-panel-compact li{flex:1 1 230px}
.role-panel-compact h2{font-size:1rem}
.role-panel-compact .meta{display:none}

/* Inscription : choix du profil */
.reg-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.reg-profile{display:block;cursor:pointer;margin:0}
.reg-profile-body{display:block;border:2px solid #d5dbe8;border-radius:.6rem;padding:.7rem .8rem;background:#fff;height:100%}
.reg-profile-body small{display:block;color:#5b6475;margin-top:.15rem}
.reg-profile.is-on .reg-profile-body{border-color:#002395;background:#eef2fc}
.reg-profile:focus-within .reg-profile-body{outline:3px solid #ED2939;outline-offset:2px}
@media (max-width:575px){.reg-profiles{grid-template-columns:1fr}}

/* Podium des artisans de paix */
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;align-items:end;margin:1rem 0}
.podium-place{display:flex;flex-direction:column;align-items:center;text-align:center;border:2px solid #d5dbe8;border-radius:.7rem;padding:.8rem .5rem;background:#fff}
.podium-1{border-color:#002395;background:#eef2fc;padding-top:1.4rem;padding-bottom:1.4rem}
.podium-rank{width:2rem;height:2rem;border-radius:50%;background:#002395;color:#fff;display:grid;place-items:center;font-weight:700;margin-bottom:.3rem}
.podium-1 .podium-rank{background:#ED2939}
.podium-place small{color:#5b6475}
.podium-score{font-weight:700;margin-top:.2rem}
@media (max-width:480px){.podium{grid-template-columns:1fr}}

/* Prochaine étape et intentions : une action claire par écran */
.next-step{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border:2px solid #002395;border-radius:.8rem;background:#fff;padding:.9rem 1rem;margin:0 0 1rem;text-align:left}
.next-step strong{display:block;color:#002395}
.next-step span{display:block;color:#3c4455;font-size:.95rem}
.next-step-compact{padding:.7rem .8rem}
.hx-intents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:0 0 .75rem;padding:0}
.hx-intents a{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.8rem .4rem;border:1px solid #d5dbe8;border-radius:.7rem;background:#fff;color:#1d2433;text-decoration:none;font-weight:600;text-align:center}
.hx-intents a i{font-size:1.4rem;color:#002395}
.hx-intents a:hover,.hx-intents a:focus-visible{border-color:#ED2939}
@media (max-width:575px){.hx-intents{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Acteurs mis en avant par besoin */
.need-actors{border-top:1px solid #e3e8f2;margin-top:.5rem;padding-top:.5rem}
.need-actors li{font-size:.92rem;margin-bottom:.15rem}
.actor-pick{display:flex;gap:.6rem;align-items:flex-start;border:1px solid #d5dbe8;border-radius:.6rem;padding:.6rem .7rem;background:#fff;cursor:pointer;height:100%}
.actor-pick small{display:block;color:#5b6475}

/* Valeur ajoutée sur l'accueil */
.value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}
.value-card{display:flex;flex-direction:column;gap:.35rem;padding:1.1rem;border:1px solid #d5dbe8;border-top:4px solid #002395;border-radius:.7rem;background:#fff;color:#1d2433;text-decoration:none}
.value-card:nth-child(3n){border-top-color:#ED2939}
.value-card i{font-size:1.5rem;color:#002395}
.value-card span{color:#3c4455;font-size:.95rem}
.value-card em{margin-top:auto;font-style:normal;font-weight:700;color:#002395}
.value-card:hover,.value-card:focus-visible{box-shadow:0 4px 14px rgba(0,35,149,.15)}
@media (max-width:991px){.value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:575px){.value-grid{grid-template-columns:1fr}}
