/* --- DETAIL.CSS : Version Premium Homogénéisée (Layout Restauré & Correctifs) --- */

/* --- 1. CONTENEURS PRINCIPAUX (Zone de Scroll) --- */
.anomalies-details-container,
.animaux-details-container,
.armes-details-container,
.armures-details-container,
.motscles-details-container,
.minerais-details-container,
.meubles-details-container,
.peche-details-container,
.installations-details-container,
.plantes-details-container,
.traitsanomalies-details-container,
.graines-details-container,
.outils-details-container,
.mods-details-container,
.matrice-details-container,
.materiaux-details-container,
.consommables-details-container,
.structures-details-container,
.accessoires-details-container,
.imprimes-details-container,
.schema-details-container,
.technologies-details-container,
.ensemble-details-container,
.vehicules-details-container {
    flex: 1;
    max-width: none;
    width: auto;
    position: relative;
    overflow-y: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 10px;
}

/* Scrollbar harmonisée */
[class$="-details-container"]::-webkit-scrollbar,
.classes-details-wrapper::-webkit-scrollbar {
    width: 6px;
}

[class$="-details-container"]::-webkit-scrollbar-track,
.classes-details-wrapper::-webkit-scrollbar-track {
    background: rgba(104, 253, 214, 0.05);
    border-radius: 3px;
}

[class$="-details-container"]::-webkit-scrollbar-thumb,
.classes-details-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(104, 253, 214, 0.3);
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[class$="-details-container"]::-webkit-scrollbar-thumb:hover,
.classes-details-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #68fdd6;
    box-shadow: 0 0 8px rgba(104, 253, 214, 0.6);
}

/* Alignement global du texte */
[class$="-details-container"] h2,
[class$="-details-container"] p {
    text-align: center;
    font-family: 'h73light', sans-serif;
}

/* --- 2. ENTETE SECTION STANDARDISÉE (Nouveau Design Premium) --- */

.entetesection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    /* Fond de base sombre et neutre pour la lisibilité */
    background: linear-gradient(90deg, rgba(20, 25, 30, 0.95) 0%, rgba(10, 12, 16, 0.8) 100%);
    /* Bordure par défaut (gris) qui sera surchargée par la rareté */
    border-left: 5px solid #444;
    margin-bottom: 25px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    /* Ombre interne pour la profondeur + Ombre externe */
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Force l'alignement à gauche dans l'en-tête */
.entetesection h1,
.entetesection p {
    text-align: left !important;
}

/* --- CLASSES DE RARETÉ (Appliquées dynamiquement par JS) --- */

/* COMMUN (Vert) */
.entetesection.commun-rarete {
    border-left-color: #4caf50;
}

.entetesection.commun-rarete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* RARE (Bleu) */
.entetesection.rare-rarete {
    border-left-color: #2196f3;
}

.entetesection.rare-rarete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ÉPIQUE (Violet) */
.entetesection.epique-rarete {
    border-left-color: #9c27b0;
}

.entetesection.epique-rarete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* LÉGENDAIRE (Or/Jaune) */
.entetesection.legendaire-rarete {
    border-left-color: #ffc107;
}

.entetesection.legendaire-rarete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* MYTHIQUE (Rouge/Rose) */
.entetesection.mythique-rarete {
    border-left-color: #ff2a5f;
}

.entetesection.mythique-rarete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 42, 95, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================================= */
/* --- SHINY (Cristal Irisé / Holographique Aller-Retour) --- */
/* ========================================================= */

/* En-tête de la section */
.entetesection.shiny-rarete {
    border-left-color: #b57cff;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulseShinyBorder 2s infinite alternate ease-in-out;
}

/* Le balayage lumineux irisé (Sweep) sur l'en-tête */
.entetesection.shiny-rarete::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Position de départ à l'extérieur gauche */
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(0, 229, 255, 0.15) 30%, rgba(255, 255, 255, 0.4) 50%, rgba(181, 124, 255, 0.15) 70%, transparent 100%);
    /* 'alternate' crée l'aller-retour, 'ease-in-out' ralentit doucement sur les bords */
    animation: shinySweepPingPong 2.5s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 0;
}

/* Animations de l'en-tête (Violet <-> Cyan) */
@keyframes pulseShinyBorder {
    0% { border-left-color: #b57cff; box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3); }
    100% { border-left-color: #00e5ff; box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3), inset 15px 0 30px -10px rgba(0, 229, 255, 0.3); }
}

/* --- Style du 5ème attribut --- */
.shiny-attribute-row {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    background: rgba(20, 20, 25, 0.85);
    /* L'attribut pulse maintenant lui aussi entre Violet et Cyan ! */
    animation: pulseShinyAttribute 2s infinite alternate ease-in-out;
}

/* Animations de la boîte de l'attribut (Violet <-> Cyan) */
@keyframes pulseShinyAttribute {
    0% { border: 1px solid rgba(181, 124, 255, 0.5); box-shadow: 0 0 12px rgba(181, 124, 255, 0.2); }
    100% { border: 1px solid rgba(0, 229, 255, 0.5); box-shadow: 0 0 12px rgba(0, 229, 255, 0.2); }
}

/* Le balayage lumineux sur l'attribut lui-même */
.shiny-attribute-row::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 100%; 
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(0, 229, 255, 0.1) 30%, rgba(255, 255, 255, 0.3) 50%, rgba(181, 124, 255, 0.1) 70%, transparent 100%);
    /* Même effet d'aller-retour que l'en-tête */
    animation: shinySweepPingPong 2.5s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.shiny-attribute-row span {
    position: relative;
    z-index: 1;
}

/* Le texte "ATTRIBUT SHINY" en violet clair (modifié via JS précédemment) ou jaune */
.shiny-label {
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.shiny-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- L'animation d'aller-retour partagée --- */
@keyframes shinySweepPingPong {
    0% { transform: translateX(25%); } /* Démarre caché à gauche */
    100% { transform: translateX(175%); } /* Va se cacher à droite, puis rebrousse chemin */
}

/* BASIQUE (Gris) */
.entetesection.basique-rarete {
    border-left-color: #9e9e9e;
}

.entetesection.basique-rarete::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* --- FIN RARETÉ --- */

/* --- CLASSES DE TYPE (SPÉCIFIQUE ANOMALIES) --- */

/* COMBAT (Rouge) */
.entetesection.combat-type {
    border-left-color: #f31238;
}

.entetesection.combat-type::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 18, 56, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* GADGET (Bleu Cyan) */
.entetesection.gadget-type {
    border-left-color: #22c7dd;
}

.entetesection.gadget-type::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 199, 221, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* TERRITOIRE (Jaune) */
.entetesection.territoire-type {
    border-left-color: #f0e68c;
}

.entetesection.territoire-type::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 230, 140, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.entete-main-info {
    display: flex;
    align-items: center;
    gap: 35px;
    position: relative;
    z-index: 2;
    /* Passe au-dessus du dégradé de rareté */
}

.image-wrapper {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(104, 253, 214, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    min-width: 140px;
    min-height: 140px;
    position: relative;
    z-index: 2;
}

.image-wrapper img {
    max-width: 130px;
    max-height: 130px;
    filter: drop-shadow(0 0 15px rgba(104, 253, 214, 0.4));
    object-fit: contain;
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.overline-category {
    /* On force la catégorie à apparaître en SECOND */
    order: 2;
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    color: #68fdd6;
    font-size: 1rem;
    letter-spacing: 3px;
    margin: 0;
    opacity: 0.8;
}

.entetesection h1 {
    /* On force le titre à apparaître en PREMIER */
    order: 1;
    font-family: 'h73bold', sans-serif;
    font-size: 2.8rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    line-height: 1;
    letter-spacing: 1px;
}

/* --- Ajustement spécifique pour le titre des Mods --- */
.mods-details-container .entetesection h1 {
    font-size: 2.2rem;
}

.entete-side-actions {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* --- 3. BARRE DE RESSOURCES PREMIUM (STYLE INTÉGRÉ EN-TÊTE) --- */

.premium-resource-bar {
    display: flex;
    justify-content: flex-start; /* Aligné à gauche avec le texte */
    align-items: center;
    flex-wrap: wrap; /* Permet le passage à la ligne si beaucoup de pilules sur petit écran */
    gap: 12px; /* Espace régulier entre la première pilule et le groupe */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 12px; /* Espacement avec le titre/catégorie au-dessus */
    margin-bottom: 0;
    overflow: visible;
    z-index: 10;
    order: 3; /* Le CSS s'assure qu'elles se placent APRES le h1 (order:1) et le overline (order:2) */
    width: 100%;
}

.resource-group {
    display: flex;
    gap: 12px; /* Espace régulier entre les pilules du groupe */
    align-items: center;
    flex-wrap: wrap;
}

/* Le conteneur "Pilule" devient l'élément visuel principal */
.resource-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px; /* Un peu réduit pour l'en-tête */

    /* Fond sombre semi-transparent pour la lisibilité du texte */
    background: rgba(10, 15, 20, 0.85);
    /* Bordure turquoise subtile */
    border: 1px solid rgba(104, 253, 214, 0.3);

    padding: 6px 14px; /* Rendues un peu plus fines */
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: help;
}

.resource-pill:hover {
    background: rgba(104, 253, 214, 0.15);
    border-color: #68fdd6;
    box-shadow: 0 0 15px rgba(104, 253, 214, 0.2);
    transform: translateY(-2px);
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; /* Réduit pour s'intégrer sous le titre (avant: 32px) */
    height: 24px;
}

.icon-container img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 0 5px rgba(104, 253, 214, 0.4));
    object-fit: contain;
}

.resource-text {
    font-family: 'h73bold', sans-serif;
    font-size: 1rem; /* Ajusté */
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Couleurs spécifiques par type de ressource */
.divpoids .resource-text {
    color: #ffffff;
}

.diveternite .resource-text {
    color: #68fdd6;
}

.divastral .resource-text {
    color: #ffeb3b;
}

/* --- CORRECTIF INFOBULLES --- */
.resource-pill .infobulle {
    position: absolute;
    top: 140%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 250px;
    z-index: 100;
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid #68fdd6;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.9rem;
    font-family: 'h73light', sans-serif;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, top 0.2s;
}

.resource-pill:hover .infobulle {
    opacity: 1;
    visibility: visible;
    top: 125%;
}

.divastral .infobulle {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

.divpoids .infobulle {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
}

/* --- 4. TITRES DE SECTION (Barres Repliables - MARGIN CORRIGÉ) --- */

.titresection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(104, 253, 214, 0.05);
    border-bottom: 1px solid rgba(104, 253, 214, 0.2);
    border-top: 1px solid rgba(104, 253, 214, 0.05);
    border-left: none;  /* Supprime la bordure blanche à gauche */
    border-right: none; /* Supprime la bordure blanche à droite */
    outline: none;      /* Supprime le contour blanc au clic */
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0;
    backdrop-filter: blur(5px);

    /* --- AJOUTS A11Y (Reset Button) --- */
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: inherit;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.titresection:hover {
    background: rgba(104, 253, 214, 0.1);
}

.titresection h1 {
    font-family: 'h73light', sans-serif;
    font-size: 1.3rem;
    color: #68fdd6;
    margin: 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- 5. SECTIONS RÉTRACTABLES & FLÈCHES --- */

.retractable-section {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: rgba(15, 20, 25, 0.4);
    overflow: hidden;
}

.contenusection {
    padding: 20px;
    color: #e0e0e0;
    transition: max-height 0.3s ease-in-out;
}

.retractable-section.open .contenusection {
    display: none !important;
}

/* Flèches */
.toggle-icon {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.arrow {
    border: solid #68fdd6;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.arrow.down {
    transform: rotate(45deg);
}

.arrow.up {
    transform: rotate(-135deg);
}

/* --- 6. COMPOSANTS DE RANG --- */

.rangarmeselect-wrapper,
.rangarmureselect-wrapper {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(104, 253, 214, 0.3);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    position: relative;
    min-width: 120px;
    flex-shrink: 0;
}

.rangarmeselect-container p,
.rangarmureselect-container p {
    margin: 0 0 5px 0;
    color: #68fdd6;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.rangarmureselect-container select,
.rangarmeselect-container select {
    font-size: 1.2rem;
    background-color: transparent;
    border: 1px solid transparent;
    color: #fff;
    cursor: pointer;
    font-family: 'h73light', sans-serif;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

.rangarmureselect-container select:hover,
.rangarmeselect-container select:hover {
    background-color: rgba(104, 253, 214, 0.1);
}

.rangarmureselect-container select option,
.rangarmeselect-container select option {
    background-color: #000;
    color: #68fdd6;
}

.select-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

/* --- 7. UI ELEMENTS & BADGES --- */

.iconedetails {
    filter: drop-shadow(0 0 5px rgba(104, 253, 214, 0.2));
    vertical-align: middle;
}

.statistiquesinfos {
    margin-left: 10px;
    cursor: help;
    display: inline-block;
}

.infos {
    font-size: 14px;
    color: #fbff00;
    border: #f1c40f 1px solid;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(184, 134, 11, 0.8);
    border-radius: 50%;
}

#combat {
    padding: 5px 10px;
    margin: 5px;
    border: 1px solid crimson;
    border-radius: 4px;
    background-color: rgba(220, 20, 60, 0.3);
    color: #ffcccb;
    font-weight: bold;
}

#effetarmure-div,
#modscle-div,
#armeCle-div,
#armeStyle-div {
    padding: 5px 10px;
    margin-left: 10px;
    border: 1px solid rgba(104, 253, 214, 0.4);
    border-radius: 4px;
    background-color: rgba(104, 253, 214, 0.1);
    color: #68fdd6;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#effetarmure-div p,
#modscle-div p {
    margin: 0;
}

#suffixe {
    padding: 5px 10px;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#suffixe:hover {
    background-color: rgba(104, 253, 214, 0.15);
    color: #68fdd6;
    border-color: #68fdd6;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.2);
}

/* --- 8. BARRES DE STATS --- */

.stat-bar-container,
.accessory-stat-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.stat-bar-fill,
.accessory-stat-bar-fill {
    height: 100%;
    background-color: #68fdd6;
    width: 0%;
    box-shadow: 0 0 8px rgba(104, 253, 214, 0.5);
    transition: width 0.5s ease-out;
    position: absolute;
    top: 0;
    left: 0;
}

.accessory-stat-bar-fill.negative-bar {
    background-color: #ff5252;
    box-shadow: 0 0 8px rgba(255, 82, 82, 0.5);
}

.accessory-stat-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 12px;
}

.accessory-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}

.accessory-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
}

.accessory-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #e0f7fa;
}

/* --- 9. SELECTEURS & DROPDOWNS --- */

.traits-animaux-select-container {
    width: 35%;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.traits-anomalies-select-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
    margin-top: 15px;
}

.select-wrapper {
    position: relative;
    margin-bottom: 15px;
}

select {
    width: 100%;
    padding: 10px;
    background-color: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(104, 253, 214, 0.3);
    color: #68fdd6;
    border-radius: 4px;
    font-family: 'h73light', sans-serif;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

select:focus {
    border-color: #68fdd6;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.2);
}

.traits-anomalies-select-container select.select-legendaire {
    background: linear-gradient(190deg, #1c1e21, #402f1f);
    border: 1px solid rgb(217, 164, 74);
    color: rgb(217, 164, 74);
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22rgb(217, 164, 74)%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 10px;
}

.traits-anomalies-select-container select.select-commun {
    background: linear-gradient(190deg, #1c2023, #233129);
    border: 1px solid rgb(51, 194, 47);
    color: rgb(51, 194, 47);
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22rgb(51, 194, 47)%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 10px;
}

.options-container {
    position: absolute;
    background-color: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #68fdd6;
    color: #fff;
    border-radius: 4px;
    padding: 5px;
    min-width: 150px;
    z-index: 1000;
    display: none;
    bottom: 100%;
    margin-bottom: 10px;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(104, 253, 214, 0.2);
}

.options-container.show {
    display: block;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    color: #e0e0e0;
    margin: 2px;
    border-radius: 3px;
}

.option-item:hover {
    background-color: rgba(104, 253, 214, 0.1);
    color: #fff;
}

/* --- 10. MODS & ATTRIBUTS --- */

.mods-details-container .entetesection .mod-suffix-select {
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 24px;
    font-family: 'h73light', sans-serif;
    font-weight: bold;
    appearance: none;
    cursor: pointer;
    min-width: 200px;
    width: auto;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    padding-right: 30px;
}

.mods-details-container .entetesection .mod-suffix-select option {
    background-color: #000;
    color: #f1c40f;
}

.attribut-tier-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.attribut-main-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.attribut-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.attribut-select {
    flex-grow: 1;
    padding: 8px;
    background-color: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(104, 253, 214, 0.3);
}

.attribut-select:disabled {
    opacity: 1;
    color: #68fdd6;
    border: none;
    background: transparent;
    appearance: none;
    background-image: none !important;
    padding-left: 0;
}

.rarity-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.rarity-diamond {
    width: 16px;
    height: 16px;
    border: 1px solid #555;
    background-color: rgba(0, 0, 0, 0.5);
    transform: rotate(45deg);
    margin: 2px;
    display: none;
}

.rarity-selector.is-open .rarity-diamond,
.rarity-diamond.active {
    display: block;
}

.rarity-diamond.active {
    border-color: #68fdd6;
    box-shadow: 0 0 5px #68fdd6;
}

.rarity-diamond.rarity-basique {
    background-color: #777;
}

.rarity-diamond.rarity-commun {
    background-color: #4f735a;
}

.rarity-diamond.rarity-rare {
    background-color: #5a8191;
}

.rarity-diamond.rarity-epique {
    background-color: #734ea5;
}

.rarity-diamond.rarity-legendaire {
    background-color: #d9a44a;
}

/* --- 11. PLANTES (Barres de Condition) --- */

.condition-bar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.condition-label {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #e0f7fa;
    justify-content: center;
}

.progress-bar-wrapper {
    width: 100%;
    position: relative;
    padding-top: 5px;
}

/* La barre globale (effet de creux sombre) */
.progress-bar {
    display: flex;
    width: 100%;
    height: 12px; /* Barre un peu plus épaisse */
    background-color: rgba(5, 8, 12, 0.8);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(104, 253, 214, 0.15);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6); /* Profondeur */
}

/* Les segments de couleur */
.progress-segment {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    position: relative;
}

/* Ajoute une fine séparation entre les segments pour plus de lisibilité */
.progress-segment:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.5);
}

/* Zone Rouge (Critique) */
.segment-R {
    background: linear-gradient(90deg, #780000 0%, #e74c3c 100%);
    box-shadow: inset 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Zone Jaune (Moyenne) */
.segment-J {
    background: linear-gradient(90deg, #997a00 0%, #f1c40f 100%);
    box-shadow: inset 0 0 5px rgba(241, 196, 15, 0.3);
}

/* Zone Verte (Optimale) : Dégradé + Glow externe pour attirer l'oeil */
.segment-V {
    background: linear-gradient(90deg, #1abc9c 0%, #68fdd6 100%);
    box-shadow: 0 0 12px rgba(104, 253, 214, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.3);
    z-index: 1; /* Permet au glow de passer par dessus les autres */
}

/* Les marqueurs (chiffres) */
.progress-bar-markers {
    position: relative;
    height: 25px;
    width: 100%;
    margin-top: 4px;
}

.progress-bar-markers span {
    font-size: 0.75rem;
    color: #888;
    font-family: 'Consolas', monospace; /* Police plus "tech" pour les chiffres */
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Le petit cran de graduation au-dessus des chiffres */
.progress-bar-markers span::before {
    content: '';
    width: 1px;
    height: 5px;
    background-color: rgba(104, 253, 214, 0.4);
    margin-bottom: 3px;
    box-shadow: 0 0 2px rgba(104, 253, 214, 0.2);
}

/* Segments vides (si besoin) */
.progress-segment.empty {
    background: transparent;
}

/* --- 12. OVERLAYS (Cadenas & Placeholders) --- */

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 5;
}

.lock-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.calib-schema-placeholder {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.4);
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: all 0.2s ease;
}

.calib-schema-placeholder.clickable {
    cursor: pointer;
    border-style: dashed;
    border-color: rgba(104, 253, 214, 0.4);
    color: #a8c0d0;
}

.calib-schema-placeholder.clickable:hover {
    border-color: #68fdd6;
    background-color: rgba(104, 253, 214, 0.1);
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.2);
}

/* --- 13. SWIPER & COMPATIBILITE --- */

/* --- HAUTEUR DYNAMIQUE ET GESTION DES SUPERPOSITIONS --- */
.compat-swiper .swiper-wrapper,
.appats-swiper .swiper-wrapper {
    align-items: stretch !important; /* Toutes les cartes s'étirent à la même hauteur */
}

.compat-swiper, 
.appats-swiper { /* On s'assure de cibler les deux swipers */
    width: 100%;
    /* On augmente drastiquement le padding (espace interne) pour que les cartes puissent 
       grossir sans se cogner aux bords invisibles du swiper */
    padding: 40px 15px !important; 
    margin: -20px 0 !important; /* On compense visuellement pour ne pas décaler toute la page */
}

.compat-swiper .swiper-slide,
.appats-swiper .swiper-slide {
    width: 290px; 
    height: auto !important; 
    min-height: 185px; 
    display: flex;
    justify-content: center;
    align-items: stretch; 
    opacity: 1 !important; 
    transform: scale(1) !important;
}

/* 🟢 CORRECTION DU BUG DE TILT SUR LES CÔTÉS 
   On force la slide survolée à passer tout devant pour que sa boîte 3D ne soit plus bloquée */
.compat-swiper .swiper-slide:hover,
.appats-swiper .swiper-slide:hover {
    z-index: 100 !important;
}

/* --- Style Carte Premium Unifié --- */
.compat-vignette {
    width: 100%;
    height: 100%; /* Prend toute la hauteur disponible étirée par le Wrapper */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* Un seul fond semi-transparent pour toute la carte */
    background: rgba(15, 20, 25, 0.7); 
    backdrop-filter: blur(8px);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
}

.compat-vignette:hover {
    /* Le transform est désormais géré par le JS, mais on garde le style de fond/couleur ici */
    background: rgba(22, 28, 35, 0.9); /* S'éclaircit légèrement, d'un seul bloc */
    z-index: 10;
}

/* --- L'image de l'item --- */
.vignette-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px 5px 10px;
    z-index: 2;
}

.compat-vignette img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
    pointer-events: none;
    flex-shrink: 0; 
}

.compat-vignette:hover img {
    transform: scale(1.15) translateY(-2px);
}

/* --- Le Nom de l'item (AFFICHAGE COMPLET) --- */
.compat-vignette .vignette-name {
    background: transparent !important; /* Disparition du séparateur */
    padding: 0 10px 15px 10px;
    font-size: 0.75rem;
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    z-index: 2;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    
    /* 🟢 SYSTÈME SANS TRONCATURE */
    display: block; 
    white-space: normal; /* Autorise le retour à la ligne infini */
    overflow: visible; /* Affiche tout le texte */
    line-height: 1.3;
    margin-top: auto; /* Pousse toujours le texte vers le bas */
}

.compat-vignette:hover .vignette-name {
    color: #68fdd6; /* Éclat cyan au survol */
    text-shadow: 0 0 10px rgba(104, 253, 214, 0.3);
}


/* ========================================================= */
/* --- RARETÉ : Effet Glow Interne & Bordures                */
/* ========================================================= */

/* BASIQUE (Gris) */
.compat-vignette.basique-rarete { 
    border: 1px solid rgba(119, 119, 119, 0.3); 
    border-top: 3px solid #777; 
    box-shadow: inset 0 20px 30px -15px rgba(119, 119, 119, 0.25), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.compat-vignette.basique-rarete:hover {
    box-shadow: inset 0 30px 40px -15px rgba(119, 119, 119, 0.4), 0 12px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(119, 119, 119, 0.6);
}

/* COMMUN (Vert) */
.compat-vignette.commun-rarete { 
    border: 1px solid rgba(79, 115, 90, 0.3); 
    border-top: 3px solid rgb(79, 115, 90); 
    box-shadow: inset 0 20px 30px -15px rgba(79, 115, 90, 0.25), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.compat-vignette.commun-rarete:hover {
    box-shadow: inset 0 30px 40px -15px rgba(79, 115, 90, 0.4), 0 12px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(79, 115, 90, 0.6);
}

/* RARE (Bleu) */
.compat-vignette.rare-rarete { 
    border: 1px solid rgba(90, 129, 145, 0.3); 
    border-top: 3px solid rgb(90, 129, 145); 
    box-shadow: inset 0 20px 30px -15px rgba(90, 129, 145, 0.25), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.compat-vignette.rare-rarete:hover {
    box-shadow: inset 0 30px 40px -15px rgba(90, 129, 145, 0.4), 0 12px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(90, 129, 145, 0.6);
}

/* EPIQUE (Violet) */
.compat-vignette.epique-rarete { 
    border: 1px solid rgba(115, 78, 165, 0.3); 
    border-top: 3px solid rgb(115, 78, 165); 
    box-shadow: inset 0 20px 30px -15px rgba(115, 78, 165, 0.25), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.compat-vignette.epique-rarete:hover {
    box-shadow: inset 0 30px 40px -15px rgba(115, 78, 165, 0.4), 0 12px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(115, 78, 165, 0.6);
}

/* LÉGENDAIRE (Or) */
.compat-vignette.legendaire-rarete { 
    border: 1px solid rgba(217, 164, 74, 0.3) !important; 
    border-top: 3px solid rgb(217, 164, 74) !important; 
    box-shadow: inset 0 20px 30px -15px rgba(217, 164, 74, 0.25), 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    animation: none !important; /* 🟢 BLOQUE L'ANIMATION DU TABLEAU (tables.css) */
}
.compat-vignette.legendaire-rarete:hover {
    box-shadow: inset 0 30px 40px -15px rgba(217, 164, 74, 0.4), 0 12px 20px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(217, 164, 74, 0.6) !important;
}

/* ========================================================= */
/* --- FLÈCHES DE NAVIGATION (Discrètes & Premium)           */
/* ========================================================= */

.compat-swiper .swiper-button-next,
.compat-swiper .swiper-button-prev,
.appats-swiper .swiper-button-next,
.appats-swiper .swiper-button-prev {
    color: rgba(255, 255, 255, 0.3); /* Couleur très discrète au repos */
    background: transparent; /* Aucun fond au repos */
    border: 1px solid transparent; 
    width: 40px; /* Légèrement plus petites */
    height: 40px;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: -10px;
}

/* L'animation au survol : apparition du Glassmorphism et de la lumière */
.compat-swiper .swiper-button-next:hover,
.compat-swiper .swiper-button-prev:hover,
.appats-swiper .swiper-button-next:hover,
.appats-swiper .swiper-button-prev:hover {
    color: #68fdd6; 
    background: rgba(15, 20, 25, 0.6); /* Apparition douce du fond */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(104, 253, 214, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(104, 253, 214, 0.1);
    transform: translateY(-50%) scale(1.05); /* Rebond très subtil */
}

/* Affinage de l'icône de la flèche elle-même */
.compat-swiper .swiper-button-next::after,
.compat-swiper .swiper-button-prev::after,
.appats-swiper .swiper-button-next::after,
.appats-swiper .swiper-button-prev::after {
    font-size: 1.1rem; /* Moins massive */
    font-weight: 400; /* Plus fine */
    transition: text-shadow 0.3s ease;
}

/* Ajout d'un "Glow" (lueur) sur l'icône au survol */
.compat-swiper .swiper-button-next:hover::after,
.compat-swiper .swiper-button-prev:hover::after,
.appats-swiper .swiper-button-next:hover::after,
.appats-swiper .swiper-button-prev:hover::after {
    text-shadow: 0 0 8px rgba(104, 253, 214, 0.6);
}

/* --- 14. COMMENTAIRES (Correction) --- */

.retractable-section .commentaires-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.retractable-section input,
.retractable-section textarea {
    font-family: 'h73light', sans-serif;
}

/* --- 15. UI DIVERS --- */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #68fdd6;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 5px #68fdd6;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.inactive {
    opacity: 0.6;
}

/* Styles spécifiques intégrés pour faciliter l'implémentation */
.animal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Colonnes réactives */
    gap: 20px;
}

.info-block {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.info-header {
    color: #68fdd6;
    border-bottom: 1px solid #68fdd6;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar fine */
.item-list-container::-webkit-scrollbar {
    width: 4px;
}

.item-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.detail-item-chip {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 4px 8px;
    border-left: 3px solid #7f8c8d;
    /* Gris par défaut */
    transition: background 0.2s;
}

.detail-item-chip:hover {
    background: rgba(255, 255, 255, 0.15);
}

.detail-item-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 10px;
}

.detail-item-name {
    font-size: 14px;
    color: #eee;
}

/* Couleurs Rareté */
.rarity-1 {
    border-left-color: #7f8c8d;
}

/* Basique */
.rarity-2 {
    border-left-color: #2ecc71;
}

/* Commun (Vert) */
.rarity-3 {
    border-left-color: #3498db;
}

/* Rare (Bleu) */
.rarity-4 {
    border-left-color: #9b59b6;
}

/* Epique (Violet) */
.rarity-5 {
    border-left-color: #f1c40f;
}

/* Leg (Or) */

/* Styles Mécaniques (Refondus) */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mech-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mech-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mech-header img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 3px rgba(104, 253, 214, 0.3));
}

.mech-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mech-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

/* Nouvelle Ligne de Donnée "Tech" */
.mech-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid #555;
    /* Couleur par défaut */
    transition: background 0.2s, transform 0.2s;
}

.mech-row:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.mech-val {
    font-family: 'Consolas', monospace;
    /* Police style terminal */
    font-weight: bold;
    font-size: 0.9em;
    min-width: 65px;
    /* Largeur fixe pour alignement */
    text-align: right;
    white-space: nowrap;
}

.mech-txt {
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.3;
}

/* Couleurs d'état */
.status-high {
    border-left-color: #2ecc71;
}

.status-high .mech-val {
    color: #2ecc71;
}

.status-mid {
    border-left-color: #3498db;
}

.status-mid .mech-val {
    color: #3498db;
}

.status-low {
    border-left-color: #f1c40f;
}

.status-low .mech-val {
    color: #f1c40f;
}

.status-critical {
    border-left-color: #e74c3c;
}

.status-critical .mech-val {
    color: #e74c3c;
}

.mech-footer {
    background: rgba(104, 253, 214, 0.05);
    padding: 10px 12px;
    font-size: 0.8em;
    color: #a8f0e6;
    border-top: 1px solid rgba(104, 253, 214, 0.15);
    line-height: 1.4;
}

.mech-footer strong {
    color: #68fdd6;
}

/* Badge Combat (Version épurée et moderne) */
.combat-badge {
    background-color: rgba(231, 76, 60, 0.15);
    /* Fond rouge subtil */
    color: #ff4757;
    /* Texte rouge vif */
    border: 1px solid rgba(255, 71, 87, 0.5);
    /* Une seule bordure nette */
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
    /* Le JS le passe en display: flex quand il l'affiche */
    align-items: center;
    justify-content: center;
    height: fit-content;
}

/* --- STYLES ÉVALUATION --- */
.eval-control-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 0.8em;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Slider Docilité */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 20px;
    min-width: 200px;
}

.tech-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: #444;
    border-radius: 3px;
    outline: none;
}

.tech-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #68fdd6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px #68fdd6;
}

.slider-value {
    color: #68fdd6;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

/* Compteur Repro */
.repro-badge {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #68fdd6;
    color: #68fdd6;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

.repro-badge small {
    font-size: 0.6em;
    color: #aaa;
    display: block;
    font-weight: normal;
}

/* Grille Traits */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.trait-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.select-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 8px;
}

.trait-select {
    width: 100%;
    padding: 8px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
}

.trait-desc {
    font-size: 0.9em;
    color: #ccc;
    min-height: 40px;
    /* Évite les sauts de hauteur */
    line-height: 1.4;
}

/* Overlay de verrouillage (CSS adapté pour le JS existant) */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    /* Le JS le passe en none/flex */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.lock-icon {
    width: 24px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.lock-text {
    font-size: 0.8em;
    color: #aaa;
}


/* --- STYLES OBTENTION --- */
.obtain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.obtain-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #777;
}

.obtain-card.location-card {
    border-left-color: #68fdd6;
    background: linear-gradient(90deg, rgba(104, 253, 214, 0.05), transparent);
}

.obtain-icon img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.obtain-content h4 {
    margin: 0 0 5px 0;
    color: #aaa;
    font-size: 0.85em;
    text-transform: uppercase;
}

.obtain-content p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.3;
}

/* Styles Slots (Mise à jour pour occuper toute la largeur) */
.traits-slots-grid {
    display: flex; /* On passe de Grid à Flex pour un meilleur contrôle de la largeur */
    flex-wrap: wrap; /* Permet de passer à la ligne si besoin sur petits écrans */
    gap: 20px;
}

.trait-slot-container {
    position: relative;
    flex: 1 1 280px; /* Le secret est ici : flex-grow à 1 permet de prendre tout l'espace restant, avec une base de 280px */
    display: flex; /* Ajouté pour que le .trait-slot prenne 100% de la hauteur/largeur */
    align-items: stretch;
}

.trait-slot {
    width: 100%; /* S'assure que le slot remplit le conteneur flex */
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(104, 253, 214, 0.3);
    border-radius: 8px;
    padding: 15px;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trait-slot:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #68fdd6;
}

.trait-slot.filled {
    background: rgba(104, 253, 214, 0.05);
    border-style: solid;
    justify-content: flex-start;
}

/* Placeholder */
.slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    gap: 10px;
}

.plus-icon {
    font-size: 24px;
    color: #68fdd6;
}

/* Contenu rempli */
.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.slot-title {
    color: #68fdd6;
    font-weight: bold;
    font-size: 1.1em;
}

.remove-trait {
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
}

.remove-trait:hover {
    color: #ff7675;
}

.slot-desc {
    font-size: 0.9em;
    color: #ddd;
    line-height: 1.4;
    margin: 0;
}

/* ========================================================= */
/* --- MODALE TRAITS PREMIUM (GLASSMORPHISM) --- */
/* ========================================================= */

.trait-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.trait-modal-content {
    background: rgba(20, 20, 25, 0.75);
    border: 1px solid rgba(104, 253, 214, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 16px; width: 90%; max-width: 900px; max-height: 85vh;
    display: flex; flex-direction: column;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    overflow: hidden; /* Empêche le dépassement */
}

.trait-modal-header {
    padding: 20px 25px; background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0; /* Garde l'en-tête fixe */
}

.trait-modal-header h2 { margin: 0; color: #68fdd6; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; }
.trait-modal-close { color: #aaa; font-size: 32px; cursor: pointer; transition: 0.2s; line-height: 1; }
.trait-modal-close:hover { color: #ff6b6b; transform: scale(1.1); }

/* Conteneur de recherche fixe */
.trait-modal-search-container {
    padding: 15px 25px; background: rgba(20, 20, 25, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex-shrink: 0; z-index: 10;
}

.trait-modal-search-input {
    width: 100%; box-sizing: border-box; padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(104, 253, 214, 0.3);
    color: white; border-radius: 8px; font-size: 1.05rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.trait-modal-search-input:focus { outline: none; border-color: #68fdd6; box-shadow: 0 0 10px rgba(104, 253, 214, 0.2); }

/* Corps scrollable */
.trait-modal-body {
    padding: 25px; overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; gap: 15px;
}
.trait-modal-body::-webkit-scrollbar { width: 8px; }
.trait-modal-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
.trait-modal-body::-webkit-scrollbar-thumb { background: rgba(104, 253, 214, 0.3); border-radius: 4px; }
.trait-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(104, 253, 214, 0.6); }

.trait-modal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }

.trait-selection-card {
    background: rgba(40, 40, 45, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px; padding: 15px; cursor: pointer; transition: all 0.2s ease-in-out;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.trait-selection-card:hover { border-color: #68fdd6; background: rgba(104, 253, 214, 0.1); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.trait-card-title { color: #68fdd6; font-weight: bold; display: block; margin-bottom: 8px; font-size: 1.1rem;}
.trait-card-desc { color: #e0e0e0; font-size: 0.9em; line-height: 1.5; }

/* Design de l'interrupteur (Toggle Switch) */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .3s;
    border-radius: 24px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-toggle input:checked+.slider-toggle {
    background-color: #e67e22;
    /* Assorti à la couleur du trait */
}

.switch-toggle input:focus+.slider-toggle {
    box-shadow: 0 0 1px #e67e22;
}

.switch-toggle input:checked+.slider-toggle:before {
    transform: translateX(20px);
}

/* ========================================================= */
/* --- BOUTONS DE RANG (Style Premium Once Human) --- */
/* ========================================================= */

.button-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 1. Style de base du bouton (État inactif par défaut) */
.rank-button {
    padding: 8px 22px;
    background: rgba(15, 20, 25, 0.7);
    /* Fond tech sombre */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-family: 'h73bold', sans-serif;
    /* Typo du jeu */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* Survol d'un bouton inactif */
.rank-button.inactive:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 2. ÉTATS ACTIFS (Couleurs Néon) */

/* RANG C (Bleu) */
.rank-button.blue:not(.inactive) {
    background: rgba(52, 152, 219, 0.15);
    border-color: #3498db;
    color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3), inset 0 0 10px rgba(52, 152, 219, 0.2);
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

/* RANG B (Vert) */
.rank-button.green:not(.inactive) {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ecc71;
    color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3), inset 0 0 10px rgba(46, 204, 113, 0.2);
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

/* RANG A (Violet) */
.rank-button.purple:not(.inactive) {
    background: rgba(156, 39, 176, 0.15);
    border-color: #9c27b0;
    color: #d78cf1;
    /* Légèrement plus clair pour la lisibilité */
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3), inset 0 0 10px rgba(156, 39, 176, 0.2);
    text-shadow: 0 0 8px rgba(156, 39, 176, 0.6);
}

/* RANG S (Or) */
.rank-button.gold:not(.inactive) {
    background: rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
    color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3), inset 0 0 10px rgba(255, 193, 7, 0.2);
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

/* Effet au survol d'un bouton DÉJÀ actif */
.rank-button:not(.inactive):hover {
    transform: translateY(-2px);
    filter: brightness(1.3);
}

/* Assure que la classe inactive prime sur le reste si besoin */
.rank-button.inactive {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* ========================================================= */
/* --- COULEURS DE RARETÉ (TRAITS & ANOMALIES) --- */
/* ========================================================= */

.rarity-basique { border-left: 4px solid #838383 !important; }
.rarity-commun { border-left: 4px solid #416c4f !important; }
.rarity-rare { border-left: 4px solid #456880 !important; }
.rarity-epique { border-left: 4px solid #6c5485 !important; }
.rarity-legendaire { border-left: 4px solid #a28651 !important; }

/* Optionnel : Un très léger reflet de la couleur au survol dans la modale pour le côté Premium */
.trait-selection-card.rarity-basique:hover { background: rgba(131, 131, 131, 0.1); }
.trait-selection-card.rarity-commun:hover { background: rgba(65, 108, 79, 0.15); }
.trait-selection-card.rarity-rare:hover { background: rgba(69, 104, 128, 0.15); }
.trait-selection-card.rarity-epique:hover { background: rgba(108, 84, 133, 0.15); }
.trait-selection-card.rarity-legendaire:hover { background: rgba(162, 134, 81, 0.15); }

/* ========================================================= */
/* --- RECETTES & CONFECTION (STYLE ULTRA PREMIUM V2) --- */
/* ========================================================= */

.premium-recipe-box {
    position: relative;
    width: 85px; 
    height: 85px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    /* Retrait du overflow:hidden pour permettre à l'infobulle de sortir */
}

/* Effet "Glassmorphism" (Reflet interne sur la moitié haute) */
.premium-recipe-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.premium-recipe-box:hover {
    transform: translateY(-4px) scale(1.05);
    z-index: 10;
}

.premium-recipe-box img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.7));
    transition: transform 0.3s ease;
    z-index: 2;
    margin-top: 5px; /* Compense la présence du bandeau */
}

.premium-recipe-box:hover img {
    transform: scale(1.1);
}

/* Quantité élégante intégrée au design */
.premium-recipe-quantity {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    padding: 3px 8px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    z-index: 3;
}

/* Bandeau Libre-Service (Intégré en haut) */
.premium-recipe-libre-service {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(104, 253, 214, 0.15); 
    border-bottom: 1px solid rgba(104, 253, 214, 0.3);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligné à gauche pour le défilement */
    padding: 0 4px; /* Décolle l'icône du bord gauche */
    z-index: 4;
    backdrop-filter: blur(4px);
    overflow: hidden; /* Empêche le texte de déborder de la boîte */
}

.libre-service-icon {
    width: 10px;
    height: 10px;
    stroke: #68fdd6;
    margin-right: 4px;
    flex-shrink: 0; /* Sécurité : l'icône ne sera jamais écrasée */
    z-index: 2;
}

/* Conteneur indispensable pour l'animation de défilement */
.libre-service-text-container {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap; /* Interdit formellement le retour à la ligne */
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.libre-service-text {
    display: inline-block;
    font-size: 0.55rem;
    color: #68fdd6;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Interdit formellement le retour à la ligne */
    animation: scrollText 3s linear infinite; /* Animation de défilement */
    padding-left: 100%; /* Fait démarrer le texte tout à droite */
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ------------------------------------------------ */
/* --- INFOBULLE CUSTOM (Remplace le title natif) --- */
/* ------------------------------------------------ */
.premium-recipe-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 20, 25, 0.95);
    color: #fff;
    padding: 6px 12px;
    border: 1px solid #68fdd6;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'h73light', sans-serif;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

/* Flèche sous l'infobulle */
.premium-recipe-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #68fdd6 transparent transparent transparent;
}

.premium-recipe-box:hover .premium-recipe-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ------------------------------------------------ */
/* Couleurs dynamiques (Lumière qui vient du bas)   */
/* ------------------------------------------------ */
.premium-recipe-box.rarity-bg-basique { background: radial-gradient(circle at 50% 110%, rgba(158,158,158,0.5) 0%, rgba(15,18,22,0.9) 70%); border-color: rgba(158,158,158,0.6); }
.premium-recipe-box.rarity-bg-commun { background: radial-gradient(circle at 50% 110%, rgba(76,175,80,0.5) 0%, rgba(15,18,22,0.9) 70%); border-color: rgba(76,175,80,0.6); }
.premium-recipe-box.rarity-bg-rare { background: radial-gradient(circle at 50% 110%, rgba(33,150,243,0.5) 0%, rgba(15,18,22,0.9) 70%); border-color: rgba(33,150,243,0.6); }
.premium-recipe-box.rarity-bg-epique { background: radial-gradient(circle at 50% 110%, rgba(156,39,176,0.6) 0%, rgba(15,18,22,0.9) 70%); border-color: rgba(156,39,176,0.7); }
.premium-recipe-box.rarity-bg-legendaire { background: radial-gradient(circle at 50% 110%, rgba(255,193,7,0.5) 0%, rgba(15,18,22,0.9) 70%); border-color: rgba(255,193,7,0.7); }

.premium-recipe-box.rarity-bg-basique:hover { box-shadow: 0 8px 15px rgba(0,0,0,0.6), 0 0 15px rgba(158,158,158,0.4), inset 0 0 20px rgba(158,158,158,0.2); }
.premium-recipe-box.rarity-bg-commun:hover { box-shadow: 0 8px 15px rgba(0,0,0,0.6), 0 0 15px rgba(76,175,80,0.4), inset 0 0 20px rgba(76,175,80,0.2); }
.premium-recipe-box.rarity-bg-rare:hover { box-shadow: 0 8px 15px rgba(0,0,0,0.6), 0 0 15px rgba(33,150,243,0.4), inset 0 0 20px rgba(33,150,243,0.2); }
.premium-recipe-box.rarity-bg-epique:hover { box-shadow: 0 8px 15px rgba(0,0,0,0.6), 0 0 15px rgba(156,39,176,0.4), inset 0 0 20px rgba(156,39,176,0.2); }
.premium-recipe-box.rarity-bg-legendaire:hover { box-shadow: 0 8px 15px rgba(0,0,0,0.6), 0 0 15px rgba(255,193,7,0.4), inset 0 0 20px rgba(255,193,7,0.2); }

.premium-recipe-operator {
    font-size: 32px;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.premium-recipe-product {
    width: 105px;
    height: 105px;
    border-color: rgba(104, 253, 214, 0.5);
    box-shadow: 0 0 15px rgba(104, 253, 214, 0.1);
}

/* ==========================================================
   DÉTAILS TECHNOLOGIES - PANNEAU DE DÉVERROUILLAGE AMÉLIORÉ
   ========================================================== */

/* --- 1. Conteneur Global de la Section --- */
.unlocked-details-section .contenusection {
    padding: 10px;
}

/* --- 2. Panneau Principal --- */
.unlocked-details-panel {
    background: transparent; /* Fond retiré */
    border: none; /* Bordure retirée */
    padding: 10px 0; /* Padding réduit puisqu'il n'y a plus de boîte */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- 3. Sous-titres Cyan Stylisés --- */
.panel-subtitle {
    color: #68fdd6; /* Cyan vif */
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(104, 253, 214, 0.2); /* Ligne de séparation discrète */
    padding-bottom: 8px;
    display: inline-block;
}

/* --- 4. Barre de coût (Top) --- */
.cost-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px; 
    margin-bottom: 5px;
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 0;
}

/* Forcer le conteneur de la modale à rester en ligne */
.cost-control-bar .filter-group-modal {
    margin: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: auto !important;
    flex: 0 0 auto !important;
}

.cost-control-bar .filter-label-tech {
    margin: 0 !important;
    white-space: nowrap;
    color: #68fdd6;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LA CORRECTION EST ICI : Empêcher le trigger JS de s'étirer */
.cost-control-bar .oh-modal-trigger {
    width: auto !important;
    min-width: 180px;
    flex-grow: 0 !important;
}

/* --- 5. Grille de Prérequis (Design HUD 3 Cartes) --- */
.prerequisite-grid {
    display: flex;
    gap: 15px;
    align-items: stretch; /* Force toutes les cartes à avoir la même hauteur */
    flex-wrap: wrap;
}

/* Style Global des Cartes */
.hud-card {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 1px solid rgba(104, 253, 214, 0.15);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.hud-card:hover {
    border-color: rgba(104, 253, 214, 0.4);
    box-shadow: inset 0 0 20px rgba(104, 253, 214, 0.05), 0 4px 10px rgba(0,0,0,0.5);
}

.hud-card-title {
    color: #68fdd6;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

/* Carte 1 : Séquence */
.hud-sequence {
    width: 120px;
    align-items: center;
}
.hud-sequence .hud-card-title {
    text-align: center;
    width: 100%;
}
.seq-num {
    font-size: 3.5em;
    font-family: 'h73bold', sans-serif;
    color: #68fdd6;
    text-shadow: 0 0 15px rgba(104, 253, 214, 0.4);
    margin: auto 0; /* Centre verticalement parfait */
    line-height: 1;
}

/* Carte 2 : Technologie Requise */
.hud-requis {
    width: 170px;
    align-items: center;
}
.hud-requis .hud-card-title {
    text-align: center;
    width: 100%;
}

/* Carte 3 : Méthode d'obtention */
.hud-methode {
    flex: 1; /* Prend tout l'espace restant à droite */
    min-width: 250px;
}
.hud-methode .hud-card-title {
    text-align: left;
    width: 100%;
}
.obtain-method-text {
    color: #e0f7fa;
    font-size: 0.95em;
    line-height: 1.6;
    word-wrap: break-word;
    margin-top: auto;
    margin-bottom: auto;
}

/* ==========================================================
   TECHNOLOGIES - INTERRUPTEUR ET MODE LÉGENDAIRE
   ========================================================== */

/* --- Interrupteur Tech Avancée --- */
.oh-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}
.oh-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.oh-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.oh-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    transition: .4s;
}
input:checked + .oh-slider {
    background-color: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}
input:checked + .oh-slider:before {
    transform: translateX(24px);
    background-color: #ffd700;
    box-shadow: 0 0 8px #ffd700;
}
.oh-slider.round { border-radius: 24px; }
.oh-slider.round:before { border-radius: 50%; }

/* --- Surbrillance Légendaire Dynamique du Tableau --- */
td.tech-legendary-active {
    border-color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.08) !important;
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.2) !important;
    transition: all 0.3s ease;
}
td.tech-legendary-active img {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

/* ==========================================================
   TECHNOLOGIES - DOUBLE SLIDER DE COÛT 
   ========================================================== */
.dual-slider-container {
    position: relative;
    width: 100%;
    height: 24px; /* Zone d'interaction large */
    display: flex;
    align-items: center;
}
.dual-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(104, 253, 214, 0.2);
    z-index: 1;
}
.dual-slider-fill {
    position: absolute;
    height: 6px;
    background: #68fdd6;
    border-radius: 4px;
    z-index: 2;
}
.custom-dual-slider {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none; /* Laisse passer le clic vers le slider du dessous */
    z-index: 3;
    margin: 0;
    outline: none;
}
.custom-dual-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #68fdd6;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.5);
    pointer-events: auto; /* Seul le pouce bloque le clic */
}
.custom-dual-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #68fdd6;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.5);
    pointer-events: auto;
    border: none;
}

/* ========================================================= */
/* --- EFFET TECHNOLOGIE AVANCÉE (Super Légendaire Or) --- */
/* ========================================================= */

/* L'en-tête pulse avec une lueur dorée interne et externe */
.entetesection.tech-avancee-active {
    border-left-color: #ffd700;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5), inset 15px 0 30px -10px rgba(255, 215, 0, 0.3) !important;
    animation: pulseTechAvancee 2s infinite alternate ease-in-out;
}

/* Le balayage lumineux holographique couleur Or/Blanc */
.entetesection.tech-avancee-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 215, 0, 0.1) 30%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 215, 0, 0.1) 70%, transparent 100%);
    animation: shinySweepPingPong 3s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 0;
}

/* L'animation de respiration de la bordure et de l'ombre */
@keyframes pulseTechAvancee {
    0% { border-left-color: #d4af37; box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5); }
    100% { border-left-color: #ffd700; box-shadow: inset 0 0 60px rgba(255, 215, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5), inset 15px 0 30px -10px rgba(255, 215, 0, 0.4); }
}

/* Cartes de statistiques principales (Armes, Armures, Véhicules) */
.stat-highlight-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    width: 210px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-highlight-card--wide {
    width: 230px;
}

.stat-highlight-card--vehicle {
    padding: 20px 15px 15px 15px;
    width: 180px;
    min-height: 160px;
    box-sizing: border-box;
    justify-content: center;
}

.stat-highlight-card--help {
    cursor: help;
}

.stat-highlight-card:hover {
    border-color: #68fdd6;
    transform: translateY(-3px);
}

/* Icône SVG d'information avec effet de zoom au survol */
.info-tooltip-svg {
    width: 20px;
    height: 20px;
    cursor: help;
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.6));
    color: #ffcc00;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.info-tooltip-svg:hover {
    transform: scale(1.1);
}

/* Badge Administrateur pour les éléments inactifs */
.admin-badge-inactif {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
}

/* Flèches de navigation des variantes 3D (Véhicules) */
.vehicule-skin-nav {
    position: absolute;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #68fdd6;
    color: #68fdd6;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: background 0.2s;
}

.vehicule-skin-nav--prev {
    left: 15px;
}

.vehicule-skin-nav--next {
    right: 15px;
}

.vehicule-skin-nav:hover {
    background: rgba(104, 253, 214, 0.2);
}

/* =========================================
   EN-TÊTE DES DÉTAILS (Armes, Armures, etc.)
   ========================================= */
.details-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 150px;
    position: relative;
}
.details-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    flex: 1;
}
/* Conteneur de l'image (fusionne avec votre image-wrapper) */
.image-wrapper.details-image-wrapper {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* L'image à l'intérieur */
.details-image-wrapper img.details-main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.details-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.details-text-wrapper h1 {
    margin: 5px 0 15px 0;
}
.details-style-wrapper {
    display: flex;
    align-items: center;
    padding-right: 20px;
    flex-shrink: 0;
}
.details-style-img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}
.resource-bar-flex { display: flex; gap: 15px; }
.resource-group-flex { display: flex; gap: 10px; }

/* =========================================
   TITRES DE SECTIONS
   ========================================= */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title-group {
    display: flex;
    align-items: center;
}

/* =========================================
   PANNEAU RANG / ÉTOILES
   ========================================= */
.rank-stars-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
.rank-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.rank-stars-label {
    margin: 0;
    color: #e0f7fa;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rank-buttons-flex { display: flex; gap: 6px; }
.stars-flex { display: flex; align-items: center; gap: 4px; }
.vertical-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,255,255,0.1);
}

/* =========================================
   CARTES STATISTIQUES HIGHLIGHT
   ========================================= */
.stat-cards-container {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 30px;
    gap: 15px;
}
.stat-highlight-card img.iconedetails {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
}
.stat-highlight-label {
    font-size: 15px;
    color: #e0f7fa;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.stat-highlight-value {
    font-size: 24px;
    font-weight: bold;
    color: #68fdd6;
    margin: 5px 0 0 0;
}

/* =========================================
   GRILLE STATISTIQUES DÉTAILLÉES
   ========================================= */
.stats-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 60px;
}
.stats-column { display: flex; flex-direction: column; }
.stats-column-gap { display: flex; flex-direction: column; gap: 20px; }

.stat-row-dashed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.stat-row-left { display: flex; align-items: center; }
.stat-row-left img.icon-40 { width: 40px; height: 40px; }
.stat-row-left img.icon-34 { width: 34px; height: 34px; margin-left: 3px; }
.stat-row-label {
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
    color: #e0f7fa;
}
.stat-row-val {
    font-weight: bold;
    font-size: 18px;
    color: #68fdd6;
}

/* =========================================
   BARRES DE STATISTIQUES (Droite)
   ========================================= */
.stat-bar-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.stat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.stat-bar-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-bar-label-group img { width: 32px; height: 32px; }
.stat-bar-label { font-size: 1.1em; font-weight: bold; color: #e0f7fa; }
.stat-bar-value { font-size: 1.1em; font-weight: bold; color: #68fdd6; }

/* =========================================
   GRAPHIQUE PERTE DE DÉGÂTS
   ========================================= */
.damage-falloff-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
}
.damage-falloff-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.damage-falloff-header img { width: 24px; height: 24px; }
.damage-falloff-title {
    font-size: 1.05em;
    font-weight: bold;
    color: #e0f7fa;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.chart-wrapper { position: relative; width: 100%; height: 160px; }
.chart-wrapper canvas { width: 100%; height: 100%; display: block; }

/* =========================================
   BADGES SPÉCIAUX (Clés/Styles)
   ========================================= */
.special-badge {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
    color: #68fdd6;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.special-badge p { margin: 0; }

/* =========================================
   AUTRES CONTENEURS (Recettes, Calibrage)
   ========================================= */
.recipe-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85px;
}
.calib-wrapper { display: flex; justify-content: center; }
.calib-content {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}
.calib-text-bold {
    color: #68fdd6;
    font-weight: bold;
    font-size: 1.1em;
    white-space: pre-line;
}
.pre-line { white-space: pre-line; }
.inline-center { display: inline-block; margin: 0 auto; }

/* =========================================
   AFFICHAGE DES BONUS D'ENSEMBLE (Armures)
   ========================================= */
.set-bonus-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
}
.set-bonus-row p {
    text-align: left;
    margin: 0;
}
.set-bonus-badge {
    background-color: #68fdd6;
    margin-right: 20px;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: black;
    line-height: 25px;
}
.set-bonus-intersection {
    display: flex;
    align-items: center;
}
.skin-bonus-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =========================================
   ANIMAUX.PHP & SPECIFICS
   ========================================= */
.animal-desc-container {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.animal-desc-text {
    font-style: italic;
    color: #ddd;
}
.info-header-fav {
    color: #f1c40f !important;
    border-bottom-color: #f1c40f !important;
}
.info-header-prod {
    color: #e67e22 !important;
    border-bottom-color: #e67e22 !important;
}
.mech-row-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.mech-subtext {
    font-size: 0.9em;
    color: #a8c0d0;
}
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
}
.toggle-hint {
    font-size: 0.9em;
    color: #ddd;
    padding-bottom: 2px;
}
.premium-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 25px 0;
}
.traits-section-title {
    color: #68fdd6;
    font-size: 1em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.obtain-card.full-width {
    grid-column: 1 / -1;
}
.obtain-recipe-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}
.obtain-item-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.recipe-item-name {
    color: #e0f7fa;
    font-weight: bold;
    margin-top: 8px;
    font-size: 0.9em;
}
.obtain-desc-text {
    color: #a8c0d0;
    font-size: 0.95rem;
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
}
.capture-steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}
.step-title {
    color: #a8c0d0;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 5px;
}
.step-title.flex-baseline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.step-highlight {
    color: #68fdd6;
    font-weight: bold;
}
.step-subtitle {
    font-size: 0.8rem;
    color: #7a94a5;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}
.capture-bar-panel {
    background: rgba(0,0,0,0.3);
    padding: 30px 15px 15px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.capture-bar-bg {
    position: relative;
    height: 14px;
    background: #1a1a1a;
    border-radius: 7px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
    display: flex;
}
.capture-bar-green {
    height: 100%;
    background: linear-gradient(90deg, #1e7e34 0%, #28a745 100%);
    transition: width 0.4s ease;
    border-radius: 7px 0 0 7px;
}
.capture-bar-red {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #a71d2a 100%);
    transition: width 0.4s ease;
    border-radius: 0 7px 7px 0;
}
.capture-bar-text {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    color: #68fdd6;
    font-weight: bold;
    font-size: 0.95rem;
    transition: left 0.4s ease;
    white-space: nowrap;
}
.capture-bar-cursor {
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    width: 2px;
    height: 22px;
    background: #fff;
    box-shadow: 0 0 4px #000;
    transition: left 0.4s ease;
}
.capture-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #a8c0d0;
    font-family: 'h73light', sans-serif;
}
.incubation-stats-row {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    color: #a8c0d0;
    font-size: 0.9rem;
}
.incubation-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-18 {
    width: 18px;
    height: 18px;
}

/* =========================================
   ANOMALIES.PHP & SPECIFICS
   ========================================= */
.appearances-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- COMPÉTENCES --- */
.anomaly-skill-header {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.anomaly-skill-label {
    margin-right: 10px;
    color: #e0f7fa;
}
.anomaly-skill-slider {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    background: #26a69a;
    border-radius: 5px;
    height: 8px;
    cursor: pointer;
}
.anomaly-skill-output {
    margin-left: 10px;
    color: #e0f7fa;
}
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}
.skill-info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.skill-icon-img {
    width: 100px;
    height: 100px;
}
.skill-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.skill-name-text {
    margin: 0;
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
}
.skill-desc-block {
    display: flex;
    text-align: center;
    justify-content: center;
}
.skill-separator {
    grid-column: span 2;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.skill-separator img {
    width: 100%;
    opacity: 0.7;
}

/* --- ENVIRONNEMENT DE CONFINEMENT --- */
.env-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}
.env-icon {
    width: 75px;
    height: 75px;
}
.env-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.env-name {
    margin: 0;
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
}
.env-desc {
    margin: 0;
}
.env-value {
    text-align: left;
}
.env-value p {
    margin: 0;
    display: inline-block;
}

/* --- TRAITS (Yeux et Badges) --- */
.eyes-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: 10px;
    gap: 8px;
}
.eye-icon {
    width: 40px;
    height: 40px;
}
.eye-separator {
    width: 2px;
    height: 30px;
    background-color: #555;
    margin: 0 5px;
}
.eye-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.eye-badge {
    font-size: 11px;
    font-weight: bold;
    margin-top: -2px;
}
.eye-badge-deviant {
    color: #ff6b6b;
}
.eye-badge-scp {
    color: #4db8ff;
}

/* --- SLOTS DE TRAITS SPÉCIAUX --- */
.trait-deviant {
    border-color: #ff6b6b !important;
    box-shadow: inset 0 0 10px rgba(255,107,107,0.1) !important;
}
.trait-deviant .slot-placeholder, 
.trait-deviant .plus-icon, 
.trait-deviant .slot-title, 
.trait-deviant .remove-trait {
    color: #ff6b6b !important;
}
.trait-deviant .slot-desc {
    color: #ffd6d6 !important;
}

.trait-prismatic {
    border-color: #d1a3ff !important;
    box-shadow: inset 0 0 10px rgba(209,163,255,0.1) !important;
    pointer-events: none;
}
.trait-prismatic .slot-placeholder, 
.trait-prismatic .plus-icon, 
.trait-prismatic .slot-title {
    color: #d1a3ff !important;
}
.trait-prismatic .slot-desc {
    color: #f3e6ff !important;
}

.trait-chaos {
    border-color: #ff9900 !important;
    box-shadow: inset 0 0 10px rgba(255,153,0,0.1) !important;
    pointer-events: none;
}
.trait-chaos .slot-placeholder, 
.trait-chaos .plus-icon, 
.trait-chaos .slot-title {
    color: #ff9900 !important;
}
.trait-chaos .slot-desc {
    color: #ffe6cc !important;
}

.trait-scp {
    border-color: #4db8ff !important;
    box-shadow: inset 0 0 10px rgba(77,184,255,0.1) !important;
}
.trait-scp .slot-placeholder, 
.trait-scp .plus-icon, 
.trait-scp .slot-title, 
.trait-scp .remove-trait {
    color: #4db8ff !important;
}
.trait-scp .slot-desc {
    color: #d6f0ff !important;
}
.traits-mb-0 {
    margin-bottom: 0px !important;
}

/* =========================================
   SOUS-SECTIONS (Consommables, etc.)
   ========================================= */
.soussection-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.soussection-title {
    border-left: 5px solid #68fdd6;
    margin-bottom: 10px;
}
.soussection-title h2 {
    text-align: left !important;
    margin: 0 0 0 10px !important;
    font-size: 1.2rem;
}
.soussection-text {
    text-align: left !important;
    margin: 0 0 20px 20px !important;
    line-height: 1.5;
}

/* =========================================
   HELPERS : SYMBOLES & CATÉGORIES
   ========================================= */
.details-style-col {
    flex-direction: column;
    justify-content: center;
}
.details-category-text {
    color: #68fdd6;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.details-symbol-img {
    height: 80px;
    margin-bottom: 5px;
}

.details-symbol-large {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    margin-bottom: 8px;
}