/* ------------------------------------------------------------ déclaration */
.declaration {
  border-bottom: 1px solid var(--bordercolor);
}
.declaration > * {
  max-width: var(--maxwidth);
}
.declaration blockquote p { 
  --font-weight: 900;
}
.declaration p + p {
  text-indent: 2em;
}
.declaration footer {
  text-wrap: balance;
  margin-top: 1.6rem;
}

/*variable*/

:root {
  --maxwidth: min(65ch, 90vw);
}

/*scroll */

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

@media (max-width: 700px) {
  html {
    scroll-snap-type: none;
  }
}

body {
  margin: 0;
}

/* sections*/

section.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  padding: clamp(2rem, 6vh, 6rem) 1.5rem; 
}

/* Page de titre */
section.screen:first-of-type {
  text-align: center;
}

/* titres */

h1 {
  font-size: clamp(2rem, 6vw, 7rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  margin-bottom: 0.6em;
}

.subtitle {
  display: block;
  font-size: clamp(1rem, 2.5vw, 2rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  margin: 3em auto 1em;
  max-width: var(--maxwidth);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: var(--maxwidth);
  margin: 1.6em auto 0.8em;
}

h3::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--bordercolor);
  margin-top: 0.5em;
}

/* Blocs de texte */

.declaration {
  border-bottom: 1px solid var(--bordercolor);
}

.declaration > * {
  max-width: var(--maxwidth);
  margin: 1.6em auto;
}

.declaration blockquote p {
  --font-wght: 900;
}

.declaration p + p {
  text-indent: 2em;
}

.declaration footer {
  text-wrap: balance;
  margin-top: 1.6rem;
}

.authors,
.editeur {
  text-align: center;
}

.editeur{
   font-weight: 200;
  font-style: normal;
}

.prepost{
   font-weight: 300;
  font-style: italic;
}

.declaautor{
  font-weight: 400;
  font-style: italic;
}

.plurinote{
   font-weight: 300;
  font-style: normal;
}

#footer{
display: flex;
  flex-direction: column;
}

.themes{
  padding: clamp(2rem, 6vh, 6rem) 1.5rem; 
}

/* Listes standards (parties 1 & 2) */
section.screen ul:not(.sommaire-colonnes) {
  max-width: var(--maxwidth);
  margin: 1.6em auto;
  padding-left: 0;
}

/* Sommaire partie 3 — colonnes responsives */
.sommaire-colonnes {
  column-count: 1;
  column-gap: 2rem;
  max-width: var(--maxwidth);
  margin: 1.6em auto;
  padding: 0;
  line-height: 1.15;
}

@media (min-width: 700px) {
  .sommaire-colonnes {
    column-count: 2;
  }
}

@media (min-width: 1200px) {
  .sommaire-colonnes {
    column-count: 3;
  }
}

.sommaire-colonnes li {
  break-inside: avoid;
  margin-bottom: 0.3em;
}

/* Liens de sommaire */
ul li a {
  text-decoration: none;
}

ul li a:hover {
  text-decoration: underline;
}

ul li span {
  opacity: 0.6;
  font-size: 0.9em;
}

main {
  line-height: 1.45;
}

/* Décalage éditorial léger sur grand écran */
@media (min-width: 900px) {
  section.screen h3,
  section.screen ul {
    padding-left: 1rem;
  }
}

/*lettrine*/
.declaration blockquote p:first-of-type::first-letter {
  float: left;
  font-size: 5.2em;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 0;
  font-weight: 400;
  letter-spacing: -0.05em;
}
