/* ==========================================================
 * Eltéor - Tableau de bord marchand
 * ========================================================== */

/* ----------------------------------------------------------
 * En-tête principal du tableau de bord
 * ---------------------------------------------------------- */

.elteor-entete-tableau-bord {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/*
 * Partie gauche :
 * sur-titre + nom de l'entreprise.
 */
.elteor-entete-tableau-bord__entreprise {
    min-width: 0;
}


/*
 * Site actuellement sélectionné.
 *
 * Sur desktop, il vient se placer à droite
 * du titre principal.
 */
.elteor-entete-tableau-bord__site {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;

    flex: 0 0 auto;

    font-size: 15px;
    line-height: 1.4;

    color: #8f561c;

    white-space: nowrap;
}


/*
 * Tous les éléments du contexte site
 * reprennent le cuivre foncé Eltéor.
 */
.elteor-entete-tableau-bord__site-label,
.elteor-entete-tableau-bord__site-nom,
.elteor-entete-tableau-bord__site-domaine {
    color: #8f561c;
}


/*
 * Le nom du site reste le point fort.
 */
.elteor-entete-tableau-bord__site-nom {
    font-weight: 700;
}

/* ----------------------------------------------------------
 * Graphique compact - Performance de collecte
 * ---------------------------------------------------------- */

.elteor-entete-tableau-bord__principal {
    flex: 1 1 auto;
    min-width: 0;
}

.elteor-graphique-collecte {
    flex: 0 1 520px;

    width: 520px;
    max-width: 100%;
    margin-right: 24px;

    padding: 18px 22px 14px;

    background: #ffffff;

    border: 1px solid rgba(15, 39, 66, 0.10);
    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(15, 39, 66, 0.025);
}


.elteor-graphique-collecte__entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


.elteor-graphique-collecte__titre {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;

    color: #0f2742;
}


.elteor-graphique-collecte__resume {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 4px;

    font-size: 11px;
    line-height: 1.4;

    color: rgba(15, 39, 66, 0.55);
}


.elteor-graphique-collecte__resume strong {
    font-weight: 700;

    color: #0f2742;
}

/* Aire douce sous la courbe principale */

.elteor-graphique-collecte__aire {
    stroke: none;
}

.elteor-graphique-collecte__aire--demandes {
    fill: rgba(200, 135, 70, 0.05);
}


/* Légende */

.elteor-graphique-collecte__legende {
    display: flex;
    align-items: center;
    gap: 13px;

    padding-top: 2px;

    font-size: 10px;
    line-height: 1.3;

    color: rgba(15, 39, 66, 0.58);

    white-space: nowrap;
}


.elteor-graphique-collecte__legende span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


.elteor-graphique-collecte__pastille {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;
}


.elteor-graphique-collecte__pastille--demandes {
    background: #c88746;
}


.elteor-graphique-collecte__pastille--recoltes {
    background: #102a43;
}


/* Zone SVG */

.elteor-graphique-collecte__graphique {
    width: 100%;

    margin-top: 9px;
}


.elteor-graphique-collecte__svg {
    display: block;

    width: 100%;
    height: 105px;

    overflow: visible;
}


/* Guides */

.elteor-graphique-collecte__guide {
    stroke: rgba(15, 39, 66, 0.045);
    stroke-width: 1;
    stroke-dasharray: 3 6;

    vector-effect: non-scaling-stroke;
}

/* Courbes */

.elteor-graphique-collecte__courbe {
    fill: none;

    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}

.elteor-graphique-collecte__courbe--demandes {
    stroke: #c88746;
}


.elteor-graphique-collecte__courbe--recoltes {
    stroke: #102a43;
}


/* Points */

.elteor-graphique-collecte__point {
    stroke: #ffffff;
    stroke-width: 1.25;

    vector-effect: non-scaling-stroke;
}


.elteor-graphique-collecte__point--demandes {
    fill: #c88746;
}


.elteor-graphique-collecte__point--recoltes {
    fill: #102a43;
}


/* Libellés mois */

.elteor-graphique-collecte__mois-svg {
    fill: rgba(15, 39, 66, 0.46);

    font-family: inherit;
    font-size: 9px;
}

/* ----------------------------------------------------------
 * Entreprise + consommation mensuelle
 * ---------------------------------------------------------- */

.elteor-header-entreprise {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.elteor-header-entreprise__identite {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.elteor-header-entreprise__label {
    font-size: 15px;
    line-height: 1.4;
    color: #0f2742;
}

.elteor-header-entreprise__nom {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #0f2742;
}

/* ----------------------------------------------------------
 * État de connexion de la boutique sélectionnée
 * ---------------------------------------------------------- */

.elteor-header-connexion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;

    text-decoration: none;

    transition:
        opacity 0.18s ease,
        color 0.18s ease;
}

.elteor-header-connexion--deconnectee {
    color: #8f561c;
}

.elteor-header-connexion__point {
    display: inline-block;

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #c88746;
}

.elteor-header-connexion:hover,
.elteor-header-connexion:focus {
    color: #6f4114;
    text-decoration: underline;
}


/* Compteur */

.elteor-header-consommation {
    width: 360px;
    max-width: 100%;
}

.elteor-header-consommation__ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 5px;

    font-size: 12px;
    line-height: 1.35;

    color: rgba(15, 39, 66, 0.66);
}

.elteor-header-consommation__ligne strong {
    font-weight: 700;
    color: #0f2742;
}


/* Barre */

.elteor-header-consommation__barre {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 5px;

    background: rgba(15, 39, 66, 0.10);

    border-radius: 999px;
}

.elteor-header-consommation__barre span {
    display: block;

    width: 0;
    height: 100%;

    background: #102a43;

    border-radius: inherit;

    transition: width 0.3s ease;
}


/* Alerte à partir de 80 % */

.elteor-header-consommation--alerte
.elteor-header-consommation__barre span {
    background: #c88746;
}

.elteor-header-consommation--alerte
.elteor-header-consommation__ligne {
    color: #8f561c;
}


/* Quota inclus dépassé */

.elteor-header-consommation--depasse
.elteor-header-consommation__barre span {
    background: #c88746;
}

.elteor-header-consommation--depasse
.elteor-header-consommation__ligne {
    color: #8f561c;
}


/* Message complémentaire */

.elteor-header-consommation__message {
    margin-top: 5px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;

    color: #8f561c;
}

/* ----------------------------------------------------------
 * Responsive de l'en-tête
 * ---------------------------------------------------------- */

@media (max-width: 767px) {

    .elteor-entete-tableau-bord {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .elteor-entete-tableau-bord__site {
        justify-content: flex-start;

        padding-bottom: 0;

        white-space: normal;
    }

    .elteor-graphique-collecte {
        flex: 0 0 auto;
        width: 100%;
    }

    .elteor-graphique-collecte__entete {
        flex-direction: column;
        gap: 8px;
    }

    .elteor-graphique-collecte__svg {
        height: 115px;
    }

    .elteor-header-consommation {
        width: 100%;
    }
    .elteor-header-consommation__message {
        white-space: normal;
    }
} 

.elteor-dashboard {
    display: flex;
    flex-direction: column;
    gap: 38px;

    margin-top: 26px;
}


/* ----------------------------------------------------------
 * Sections
 * ---------------------------------------------------------- */

.elteor-dashboard__entete-section {
    margin-bottom: 16px;
}

.elteor-dashboard__titre-section {
    margin: 0;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;

    color: #0f2742;
}

.elteor-dashboard__description-section {
    margin: 5px 0 0;

    font-size: 14px;
    line-height: 1.5;

    color: rgba(15, 39, 66, 0.58);
}

/* ----------------------------------------------------------
 * Respiration entre les grandes sections du dashboard
 * ---------------------------------------------------------- */

.elteor-dashboard__section + .elteor-dashboard__section {
    margin-top: 30px;
}


/* ----------------------------------------------------------
 * Grilles KPI
 * ---------------------------------------------------------- */

.elteor-dashboard__grille {
    display: grid;
    gap: 18px;
}

.elteor-dashboard__grille--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.elteor-dashboard__grille--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ----------------------------------------------------------
 * Carte KPI
 * ---------------------------------------------------------- */

.elteor-kpi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-height: 145px;
    padding: 24px 26px;

    color: #0f2742;
    text-decoration: none;

    background: #ffffff;

    border: 1px solid rgba(15, 39, 66, 0.10);
    border-radius: 16px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

a.elteor-kpi {
    cursor: pointer;
}

a.elteor-kpi:hover {
    color: #0f2742;
    text-decoration: none;

    transform: translateY(-2px);

    border-color: rgba(15, 39, 66, 0.18);

    box-shadow:
        0 8px 22px rgba(15, 39, 66, 0.07);
}


/* Cartes orientées action */

.elteor-kpi--action {
    border-color: rgba(184, 112, 38, 0.22);
    background: rgba(184, 112, 38, 0.025);
}

.elteor-kpi--action:hover {
    border-color: rgba(184, 112, 38, 0.48);

    box-shadow:
        0 8px 22px rgba(184, 112, 38, 0.09);
}


/* ----------------------------------------------------------
 * Contenu KPI
 * ---------------------------------------------------------- */

.elteor-kpi__libelle {
    display: block;

    margin-bottom: 12px;

    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

.elteor-kpi__valeur {
    display: inline-block;

    font-size: 38px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.025em;
}

.elteor-kpi__complement {
    display: block;

    margin-top: 9px;

    font-size: 13px;
    line-height: 1.45;

    color: rgba(15, 39, 66, 0.58);
}

.elteor-kpi__note {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.elteor-kpi__note-max {
    font-size: 15px;
    font-weight: 500;

    color: rgba(15, 39, 66, 0.58);
}

/* ----------------------------------------------------------
 * KPI - Icônes et infobulles
 * ---------------------------------------------------------- */

/*
 * En-tête interne de la carte.
 *
 * Permet de conserver le libellé à gauche
 * et une petite aide visuelle à droite.
 */
.elteor-kpi__entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    width: 100%;
    margin-bottom: 12px;
}


/*
 * Le libellé n'a plus besoin de sa marge basse
 * lorsqu'il se trouve dans l'en-tête de la carte.
 */
.elteor-kpi__entete .elteor-kpi__libelle {
    margin-bottom: 0;
}


/*
 * Regroupe le libellé et son éventuelle infobulle.
 */
.elteor-kpi__libelle-groupe {
    display: flex;
    align-items: center;
    gap: 7px;

    min-width: 0;
}


/*
 * Petite icône métier située à droite de la carte.
 *
 * Elle reste volontairement discrète :
 * son rôle est d'aider au balayage visuel,
 * pas de concurrencer la valeur du KPI.
 */
.elteor-kpi__icone {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    color: rgba(15, 39, 66, 0.48);

    background: rgba(15, 39, 66, 0.045);
    border-radius: 9px;
}

.elteor-kpi__icone svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/*
 * Icône d'information.
 */
.elteor-infobulle {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    cursor: help;

    outline: none;
}

.elteor-infobulle__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    color: rgba(15, 39, 66, 0.54);

    border: 1px solid rgba(15, 39, 66, 0.25);
    border-radius: 50%;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.elteor-infobulle:hover .elteor-infobulle__icone,
.elteor-infobulle:focus .elteor-infobulle__icone {
    color: #0f2742;

    background: rgba(15, 39, 66, 0.055);
    border-color: rgba(15, 39, 66, 0.48);
}


/*
 * Bulle explicative.
 */
.elteor-infobulle__contenu {
    position: absolute;
    z-index: 20;

    bottom: calc(100% + 10px);
    left: 50%;

    width: 260px;
    padding: 11px 13px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;

    color: #ffffff;

    background: #0f2742;
    border-radius: 8px;

    box-shadow:
        0 8px 24px rgba(15, 39, 66, 0.18);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translate(-50%, 4px);

    transition:
        opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.16s ease;
}


/*
 * Petit triangle sous l'infobulle.
 */
.elteor-infobulle__contenu::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 50%;

    width: 8px;
    height: 8px;

    background: #0f2742;

    transform: translate(-50%, -4px) rotate(45deg);
}


/*
 * Affichage souris + clavier.
 */
.elteor-infobulle:hover .elteor-infobulle__contenu,
.elteor-infobulle:focus .elteor-infobulle__contenu,
.elteor-infobulle:focus-within .elteor-infobulle__contenu {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}


/*
 * Un très léger traitement spécifique aux cartes de collecte.
 *
 * Pas de couleur supplémentaire : on conserve exactement
 * la grammaire visuelle générale du dashboard.
 */
.elteor-kpi--collecte {
    justify-content: flex-start;
}


/*
 * Sur mobile, la bulle reste dans la largeur disponible.
 */
@media (max-width: 767px) {

    .elteor-infobulle__contenu {
        left: 0;

        width: min(250px, calc(100vw - 56px));

        transform: translate(0, 4px);
    }

    .elteor-infobulle__contenu::after {
        left: 8px;

        transform: translate(0, -4px) rotate(45deg);
    }

    .elteor-infobulle:hover .elteor-infobulle__contenu,
    .elteor-infobulle:focus .elteor-infobulle__contenu,
    .elteor-infobulle:focus-within .elteor-infobulle__contenu {
        transform: translate(0, 0);
    }
}


/*
 * Un très léger traitement spécifique aux cartes de collecte.
 *
 * Pas de couleur supplémentaire : on conserve exactement
 * la grammaire visuelle générale du dashboard.
 */
.elteor-kpi--collecte {
    justify-content: flex-start;
}


/*
 * Sur mobile, la bulle reste dans la largeur disponible.
 */
@media (max-width: 767px) {

    .elteor-infobulle__contenu {
        left: 0;

        width: min(250px, calc(100vw - 56px));

        transform: translate(0, 4px);
    }

    .elteor-infobulle__contenu::after {
        left: 8px;

        transform: translate(0, -4px) rotate(45deg);
    }

    .elteor-infobulle:hover .elteor-infobulle__contenu,
    .elteor-infobulle:focus .elteor-infobulle__contenu,
    .elteor-infobulle:focus-within .elteor-infobulle__contenu {
        transform: translate(0, 0);
    }
}


/* ----------------------------------------------------------
 * Suivi compact des statuts
 * ---------------------------------------------------------- */

.elteor-dashboard__suivi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(15, 39, 66, 0.10);
    border-radius: 16px;
}

.elteor-dashboard__statut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-height: 76px;
    padding: 18px 22px;

    color: #0f2742;
    text-decoration: none;

    border-right: 1px solid rgba(15, 39, 66, 0.08);
}

.elteor-dashboard__statut:last-child {
    border-right: 0;
}

a.elteor-dashboard__statut {
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

a.elteor-dashboard__statut:hover {
    color: #0f2742;
    text-decoration: none;

    background: rgba(15, 39, 66, 0.025);
}

.elteor-dashboard__statut-libelle {
    font-size: 14px;
    font-weight: 600;
}

.elteor-dashboard__statut-valeur {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}


/* ----------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .elteor-dashboard__grille--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elteor-dashboard__grille--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elteor-dashboard__suivi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elteor-dashboard__statut:nth-child(2) {
        border-right: 0;
    }

    .elteor-dashboard__statut:nth-child(-n+2) {
        border-bottom: 1px solid rgba(15, 39, 66, 0.08);
    }
}


@media (max-width: 767px) {

    .elteor-dashboard {
        gap: 30px;
    }

    .elteor-dashboard__grille--3 {
        grid-template-columns: 1fr;
    }

    .elteor-dashboard__grille--4 {
        grid-template-columns: 1fr;
    }

    .elteor-kpi {
        min-height: 125px;
        padding: 21px 22px;
    }

    .elteor-kpi__valeur {
        font-size: 34px;
    }

    .elteor-dashboard__suivi {
        grid-template-columns: 1fr;
    }

    .elteor-dashboard__statut {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 39, 66, 0.08);
    }

    .elteor-dashboard__statut:last-child {
        border-bottom: 0;
    }
}

/* ==========================================================
 * ELTÉOR - TABLEAU DE BORD MARCHAND
 * Bloc "Avis à traiter"
 * ========================================================== */


/*
 * Conteneur principal du bloc.
 * Ajoute de l'espace au-dessus afin de bien séparer
 * les avis à traiter des cartes KPI.
 */
.elteor-bloc-avis-a-traiter {
    margin-top: 34px;
}


/*
 * En-tête du bloc.
 * Prépare une structure flexible pour pouvoir ajouter
 * plus tard une action globale à droite si nécessaire.
 */
.elteor-bloc-avis-a-traiter__entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}


/*
 * Titre principal du bloc "Avis à traiter".
 * Taille volontairement inférieure au titre principal
 * du tableau de bord.
 */
.elteor-bloc-avis-a-traiter__titre {
    margin: 0;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}


/*
 * Sous-titre indiquant le nombre d'avis en attente.
 * La couleur est volontairement atténuée afin
 * de ne pas concurrencer le titre principal.
 */
.elteor-bloc-avis-a-traiter__sous-titre {
    margin: 6px 0 0;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;

    opacity: 0.68;
}


/*
 * Liste contenant les différents avis à traiter.
 * Chaque avis sera présenté sous forme de carte.
 */
.elteor-bloc-avis-a-traiter__liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}


/*
 * Carte individuelle représentant un avis à traiter.
 * On conserve le même langage graphique que les KPI :
 * fond blanc, bordure légère et angles arrondis.
 */
.elteor-avis-a-traiter {
    padding: 22px 24px;

    background: #ffffff;
    border: 1px solid rgba(15, 39, 66, 0.10);
    border-radius: 16px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/*
 * Effet léger au survol de la carte.
 * L'effet reste volontairement discret car la carte
 * entière n'est pas un bouton.
 */
.elteor-avis-a-traiter:hover {
    transform: translateY(-1px);

    border-color: rgba(15, 39, 66, 0.16);

    box-shadow:
        0 6px 20px rgba(15, 39, 66, 0.05);
}


/*
 * Première ligne de la carte.
 * Place la note à gauche et la date à droite.
 */
.elteor-avis-a-traiter__haut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 10px;
}


/*
 * Conteneur des étoiles.
 * Les étoiles sont alignées horizontalement
 * avec un léger espacement entre elles.
 */
.elteor-avis-a-traiter__note {
    display: flex;
    align-items: center;
    gap: 2px;

    line-height: 1;
}


/*
 * Étoile correspondant à une note obtenue.
 * Utilise une teinte cuivre/or cohérente
 * avec l'identité visuelle Eltéor.
 */
.elteor-avis-a-traiter__etoile {
    font-size: 18px;
    line-height: 1;

    color: #FBBC04
}


/*
 * Étoile non remplie.
 * Elle conserve la même forme mais devient
 * beaucoup plus discrète.
 */
.elteor-avis-a-traiter__etoile--vide {
    color: rgba(15, 39, 66, 0.15);
}


/*
 * Date de publication de l'avis.
 * Elle constitue une information secondaire,
 * donc affichée plus petite et plus discrète.
 */
.elteor-avis-a-traiter__date {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    opacity: 0.58;
}


/*
 * Nom du client ayant publié l'avis.
 * Le nom reste visible mais ne doit pas concurrencer
 * le titre de l'avis.
 */
.elteor-avis-a-traiter__client {
    margin-bottom: 5px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    opacity: 0.75;
}


/*
 * Titre de l'avis.
 * Taille adaptée à une carte de dashboard afin
 * d'éviter les titres beaucoup trop imposants.
 */
.elteor-avis-a-traiter__titre {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}


/*
 * Texte de l'avis.
 * La largeur et l'interligne favorisent une lecture
 * rapide dans le contexte du tableau de bord.
 */
.elteor-avis-a-traiter__commentaire {
    margin: 0;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;

    opacity: 0.82;
}


/*
 * Zone contenant les actions disponibles
 * pour l'avis concerné.
 */
.elteor-avis-a-traiter__actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 18px;
}


/*
 * Bouton permettant de répondre à l'avis.
 * Le cuivre sert ici de couleur d'action,
 * tout en conservant un rendu sobre.
 */
.elteor-avis-a-traiter__bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 7px 14px;

    color: #ffffff!important;
    background: #b87026;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

/*
 * État au survol du bouton "Répondre".
 */
.elteor-avis-a-traiter__bouton:hover {
    color: #ffffff;

    opacity: 0.88;

    transform: translateY(-1px);
}


/*
 * Bloc affiché lorsqu'aucun avis
 * ne nécessite actuellement de réponse.
 */
.elteor-bloc-avis-a-traiter__vide {
    padding: 22px 24px;

    background: #ffffff;
    border: 1px solid rgba(15, 39, 66, 0.10);
    border-radius: 16px;
}


/*
 * Supprime la marge par défaut du paragraphe
 * dans l'état vide.
 */
.elteor-bloc-avis-a-traiter__vide p {
    margin: 0;
}


/* ==========================================================
 * RESPONSIVE - TABLETTE
 * ========================================================== */

@media (max-width: 1024px) {

    /*
     * Réduit légèrement les marges internes
     * des cartes sur tablette.
     */
    .elteor-avis-a-traiter {
        padding: 20px;
    }
}


/* ==========================================================
 * RESPONSIVE - MOBILE
 * ========================================================== */

@media (max-width: 767px) {

    /*
     * Réduit l'espace au-dessus du bloc
     * sur les petits écrans.
     */
    .elteor-bloc-avis-a-traiter {
        margin-top: 26px;
    }


    /*
     * Réduit légèrement le titre principal
     * du bloc sur mobile.
     */
    .elteor-bloc-avis-a-traiter__titre {
        font-size: 24px;
    }


    /*
     * Sur mobile, la note et la date peuvent
     * se placer sur deux lignes si nécessaire.
     */
    .elteor-avis-a-traiter__haut {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }


    /*
     * Réduit les marges internes
     * des cartes sur mobile.
     */
    .elteor-avis-a-traiter {
        padding: 18px;
    }
}

/*
 * Pied du bloc "Avis à traiter".
 * Contient le lien vers la future page
 * listant l'ensemble des avis en attente.
 */
.elteor-bloc-avis-a-traiter__pied {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}


/*
 * Lien permettant d'accéder à la liste complète
 * des avis nécessitant une action.
 */
.elteor-bloc-avis-a-traiter__voir-tout {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}


/*
 * État au survol du lien.
 * Le soulignement indique clairement
 * qu'il s'agit d'une navigation.
 */
.elteor-bloc-avis-a-traiter__voir-tout:hover {
    text-decoration: underline;
}

/**
 * Badge indiquant le type d'action
 * encore nécessaire sur un avis.
 */
.elteor-avis-a-traiter__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    margin: 8px 0 12px;
    padding: 6px 11px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

/**
 * Petit repère visuel circulaire.
 */
.elteor-avis-a-traiter__badge::before {
    content: '';

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: currentColor;
}

/**
 * Avis nécessitant encore
 * une décision de publication.
 */
.elteor-avis-a-traiter__badge--decision {
    color: #A65F16;
    background: #FFF5E9;
    border-color: #EBC99F;
}

/**
 * Avis déjà publié mais
 * n'ayant pas encore reçu de réponse.
 */
.elteor-avis-a-traiter__badge--reponse {
    color: #315F85;
    background: #F0F6FB;
    border-color: #C6D9E8;
}

/*
 * Cartes du tableau de bord
 * servant également de raccourcis.
 */
.elteor-indicateur--lien {
    color: inherit;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


.elteor-indicateur--lien:hover {
    color: inherit;
    text-decoration: none;

    transform: translateY(-2px);

    border-color: rgba(15, 39, 66, 0.18);

    box-shadow:
        0 8px 22px rgba(15, 39, 66, 0.07);
}


/*
 * La carte "Sans réponse" conserve
 * son accent cuivre au survol.
 */
.elteor-indicateur--action.elteor-indicateur--lien:hover {
    border-color: rgba(184, 112, 38, 0.55);

    box-shadow:
        0 8px 22px rgba(184, 112, 38, 0.10);
}
/* ==========================================================
 * ELTÉOR - INTÉGRATION DES AVIS PRODUITS AU DASHBOARD
 * ========================================================== */

/* ----------------------------------------------------------
 * Sous-groupes du bloc « À faire »
 * ---------------------------------------------------------- */

.elteor-dashboard__actions-groupes {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.elteor-dashboard__actions-groupe {
    padding: 20px;

    background: rgba(15, 39, 66, 0.018);
    border: 1px solid rgba(15, 39, 66, 0.07);
    border-radius: 18px;
}

.elteor-dashboard__sous-entete {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
}

.elteor-dashboard__sous-titre {
    margin: 0;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;

    color: #0f2742;
}

.elteor-dashboard__sous-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;

    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;

    color: rgba(15, 39, 66, 0.68);
    background: rgba(15, 39, 66, 0.055);
    border-radius: 999px;
}

.elteor-dashboard__sous-badge--produit {
    color: #8f561c;
    background: rgba(184, 112, 38, 0.10);
}


/* ----------------------------------------------------------
 * Cartes dédiées aux avis produits
 * ---------------------------------------------------------- */

.elteor-kpi--produit {
    border-color: rgba(184, 112, 38, 0.18);
}

.elteor-dashboard__section--produits .elteor-kpi--produit {
    background: rgba(184, 112, 38, 0.018);
}


/* ----------------------------------------------------------
 * Sélecteur Site / Produits du suivi des avis
 * ---------------------------------------------------------- */

.elteor-dashboard__suivi-conteneur {
    position: relative;
}

.elteor-dashboard__suivi-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.elteor-dashboard__suivi-selecteur {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin-bottom: 12px;
    padding: 4px;

    background: rgba(15, 39, 66, 0.055);
    border-radius: 12px;
}

.elteor-dashboard__suivi-selecteur label {
    min-width: 88px;
    padding: 8px 14px;

    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;

    color: rgba(15, 39, 66, 0.62);
    cursor: pointer;

    border-radius: 9px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#elteor-suivi-site:checked
~ .elteor-dashboard__suivi-selecteur
label[for="elteor-suivi-site"],
#elteor-suivi-produits:checked
~ .elteor-dashboard__suivi-selecteur
label[for="elteor-suivi-produits"] {
    color: #0f2742;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 39, 66, 0.08);
}

.elteor-dashboard__suivi--produits {
    display: none;
}

#elteor-suivi-produits:checked ~ .elteor-dashboard__suivi--site {
    display: none;
}

#elteor-suivi-produits:checked ~ .elteor-dashboard__suivi--produits {
    display: grid;
}


/* ----------------------------------------------------------
 * Responsive des nouveaux blocs
 * ---------------------------------------------------------- */

@media (max-width: 767px) {

    .elteor-dashboard__actions-groupe {
        padding: 16px;
    }

    .elteor-dashboard__sous-entete {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .elteor-dashboard__suivi-selecteur {
        display: flex;
        width: 100%;
    }

    .elteor-dashboard__suivi-selecteur label {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================================
 * ALERTE GLOBALE - BOUTIQUE NON CONNECTÉE
 * ========================================================== */

.elteor-alerte-connexion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
    padding: 16px 18px;

    border: 1px solid #edc98f;
    border-radius: 12px;

    background: #fff8ed;
}

.elteor-alerte-connexion__contenu {
    min-width: 0;
}

.elteor-alerte-connexion__titre {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;

    color: #865600;
}

.elteor-alerte-connexion__texte {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;

    color: #72552a;
}

.elteor-alerte-connexion__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-height: 40px;
    padding: 9px 15px;

    border-radius: 9px;

    background: #b87333;

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none !important;
    white-space: nowrap;
}

.elteor-alerte-connexion__action:hover,
.elteor-alerte-connexion__action:focus {
    background: #985c28;

    color: #ffffff !important;
    text-decoration: none !important;
}

.elteor-recuperation-carte .elteor-alerte-connexion {
    margin-top: 16px;
}

@media (max-width: 767px) {

    .elteor-alerte-connexion {
        flex-direction: column;
        align-items: stretch;
    }

    .elteor-alerte-connexion__action {
        width: 100%;
    }
}
