/* ====== Charte graphique ====== */
:root {
    --couleur1 : #2a6442ff; 
    --couleur2 : #5b8a51ff; 
    --font-titre: FreeMono, "Fira Code", monospace;
    --font-text : "Fira Code",Monaco,Consolas,Ubuntu Mono,monospace;
}

body {
    color: #fff;
    background-color:#1f222a;
    font-family: "Fira Code",Monaco,Consolas,Ubuntu Mono,monospace;
    font-size: 1.1em;
    padding: 0px;
    margin: 0px 0px;
}

header{
    font-size: 15px;
    font-variant: small-caps;
    padding: 20px ;
    text-align: center;
    display: inline-block;
}

header img{
    width: 60px;
    text-align: left; 
    float: left;
    margin: 6px 0px 6px 0px;
    transition: width 0.7s, transform 0.7s;
  }
header h1{
    float: left;
    font-size: 23px;  
    margin: 50px 2px 0px 10px;
    letter-spacing: 3px;
    transition: font-size 0.7s;
    font-family: var(--font-titre);
  }

header p {
    padding: 0px 20%;
}

@media (max-width: 750px) {
  header{
   display: none;
  }
}

/* ====== Section ====== */

section{
    padding: 20px 20%;
    transition: padding 0.4s;
} 

a {
    color: var(--couleur2);
}

h1 {
    font-variant-caps: all-small-caps;
    font-size: 2.6em;
    letter-spacing: 5px;
    color: var(--couleur1);
    font-family: var(--font-titre);
}

h2 {
    font-size: 1.7em;
    color: var(--couleur2);
  }
  
h3 {
    font-size: 1.4em;
    color: var(--couleur1);
  }
  
h4 {
    font-size: 1.2em;
  }

table, td, th {
    border: 1px solid var(--couleur2);
    padding: 4px;
}
th {
    background-color: var(--couleur1);
    padding: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

section img {
    max-width: 80%;
    max-height: 500px;
    height: auto;
    margin: 10px;
}

code{
    background-color: #111;
    font-variant: normal ;
    font-family: monospace;
    display: block;
    color: white;
    padding: 10px;
    margin:20px;
    border: 1px solid #444;
}

@media (max-width: 850px) {
  code{
    padding: 5px;
    margin:0px;
  }
}

mark {
  background-color: var(--couleur1);
  padding: 3px;
}

/* ====== Gallery ====== */
.gallery img {
  max-width: 20%;
  min-width: 200px;
}
.gallery img:hover{
  box-shadow: 5px 5px 1px black;
}

/* ====== Menu ====== */
nav li img {
    max-width: 170px;
    max-height: 25px;
    height: auto;
    margin: 7px 10%;
    text-align: center;
    transition: rotate 1s;
}

@media screen and (max-width: 720px) {
nav li img {
    margin: 8px 36%;
    rotate: 180deg;
  }
}

nav ul, nav li{
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #444444aa;
}

nav.topnav li {float: left;}

nav.topnav li a {
  display: block;
  color: white;
  text-align: center;
  vertical-align: middle;
  padding: 12px;
  margin: 0px;
  text-decoration: none;
  max-height: 30px;
}

nav.topnav li a:hover:not(.active) {background-color: var(--couleur1);}

nav.topnav li a.active {background-color: #04AA6D;}

nav.topnav li.right {float: right;}

nav li {
  border-right: 1px solid #555;
}
nav li:last-child {
  border-right: none;
}

nav.topnav ul li{
    width: 170px;
}
nav.topnav ul li:hover {
  display: block; 
}
nav.topnav ul li ul{
  position: fixed;
  width: 170px;
}
nav.topnav ul li li{
  background-color: #222;
  display: none;
}
nav.topnav ul li:hover li {
  display: block;
}


/* Footer */

footer {
    text-align: left;
    height: 50px;
    letter-spacing: 0px;
    vertical-align: middle;
    padding: 5px 5px 5px 5px;
    color: #ddddddaa;
    padding: 10px;
    font-size: 0.8em;
    display: block;
  }

footer a {
  text-decoration: none;
}

footer img{
    height: 32px;
    text-align: left;
    text-shadow: 0px 0px 4px #000;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.4s;
    filter: saturate(0);
  }

footer img:hover{
    height: 32px;
    opacity: 1;
    filter: saturate(100%);
  }

.gauche {float: left;}
.droite {float: right;}

@media screen and (max-width: 720px) {
  nav.topnav li.right, 
  nav.topnav li {float: none;}
  li {border-right: 0px solid #bbb;}
  nav.topnav ul li{width: none; width: 100%;}
  nav.topnav ul li ul{position: relative; width: 100%;}
  section{padding: 12px 6px;} 
}

/*CSS pour framalibre*/
.framalibre-notice {
  display: flex;
  background-color: #222;
  border: 1px solid #555;
  max-width: 60%;
  margin: auto;
}

.framalibre-notice:not(:last-child) {
  margin-bottom: 3rem;
}

.framalibre-notice > div {
  padding: 1.25rem;
}

.framalibre-notice > div:first-of-type {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 25%;
}

.framalibre-notice img {
  max-width: 70%;
}

.framalibre-notice > div:last-of-type > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.framalibre-notice a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-weight: 400;
  color: var(--couleur2);
  text-align: center;
  vertical-align: middle;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid var(--couleur1);
  background-color: transparent;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.framalibre-notice a:hover {
  color: #fff;
  background-color: var(--couleur2);
  border-color: var(--couleur1);
}

@media (max-width: 850px) {
  .framalibre-notice {
    flex-direction: column;
    max-width: 100%;
  }
  .framalibre-notice img {
  max-width: 30%;
}
}

/*News RSS*/
.rss-box {
  background-color: #222;
  padding: 1.25rem;
  border: 1px solid #555;
  max-width: 60%;
  margin: auto;
  margin-bottom: 3rem;
}

a.mention.hashtag  {
  color: #ffffff77;
  text-decoration: none;
}
a.mention.hashtag span  {
  color: #fff;
}

@media (max-width: 850px) {
.rss-box {
  max-width: 100%;
  margin: 15px 3px;
}
}
