
/* ==========================================
   ENTRAIDE FRANCE SOLIDARITÉ
   ESPACES PRIVÉS - DESIGN
========================================== */

.efs-private-page {
  background: #f3f6fa;
  color: #20334a;
  min-height: 100vh;
}

.efs-private-page *,
.efs-private-page *::before,
.efs-private-page *::after {
  box-sizing: border-box;
}

/* EN-TÊTE DE CONNEXION */

.efs-private-header {
  background: #ffffff;
  border-bottom: 1px solid #dce5ef;
}

.efs-private-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.efs-private-back {
  font-size: 14px;
  font-weight: 700;
  color: #1956a3;
  text-decoration: none;
}

.efs-private-back:hover {
  text-decoration: underline;
}

/* CONNEXION */

.efs-login-main {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.efs-login-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(12, 40, 75, 0.08);
  padding: 42px;
}

.efs-login-heading {
  margin-bottom: 30px;
}

.efs-login-heading h1 {
  font-size: clamp(26px, 3vw, 34px);
  color: #102f55;
  letter-spacing: -0.8px;
  margin: 12px 0;
}

.efs-login-heading p {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
}

.efs-private-notice {
  padding: 20px 22px;
  background: #edf4fc;
  border-left: 4px solid #1956a3;
  border-radius: 5px;
  margin-bottom: 28px;
}

.efs-private-notice strong {
  display: block;
  color: #102f55;
  font-size: 15px;
  margin-bottom: 7px;
}

.efs-private-notice p {
  color: #435a74;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.efs-admin-field {
  margin-bottom: 23px;
}

.efs-admin-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #102f55;
  margin-bottom: 9px;
}

.efs-admin-field input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #cbd6e3;
  border-radius: 6px;
  background: white;
  color: #20334a;
  font: inherit;
  font-size: 15px;
}

.efs-admin-field input:focus {
  outline: none;
  border-color: #1956a3;
  box-shadow: 0 0 0 3px rgba(25, 86, 163, 0.12);
}

.efs-login-button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
}

.efs-login-feedback {
  margin-top: 20px;
  padding: 15px;
  background: #fff4f4;
  border: 1px solid #edc2c8;
  border-radius: 6px;
  color: #9d2533;
  font-size: 14px;
}

.efs-login-feedback[hidden] {
  display: none;
}

.efs-login-footer {
  border-top: 1px solid #e4eaf1;
  margin-top: 30px;
  padding-top: 22px;
  text-align: center;
  font-size: 14px;
}

.efs-login-footer p {
  margin-bottom: 8px;
}

.efs-login-footer a {
  color: #1956a3;
  font-weight: 700;
}

.efs-private-footer {
  padding: 22px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* STRUCTURE DE L'APPLICATION */

.efs-app-layout {
  display: flex;
  min-height: 100vh;
}

.efs-sidebar {
  width: 280px;
  flex: 0 0 280px;
  background: #102f55;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.efs-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 26px 22px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.efs-sidebar-brand img {
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
}

.efs-sidebar-brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #ffffff;
}

.efs-sidebar-brand small {
  display: block;
  color: #bfd3eb;
  font-size: 12px;
  margin-top: 5px;
}

.efs-sidebar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #8fb0d5;
  padding: 32px 25px 13px;
}

.efs-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 13px;
}

.efs-sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 15px;
  border-radius: 6px;
  color: #d5e3f2;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.efs-sidebar-nav a:hover {
  background: rgba(255,255,255,0.09);
  color: white;
}

.efs-sidebar-nav a.active {
  background: #ffffff;
  color: #102f55;
  font-weight: 800;
}

.efs-sidebar-bottom {
  margin-top: auto;
  padding: 22px 25px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.efs-sidebar-bottom a {
  color: #d5e3f2;
  font-size: 13px;
  text-decoration: none;
}

.efs-sidebar-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.efs-app-main {
  flex: 1;
  min-width: 0;
}

.efs-app-topbar {
  background: #ffffff;
  border-bottom: 1px solid #dce5ef;
  padding: 28px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.efs-app-eyebrow {
  display: block;
  color: #1956a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  margin-bottom: 8px;
}

.efs-app-topbar h1 {
  color: #102f55;
  font-size: clamp(25px, 3vw, 33px);
  letter-spacing: -0.7px;
}

.efs-app-status {
  padding: 8px 13px;
  border: 1px solid #cbd6e3;
  background: #f3f6fa;
  border-radius: 5px;
  color: #52677f;
  font-size: 12px;
  font-weight: 700;
}

.efs-app-content {
  padding: 38px;
  max-width: 1500px;
  margin: 0 auto;
}

.efs-app-section {
  margin-bottom: 42px;
}

.efs-app-section h2 {
  font-size: 23px;
  color: #102f55;
  margin-bottom: 12px;
}

.efs-app-section > p {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 24px;
}

/* STATISTIQUES */

.efs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.efs-stat-card {
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  padding: 25px;
}

.efs-stat-card > span {
  display: block;
  color: #52677f;
  font-size: 13px;
  font-weight: 700;
}

.efs-stat-card strong {
  display: block;
  font-size: 37px;
  color: #102f55;
  margin: 14px 0;
}

.efs-stat-card small {
  color: #74869a;
  font-size: 12px;
}

/* ACCÈS RAPIDES */

.efs-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.efs-shortcut-card {
  display: block;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  padding: 28px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.efs-shortcut-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 47, 85, 0.08);
}

.efs-shortcut-icon {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #eaf2fc;
  color: #1956a3;
  border-radius: 6px;
  font-weight: 800;
  margin-bottom: 20px;
}

.efs-shortcut-card h3 {
  color: #102f55;
  font-size: 19px;
  margin-bottom: 12px;
}

.efs-shortcut-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.efs-shortcut-link {
  color: #1956a3;
  font-size: 14px;
  font-weight: 800;
}

/* CARTES */

.efs-panel-card {
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  padding: 28px;
  margin-top: 22px;
}

.efs-panel-card h3 {
  color: #102f55;
  font-size: 18px;
  margin-bottom: 12px;
}

.efs-panel-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.efs-text-link {
  display: inline-block;
  margin-top: 18px;
  color: #1956a3;
  font-size: 14px;
  font-weight: 800;
}

/* TABLEAUX */

.efs-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.efs-table-wrapper {
  overflow-x: auto;
}

.efs-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.efs-data-table th {
  background: #f3f6fa;
  color: #52677f;
  font-size: 12px;
  font-weight: 800;
  padding: 16px;
  white-space: nowrap;
}

.efs-data-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #e4eaf1;
  color: #435a74;
}

.efs-empty-cell {
  text-align: center;
  padding: 45px 20px !important;
  color: #74869a !important;
}

.efs-guidelines {
  padding-left: 22px;
}

.efs-guidelines li {
  margin-bottom: 13px;
  line-height: 1.7;
  font-size: 14px;
}

/* PROFIL */

.efs-profile-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e4eaf1;
}

.efs-profile-avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eaf2fc;
  color: #1956a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 800;
}

.efs-profile-heading h2 {
  margin-bottom: 8px;
}

.efs-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.efs-profile-item {
  padding: 18px;
  border: 1px solid #e4eaf1;
  border-radius: 6px;
}

.efs-profile-item span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 9px;
}

.efs-profile-item strong {
  font-size: 15px;
  color: #102f55;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .efs-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .efs-app-layout {
    flex-direction: column;
  }

  .efs-sidebar {
    width: 100%;
    flex-basis: auto;
    min-height: auto;
  }

  .efs-sidebar-brand {
    padding: 18px 22px;
  }

  .efs-sidebar-label {
    padding: 20px 22px 10px;
  }

  .efs-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 15px 15px;
  }

  .efs-sidebar-bottom {
    display: none;
  }

  .efs-shortcuts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .efs-login-card {
    padding: 28px 22px;
  }

  .efs-private-header-inner {
    min-height: 75px;
  }

  .efs-private-back {
    font-size: 12px;
  }

  .efs-app-topbar {
    padding: 25px 20px;
  }

  .efs-app-content {
    padding: 25px 18px;
  }

  .efs-stats-grid,
  .efs-shortcuts-grid,
  .efs-profile-grid {
    grid-template-columns: 1fr;
  }

  .efs-panel-card {
    padding: 22px 18px;
  }

  .efs-profile-heading {
    align-items: flex-start;
  }

  .efs-sidebar-nav a {
    font-size: 12px;
    padding: 10px;
  }
}


/* ==========================================
   EFS - COMPLÉMENTS PANEL ADMINISTRATION
========================================== */

.efs-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.efs-admin-actions button {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid #cbd6e3;
  border-radius: 6px;
  background: #ffffff;
  color: #102f55;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.efs-admin-actions button:disabled {
  background: #f3f6fa;
  color: #8797a9;
  cursor: not-allowed;
}

.efs-admin-actions button:not(:disabled) {
  cursor: pointer;
}

.efs-admin-actions button:not(:disabled):hover {
  background: #eaf2fc;
  border-color: #1956a3;
}

.efs-sidebar-nav a:focus-visible,
.efs-shortcut-card:focus-visible,
.efs-admin-actions button:focus-visible {
  outline: 3px solid #83b8f1;
  outline-offset: 3px;
}

.efs-app-section .efs-guidelines {
  margin-top: 18px;
}

.efs-app-section .efs-guidelines li {
  padding-left: 4px;
}

@media (max-width: 650px) {
  .efs-admin-actions {
    flex-direction: column;
  }

  .efs-admin-actions button {
    width: 100%;
  }
}


/* ==========================================
   EFS - GESTION ÉQUIPE, DEMANDES ET SIGNALEMENTS
========================================== */

.efs-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 11px 18px;
  background: #102f55;
  color: #ffffff;
  border: 1px solid #102f55;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.efs-admin-link:hover {
  background: #1956a3;
  color: #ffffff;
}

.efs-admin-link:focus-visible {
  outline: 3px solid #83b8f1;
  outline-offset: 3px;
}

.efs-panel-card .efs-guidelines {
  margin-top: 18px;
}

.efs-panel-card .efs-guidelines li {
  line-height: 1.8;
}

.efs-table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #b8c8d9 #f3f6fa;
}

.efs-data-table tbody tr:hover {
  background: #f8fafc;
}

@media (max-width: 650px) {
  .efs-admin-link {
    width: 100%;
  }

  .efs-table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================
   EFS - RESSOURCES, ACTUALITÉS, PARAMÈTRES
========================================== */

.efs-admin-form {
  margin-top: 25px;
}

.efs-admin-field textarea,
.efs-admin-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cbd6e3;
  border-radius: 6px;
  background: #ffffff;
  color: #20334a;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
}

.efs-admin-field textarea {
  min-height: 120px;
  resize: vertical;
}

.efs-admin-field select {
  min-height: 50px;
}

.efs-admin-field input:disabled,
.efs-admin-field textarea:disabled,
.efs-admin-field select:disabled {
  background: #f5f7fa;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.efs-admin-field textarea:focus,
.efs-admin-field select:focus {
  outline: none;
  border-color: #1956a3;
  box-shadow: 0 0 0 3px rgba(25, 86, 163, 0.12);
}

.efs-settings-list {
  margin-top: 24px;
  border-top: 1px solid #e4eaf1;
}

.efs-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 0;
  border-bottom: 1px solid #e4eaf1;
}

.efs-settings-item strong {
  display: block;
  color: #102f55;
  font-size: 15px;
  margin-bottom: 7px;
}

.efs-settings-item p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.efs-setting-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #dce5ef;
  background: #f3f6fa;
  border-radius: 5px;
  color: #52677f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .efs-settings-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .efs-setting-state {
    align-self: flex-start;
  }
}
