@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+NZ+Basic:wght@100..400&display=swap');
:root{

    --primary:#0F766E;
    --primary-hover:#115E59;

    --accent:#2563EB;

    --success:#15803D;
    --warning:#B45309;
    --danger:#B91C1C;

    --bg:#F8FAF9;

    --card:#FFFFFF;

    --text:#1F2937;
    --muted:#6B7280;

    --border:#DCE5E3;

    --font-dm-sans:"DM Sans";
    --tw-text-opacity:1;
    --tw-bg-opacity:1;
    --tw-border-opacity:1;
}

/* ========================================
   FONTES
======================================== */
.psy-font-dmsans {
  font-family: var(--font-dm-sans), system-ui, sans-serif;
}

.playwrite-nz-basic-font {
  font-family: "Playwrite NZ Basic", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


/* ========================================
   BODY
======================================== */

body {
  background: #86b7fe78;
  /* font-family: Arial, sans-serif; */
  margin: 0;
  /* padding: 40px; */ /* Problématique responsive/mobile */
}

.container-app {
  max-width: 1400px;
  margin: auto;
  background: #e2eeff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.container-logging {
  max-width: 1400px;
  margin: auto;
  padding: 25px;
}

.container-login {
  max-width: 700px;
  margin: auto;
  background: #e2eeff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-screen {
  max-width: 700px;
  margin: auto;
  background: #e2eeff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* MENU TOP */

.btn-menu {
  margin-top: 0px !important;
}

/* SELECTEURS */
.miniselect {
  border-width: 1px;
  border-color: rgb(156, 182, 255);
  border-radius: 6px;
  background-color: rgb(205, 235, 255);
  color: rgb(3, 54, 102);
}

.miniselect-alert {
  border-width: 1px;
  border-color: rgb(255, 230, 156);
  border-radius: 6px;
  background-color: rgb(255, 243, 205);
  color: rgb(102, 77, 3);
}

.select-mini {

  max-width: 140px;
}

.select-sm-width {

  max-width: 200px;
}

.select-md-width {

  max-width: 300px;
}

.select-lg-width {

  max-width: 400px;
}

/* Diminution des labels et des polices de Labels */
#praticien-app .form-label {
  margin-bottom: 0.1rem !important;

  font-size: 0.79rem;

  letter-spacing: 0.02em;

  font-weight: 600;

  color: #104ea5;
}
/* ----------------------------------- */
/* Réduction globale des form-controls */
/* ----------------------------------- */
.form-control,
.form-select {
  font-size: 0.88rem;

  padding: 0.32rem 0.55rem;

  min-height: calc(1.5em + 0.64rem + 2px);

  border-radius: 7px !important;
}
/* Diminution GLOBALE des labels et des polices de Labels */
.form-label {
  margin-bottom: 0 !important;

  font-size: 0.79rem;

  letter-spacing: 0.02em;

  font-weight: 600;
}

textarea.form-control {
  line-height: 1.35;
}

/* --------------------------------- */

#profile-box {
  max-width: 620px;
  border: 1px solid #3c1cf5;
  background: #ccd9ff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.profile-raw {
  border: 1px solid #3d1cf527; /* border: 1px solid #3d1cf53d; */
  background: #ccd9ff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;

  /* display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 20px; */
}

.profile-raw-blue {
  /* bg: cfe2ff - bord: #9ec5fe */
  border: 1px solid #1c32f527;
  background: #07b1ff0a;
  color:#0043a5 !important;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.profile-raw-green {
  /* bg: #d1e7dd - bord : #a3cfbb */
  border: 1px solid #1cf54b27;
  background: #ccffd5;
  color:#047857 !important;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.profile-raw-violet {
  border: 1px solid #3d1cf527; /* border: 1px solid #3d1cf53d; */
  background: #ccd9ff;
  color:#3010a5 !important;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

#profile-box .text-mini {
  font-size : 12px;
}

#profile-box .form-label {

  margin-bottom: 0.16rem !important;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}


h1, h2 {
  color: #333;
}

h3.titreQuestion {
  color:#052c65;
}

h4, h5 {
  /* color: #1d77aa; */
  color: #0072b3
}

h3.questionnaire-intro-title {
  color: #3457b6ee;
}

h4.questionnaire-intro-title {
  color: #6e2ba5e5;
}

.minititre-right {
  text-align: right;
  font-size:medium;
  color: #1d77aa;
  margin-bottom: 20px;
}

.minititre-left {
  text-align: left;
  font-size:medium;
  color: #1d77aa;
  margin-bottom: 20px;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin-bottom: 10px;
}

p.rouge {
  color: #d32f2f;
}

p.vert {
  color: #388e3c;
}

p.gris {
  color: #797979;
}

/*
input[type=radio] {
  margin-right: 10px;
}
*/

button.btn-mini {
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .5rem;
  --bs-btn-font-size: .75rem;
}

button {
  /* margin-top: 15px; */
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  /* background: #007bff; */
  color: rgb(0, 0, 0);
  transition: 0.2s;
}

button.primary{
  background: #007bff;
}

button.bg-blue{
  background: #007bff;
}

button:disabled {
  background: #888;
  cursor: not-allowed;
}

.btn-more-info{
  border:1px solid #15b93e;
  background:rgb(191, 255, 185);
  color:#374151;
  border-radius:999px;
  padding:.32rem .7rem;
  font-size:.78rem;
  font-weight:600;
  line-height:1;
}

.btn-more-info:hover{
  background:#f8fafc;
  color:#111827;
  border-color:#cbd5e1;
}

.btn-mini-info{
  border:1px solid #15b93e;
  background:rgb(191, 255, 185);
  color:#374151;
  border-radius:999px;
  padding:.32rem .7rem;
  font-size:.78rem;
  font-weight:600;
  line-height:1;
}

.btn-mini-info:hover{
  background:#f8fafc;
  color:#111827;
  border-color:#cbd5e1;
}


/* --- BOUTONS DE NAVIGATION --- */
/*
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
*/

/* --- BARRE DE TIMER --- */
.timer-bar {
  position: relative;
  height: 30px;
  background-color: #ddd;
  border-radius: 5px;
  margin: 20px 0;
  /* overflow: hidden; */
}

.timer-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Texte centré */
.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 16px;
  z-index: 1;
  pointer-events: none;
}

.all-correct {
  border: 1px solid #4caf50;
  background: #e6ffe6;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-weight: bold;
  color: #2e7d32;
}

.correct-question {
  border: 1px solid #36f4b5;
  background: #e6fff0;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.incorrect-question {
  border: 1px solid #f44336;
  background: #ffe6e6;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.unanswered-question {
  border: 1px solid #9b9b9b;
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skip-button {
  background: #ff9800;
}
.skip-button:hover {
  background: #e68900;
}

/* --- ECRAN D'ACCUEIL --- */
/*
.accueil-screen input[type="text"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 10px;
}
*/

.accueil-screen {
  text-align: center;
  padding: 40px 20px;
}

.accueil-screen h2 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.accueil-screen p {
  color: #666;
  margin: 15px 0;
  font-size: 1.1rem;
  line-height: 1.6;
}
/*
.accueil-screen input[type="text"] {
  padding: 12px 15px;
  border-radius: 6px;
  border: 2px solid #ddd;
  margin-top: 20px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.accueil-screen input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}
*/
.accueil-screen button {
  margin-top: 25px;
  font-size: 1rem;
  font-weight: 600;
}

.accueil-screen button:hover:not(:disabled) {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* --- QUESTION QUIZ --- */
.question-screen h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

.miniindex {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  margin-right: 10px;
}

/* --- RESULTAT et SCORE --- */
.score-box {
  border: 1px solid #3c1cf5;
  background: #ddeaff; /* #ccd9ff */
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;

  /* display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 20px; */
}

.bg-scorebox-subtle {
  background: #ddeaff !important;
}

.resultat-value {
  font-weight: bold;
  color: #375f88;
} 

.score-value {
  font-weight: bold;
  color: #1976d2;
}

.spendtime-value {
  font-weight: bold;
  color: #229928;
}

.loading {
  text-align: center;
  font-size: 20px;
}
.summary pre {
  background: #eee;
  padding: 10px;
  border-radius: 6px;
}

/* --- PROGRESS BAR MODERNE --- */
.progress-bar-wrapper {
  width: 100%;
  height: 12px;
  background: #e8e8e8;
  border-radius: 8px;
  /* overflow: hidden; */
  margin: 20px 0 10px;
}
.progress-bar-fill {
  height: 100%;
  /* background: linear-gradient(90deg, #4a90e2, #007bff); ORIGINAL */
  /* background: linear-gradient(135deg, #246bff , #7c83ff); BLEU-VIOLET FIN */
  background: linear-gradient(135deg, #00970d91 , #00e913);
  border-radius: 8px;
  transition: width 0.45s ease;  /* animation fluide */
}
.progress-text {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 20px;
  text-align: right;
  font-weight: 500;
}

/* --- CLASSEMENT --- */
.classement-screen {
  text-align: center;
}

/* --- MESSAGE D'ERREUR --- */
.erreur {
  background: #ffdddd;
  color: #a00;
  padding: 12px;
  border-left: 4px solid #e00;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* APPLI PATIENT */
.patient-app.list-group-item.active {
  background-color:#3532f331; /* bleu ori #0d6efd */
  color: rgb(8, 20, 75);
  border: none;
}

h4.patient-app-title {
  color: #0c6cbbf3;
}

/* APPLI PRATICIEN */
.list-group-item.active {
  background-color:#5b00af27; /* bleu ori #0d6efd */
  color: rgb(29, 11, 78);
  border: none;
}

.card {
  border-radius: 12px;
}

input, textarea {
  border-radius: 8px !important;
}

.description {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* max 2 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.textarea-question {
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Focus (très important UX) */
.textarea-question:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.2);
  outline: none;
}

/* Hover léger */
.textarea-question:hover {
  border-color: #86b7fe;
}


/* =========================
   ACCORDÉON PATIENTS
========================= */

/* =========================
   ACCORDÉON PERSONNALISÉ
========================= */

.accordion {
  --bs-accordion-bg: #ffffff;
  --bs-accordion-border-color: #e0e0e0;

  --bs-accordion-btn-bg: #f5f8ff;
  --bs-accordion-btn-color: #333;

  --bs-accordion-active-bg: #eaf2ff;
  --bs-accordion-active-color: #003366;
}

/* ACCORDÉON ULTRA COMPACT */

.accordion {
  margin: 0;
}

.accordion-body {
  font-size: 0.9rem;
  color: #333;
}

.accordion-item {
  border: none;              /* supprime bordure bootstrap */
  border-bottom: 1px solid #e0e0e0; /* fine séparation */
  border-radius: 0 !important;
}

.accordion-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.accordion .accordion-button {
  background-color: #f5f8ff !important;
}

.accordion .accordion-button:not(.collapsed) {
  background-color: #eaf2ff !important;
}

.accordion-button {
  background: #f9fbff;
  color: #003366;
  padding: 10px 12px;
  font-size: 0.95rem;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: #eef4ff;
  color: #003366;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px dashed #e6e6e6;
}

.accordion-button:hover {
  background: #f0f6ff;
}

/* Accordeon - items */
.accordion-item {
  margin: 0 !important;
  border: none;
  border-bottom: 1px solid #e0e0e0;
}

.accordion-item:first-child {
  border-top: 1px solid #e0e0e0;
}

/* Espace minimal entre les items */
.accordion-item + .accordion-item {
  margin-top: 0 !important;
}

.accordion-button {
  padding: 6px 10px; /* ⬅️ plus compact */
  font-size: 0.9rem;
}

.accordion-body {
  padding: 6px 10px; /* ⬅️ réduit */
}

/* Faux espaces visuels */
.accordion-button {
  box-shadow: none;
  border-radius: 0;
}

.accordion-collapse {
  margin: 0;
  padding: 0;
}

/* Mode expert */
.accordion-button {
  padding: 4px 8px;
  font-size: 0.85rem;
}

.accordion-body {
  padding: 4px 8px;
}

/* HEADER (question) */
.accordion-button {
  background-color: #f5f8ff; /* ⬅️ léger bleu */
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: #eaf2ff; /* ⬅️ un peu plus marqué quand ouvert */
}

/* BODY (réponse) */
.accordion-body {
  background-color: #ffffff;
}

/* séparation header / body */
.accordion-collapse {
  border-top: 1px solid #e6e6e6;
}

.accordion-button:hover {
  background-color: #edf4ff;
}

/* LIGNE UTILITAIRE ACCORDEON */

.accordion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  width: 100%;
}

/* Zone gauche / droite */
.accordion-row-left,
.accordion-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* La zone gauche prend la place dispo */
.accordion-row-left {
  flex: 1;
}

/* =========================
   TOGGLE SWITCH MINIMAL (compact)
========================= */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 14px; /* ⬅️ plus fin */
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 20px;
  transition: 0.2s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 10px;   /* ⬅️ plus petit */
  width: 10px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

/* ON */
.toggle-switch input:checked + .slider {
  background-color: #e53935; /* ⬅️ rouge clinique */
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(14px);
}

.toggle-label {
  font-size: 0.7rem;
  color: #666;
  transition: color 0.2s;
}
.toggle-switch:hover .slider {
  opacity: 0.85;
}
/* =========================
   FOCUS (effet Bootstrap)
========================= */

.toggle-switch input:focus + .slider {
  box-shadow: 0 0 0 0.15rem rgba(229, 57, 53, 0.35);
}
.toggle-switch input:active + .slider {
  box-shadow: 0 0 0 0.15rem rgba(229, 57, 53, 0.4);
}
.toggle-switch input:not(:checked):focus + .slider {
  box-shadow: 0 0 0 0.15rem rgba(150, 150, 150, 0.3);
}
/* =========================
   DRAG AND DROP ITEMS QUESTIONNAIRES
========================= */
.drag-handle {
  font-size: 1.2rem;
  color: #888;
}

.drag-handle:hover {
  color: #333;
}

.sortable-chosen {
  background: #eef4ff;
}

.sortable-ghost {
  opacity: 0.4;
}

/* ITEM EDITOR */
.editor-card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fafbff;
}

.editor-card textarea {
  resize: vertical;
}

/* =========================
   CONSIGNE CLINIQUE
========================= */

.instruction-card {
  background: #f8fbff;
  border-left: 4px solid #0d6efd;
  padding: 12px 14px;
  border-radius: 8px;
}

.instruction-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0d6efd;
  margin-bottom: 4px;
}

.instruction-content {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
  white-space: pre-line; /* 🔥 important pour les retours ligne */
}
/* Composant Patients.js */
.patient-card {
  background: #f8faff;
  border: 1px solid #e0e6f5;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.2;
}

.patient-card strong {
  font-size: 0.95rem;
}

.patient-card span {
  white-space: nowrap;
}
/* Composant Patients.js - Message Toast */
.toast-copy {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #003088;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0.95;
  z-index: 9999;
  animation: fadeInOut 2s ease;
}

.toast-copy.success {
  background: #28a745;
}

.toast-copy.error {
  background: #dc3545;
}

.toast {
  border-radius: 14px;
  overflow: hidden;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.14);
}

.toast-body {
  padding: 14px 18px;

  font-weight: 500;
}

.toast-wrapper {
  position: fixed;

  top: 24px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 99999;
}

.custom-toast {
  min-width: 340px;
  max-width: 520px;

  background: transparent;

  backdrop-filter: blur(12px);
}

.toast-content {
  display: flex;
  align-items: center;

  padding: 16px 18px;

  border-radius: 18px;

  box-shadow:
    0 12px 32px rgba(0,0,0,0.10);

  border: 1px solid rgba(255,255,255,0.45);

  backdrop-filter: blur(10px);

  animation:
    toastSlideIn 0.25s ease;
}

.toast-icon {
  font-size: 1.2rem;

  margin-right: 14px;

  display: flex;
  align-items: center;
}

.toast-message {
  flex-grow: 1;

  font-weight: 500;

  line-height: 1.4;
}



/* SUCCESS */
.toast-success {
  background:
    linear-gradient(
      135deg,
      #3db663,
      #69f794
    );
}

/* ERROR */
.toast-danger {
  background:
    linear-gradient(
      135deg,
      #a12626,
      #d64545
    );
}

/* WARNING */
.toast-warning {
  background:
    linear-gradient(
      135deg,
      #b7791f,
      #d69e2e
    );
}

/* INFO */
.toast-info {
  background:
    linear-gradient(
      135deg,
      #285eaa,
      #3b82f6
    );
}

@keyframes toastSlideIn {

  from {
    opacity: 0;

    transform:
      translateY(-12px)
      scale(0.98);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 0.95; transform: translateY(0); }
  90% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(10px); }
}

.answer-copy {
  transition: all 0.15s ease;
  border-radius: 4px;
  padding: 2px 4px;
}

.answer-copy:hover {
  background-color: #eef4ff;
}

/* QUESTIONNAIRE PASSATION COMPONENT “sweet spot” UX */
.questionnaire-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.questionnaire-wrapper .score-box {
  border-radius: 18px;
}

.questionnaire-title-original {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;

  color: #0f172a;

  margin-bottom: 2rem;

  position: relative;
  padding-bottom: 12px;
}

.questionnaire-title {
  /* font-size: 2rem; */
  font-weight: 700;
  line-height: 1.2;

  color: #244cb7e8;

  margin-bottom: 2rem;

  position: relative;
  padding-bottom: 12px;
}

.questionnaire-title::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 80px;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    #3b82f6,
    #2563eb
  );
}

.questionnaire-subtitle {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: -1rem;
  margin-bottom: 0.5rem;
}

.questionnaire-subtitle-small {
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: -0.2rem;
  margin-bottom: 0.35rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {

  .questionnaire-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

}

.question-textarea {
  min-height: 90px;
  font-size: normal;
  resize: vertical;
  /* background-color:ivory; */
}
.textarea-question::placeholder,
.question-textarea::placeholder {

    font-size: 0.75rem;
    /* font-style: italic; */
    opacity: 0.8;
    margin-top:40px;
}

.question-comment-area-instruction {
    font-size: 0.75rem;
    color:#0a3f75ad;
    /* font-style: italic; */
    opacity: 0.8;
    /* margin-top:40px; */
}

.answer-mandatory {
    color:#750a2aad;
}

.current-question-container{
/* border-top: 1px solid rgba(0,0,0,0.08); */
padding-top:10px;
}

/* Phrase d'introduction pour les questions lorsque nécessaire */
.question-introductory-sentence-original {

    font-size: 1.05rem;

    font-weight: 600;

    color: var(--bs-primary);

    margin-bottom: 0.75rem;

    padding: 0.5rem 0.75rem;

    background: rgba(13,110,253,0.08);

    border-left: 4px solid var(--bs-primary);

    border-radius: 0.35rem;
}

/* Phrase d'introduction pour les questions lorsque nécessaire */
.question-introductory-sentence {

    font-size: 0.9rem;

    font-weight: 500;

    color: #1c008da8;

    /* margin-bottom: 0.75rem; */

    padding: 0.5rem 0.75rem;

    background: rgba(13, 109, 253, 0.041);

    border-left: 4px solid #1c008d3f;

    border-radius: 0.35rem;
}
.question-text-off{
  color: #1d008dd9;
  white-space: pre-line;
}
.question-text {

    /* font-size: 1.05rem; */

    /* font-weight: 500; */

    color: #1d008dd9;
    white-space: pre-line;

    min-height:90px;

    margin-bottom: 0.75rem;

    padding: 0.5rem 0.75rem;

    background: rgba(13, 109, 253, 0.041);

    /* border-left: 4px solid #1c008d3f; */

    border-radius: 0.35rem;
}
.question-complement {

  white-space: pre-line;
}
.question-block {
  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
}
.question-block:last-child {
  border-bottom: none;
}
.review-container {
  max-width: 820px;
  margin: auto;
}

.review-card {
  background: white;

  border: 1px solid #e2e8f0;

  border-radius: 16px;

  padding: 20px;

  margin-bottom: 16px;
}

.review-question {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1e293b;
}

/* PassationView : TODO classe vraiment utile ?? ou à basculer dans le composant AnswerDisplay ? */
.review-answer {
  display: flex;
  align-items: center;
  gap: 10px;
}



.pill-low {
  background: #dcfce7;
  color: #166534;
}

.pill-medium {
  background: #fef9c3;
  color: #854d0e;
}

.pill-high {
  background: #fee2e2;
  color: #991b1b;
}

.pill-default {
  background: #e2e8f0;
  color: #334155;
}

.pill-missing {
  background: #e5e7eb;
  color: #6b7280;
}

.pill-1 {
  background: #e8f1ff;
  color: #2f5ea8;
  border-color: #b9d0f5;
}

.pill-2 {
  background: #edf7ea;
  color: #3f7d32;
  border-color: #b7ddb0;
}

.pill-3 {
  background: #fff7df;
  color: #9b7400;
  border-color: #efd98e;
}

.pill-4 {
  background: #ffe9d9;
  color: #b85b00;
  border-color: #f4bf94;
}

.pill-5 {
  background: #ffe5e5;
  color: #b42323;
  border-color: #efb0b0;
}

.question-nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #5c6b7a;
  cursor: pointer;
  transition: 0.2s;
}

.question-nav-icon:hover {
  color: #1d4ed8;
}

.question-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.instruction-toggle-btn {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.instruction-toggle-btn:hover {
  transform: translateY(-1px);
}
.instruction-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.instruction-toggle-btn {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.instruction-card {
  border-radius: 14px;
}

.instruction-title {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.question-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.question-counter-text-container {
  min-width: 160px;
  text-align: center;
}

.question-counter-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.question-nav-icon {
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.question-nav-icon:hover {
  transform: scale(1.08);
  background: #f8fafc;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.question-nav-icon.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.question-counter {
  user-select: none;
}

.question-nav-icon {
  user-select: none;
  -webkit-user-select: none;
}
.management-notes-box {
  background: #fffce8;
  border: 1px solid #e6d98f;
  border-radius: 10px;
  padding: 12px;
}

.consigne-notes-box {
  background: #e8fcff;
  border: 1px solid #8fabe6;
  border-radius: 10px;
  padding: 12px;
}

.assignation-box {
  background: #e8fcff;
  border: 1px solid #8fabe6;
  border-radius: 10px;
  padding: 12px;
}



.list-group-item {
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

.list-group {
  gap: 0 !important;
}

.list-group-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

.questionnaire-list {
  border-top: none;
}

.questionnaire-list .list-group-item {
  border-left: none;
  border-right: none;
  border-top: none;
}

.questionnaire-list .list-group-item:first-child {
  border-top: 1px solid #dee2e6;
}

#praticienAccordion .accordion-button {
  margin-top: 0 !important;
  font-weight: 600;
  background: #f8fbff;
}

#praticienAccordion .accordion-button:not(.collapsed) {
  background: #eaf2ff;
  color: #0d47a1;
}

#praticienAccordion .accordion-body {
  background: #ffffff;
}

#praticienAccordion .accordion-item {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 3px; /* 10 ORI */
}

.questionnaire-item-text {
  font-size: 0.82rem;
  line-height: 1.2;
  color: #283342; /*#334155*/

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.questionnaire-item-text small {

  display: block;

  margin-top: 2px;

  opacity: 0.7;

  font-size: 0.75rem;
}

.question-full-item {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #4f76b5;
}

.question-full-item:last-child {
  border-bottom: none;
}



.question-full-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.question-full-number-mini {
  flex-shrink: 0;

  color: #3e5f96;

  min-width: 28px;

  padding-top: 2px;
}

.question-full-number {
  flex-shrink: 0;

  font-size: 0.95rem;
  font-weight: 700;

  color: #6484b8; /* #6484b8 ori */

  min-width: 28px;

  padding-top: 2px;
}

.question-full-content {
  flex-grow: 1;
}

.questionnaire-submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 12px;
  padding-top: 14px;

  border-top: 1px solid rgba(0,0,0,0.08);
}

/* CLASSES POUR LA RELECTURE (QuestionnairePassation) */
.review-text-answer {
  margin-top: 8px;

  padding: 12px 14px;

  border-radius: 12px;

  background: #f8fafc;

  border: 1px solid #dbe5f1;

  color: #334155;

  line-height: 1.5;

  white-space: pre-wrap;
}
.review-multiple-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 8px;
}

/* pill bleue */
.review-multiple-pill {
  display: inline-flex;
  align-items: center;

  padding: 6px 12px;

  border-radius: 999px;

  background: #eef4ff;

  border: 1px solid #c9daf8;

  color: #355d99;

  font-size: 0.82rem;
  font-weight: 500;
}

.review-text-answer {
  width: 95%;

  margin-top: 8px;

  padding: 12px 14px;

  border-radius: 12px;

  background: #f8fafc;

  border: 1px solid #dbe5f1;

  color: #334155;

  line-height: 1.5;

  white-space: pre-wrap;

  box-sizing: border-box;
}

.review-score {

  margin-left: 8px;

  opacity: 0.55;

  font-size: 0.78rem;

  font-weight: 500;
}

.score-preview {

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 10px 16px;

  border-radius: 14px;

  background: #eef4ff;

  border: 1px solid #c9daf8;

  margin-bottom: 24px;
}

.score-preview-label {

  font-size: 0.9rem;

  color: #4b5f7c;
}

.score-preview-value {

  font-size: 1.2rem;

  font-weight: 700;

  color: #2e5aac;
}


.accordion-item-body-box {

  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #d9e7fb;
  margin-bottom: 1px;

}

/* IMPORT QUESTIONS */
.import-section {

  padding-bottom: 14px;

  border-bottom:
    1px solid rgba(44, 94, 170, 0.08);
}

.import-preview {

  padding: 14px;

  border-radius: 14px;

  background: white;

  border: 1px solid #d9e7fb;
}

.import-choice-pill {

  background: #eef4ff;

  color: #355b92;

  border: 1px solid #cddcf5;

  padding:
    8px 12px;

  font-weight: 500;
}

.import-choice-score {

  opacity: 0.6;

  margin-left: 4px;

  font-size: 0.82rem;
}

/* CHOIX HORIZONTAUX */

.choice-list-horizontal {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 14px;

  justify-content: center;
}

/* CHOIX VERTICAUX */

.choice-list-vertical {

  display: flex;

  flex-direction: column;

  gap: 0px;

  align-items: stretch;

  max-width: 520px;

  margin: 0 auto;
}

/* Boutons verticaux */
.choice-list-vertical .btn {

  width: 100%;

  text-align: left;

  padding: 8px 12px;

  border-radius: 10px;

  white-space: normal;

  line-height: 1.3;

  font-size: 0.92rem;

  font-weight: 500;
}


/* LIGNE QUESTIONNAIRE SELECTIONNE */

.selected-questionnaire-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  padding: 8px 12px;

  border-radius: 10px;

  background: #f8fbff;

  border-left: 4px solid #0d6efd;
}

.selected-questionnaire-title {
  font-size: 1rem;
  font-weight: 700;

  color: #184b96;
}

.selected-questionnaire-description {
  font-size: 0.88rem;

  color: #5b6b80;

  opacity: 0.9;
}

.history-progress-label {

  font-size: 0.78rem;

  color: #205ed1;

  margin-top: 0.2rem;
}

.history-context-box {

  display: flex;

  align-items: flex-start;

  gap: 0.9rem;

  padding: 1rem 1.1rem;

  margin-bottom: 0rem;

  border-radius: 0.9rem;

  background:
    rgba(13, 110, 253, 0.045);

  border:
    1px solid rgba(13, 110, 253, 0.08);
}

.history-context-icon {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 2rem;

  height: 2rem;

  border-radius: 999px;

  background:
    rgba(13, 110, 253, 0.08);

  color: #0d6efd;

  flex-shrink: 0;
}

.history-context-title {

  font-size: 0.95rem;

  font-weight: 600;

  margin-bottom: 0.2rem;
}

.history-context-text {

  font-size: 0.84rem;

  color: #6c757d;

  line-height: 1.35;
}

/* Pour le Composant PatientPassations */
.passation-row {
  cursor: pointer;

  transition: background 0.15s ease;
}

.passation-row:hover {
  background: #eef4ff;
}

/* =========================
   TABLE GENERIQUE
========================= */

.generic-table {
  font-size: 0.82rem;

  border-collapse: separate;
  border-spacing: 0;
}

.generic-table thead th {

  font-size: 0.7rem;

  text-transform: uppercase;

  letter-spacing: 0.04em;

  font-weight: 600;

  color: #6b7c93;

  background: #f7faff;

  border-bottom: 1px solid #dfe8f5;

  padding: 0.45rem 0.65rem;
}

.generic-table tbody td {

  padding: 0.42rem 0.65rem;

  border-bottom: 1px solid #edf2f9;

  vertical-align: middle;

  color: #334155;
}

.generic-table tbody tr {

  transition:
    background 0.12s ease,
    transform 0.08s ease;
}

.generic-table tbody tr:hover {

  background: #f4f8ff;

  cursor: pointer;
}

/* ligne sélectionnée */
.generic-table tbody tr.active {

  background: #eaf2ff;
}

/* =========================
   TABLE PASSATIONS
========================= */

.passations-table {
  font-size: 0.82rem;

  border-collapse: separate;
  border-spacing: 0;
}

.passations-table thead th {

  font-size: 0.7rem;

  text-transform: uppercase;

  letter-spacing: 0.04em;

  font-weight: 600;

  color: #6b7c93;

  background: #f7faff;

  border-bottom: 1px solid #dfe8f5;

  /* padding: 0.45rem 0.65rem; */
  padding: 0.4rem 0.2rem;
}

.passations-table tbody td {

  padding: 0.42rem 0.65rem;

  border-bottom: 1px solid #edf2f9;

  vertical-align: middle;

  color: #334155;
}

.passations-table tbody tr {

  transition:
    background 0.12s ease,
    transform 0.08s ease;
}

.passations-table tbody tr:hover {

  background: #f4f8ff;

  cursor: pointer;
}

/* ligne sélectionnée */
.passations-table tbody tr.active {

  background: #eaf2ff;
}

/* badges */
.passation-status {

  display: inline-flex;

  align-items: center;

  padding: 0.18rem 0.5rem;

  border-radius: 999px;

  font-size: 0.68rem;

  font-weight: 600;
}

/* états */
.passation-status.draft {

  background: #eef2ff;

  color: #4f46e5;
}

.passation-status.paused {

  background:
    rgba(107,114,128,0.14);

  color:
    #4b5563;

  border:
    1px solid
    rgba(107,114,128,0.18);
}

.passation-status.review {

  background: #fff7ed;

  color: #c2410c;
}

.passation-status.final {

  background: #ecfdf5;

  color: #047857;
}

/* score */
.passation-score {

  font-weight: 600;

  color: #2563eb;
}

/* =========================
   FILTRES GENERIQUES BEAUX
========================= */

.generic-filter-select {

  min-width: 150px;

  width: auto;

  border-radius: 999px !important;

  background: #f8fbff;

  border: 1px solid #d7e4f7;

  color: #4b5f7c;

  font-size: 0.76rem;

  padding:
    0.22rem
    2rem
    0.22rem
    0.8rem;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.generic-filter-select:focus {

  border-color: #9fc1f3;

  box-shadow:
    0 0 0 0.15rem
    rgba(13,110,253,0.12);
}

/* =========================
   FILTRES HISTORIQUE
========================= */

.history-filter-select {

  min-width: 150px;

  width: auto;

  border-radius: 999px !important;

  background: #f8fbff;

  border: 1px solid #d7e4f7;

  color: #4b5f7c;

  font-size: 0.76rem;

  padding:
    0.22rem
    2rem
    0.22rem
    0.8rem;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.history-filter-select:focus {

  border-color: #9fc1f3;

  box-shadow:
    0 0 0 0.15rem
    rgba(13,110,253,0.12);
}

/* =========================
   FILTRE TYPE DE SCORES
========================= */

.scoretype-filter-select {

  min-width: 100px; /* raccourci */

  width: auto;

  border-radius: 999px !important;

  background: #f8fbff;

  border: 1px solid #d7e4f7;

  color: #4b5f7c;

  font-size: 0.76rem;

  padding:
    0.12rem
    1rem
    0.12rem
    0.8rem;
  margin-bottom:1px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.scoretype-filter-select:focus {

  border-color: #9fc1f3;

  box-shadow:
    0 0 0 0.15rem
    rgba(13,110,253,0.12);
}


.group-filter-select {

  min-width: 100px; /* raccourci */

  width: auto;

  border-radius: 999px !important;

  background: #efefff;

  border: 1px solid #d7e4f7;

  color: #305791; /* #31466f */

  font-size: 0.76rem;

  padding:
    0.12rem
    1rem
    0.12rem
    0.8rem;
  margin-bottom:1px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}



/* =========================
   MODAL EDITION PASSATION
========================= */

.edit-overlay {

  position: fixed;

  inset: 0;

  background:
    rgba(15, 23, 42, 0.35);

  backdrop-filter: blur(3px);

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px;
}

.edit-modal {

  width: 100%;
  max-width: 680px;

  background: white;

  border-radius: 22px;

  padding: 24px;

  box-shadow:
    0 24px 60px rgba(0,0,0,0.18);

  border:
    1px solid #dbe5f1;
}


/* =========================
   HOME DASHBOARD
========================= */

.dashboard-home {

  max-width: 1100px;

  margin: 0 auto;

  padding: 24px;
}

/* HERO */

.home-hero {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding: 28px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #eef4ff,
      #f8fbff
    );

  border:
    1px solid #dbe7f8;

  margin-bottom: 28px;
}

.home-hero-left {

  display: flex;

  align-items: center;

  gap: 18px;
}

.home-avatar {

  width: 72px;
  height: 72px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  font-weight: 700;

  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb
    );

  color: white;
}

.home-welcome {

  font-size: 1.8rem;

  font-weight: 700;

  color: #0f172a;
}

.home-subtitle {

  color: #64748b;

  margin-top: 4px;
}

.home-role-badge {

  padding:
    0.55rem
    1rem;

  border-radius: 999px;

  background: white;

  border:
    1px solid #dbe5f1;

  color: #355b92;

  font-size: 0.82rem;

  font-weight: 600;

  text-transform: uppercase;
}

/* GRID */

.home-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: 18px;

  margin-bottom: 28px;
}

/* CARDS */

.home-card {

  background: white;

  border:
    1px solid #e2e8f0;

  border-radius: 22px;

  padding: 24px;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  cursor: pointer;
}

.home-card:hover {

  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.08);
}

.home-card-icon {

  font-size: 2rem;

  margin-bottom: 14px;
}

.home-card-title {

  font-weight: 700;

  margin-bottom: 8px;

  color: #1e293b;
}

.home-card-text {

  color: #64748b;

  line-height: 1.45;

  font-size: 0.92rem;
}

/* INFO */

.home-info-card {

  padding: 20px 24px;

  border-radius: 20px;

  background: #f8fbff;

  border:
    1px solid #dbe7f8;
}

.home-info-title {

  font-weight: 700;

  color: #2f5ea8;

  margin-bottom: 8px;
}

.home-info-text {

  color: #475569;

  line-height: 1.55;
}

/* =========================================
   ACCUEIL MODERNE
========================================= */

.modern-home {
  padding: 6px;
}

.modern-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;

  padding: 36px;

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      #ffffff,
      #f3f7ff
    );

  border: 1px solid #e6edf9;

  margin-bottom: 24px;
}

.modern-hero-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.modern-avatar {
  width: 110px;
  height: 110px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 3rem;
  font-weight: 700;
  color: white;

  background:
    linear-gradient(
      135deg,
      #7c83ff,
      #246bff
    );

  box-shadow:
    0 12px 32px rgba(37,99,235,0.25);
}

.modern-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #13254c;
}

.modern-hero-subtitle {
  font-size: 1.8rem;
  color: #2d4373;
  margin-top: 6px;
}

.modern-hero-text {
  margin-top: 18px;
  color: #60708f;
  font-size: 1rem;
  line-height: 1.6;
}

.modern-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 20px;

  border-radius: 999px;

  background: #edf4ff;

  color: #2457d6;

  font-weight: 600;

  margin-bottom: 28px;
}

.modern-date {
  color: #445374;
  margin-bottom: 12px;
}

.modern-date-small {
  color: #5d6f92;
}

.modern-card {

  background: white;

  border-radius: 24px;

  border: 1px solid #e7edf7;

  padding: 24px;

  box-shadow:
    0 6px 24px rgba(15,23,42,0.04);
}

.modern-section-title {

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 1.4rem;
  font-weight: 700;

  color: #14254d;

  margin-bottom: 24px;
}

.modern-actions-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

  gap: 20px;
}

.modern-action-card {

  position: relative;

  padding: 22px;

  border-radius: 22px;

  border: 1px solid #e5ebf5;

  background: #fff;

  transition: 0.22s ease;

  cursor: pointer;
}

.modern-action-card:hover {

  transform: translateY(-4px);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.08);
}

.modern-action-icon {

  width: 72px;
  height: 72px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;

  margin-bottom: 20px;
}

.modern-action-icon.blue {
  background: #e9f1ff;
  color: #246bff;
}

.modern-action-icon.green {
  background: #eaf8ee;
  color: #2c9b51;
}

.modern-action-icon.purple {
  background: #f2ebff;
  color: #8b46ff;
}

.modern-action-icon.orange {
  background: #fff3e2;
  color: #e08a00;
}

.modern-action-title {

  font-size: 1.2rem;
  font-weight: 700;

  color: #16254d;

  margin-bottom: 12px;
}

.modern-action-text {

  color: #667692;

  line-height: 1.5;

  font-size: 0.96rem;
}

.modern-action-arrow {

  position: absolute;

  right: 20px;
  bottom: 20px;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #246bff;

  color: #246bff;

  font-weight: 700;
}

.modern-action-arrow.green {
  border-color: #2c9b51;
  color: #2c9b51;
}

.modern-action-arrow.purple {
  border-color: #8b46ff;
  color: #8b46ff;
}

.modern-action-arrow.orange {
  border-color: #e08a00;
  color: #e08a00;
}

.modern-stats-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}

.modern-stat-card {

  padding: 22px;

  border-radius: 20px;

  border: 1px solid;
}

.modern-stat-card.blue {
  background: #f4f8ff;
  border-color: #d6e5ff;
}

.modern-stat-card.green {
  background: #f1fbf4;
  border-color: #ccefd8;
}

.modern-stat-card.purple {
  background: #f7f2ff;
  border-color: #e2d5ff;
}

.modern-stat-card.orange {
  background: #fff8f0;
  border-color: #ffe0bb;
}

.modern-stat-number {

  font-size: 2.4rem;
  font-weight: 700;

  margin-bottom: 6px;
}

.modern-stat-label {

  font-size: 0.95rem;

  color: #52627f;

  line-height: 1.4;
}

.modern-history-item {

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  padding: 20px 0;

  border-bottom: 1px solid #edf2fa;
}

.modern-history-item:last-child {
  border-bottom: none;
}

.modern-history-left {

  display: flex;
  align-items: center;

  gap: 16px;
}

.modern-history-icon {

  width: 54px;
  height: 54px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;
}

.modern-history-icon.purple {
  background: #f2ebff;
  color: #8b46ff;
}

.modern-history-icon.green {
  background: #eaf8ee;
  color: #2c9b51;
}

.modern-history-title {

  font-size: 1.05rem;
  font-weight: 700;

  color: #15244b;
}

.modern-history-meta {

  margin-top: 6px;

  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;

  color: #64748b;

  font-size: 0.9rem;
}

.modern-history-right {
  width: 240px;
}

.modern-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.modern-progress-label {

  font-size: 0.88rem;

  margin-bottom: 8px;

  color: #4b5d7c;
}

.modern-info-box {

  padding: 18px;

  border-radius: 18px;

  background: #f7fbff;

  border: 1px solid #dce9fb;

  margin-bottom: 18px;
}

.modern-info-title {

  font-weight: 700;

  color: #21448c;

  margin-bottom: 10px;
}

.modern-info-text {

  color: #5f6f8d;

  line-height: 1.5;
}

.modern-help-box {

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 12px;

  color: #445374;
}

.modern-help-title {
  font-weight: 700;
}

.modern-footer-card {

  margin-top: 24px;

  display: flex;
  align-items: center;

  gap: 18px;

  padding: 24px 28px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #f7faff,
      #edf4ff
    );

  border: 1px solid #dce7fa;
}

.modern-footer-icon {

  width: 64px;
  height: 64px;

  border-radius: 50%;

  background: white;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #2457d6;

  font-size: 1.8rem;
}

.modern-footer-title {

  font-size: 1.1rem;
  font-weight: 700;

  color: #16366d;

  margin-bottom: 6px;
}

.modern-footer-text {
  color: #5f6f8d;
}

@media (max-width: 992px) {

  .modern-hero {
    flex-direction: column;
  }

  .modern-hero-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .modern-hero-title {
    font-size: 2.2rem;
  }

  .modern-hero-subtitle {
    font-size: 1.3rem;
  }

  .modern-history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .modern-history-right {
    width: 100%;
  }

}

/* =========================================
   HOME COMPACT
========================================= */

.compact-home {
  padding: 4px;
}

/* HERO */

.compact-hero {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding: 20px 26px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #ffffff,
      #f5f8ff
    );

  border: 1px solid #e5ecf7;

  margin-bottom: 16px;
}

.compact-hero-left {

  display: flex;

  align-items: center;

  gap: 18px;
}

.compact-avatar {

  width: 74px;
  height: 74px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  font-weight: 700;

  color: white;

  background:
    linear-gradient(
      135deg,
      #7d83ff,
      #246bff
    );

  box-shadow:
    0 8px 24px rgba(37,99,235,0.2);
}

.compact-title {

  font-size: 2rem;

  font-weight: 700;

  color: #14254d;

  line-height: 1.1;
}

.compact-subtitle {

  font-size: 1.1rem;

  color: #31466f;

  margin-top: 4px;
}

.compact-description {

  margin-top: 10px;

  color: #6a7893;

  font-size: 0.92rem;
}

.compact-hero-right {

  text-align: right;
}

.compact-role {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 8px 14px;

  border-radius: 999px;

  background: #edf4ff;

  color: #2457d6;

  font-size: 0.85rem;

  font-weight: 600;

  margin-bottom: 12px;
}

.compact-date {

  color: #5f6f8d;

  font-size: 0.88rem;
}

/* CARDS */

.compact-card {

  background: white;

  border-radius: 20px;

  border: 1px solid #e7edf7;

  padding: 18px 20px;

  box-shadow:
    0 4px 18px rgba(15,23,42,0.04);
}

.compact-section-title {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 1.05rem;

  font-weight: 700;

  color: #15254d;

  margin-bottom: 16px;
}

/* ACTIONS */

.compact-actions-grid {

  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 12px;
}

.compact-action {

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 14px;

  border-radius: 16px;

  border: 1px solid #e7edf7;

  transition: 0.18s ease;

  cursor: pointer;
}

.compact-action:hover {

  transform: translateY(-2px);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.06);
}

.compact-action-icon {

  width: 48px;
  height: 48px;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.3rem;

  flex-shrink: 0;
}

.compact-action-icon.blue {
  background: #edf4ff;
  color: #246bff;
}

.compact-action-icon.green {
  background: #edf9f0;
  color: #2f9a4f;
}

.compact-action-icon.purple {
  background: #f5efff;
  color: #8b46ff;
}

.compact-action-icon.orange {
  background: #fff5e8;
  color: #e08a00;
}

.compact-action-title {

  font-size: 0.95rem;

  font-weight: 700;

  color: #16254d;
}

.compact-action-text {

  margin-top: 2px;

  color: #667692;

  font-size: 0.82rem;

  line-height: 1.35;
}

/* HISTORY */

.compact-history-item {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 16px;

  padding: 14px 0;

  border-bottom: 1px solid #edf2fa;
}

.compact-history-item:last-child {
  border-bottom: none;
}

.compact-history-left {

  display: flex;

  align-items: center;

  gap: 12px;
}

.compact-history-icon {

  width: 42px;
  height: 42px;

  border-radius: 12px;

  display: flex;

  align-items: center;
  justify-content: center;
}

.compact-history-icon.purple {
  background: #f3ecff;
  color: #8b46ff;
}

.compact-history-icon.green {
  background: #edf9f0;
  color: #2f9a4f;
}

.compact-history-title {

  font-size: 0.95rem;

  font-weight: 700;

  color: #15254b;
}

.compact-history-meta {

  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 4px;

  color: #64748b;

  font-size: 0.78rem;
}

.compact-progress-wrapper {
  width: 150px;
}

.compact-progress {
  height: 8px;
  border-radius: 999px;
}

/* STATS */

.compact-stats-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;
}

.compact-stat {

  padding: 16px;

  border-radius: 16px;

  border: 1px solid;
}

.compact-stat.blue {
  background: #f4f8ff;
  border-color: #d8e5ff;
}

.compact-stat.green {
  background: #f1fbf4;
  border-color: #ceefda;
}

.compact-stat.purple {
  background: #f7f2ff;
  border-color: #e4d6ff;
}

.compact-stat.orange {
  background: #fff7ef;
  border-color: #ffe2c2;
}

.compact-stat-number {

  font-size: 1.9rem;

  font-weight: 700;

  line-height: 1;
}

.compact-stat-label {

  margin-top: 6px;

  color: #5b6a86;

  font-size: 0.8rem;
}

/* INFO */

.compact-info {

  color: #5f6f8d;

  font-size: 0.88rem;

  line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 992px) {

  .compact-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-actions-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .compact-hero-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-title {
    font-size: 1.5rem;
  }

  .compact-subtitle {
    font-size: 1rem;
  }

  .compact-history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-progress-wrapper {
    width: 100%;
  }

}

/* =========================================
   TOPBAR MODERNE
========================================= */

.modern-topbar-wrapper {

  margin-bottom: 8px;
}

.modern-topbar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 18px;

  padding: 14px 20px;

  border-radius: 24px;

  background:
    rgba(255,255,255,0.78);

  backdrop-filter: blur(14px);

  border:
    1px solid rgba(255,255,255,0.55);

  box-shadow:
    0 8px 30px rgba(15,23,42,0.06);
}

/* LEFT */

.modern-topbar-left {

  display: flex;

  align-items: center;

  gap: 26px;
}

/* LOGO */

.modern-logo {

  display: flex;

  align-items: center;

  gap: 12px;
}

.modern-logo-circle {

  width: 48px;
  height: 48px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  font-weight: 700;

  color: white;

  background:
    linear-gradient(
      135deg,
      #7c83ff,
      #246bff
    );

  box-shadow:
    0 6px 18px rgba(37,99,235,0.22);
}

.modern-logo-title {

  font-size: 1rem;

  font-weight: 700;

  color: #14254d;

  line-height: 1.1;
}

.modern-logo-subtitle {

  font-size: 0.76rem;

  color: #71819e;
}

/* NAV */

.modern-nav {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-wrap: wrap;
}

.modern-nav-btn {

  border: none;
  margin-top: 0px !important;
  background: transparent;

  padding:
    10px 16px;

  border-radius: 14px;

  font-size: 0.88rem;

  font-weight: 600;

  color: #566783;

  transition:
    all 0.18s ease;
}

.modern-nav-btn:hover {

  background: #eef4ff;

  color: #2457d6;
}

.modern-nav-btn.active {

  background:
    linear-gradient(
      135deg,
      #246bff,
      #4a7cff
    );

  color: white;

  box-shadow:
    0 6px 18px rgba(37,99,235,0.22);
}

/* RIGHT */

.modern-topbar-right {

  display: flex;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;
}

/* ROLE */

.modern-role-pill {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding:
    8px 14px;

  border-radius: 999px;

  background: #edf4ff;

  color: #2457d6;

  font-size: 0.82rem;

  font-weight: 600;
}

/* USER */

.modern-user-pill {

  display: flex;

  align-items: center;

  gap: 10px;

  padding:
    6px 10px;

  border-radius: 999px;

  background: #f7faff;

  border:
    1px solid #e5ecf7;
}

.modern-user-avatar {

  width: 34px;
  height: 34px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 0.85rem;
  font-weight: 700;

  color: white;

  background:
    linear-gradient(
      135deg,
      #7c83ff,
      #246bff
    );
}

.modern-user-name {

  font-size: 0.82rem;

  font-weight: 600;

  color: #344563;
}

/* ADMIN */

.modern-admin-box {

  display: flex;

  align-items: center;

  gap: 8px;
}

.modern-admin-badge {

  padding:
    6px 10px;

  border-radius: 999px;

  background: #1e293b;

  color: white;

  font-size: 0.72rem;

  font-weight: 600;
}

.modern-select {

  border-radius: 12px !important;

  border:
    1px solid #dbe5f1;

  font-size: 0.78rem;

  padding:
    0.3rem
    1.8rem
    0.3rem
    0.75rem;

  background-color: #f8fbff;

  color: #445374;
}

/* BUTTONS */

.modern-mini-btn {

  width: 38px;
  height: 38px;
  margin-top: 0px !important;
  border-radius: 14px;

  background: #f7faff;

  border:
    1px solid #e5ecf7;

  color: #4a5b7c;

  display: flex;

  align-items: center;
  justify-content: center;

  transition:
    all 0.18s ease;
}

.modern-mini-btn:hover {

  background: #eef4ff;

  color: #2457d6;
}

.modern-mini-btn.danger:hover {

  background: #fff1f1;

  color: #d63b3b;
}

/* RESPONSIVE */

@media (max-width: 1200px) {

  .modern-topbar {

    flex-direction: column;

    align-items: stretch;
  }

  .modern-topbar-left,
  .modern-topbar-right {

    width: 100%;
  }

  .modern-topbar-left {

    justify-content: space-between;
  }

  .modern-topbar-right {

    justify-content: flex-end;
  }
}

@media (max-width: 768px) {

  .modern-topbar-left {

    flex-direction: column;

    align-items: flex-start;
  }

  .modern-nav {

    width: 100%;
  }

  .modern-nav-btn {

    flex: 1;
  }

}


/* NOUVELLE VERSION */

.modern-topbar {

  padding:
    10px 18px;
}

.modern-user-pill {

  display: flex;

  align-items: center;

  gap: 8px;

  padding:
    4px 8px;

  border-radius: 999px;

  background: #f7faff;

  border:
    1px solid #e5ecf7;
}

.modern-user-avatar {

  width: 26px;
  height: 26px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 0.72rem;

  font-weight: 700;

  color: white;

  background:
    linear-gradient(
      135deg,
      #7c83ff,
      #246bff
    );
}

.modern-user-name {

  font-size: 0.76rem;

  font-weight: 600;

  color: #344563;

  line-height: 1;
}

/* TOAST NOUVELLE VERSION */
.toast-wrapper {

  position: fixed;

  bottom: 20px;

  right: 20px;

  z-index: 9999;

  pointer-events: none;

}

.custom-toast {

  pointer-events: auto;

  background: transparent !important;

  box-shadow: none !important;

  border: none !important;

}

.toast-content {

  pointer-events: auto;

  position: relative;

  display: flex;

  align-items: center;

  gap: 14px;

  min-width: 340px;

  max-width: 420px;

  padding: 16px 18px;

  border-radius: 18px;

  background: rgba(255,255,255,0.92);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 2px 8px rgba(0,0,0,0.04);

  overflow: hidden;

  animation:
    toastSlideIn 0.35s ease;

}

.toast-accent {

  position: absolute;

  left: 0;

  top: 0;

  bottom: 0;

  width: 5px;

  border-radius: 12px;

}

.accent-success {

  background: #22c55e;

}

.accent-danger {

  background: #ef4444;

}

.accent-warning {

  background: #f59e0b;

}

.accent-info {

  background: #3b82f6;

}

.toast-icon {

  font-size: 1.4rem;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 42px;

  height: 42px;

  border-radius: 12px;

  flex-shrink: 0;

}

.toast-success .toast-icon {

  background: rgba(34,197,94,0.12);

  color: #16a34a;

}

.toast-danger .toast-icon {

  background: rgba(239,68,68,0.12);

  color: #dc2626;

}

.toast-warning .toast-icon {

  background: rgba(245,158,11,0.12);

  color: #d97706;

}

.toast-info .toast-icon {

  background: rgba(59,130,246,0.12);

  color: #2563eb;

}

.toast-message {

  flex: 1;

  font-size: 0.95rem;

  font-weight: 500;

  color: #1e293b;

  line-height: 1.4;

  word-break: break-word;

}

.toast-content .btn-close {

  opacity: 0.5;

  transition: opacity 0.2s ease;

}

.toast-content .btn-close:hover {

  opacity: 1;

}

@keyframes toastSlideIn {

  from {

    opacity: 0;

    transform:
      translateY(20px)
      translateX(10px);

  }

  to {

    opacity: 1;

    transform:
      translateY(0)
      translateX(0);

  }

}

/* FIN TOAST */

/* =========================================
   TOAST STYLE SLDS / CLINIQUE
========================================= */

.toast-wrapper {

  position: fixed;

  top: 22px;
  right: 22px;

  z-index: 99999;

  display: flex;
  flex-direction: column;

  gap: 12px;
}

.custom-toast {

  min-width: 340px;
  max-width: 520px;

  border-radius: 16px;

  overflow: hidden;

  background: white;

  border: 1px solid #dbe5f1;

  box-shadow:
    0 12px 30px rgba(15,23,42,0.10);

  animation:
    toast-enter 0.22s ease;
}

/* ligne interne */
.toast-content {

  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 16px 18px;

  position: relative;
}

/* barre latérale */
.custom-toast::before {

  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 5px;
}

/* variantes */

.toast-success::before {
  background: #2e9b57;
}

.toast-warning::before {
  background: #d48b1f;
}

.toast-danger::before {
  background: #d64545;
}

.toast-info::before {
  background: #2563eb;
}

/* icône */

.toast-icon {

  font-size: 1.15rem;

  margin-top: 1px;

  flex-shrink: 0;
}

/* contenu */

.toast-body {

  flex-grow: 1;
}

.toast-title {

  font-weight: 700;

  font-size: 0.92rem;

  color: #1e293b;

  margin-bottom: 4px;
}

.toast-message {

  font-size: 0.88rem;

  color: #475569;

  line-height: 1.45;
}

/* bouton fermeture */

.toast-close {

  border: none;

  background: transparent;

  color: #94a3b8;

  cursor: pointer;

  padding: 0;

  margin: 0;

  font-size: 1rem;

  line-height: 1;
}

.toast-close:hover {
  color: #334155;
}

/* animation */

@keyframes toast-enter {

  from {

    opacity: 0;

    transform:
      translateY(-8px)
      scale(0.98);
  }

  to {

    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}
/* FIN DES TOASTS STYLE SLDS / CLINIQUE */

/* DEBUT BOUTON EDIT du TABLEAU DES PASSATIONS */
.passation-edit-btn {

  width: 24px;
  height: 24px;

  border: none;

  border-radius: 999px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  font-size: 0.72rem;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    box-shadow 0.12s ease;

  /* palette proche badges */

  background: #eef2ff;

  color: #4f46e5;

  border:
    1px solid rgba(79,70,229,0.18);

  opacity: 0.82;
}

.passation-edit-btn:hover {

  opacity: 1;

  transform: scale(1.06);

  box-shadow:
    0 2px 6px rgba(79,70,229,0.18);
}

.passation-edit-btn:active {

  transform: scale(0.96);
}

.passation-delete-btn {

  width: 24px;
  height: 24px;

  border: none;

  border-radius: 999px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  font-size: 0.72rem;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    box-shadow 0.12s ease;

  /* palette proche badges */

  background: #eef2ff;

  color: #e54646;

  border:
    1px solid rgba(229, 70, 70, 0.18);

  opacity: 0.82;
}

.passation-delete-btn:hover {

  opacity: 1;

  transform: scale(1.06);

  box-shadow:
    0 2px 6px rgba(229, 70, 70, 0.18);
}

.passation-delete-btn:active {

  transform: scale(0.96);
}

/* FIN BOUTON EDIT du TABLEAU DES PASSATIONS */

/* CATEGORIES ET SOUS-CATEGORIES POUR LES QUESTIONNAIRES */
.question-category-group {

  margin-bottom: 2rem;
}

.question-category-title {

  font-size: 1.2rem;

  font-weight: 700;

  margin-bottom: 1rem;

  padding-bottom: .4rem;

  border-bottom:
    2px solid #dbe4ff;

  color: #304674;
}

.question-subcategory-group {

  margin: 0;
}

.question-subcategory-title {

  font-size: 1rem;

  font-weight: 600;

  margin-bottom: .75rem;

  color: #5d6f95;
}
/* FIN CATEGORIES ET SOUS-CATEGORIES POUR LES QUESTIONNAIRES */
.question-group-inline-title {

  font-size: .82rem;

  font-weight: 500;

  color: #527cca; /* #3a5ea1 */

  margin-bottom: .35rem;

  /* margin-top: 1rem; */

  letter-spacing: .01em;
}

.question-group-separator {

  opacity: .55;

  margin: 0 .25rem;
}

.question-response-row {

  padding: 0.75rem 0;

  border-bottom:
    1px solid var(--bs-border-color);

}

.question-response-row:last-child {

  border-bottom: none;
}

/* =========================================
   CUSTOM BADGE LEVELS
========================================= */

.bg-lime-subtle {

  background-color:
    #dff5d7 !important;
}

.bg-orange-subtle {

  background-color:
    #ffe2c6 !important;
}


/* =========================================
   Choix de réponses AnswerEditor
========================================= */
.answer-choice-pill {

  border: 1px solid
    var(--bs-border-color);

  background: white;

  border-radius: 999px;

  padding:
    0.45rem
    0.9rem;

  font-size: 0.95rem;

  transition:
    all 0.15s ease;

  display: flex;

  align-items: center;

  gap: 0.5rem;
}

.answer-choice-pill:hover {

  border-color:
    var(--bs-primary);

  background:
    rgba(
      var(--bs-primary-rgb),
      0.05
    );
}

.answer-choice-pill.selected {

  background:
    var(--bs-primary);

  color: white;

  border-color:
    var(--bs-primary);
}

.answer-choice-indicator {

  font-weight: 700;

  width: 1rem;

  text-align: center;
}

/* MINI TOOLBAR */
.mini-toolbar {

    display: flex;

    align-items: center;

    gap: 4px;
}

.mini-btn {

    width: 22px;

    height: 22px;

    padding: 0;

    border: 1px solid #d0d7de;

    border-radius: 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    line-height: 1;

    cursor: pointer;

    transition: all 0.15s ease;
}

.mini-btn.bg-white {

    background: white;
}

.mini-btn:hover {

    background: #f3f4f6;
}



.mini-btn.danger:hover {

    background: #fee2e2;

    border-color: #fca5a5;
}

/* EDITEUR DE QUESTION (COMPOSANT AnswerEditor) */
.single-choice-card {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 12px 14px;

  border-radius: 12px;

  border: 1px solid #d7dce2;

  background: white;

  cursor: pointer;

  transition:
    all 0.18s ease;
}


.single-choice-card:hover {

  border-color: #6ea8fe;

  background: #f8fbff;
}


.single-choice-card.selected {

  border-color: #0d6efd;

  background: #eef5ff;
}


.single-choice-radio {

  width: 20px;

  height: 20px;

  border-radius: 50%;

  border: 2px solid #6c757d;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;
}


.single-choice-card.selected
.single-choice-radio {

  border-color: #0d6efd;
}


.single-choice-dot {

  width: 10px;

  height: 10px;

  border-radius: 50%;

  background: #0d6efd;
}


.single-choice-label {

  flex: 1;

  font-weight: 500;
}
/* FIN EDITEUR DE QUESTION (COMPOSANT AnswerEditor) */

/* =========================================
   TABS ANALYSE PASSATION (PassationAnalysis)
========================================= */

.analysis-tabs-wrapper {

  padding:
    0.35rem;

  border:
    1px solid #dfe8f5;

  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      #fbfdff,
      #f4f8ff
    );

  scrollbar-width: thin;

  white-space: nowrap;

  overflow-y: hidden;
}

.analysis-tabs {

  flex-wrap: nowrap;
}

.analysis-tabs .nav-link {

  border: none;

  background: transparent;

  color: #5b6b80;

  padding:
    0.42rem
    0.72rem;

  font-size: 0.76rem;

  font-weight: 600;

  line-height: 1.1;

  border-radius: 10px;

  transition:
    all 0.16s ease;

  white-space: nowrap;

  margin-top: 0 !important;
}

/* hover */

.analysis-tabs .nav-link:hover {

  background: #eef4ff;

  color: #2457d6;
}

/* actif */

.analysis-tabs .nav-link.active {

  background:
    linear-gradient(
      135deg,
      #246bff,
      #4a7cff
    );

  color: white;

  box-shadow:
    0 4px 14px rgba(37,99,235,0.18);
}

/* disabled */

.analysis-tabs .nav-link:disabled {

  opacity: 0.42;

  cursor: not-allowed;
}
/* FIN TABS de PassationAnalysis */

/* =========================================
   CARTE GROUPE DE REFERENCE
========================================= */

.reference-group-card {

  border:
    1px solid #dfe8f5;

  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #fbfdff,
      #f4f8ff
    );

  margin-bottom: 12px;

  overflow: hidden;
}

.reference-group-header {

  padding:
    0.5rem
    0.8rem;

  font-size: 0.72rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.04em;

  color: #6b7c93;

  background: #f7faff;

  border-bottom:
    1px solid #dfe8f5;
}

.reference-group-body {

  padding:
    0.75rem
    0.8rem;
}

/* select intégré */

.reference-group-card
.form-select {

  background-color: white;

  border:
    1px solid #d7e4f7;

  font-size: 0.82rem;

  color: #334155;

  box-shadow: none;
}

.reference-group-card
.form-select:focus {

  border-color: #9fc1f3;

  box-shadow:
    0 0 0 0.12rem
    rgba(13,110,253,0.10);
}
/* =========================================
   PASSATION VIEW
========================================= */


.answer-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* PILULE DE QUESTION NON APPLICABLE pour QuestionnairePassation */
.pill-na {

  background: #f3f4f6;

  color: #6b7280;

  border: 1px solid #d1d5db;

  /*font-style: italic;*/
}

/* Ligne d'informations de PassationView */
.passation-informations {
  padding: 12px 14px;
}

.readonly-pill {

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  padding: 0.35rem 0.75rem;

  border-radius: 999px;

  background: rgba(108, 117, 125, 0.12);

  color: #5c636a;

  font-size: 0.82rem;

  font-weight: 600;

  letter-spacing: 0.01em;

  border: 1px solid rgba(108, 117, 125, 0.18);

}

.readonly-pill i {

  font-size: 0.72rem;

  opacity: 0.8;
}



.pill {

    display: inline-flex;

    align-items: center;

    gap: 0.35rem;

    padding: 0.25rem 0.65rem;

    border-radius: 999px;

    font-size: 0.75rem;

    font-weight: 600;

    white-space: nowrap;
}

.big-pill {

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 1rem;

    border-radius: 999px;

    font-size: 0.95rem;

    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;
}

.mini-pill {

    display: inline-flex;

    align-items: center;

    gap: 0.25rem;

    padding: 0.1rem 0.45rem;

    border-radius: 999px;

    font-size: 0.65rem;

    font-weight: 500;

    line-height: 1.2;

    white-space: nowrap;
}

.primary-pill {
    background-color: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

.secondary-pill {
    background-color: #dfe9ff;
    border: 1px solid #b6d4fe;
    color: #1842a8;
}

.success-pill {
    background: #ccffe2; /* bfffe5 */
    color: #009157; /* 009157 vert amélioré */
    border: 1px solid #bbf7d0;
}

.success-light-pill {
    background: #f0fdf4; /* bfffe5 */
    color: #00ad68;
    border: 1px solid #bbf7d0;
}


.danger-pill {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.warning-pill {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

.light-pill {
    background-color: #f8f9fa;
    border: 1px solid #d3d6d8;
    color: #636464;
}

.info-pill {
    background-color: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
}

/* PILLS CATEGORIES et DIMENSIONS */
/* identique à primary-pill */
.category-pill {
    background-color: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

/* identique à info-pill */
.subcategory-pill {
    background-color: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
}

/* identique à warning-pill */
.dimension-pill {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

.score-pill {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding:
    6px 10px;

  border-radius: 999px;

  background: #edf4ff;

  color: #2457d6;

  margin-left: 8px;
  
  opacity: 0.55;
  
  font-size: 0.78rem;
  
  font-weight: 500;
}


.severity-pill {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding:
    6px 10px;

  border-radius: 999px;

  background: #edf4ff;

  color: white;

  margin-left: 8px;
  
  opacity: 0.85;
  
  font-size: 0.78rem;
  
  font-weight: 500;
}

/* Dans QuestionnaireNormsEditor pour l'ordre des groupes de référence */
.order-pill {

  align-items: center;

  gap: 2px;

  padding:
    6px 10px;

  border-radius: 999px;

  background: #edf4ff;

  color: #2457d6;

  margin-left: 0px;
  
  opacity: 0.90;
  
  font-size: 0.70rem;
  
  font-weight: 500;
}
/* couleurs inversées pour le groupe par défaut */
.order-pill.defaultgroup {
  background-color: #4e82fc; /* #2457d6 #6f67ea 4e82fc */
  color: whitesmoke;
  opacity: 0.85;
  border:1px solid rgba(79, 70, 229, 0.28);
}

/* =========================================
   PILL DE RELECTURE DE QUESTION :
   Ce pill spécial sert de Toggle de Réponse relue au moment de la Relecture de la passation
========================================= */
.review-pill {
    min-width: 170px;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
}
/* orange */
.review-pending-yellow {

    background: #fefce8;
    color: #a16207;
    border: 1px solid #fde68a;
}

.review-pending-orange {

    background: #ffedd5;

    color: #c2410c;

    border: 1px solid #fb923c;
}

/* vert */
.review-done-green {

    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
/* =========================================
   pour QuestionnairePassation
========================================= */

.comment-collapsed {

    border-bottom: none !important;
}

/* =========================================
   MINI INFO PILL
========================================= */

.mini-info-pill {

    display: inline-flex;

    align-items: center;

    gap: 0.25rem;

    padding: 0.1rem 0.45rem;

    border-radius: 999px;

    font-size: 0.65rem;

    font-weight: 500;

    line-height: 1.2;

    background-color: #cff4fc;

    border: 1px solid #b6effb;

    color: #055160;

    white-space: nowrap;
}

/* =========================================
   MINI LIGHT PILL
========================================= */

.mini-light-pill {

    display: inline-flex;

    align-items: center;

    gap: 0.25rem;

    padding: 0.1rem 0.45rem;

    border-radius: 999px;

    font-size: 0.65rem;

    font-weight: 500;

    line-height: 1.2;

    background-color: #f8f9fa;

    border: 1px solid #d3d6d8;

    color: #636464;

    white-space: nowrap;
}

/*  --------------- */

.progress-bar-passation {
  height: 100%;
  /* background: linear-gradient(90deg, #4a90e2, #007bff); ORIGINAL */
  /* background: linear-gradient(135deg, #246bff , #7c83ff); BLEU-VIOLET FIN */
  /* background: linear-gradient(135deg, #00970d91 , #00e913); VERTE VERTE */
  background: linear-gradient(135deg, #00afc6ff , #00e913);
  
  border-radius: 8px;
  transition: width 0.45s ease;  /* animation fluide */
}

.bg-answer-subtle{
  background-color:#ddeaff;
}

.answer-btn{

    border:none;

    /* border-radius:16px; */

    /* padding:18px; */

    /* width:100%; */

    text-align:left;

    font-weight:600;

    transition:.15s;

    background-color:#f8fafc;

    border: 1px solid #f8fafc;
}

.answer-btn.on{

    transition:.15s;

    background: linear-gradient(135deg, #246bff , #7c83ff);

    color: white;

    border: 1px solid #f8fafc;
}

.answer-btn.off{

    transition:.15s;

    background-color:#f8fafc;

    border: 1px solid #f8fafc;
}

.answer-btn:hover{

    /* transform:translateY(-2px); */
/* box-shadow:
        0 8px 20px rgba(0,0,0,.08); */
    box-shadow:
        0 8px 20px rgba(0,0,0,.08);
    background-color:#f8fafc;
    /* color: black; */
    border: 1px solid #3971ff;
}

.answer-btn.selected{

    outline:3px solid #2563EB;
    background-color: #7c83ff;
    /* background: linear-gradient(135deg,#246bff , #7c83ff); */
    
    /* background-color:#3971ff; 
    background: linear-gradient(135deg, #7c83ff, #246bff);*/
}


/* ========================================
   TEXTAREA LOCK BADGE
======================================== */

.textarea-lock-badge {

    position: absolute;

    top: -10px;

    right: -10px;

    z-index: 20;

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    color: #6c757d;

    transition:
        color .2s,
        transform .15s;
}

.textarea-lock-badge:hover {

    background: rgba(
        255,
        255,
        255,
        0.95
    );

    transform: scale(1.08);
}

.textarea-lock-badge i {

    font-size: 0.9rem;
}

.textarea-lock-badge.locked {

    color: #dc3545;
}

.textarea-lock-badge.unlocked {

    color: #198754;
}

/* ========================================
   TEXTAREA VERROUILLÉ
======================================== */

.question-textarea-locked_v1 {

    background-color:
        rgba(
            108,
            117,
            125,
            0.04
        ) !important;

    color:
        #495057 !important;

    border-color:
        #adb5bd !important;
}

.question-textarea-locked {

    background-color:
        rgba(
            13,
            110,
            253,
            0.05
        ) !important;

    border-color:
        rgba(
            13,
            110,
            253,
            0.25
        ) !important;

    color:
        #002b99 !important;
}

.question-textarea-locked_good {

    background: #ddeaff !important;

    font-size: normal;

    border-color:#809dd6 !important;

    color:#1a4e7c  !important; /* #6c757d */

}

/* Classe utilisée pour afficher les textes avec les retours chariots */
.preserve-lines {

    white-space: pre-line;
}


/* =========================
   TABLE PASSATIONS
========================= */

.severity-table {
  font-size: 0.82rem;

  border-collapse: separate;
  border-spacing: 0;
}

.severity-table thead th {

  font-size: 0.7rem;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  font-weight: 600;

  color: #36537b;

  background: #f7faff;

  /* border-bottom: 1px solid #dfe8f5; */

  padding: 0.3rem 0.3rem;
}

.severity-table tbody td {

  padding: 0.42rem 0.65rem;

  /* border-bottom: 1px solid #edf2f9; */

  vertical-align: middle;

  /* color: #334155; */
}

.severity-table tbody tr {

  transition:
    background 0.12s ease,
    transform 0.08s ease;
}

.severity-table tbody tr:hover {

  background: #f4f8ff;

  cursor: pointer;
}


/*
PSY-MINI-BADGE
EXEMPLE : Mettre 'psy-mini-badge level2'
*/

.psy-badge {
    display: inline-flex;
    align-items: center;
    padding: .125rem .625rem;
    border-radius: 9999px;
    font-family: var(--font-dm-sans), system-ui, sans-serif;
    font-size: .75rem;
    font-weight: 600;
}

.psy-big-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .8rem;
    border-radius: 9999px;
    font-family: var(--font-dm-sans), system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.psy-mini-badge {

    font-family: var(--font-dm-sans), system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    padding: .125rem .625rem;
    border-radius: 9999px;
    font-size: .6rem;
    font-weight: 400;

}

.psy-mini-pill {

    font-family: var(--font-dm-sans), system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    padding: .125rem .625rem;
    border-radius: 9999px;
    font-size: .6rem;
    font-weight: 400;
    
    /* background: #f0fdf4; */
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* NO-LEVEL */
.nolevel {

    background: #f8fafc !important;
    background-opacity: .4;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

/* double couleur et fond invisible */
.levelx {
    /* background: #f8fafc !important; */
    color: #1a109b !important;
    border: 2px solid #0074ff;
}

/* level-light : bleu léger sur couche blanche très transparente */
.level-light {
    background: #ffffff59 !important;
    color: #2457d6d9 !important;
    border: 1px solid #246bffa1;
}

/* Gray */
.levelg {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

/* levelnb : noir et blanc */
.levelnb {
    background: white !important;
    color: black !important;
    border: 1px solid black;
}

/* levelv : violet */
.levelv {

    background: #f5f3ff !important;
    color: #6d28d9 !important;
    border: 1px solid #ddd6fe;
}

/* 0 - Très faible / Normatif */
.level0 {

    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
}

/* 1 - Faible */
.level1 {

    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0;
}

/* 2 - Léger */
.level2 {

    background: #ecfeff !important;
    color: #0f766e !important;
    border: 1px solid #a5f3fc;
}

/* 3 - Modéré */

.level3 {

    background: #fefce8 !important;
    color: #a16207 !important;
    border: 1px solid #fde68a;
}

/* 4 - Modéré à élevé */

.level4 {

    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74;
}

/* 5 - Élevé */

.level5 {

    background: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1px solid #fda4af;
}

/* 6 - Très élevé */

.level6 {

    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5;
}

/* 7 - Extrêmement élevé */

.level7 {

    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #f87171;
}
/* ========================================
   SUCCESS (VERT)
======================================== */

.psy-badge-success {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #f0fdf4;

    color: #15803d;

    border: 1px solid #bbf7d0;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   PRIMARY (BLEU)
======================================== */

.psy-badge-primary {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #eff6ff;

    color: #1d4ed8;

    border: 1px solid #bfdbfe;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   INFO (CYAN)
======================================== */

.psy-badge-info {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #ecfeff;

    color: #0f766e;

    border: 1px solid #a5f3fc;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   PURPLE (VIOLET)
======================================== */

.psy-badge-purple {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #f5f3ff;

    color: #6d28d9;

    border: 1px solid #ddd6fe;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   PINK (ROSE)
======================================== */

.psy-badge-pink {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #fdf2f8;

    color: #be185d;

    border: 1px solid #fbcfe8;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   WARNING (JAUNE)
======================================== */

.psy-badge-warning {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #fefce8;

    color: #a16207;

    border: 1px solid #fde68a;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   ORANGE
======================================== */

.psy-badge-orange {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #fff7ed;

    color: #c2410c;

    border: 1px solid #fdba74;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   DANGER (ROUGE)
======================================== */

.psy-badge-danger {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #fef2f2;

    color: #b91c1c;

    border: 1px solid #fecaca;

    font-size: .75rem;
    font-weight: 600;
}

/* ========================================
   NEUTRAL (GRIS)
======================================== */

.psy-badge-neutre {

    font-family: var(--font-dm-sans), system-ui, sans-serif;

    display: inline-flex;
    align-items: center;

    padding: .125rem .625rem;

    border-radius: 9999px;

    background: #f8fafc;

    color: #475569;

    border: 1px solid #cbd5e1;

    font-size: .75rem;
    font-weight: 600;
}

/*
.psy-badge-success,
.psy-badge-primary,
.psy-badge-warning,
.psy-badge-orange,
.psy-badge-danger {

    width: 14px;

    height: 14px;

    padding: 0;

    border-radius: 999px;

    font-size: 0;
}
*/

/* Tableau d'interpretation avec les plages de scores bruts pour PassationAnalysis */
.interpretation-grid {

    table-layout: fixed;
}

.interpretation-grid td {

    vertical-align: middle;

    padding: .4rem;
}

.interpretation-grid .table-primary {

    box-shadow:
        inset 0 0 0 2px
        var(--bs-primary);
}

/* Passation partagée (sharedPassationView) */
.shared-passation-container {

    max-width: 900px;

    margin: 0 auto;

    padding: 2rem 1rem;
}

.activated-symptoms-card {

    max-width: 320px;
}

/* Point coloré pour la couleur du groupe de référence dans QNormsEditor */
.reference-group-color-dot {

    width: 14px;
    height: 14px;

    border-radius: 50%;

    display: inline-block;

    border: 1px solid #ccc;

    margin-right: 8px;

    vertical-align: middle;
}

/* CHARTS */
.chart-subtitle {

  font-size: 0.8rem;

  color: #31466f;

  margin-left: 20px;

}
.chart-commentary {

  font-size: 0.7rem;

  color: #31466f;

  margin-left: 20px;

}

.variable-groupe-text{
  background-color: #f4f4ff !important;
  color: #31466f !important;
}
