/* -------------------------------------------------- */
/* - Reset ------------------------------------------ */
/* -------------------------------------------------- */
* {
    margin:0;
    padding:0;
}


/* -------------------------------------------------- */
/* - Generic ---------------------------------------- */
/* -------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

header {
    color: #ffffff;
    padding: 10px 0 0 0;
    text-align: center;
    line-height: 1;
    margin-top: 30px;
    margin-bottom: 10px;
}

body {
    font-family: Lora, serif;
    font-weight: 300;
    line-height: 2.2;
    font-size: 1.1em;
    background-image: linear-gradient(to bottom, #e4d9cf, #F4EEEB 20%, #F4EEEB 20%);
    color: #333333;
    margin-left: 25%;
    margin-right: 25%;
    margin-top: 0;
}

section {
    padding: 20px;
    padding-top: 0%;
    text-align: justify;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    color: #ac9a85;
    font-style: italic;
}
petite {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 100;
    font-size: medium;
    color: rgb(90, 89, 86);
    /* line-height: 2em; */
    margin-top: 30px;
}

h1 {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400;
    font-size: 2em;
    color: rgb(90, 89, 86);
    /* line-height: 2em; */
    margin-top: 30px;
}

h2 {
    font-family: "Playfair Display";
    font-weight: 200;
    font-size: 1.6em;
    color: rgb(90, 89, 86);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: rgb(216, 194, 69);
    text-underline-offset: 14px;
    margin-bottom: 20px;
    text-align: left;
}

h3 {
    font-family: "Playfair Display";
    font-weight: 600;
    font-size: 1.5em;
    color: rgb(90, 89, 86);
    text-decoration-line: none;
    text-decoration-thickness: 2px;
    text-decoration-color: rgb(216, 194, 69);
    text-underline-offset: 14px;
    margin-bottom: 20px;
}

p {
    margin: 10px 0;
}

b, strong {
    font-weight: 700;
}

a {
    color: #333;
    text-decoration: none;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 9px;
    outline: 0;
    padding: 4px;
    transition: 0.7s ease;
}

.project-button {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.project-button a {
    color: rgb(216, 194, 69);
    padding: 20px 40px 20px 40px;
    text-decoration-line: none;
    border: 2px solid rgb(216, 194, 69);
    font-size: 1.3em;
}

a:hover {
    text-decoration-color: rgba(0, 0, 0, 0);
    background-color: #ffee0023;
    border-radius: 4px;
    transition: 0.7s ease;

}

ul {
    margin-left: 15px;
    text-align: left;
}

ol {
    margin-left: 15px;
    list-style-type: upper-roman;
}

/* Title */
p.title {
    font-weight: 400;
    font-size: 3.6em;
    font-family: "Playfair Display";
    color: #5c5a59;
    margin-bottom: 20px;
}

p.title a {
    text-decoration-line: none;
    border-bottom: none;
}

p.title a:hover {
    background-color: #ffee0000;
    color: #8b6728;
}

#accent-color {
    color:rgb(221, 188, 2);
    
    transition: 0.5s ease;
}

#accent-color:hover {
    color: rgb(238, 214, 81);
    text-shadow: 0px 0px 16px rgb(255, 251, 233), 0px 0px 50px rgb(255, 251, 233);
    
    transition: 0.5s ease;
}
#etincellebeaujolaise-color {
  color:rgb(221, 188, 2);
  
  transition: 0.5s ease;
}

#etincellebeaujolaise-color:hover {
  color: rgb(238, 214, 81);
  text-shadow: 0px 0px 16px rgb(255, 251, 233), 0px 0px 50px rgb(255, 251, 233);
  
  transition: 0.5s ease;
}

.page-title {
    margin-top: 10px;
    margin-bottom: 10px;
}

h1.mini-title {
    
    font-size: 1.1em;
    color: rgba(90, 89, 86, 0.6);
    margin-bottom: 16px;
    font-style: normal;
}



/* -------------------------------------------------- */
/* - Index ------------------------------------------ */
/* -------------------------------------------------- */

main.index {
    margin-left: 10%;
    margin-right: 10%;
}

main.index ol ul li a,
main.index ol ul li {
    font-size: 1em;
    color: #666666;
}

main.index ol ul li a {
    text-decoration-style: dashed;
}

main.index ol li {
    font-size: 1.1em;
}

h1.index {
  font-size: 1.8em;
  color: #5c5a59;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  font-style: normal;
  line-height: 1em;
}


/* -------------------------------------------------- */
/* - Header ----------------------------------------- */
/* -------------------------------------------------- */

p.tagline {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 400;
    font-size: 1.15em;
    color: rgb(121, 121, 121);
    margin-top: 20px;
    margin-bottom: 20px;
}

p.author {
    color: rgba(53, 52, 50, 0.942);
    font-size: 1.2em;
    font-weight: 800;
}

p.email {
    color: rgba(105, 104, 100, 0.74);
    font-size: .9em;
    font-weight: 400;
}

p.author i {
    vertical-align: text-top;
    padding-top: 3px;
}

p.author a {
    padding: 0px;
}

p.author a:hover {
    padding: 0px;
    color:rgb(221, 188, 2);
}

.header-separator {
    width: 90px;
    height: 0px;
    border-width: 0px;
    border-top: 1px solid rgb(163, 163, 163);
    margin: 30px auto 10px auto;
}

.article-separator {
    width: 90px;
    height: 0px;
    border-width: 0px;
    border-top: 1px solid rgb(163, 163, 163);
    margin: 50px auto 10px auto;
}

#reading-time {
  /* font-family: "Playfair Display"; */
  font-weight: 200;
  color: #30170046;
  font-style: italic;
  font-size: .9em;
}

[data-reading-time] {
  font-style: italic;
  color: #555;
}


/* -------------------------------------------------- */
/* - Quotes ----------------------------------------- */
/* -------------------------------------------------- */
.quote {
  border: 0px dotted rgba(192, 165, 12, 0.616);
  border-radius: 0px;
  background-color: rgba(221, 188, 2, 0.035);
  padding: 16px;
  padding-bottom: 8px;
  padding-top: 8px;
  font-style: italic;
  color: rgba(75, 68, 24, 0.767);
  border-left: 4px solid rgba(192, 165, 12, 0.616);
}

.quote p {
  margin: 0;
}

.quote-source {
  text-align: center;
  font-style: normal;
  font-weight: 600;
  color: rgba(75, 68, 24, 0.400);

}

.index-quote {
  text-align: center;
  padding-left: 20%;
  padding-right: 20%;
  margin-top: 20px;
  line-height: 1.6em;
  color:rgba(56, 38, 10, 0.178);
  font-size: 1.2em;
  font-style: italic;
}

.index-quote .quote-source {
  color: rgba(75, 68, 24, 0.200);

}

/* -------------------------------------------------- */
/* - Special ---------------------------------------- */
/* -------------------------------------------------- */

.article-content {
  text-align: justify;
}

.article-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
  height: auto;
  border-radius: 6px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.article-intro {
  font-size: 1.1em;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.521);
}

.article-meta {
  text-align: center;
  line-height: normal;
  margin: 30px;
}

.article-meta h1 {
  margin: 0
}

.article-meta h1 a {
  color: rgb(221, 188, 2);
  text-decoration-line: none;
  text-shadow: 0px 0px 16px rgb(255, 251, 233), 0px 0px 10px rgb(255, 251, 233);
}

.article-meta h2 {
    text-decoration-line: none;
    text-align: center;
    font-size: 1.4em;
    color: rgb(223, 198, 54);
  font-style: italic;
}

.article-date {
  font-style: italic;
  color: rgba(53, 52, 50, 0.5);
  font-size: .94em;
}

/* -------------------------------------------------- */
/* - Special ---------------------------------------- */
/* -------------------------------------------------- */

.proust-question {
    color: rgb(170, 145, 6);
    font-style: italic;
}

.s002 {
    color: rgb(30, 201, 58);
    font-style: italic;
}

.s003 {
    font-weight: bold;
}

.s003_souligne {
    font-weight: bold;
    text-decoration: underline;
}

.s004 {
    font-style: italic; /* Rend le texte en italique */
}

.s006 {
    /*  Auteur cité */
    /* Toutdoux à compléter, modifier */
    color: rgb(4, 71, 30);
    font-style: italic;
}

.s007{
    text-align: center;
}

/* -------------------------------------------------- */
/* - Navigation ------------------------------------- */
/* -------------------------------------------------- */

ul.page-navigation {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    font-style: italic;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-left-width: 0px;
    border-right-width: 0px;
    margin-top: 30px;
    margin-bottom: 30px;
}

ul.page-navigation li a {
    padding-top: 16px;
    padding-bottom: 16px;
    display: inline-block;
    border-width: 0px;
    font-size: 1.2em;
    font-family: "Playfair Display";
    font-weight: 200;
    text-decoration-line: none;
    color: rgba(102, 102, 102, 0.8);
}

ul.page-navigation li.home-page a {
    color: rgba(102, 102, 102, 0.5);
}

ul.page-navigation li a:hover {
    text-decoration-line: none;
    background-color: #ffee001e;
    border-radius: 0px;
}

ul.page-navigation li.previous-page {
    order: 1;
}

ul.page-navigation li.home-page {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

ul.page-navigation li.next-page {
    order: 3;
}

.arrow {
    border: solid rgb(102, 102, 102, 0.8);
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 8px;
  }
  
.right {
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
}

.left {
transform: rotate(135deg);
-webkit-transform: rotate(135deg);
}


/* -------------------------------------------------- */
/* - Spacers ---------------------------------------- */
/* -------------------------------------------------- */

.horizontal-spacer {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 20px;
  }
.vertical-spacer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.spacer {
  width: 15px;
  height: 15px;
  background-color: #c4c1c1;
  border-radius: 50%;
}


/* -------------------------------------------------- */
/* - Progress bar ----------------------------------- */
/* -------------------------------------------------- */

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px; 
  background-color: #f3f3f300;
  z-index: 10;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background-color: rgb(219, 195, 57);
  transition: width 0.5s ease-out;
}


/* -------------------------------------------------- */
/* - Scroll to top ---------------------------------- */
/* -------------------------------------------------- */

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: block;
    opacity: 0;
    background-color: #00000000;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 11;
    transition: 0.5s ease-out;
  }
  
#scroll-to-top.show {
  display: block;
  opacity: 1;

}

.scroll-arrow {
  border: solid rgba(51, 29, 8, 0.199);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 20px;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.scroll-arrow:hover {
  border: solid rgb(216, 194, 69);
  border-width: 0 3px 3px 0;
}

/* -------------------------------------------------- */
/* - TOC -------------------------------------------- */
/* -------------------------------------------------- */

#site-toc,
#page-toc {
  position: fixed;
  top: 0;
  width: 260px;
  padding-top: 200px;
  height: 100%;
  overflow-y: auto;
  z-index: 10;
  line-height: 1.9em;
  font-size: .9em;
  color:#00000038;
  background-color: rgba(54, 40, 9, 0.005);
  border-width: 0px;
  border-style: solid;
  border-image: linear-gradient(to bottom, transparent 3%, rgba(0, 0, 0, 0.041) 25%, rgba(0, 0, 0, 0.041) 75%, transparent 97%) 1;
  transition: .4s ease;
}

#page-toc:hover,
#site-toc:hover {
  background-color: #35261505;
}

#page-toc a,
#site-toc a {
  text-decoration-line: none;
  color:#201a1056;
  padding-left: 0;
  transition: 0.7s ease;
}

#page-toc a:hover,
#site-toc a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.3);
  color:#201a10da;
}

#site-toc h3,
#page-toc h3 {
  margin-top: 0;
  color: rgba(41, 35, 23, 0.479);
  font-size: 1.3em;
  text-align: left;
  font-weight: 100;
  margin-bottom: 10px;
  font-style: italic;
}

#site-toc ul,
#page-toc ul {
  list-style: none;
  padding: 0;
}

/* - Page TOC --------------------------------------- */

#page-toc {
  right: 0;
  padding-left: 26px;
  padding-right: 10px;
  border-left-width: 1px;
}
  
#page-toc ul {
  margin-left: 0px;
}

#page-toc ul li {
  margin-left: 0px;
  margin-bottom: 2px;
}
  

/* - Site TOC --------------------------------------- */

#site-toc {
  left: 0;
  padding-left: 20px;
  padding-right: 10px;
  border-right-width: 1px;}


#site-toc ol ul {
  margin-left: 2px;
  font-size: .86em;
}


/* -------------------------------------------------- */
/* - Responsive ------------------------------------- */
/* -------------------------------------------------- */

@media screen and (max-width: 768px) {
  body,
  main.index {
    margin-left: 5%;
    margin-right: 5%;
  }

  body {
    font-size: 1em;
    line-height: 1.9;
  }

  header {
    margin: 10px;
  }

  section {
    padding: 0;
  }

  p.title {
    font-size: 2.3em;
  }

  .menu-button {
    display: block;
  }

  #page-toc {
    display: none;
  }

  #site-toc {
    position: static;
    width: 100%;
    height: auto;
    display: none;
  }

  .header-separator {
    margin-top: 20px;
  }

  h1 {
    margin-top: 20px;
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.4em;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    margin-bottom: 10px;
  }

  main.index ol li {
    font-size: 1em;
  }

  a {
    text-underline-offset: 5px;
  }

  ul.page-navigation {
    display: block;
    text-align: center;
    margin-left: 0;
  }

  ul.page-navigation li.home-page {
    position: static;
    transform: none;
  }

  ul.page-navigation li a {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 1em;
  }

  .arrow {
    padding: 4px;
  }


}

/* Bouton de menu pour afficher la table des matières sur les petits écrans */
.menu-button {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 20;
}