:root {
  --fc-bleu-fonce: #0b3d78;
  --fc-bleu: #1565c0;
  --fc-vert: #00853f;
  --fc-jaune: #fdd116;
  --fc-rouge: #e31b23;
}

html { font-size: 17px; } /* taille de base légèrement augmentée */

body {
  background-color: #f4f6f9;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  font-size: 1rem;
  line-height: 1.55;
}

h1, .h1 { font-size: 2.3rem; }
h2, .h2 { font-size: 1.9rem; }
h3, .h3 { font-size: 1.6rem; }
h4, .h4 { font-size: 1.4rem; }
h5, .h5 { font-size: 1.2rem; }
h6, .h6 { font-size: 1.08rem; }

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* --- Menu latéral (sidebar) --- */
.sidebar-fc {
  width: 250px;
  min-width: 250px;
  background: linear-gradient(180deg, var(--fc-bleu-fonce), #082c58);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 14px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.sidebar-fc::-webkit-scrollbar { width: 6px; }
.sidebar-fc::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }

.offcanvas.sidebar-fc {
  position: fixed;
  height: 100vh;
  top: 0;
}

.offcanvas.sidebar-fc .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  padding: 4px 6px 16px 6px;
}

.sidebar-brand img {
  height: 44px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}

.nav-link-side {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce6f2 !important;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.15s;
}

.nav-link-side i { font-size: 1.15rem; width: 22px; text-align: center; }

.nav-link-side:hover {
  background: rgba(255,255,255,0.12);
  color: var(--fc-jaune) !important;
}

.sidebar-user {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 14px;
  margin-top: 10px;
}

/* --- Zone de contenu --- */
.content-fc {
  flex-grow: 1;
  min-width: 0; /* évite le débordement horizontal des enfants */
  display: flex;
  flex-direction: column;
}

.mobile-topbar {
  background: linear-gradient(90deg, var(--fc-bleu-fonce), var(--fc-bleu));
  padding: 12px 16px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 8px 6px;
}

.user-pill img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fc-jaune);
  flex-shrink: 0;
}

.user-pill .role-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.2;
}

.photo-clickable { cursor: pointer; transition: opacity 0.15s; }
.photo-clickable:hover { opacity: 0.85; }

/* --- Pages de connexion / inscription --- */
.auth-body {
  background: linear-gradient(135deg, var(--fc-bleu-fonce), var(--fc-bleu) 60%, var(--fc-vert));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
}

.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

@media (max-width: 576px) {
  .auth-card { padding: 28px 20px; }
}

.senegal-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--fc-vert) 33%, var(--fc-jaune) 33% 66%, var(--fc-rouge) 66%);
}

.card-fc {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.stat-card {
  border-radius: 12px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.stat-card h2 { margin: 0; font-size: 2.1rem; font-weight: 700; }
.stat-card p { margin: 0; opacity: 0.92; font-size: 1rem; }

.bg-fc-1 { background: var(--fc-bleu-fonce); }
.bg-fc-2 { background: var(--fc-vert); }
.bg-fc-3 { background: var(--fc-jaune); color: #333 !important; }
.bg-fc-4 { background: var(--fc-rouge); }
.bg-fc-5 { background: #6f42c1; }

footer.footer-fc {
  background: var(--fc-bleu-fonce);
  color: #dce6f2;
  padding: 28px 0;
  margin-top: 50px;
  font-size: 0.98rem;
}

.btn-fc-primary {
  background-color: var(--fc-bleu-fonce);
  border-color: var(--fc-bleu-fonce);
  color: #fff;
  font-size: 1rem;
  padding: 8px 18px;
}
.btn-fc-primary:hover {
  background-color: var(--fc-bleu);
  color: #fff;
}

.page-title {
  border-left: 5px solid var(--fc-bleu-fonce);
  padding-left: 14px;
  margin-bottom: 28px;
  font-weight: 700;
}

table.table {
  font-size: 1rem;
}

table.table thead {
  background-color: var(--fc-bleu-fonce);
  color: #fff;
}

.badge-pending {
  background-color: #ff9800;
  color: #fff;
}

.media-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #000;
}
.video-embed-wrapper iframe,
.video-embed-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
