body {
    background: var(--teal-bg);
    font-family: 'CodeSaver-Regular';
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ══════════════════════════════
   PAGE INDEX — PRÉSENTATION
══════════════════════════════ */

main.page-index {
    max-width: 900px;
    width: 100%;
    margin: 32px auto 48px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── SECTIONS ── */

main.page-index .index-section {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(70, 94, 119, 0.12);
    overflow: hidden;
}

main.page-index .index-section h2 {
    font-family: 'CodeSaver-Regular';
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(70, 94, 119, 0.55);
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(70, 94, 119, 0.1);
    margin: 0;
}

/* ── CONTENU ARTICLE ── */

main.page-index .index-article {
    padding: 20px 24px 24px;
}

main.page-index .index-article p {
    font-family: 'CodeSaver-Regular';
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(70, 94, 119, 0.85);
    margin: 0;
}

/* ── ACCENTUATION DES VALEURS TECHNIQUES ── */

main.page-index .index-article p strong,
main.page-index .index-article p em {
    color: rgba(70, 94, 119, 1);
    font-style: normal;
    font-weight: 600;
}

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
    main.page-index {
        margin: 16px auto 32px;
        padding: 0 12px;
        gap: 14px;
    }

    main.page-index .index-article {
        padding: 16px 16px 20px;
    }
}

main {
    margin-top: 20px;
}

a {
    text-decoration: none;
    color: var(--black);
}

a:hover {
    color: var(--blue-light);
}

header {
    background-color: var(--blue-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 40px 14px;
}

.header-top h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}


.header-top h1 span {
    font-weight: 300;
    opacity: 0.75;
}

.back-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.back-link::before {
    content: '←';
    font-size: 0.9rem;
}

.back-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.header-divider {
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.35) 20%,
            rgba(255, 255, 255, 0.35) 80%,
            transparent
    );
    margin: 0 40px;
}

/* ── NAV PANELS ── */

#nav2 {
    display: flex;
    width: 100%;
    height: 110px;
    position: relative;
}

.panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    gap: 6px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 1;
    transition: z-index 0s;
}

#data-plot {
    background: var(--blue-light);
}

#pli {
    background: var(--blue-dark);
}

.panel-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    position: relative;
    z-index: 2;
}

.panel h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: 'CodeSaver-Regular';
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.panel-arrow {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.panel:hover .panel-arrow {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(2px);
}

.overlay-plot {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    transition: width 0.3s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s ease;
    border-bottom-right-radius: 20px;
    left: 0;
    background: var(--blue-light);
}

.overlay-pli {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    transition: width 0.3s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s ease;
    border-bottom-left-radius: 20px;
    right: 0;
    background: var(--blue-dark);
}

#data-plot.expanded {
    z-index: 10;
}

#data-plot.expanded .overlay-plot {
    width: 135%;
    box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.35);
}

#pli.expanded {
    z-index: 10;
}

#pli.expanded .overlay-pli {
    width: 135%;
    box-shadow: -8px 12px 24px rgba(0, 0, 0, 0.35);
}

.page-body {
    flex: 1;
    max-width: 98vw;
    width: 100%;
    margin: 0 auto;
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(70, 94, 119, 0.8);
    padding-left: 2px;
}

/* ── WORKSPACE GRID ── */

.workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: stretch;
}

/* ── CARD BASE ── */

.card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(70, 94, 119, 0.12);
    overflow: hidden;
}

.sidebar-card {
    display: flex;
    flex-direction: column;
}

.card-section {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(70, 94, 119, 0.1);
}

.card-section:last-child {
    border-bottom: none;
}

.section-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(70, 94, 119, 0.55);
    margin-bottom: 12px;
}


.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-nav-btn {
    background: none;
    border: 1px solid rgba(70, 94, 119, 0.2);
    color: rgba(70, 94, 119, 0.6);
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    font-family: 'CodeSaver-Regular';
}

.cal-nav-btn:hover {
    border-color: var(--blue-mid);
    color: var(--blue-mid);
    background: rgba(97, 149, 186, 0.08);
}

.cal-month-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(70, 94, 119, 1);
    letter-spacing: 0.04em;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-dow {
    font-size: 0.56rem;
    font-weight: 600;
    color: rgba(70, 94, 119, 0.45);
    text-align: center;
    padding: 3px 0;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cal-day {
    aspect-ratio: 1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(70, 94, 119, 0.35);
    position: relative;
    transition: all .12s;
    border: 1px solid transparent;
}

.cal-day.other-month {
    opacity: .25;
}

.cal-day.has-data {
    color: rgba(70, 94, 119, 0.85);
    cursor: pointer;
    background: rgba(97, 149, 186, 0.12);
    border-color: rgba(97, 149, 186, 0.3);
}

.cal-day.has-data:hover {
    background: rgba(97, 149, 186, 0.25);
    border-color: var(--blue-mid);
}

.cal-day.selected {
    background: var(--blue-mid) !important;
    border-color: var(--blue-mid) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(97, 149, 186, 0.45);
}

.cal-day.today {
    outline: 1px solid rgba(70, 94, 119, 0.3);
    outline-offset: -2px;
}

.cal-day.has-data::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue-mid);
    opacity: .7;
}

.cal-day.selected::after {
    background: rgba(255, 255, 255, 0.7);
}

.date-badge {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(97, 149, 186, 0.1);
    border: 1px solid rgba(97, 149, 186, 0.25);
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blue-mid);
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .02em;
}

/* ══════════════════════════════
   PLAGE LAMBDA
══════════════════════════════ */

.range-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.range-row label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(70, 94, 119, 0.6);
    width: 48px;
    letter-spacing: .04em;
}

.range-row input[type=number] {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(97, 149, 186, 0.3);
    color: rgba(70, 94, 119, 0.9);
    padding: 6px 10px;
    border-radius: var(--radius);
    font-family: 'CodeSaver-Regular';
    font-size: 0.78rem;
    font-weight: 500;
    transition: border-color .15s;
}

.range-row input[type=number]:focus {
    outline: none;
    border-color: var(--blue-mid);
    background: rgba(255, 255, 255, 0.85);
}

.rainbow-bar {
    height: 3px;
    margin: 10px 0 3px;
    background: linear-gradient(
            90deg,
            #7400ff, #0000ff 15%, #00b3ff 30%,
            #00ff00 45%, #ffff00 60%, #ff7700 75%, #ff0000
    );
    border-radius: 2px;
    opacity: .5;
}

.rainbow-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.56rem;
    color: rgba(70, 94, 119, 0.45);
    font-weight: 500;
}

/* ══════════════════════════════
   LISTE DES SPECTRES
══════════════════════════════ */

.spectre-list {
    flex: 1;
    min-height: 120px;
    max-height: 420px;
    overflow-y: auto;
    padding: 6px 8px;
}

.spectre-list::-webkit-scrollbar {
    width: 4px;
}

.spectre-list::-webkit-scrollbar-thumb {
    background: rgba(97, 149, 186, 0.3);
    border-radius: 4px;
}

.spectre-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    border: 1px solid transparent;
}

.spectre-item:hover {
    background: rgba(97, 149, 186, 0.1);
}

.spectre-item.active {
    background: rgba(97, 149, 186, 0.15);
    border-color: rgba(97, 149, 186, 0.35);
}

.spectre-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.spectre-info {
    flex: 1;
    overflow: hidden;
}

.spectre-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(70, 94, 119, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spectre-time {
    font-size: 0.62rem;
    font-weight: 400;
    color: rgba(70, 94, 119, 0.5);
    margin-top: 2px;
}

.spectre-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(97, 149, 186, 0.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all .15s;
}

.spectre-item.active .spectre-check {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: white;
}

.empty-list {
    padding: 20px 12px;
    text-align: center;
    color: rgba(70, 94, 119, 0.45);
    font-size: 0.75rem;
    line-height: 1.6;
    font-weight: 500;
}

/* ══════════════════════════════
   BOUTONS D'ACTION
══════════════════════════════ */

.btn-group {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--radius);
    font-family: 'CodeSaver-Regular';
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .18s;
    border: none;
}

.btn-primary {
    background: var(--blue-mid);
    color: white;
    box-shadow: 0 3px 10px rgba(97, 149, 186, 0.35);
}

.btn-primary:hover {
    background: rgba(70, 94, 119, 1);
    box-shadow: 0 4px 14px rgba(70, 94, 119, 0.4);
}

.btn-secondary {
    background: rgba(70, 94, 119, 0.12);
    border: 1px solid rgba(70, 94, 119, 0.2);
    color: rgba(70, 94, 119, 0.75);
}

.btn-secondary:hover {
    background: rgba(70, 94, 119, 0.2);
    color: rgba(70, 94, 119, 1);
}

/* ══════════════════════════════
   CARTE GRAPHIQUE
══════════════════════════════ */

.chart-card {
    display: flex;
    flex-direction: column;
    min-height: 85vh;
}

.chart-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(70, 94, 119, 0.1);
    flex-wrap: wrap;
}

.tool-btn {
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid rgba(97, 149, 186, 0.25);
    background: transparent;
    color: rgba(70, 94, 119, 0.55);
    font-family: 'CodeSaver-Regular';
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .15s;
}

.tool-btn:hover {
    color: rgba(70, 94, 119, 1);
    border-color: var(--blue-mid);
    background: rgba(97, 149, 186, 0.08);
}

.tool-btn.active {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: white;
    box-shadow: 0 2px 8px rgba(97, 149, 186, 0.3);
}

.toolbar-sep {
    width: 1px;
    background: rgba(70, 94, 119, 0.12);
    height: 20px;
    margin: 0 4px;
}

.toolbar-hint {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(70, 94, 119, 0.4);
    letter-spacing: .02em;
}

/* ── ZONE GRAPHIQUE ── */

.chart-area {
    flex: 1;
    padding: 20px;
    position: relative;
    min-height: 70vh;
}

canvas {
    width: 100% !important;
}

.empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.empty-state .icon {
    font-size: 2.8rem;
    opacity: .18;
}

.empty-state p {
    color: rgba(70, 94, 119, 0.45);
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-state p strong {
    color: rgba(70, 94, 119, 0.65);
}

.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 197, 197, 0.5);
    border-radius: 14px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(97, 149, 186, 0.2);
    border-top-color: var(--blue-mid);
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── BARRE DE STATS ── */

.stats-bar {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border-top: 1px solid rgba(70, 94, 119, 0.1);
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 18px;
    border-right: 1px solid rgba(70, 94, 119, 0.1);
}

.stat:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(70, 94, 119, 0.45);
}

.stat-value {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(70, 94, 119, 0.85);
}

.stat-value.hi {
    color: var(--blue-mid);
}

/* ══════════════════════════════
   TOAST
══════════════════════════════ */

#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--blue-dark);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-family: 'CodeSaver-Regular';
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateY(70px);
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
}

#toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ══════════════════════════════
   PAGE PLI — IMAGERIE
══════════════════════════════ */

.pli-image-area {
    flex: 1;
    padding: 20px;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
}

#pli-canvas {
    display: none;
    cursor: grab;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(70, 94, 119, 0.15);
}

#pli-canvas:active {
    cursor: grabbing;
}

.pli-thumb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(70, 94, 119, 0.15);
    border: 1.5px solid rgba(70, 94, 119, 0.3);
    transition: all .15s;
}

.pli-thumb-dot.selected {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
}

.pli-zoom-controls {
    display: flex;
    gap: 4px;
}

.pli-stretch-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-section-list {
    padding: 16px 18px 6px;
    border-bottom: 1px solid rgba(70, 94, 119, 0.1);
}

.stretch-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(70, 94, 119, 0.55);
    margin-right: 4px;
}

.empty-state-hint {
    font-size: 0.72rem;
}

#pli-stats-bar {
    display: none;
}

#pli-canvas.visible {
    display: block;
    position: relative;
    z-index: 10;
}

.empty-state.hidden {
    display: none;
}

#pli-stats-bar.visible {
    display: flex;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */

footer {
    background-color: rgba(97, 149, 186, 1);
    color: white;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px 24px;
}

/* ── TOP GRID ── */

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

/* ── COLONNES ── */

.footer-col-title {
    font-family: 'CodeSaver-Regular';
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.footer-divider-small {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    margin-bottom: 18px;
    border-radius: 2px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-main {
    font-weight: 600;
    color: white;
    font-size: 0.82rem;
    line-height: 1.5;
}

.footer-link:hover {
    color: white;
}

.footer-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ── SOCIALS ── */

.footer-socials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.footer-social-link:hover .footer-social-icon {
    background: rgba(255, 255, 255, 0.22);
}

.footer-social-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ── SEPARATEUR ── */

.footer-hr {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 36px 0 20px;
}

/* ── BAS DU FOOTER ── */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-copy {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: white;
}

.footer-bottom-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════
   PAGE CRÉDITS
══════════════════════════════ */

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.credits-card {
    padding: 0;
}

.credits-section {
    display: flex;
    gap: 18px;
    padding: 24px 24px;
}

.credits-section-icon {
    font-size: 1.4rem;
    color: var(--blue-mid);
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: 2px;
}

.credits-section-content {
    flex: 1;
}

.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.credits-item {
    border-left: 2px solid rgba(97, 149, 186, 0.3);
    padding-left: 12px;
}

.credits-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(70, 94, 119, 0.9);
    letter-spacing: 0.02em;
}

.credits-role {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(70, 94, 119, 0.55);
    margin-top: 3px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }
}

/* ── PLAGE LAMBDA ── */
.lambda-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.lambda-input {
    width: 75px;
    padding: 4px 6px;
    border: 1px solid rgba(70, 94, 119, 0.3);
    border-radius: 4px;
    font-family: 'CodeSaver-Regular';
    font-size: 11px;
    color: rgba(70, 94, 119, 1);
    background: rgba(255, 255, 255, 0.6);
}

.lambda-input:focus {
    outline: none;
    border-color: var(--blue-mid);
}

.lambda-sep {
    color: rgba(70, 94, 119, 0.5);
    font-size: 11px;
}

/* ── TOOLBAR GROUPS ── */
.toolbar-group {
    display: flex;
    gap: 4px;
}

/* ── CANVAS VISIBILITY ── */
#myChart {
    display: none;
}

#myChart.visible {
    display: block;
}

#stats-bar {
    display: none;
}

#stats-bar.visible {
    display: flex;
}

.empty-state.hidden {
    display: none;
}

.wavelength_select {
    display: flex;
    flex-direction: column;
}

.wavelength_select select {
    text-align: center;
    background-color: rgba(97, 149, 186, 0.12);
    border-color: rgba(97, 149, 186, 0.3);
    color: rgba(70, 94, 119, 1);
    border-radius: 5px;
}