/*********************************************************************/
/* = Designed by Patrick Joly - patrickjoly@free.fr */
/*********************************************************************/

/*********************************************************************/
/* FEUILLE DE STYLE / MOBILE FIRST
/*********************************************************************/
/* variables */
:root {
  --blanc: #ffffff;
  --ocre: #cc4e0e;
  --vert: #004d40;
}

body {
	background: var(--ocre);
	color: var(--blanc);	
	font-family: arial narrow, sans-serif;
	font-size: 1.2em;
	line-height: 1.5;
	margin: 0 auto;
	overflow: scroll;
	padding: 0;
}

/*********************************************************************/
/* page et module du grid layout */
/*********************************************************************/
.page {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 10px;
	margin: 0;
	padding: 0;
}

.module-1-3,
.module-1-9,
.module-2-4,
.module-2-5,
.module-2-6,
.module-2-7,
.module-2-8,
.module-3-5,
.module-4-6,
.module-4-8,
.module-5-7,
.module-5-8,
.module-6-8,
.module-7-8,
.module-7-9 {
	margin: 0;
	padding: 10px;
}

/*********************************************************************/
/* header */
/*********************************************************************/
header {
	margin: 20px 0 20px 0;
	padding: 0;
	text-align: center;
}

h1 {
	color: var(--blanc);
	font-size: 3em;
	margin: 0;
	padding: 0;
}

h2 {
	color: var(--blanc);	
	font-size: 2em;
	letter-spacing: 10px;
	margin: 0 0 20px 0;
	padding: 0;
}

/*********************************************************************/
/* navigation */
/*********************************************************************/
nav {
	background: var(--vert);	
	margin: 0;
	padding: 0 !important;
	text-align: center;
}	

nav ul {
	margin: 0;
	padding: 0;	
}

nav li {
	border-bottom: 1px solid var(--blanc);
	display: block;
	margin: 0;
	padding: 10px;
	text-transform : uppercase;	
}

nav li:last-child {
	border-bottom: none;
}

nav a {
	color: var(--blanc);
	margin: 0;
	padding: 0;
	text-decoration: none;
}

nav a:hover {
	color: var(--ocre);
}

/*********************************************************************/
/* contenu */
/*********************************************************************/

/* galerie */
/* galerie */
.galerie {
	column-count: 1;
	column-gap: 10px;
	max-width: 100%;
	margin: 0 auto;
}


.galerie img {
	border-radius: 5px;
	display: block;	
	filter: grayscale(0);
	height: auto;
	margin: 0 0 10px 0;
	transition: 0.2s ease-in-out;
	width: 100%;
}

.img-container {
  position: relative;
  margin: 5px;
  overflow: hidden;
  border-radius: 5px;
}

.img-container img {
  display: block;
  width: 100%;
  height: auto;
}

.img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--vert);
  color: var(--blanc);
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 999;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  transform: scale(2);
  margin: auto;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 3em;
  color: var(--blanc);
  text-decoration: none;
  font-weight: bold;
}

p {
	text-align: center;
}

/* Footer */
p {
  text-align: center;
  font-size: 0.9em;
}

/*********************************************************************/
/* FEUILLE DE STYLE / TABLET, LAPTOP, DESKTOP
/* page et container sur une base de 8 colonnes et design des modules
/*********************************************************************/
@media (min-width:768px) {
  .page {
    grid-template-columns: repeat(8, 1fr);
  }

  .module-1-9 {
    grid-column: 1 / 9;
  }
  .module-2-8 {
    grid-column: 2 / 8;
  }

  nav li {
    display: inline-block;
    border-bottom: none;
    padding: 10px 20px;
  }

  .galerie {
    column-count: 3;
  }
}
