/*
Sommaire :
  - Fonts
  - Variables
  - Éléments communs
  - Couverture (écran d’accueil)
  - Sommaire et navigation 
  - Contenu
  - Entretiens (template = interview)
  - Glossaire (template = glossary)
  - Colonnes
  - Notes
  - Images de notes
  - Images en annexes
  - Vidéos
*/


/* ------------------------------------------------------------------------ Fonts */
/* DM Sans */
@font-face {
  font-family: "DMsans";
  src: url("fonts/BBBDMSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "DMsans";
  src: url("fonts/BBBDMSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "DMsans";
  src: url("fonts/BBBDMSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "DMsans";
  src: url("fonts/BBBDMSans-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

/* DMsans italic */

@font-face {
  font-family: "DMsans";
  src: url("fonts/DMSans-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "DMsans";
  src: url("fonts/DMSans-Italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "DMsans";
  src: url("fonts/DMSans-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "DMsans";
  src: url("fonts/DMSans-BoldItalic.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
}


/* Font personnelle */

@font-face {
  font-family: "DiamondGrotesk";
  src: url("fonts/DiamondGrotesk-VF.woff2") format("woff2");
  font-weight: normal;
}

/* ------------------------------------------------------------------------ Variables */
:root {
  /* typographie */
  --fontfamily: "DMsans", sans-serif;
  --fontTitle: "DiamondGrotesk", sans-serif;
  --bigsize: clamp(2.50rem, calc(1.83rem + 3.33vw), 6.00rem);
  --basesize: 1.25rem;
  --weightTitle : 500;
  /* couleur */
  --primary:  rgb(0, 123, 255);
  --secondary: rgb(178, 218, 255);
  --gradient: linear-gradient(90deg,var(--primary) 0%, var(--white) 100%);
  --gradient-bg-btn: linear-gradient(90deg,var(--primary) 0%, var(--white) 28%);
  --white:  rgb(232, 233, 255);
  --black: rgba(19, 10, 56);
  --filter : brightness(0) saturate(100%) invert(6%) sepia(39%) saturate(855%) hue-rotate(331deg) brightness(99%) contrast(96%);
  /* espacements homogènes */
  --spacerXS: 1rem;
  --spacer: 2rem;
  --spacerXL: 8rem;
  /* largeur des notes de côté */
  --sn-width: 15rem;
  /* couleur d’accentuation */
  --accentcolor: black;
  /* largeur max. des textes */
  --maxwidth: 50rem;
  /* image */
  --background-header : url("../assets/icone-memoire.svg");
}

@media (max-width:30rem) {
  :root{
    --spacerXS: 0.5rem;
    --spacer:1rem;
    --spacerXL : 4rem; 
    --basesize:1rem;
    --bigsize: clamp(1.5rem, calc(1.5rem + 3.5vw), 3.00rem);
  }
}

/* ------------------------------------------------------------------------ Common */
/* box model */
*, *::after, *::before { box-sizing: border-box; }
/* smooth scroll */
html { 
  scroll-behavior: smooth;
  /* font-size: 18px; si on voulais que les rem prennent la valeur de la typo*/
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* page defaults */
body {
  font-family: var(--fontfamily);
  color: var(--black);
  font-size: var(--basesize);
  line-height: 1.45;
  margin: 0;
  overflow-x: hidden;
  height: fit-content;
  background-color: var(--white);
}
p:first-child { margin-top: 0; }
a { color: currentColor; text-decoration: none; }
img { max-width: 100%; height: auto; }
mark { background: var(--secondary); padding: 0 .15em; color: var(--black);}
sub, sup { line-height: 0; }
sup {
  top: 0.1em;
  position: relative;
}
hr{ 
  height: 0;
  border: none;
  background: none;
  border-top: 2px solid #000;
  width: 4em;
}

/* ------------------------------------------------------------------------ Cover */

#header {
  min-height: 100vh;
  padding: var(--spacer);
  background-image: var(--background-header);
  background-size: 35%;
  background-repeat: no-repeat;
  background-position: center;
}

.header-content{
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#header h1 {
  margin-bottom: 1rem;
  line-height: 1.1;
  max-width: calc(var(--bigsize) * 16);
  font-size: calc(var(--bigsize) * 1);
  color: var(--black);
  font-family: var(--fontTitle);
  font-weight: var(--weightTitle);
}
#header h2 {
  margin: 0 0 2rem 0;
  line-height: 1.2;
  max-width: calc(var(--bigsize) * 10);
  font-size: calc(var(--bigsize) * .5);
  color: var(--black);
  font-family: var(--fontTitle);
}

#header h2:empty { display: none;}


.meta {
  display: none;
}

.meta-name{
  font-size: 1.5rem;
}

@media(max-width:30rem){
  #header{
    min-height: 50vh;
    background-size: 80%;
  }
  .header-content{
    min-height: 40vh;
  }

  .meta-name{
    font-size: 1rem;
  }
}

/* #header nav a {
  display: inline-block;
  margin-right: 1em;
} */

.nav-principale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
}

.nav-principale img{
  justify-self: center;
}

.nav-principale div+button {
  justify-self: end;
}

.iconsContainer{
  display: flex;
  gap: .5rem;
  justify-self: center;
}

.iconHead{
  width: 3.25rem;
  height: 3.25rem;
  filter: var(--filter);
}

@media(max-width:30rem){

  .nav-principale{
    display: flex;
    justify-content: space-between;
  }
  .iconsContainer{
    display: none;
  }
  
}


/* le titre courant n’est affiché qu’en contexte print */
.runningtitle, .runningfolio {
  display: none;
}
.runningtitle + h1,
.runningtitle + h2,
.runningtitle + h3 {
  margin-top: 0;
}
@media screen and (max-width:45rem) {
  /*.meta { display: block;}
  .meta > * { margin-bottom: 1em;}*/
  /* #header nav { display: block; } */
}
/* ------------------------------------------------------------------------ Boutons */
button{
  background: none;
  position: relative;
  border: none;
  text-decoration: underline;
  font-family: var(--fontfamily);
  font-size: var(--basesize);
  cursor: pointer;
}
button::before{
  position: absolute;
  z-index: 2;
  content: '';
  background: var(--secondary) ;
  mix-blend-mode: multiply;
  height: 1.3em;
  left: -1px;
  width: 0;
  transition: all 0.5s;
}
button:after {
  display: none;
}
button:hover{
  text-decoration: none;
}
button:active{
  text-decoration: none;
}

button:hover::before {
  width:100%;
}
button:active::before {
  width:100%;
}

a{
  width: fit-content;
  background: none;
  position: relative;
  border: none;
  text-decoration: underline;
  font-family: var(--fontfamily);
  font-size: var(--basesize);
  cursor: pointer;
}
a::before{
  position: absolute;
  z-index: 2;
  content: '';
  background: var(--secondary) ;
  mix-blend-mode: multiply;
  height: 1.3em;
  left: -1px;
  width: 0;
  transition: all 0.5s;
}
a:after {
  display: none;
}
a:hover{
  text-decoration: none;
}
a:active{
  text-decoration: none;
}

a:hover::before {
  width:100%;
}
a:active::before {
  width:100%;
}

/* Quicklinks v2 */ 
 .quicklinks-button{
  text-decoration: none;
  position: relative;
  display: flex;
  justify-content: start;
  align-items: start;
  padding-top: .3rem;
  padding-left: .8rem;
  margin-left: -71.5vw;
  clip-path: polygon(10% 0, 12% 85%, 100% 85%, 100% 100%, 36% 100%, 0 100%, 0 0);  
  width: 80vw;
  height: 3.5rem;
  transition: all ease-in-out .2s;
  background: var(--white);
  border-radius: .3rem;
  transform: translateY(0.38rem);
}

.quicklinks-button::before{
  display: block;
  position: absolute;
  content:'';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  background-image: url(../assets/bg.png);
  background-size: repeat;
  opacity: 0;
}

.quicklinks_text{
  display: block;
  color: var(--black);
  font-size: .75rem;
  font-family: var(--fontfamily);
  line-height: 1.2;
  width: 9%;
}

.quicklinks-button:hover{
  transform: none;
  background: var(--gradient-bg-btn);
  clip-path: polygon(10% 0, 12% 77%, 100% 77%, 100% 100%, 36% 100%, 0 100%, 0 0);  
}

.quicklinks-button:hover::before{
  opacity: .2;
} 

.quicklinks-button.active{
  background: var(--primary);
  transform:none;
  clip-path: polygon(10% 0, 12% 77%, 100% 77%, 100% 100%, 36% 100%, 0 100%, 0 0);
} 

.quicklinks-button:focus-visible{
  background: var(--black);
}
.quicklinks-button:focus-visible .quicklinks_text{
  color: var(--white);
}


.print-button{
  position: relative;
  display: inline-flex;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 1rem;
}

.print-button::before{
  position: absolute;
  z-index: 2;
  content: '';
  background: var(--secondary) ;
  mix-blend-mode: multiply;
  height: 2.25rem;
  left: -1px;
  width: 0;
  transition: all 0.5s;
}

.print-button::after{
  display: inline-flex;
  padding-left: 0.5em;
  width: 3rem;
  content: url('../assets/imprimante.svg');
}

.print-button:hover{
  text-decoration: none;
}
.print-button:active{
  text-decoration: none;
}

.print-button:hover::before {
  width:100%;
}
.print-button:active::before {
  width:100%;
}


/* ------------------------------------------------------------------------ Nav */

#nav {
  background-color: var(--primary); 
  height: 100vh;
  overflow: scroll;
  width: 33vw;
  display: flex;
  flex-direction: column;
  transform: translate(50vw);
  transition: transform 0.6s ease-in-out;
  gap: var(--spacer);
  padding: var(--spacerXL) var(--spacer);
  align-content: space-between;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 90;
}

@media(max-width:30rem){
  #nav{
    width: 100%;
    transform: translate(100%);
  }

  #nav button{
    order: 1;
  }
  #toc-tree{
    order: 2;
  }
}

#nav button,
#nav ul {
  grid-column: 1;
  margin: 0;
  /* font-size: 1em; */
}

.nav-default + .nav-appendices { margin-top: 1em;}

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

#nav button{
  border: none;
  background-color: transparent;
  width: fit-content;
  cursor: pointer;
}

/* #fastTravel : le mini sommaire*/
#quicklinks{
  z-index: 24;
  position: fixed;
  width: 95%;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  transition: all ease-in-out .8s;
  align-items: start;
}

#fastTravel{
  bottom: 0;
  order: 2;
  display: flex;
  flex-direction: row;
  height: max-content;
}

#fastTravel ul{
  position: absolute;
  bottom: 0;
  right: -71vw;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  list-style-type: none;
  justify-content: end;
  height: fit-content;
  align-items: end;
}

#fastTravel li{
  filter: drop-shadow(0 0 1px var(--primary)) drop-shadow(0 0 0.5px var(--primary));
  transition: all ease-in-out .2s;
  z-index: 0;
}

#fastTravel li:has(a:hover){
  filter: none;
}
#fastTravel li:has(a.active){
  filter: drop-shadow(0 0 1px var(--secondary)) drop-shadow(0 0 0.5px var(--secondary));
}


#fastTravel li:nth-child(1) { z-index: 10; }
#fastTravel li:nth-child(2) { z-index: 9; }
#fastTravel li:nth-child(3) { z-index: 8; }
#fastTravel li:nth-child(4) { z-index: 7; }
#fastTravel li:nth-child(5) { z-index: 6; }
#fastTravel li:nth-child(6) { z-index: 5; }
#fastTravel li:nth-child(7) { z-index: 4; }
#fastTravel li:nth-child(8) { z-index: 3; }
#fastTravel li:nth-child(9) { z-index: 2; }
#fastTravel li:nth-child(10) { z-index: 1; }



/* bouton toggle menu */

@media screen  and (max-width:60rem) {
  #nav {
    display: flex;
    min-height: 0;
    margin-bottom: calc(var(--spacer) * 2);
  }

  #quicklinks{
    width: 100%;
    height: fit-content;
    padding: 1rem 0;
    left: 0;
    justify-content: center;
    background-color: var(--white);
    border-top: var(--primary) solid 1px;
  }

  #fastTravel{
    display: none;
  }
}


/* ------------------------------------------------------------------------ Content */
main {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-gap: var(--spacer);
  align-self: start;
  padding: var(--spacer);
  position: relative;
}
/* les sections */
main > *:not(#index) {
  grid-column: 2;
  margin-bottom: calc(var(--spacer) * 2);
  scroll-margin-top: 1.5em;
}

main p,
main ul,
main blockquote,
main ol {
  max-width: var(--maxwidth);
}
main h1:first-child,
main h2:first-child,
main h3:first-child {
  margin-top: 0;
}

main h1, h2, h3, h4 {
  font-weight: var(--weightTitle);
  margin: 1.5em 0 1em 0;
}

main h1 {
  font-size: 1.5em;
  font-family: var(--fontTitle);
}
main h2 {
  position: relative;
  font-size: 2em;
  font-family: var(--fontTitle);
}

@media only screen and (min-width : 1300px) {
  main h2{
    position: sticky;
    top: 20px;
    transform: translateX(-41vw);
    max-width: 38vw;
  }
}

main h3 {
  font-size: 1.6rem;
  /* A modifier en fonction de vos typos de titre */
  font-weight: 500; 
  font-family: var(--fontTitle);
}

main h4 {
  font-size: 1.4rem;
  font-family: var(--fontTitle);
}

main h5 {
  font-size: 1.2rem
}

main figure {
  margin: 1em 0;
  max-width: var(--maxwidth);
}

main blockquote {
  font-style: italic;
  margin-left: 0;
  padding-left: 4em;
}

@media screen and (max-width:80rem) {
  main { 
    display: block; 
    max-width: var(--maxwidth);
    margin: 0 auto;
  }
  main h2 {
  font-size: calc(var(--bigsize)*.9);
  }
}

/* ------------------------------------------------------------------------ Break */
.breakpage, 
.breakcolumn,
.breakprint {
  display: none;
}

/* ------------------------------------------------------------------------ Entretiens (template = interview) */
.interview p {
  --indent: 8em;
  padding-left: var(--indent);
}
@media screen and (max-width:40rem) {
  .interview p { --indent: 0 }
}
.interview p:nth-child(1) strong:first-child,
.interview p:nth-child(2) strong:first-child {
  text-align: left;
}
.interview :not([data-split-from]) strong:first-child {
  margin-left: calc(var(--indent) * -1);
  min-width: calc(var(--indent) - 1em);
  float: left;
  text-align: right;
  padding-right: 1em;
  text-decoration: underline;
  font-weight: normal;
}

/* ------------------------------------------------------------------------ Glossaire (template = glossary) */
.glossary {
  columns: 3;
  column-gap: var(--spacer);
  font-size: 0.85em;
}
.term {
  break-inside: avoid-column;
}
.term dl {
  margin-top: 0;
}
.term dt {
  font-weight: bold;
}
.term dd {
  margin-bottom: 1em;
  margin-left: 0;
}
@media screen and (max-width:30rem) {
  .glossary { columns: 1;}
}
/* ------------------------------------------------------------------------ Colonnes */
.columns {
  font-size: 0.85em;
  columns: 3;
  column-gap: var(--spacer);
}
.columns p {
  break-inside: avoid;
  max-width: 28em;
}
@media screen and (max-width:30rem) {
  .columns { columns: 1;}
}
/* ------------------------------------------------------------------------ Images de notes */
/* footnotes */
.imagenote {
  float: right;
  clear: right;
  width: 250px;
  font-size: 0.85rem;
  margin-right: calc(-250px - var(--spacer));
  margin-bottom: 1rem;
}
.imagenote img {
  display: block;
}
.imagenote .caption {
  padding: 0.5em 0;
  display: block;
  text-indent: 0;
}
.imagenote .caption::before {
  content: "↑ ";
}

@media screen and (max-width: 80rem) {
  .imagenote {
    /* margin: .5em 1em .5em calc(var(--spacer ) * -1);
    float: left;
    clear: left; */
    margin: .5em calc(-1 * ((100vw - var(--maxwidth)) / 2) - var(--spacer)) .5em var(--spacer);
    display: block;
    width: 40%;
  }
  .imagenote .caption {
    padding: 0.5em var(--spacer ) 0 0;
    font-size: .85em;
  }
}

/* --maxwidth = 46rem */
@media screen and (max-width: 46rem) {
  .imagenote {
    margin: .5em 1em .5em calc(var(--spacer ) * -1);
    float: left;
    clear: left;
  }
  .imagenote .caption {
    padding: 0.5em 0 0 var(--spacer );
  }
}
/* ------------------------------------------------------------------------ Notes */

.sn-toggle {
  display: none;
}
.sn-note {
  display: none;
}
.sn-toggle:checked + .sn-note {
  display: inline;
  background-color: var(--secondary);
  padding-left: 0.25rem;
  margin-right: 0.25rem;
}

label[for^="sn-"] {
  cursor: pointer;
  background-color: var(--secondary);
}

.sn-toggle-label,
sup a.footnote-ref {
  text-decoration: none;
  border: none;
  user-select: none;
}
/* appels de note */
.sn-toggle-label::before {content: "["}
.sn-toggle-label::after {content: "]"}

sup[id^="fn"] {
  vertical-align: baseline;
}
sup a.footnote-ref {
  color: var(--accentcolor);
  font-weight: 700;
}
.sn-note em,
.sn-note i {
  font-style: italic;
}
.sn-note :first-child {
  margin-top: 0;
}
.sn-note img {
  display: block;
}
.sn-note .caption {
  display: block;
  margin-top: 0.25em;
}
.sn-note .caption::before {
  content: "↑ ";
}

/* default footnotes (no js) */
.footnotes {
  max-width: var(--p-width);
  margin-top: 2em;
  padding-top: 1em;
}
.footnotes ol {
  font-size: 0.85rem;
  padding-left: 1em;
}
.footnotes :target {
  background: var(--secondary);
}
hr.footnotes-sep {
  background: none;
  border: none;
  margin: 0;
  width: 4em;
}


/* ------------------------------------------------------------------------ Auto folder (template = autofolder) */
.autofolder .content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: var(--spacer);
  align-content: start;
  grid-auto-flow: dense;
}
.autofolder .figure {
  grid-column: span 3;
  align-self: start;
  justify-self: start;
  margin: 0;
  padding: 0;
}
.autofolder .portrait {
  /* grid-row: span 2; */
}
.autofolder .landscape {
  grid-column: span 6;
}
@media screen and (max-width:40rem) {
  .autofolder .figure { 
    grid-column: 1 / -1 !important;
  }
}

/* ------------------------------------------------------------------------ Images annexes (template = appendices) */
.appendices .content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: var(--spacer);
  align-content: start;
}
.appendices .figure {
  grid-column: span 3;
  align-self: start;
  justify-self: start;
  margin: 0;
  padding: 0;
}
.figure img {
  display: block;
}
.notwhite {
  background: rgba(0, 0, 0, 0.05);
}
.notwhite img {
  mix-blend-mode: multiply;
}
.notwhite .caption,
.notwhite figcaption {
  background: white;
  
}
figcaption {
  font-size: 0.85rem;
  background: var(--white);
  padding: 0.5em 0 0;
}
figcaption::before {
  content: "↑ ";
}

.imgGrid{
  max-width: var(--maxwidth);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 1rem;
}

/* largeur des .figure */
/* .figure.offset2 { grid-column: 3 / span 3; } 
.figure.offset4 { grid-column: 5 / span 3; } 
.figure.offset6 { grid-column: 7 / span 3; } 
.figure.offset8 { grid-column: 9 / span 3; }  */

.figure.quarter{width: 24%;}
.figure.third { width: 33% }
/* .figure.third.offset2 { grid-column: 3 / span 4; } 
.figure.third.offset4 { grid-column: 5 / span 4; } 
.figure.third.offset6 { grid-column: 7 / span 4; } 
.figure.third.offset8 { grid-column: 9 / span 4; }  */
.figure.half { width: 49%; }
/* .figure.half.offset2 { grid-column: 3 / span 6; } 
.figure.half.offset4 { grid-column: 5 / span 6; } 
.figure.half.offset6 { grid-column: 7 / span 6; }  */
.figure.twothird { width: 65%; }
/* .figure.twothird.offset2 { grid-column: 3 / span 8; } 
.figure.twothird.offset4 { grid-column: 5 / span 8; }  */
.figure.threequarter { width: 74%; }
/* .figure.threequarter.offset2 { grid-column: 3 / span 9; }  */
.figure.full { grid-column: 1 / span 12; }

/* alignement vertical des .figure */
.figure.top { align-self: start;}
.figure.center { align-self: center;}
.figure.bottom { align-self: end;}

@media screen and (max-width:40rem) {
  .appendices .figure { 
    grid-column: 1 / -1 !important;
  }
  .figure { 
    display: flex;
    flex-direction: column;
  }
  figcaption::before {
    content: "↑ " !important;
  }
}

/* ------------------------------------------------------------------------ Videos */
.video {
  max-width: var(--maxwidth);
  aspect-ratio: 16/9;
  position: relative;
  margin: 1em 0;
  background-size: cover;
  background-position: center;
  display: none;
}
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video + figcaption {
  margin-top: -1em;
}
.videoytb{
  max-width: var(--maxwidth);
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  border: none;
}

/* ------------------------------------------------------------------------ Citations et bibliographie */
.bib-group{
  padding-bottom: var(--spacerXS);
}

.bib-list{
  display: flex;
  flex-flow:row wrap;
  gap: var(--spacer);
  max-width: 92rem;
}
.bib-entry{
  word-break: break-word;
  list-style: none;
  max-width: 20rem;
  min-width: 16rem;
} 
.bib-content{
  text-wrap: wrap;
}

@media(max-width:30rem){
  .bib-list{
    flex-flow: column nowrap;
    max-width: var(--maxwidth);
  }
  .bib-entry{
    max-width: fit-content;
    min-width:min-content;
  }
}


/* ------------------------------------------------------------------------ Footer */
#footer{
  width: 100vw;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  gap:var(--spacer);
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacerXL) * 1.5);
}

#footer h2{
  margin: 0;
  font-size: calc(var(--bigsize) * .65);
  font-weight: 400;
  text-align: center;
  font-family: var(--fontTitle);
  font-style: italic;
}

#footer-nav{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacerXS) * .8)
}

#footer-nav button::before, #footer-nav a::before{
  background: var(--white) ;
  mix-blend-mode: normal;
  z-index:-1;
}

#footer-nav button, #footer-nav a {
  z-index:2;
}

#footer-nav button::after {
  display: inline-flex;
  padding-left: 0.5em;
  content: '';
  zoom:80%
}

#footer-button-next{
  display: flex;
  justify-content: center;
}

#footer-button-next button::after {
  content: url('../assets/arrow-button.svg');
  zoom:100%
}

/* ── Sommaire ────────────────────────────────────────────── */

/* boutons de navigation h2 */
#btn-fermer::before{
  background: var(--white) ;
  mix-blend-mode: normal;
  z-index:-1;
}

#btn-fermer{
  z-index:2;
}

.toc-section{
  padding-bottom: 1rem;
}

.toc-section-btn {
  display: flex;
  align-items: start;
  justify-content: space-between;
  text-decoration: none;
  width: 100%;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all ease-in-out .3s;
}

.toc-section.active > .toc-section-btn {
  /* votre style pour la section active */
  opacity: 1;
}

.toc-section:not(.active) > .toc-section-btn {
  opacity: 1;
}

.toc-chevron{
  order: 1;
}

.toc-chevron::before {
  content: url(../assets/chevron-button.svg);
  display: inline-block;
  width: auto;
  transition: transform 0.2s ease;
  position: relative;
  background: transparent;
  margin-right: 1rem;
}

.toc-section.open .toc-chevron::before {
  transform: rotate(-180deg);
}

/* Sous-liste h3 */
.toc-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toc-section.open > .toc-sublist {
  max-height: 600px; /* assez grand pour contenir tous les liens */
}

.toc-sub-h2 button,
.toc-sub-h3 button {
  display: block;
  width: 100%;
  padding: 0.35rem 1rem 0.35rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  opacity: 0.7;
  transition: all ease-in-out .3s;
  text-decoration: none;
}

.toc-section-btn:hover::before,
.toc-sub-h3 button:hover::before {
  background: transparent;
  width: 0;
}

.toc-chevron:hover::before{
  width: auto;
  background: transparent;
  position: inherit;
  margin-right: 1rem;
}

.toc-sub-h3 button {
  padding-left: 2rem;
  opacity: 0.7;
}

/* .toc-section-btn:hover, */
.toc-sub-h2 button:hover,
.toc-sub-h3 button:hover,
.toc-sub-h2 button.active,
.toc-sub-h3 button.active {
  opacity: 1;
  transform: translateX(1rem);
  text-decoration: underline;
}


