@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --bg-main: #181a20;
    --bg-section: #23272f;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --text-main: #f3f4f6;
    --text-secondary: #b5bac1;
    --border-radius: 12px;
    --transition: 0.2s;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    
}

header {
    background: var(--bg-section);
    padding: 2rem 0 1rem 0;
    text-align: center;
    border-bottom: 1px solid #22242b;
}

h1 {
    text-align: center;

    margin: 0 0 1rem 0;
    font-weight: 700;

}

h2 {
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.main-layout {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

main {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: var(--bg-section);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

a:hover, a:focus {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Style commun pour les asides (widget Discord et dernière vidéo) */
.aside-box {
    flex: 1;
    min-width: 350px;
    max-width: 400px;
    margin-left: 2.5rem;
    margin-top: 2.2rem;
    background: #23272a;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.13);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    color: #fff;
    border: 1px solid #36393f;
    transition: box-shadow 0.18s;
}

.aside-box:hover {
    box-shadow: 0 8px 32px rgba(88,101,242,0.18);
}

.aside-box h2 {
    font-size: 1.15em;
    margin-bottom: 1rem;
    color: #b9bbbe;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

#widget-discord .widget-discord-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #2c2f33;
    padding: 0.2rem;
}

#widget-discord {
    flex: 1;
    min-width: 350px;
    max-width: 400px;
    margin-left: 2.5rem;
    margin-top: 2.2rem;
    background: #23272a;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.13);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    color: #fff;
    border: 1px solid #36393f;
    transition: box-shadow 0.18s;
}

#widget-discord:hover {
    box-shadow: 0 8px 32px rgba(88,101,242,0.18);
}

#widget-discord h2 {
    font-size: 1.15em;
    margin-bottom: 1rem;
    color: #b9bbbe;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.widget-discord-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #2c2f33;
    padding: 0.2rem;
}


footer {
    background: var(--bg-section);
    color: var(--text-secondary);
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #22242b;
    font-size: 0.95rem;
    margin-top: 3rem;
}

strong {
    color: var(--accent);
}

em {
    color: var(--text-secondary);
}


.rocket-emoji {
    font-size: 1.2em;
    transition: transform 0.7s cubic-bezier(.4,2,.6,.9);
    position: relative;
    z-index: 2;
}

.content-with-aside {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.hover-grow {
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s;
    will-change: transform;
}

.hover-grow:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    z-index: 1;
}

.fire {
    display: none; /* cacher si non utilisé */
}

.faq-item {
    margin-bottom: 1em;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: #23272a;
    color: #fff;
    border: none;
    padding: 1em;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background 0.2s;
}
.faq-question.active, .faq-question:hover {
    background: #5865f2;
}
.faq-answer {
    display: none;
    background: #2c2f33;
    color: #fff;
    padding: 1em;
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
}

.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.custom-button img {
    margin-right: 10px;
    width: 30px; /* Ajuste la largeur de l'image */
    height: 30px; /* Ajuste la hauteur de l'image */
  
}

.discord-button {
    background-color: #7289DA;
    color: white;

}

.discord-button:hover {
    background-color: #677bc4;
}

.youtube-button {
    background-color: #c4302b;
    color: white;
}

.youtube-button:hover {
    background-color: #cc0000;
}

.youtube-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #c4302b; /* Rouge YouTube */
    color: white;
    font-family: sans-serif;
    font-size: 16px;
    position: relative;
    text-align: right;
    margin-top: 1.5rem; /* Augmenté de 10px pour plus d'espace */
    border: 2px solid #c4302b;
    border-radius: 5px;
}

.youtube-subscribe a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.youtube-subscribe .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../img/ytb.png'); /* Remplace par le chemin de ton icône */
    background-size: cover;
    transform: scale(2);
}

.youtube-subscribe .subscriber-count {
    font-size: 14px;
}

.youtube-subscribe .subscriber-count .count {
    color: #eee;
    font-weight: bold;
}

/* Style au survol (facultatif) */
.youtube-subscribe a:hover {
    opacity: 0.9;
}

.button-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.button-container a:hover {
    opacity: 0.9;
}

@media (min-width: 768px) {
    /* Styles pour la barre de défilement sur PC */
    ::-webkit-scrollbar {
        width: 12px; /* Largeur de la barre */
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1; /* Couleur de fond de la piste */
    }

    ::-webkit-scrollbar-thumb {
        background: #888; /* Couleur du "thumb" */
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555; /* Couleur au survol */
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        align-items: center;
    }

    main {
        max-width: 100%;
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .aside-column {
        width: 100%;
        margin-left: 0;
    }

    .aside-box {
        min-width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    #widget-discord {
        margin-left: 0;
        margin-top: 1rem;
        min-width: auto;
        max-width: 100%;
    }

    #widget-discord .widget-discord-frame {
        width: 100%;
    }

    #widget-discord .widget-discord-frame iframe {
        width: 100%;
    }
}