body {
  margin: 0;
  padding: 0;
  font-family: serif;
  background: rgb(226, 196, 196);
  color: #111;
}

footer {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: transparent;
  pointer-events: none; /* ne gêne pas les clics dessous */
  transform-origin: top center;
}

.site-title {
  font-family: Constantia;
  letter-spacing: 0.1em;
  font-weight: normal;
  margin: 0;
  opacity: 0.8;
  text-align: center;
  color: #490303;
  transition: transform 0.5s ease, left 0.5s ease;
  font-size: clamp(1.2rem, 5vw, 5rem);
}

.sub-title {
  font-family: serif;
  font-weight: normal;
  margin: 0;
  opacity: 0.8;
  text-align: center;
  color: #000000;
  font-size: 1.5rem;
}



.pensees-container {
  max-width: 100%;
  padding: 200px 100px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 200px; /* espacement important entre les blocs */
  align-items: center;
}

@media screen and (max-width: 768px) {
  .pensees-container {
  max-width: 100%;
  padding: 200px 10px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 200px; /* espacement important entre les blocs */
  align-items: center;
  }
}

.pensee {
  max-width: 50%;
  font-size: 1.5rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 2s ease;
  position: relative;
  background: #d9baba;
  border-radius: 50px;
  padding: 30px;
}

.pensee.visible {
  opacity: 1;
  transform: translateY(0);
}

.pensee.left {
  align-self: flex-start;
  text-align: left;
  margin-left: 60px;
}

.pensee.right {
  align-self: flex-end;
  text-align: right;
  margin-right: 60px;
}

  /* === MENU BAR === */
.menu-bar {
  height: 25vh;
  background: #ba9494;
  padding: 5px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 10px;
  position: relative; /* ← nécessaire pour positionner le menu par rapport à elle */
}

.menu-wrapper {
  position: fixed;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 10;
}

  
.menu-bar.active {
  background: #490303;
}
  
.menu-links {
  position: absolute;
  top: 50%;
  left: 20px; /* espace entre la barre et les liens */
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 10px;
  color: #490303;
  font-size: larger;
  line-height: 2em;
  background: rgb(226, 196, 196);
  animation: slideIn 0.3s ease forwards;
}


.menu-wrapper:hover .menu-links {
  display: flex;
}

.menu-wrapper:hover .menu-bar {
  background: #490303;
}

.menu-wrapper.active .menu-bar {
  background: #490303;
}

.menu-wrapper.active .menu-links {
  display: flex;
}

.menu-bar.active .menu-links {
  display: flex;
}
  
@keyframes slideIn {
  from {
    transform: translateX(-20px) translateY(-50%);
    opacity: 0;
  }
  to {
    transform: translateX(0px) translateY(-50%);
    opacity: 1;
  }
}

.menu-bar.active + .menu-links {
  display: flex;
}
  
.menu-item, .title {
  cursor: pointer;
  white-space: nowrap;
}

.flex-container {
  max-width: 750px;
  margin: 0px auto;
  align-items: center;
  position: relative;
}

/* Set display preferences for poem. */

.poem {
  max-width: 480px;
  margin: auto;
  /*padding: 10px 0;*/
  font-family: Baskerville;
  font-size: 14px;
  text-align: left;
}

/* Add spacing to each stanza. */

.poem p {
  margin-bottom: 15px;
  line-height: 1.45em;
}

/* Set type preferences for poem's headings.  */

.poem h1,
.poem h2 {
  font-family: Baskerville;
  font-weight: normal;
  text-align: center;
}

/* Set display preferences for title of the poem. */

.poem h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

/* Set display preferences for name of the poet. */

.poem h2 {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 30px;
}

/* Make the first letter a drop cap/initial. */

.poem h2+p:first-letter {
  float: left;
  font-size: 40px;
  margin: 12px 5px 0px 0px;
}

/* Set display preferences for first line of each stanza. */

.poem p:first-line {
  font-variant: small-caps;
  letter-spacing: 1px;
}

/* Add margin and padding at end of the poem. */

.poem p:last-child {
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.iconcentre {
  text-align: center;
  font-size: 3rem;
}

@media screen and (max-width: 768px) {
  .menu-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* prend toute la largeur */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .menu-bar {
    width: 100%;
    height: 50px;
    background: #490303;
    transition: none;
  }

  .menu-links {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
    background: rgb(226, 196, 196);

  }

  .menu-links a {
    font-size: 1rem;
    padding: 0 10px;
  }

  .flex-container {
    max-width: 100%;
    align-items: center;
    margin-left: 60px;
    position: relative;
}

  .iconcentre {
    margin-left: 60px;
    text-align: center;
    font-size: 3rem;
}

}



