body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td,html,label,table,tr,td {
  margin:0; padding:0;
}
table { border-collapse:collapse; border-spacing:0; }
fieldset,img,a img,:link img,:visited img { border:0; }
address,caption,cite,code,dfn,th,var { font-style:normal; font-weight:normal; }
ul,li { list-style:none; }
caption,th { text-align:left; }
h1,h2,h3,h4,h5,h6 { font-size:100%; }
q:before,q:after { content:''; }
a,a:hover,a:visited,a:active {
  text-decoration: none;
  color: #B3B4B3;
}

/* Global */
body {
  color: #666;
  background: url(../images/Background.jpg) center center / cover repeat-y;
  width: 100%;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14pt;
  line-height: 20pt;
  font-weight: lighter;
  text-align: center;
}

#page {
  position: relative;	
  max-width: 940px;
  width: 90%;
  margin: auto;
  padding: 0 15pt;
  text-align: left;
}

#sidebar
{
    position: absolute;
    right: 0;
    width: 200px;
}

/* Titres */
h1 {
  font-size: 1.2em;
  font-weight: bold;
  padding-bottom: 5px;
}
h1.titre {
  font-size: 1.5em;
  font-weight: lighter;
  padding-bottom: 10px;
}
h2 {
  font-size: 1.1em;
  font-weight: 600;
  padding-bottom: 5px;
}
h3 {
  font-size: 1.2em;
  font-weight: lighter;
  padding: 10px 0;
}
h4 {
  font-size: 1em;
  margin-top: 5px;
  padding-bottom: 10px;
}

h1,h2,h3,h4 {
	line-height: 1.2em;
}

/* ********** ********** ********** ********** ********** */
/*  En tête
/* ********** ********** ********** ********** ********** */
/* En-tête */
#entete, #entete_lb {
  width: 100%;
  max-width: 920px;
  margin: 10px auto;
  text-align: left;
}
#entete h1.titre, #entete_lb h1.titre {
  color: #030502;
  text-transform: uppercase;
  display: inline;
}
#entete_lb div.rubrique {
  margin-left: 40px;
  display: inline;
}
#entete_lb div.rubrique h1.titre {
  font-size: 1.2em;
  font-weight: lighter;
  line-height: 20pt;
  text-transform: none;
}
#entete .burger-icon {
	  display: none;
}

/* ********** ********** ********** ********** ********** */
/*  Menu à gauche
/* ********** ********** ********** ********** ********** */

#menu {
    float: left;
    width: 200px;
    height: 100%;
    margin: 0 10px;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu li {
    position: relative;
}

#menu a {
    text-decoration: none;
    color: #666;
    display: block;
}

#menu .menu-item > a {
    font-size: 15pt;
    line-height: 20pt;
    padding-bottom: 5px;
}

#menu .dynamic-submenu li {
    margin-left: 15pt;
}

#menu .dynamic-submenu li a {
    font-size: 12pt;
    font-weight: normal;
    line-height: 16pt;
    padding-bottom: 5px;
}

#menu .menu-item.active > a::before {
    display: inline-block;
}

.dynamic-submenu {
    display: none;
    margin-left: 0;
}

.menu-item.active > .dynamic-submenu {
    display: block;
}

.menu-item.active > .dynamic-submenu > li.active {
	list-style-image: url(../images/fleche_droite.png);
    list-style-position: outside;
}

/* ********** ********** ********** ********** ********** */
/*  Contenu
/* ********** ********** ********** ********** ********** */
#contenu
{
	float: left;
	width: 700px;
	height: 100%;
	margin: 0 10px;
	padding-bottom: 100px;
	
	font-size: 14pt;
	font-weight: normal;
	line-height: 18px;
}

#contenu p
{
	font-size: 12pt;
	font-weight: normal;
	line-height: 18pt;
	padding-bottom: 10px;
}

#contenu .actualite H3
{
	font-size: 12pt;
	font-weight: normal;
	line-height: 18pt;
	padding-bottom: 0px;
	margin-bottom: 0px;
}

#contenu ul,
#contenu li
{
	font-size: 13pt; /*Stany: new */
	font-weight: normal; /*Stany: new */
	list-style-type: disc;
	list-style-position: inside;
}

#contenu p h2
{
	font-style: 600;
}

#contenu #illustrations.accueil
{
	float: left;
	text-align: right;
	width: 340px;
}

#galerie {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#galerie img.galerie {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    cursor: pointer;
}

#contenu a
{
	color: #B9BD0E;
}

#contenu .page-header {
	margin-bottom: 2em;
}

#contenu a.savoir
{
	color: #666;
	font-size: 10pt;
    line-height: 10pt;
}

#contenu img {
	max-width: 100%;
	height: auto;
}

#contenu img.float-start {
	margin: 0 1em 0 0;
	max-width: 50%;
}

#contenu img.float-center {
	margin: 0 auto;
	max-width: 50%;
}

#contenu img.float-end {
	margin: 0 0 0 1em;
	max-width: 50%;
}

#contenu img.galerie
{
	cursor: pointer;
}

#contenu hr {
  clear: both;
  border: 0;
}

.legende
{
	margin: 0 auto;
	text-align: right;
}

.legende p.title
{
	font-size: 12pt;
	line-height: 14pt;
	font-style: italic;
}

.legende img.fleche
{
	float: right;
	margin: 4px 0 0 5px;
	width: 12px;
}

.legende p.alt
{
	font-size: 11pt;
	line-height: 14pt;
	margin-right: 17px;
}

#contenu #actualite
{
	float: right;
	width: 195px;
}

#contenu .actualite
{
	width: 155px;
	margin: 0 20px;
}

#contenu #newsletter
{
	float: right;
	width: 155px;
	font-size: 10pt;
}

#contenu #illustrations
{
	/*width: 350px; **** Stany: suppression */
}
/* ********** ********** ********** ********** ********** */
/*  Footer
/* ********** ********** ********** ********** ********** */
#footer
{
	width: 100%;
	position: fixed;
	bottom: 0px;
	background-color: #F5F5F5;
}

#footer .footer {
    border-top: 1px solid #686967;
    height: 36pt;
    margin: auto;
    padding: 0pt 15pt;
    width: auto;
	position: relative;
}

#footer .footer div
{
	color: #B3B4B3;
	font-size: 10pt;
	font-weight: normal;
	line-height: 20pt;
	margin-top: 10px;
	padding-bottom: 10px;
}

#footer .inwebing {
	position: absolute;
    right: 15pt;
	top: 0;
}
/* ********** ********** ********** ********** ********** */
/*  LightBox
/* ********** ********** ********** ********** ********** */
#lightbox
{
	background: none repeat scroll 0 0 white;
	height: 5000px; /* Stany: Passe de 100% à 5000px */
	margin: 0 auto;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100vw;
	text-align: center;
}

#lightbox #close_lb
{
	margin: 0 auto;
	text-align: right;
	width: 900px;
	max-width: 90vw;
	height: 32px;
}

#lightbox #close_lb img
{
	cursor: pointer;
}

#lightbox #image
{
	text-align: center;
	max-width: 100vw;
	margin: 0 auto 0 auto;
	display: inline-flex;
}

#lightbox img.fleche.prec
{
	margin: 0px 20px 0 0;
	display: inline;
	vertical-align: top;
	cursor: pointer;
}

#lightbox img.fleche.suiv
{
	margin: 0px 0 0 20px;
	display: inline;
	vertical-align: top;
	cursor: pointer;
}

#lightbox img.image {
    width: auto;
    display: inline;
    max-height: 75vh;
    max-width: 75vw;
}

#lightbox #legende
{
	width: 900px;
}

/* contact form */

form#contact-form {
    width: 100%;
    max-width: 600px;
    padding: 20px 30px; /* Ajout d'un padding horizontal */
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: left;
    box-sizing: border-box; /* Important pour que le padding ne casse pas la largeur */
}

form#contact-form label {
    display: block;
    font-size: 12pt;
    margin-bottom: 6px;
    color: #666;
    font-weight: normal;
}

form#contact-form input[type="text"],
form#contact-form input[type="email"],
form#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 12pt;
    border: 1px solid #bbb;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Essentiel aussi ici */
}

form#contact-form input[type="text"]:focus,
form#contact-form input[type="email"]:focus,
form#contact-form textarea:focus {
    border-color: #666;
    background-color: #fff;
    outline: none;
}

form#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

form#contact-form button,
form#contact-form input[type="submit"] {
    color: #666;
    font-size: 12pt;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form#contact-form button:hover,
form#contact-form input[type="submit"]:hover {
    background-color: #666;
    color: #ffffff;
}



@media screen and (max-width: 768px) {
	#menu, #contenu, #footer .footer, #contenu #actualite, #contenu #newsletter {
		float: none;
		width: 100%;
		margin: 0;
		padding: 10px 0;
	}
	
	#entete, #entete_lb {
		width: 100%;
		max-width: 100vw;
		margin: 10px;
		text-align: left;
	}
	
    #entete .burger-icon {
        display: block;
        position: absolute;
        top: 0.4em;
        right: 1em;
    }
	
	#entete .burger-icon span {
	  display: block;
	  width: 35px;
	  height: 5px;
	  background-color: #666;
	  margin: 6px 0;
	}
	
	#page {
		min-height: 80vh;
	}
	
	/*
	#lightbox img.image {
		max-width: 90%;
		height: auto;
	}
	#galerie img.galerie {
		width: 40vw;
	}
	#entete_lb div.rubrique {
		margin-left: 10px;
	}*/
	
	#galerie img.galerie {
		width: 25vw;
		height: 25vw;
		object-fit: cover;
		object-position: center;
		border-radius: 1vw;
		cursor: pointer;
	}
	
	#menu {
		display: none;
	}
	
	#menu.active {
        display: block;
        position: absolute;
        background: white;
    }
	
	#sidebar {
		position: relative;
		right: auto;
		width: auto;
	}
	
	#lightbox #legende {
		max-width: 90vw;
	}
	
    #footer {
        position: relative;
        text-align: center;
    }
	
	#footer .footer {
		height: auto;
	}
	
	#footer .footer div {
		height: auto;
		margin: 0;
		padding: 0;
	}
	
	#footer .inwebing {
		position: relative;
		right: auto;
		top: auto;
	}
}