    body {
      margin: 0;
      font-family: 'Rubik';
      color: rgb(128, 128, 128);
	  display: grid;
	  grid-template-columns: 250px 1fr;
    }
	main {
		grid-column: 2/3;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		padding: 2rem;
	}
	main {
	  opacity: 0; /* start invisible */
	  transition: opacity 0.5s ease;
	}

	main.is-loading {
	  opacity: 0;
	}

	main:not(.is-loading) {
	  opacity: 1;
	}


    a {
      color: inherit;
      text-decoration: none;
    }
    a:hover {
      color: black;
      text-decoration: underline;
    }
    li {
      list-style: none;
    }
	
    header#sidebar {
      background: #fff;
      position: fixed;
      height: 100%;
      width: 250px;
    }
	header#sidebar > nav.main-nav {
	  display: block;
	}

    .site-title a {
      font-family: 'Rubik';
      font-size: 1.8rem;
      font-weight: 400;
	  color:black;
    }
    
/* nav menu */
header#sidebar h1, nav {
	margin-left: 2rem;
}
.main-nav ul{
	padding:0;
}

.article-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin: 0;
  margin-left: 30px;
}

.article-list.open {
  overflow-y: auto;
  max-height: calc(1.5em * 5); /* height for ~5 items */
}


.article-list li {
  padding: 0;
  color: rgb(128, 128, 128);
}
.article-list li:hover {
  color: black;
}
.rubrique-toggle::before {
  content: ">";
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.rubrique-toggle.open::before {
  transform: rotate(90deg);
}


/* sommaire */
.random-article img{
  display: block;
  max-height: 100%;
  width: auto;
  transition: 800ms ease;
}
.random-article img:hover{
	transform: scale(1.008);
}

/* article */


.article-images img{
	display: block;
	grid-column: 1/2;
	width: 100%;
	max-width:100%;
	height: auto;
	overflow-y: scroll;
	/*margin-bottom: 10px;*/
}

.article-text {
	grid-column: 2/3;
    width: 100%;
	top: 0;
	overflow-y: auto;
}
.article-text h1{
	margin-top: 0;
	font-size: 1.2rem;
	font-family: 'Rubik';
	font-weight: 300;
}
.description{
	color: rgb(170, 170, 170);
	font-size: 0.8em;
	font-weight: 10;
}
.blured{
	margin-left: 5px;
	max-width: 450px;
    color: transparent !important;
    text-shadow: 0 0 12px rgb(170, 170, 170);
    transition: 0.6s;
	overflow: visible;
	position: fixed;
	text-align: justify;
	justify-text: left;
}
.blured:hover, .blured:active{
    color: transparent;
    text-shadow: 0 0 0cap rgb(128, 128, 128);
}

.bio {
	top: 0;
}
.bio p{
	margin-top: 0;
	width: 100%;
	height: auto;
}
footer {
	grid-column: 1/2 !important;
	font-size: 0.8em;
	color: grey;
}

/* Article 1 (Actualité) Layout - 3 columns grid of images */
.id-article-1 {
	display: block;
}
.id-article-1 .article-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.id-article-1 .article-images img {
  grid-column: auto;
  width: 100%;
  height: auto;
  align-self: center;
}

.id-article-1 .article-text,
.id-article-1 .blured {
  display: none; /* hide text and overlays */
}


p::selection{
    color:white;
    background-color: rgb(170, 170, 170);
}
h1::selection{
    color:white;
    background-color: rgb(170, 170, 170);
}
h2::selection{
    color:white;
    background-color: rgb(170, 170, 170);
}
strong::selection{
    color:white;
    background-color: rgb(170, 170, 170);
}
i::selection{
    color:white;
    background-color: rgb(170, 170, 170);
}
a::selection{
    color:white;
    background-color: rgb(100, 100, 100);
}


	/* Hide toggle and overlay by default (desktop mode) */
	#menu-toggle {
	  display: none;
	}
	
	@media (max-width: 1080px) {
		.id-article-1 .article-images {
		  display: grid;
		  grid-template-columns: repeat(2, 1fr);
		  gap: 2rem;
		}
	}
	@media (max-width: 850px) {
		
		body {
			grid-template-columns: 1fr;
		}
		img {
			display; block;
			max-width: 100%;
			height: auto;
		}
		main {
			padding: 1rem;
			grid-template-columns: 1fr;
		}
		header#sidebar {
			height: 200px;
			width: 100%;
		}
		.id-article-1 .article-images {
		  display: grid;
		  grid-template-columns: 1fr;
		  gap: 1rem;
		}
		.article-text {
			grid-column: 1/2;
		}
		.blured {
			position: unset;
		}

	  /* Convert sidebar into top header */
	  header#sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 60px;
		width: 100%;
		background: #fff;
		z-index: 2000;
		display: flex;
		align-items: center;
		justify-content: center;
	  }

	  /* Show the menu toggle button (☰) */
	  #menu-toggle {
		display: block;
		position: absolute;
		left: 1rem;
		top: 50%;
		transform: translateY(-50%);
		background: none;
		border: none;
		font-size: 1.5rem;
		cursor: pointer;
		color: rgb(170, 170, 170);
		z-index: 2001;
	  }

	  /* Hide the sidebar nav (we’ll use the overlay instead) */
	  header#sidebar nav {
		display: none;
	  }

	  /* Adjust site title */
	  header#sidebar .site-title {
		margin: 0;
		text-align: center;
	  }

	  /* Adjust main content area for header height */
	  main {
		margin-top: 70px;
		grid-column: 1;
		grid-template-columns: 1fr;
		padding: 1rem;
	  }

	  /* === Fullscreen overlay nav === */
	  #menu-overlay {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: fixed;
		inset: 0;
		left:-10px;
		background: rgba(255, 255, 255);
		opacity: 0;
		visibility: hidden;
		transition: opacity 500ms ease, visibility 500ms ease;
		z-index: 3000;
	  }

	  #menu-overlay.active {
		opacity: 1;
		visibility: visible;
	  }

	  #menu-overlay nav.main-nav {
		display: block;
	  }

	  #menu-overlay nav.main-nav ul {
		list-style: none;
		padding: 0;
		text-align: center;
	  }

	  #menu-overlay nav.main-nav li {
		margin: 0.5rem 0;
	  }

	  #menu-overlay nav.main-nav a {
		font-size: 1.5rem;
		text-decoration: none;
		color: black;
		transition: color 0.3s ease;
	  }

	/* Article links */
	#menu-overlay .article-list li a {
	  font-weight: light;
	  color: rgb(170, 170, 170); /* same grey as desktop sidebar */
	}

	#menu-overlay .article-list li a:hover {
	  color: black;
	}

	}
