body {
  background-color:#eaeaeb;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;  
  font-size:14pt;
  line-height: 1.5;
  text-align:justify;
  color:#242424;
}
a.chemin,a.chemin:visited {
  color: blue;
}
.flexbox-container {
  display: flex;
  justify-content: flex-start;  
  margin-top:30px;
  margin-left:100px;
  margin-right:100px;
}
section {
  background-color:white;
  padding:20px;
  margin-left:100px;
  margin-right:100px;
  border-radius:20px;
  border:solid 1px lightgrey;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
section:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(26,111,196,0.16);
}
.comfortaa {
  font-family: "Comfortaa", sans-serif;
  font-weight: bold;
}
@font-face {
    font-family: "SecondChance";
    src: url("SecondChanceSketch.ttf");
}
@font-face {
    font-family: "Inter";
    src: url("Inter.ttf");
}
img {
    width:30%;
    display: block;
    margin:auto;
}
h1 {
  color:firebrick;
  text-align:center;
  font-size:30pt;
  font-family: "SecondChance";
  font-weight: bold;
  padding-left:10pt;
}
h2 {
  font-family: "Comfortaa", sans-serif;
  font-size:20pt;
  color:firebrick;
}
summary {
  color:firebrick;
  padding-left: 1em;
  font-size:18pt;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
summary:hover {
    cursor: zoom-in;
}
summary.niv2 {
  color:blue;
  padding-left:2em;
  font-size:14pt;
  font-family:Inter;
}

/* Fermé : affiche rien */
details summary::marker {
  content: "";
  font-family: monospace;
  color: firebrick;
  font-weight: bold;
}
details.niv2 summary::marker {
  content: "";
  font-family: monospace;
  color: blue;
  font-weight: bold;
}

/* Ouvert : affiche − */
details[open] > summary::marker {
  content: "− ";
}
details.firebrick summary::marker { 
    color: firebrick; 
}
details.firebrick[open] > summary::marker { 
    content: "− "; 
}
p.notions {
  color:#303030;
  font-family: "Courier New", Courier, monospace;
  font-size:12pt;
  text-align:right;
  margin-right: 100px;
}
p {
  text-indent:2em;
  font-size:14pt;
  text-align:justify;
}
blockquote {
  border-left: 4px solid firebrick;
  margin: 8px 50px 8px 50px;
  padding: 8px 10px;
  color: black;
  background-color: #e0e0e0;
  font-size:14pt;
}
.citation {
  border-left: 4px solid grey;
  margin: 8px 50px 8px 50px;
  padding: 8px 10px;
  color: #555555;
  background-color: #fafafa;
  font-size:14pt;
}
ol {
  padding-left: 5em;
}
ol li {
  line-height: 1.6;       /* espace interne si la question passe sur 2 lignes */
  margin-bottom: 4px;    /* espace entre chaque question */
}
ol li:last-child {
  margin-bottom: 0;       /* supprime le margin inutile après le dernier item */
}
.encadre {
  border-left: 4px solid #6aab72;
  background: #eef6ff;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 5px 50px 5px 50px;
}
.encadre_intro {
  border-left: 4px solid #D11A1A;
  background: #fafafa;
  border-radius: 0 10px 10px 0;
  padding: 10px;
  margin: 10px 100px 30px 100px;
}
.intro::marker {
    color: #D11A1A;
}
audio {
  width: 50%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.galerie figure {
  flex: 1 1 200px;   /* c'est la figure entière qui grandit/rétrécit */
  max-width: 100%;
  margin: 0;         /* les navigateurs mettent une marge par défaut sur figure */
}

.galerie figure img {
  max-width: 80%;
  height:180pt;
  object-fit: contain;
  border-radius: 6px;
  display: block;    /* supprime l'espace sous l'image */
}

.galerie figcaption {
  font-size: 0.85em;
  color: #666;
  text-align: center;
  margin-top: 6px;
}
.hover-box {
  position: relative;
  display: inline-block;
  border-bottom: 2px dotted #555;
  cursor: pointer;
}
.preview {
  position: absolute;
  top: 25px;
  left: 0;
  width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hover-box:hover .preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .flexbox-container {
    flex-direction: column;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  .flexbox-container div img {
    float: none;
    width: 100% !important;
    max-width: 300px;
  }
  h1 {
    font-size: 24pt;
  }
  section {
    margin-left: 10px;
    margin-right: 10px;
  }
  h2 {
    font-size: 16pt;
  }
  summary {
    font-size: 14pt;
  }
  p {
    font-size: 13pt;
  }
  p.notions {
    margin-right: 10px;
  }
  blockquote {
    margin: 5px 10px 5px 10px;
  }
  .encadre {
    margin: 5px 10px 5px 10px;
    padding: 10px 12px;
  }
  .encadre_intro {
    margin: 10px 10px 20px 10px;
    padding: 10px;
  }
    .citation {
    margin: 8px 15px;
    padding: 10px 12px;
    font-size: 12pt;
  }
}
