.has-vertically-aligned-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

* {
  box-sizing: border-box;
}


/* FOOTER EN BAS SI PAS DE CONTENU... DANS LE FLOW SINON ++ */
/* modif style.css ligne 190 : supprimer "html, body{height:100%";}" */
html { height: 100%; scroll-behavior: smooth;}
body { min-height: 100%; position: relative; padding-bottom: 2.1em; min-width: 300px; color: rgb(10, 10, 10);}
footer { position: absolute; bottom: 0; width: 100%; display: block; margin-top:20px}
.myfooter {padding: 8px 0;letter-spacing: 0.15em;}
body{min-width:300px;}



.navbar-item img {
  max-height: 4rem;
}

.navbar-item, .navbar-link {
  padding: .5rem .5rem;
}

.navbar-dropdown {box-shadow: unset;}
.navbar-dropdown {padding-top: 0;}

@media only screen and (max-width: 1300px) {
  .navbar-item, .navbar-link {
    padding: .5rem .5rem;
  }
}

@media only screen and (max-width: 1216px) {
  .navbar-item, .navbar-link {
    padding: .5rem .3rem;
    font-size: .9rem;
  }
}
  
a.navbar-item.is-active {
  background-color: hsl(0 100% 100% / 0);
}

.navbar-item a, .navbar-item a:hover {
  background-color: hsl(0 100% 100% / 0);
}

.navbar-link.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, a.navbar-item.is-active, a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover {
  background-color: hsl(0 100% 100% / 0);
  color: #8b0000;
}


.content .img100 img {width: 100% !important;}
.content img { border-radius: 6px;}
.content .noradius { border-radius: 0;}
.content .myborder { border: 1px solid #ddd;}

.content code {
    background-color: inherit;
    color: #8b0000;
    font-size: 1.1em;
    font-weight: 600;
    padding: 0;
    font-family: inherit;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  color: inherit;
  line-height: 1.3;
  font-weight: 900;
  margin-bottom: 0;
  padding: 12px 0 8px 0;
}

.content h1 { font-size: 3em;} 
.content h2 { font-size: 2.2em; _color:#8b0000; margin-bottom: 0; }
.content h3 { font-size: 1.6em;} 
.content h4 { font-size: 1.3em; _color:#8b0000} 
.content h5 { font-size: 1.2em; } 
.content h6 { font-size: 1em; _color:#8b0000} 

.content ul { margin-top: 0; margin-left: .6em;}
.content ul:not(:last-child) { margin-bottom: 2em;}

.soustitre h1, .soustitre h2, .soustitre h3 { display: inline-flex; font-weight: 700;} 
.soustitre h1 { font-size: 1.4em;}
.soustitre h2 { font-size: 1.2em;}
.soustitre h3 { font-size: 1em;}

.content a {color: #111; _border-bottom: 1px solid #333; text-decoration: underline;}
.content a:hover { color: #555; _border-bottom: 2px solid #000;}

.content a img {color: #333; border-bottom: 0px solid #333;}
.content a:hover img { color: #000; border-bottom: 0px solid #000;}


.link-without-border a {color: #333; border-bottom: 0px solid #333;}
.link-without-border a:hover { color: #000; border-bottom: 0px solid #000;}



.content figure:not(:last-child) {margin-bottom: .6em;}
.content figure {
  margin-left: .1em;
  margin-right: .1em;
}

ul {
  display: inline-block;
  text-align: left;
}

.title:not(:last-child) {
  margin-bottom: 0.5rem;
}


.svg {
  _height: 1em;
  vertical-align: text-top;
}


/* LIVRES */
.avatar {
  margin-top: -70px;
  padding-bottom: 1px;
}
.avatar img {
  padding: 5px;
  background: #fff;
  _border-radius: 50%;
  _webkit-box-shadow: 0 2px 3px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);
  box-shadow: 0 2px 3px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);
}

.sticky {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 50px;
}

@media (max-width: 599px) {
  .box {padding: .6rem}
  .navbar-item img {
    max-height: 3rem;
  }
}



#toTop {
  height: 50px;
  width: 50px;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #48a59a;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(14, 25, 80, 0.3);
  padding-bottom: 12px;
}

#toTop a {
  color: white;
}

#toTop:hover {
  background-color: #43485c;
}

::-webkit-scrollbar {
  width: 8px;
  background-color: rgba(245, 245, 245, 0);
}

::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #43485c;
}


/* Pour que la legende soit sous l'image */
.tobi [data-type] > figure {
   position: inherit;
}

.tobi [data-type] > figure > figcaption {
  background-color: rgba(255,255,255,0);
  bottom: inherit;
  color: #fff;
  padding: 0;
  font-size: .7em;
  font-style: italic;
}

.tobi {
  background-color: rgba(31, 33, 36, 0.96);}


.transparent-70 {
  background: linear-gradient(to right, rgba(255,255,255, 0.8) 0 100%);
}

hr {
  background-color: rgb(119, 119, 119);
  height: 1px;
  margin: 1.5rem 0px;
}


/* ------------------- Masonry ------------------ */
masonry-list {
  --masonry-item-width: 12rem;
  --masonry-list-column-gap: 0.6rem;
  /* when patch is active this is replaced by unitless pixel size, and row-gap forced to 1px */
  --masonry-list-row-gap: 0.3rem;
  /* maximum span seen in current items */
  --masonry-item-max-span: 4;
  /* fix unequal column widths when span to multiple columns is defined; without this adjustment there could be infinite ResizeObserver loop in smaller screen sizes due to the column widths varying */
  --masonry-list-column-min-size: calc(
    (100% - (var(--masonry-item-max-span) - 1) * var(--masonry-list-column-gap)) /
      var(--masonry-item-max-span)
  );

  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(
      min(var(--masonry-list-column-min-size), var(--masonry-item-width)),
      1fr
    )
  );
  grid-template-rows: masonry;
  column-gap: var(--masonry-list-column-gap);
  /* this row gap variable will be set to unitless value in JS, so you can't declare both gaps in a gap shorthand as then column-gap will break */
  row-gap: var(--masonry-list-row-gap);
  grid-auto-flow: dense;
  /* correct last item adding extra size when masonry is patched */
  margin-block-end: calc(
    var(--masonry-list-row-gap) * -1px + var(--masonry-list-margin-bottom, 0px)
  );
}

masonry-item {
  align-self: start;
  grid-column-end: span var(--masonry-item-span, 1);
}

/* Stylistic Purposes */
masonry-item {
  display: grid;
  gap: 2rem;
  _border: 1px solid white;
  padding: 0rem;
  border-radius: 0.5rem;
  _background: black;
}

@media (max-width: 772px) {
  masonry-list {
    display: block;
  }
}