/* ====== Charte graphique ====== */
:root {
    --couleur1 : #204a87ff;
    --couleur2 : #5e91daff; 
    --font-titre: "Fira Code", "Fira Code", monospace;
    --font-text : "Fira Code",Monaco,Consolas,Ubuntu Mono,monospace;
}

body {
    color: #fff;
    background: rgb(31,34,42);
    background: radial-gradient(circle, rgba(31,34,42,1) 40%, rgba(18,18,18,1) 100%);
    font-family: "Fira Code",Monaco,Consolas,Ubuntu Mono,monospace;
    font-size: 1.1em;
    padding: 0px;
    margin: 0px 0px;
    margin: auto;
}

header{
    font-variant: small-caps;
	  background-position: 50% 140%;
  	background-size: cover;
    padding: 0px 40% ;
    display: block;
}

header img{
    width: 100%;
    max-width: 500px;
    text-align: center; 
    float: center;
    margin: 30px 0% ;
    transition: width 0.7s, transform 0.7s;
  }
  
header h1{
    display: none;
    float: left;
    font-size: 1.7em;  
    margin: 50px 2px 0px 10px;
    letter-spacing: 4px;
    transition: font-size 0.7s;
    font-family: var(--font-titre);
    color: var(--couleur2);
  }

header p {
    padding: 0px 20%;
}

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

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

section{
    padding: 10px 5%;
    max-width: 1400px;
    margin: auto;
} 

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);
    text-align: center;
}

h2 {
    font-size: 1.6em;
    color: var(--couleur2);
    font-family: var(--font-titre);
    letter-spacing: 8px;
    transform: rotate(-1deg);
    font-variant: all-small-caps;
}
  }
  
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;
}

@media (max-width: 800px) {
  section img {
      max-width: 100%;
      height: auto;
      margin: 2px;
  }
}

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;
}

#footnotes li{
  font-size: 0.9em;
  list-style-type: none;
}

blockquote {
  background: #333;
  padding: 10px;
  margin:20px;
  display: block;
}

blockquote p{
    margin: auto;
}


/* ====== Gallery ====== */
.gallery img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  padding: 6px;
  background-color: #222;
  border: 1px solid #555;
}

.gallery img:hover{
  border: 1px solid var(--couleur2);
}

@media (max-width: 800px) {
.gallery img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
}

/* ====== Menu ====== */
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;
      max-width: 1400px;
    margin: auto;
}


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;
  border-right: 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: 30px;
    text-align: left;
    text-shadow: 0px 0px 4px #000;
    padding: 5px;
    opacity: 0.6;
    transition: transform 0.6s, height 0.5s;
    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: 80%;
}

.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: 80%;
  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;
}
}

/* CSS pour le linkTree*/

#tree {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
#tree img {
  border-radius: 50%;
  max-width: 250px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
#tree li img {
  border-radius: 0%;
  max-width: 31px;
  display: inline;
  vertical-align: middle
}

#tree ul {
list-style-type: none;
text-decoration: none;
display: inline-block;
margin: 15px;
padding: 0;
min-width: 360px;
text-align: center;
}

#tree li a {
  display: inline-block;
  font-size: 17px;
  color: #fff;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  background-color: #333;
  border: 1px solid var(--couleur1);
  border-radius: 7px;
  width: 230px;
  margin: 5px;
}
#tree li a:hover {
  color: #fff;
  background-color: var(--couleur1);
}

/* ====== Track liste ====== */

  .track-list {
            margin-top: 40px;
        }

        .track {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 10px 0;
            border-bottom: 1px solid #333;
            flex-wrap: wrap;
        }

        .track h3 {
            width: 300px;
            margin: 0;
            font-size: 1.1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .waveform {
            flex-grow: 1;
            height: 55px;
            background-color: #1e1e1e;
            border-radius: 5px;
        }

        .track-buttons {
            display: flex;
            gap: 10px;
        }

        .track button {
            padding: 8px 15px;
            background-color: var(--couleur2);
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            border-radius: 5px;
        }

        .track button:hover {
            background-color: #ff6600;
        }

        .lyrics {
            display: none;
            padding: 10px;
            margin-top: 10px;
            background-color: #1e1e1e;
            border-left: 4px solid var(--couleur2);
            font-size: 0.95rem;
            color: #ccc;
        }
        
        /* Responsive : tous les Ã©lÃ©ments en colonne sur petits Ã©crans */
@media screen and (max-width: 800px) {
    .track h3,
    .waveform,
    .track-buttons {
        flex: 1 1 95%;
    }
    .track-buttons {
        justify-content: center; /* Centrage des boutons */
    }
}

/* Responsive layout for printing */
@media print{
  footer, nav{display: none}
  section{padding: 2px;} 
  img, table {break-inside: avoid; page-break-inside: avoid;}
  hr {page-break-after: always;}
}
