.lcf-select{
    background: #faf8f5;    
}




/* ─────────────────────────────────────────────────────────────
   lc-select-multi  —  une question, plusieurs sous-questions
   partageant la même échelle de réponse (les libellés de
   l'échelle ne sont affichés qu'une seule fois, en en-tête).
   Conçu pour s'aligner avec la classe .stepper du composant select.
   ───────────────────────────────────────────────────────────── */
.lcf-select-multi {
    --label-col: 30%;     /* largeur de la colonne des sous-questions */
    display: flex;
    flex-direction: column;
}

/* En-tête : libellés de l'échelle, affichés une seule fois */
.lcf-select-multi-head {
    display: flex;
    align-items: flex-end;
    min-height: 42px;
    margin-bottom: 4px;
}

/* Colonne de gauche (libellé de la sous-question) — partagée par
   l'en-tête et chaque ligne pour garantir l'alignement vertical. */
.lcf-select-multi-rowlabel {
    flex: 0 0 var(--label-col);
    max-width: var(--label-col);
    box-sizing: border-box;
    padding-right: 12px;
    font-size: 0.95rem;
    color: #333;
}

/* Zone de l'échelle : même géométrie que le stepper
   (padding 0 22px, points/cellules de 20px répartis en space-between)
   pour que chaque libellé tombe pile au-dessus du point correspondant. */
.lcf-select-multi-scale {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
    padding-right: 25px;
    margin-bottom: 10px;
    margin-left: -5px;    
    box-sizing: border-box;
}
.lcf-select-multi-scale-cell {
    flex: 0 0 20px;       /* = --dot du stepper */
    width: 20px;
    position: relative;
    justify-content: start;
}
.lcf-select-multi-scale-cell > i {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-21%, -20px) rotate(-40deg);
    width: 88px;          /* largeur fixe centrée → autorise le retour à la ligne */
    font-style: normal;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: left;
    color: #666;
}


.lcf-select-multi .left-legend[notItem]{
    margin-top: -20px;
    margin-bottom: 5px;
    transform: rotate(-90deg) translate(-75px, -50px);
    width: 100px;
    text-align: right;
}


/* Une ligne par sous-question : wrapper colonne → [inner] + [follow éventuel] */
.lcf-select-multi-row {
    display: flex;
    flex-direction: column;
}

/* on met un fond une ligne sur deux pour les élément lcs-item*/
/*.lcf-select-multi-row:nth-child(even) {*/
.lcf-select-multi-row:nth-child(even of .lcs-item) {
    background: #fdf8f8;
}

/* Contenu principal de la ligne : [libellé] [select] */
.lcf-select-multi-row-inner {
    display: flex;
    align-items: center;
    padding-right: 20px;
}


.lcf-select-multi-select {
    flex: 1;
    min-width: 0;
}



/* Cellule « type quelconque » (text, number, select, lc-select, …) :
   un vrai item de questionnaire rendu sans son libellé ni son cadre. */
.lcf-select-multi-itemcell {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: none;
    margin: 0;
    padding: 0;
}
.lcf-select-multi-itemcell.invalid {
    border: 1px solid #d33 !important;
    border-radius: 6px;
    background: #fff5f5;
}
.lcf-select-multi-itemcell > .lcf-control {
    padding: 4px 0;
}
.lcf-select-multi-itemcell .lcf-input,
.lcf-select-multi-itemcell .lcf-textarea,
.lcf-select-multi-itemcell select {
    width: 100%;
    box-sizing: border-box;
}

/* Stepper compact dans une ligne : pas de marge horizontale
   (l'alignement avec l'en-tête repose sur padding 0 22px), hauteur réduite. */
.lcf-select-multi .lcs-main.stepper {
    flex: 1;
    height: 34px;
    margin: 6px 0;
    margin-right: 10px;
    padding: 0 5px;
}

/* Les libellés des items (Non, Rarement, …) sont déjà en en-tête :
   on les masque à l'intérieur des points pour ne pas les répéter. */
.lcf-select-multi .lcs-main.stepper .lcs-item > .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Tant qu'aucune réponse n'est choisie, on masque la pastille du slider
   (sinon un point paraîtrait sélectionné à tort). */
.lcf-select-multi .lcs-main.stepper:not(.full) .lcs-slider {
    opacity: 0;
}

/* ─────────────────────────────────────────────────────────────
   Validation granulaire : ne pas peindre tout l'item en rouge,
   seulement les sous-questions (lignes) restées sans réponse.
   ───────────────────────────────────────────────────────────── */
.lcf-item[type="lc-select-multi"].invalid {
    border-color: #e3e3e3;
    background: #fff;
}
.lcf-select-multi-row.invalid .lcf-select-multi-rowlabel,
.lcf-select-multi-follow.invalid .lcf-select-multi-rowlabel {
    color: #d33;
    font-weight: 600;
}
.lcf-select-multi-row.invalid .lcf-select-multi-rowlabel::after,
.lcf-select-multi-follow.invalid .lcf-select-multi-rowlabel::after {
    content: " *";
    color: #d33;
}
/* Points en rouge sur la ligne manquante (stepper) */
.lcf-select-multi-row.invalid .lcs-main.stepper .lcs-item,
.lcf-select-multi-follow.invalid .lcs-main.stepper .lcs-item {
    /*border-color: #e7a3a3;*/
    box-shadow: inset 0 0 0 var(--bar-height) #e7a3a3;
}

/* ─────────────────────────────────────────────────────────────
   Sous-question dynamique (« follow ») : apparaît sous la
   sous-question quand une valeur déclenchante est sélectionnée.
   ───────────────────────────────────────────────────────────── */
.lcf-select-multi-follow {
    display: flex;
    align-items: center;
    padding-right: 20px;
    padding-left: 24px;          /* indentation sous la sous-question */
    margin: 0 0 6px;
}
.lcf-select-multi-follow.is-hidden { display: none; }

.lcf-select-multi-follow-label {
    flex: 0 0 calc(var(--label-col) - 24px);
    max-width: calc(var(--label-col) - 24px);
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
}

.lcf-select-multi-follow-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* En-tête de l'échelle du follow : libellés horizontaux et compacts
   (l'échelle du follow diffère de l'échelle principale partagée). */
.lcf-select-multi-follow .lcf-select-multi-scale {
    min-height: 16px;
    margin-bottom: 2px;
}
.lcf-select-multi-follow .lcf-select-multi-scale-cell > i {
    transform: translateX(-50%);
    bottom: 0;
    top: auto;
    left: 50%;
    width: 80px;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.1;
}

/* ─────────────────────────────────────────────────────────────
   En-tête d'échelle fixe (clone position:fixed affiché par JS
   quand la liste dépasse la hauteur du viewport).
   Le fond et la largeur sont calculés dynamiquement par JS.
   ───────────────────────────────────────────────────────────── */
.lcf-select-multi-head--fixed[hidden]{display:none;}
.lcf-select-multi-head--fixed {
    position: fixed;
    z-index: 101;          /* sur .lcf-item-head--fixed (z-index:100) */
    box-sizing: border-box;
    margin-top:-10px;
    margin-bottom: 0;     /* annule le margin-bottom:4px de .lcf-select-multi-head */
}

.lcf-select-multi-head--fixed .lcf-select-multi-scale{
    position:relative;
}
.lcf-select-multi-head--fixed .lcf-select-multi-scale:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -25px;
    right: -37px;
    height: 36px;
    background: #FFF;
    box-shadow: 1px 5px 5px rgba(0, 0, 0, .25);
    border-radius: 0 0 12px 12px;
}


