:root {
    --twitch-purple: #9146FF;
    --eigengrau: #16161a;
    --dark-card: #1e1e23;
    --text-muted: #b3b3c6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--eigengrau);
    color: white;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(22, 22, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: var(--twitch-purple);
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 5px;
}

nav a:hover {
    color: var(--twitch-purple);
    padding: 8px;
    border: 1px solid #1e1e23;
    background-color: #1e1e23;
    border-radius: 5px;
}

section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: auto;
}
.section-main{
background-image: url("./background-mountains.png");
    background-size: cover;
    max-width: none;

}
.section-association{
background-image: url("./background-research.png");
    background-size: cover;
    max-width: none;

}
.hero-container{
    background-color:rgba(74, 72, 72, 0.5);
    border-radius: 40px;
    padding: 3rem;
}
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}

.hero h2 {
    opacity:1;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero span {
    opacity:1;
    color: var(--twitch-purple);
}

.hero p {
    opacity:1;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--twitch-purple);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.button:hover {
    opacity: 0.85;
}

h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--twitch-purple);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.streamers {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.orga {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--dark-card);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    @media (max-width: 512px) {
        justify-content: start;
        align-items: start;
    }
    border: 2px solid transparent;

}

.card:hover {
    border: 2px solid var(--twitch-purple);
}

.card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--twitch-purple);
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.overflow-x-scroll {
    overflow-x: scroll;
}

.organisation {
    background: #1a1a1f;
    max-width: none;
}

.planning {
    max-width: none;

}

.streamersSection {
    background: #1a1a1f;
    max-width: none;
    text-align: center;
}

.association {
    max-width: 800px;
    text-align: center;
}

.association p {
    color: var(--text-muted);
}

.pointer {
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 600px) {
    nav ul {
        gap: 1rem;
    }
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.onAir {
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: red;
    border: 2px solid brown;
    width: fit-content;
}

.offline{
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: grey;
    border: 2px solid darkgrey;
    color:black;
    width: fit-content;
}

.hidden {
    display: none;
}

.border-b-white {
    border-bottom: 1px solid #1e1e23;
}

.purple {
    color: var(--twitch-purple)
}

.subtitle {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}
.gap{
    gap:2em;
}
.flex-col{
    flex-direction: column;
    align-items: center;
}

.justify-start {
    justify-content: start !important;
}

.between {
    justify-content: space-between;
}

.around {
    justify-content: space-around;
}


.i_timeliner ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.i_timeliner li {
    float: left;
    width: 20%;
    position: relative;
    display: inline-block;
    list-style-type: none;
    height: 3px;
    background: #fff;
}

.i_timeliner li:before {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border: 3px solid red;
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: red;
    letter-spacing: 0px;
}

.i_timeliner li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: blue;
    top: 25px;
    left: 0%;
    z-index: -1;
}

.i_timeliner_box {
    border: 1px solid #ccc;
    margin: 20px;
    min-height: 140px;
    box-sizing: border-box;
    padding: 0 25px;
}

.i_timeliner ul li div {
    position: absolute;
    left: calc(100% + 7px);
    width: 280px;
    padding: 15px;
    font-size: 1rem;
    white-space: normal;
    color: red;
    background: white;
}

.i_timeliner ul li div::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.i_timeliner ul li:nth-child(odd) div {
    top: -16px;
    transform: translateY(-100%);
}

.i_timeliner ul li:nth-child(odd) div::before {
    top: 100%;
    border-width: 8px 8px 0 0;
    border-color: white transparent transparent transparent;
}

.i_timeliner ul li:nth-child(even) div {
    top: calc(100% + 16px);
}

.i_timeliner ul li:nth-child(even) div::before {
    top: -8px;
    border-width: 8px 0 0 8px;
    border-color: transparent transparent transparent white;
}


:root {
    --left-col-width: 350px;
    --row-height: 56px;
    --timeline-height: var(--row-height);
    --timeline-width: 2200px; /* largeur totale scrollable */
    --grid-color: rgba(255, 255, 255, 0.08);
    --bg: #0b0f1a;
    --card: #121a2a;
    --text: #e7ecff;
    --muted: rgba(231, 236, 255, 0.7);
}

* {
    box-sizing: border-box;
}

.timeline-container {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    color: var(--text);
    padding: 18px;
}

h1 {
    margin: 0 0 12px;
    font-size: 18px;
}

.table {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;

}

.header,
.row {
    display: grid;
    grid-template-columns: var(--left-col-width) 1fr;
    align-items: stretch;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cell-left {
    padding: 12px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    overflow-x: hidden;

}

.cell-right {
    padding: 8px 0;
    overflow: hidden;
}

/* --- timeline scroll area --- */
.timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

/* pour avoir une barre de scroll visible (optionnel) */
.timeline-scroll::-webkit-scrollbar {
    height: 10px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.timeline {
    position: relative;
    width: var(--timeline-width);
    height: var(--timeline-height);
    border-left: 1px solid var(--grid-color);
    border-right: 1px solid var(--grid-color);
    background: linear-gradient(to right, var(--grid-color) 1px, transparent 1px) 0 0 / 120px 100%;
}

.time-labels {
    position: relative;
    width: var(--timeline-width);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 120px;
    gap: 0;
    padding: 6px 0 10px;
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.time-label {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- row styling --- */
.row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.row:last-child {
    border-bottom: none;
}

.timeline-row {
    position: relative;
    width: var(--timeline-width);
    height: var(--timeline-height);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 120px 100%;
}

/* --- event blocks --- */
.event {
    position: absolute;
    top: 10px;
    height: calc(var(--row-height) - 20px);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(120, 160, 255, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.event .badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    flex: 0 0 auto;
}

.event:hover {
    background: rgba(120, 160, 255, 0.26);
    transform: translateY(-1px);
}