/* Variables CSS */
:root {
    --deep-black: #121212;
    --accent-purple: #BB86FC;
    --gold: #D4AF37;
    --light-black: #1E1E1E;
    --max-width: 1200px;
    --border-radius: 10px;
}

/* Reset CSS */
body, h1, h2, h3, p, a {
    margin: 0;
    padding: 0;
	font-family: Arial, sans-serif;
}

/* Styles globaux */
body {
    background-color: var(--deep-black);
    color: var(--accent-purple);
    font-family: 'Arial', sans-serif;
    text-align: justify;
	padding-top: 50px;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-purple);
}

h1, h2, h3 {
    color: var(--gold);
    font-weight: bold;
    margin: 20px 0px 20px;
}

h1 {
    margin-top: 40px;
	text-align: center;
}

.title {
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-top: 40px;
    text-align: center;
	border-radius: var(--border-radius);
}

/* Menu CSS */
.menu {
    background-color: #444;
    overflow: auto;
    color: white;
    padding: 8px;
    text-align: center;
	border-radius: var(--border-radius);
}

.menu a {
    color: white;
    padding: 14px 0px;
    display: inline-block;
}

.menu a:hover {
    background-color: #777;
}

/* Contenu CSS */
.flex-container {
    display: flex;
    flex-wrap: wrap;
	margin-bottom: 20px;
}

/* Styles pour les liens de retour */
.return-link {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
    margin-bottom: 20px;
}

.return-link:hover {
    color: var(--gold);
}

/* Styles pour les sections */
.intro, .conclusion, .sommaire, .sources, .row-with-bg {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--light-black);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-sizing: border-box;
}

/* Styles pour les paragraphes dans les sections */
.intro p, .conclusion p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Styles pour la ligne avec une image de fond */
.row-with-bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 128px;
    box-sizing: border-box;
}

/* Styles pour les plugins */
.plugins-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
	width: 100%;
    max-width: var(--max-width);
}

.plugin-item {
    flex: 0 0 49%;
    background-color: var(--light-black);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Styles pour les pages d'articles */
.article-page {
    background-color: var(--deep-black);
    color: var(--accent-purple);
    font-family: 'Arial', sans-serif;
    padding: 0px;
    text-align: justify;
	padding-top: 50px;
    margin: 0px auto;
	width: 100%;
    max-width: var(--max-width);
}

.article-page .title {
    text-align: center;
    font-size: 2em;
}

.article-page .center {
    text-align: center;
}

.article-page .sources {
    margin-top: 20px;
}

.article-page .conclusion {
	margin-top: 20px;	
    font-size: 1.1em;
}

.article-page .conclusion h3{
    color: #FFF;
	font-size: 32px;
}

.article-page h2 {
	color: #CCC;
}

.article-page h3 {
    border-bottom: 1px solid #000000;
    box-sizing: border-box;
}

.article-page a {
    color: var(--gold);
    text-decoration: none;
}

.article-page a:hover {
    text-decoration: underline;
}

/* Styles pour le conteneur flexible */
.flex-container {
    display: flex;
    justify-content: center;
    padding: 0px;
    max-width: var(--max-width);
    width: 100%;
    margin: 0px;
}

/* Styles pour les colonnes */
.left-column {
    width: 64%;
    background-color: var(--light-black);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 0px 10px 0px 0px;
    box-sizing: border-box;
}

.right-column {
    flex: 1;
	background-color: var(--light-black);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 0px 0px 0px 10px;
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100%;
}

/* Styles pour le menu sticky */
.sticky-menu {
    font-size: 14px;
    position: fixed;
    top: 0;
    width: auto;
    display: flex;
    flex-wrap: wrap;  /* Permet au menu de se déplacer sur une nouvelle ligne si nécessaire */
    justify-content: space-around;
    align-items: center;
    background-color: #333;
    padding: 20px;  /* Ajout d'un peu de padding autour du menu pour l'espace */
    z-index: 1000;
}

.sticky-menu a {
    color: #fff;
    display: block;
    box-sizing: border-box;  /* Assure que le padding est inclus dans la largeur/hauteur de l'élément */
}

.sticky-menu a:hover {
    background-color: #555;
}

/* Styles pour le pied de page */
.footer {
    background-color: var(--light-black);
    padding: 20px;
    text-align: center;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: var(--gold);
}

.footer a:hover {
    color: var(--accent-purple);
}

.content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0px;
}

/* CSS pour le menu hamburger */
body {
    margin: 0;
    font-family: Arial, sans-serif;
	align-content: center;
}

.navbar {
    max-width: var(--max-width);
    width: 100%;
    box-sizing: border-box;
    display: flex;
	justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 0px;
	margin: 20px auto;
	border-radius: var(--border-radius);
    position: fixed;
    top: 0px;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    padding: 0px;
    margin: 0px;
    display: flex;
}

.nav-list li {
    margin: 16px 40px;
}

.nav-list a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--accent-purple);
}

.sub-menu {
    display: none;
    position: absolute;
    background-color: var(--light-black);
    border: 1px solid #444;
    margin-top: 0px;
    max-height: 600px;
    overflow-y: auto;
}

.sub-menu.active {
    display: block;
}

.nav-list li:hover .sub-menu {
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: white;
    height: 2px;
    width: 25px;
    margin: 3px 0px;
    transition: transform 0.3s;
}

@media only screen and (max-width: 768px) {
		body, h1, h2, h3, p, a {
		margin: 0px;
		padding: 10px;
		font-size: -50%;
	}
	
    .nav-list {
        display: none;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--light-black);
        z-index: 1000;
    }

    .nav-list.active {
        display: block;
    }

    .nav-list li {
        margin: 15px 0;
    }

    .nav-list a, .sub-menu a {
        padding: 5px 20px;
        display: block;
    }

    .sub-menu {
        position: static;
    }

    .menu-toggle {
        display: flex;
    }
	
    .flex-container {
        flex-direction: column;
		margin: 0px;
		align-content: center;
    }
	
    /* Styles pour les colonnes */
	.left-column {
		width: 100%;
		background-color: var(--light-black);
		border-radius: var(--border-radius);
		padding: 10px;
		margin: 0px auto;
		box-sizing: border-box;
	}

	.right-column {
		width: 100%;
		background-color: var(--light-black);
		border-radius: var(--border-radius);
		padding: 10px;
		margin: 20px auto 0px;
		box-sizing: border-box;
		height: auto;
	}
	
    .flex-container {
        flex-direction: column;
		margin: 0px;
		align-content: center;
    }
}

@media (max-height: 768px) {
	.sub-menu {
		max-height: 300px;
	}
}