:root {
  --brand: #12355b;
  --brand-2: #1f6feb;
  --brand-3: #2b7be4;
  --gold: #e2b23f;
  --surface: #f3f6fb;
  --card-shadow: 0 6px 24px rgba(16, 42, 67, .07);
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-primary: #1f6feb;
  --bs-primary-rgb: 31, 111, 235;
}
html, body { height: 100%; }
body { background: var(--surface); font-family: var(--bs-font-sans-serif); }
.btn-primary { --bs-btn-bg: #1f6feb; --bs-btn-border-color: #1f6feb; --bs-btn-hover-bg: #185fcc; --bs-btn-hover-border-color: #185fcc; --bs-btn-active-bg: #12355b; }
.btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s; }
.btn:active { transform: scale(.97); }

/* ---------- Barre supérieure et marque ---------- */
.topbar { background: linear-gradient(90deg, #0d2440, var(--brand) 45%, #1a4f8a); background-size: 200% 100%; animation: bar-shift 14s ease-in-out infinite alternate; position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(13, 36, 64, .25); }
@keyframes bar-shift { to { background-position: 100% 0; } }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
.brand-lg .brand-logo { width: 54px; height: 54px; }
.brand-lg .brand-name { font-size: 1.5rem; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .2); }

/* ---------- Coque plein écran ---------- */
.app-shell { min-height: calc(100vh - 56px); }
.main-content { min-width: 0; width: 100%; }
.sidebar { width: 270px; flex-shrink: 0; background: #fff; border-right: 1px solid #e3e8ef; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.sidebar-user { display: flex; align-items: center; gap: .7rem; padding: .6rem; border-radius: .8rem; background: linear-gradient(135deg, #eef4fd, #f8fafd); }
.min-w-0 { min-width: 0; }
.sidebar .nav-link { color: #243b53; border-radius: .6rem; position: relative; transition: background .2s, color .2s, padding-left .2s; }
.sidebar .nav-link:hover { background: #eef3fa; padding-left: 1.2rem; }
.sidebar .nav-link.active { background: linear-gradient(90deg, var(--brand), #1a4f8a); color: #fff; box-shadow: 0 4px 12px rgba(18, 53, 91, .25); }
.sidebar .nav-link.active::before { content: ""; position: absolute; left: -12px; top: 20%; bottom: 20%; width: 4px; border-radius: 4px; background: var(--gold); }
.badge-pop { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both, pulse-ring 2.4s ease-out 1s infinite; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }

/* ---------- Cartes et animations d'entrée ---------- */
.card { border: 0; border-radius: 1rem; box-shadow: var(--card-shadow); transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover, .card-hover:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 42, 67, .13); }
.page-enter > * { animation: fade-up .55s cubic-bezier(.22, .9, .32, 1) both; }
.page-enter > *:nth-child(2) { animation-delay: .05s; }
.page-enter > *:nth-child(3) { animation-delay: .1s; }
.page-enter > *:nth-child(4) { animation-delay: .15s; }
.page-enter > *:nth-child(5) { animation-delay: .2s; }
.page-enter > *:nth-child(n+6) { animation-delay: .25s; }
.row > [class*="col"] > .card { animation: fade-up .6s cubic-bezier(.22, .9, .32, 1) both; }
.row > [class*="col"]:nth-child(2) > .card { animation-delay: .07s; }
.row > [class*="col"]:nth-child(3) > .card { animation-delay: .14s; }
.row > [class*="col"]:nth-child(4) > .card { animation-delay: .21s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.metric { font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.metric-icon { width: 48px; height: 48px; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; transition: transform .3s; }
.card:hover .metric-icon { transform: rotate(-8deg) scale(1.08); }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #dbe7f6, #c3d7f2); color: var(--brand); font-weight: 700; flex-shrink: 0; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #627d98; white-space: nowrap; }
.table-hover tbody tr { transition: background-color .15s; }
.msg-unread { border-left: 4px solid var(--brand-2); background: #f5f9ff; }
.msg-body { white-space: pre-wrap; }
.choice-card { cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.choice-card:hover { transform: translateX(3px); }
.choice-card:has(input:checked) { border-color: var(--brand-2) !important; background: #eef5ff; box-shadow: 0 0 0 3px rgba(31, 111, 235, .12); }
.timeline-date { min-width: 64px; text-align: center; border-radius: .7rem; background: linear-gradient(160deg, #eef3fa, #dfe9f7); padding: .35rem .25rem; }
.timeline-date .day { font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--brand); }
.timeline-date .month { font-size: .72rem; text-transform: uppercase; }
.liste-group { break-inside: avoid; }
.nav-tabs .nav-link { transition: color .2s; }

/* ---------- Bandeau d'accueil ---------- */
.hero-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 2rem; border-radius: 1.2rem; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(120deg, #0d2440, var(--brand) 40%, var(--brand-2)); box-shadow: 0 12px 30px rgba(18, 53, 91, .25); }
.hero-banner::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero-text { position: relative; z-index: 1; }

/* ---------- Illustrations ---------- */
.illu { max-width: 100%; height: auto; }
.illu-float { animation: float 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.illu-pulse { animation: pulse 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.illu-blob { animation: blob 12s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
.illu-beam { animation: beam 3s ease-in-out infinite; }
.illu-draw { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1.4s .4s ease forwards; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
@keyframes blob { to { transform: rotate(14deg) scale(1.05); } }
@keyframes beam { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.empty-state .illu { opacity: .95; }

/* ---------- Connexion : plein écran, contenu centré ---------- */
.area-auth { background: #0d2440; }
.auth-shell { min-height: 100vh; display: flex; position: relative; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; background: linear-gradient(125deg, #0b1f38, #12355b 45%, #1f6feb); background-size: 220% 220%; animation: auth-gradient 16s ease infinite; }
.auth-bg span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); animation: bubble 18s linear infinite; }
.auth-bg span:nth-child(1) { width: 320px; height: 320px; left: -80px; top: -60px; }
.auth-bg span:nth-child(2) { width: 180px; height: 180px; left: 38%; bottom: -60px; animation-duration: 22s; }
.auth-bg span:nth-child(3) { width: 90px; height: 90px; left: 12%; bottom: 18%; animation-duration: 14s; }
.auth-bg span:nth-child(4) { width: 260px; height: 260px; right: -70px; top: 30%; animation-duration: 26s; }
.auth-bg span:nth-child(5) { width: 60px; height: 60px; right: 30%; top: 12%; background: rgba(226, 178, 63, .25); animation-duration: 12s; }
@keyframes auth-gradient { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes bubble { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-40px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }
.auth-hero { position: relative; z-index: 1; flex: 1 1 50%; min-width: 0; align-items: center; justify-content: center; color: #fff; padding: 3rem; }
.auth-hero-inner { width: 100%; max-width: 480px; }
.auth-hero .illu { width: min(300px, 70%); }
.auth-points li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; opacity: .9; animation: fade-up .6s both; }
.auth-points li:nth-child(2) { animation-delay: .15s; }
.auth-points li:nth-child(3) { animation-delay: .3s; }
.auth-points i { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem; background: rgba(255, 255, 255, .14); color: var(--gold); }
.auth-main { position: relative; z-index: 1; flex: 1 1 50%; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card-wrap { width: 100%; max-width: 440px; }
.auth-card { border-radius: 1.4rem; padding: 2.5rem; background: rgba(255, 255, 255, .97); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.auth-card .brand { color: var(--brand); }
.auth-card .form-control { padding: .7rem .9rem; border-radius: .7rem; }
.auth-card .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth-card .btn-primary { padding: .75rem; border-radius: .7rem; font-weight: 600; background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); border: 0; }
.auth-card .btn-primary:hover { box-shadow: 0 8px 22px rgba(31, 111, 235, .35); transform: translateY(-1px); }

/* ---------- Œil des mots de passe ---------- */
.pw-toggle { border-color: var(--bs-border-color); background: #fff; color: #627d98; }
.pw-toggle:hover { color: var(--brand-2); background: #f5f9ff; }
.pw-toggle i { display: inline-block; transition: transform .2s; }
.pw-toggle:active i { transform: scale(.8); }

/* ---------- Formulaire responsable ---------- */
.form-section-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; padding-bottom: .9rem; border-bottom: 1px dashed #dbe3ee; }
.form-step { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 4px 12px rgba(31, 111, 235, .3); }
.resp-form .form-floating > .form-control, .resp-form .form-floating > .form-select { border-radius: .7rem; }
.resp-form .input-group .form-floating > .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.resp-form .input-group-text { border-radius: .7rem 0 0 .7rem; background: #f5f8fc; }
.resp-form .form-control:focus, .resp-form .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(31, 111, 235, .15); }
.choice-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice-pill { cursor: pointer; padding: .7rem 1.1rem; border: 1.5px solid #d5deea; border-radius: .8rem; font-weight: 600; color: #3d5470; transition: all .2s; user-select: none; }
.choice-pill:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-check:checked + .choice-pill { background: #eef5ff; border-color: var(--brand-2); color: var(--brand-2); box-shadow: 0 0 0 3px rgba(31, 111, 235, .12); }
.lien-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.lien-card { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .85rem .5rem; text-align: center; font-weight: 600; font-size: .88rem;
  border: 1.5px solid #d5deea; border-radius: .9rem; background: #fff; color: #3d5470; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; user-select: none; }
.lien-card i { font-size: 1.45rem; color: #7d93ad; transition: color .2s, transform .3s; }
.lien-card:hover { transform: translateY(-2px); border-color: #9cc3ff; }
.btn-check:checked + .lien-card { background: linear-gradient(160deg, #eef5ff, #fff); border-color: var(--brand-2); color: var(--brand); box-shadow: 0 6px 16px rgba(31, 111, 235, .18); }
.btn-check:checked + .lien-card i { color: var(--brand-2); transform: scale(1.15); }
.btn-check:focus-visible + .lien-card, .btn-check:focus-visible + .choice-pill { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.lien-autre:not([hidden]) { animation: fade-up .35s both; }
.photo-drop { display: flex; align-items: center; justify-content: center; width: 170px; height: 170px; margin: 0 auto; border-radius: 50%; cursor: pointer; overflow: hidden;
  border: 2px dashed #c9d6e8; background: #f5f8fc; color: #627d98; font-size: .82rem; transition: border-color .2s, transform .2s; }
.photo-drop:hover { border-color: var(--brand-2); transform: scale(1.02); }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Feuille de route ---------- */
.roadmap { position: relative; padding-left: 1.8rem; }
.roadmap::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: #dbe3ee; }
.roadmap-item { position: relative; padding: .2rem 0 1.1rem; }
.roadmap-dot { position: absolute; left: -1.8rem; top: .35rem; width: 20px; height: 20px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px #dbe3ee; }
.roadmap-item.st-fait .roadmap-dot { background: #2fb36d; }
.roadmap-item.st-en_cours .roadmap-dot { background: #e2a028; animation: pulse 2s infinite; }
.roadmap-item.st-a_faire .roadmap-dot { background: #aab6c6; }
.roadmap-item.st-fait .roadmap-title { text-decoration: line-through; opacity: .65; }
.roadmap-item.late .roadmap-date { color: #e5484d; font-weight: 700; }

/* ---------- Page d'accueil ---------- */
.area-public .main-content { padding: 0 !important; }
:root { --home-gutter: clamp(1rem, 4vw, 4.5rem); }
.home-hero { position: relative; overflow: hidden; color: #fff; padding: 5rem var(--home-gutter) 7rem; background: linear-gradient(125deg, #081a30, #12355b 40%, #1f6feb 85%); background-size: 200% 200%; animation: auth-gradient 18s ease infinite; }
#constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: blob-move 16s ease-in-out infinite alternate; }
.home-blob.b1 { width: 380px; height: 380px; background: #2b7be4; top: -120px; left: -80px; }
.home-blob.b2 { width: 300px; height: 300px; background: #e2b23f; bottom: -60px; right: 10%; opacity: .28; animation-duration: 20s; }
.home-blob.b3 { width: 240px; height: 240px; background: #9b5de5; top: 30%; right: -60px; opacity: .3; animation-duration: 24s; }
@keyframes blob-move { to { transform: translate(60px, 40px) scale(1.15); } }
.home-hero-inner { position: relative; z-index: 1; width: 100%; margin: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 991px) { .home-hero-inner { grid-template-columns: 1fr; } .home-hero { padding: 3.5rem 1.25rem 6rem; } }
.home-hero-text > * { animation: fade-up .8s cubic-bezier(.22, .9, .32, 1) both; }
.home-hero-text > *:nth-child(2) { animation-delay: .12s; } .home-hero-text > *:nth-child(3) { animation-delay: .24s; } .home-hero-text > *:nth-child(4) { animation-delay: .36s; }
.home-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; backdrop-filter: blur(6px); margin-bottom: 1.4rem; }
.home-pill.live { background: rgba(229, 72, 77, .85); border-color: transparent; animation: fade-up .8s both, listen-glow2 2s ease-in-out infinite; }
.home-pill.live:hover { color: #fff; transform: translateY(-2px); }
@keyframes listen-glow2 { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 50% { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); } }
.home-title { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.home-rotate { background: linear-gradient(90deg, #f3c75a, #ffffff 45%, #9cc3ff 70%, #f3c75a); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-shine 6s linear infinite; }
@keyframes text-shine { to { background-position: 250% center; } }
.home-caret { color: #f3c75a; font-weight: 300; animation: live-blink 1s steps(2) infinite; margin-left: 2px; }
.home-lead { font-size: clamp(1rem, 1.2vw, 1.25rem); opacity: .85; max-width: 760px; margin-bottom: 2rem; }
.home-cta { color: #2a1c00; font-weight: 700; border: 0; background: linear-gradient(90deg, #f3c75a, #e2a028); box-shadow: 0 10px 30px rgba(226, 160, 40, .4); }
.home-cta:hover { color: #2a1c00; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(226, 160, 40, .55); }
.home-cta .live-dot { background: #c0363b; }
.home-hero-art { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.home-main-illu { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
.home-orbit, .home-orbit span { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); }
.home-orbit { width: 400px; height: 400px; animation: spin 40s linear infinite; }
.home-orbit span { inset: 40px; animation: spin 25s linear infinite reverse; }
.home-orbit span:nth-child(2) { inset: 90px; border-style: solid; border-color: rgba(243, 199, 90, .25); }
.home-orbit span:nth-child(3) { inset: -30px; border-color: rgba(156, 195, 255, .15); }
@keyframes spin { to { transform: rotate(360deg); } }
.home-float-card { position: absolute; display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 1rem; font-weight: 600; font-size: .9rem; color: #12355b;
  background: rgba(255, 255, 255, .95); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); animation: float 5s ease-in-out infinite; }
.home-float-card i { color: #1f6feb; font-size: 1.1rem; }
.home-float-card.c1 { top: 12%; left: 0; animation-delay: -1s; }
.home-float-card.c2 { top: 45%; right: -10px; animation-delay: -2.5s; }
.home-float-card.c2 i { color: #e5484d; }
.home-float-card.c3 { bottom: 8%; left: 12%; animation-delay: -4s; }
.home-float-card.c3 i { color: #25d366; }
.home-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
.home-stats { position: relative; z-index: 2; margin: -4.5rem 0 0; padding: 0 var(--home-gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991px) { .home-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .home-stats { grid-template-columns: 1fr; } .home-stat { padding: 1rem; } }
.home-stat { display: flex; align-items: center; gap: 1rem; padding: 1.4rem; border-radius: 1.2rem; background: #fff; box-shadow: 0 18px 40px rgba(16, 42, 67, .1); }
.home-stat-icon { width: 54px; height: 54px; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, #1f6feb, #12355b); flex-shrink: 0; }
.home-stat:nth-child(2) .home-stat-icon { background: linear-gradient(135deg, #13b5a8, #0b6b75); }
.home-stat:nth-child(3) .home-stat-icon { background: linear-gradient(135deg, #f3c75a, #c99728); }
.home-stat:nth-child(4) .home-stat-icon { background: linear-gradient(135deg, #e5484d, #9b2c30); }
.home-stat-value { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.home-stat-label { font-size: .85rem; color: #627d98; }
.home-section { padding: 4.5rem var(--home-gutter) 0; }
.home-section-head { margin: 0 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 2rem; }
.home-section-head > .home-kicker { grid-column: 1 / -1; justify-self: start; }
.home-section-head h2 { grid-column: 1; margin: 0; }
.home-section-head p { grid-column: 1; margin: .35rem 0 0; max-width: 900px; }
.home-section-head > .btn { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
@media (max-width: 767px) { .home-section-head { grid-template-columns: 1fr; } .home-section-head > .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .8rem; } }
.home-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.home-section-head p { color: #627d98; }
.home-kicker { display: inline-block; padding: .25rem .8rem; border-radius: 99px; background: #e7f0fe; color: var(--brand-2); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.home-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
@media (min-width: 1100px) { .home-features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1700px) { .home-features { grid-template-columns: repeat(6, 1fr); } .home-steps { grid-template-columns: repeat(4, 1fr); } }
.home-feature { position: relative; overflow: hidden; padding: 1.8rem; border-radius: 1.3rem; background: #fff; box-shadow: var(--card-shadow); transition: transform .25s ease, box-shadow .25s, opacity .6s ease; }
.home-feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 111, 235, .1), transparent 40%); opacity: 0; transition: opacity .3s; }
.home-feature:hover { box-shadow: 0 24px 50px rgba(16, 42, 67, .16); }
.home-feature:hover::before { opacity: 1; }
.home-feature h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand); margin-top: .8rem; }
.home-feature h3 i { color: var(--brand-2); }
.home-feature p { color: #627d98; margin-bottom: 0; }
.home-feature-art { width: 92px; height: 92px; }
.home-bureau { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.home-member { text-align: center; padding: 1.8rem 1rem; border-radius: 1.3rem; background: #fff; box-shadow: var(--card-shadow); transition: transform .3s, box-shadow .3s, opacity .6s; }
.home-member:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(16, 42, 67, .16); }
.home-member-avatar { position: relative; width: 84px; height: 84px; margin: 0 auto .9rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #1f6feb, #12355b); box-shadow: 0 0 0 6px #e7f0fe; }
.home-member-avatar i { position: absolute; bottom: -4px; right: -4px; width: 32px; height: 32px; border-radius: 50%; background: #f3c75a; color: #5a3d00; font-size: 1rem; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
.home-member-poste { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #c99728; }
.home-member-name { font-weight: 700; color: var(--brand); }
.home-member-sub { font-size: .85rem; color: #627d98; }
.home-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; counter-reset: step; }
.home-step { position: relative; padding: 2rem 1.5rem 1.5rem; border-radius: 1.3rem; background: linear-gradient(160deg, #fff, #f3f7fd); box-shadow: var(--card-shadow); }
.home-step > i { font-size: 2rem; color: var(--brand-2); }
.home-step h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand); margin-top: .6rem; }
.home-step p { color: #627d98; margin: 0; }
.home-step-num { position: absolute; top: 1rem; right: 1.2rem; font-size: 3rem; font-weight: 800; line-height: 1; color: #e7f0fe; }
.home-final { margin: 4.5rem var(--home-gutter) 0; padding: 2.5rem; border-radius: 1.5rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: radial-gradient(circle at 90% 10%, rgba(243, 199, 90, .35), transparent 40%), linear-gradient(120deg, #0d2440, #12355b 50%, #1f6feb); box-shadow: 0 24px 50px rgba(18, 53, 91, .3); }
@media (max-width: 576px) { .home-final { padding: 1.6rem; } .home-hero { padding-top: 3rem; } }
.home-final h2 { font-weight: 800; letter-spacing: -.02em; }
.home-footer { text-align: center; color: #627d98; font-size: .85rem; padding: 2.5rem 1rem; }
.home-footer img { object-fit: contain; vertical-align: middle; margin-right: .3rem; }

/* ---------- Crédit développeur, maintenance ---------- */
.app-credit { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #e3e8ef; text-align: center; font-size: .8rem; color: #8a9bb0; }
.area-public .app-credit { display: none; }
.auth-credit { margin-top: 1rem; text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .75); }
.auth-credit a, .auth-credit strong { color: #fff; }
.maintenance-banner { margin: -.5rem 0 1rem; padding: .7rem 1rem; border-radius: .8rem; background: repeating-linear-gradient(-45deg, #fff4d6, #fff4d6 14px, #ffeab0 14px, #ffeab0 28px); color: #7a5300; border: 1px solid #f3c75a; }
.maintenance-banner a { color: #7a5300; font-weight: 700; }
.maintenance-gear { position: relative; height: 90px; }
.maintenance-gear i { position: absolute; color: var(--brand-2); }
.maintenance-gear .g1 { font-size: 4.2rem; left: calc(50% - 52px); top: 0; animation: spin 6s linear infinite; }
.maintenance-gear .g2 { font-size: 2.8rem; left: calc(50% + 6px); top: 34px; color: var(--gold); animation: spin 4s linear infinite reverse; }
.camera-box { position: relative; border-radius: 1rem; overflow: hidden; background: #0d2440; aspect-ratio: 1; }
.camera-box video, .camera-box canvas, .camera-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera-box video { transform: scaleX(-1); }
.camera-frame { position: absolute; inset: 12%; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .7); box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); pointer-events: none; }
.camera-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.camera-flash.on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.trombi-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------- Animation de vote : l'électeur dépose son bulletin ---------- */
.vote-anim { --va: 3.6s; width: 100%; max-width: 340px; text-align: center; }
.vote-anim svg { width: 100%; height: auto; overflow: visible; }
.vote-anim * { transform-box: view-box; }
.va-man { animation: va-walk var(--va) cubic-bezier(.3, .7, .4, 1) both; }
@keyframes va-walk { 0% { transform: translateX(-150px); opacity: 0; } 8% { opacity: 1; } 38%, 100% { transform: translateX(28px); } }
.va-leg-l, .va-leg-r { transform-origin: 150px 126px; }
.va-leg-l { animation: va-leg .34s ease-in-out 4 alternate both; }
.va-leg-r { animation: va-leg .34s ease-in-out 4 alternate-reverse both; }
@keyframes va-leg { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }
.va-arm { transform-origin: 158px 84px; animation: va-arm var(--va) ease-in-out both; }
@keyframes va-arm { 0%, 38% { transform: rotate(0); } 52%, 62% { transform: rotate(-78deg); } 78%, 100% { transform: rotate(-8deg); } }
.va-ballot { animation: va-hand var(--va) linear both; }
@keyframes va-hand { 0%, 56% { opacity: 1; } 57%, 100% { opacity: 0; } }
.va-drop { animation: va-drop var(--va) cubic-bezier(.5, 0, .75, 0) both; }
@keyframes va-drop { 0%, 56% { opacity: 0; transform: translateY(-6px); } 57% { opacity: 1; transform: translateY(-6px); } 72% { opacity: 1; transform: translateY(34px); } 73%, 100% { opacity: 0; transform: translateY(34px); } }
.va-box { transform-origin: 230px 178px; animation: va-box var(--va) ease both; }
@keyframes va-box { 0%, 71% { transform: scale(1); } 76% { transform: scale(1.06, .94); } 82%, 100% { transform: scale(1); } }
.va-emblem { animation: va-glow var(--va) both; }
@keyframes va-glow { 0%, 72% { stroke: #f3c75a; } 80%, 100% { stroke: #ffffff; } }
.va-check { transform-origin: 276px 92px; animation: va-pop var(--va) cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes va-pop { 0%, 74% { transform: scale(0); opacity: 0; } 84%, 100% { transform: scale(1); opacity: 1; } }
.va-sparks { animation: va-sparks var(--va) ease-out both; }
@keyframes va-sparks { 0%, 72% { opacity: 0; transform: translateY(6px); } 80% { opacity: 1; transform: translateY(0); } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
.va-caption { font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; color: var(--brand); animation: va-caption var(--va) ease both; }
@keyframes va-caption { 0%, 74% { opacity: 0; transform: translateY(10px) scale(.9); } 86%, 100% { opacity: 1; transform: none; } }
/* Fenêtre plein écran après le vote du responsable. */
.vote-anim-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: rgba(8, 26, 48, .72); backdrop-filter: blur(6px); animation: va-overlay 5.2s ease both; cursor: pointer; }
.vote-anim-overlay .vote-anim-card { background: #fff; border-radius: 1.5rem; padding: 1.5rem 2rem 1.2rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); max-width: 92vw; }
.vote-anim-overlay .va-sub { color: #627d98; font-size: .95rem; }
@keyframes va-overlay { 0% { opacity: 0; } 6%, 88% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
/* Petite fenêtre du direct : un électeur vote à chaque nouveau bulletin. */
.vote-toast { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; width: 230px; padding: .6rem .8rem .5rem; border-radius: 1.2rem; background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4); animation: vt-in 4.6s ease both; }
.vote-toast .va-caption { font-size: 1rem; }
.vote-toast .vt-poste { font-size: .75rem; color: #627d98; text-align: center; margin-top: -.15rem; }
@keyframes vt-in { 0% { opacity: 0; transform: translateY(30px) scale(.9); } 8%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) { .vote-anim-overlay, .vote-toast { display: none; } }

.appel-steps { display: flex; flex-direction: column; gap: .8rem; }
.appel-step { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem; border-radius: .9rem; background: #f5f8fc; border: 1px solid #e3e8ef; }
.appel-step .form-step { width: 32px; height: 32px; font-size: .9rem; margin-top: .2rem; }
.color-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin: 0 .2rem 0 .4rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d5deea; }
.salle-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 99px; background: #eef3fa; font-size: .88rem; }
.salle-chip a, .salle-chip .btn-link { color: #627d98; }
.perm-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; background: #e7f0fe; color: #1f6feb; }
.perm-badge.infirmerie { background: #fde8e9; color: #c0363b; }

.fp-icon { width: 54px; height: 54px; flex-shrink: 0; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff;
  background: linear-gradient(135deg, #1f6feb, #12355b); box-shadow: 0 8px 20px rgba(31, 111, 235, .3); }
.fp-login-btn { padding: .7rem; border-radius: .7rem; font-weight: 600; }
.fp-login-btn i { font-size: 1.2rem; vertical-align: -2px; }
.fp-login-btn:hover i { animation: pulse 1.2s infinite; }
.auth-sep { display: flex; align-items: center; gap: .8rem; color: #8a9bb0; font-size: .8rem; margin-bottom: .8rem; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: #e3e8ef; }

/* ---------- Sécurité ---------- */
.sec-gauge { width: 170px; height: 170px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #eef2f7 0); animation: pop .8s cubic-bezier(.34, 1.56, .64, 1); }
.sec-gauge > div { width: 132px; height: 132px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sec-gauge small { color: #627d98; }
.otp-input { letter-spacing: .6em; font-size: 1.5rem; font-variant-numeric: tabular-nums; }

/* ---------- Communiqués, candidatures, responsables (accueil) ---------- */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.comm-card { display: flex; flex-direction: column; border-radius: 1.2rem; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, opacity .6s; }
.comm-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(16, 42, 67, .15); color: inherit; }
@media (min-width: 992px) { .comm-featured { grid-column: span 2; flex-direction: row; } .comm-featured .comm-img { width: 48%; height: auto; min-height: 240px; } }
.comm-img { height: 170px; background-size: cover; background-position: center; flex-shrink: 0; }
.comm-img-empty { display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.comm-content { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.comm-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand); margin: .3rem 0; }
.comm-content p { color: #627d98; font-size: .92rem; flex-grow: 1; }
.comm-more { font-weight: 600; font-size: .88rem; color: var(--brand-2); }
.comm-cover { width: 100%; max-height: 420px; object-fit: cover; }
.comm-body { font-size: 1.05rem; line-height: 1.75; }
.cand-poste { margin-bottom: 1.8rem; }
.cand-poste-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cand-poste-head h3 { font-size: 1.3rem; font-weight: 800; color: var(--brand); margin: 0; }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.cand-card { text-align: center; padding: 1.5rem 1rem; border-radius: 1.2rem; background: linear-gradient(170deg, #fff, #f3f7fd); box-shadow: var(--card-shadow); animation: fade-up .6s var(--d, 0ms) both; transition: transform .25s; }
.cand-card:hover { transform: translateY(-5px) scale(1.02); }
.cand-photo { width: 104px; height: 104px; margin: 0 auto .8rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f6feb, #12355b); color: #fff; font-size: 2rem; font-weight: 800; }
.cand-photo img { width: 100%; height: 100%; object-fit: cover; }
.cand-name { font-size: 1.02rem; color: var(--brand); }
.cand-sub2 { font-size: .82rem; color: #627d98; }
.cand-slogan { margin-top: .5rem; font-style: italic; font-size: .88rem; color: #3d5470; }
.resp-filieres { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.resp-filiere { border-radius: 1.2rem; background: #fff; box-shadow: var(--card-shadow); overflow: hidden; }
.resp-filiere-head { padding: .8rem 1.1rem; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.resp-list { padding: .4rem .6rem; }
.resp-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .5rem; border-bottom: 1px solid #eef2f7; }
.resp-item:last-child { border-bottom: 0; }
.resp-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #dbe7f6; color: var(--brand); font-weight: 800; }
@media (max-width: 420px) { .resp-filieres { grid-template-columns: 1fr; } }

/* ---------- Régie audio ---------- */
.vu { height: 14px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.vu-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2fb36d, #e2b23f 70%, #e5484d); transition: width .12s linear; }

/* ---------- Direct (bouton) ---------- */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; vertical-align: middle; animation: live-blink 1.2s ease-in-out infinite; }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Notifications (toasts Bootstrap) ---------- */
.toast-stack { z-index: 1090; }
.app-toast { min-width: 320px; max-width: 420px; border: 0; border-radius: 1rem; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(16, 42, 67, .22); }
.app-toast .toast-body { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1rem; }
.app-toast .toast-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.app-toast .toast-title { font-weight: 700; font-size: .92rem; margin-bottom: .1rem; }
.app-toast .toast-text { font-size: .88rem; color: #3d5470; word-break: break-word; }
.app-toast .toast-progress { height: 3px; background: currentColor; opacity: .55; transform-origin: left; animation: toast-progress var(--toast-delay, 6s) linear forwards; }
.app-toast:hover .toast-progress { animation-play-state: paused; }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.app-toast.showing, .app-toast.show { animation: toast-in .45s cubic-bezier(.22, .9, .32, 1) both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
.toast-success { color: #1d8b52; } .toast-success .toast-icon { background: #e3f7ec; }
.toast-danger { color: #c0363b; } .toast-danger .toast-icon { background: #fde8e9; }
.toast-warning { color: #b7791f; } .toast-warning .toast-icon { background: #fdf3dc; }
.toast-info, .toast-primary { color: #1f6feb; } .toast-info .toast-icon, .toast-primary .toast-icon { background: #e7f0fe; }
.app-toast .toast-title { color: inherit; }
.toast-pinned .toast-progress { display: none; }
.confirm-modal .modal-content { border: 0; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.confirm-modal .confirm-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; background: #fdf3dc; color: #b7791f; animation: pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.confirm-modal.danger .confirm-icon { background: #fde8e9; color: #c0363b; }

/* ---------- Cachet / signature ---------- */
.seal-box { height: 130px; display: flex; align-items: center; justify-content: center; text-align: center; border: 2px dashed #c9d6e8; border-radius: .8rem;
  background: repeating-conic-gradient(#f3f6fb 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.seal-box img { max-height: 115px; max-width: 90%; object-fit: contain; animation: fade-up .5s both; }

/* ---------- Appel ---------- */
.appel-row { cursor: pointer; transition: background .15s; }
.appel-row:has(input:checked) { background: #fff1f1 !important; }
.appel-row:has(input:checked) .appel-name { color: #c0363b; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; animation: none !important; }
  .page-enter > * { animation: none !important; }
  .main-content { padding: 0 !important; }
  .liste-group { page-break-inside: avoid; }
  a[href]::after { content: none !important; }
}
