/* --- IMPORTATIONS --- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;600;700;800;900&family=Share+Tech+Mono&display=swap');

/* --- RESET & GLOBAL --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: #0d0d0d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER --- */
.vulcan-header {
    background: #0d0d0d;
    border-bottom: 1px solid #1e1e1e;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vulcan-header img { height: 150px; }

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header-nav a {
    color: #888;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.2s;
}
.header-nav a:hover { color: #1DB954; }
.header-nav a.active { color: #fff; }

@media (max-width: 480px) {
    .vulcan-header { padding: 12px 16px; gap: 10px; }
    .vulcan-header img { height: 150px !important; }
    .header-nav { gap: 20px; }
    .header-nav a { font-size: 10px; letter-spacing: 1px; }
}

/* --- CONTENEURS --- */
.hub-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    width: 100%;
    flex: 1;
}

.app-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    width: 100%;
}

/* --- HUB TITRES --- */
.hub-title {
    font-family: 'Anton', sans-serif;
    color: #fff;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    line-height: 1;
}

.hub-subtitle {
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* --- LOGIN --- */
.login-box {
    background: #141414;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 36px 30px;
    max-width: 400px;
    margin: 0 auto;
}

.auth-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}
.auth-input:focus { border-color: #1DB954; }
.auth-input::placeholder { color: #444; }

.divider {
    color: #333;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0;
    display: flex;
    align-items: center;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #222;
    margin: 0 12px;
}

.toggle-auth { font-size: 12px; color: #555; margin-top: 16px; text-align: center; }
.toggle-auth a { color: #1DB954; text-decoration: none; font-weight: 700; }

/* --- BOUTONS --- */
.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    margin-bottom: 10px;
    text-decoration: none;
}

.btn-green { background: #1DB954; color: #fff; }
.btn-green:hover { background: #17a348; transform: translateY(-1px); }
.btn-green:active { transform: translateY(0); }

.btn-google { background: #fff; color: #111; margin-top: 8px; font-weight: 700; }
.btn-google:hover { background: #f0f0f0; }

.btn-logout {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
    font-size: 11px;
    padding: 10px 20px;
    width: auto;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-logout:hover { border-color: #555; color: #fff; }

.btn-danger { background: #8B0000; color: #fff; margin-top: 20px; }
.btn-danger:hover { background: #a00000; }

/* --- RGPD --- */
.rgpd-text { font-size: 13px; color: #888; line-height: 1.6; text-align: left; margin-bottom: 20px; }
.rgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.rgpd-label input { margin-top: 2px; accent-color: #1DB954; }

/* --- PROGRAMMES GRID --- */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .programs-grid { grid-template-columns: 1fr; }
}

.program-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 36px 24px 32px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: #1DB954;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover { border-color: #2a2a2a; background: #181818; transform: translateY(-3px); }
.program-card h2 { font-family: 'Anton', sans-serif; font-size: 1.8rem; text-transform: uppercase; margin: 0; letter-spacing: 1px; }
.program-card p { font-size: 12px; color: #555; margin: 0; line-height: 1.5; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.locked-card { opacity: 0.55; cursor: pointer; }
.locked-card:hover { transform: none; }
.locked-card::before { display: none; }

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* --- STATS --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 600px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
    background: #141414;
    border: 1px solid #1e1e1e;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.stat-card .stat-label { font-size: 10px; color: #444; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 10px; }
.stat-card .stat-value { font-family: 'Anton', sans-serif; font-size: 2.4rem; color: #fff; line-height: 1; }
.stat-card .stat-value.green { color: #1DB954; }

/* --- PROGRAMME HEADER --- */
.program-header { margin-bottom: 32px; text-align: center; }
.program-title {
    font-family: 'Anton', sans-serif;
    color: #fff;
    text-transform: uppercase;
    font-size: clamp(2rem, 6vw, 3rem);
    margin: 0;
    line-height: 1;
    letter-spacing: 1px;
}
.program-subtitle { color: #1DB954; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; margin-top: 8px; }

/* --- GRILLES JOURS --- */
.semaine-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 40px;
}

.semaine-grid-28 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .semaine-grid { grid-template-columns: repeat(4, 1fr); }
    .semaine-grid-28 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 360px) {
    .semaine-grid { grid-template-columns: repeat(3, 1fr); }
    .semaine-grid-28 { grid-template-columns: repeat(3, 1fr); }
}

.jour-btn {
    aspect-ratio: 1;
    background: #141414;
    border: 1px solid #222;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    padding: 8px;
    text-align: center;
    gap: 4px;
}
.jour-btn:hover { border-color: #1DB954; background: #0f1f14; }
.jour-btn.completed { border-color: #1DB954; background: rgba(29,185,84,0.08); }
.jour-btn.completed .jnum { color: #1DB954; }

.jnum { font-weight: 900; font-size: 1.2em; color: #fff; line-height: 1; }
.jlbl { font-size: 0.5em; color: #444; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

/* --- MODALE --- */
.v-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(6px);
}

.v-modal-content {
    background: #141414;
    border: 1px solid #252525;
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.v-close { position: absolute; top: 16px; right: 20px; font-size: 28px; cursor: pointer; color: #444; transition: color 0.2s; line-height: 1; user-select: none; }
.v-close:hover { color: #fff; }

@media (max-width: 600px) {
    .v-modal-content { padding: 24px 20px; }
}

/* --- CHAMPS SÉANCE --- */
.recup-explainer {
    background: #0a0a0a;
    border: 1px solid #1e1e1e;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}
.recup-field {
    background: transparent;
    border: none;
    border-bottom: 2px solid #1DB954;
    color: #fff;
    font-size: 2.4rem;
    font-family: 'Share Tech Mono', monospace;
    width: 100%;
    text-align: center;
    outline: none;
    padding: 8px 0;
    border-radius: 0;
    margin-bottom: 4px;
}
.recup-field::placeholder { color: #333; }

.ressenti-selector { display: flex; gap: 6px; margin-top: 10px; }
.ressenti-btn {
    flex: 1;
    padding: 10px 6px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    color: #555;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.ressenti-btn.selected { background: rgba(29,185,84,0.08); border-color: #1DB954; color: #fff; }

/* --- ANALYTICS --- */
.vulcan-analytics {
    background: #141414;
    border: 1px solid #1e1e1e;
    border-radius: 20px;
    padding: 28px;
    margin-top: 40px;
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.stat-box { background: #0a0a0a; border: 1px solid #1e1e1e; padding: 20px; border-radius: 14px; text-align: center; }
.stat-box h4 { color: #fff; font-size: 2rem; font-weight: 900; font-family: 'Anton', sans-serif; margin: 8px 0 0 0; }

/* --- PROFIL --- */
.container {
    max-width: 500px;
    width: calc(100% - 40px);
    margin: 40px auto;
    background: #141414;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #222;
}
.info-group { margin-bottom: 24px; }
.label { color: #444; font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.value { background: #0a0a0a; padding: 13px 16px; border-radius: 10px; font-size: 14px; border: 1px solid #1e1e1e; color: #ccc; }
.delete-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid #1e1e1e; }

/* --- HUB HEADER ROW --- */
.hub-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}