/* =========================================================
   DEPOT 101 - PLAYER
   Charte graphique commune au site principal
   ========================================================= */

:root {
    --player-accent: #7cff6b;
    --player-accent-soft: rgba(124, 255, 107, 0.08);
    --player-border: rgba(255, 255, 255, 0.12);
    --player-muted: #adb5bd;
    --player-panel: #292f35;
}

/* ---------------------------------------------------------
   BASE - IDENTITE VISUELLE DEPOT 101
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;

    background-color: var(--bs-body-bg, #212529);
    color: var(--bs-body-color, #dee2e6);

    font-family: "Courier Prime", monospace;
    font-size: 16px;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   LOGO ET TITRES
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   TITRES - IDENTITE VISUELLE DEPOT 101
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   TITRES - IDENTITE VISUELLE DEPOT 101
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5 {
    color: var(--bs-heading-color, #fff);
}

.main-content h1 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}

.main-content h1 .titre,
.main-content h1 .titre:hover {
    color: white;
    font-weight: 500;
    text-decoration: none;
}


/* ---------------------------------------------------------
   HEADER / NAVIGATION
   --------------------------------------------------------- */

.site-header {
    border-bottom: 1px solid var(--player-border);
    background-color: #292f35;
}

.site-header .navbar {
    padding-top: 13px;
    padding-bottom: 13px;
    font-family: "Courier Prime", monospace;
}

.site-header .navbar-brand {
    color: white;
}

.site-header .navbar-brand:hover {
    color: white;
}

.brand {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand:hover {
    color: white !important;
}

.brand-separator {
    padding-inline: 5px;
    color: #6c757d;
    font-weight: 400;
}

.brand-subtitle {
    color: var(--player-accent);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
}

.site-header .nav-link {
    color: #adb5bd;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
    color: var(--player-accent);
}

/* ---------------------------------------------------------
   RECHERCHE
   --------------------------------------------------------- */

.navbar form {
    margin-left: 15px;
}

/* ---------------------------------------------------------
   CONTENU PRINCIPAL
   --------------------------------------------------------- */

.main-content {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 40px;
}

a {
    color: var(--player-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
    color: #b5ffad;
}

p {
    margin-bottom: 1rem;
}

.muted {
    color: var(--player-muted);
}

/* ---------------------------------------------------------
   TITRES DE PAGE
   --------------------------------------------------------- */

.page-heading,
.intro-panel {
    margin-bottom: 30px;
}

.eyebrow {
    margin-bottom: 9px;
    color: var(--player-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   ACCUEIL
   --------------------------------------------------------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 24px;

    color: #dee2e6;
    background-color: var(--player-panel);
    border: 1px solid var(--player-border);
    border-radius: 5px;

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

.feature-card:hover {
    color: #fff;
    background-color: #303940;
    border-color: rgba(124, 255, 107, 0.55);
    transform: translateY(-2px);
}

.feature-code {
    margin-bottom: 15px;
    color: var(--player-accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.feature-card h2 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--player-muted);
}

.card-link {
    margin-top: auto;
    padding-top: 12px;
    color: var(--player-accent);
    font-size: 0.9rem;
}

/* ---------------------------------------------------------
   PANNEAUX PLAYER
   --------------------------------------------------------- */

.player-panel {
    padding: 10px;
    background-color: var(--player-panel);
    border: 1px solid var(--player-border);
    border-radius: 5px;
}

#radio-player {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    aspect-ratio: 16 / 9;
    padding: 20px;

    color: var(--player-accent);
    text-align: center;

    background-color: #111518;
    border: 1px solid var(--player-border);
    border-radius: 4px;
}

.screen-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

.screen-message {
    color: #fff;
    font-size: clamp(1.3rem, 4vw, 2.4rem);
}

.screen-subtitle {
    color: var(--player-muted);
    font-size: 0.8rem;
}

.radio-screen {
    background:
        radial-gradient(
            ellipse at center,
            #26312a 0%,
            #111518 75%
        );
}

/* ---------------------------------------------------------
   BOUTONS
   --------------------------------------------------------- */

.player-panel .btn,
.main-content .btn {
    font-family: inherit;
}

.btn-outline-success {
    --bs-btn-color: var(--player-accent);
    --bs-btn-border-color: rgba(124, 255, 107, 0.55);
    --bs-btn-hover-bg: rgba(124, 255, 107, 0.12);
    --bs-btn-hover-border-color: var(--player-accent);
    --bs-btn-hover-color: #fff;
}

/* ---------------------------------------------------------
   LIENS ET INFORMATIONS
   --------------------------------------------------------- */

.text-link {
    display: inline-block;
    margin-top: 10px;
}

.footer-status {
    color: var(--player-accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--player-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    padding-top: 17px;
    padding-bottom: 17px;

    color: var(--player-muted);
    font-size: 0.85rem;
}

.site-footer a,
footer a {
    color: var(--player-muted);
    text-decoration: none;
}

.site-footer a:hover,
footer a:hover {
    color: var(--player-accent);
}

footer .bi {
    font-size: 1.2rem;
}

.site-footer.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .site-header .navbar > .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .site-header .navbar-nav {
        gap: 16px !important;
    }

    .site-header .nav-link {
        padding: 4px 0;
    }

    .navbar form {
        margin-left: 0;
    }

    .main-content {
        padding-top: 10px;
        padding-bottom: 35px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 180px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.radio-extra-button {
    display:inline-block;
    padding:10px 22px;
    background:#302044;
    color:#d7aaff;
    border:1px solid #d7aaff;
    font-family:monospace;
    font-size:14px;
    letter-spacing:2px;
    cursor:pointer;
    text-decoration:none;
}

.radio-extra-button:hover {
    background:#503366;
    color:#fff;
}