body {
    margin: 0;
    font-family: 'Minecraftia', sans-serif;
    background: url('fond-minecraft-Sky.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* ✅ Centrage du logo et du texte d’intro */
.logo-container {
    text-align: center;
    padding: 20px;
}

/* ✅ Logo principal responsive */
.logo {
    width: 500px;
    margin: 0 auto 20px auto;
    display: block;
    position: relative;
    top: -200px;
    pointer-events: none;
    /* Empêche l’interaction */
    user-select: none;
    -webkit-user-drag: none;
}

.logo-petit {
    width: 200px;
    margin: 0;
    display: block;
    text-align: left;
    pointer-events: none;
    /* Empêche l’interaction */
    user-select: none;
    -webkit-user-drag: none;
}

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #000000;
    background-color: rgba(255, 255, 255, 0.432);
    padding: 20px;
    border-radius: 10px;
    font: optional;
    font-weight: bold;
    margin: -200px auto 0 auto;
    /* remonte le bloc intro */
    text-align: center;
    width: 250px;
}

.intro a {
    color: #00ffcc;
    text-decoration: underline;
    font-weight: bold;
}

header {
    align-items: center;
    padding: 20px;
    width: 97%;
}

@keyframes expandBackground {
    0% {
        width: 0;
        opacity: 0;
        transform: scaleX(0);
    }

    60% {
        opacity: 1;
        transform: scaleX(1.05);
    }

    100% {
        width: 100%;
        transform: scaleX(1);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.status-message {
    text-align: center;
    font-size: 20px;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #f44336;
    font-weight: bold;
    margin-top: 0;
    overflow: hidden;
    transform-origin: center;
    animation: expandBackground 1s ease-out forwards;
}

.status-message span {
    display: inline-block;
    opacity: 0;
    animation: fadeInText 0.8s ease-in forwards;
    animation-delay: 1s;
    /* Après fond */
}

.status-message.open {
    color: #4caf50;
}

h2 {
    text-align: center;
    color: #8bc34a;
    font-size: 30px;
    margin-top: 20px;
    text-shadow: -2px -2px 0 #3d2106,
        /* Contour en noir */
        2px -2px 0 #3d2106,
        -2px 2px 0 #3d2106,
        2px 2px 0 #3d2106;
}

/* ✅ Streamer grid sans espace */
.streamer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Espace entre les cartes */
}

/* ✅ Cartes streamers collées, en ligne */
.streamer-card {
    display: flex;
    align-items: center;
    background-color: rgba(34, 34, 34, 0.8);
    padding: 25px;
    margin: 0;
    border: 2px solid #8bc34a;
    border-radius: 10px;
    width: 250px;
    box-sizing: border-box;
}

/* ✅ Avatar circulaire à gauche */
.avatar {
    width: 70px;
    height: 70px;
    max-width: 70px;
    border-radius: 50%;
    margin-right: 10px;
}

.streamer-card h3 {
    margin: 0 0 5px;
    font-size: 14px;
}

.streamer-card a {
    margin-left: 5px 0 5px 0;
    color: #ff4040;
    text-decoration: none;
    font-size: 15px;
}

.minecraft-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-family: 'Minecraftia', sans-serif;
    background-color: #5e7c16;
    /* vert pixel Minecraft */
    border: 4px solid #3b5111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    box-shadow: inset -2px -2px 0 #3b5111, inset 2px 2px 0 #91bd36;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.minecraft-btn:hover {
    background-color: #91bd36;
    border-color: #5e7c16;
    box-shadow: inset -2px -2px 0 #5e7c16, inset 2px 2px 0 #c0e57c;
    transform: translateY(-1px);
}

.streamer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lien-twitch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #ff4040;
    text-decoration: none;
    margin-top: 4px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.a-propos {
    background-color: rgba(0, 0, 0, 0.5);
    margin: 30px auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
}

.live-status {
    font-family: 'Minecraftia', sans-serif;
    font-size: 13px;
    color: #ff4040;
    margin-top: 4px;
    height: 18px;
}

/* Style du badge quand en live */
.live-status.live {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
}

.server-schedule {
    margin: 40px auto;
    padding: 20px;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #8bc34a;
    border-radius: 12px;
    text-align: center;
    font-family: 'Minecraftia', sans-serif;
    color: #fff;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

.schedule-list li {
    background-color: rgba(50, 50, 50, 0.6);
    margin: 6px 0;
    padding: 10px;
    border-radius: 6px;
    border-left: 5px solid #8bc34a;
}

li.active {
    color: #00ff88;
    font-weight: bold;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

.schedule-note {
    font-size: 13px;
    font-style: italic;
    color: #cccccc;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .streamer-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }

    .streamer-card {
        width: 100%;
        max-width: 350px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        margin: 0 0 10px 0;
    }

    .streamer-info {
        align-items: center;
    }

    .logo {
        width: 90%;
        max-width: 300px;
        margin: 0 auto 20px;
        position: static;
        top: unset;
    }

    .logo-petit {
        display: none;
    }

    .intro {
        font-size: 16px;
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    h2 {
        font-size: 22px;
        padding: 0 10px;
    }

    .minecraft-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .a-propos {
        margin: 20px 10px;
        padding: 15px;
        font-size: 16px;
        max-width: 100%;
        border-radius: 8px;
    }

    .planning {
        width: 90%;
    }

    footer {
        position: relative;
        padding: 20px;
        font-size: 14px;
    }
}

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 80px;
    color: rgba(255, 0, 0, 0.1);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo,
.intro,
.streamer-card,
.a-propos {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.logo {
    animation-delay: 0.2s;
}

.intro {
    animation-delay: 0.4s;
}

.streamer-card:nth-child(1) {
    animation-delay: 0.6s;
}

.streamer-card:nth-child(2) {
    animation-delay: 0.8s;
}

.streamer-card:nth-child(3) {
    animation-delay: 1s;
}

.streamer-card:nth-child(4) {
    animation-delay: 1.2s;
}

.streamer-card:nth-child(5) {
    animation-delay: 1.4s;
}

.minecraft-btn {
    /* ... tes styles existants ... */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.minecraft-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px #91bd36;
}

.avatar {
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1) rotate(3deg);
}

h2 {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    20% {
        transform: translate(-2px, 1px) rotate(-1deg);
    }

    40% {
        transform: translate(2px, -1px) rotate(1deg);
    }

    60% {
        transform: translate(-2px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(2px, -1px) rotate(1deg);
    }

    100% {
        transform: translate(0, 0) rotate(0);
    }
}

.lien-twitch:hover,
.lien-youtube:hover,
.lien-tiktok:hover {
    animation: shake 0.4s ease-in-out;
    color: #ff6b6b;
    /* ou autre couleur flash sympa */
}
