:root {
    --pip-boy-black: #000;
    --pip-boy-light-green: #0c0;
    --pip-boy-medium-green: #090;
    --pip-boy-dark-green: #060;

    --pip-boy-primary-color: #18dc0c;
    --pip-boy-secondary-color: #11291b;
    --pip-boy-background-color: #10170f;
}

.justify-content-center {
    justify-content: center !important;
}

header {
    text-transform: uppercase;
}

.nav {
    display: flex;
    flex-wrap: nowrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-tabs {
    /*border-bottom: 2px solid var(--pip-boy-light-green);*/
}

/*.nav a {*/
/*    animation: colorPulse 5s infinite ease-in-out;*/
/*}*/

.nav-item {
    /*margin: 0 10px;*/
    margin: 0;
    width: 20%;
    text-align: center;
}

.nav-tabs .nav-link {
    margin-bottom: -2px;
    background: none;
    /*border: 2px solid transparent;*/
    border-bottom: 2px solid var(--pip-boy-light-green);
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: bold;
}

.nav-tabs .nav-link.active {
    border-color: var(--pip-boy-light-green);
    border-left: 2px solid var(--pip-boy-light-green);
    border-top: 2px solid var(--pip-boy-light-green);
    border-right: 2px solid var(--pip-boy-light-green);
    border-bottom: none;

}

.tab-content > .tab-pane {
    display: none;
}

.fade:not(.show) {
    opacity: 0;
}

.tab-content > .active {
    display: block;
}

.subnav-tabs .nav-link {
    font-weight: normal;
    opacity: 0.5;
}

.subnav-tabs .nav-link.active {
    font-weight: bold;
    opacity: 1;
}

/* ----------------------------------------------------------------------- */
.screen {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Le contenu prendra toute la hauteur disponible */
    display: flex;
}

.content {
    flex: 1; /* La zone de contenu prendra toute la largeur disponible */
    /*padding: 20px;*/
}

footer {
    color: var(--pip-boy-light-green);
    padding: 20px;
    display: flex;
    justify-content: center;
}

.footer-section {
    width: 33%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin: 0.2rem;
}

.background-section {
    /*background-color: var(--pip-boy-dark-green);*/
    position: relative;
}

.background-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-color: var(--pip-boy-dark-green);
}

.background-section::after,
.background-section::before {
    pointer-events: none !important;
}

#StatusContener {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.level-progress-bar {
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-dark-green);
    width: 70%;
    height: 1.2rem;
    margin-left: 1rem;
}

.level-progress-bar::before {
    content: "";
    display: block;
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-light-green);
    width: 38%;
    height: 1.1rem;
    max-height: 100%;
}

.progress-bar-100 {
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-dark-green);
    width: 9rem;
    height: 1.2rem;
}

.progress-bar-100::before {
    content: "";
    display: block;
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-light-green);
    width: 100%;
    height: 1.1rem;
    max-height: 100%;
}

.progress-bar-85 {
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-dark-green);
    width: 9rem;
    height: 1.2rem;
}

.progress-bar-85::before {
    content: "";
    display: block;
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-light-green);
    width: 85%;
    height: 1.1rem;
    max-height: 100%;
}

.progress-bar-75 {
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-dark-green);
    width: 9rem;
    height: 1.2rem;
}

.progress-bar-75::before {
    content: "";
    display: block;
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-light-green);
    width: 75%;
    height: 1.1rem;
    max-height: 100%;
}

.progress-bar-60 {
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-dark-green);
    width: 9rem;
    height: 1.2rem;
}

.progress-bar-60::before {
    content: "";
    display: block;
    border: 0.1rem solid var(--pip-boy-light-green);
    background-color: var(--pip-boy-light-green);
    width: 60%;
    height: 1.1rem;
    max-height: 100%;
}

.myTab2Content div {
    border: 1px solid red;
}

/*.vault-boy svg {*/
/*    max-height: calc(100vh - 150px); !* 150px de marge pour le titre et les barres de niveau *!*/
/*    width: auto;*/
/*}*/

.vault-boy img {
    max-height: 25vmin; /* 150px de marge pour le titre et les barres de niveau */
    width: auto;
}

/*.vault-boy svg {*/
/*    max-height: 100%; !* Ajuste la hauteur de l'image SVG en fonction de la taille du conteneur *!*/
/*    width: auto;*/
/*}*/

.status-icons img {
    height: 3em;
}

/* ---------------------------------------------------------------------------- */
.info-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-large {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.8rem;
    height: 4.8rem;
}

.info-icon-thin {
    width: 2.4rem;
    height: 4.8rem;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.info-icon {
    margin: 0.4rem;
    padding: 0 0.2rem;
}

/* -------------------------------------------------------------------------- */
#myTab2 > li a {
    /*font-size: 2em;*/
}

/* -------------------------------------------------------------------------- */
.statConteneur {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
}

.statConteneur .menu {
    width: 25%;
}

.statConteneur .datas {
    width: 75%;
}

.specialNav {
    flex-direction: column;
}

#myTab3 .nav-link, #myTab4 .nav-link {
    font-weight: bold;
    opacity: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#myTab3 .nav-link.active, #myTab3 .nav-link:hover, #myTab4 .nav-link.active, #myTab4 .nav-link:hover {
    background-color: var(--pip-boy-light-green);
    color: var(--pip-boy-dark-green);
}

.special-data-contener {
    display: flex;
    flex-direction: column;
}

.special-data-contener > * {
    display: flex;
    justify-content: center;
}

.special-data-contener img {
    max-height: 45vmin;
    height: 45vmin;
}

.special-data-contener p {
    padding: 20px;
}

/* ===== Variables de taille de police (réglage "Taille du texte") ===== */
:root {
    --font-scale: 1;
}

html {
    font-size: calc(16px * var(--font-scale));
}

/* ===== DATA : scroll “joli” ===== */
.tab-pane#data .scroll-area {
    max-height: 100%;
    overflow: auto;
    padding-right: .5rem;
    -webkit-overflow-scrolling: touch
}

.tab-pane#data .scroll-area::-webkit-scrollbar {
    width: 8px
}

.tab-pane#data .scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, .06)
}

.tab-pane#data .scroll-area::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, .35);
    border-radius: 8px
}

.tab-pane#data .scroll-area:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, .55)
}

.tab-pane#data .scroll-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 0, .55) rgba(0, 255, 0, .06)
}

/* ===== MAP ===== */
.map-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem
}

.map-svg {
    width: min(100%);
    height: auto;
    filter: drop-shadow(0 2px 0 rgba(0, 255, 0, .25))
}

/* ===== Réglages (grille + switch langue) ===== */
.settings-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: .75rem 1rem;
    align-items: center
}

.settings-grid label {
    display: flex;
    gap: .5rem;
    align-items: center
}

.settings-actions {
    margin-top: 1rem;
    display: flex;
    gap: .5rem
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .5rem 0 .75rem
}

.lang-switch label {
    display: flex;
    align-items: center;
    gap: .35rem
}

/* ===== Sliders style pip-boy ===== */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    height: 2rem
}

input[type="range"]:focus {
    outline: none
}

/* WebKit */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(0, 255, 0, .25), rgba(0, 255, 0, .25));
    border: 1px solid rgba(0, 255, 0, .6);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 0, .15)
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0b400b;
    border: 2px solid #39ff14;
    margin-top: -7px;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, .15)
}

/* Firefox */
input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 8px;
    background: rgba(0, 255, 0, .25);
    border: 1px solid rgba(0, 255, 0, .6);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 0, .15)
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0b400b;
    border: 2px solid #39ff14;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, .15)
}

input[type="range"]::-moz-range-progress {
    background: rgba(0, 255, 0, .35);
    height: 6px;
    border-radius: 8px
}

/* MS Edge (legacy) */
input[type="range"]::-ms-track {
    height: 6px;
    background: transparent;
    border-color: transparent;
    color: transparent
}

input[type="range"]::-ms-fill-lower {
    background: rgba(0, 255, 0, .35)
}

input[type="range"]::-ms-fill-upper {
    background: rgba(0, 255, 0, .25)
}

input[type="range"]::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0b400b;
    border: 2px solid #39ff14
}

/* === Bouton Pip-Boy (Réglages) === */
.settings-actions button {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #39ff14;
    background: #0b1f0b;
    border: 1px solid rgba(0, 255, 0, .6);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 0, .15);
    border-radius: 8px;
    position: relative;
    isolation: isolate;
    transition: background .2s ease, transform .06s ease, box-shadow .2s ease, filter .2s ease;
}

/* léger “grain” interne façon CRT, ne bloque pas les clics */
.settings-actions button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(0deg, rgba(0, 255, 0, .06), rgba(0, 255, 0, .06) 2px, transparent 2px, transparent 4px);
    pointer-events: none;
    opacity: .6;
    mix-blend-mode: screen;
}

/* état : hover / active / focus */
.settings-actions button:hover {
    background: #0f2a0f;
    transform: translateY(-1px);
}

.settings-actions button:active {
    transform: translateY(0);
    filter: brightness(1.05);
}

.settings-actions button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, .35),
    inset 0 0 0 1px rgba(0, 255, 0, .25);
}

/* désactivé (au cas où) */
.settings-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
}
