
html {
  overflow-y: scroll;
}

table
{
  border-spacing: 0px;
}

p, h1, h2, h3, textarea, td
{
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

h1, input.edittitle
{
  font-foo: inherit;
  font-size: 100%;
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 0;
  width: 100%;
}

h1 {
  text-transform: uppercase;
}

h2, input.editsubtitle
{
  font-foo: inherit;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 85%;
  font-weight: normal;
  width: 100%;
}

h2 + .text {
  margin-top: 10px;
}

.text p
{
  margin-bottom: 5px;
  text-align: justify;
}

div.noimg
{
  height: 1em;
}

body
{
  background: white;
  margin: 0;
  padding: 0;
  font-family: arial, sans-serif;
  font-size: 10pt;
  width: 100%;
}

#header
{
  height: 65px;
  
  border-top: 0px solid black;
  border-left: 0px solid black;
  border-right: 0px solid black;
}

table#menubartable, table#submenubartable 
{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

a:link, a:visited 
{
  text-decoration: inherit;
  color: inherit;
}

a:hover, a:active
{
  text-decoration: inherit;
  color: red;
}

a img
{
  border: 0px;
}

td.menuitem
{
  height: 30px;
  text-align: center;
  vertical-align: middle;
  color: #808080;
}

#submenubardiv {
  height: 30px;
}

td.submenuitem
{
  height: 30px;
  text-align: center;
  vertical-align: middle;
  color: #808080;
}

td.inactive
{
  border-top: 0px solid black;
  border-bottom: 0px solid black;
}

td.active
{
  color: black;
  font-weight: bold;
  border-top: 0px solid white;
  border-bottom: 0px solid white;
  border-left: 0px solid black;
  border-right: 0px solid black;
}

#ending
{
  position: relative;
  top: 115px;
  left: 100px;
  height: 20px;
  width: 1px;
}

p.datestatut, input.editdate, input.editstatut
{
  font-foo: inherit;
  font-size: 85%;
}

p.datestatut {
  float: right;
}

p.plink
{
  margin: 0;
  height: 20px;
  border-top: 1px solid #C0C0C0;
  margin-top: 20px;
}

.adiv
{
/*
  position: relative;
  top: -135px; 
*/
}

.articles
{
  padding-right: 20px;
  text-align: justify;
}

.links, .right
{
  vertical-align: top;
  text-align: left;
  padding-left: 20px;
  border-left: 1px solid #C0C0C0;
}

.links p, .right p
{
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 85%;
  color: black;
}

.links p
{
  text-transform: uppercase;
}

hr
{
  border-top: 1px solid #C0C0C0;
  border-bottom: 0;
}

#links
{
  position: fixed;
  top: 135px;
}

p.year 
{
  color: #707070;
}

.subpage
{
  display: none;
}

div.cur
{
  display: block;
}

.subpage p, .subpage h2 {
  margin: 0;
  margin-bottom: 10px;
}

* > p:last-child {
  margin-bottom: 0em;
}

p.cur {
  font-weight: bold;
}

a.bigcmd, a.cmd {
  color: black !important;
  text-transform: none !important;
  font-weight: bold !important;
  border: 2px solid black;
  background-color: #E0E0E0;
}

a.cmd:hover {
  background-color: #F0F0F0;
}

a.bigcmd {
  font-size: 110% !important;
  padding: 15px;
  margin: 15px;
}

a.cmd {
  float: right;
  font-size: 85% !important;
  padding: 5px;
  margin: 5px;
}

a.del {
  background-color: red;
}

a.del:hover {
  background-color: orange;
}

a.new {
  background-color: limegreen;
}

a.new:hover {
  background-color: lime;
}

textarea {
  width: 100%;
  height: 20em;
  font-foo: inherit;
}

textarea.edittext, input.edittitle, input.editsubtitle, input.editshorttitle, input.editdate, input.editstatut, .new-fields, p.bigtoolbar {
  display: none;
}

p.bigcmdcont {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}

.notsaved {
  background-color: #FFB0B0 !important;
}

#saving {
  position: fixed;
  top: 200px;
  left: 200px;
  z-index: 10;
  width: 400px;
  background-color: black;
  padding: 50px;
  border: 10px solid gray;
  color: white;
  font-weight: bold;
  font-size: 150%;
  text-align: center;
  vertical-align: middle;
  display: none;
}

div.hidden, div.hidden h1, div.hidden h2, div.hidden p, p.hidden {
  background-color: #C0C0C0;
  color: #808080;
}

.secimg {
  border-bottom: 3px solid black;
  padding: 0.5em;
}

form#login {
  position: fixed;
  left: 1em;
  top: 1em;
  padding: 1em;
  border: 3px solid red;
  background: white;
  z-index: 100;
}

#metaadmin {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 5px;
}

/* NOUVEAUTÉS */

#site {
  margin-top: 20px;
}

#menubartable {
  border-bottom: 1px solid #808080;
}

@media screen and (min-width: 810px) {
  #site {
    margin-left: auto;
    margin-right: auto;
    width: 780px;
  }

  #main-content.grid3 .article {
    margin-left: 0px;
    margin-right: 30px;
  }

  #main-content.grid2 .article {
    margin-left: 0px;
    margin-right: 30px;
  }

  #main-content.grid3 .article:nth-child(3n) {
    margin-right: 0px;
  }
  
  #main-content.grid2 .article:nth-child(2n) {
    margin-right: 0px;
  }
  
  #main-content.item img {
    width: 780px;
  }
}

@media screen and (max-width: 809px) {
  .grid2, .grid3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-right: -15px;
    margin-left: -15px;
  }
}

#main-content.grid3 img.garde, #main-content.grid3 img.gardenotxt {
  width: 240px;
}

#main-content.grid2 img.garde, #main-content.grid2 img.gardenotxt {
  width: 375px;
}

#main-content.grid2 p.garde,
#main-content.grid3 p.garde {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  line-height: 0;
}

#main-content.grid3 p.garde {
  height: 160px;
}

#main-content.grid2 p.garde {
  height: 250px;
}

#logo {
  padding-right: 10px;
}

#extcontent {
  margin-top: 14px;
}

.article h1, .article .h1-float {
  margin-top: 5px;
}

.h1-float {
  float: right;
  text-align: right;
}

.article h1:first-child{
  margin-top: 0px;
}

/*
.grid3 .article h2 {
  margin-bottom: 12px;
}

.grid2 .article .datestatut {
  margin-bottom: 12px;
}
*/

.rolltext {
  display: none;
  margin-top: 10px;
}

.rolltextzone {
  margin: 20px 0px 0px 0px;
}

.moreimages img {
  margin-bottom: 30px;
}

.moreimages {
  margin-top: 20px;
}

/*

div.njuin2021 {
  padding-top: 20px;
}

div.n_left {
  display: inline-block;
  width: 35%;
  vertical-align: top;
  padding-right: 40px;
}

table.n_right {
  display: inline-block;
  width: 55%;
  vertical-align: top;
}

table.n_right td {
  vertical-align: top;
  padding-bottom: 10px;
}

table.n_right tr > td:first-child {
  font-weight: bold;
  white-space: nowrap;
  padding-right: 20px;
}

*/

div.njuin2021 {
  display: flex;
  flex-direction : row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
}

.n_left {
  box-sizing: border-box;
  width: 40%;
  flex-shrink: 0;
  padding-right: 30px;
}

.n_right {
  width: 60%;
  flex-shrink: 0;
}

.n_right td {
  vertical-align: top;
  padding-bottom: 10px;
}

.n_right tr > td:first-child {
  font-weight: bold;
  white-space: nowrap;
  padding-right: 20px;
}


@media screen and (max-width: 900px) {
  .article img {
    width: 100%;
  }

  body {
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
  }
    
  #main-content.grid3 img.garde, #main-content.grid3 img.gardenotxt,
  #main-content.grid2 img.garde, #main-content.grid2 img.gardenotxt {
    width: 100%;
  }
  
  #main-content.grid3 p.garde, #main-content.grid2 p.garde {
    height: auto;
  }
  
  .grid3 > div, .grid2 > div {
    flex-grow: 1;
  }
}

@media screen and (max-width: 600px) {
  
  div.njuin2021 {
    display: block;
  }

  .n_left {
    width: 100%;
    padding-right: 0px;
    padding-bottom: 30px;
  }
  
  .n_right {
    width: 100%;
  }
}

.grid2 .article, .grid3 .article {
  display: inline-block;
  width: 240px;
  vertical-align: top;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 22px;
}

.grid3 .article {
  width: 240px;
}

.grid2 .article {
  width: 375px;
}
