:root {
    --aprt8-bg-1: #1a1a1a;      /* Correspond à .apt-carte-produit */
    --aprt8-bg-2:  #49494975;     /* Correspond à .apt-prix-bouton, etc. */
    --aprt8-bouton_1:  #ff5100;
    --aprt8-accent_1:  #00c6ff;
    --aprt8-stars:  #ffdd00;
    --aprt8-positive:  #53fee1;
    --aprt8-negative:  #f44336;
}

/* --- Conteneur principal --- */
.aprt8-container {
    display: flex;
    flex-direction: column;
    font-family: "Inter", Arial, sans-serif;
    margin: 30px 0;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--aprt8-bg-1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Header (Score Global) --- */
.aprt8-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.aprt8-global-score {
    width: 100px;
    height: 90px;
    background: var(--aprt8-bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    border: 1px solid var(--aprt8-card-border);
}

.aprt8-global-score .score-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.aprt8-global-score .score-number {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
}

.aprt8-global-score .score-max {
    font-size: 16px;
    color: #ffffff;
}

/* Étoiles */
.aprt8-stars {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.aprt8-stars .star {
    font-size: 15px;
    color: #fff;
}

.aprt8-stars .star.filled {
    color: var(--aprt8-stars);
}

.aprt8-title {
    font-size: 25px;
    margin: 0;
    color: #fff;
}

.aprt8-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin: 2px 0 0;
}

/* --- Grille des Critères --- */
.aprt8-criteres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
}

.aprt8-critere {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);;
    transition: all 0.3s ease;
    font-family: monospace;
}

.aprt8-critere:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.2);
}

/* --- Haut de la carte (Icone + Titre) --- */
.aprt8-critere-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.aprt8-icone-wrap .material-symbols-rounded {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 20px;
    color: #fff;
}

.aprt8-critere-label {
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.5px;
}

/* --- Barres de progression (Note Intérieure) --- */
.aprt8-bar {
    position: relative;
    background: rgba(255,255,255,0.08); /* Fond gris sombre */
    height: 24px; /* Hauteur augmentée pour le texte */
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.aprt8-bar-fill {
    height: 100%;
    border-radius: 999px;
    /* Transition fluide pour l'animation JS */
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Texte à droite */
    padding-right: 10px;
    min-width: 40px; /* Sécurité pour afficher le texte */
    box-sizing: border-box;
}

/* Couleurs des barres */
.aprt8-bar-fill.negative {
    background: var(--aprt8-negative);
}

.aprt8-bar-fill.positive {
    background: var(--aprt8-positive);
}

/* Effet de brillance sur la barre */
.aprt8-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Texte de la note DANS la barre */
.aprt8-bar-note {
    font-size: 12px;
    font-weight: 800;
    color: #222; /* Texte foncé pour lisibilité sur couleurs fluo */
    z-index: 2;
    white-space: nowrap;
}

/* --- Détails (Accordéon) --- */
.aprt8-details {
        max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    margin-top: 15px;
    font-size: 14px;
    padding: 0 12px;
}

.aprt8-details.open {
    margin-top: 15px;
}

.aprt8-points ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.aprt8-points li {
    display: flex;
    align-items: flex-start; /* Alignement haut si texte long */
    gap: 8px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: transform 0.2s ease;
}

.aprt8-points li:hover {
    transform: translateX(4px);
    color: #fff;
}

.aprt8-points li .material-symbols-rounded {
    font-size: 18px;
    margin-top: 1px; /* Ajustement fin */
}

.aprt8-points li .material-symbols-rounded.positive {
    color: var(--aprt8-positive);
}

.aprt8-points li .material-symbols-rounded.negative {
    color: var(--aprt8-negative);
}