/* ==========================================================
   GRAIN D'ESPOIR
   Citation rotative du header
   ========================================================== */

.daily-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: min(520px, 100%);
  height: 126px;
  min-height: 126px;

  margin: 0 auto;
  padding: 8px 28px;

  text-align: center;

  opacity: 1;
  filter: blur(0);
  transform: translateY(0);

  transition:
    opacity 0.7s ease,
    filter 0.7s ease,
    transform 0.7s ease;
}

/* État utilisé pendant le changement de citation */

.daily-quote.quote-hidden {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(3px);
}


/* ==========================================================
   TEXTE
   ========================================================== */

.daily-quote__content {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 70px;

  margin: 0;

  color: #0d4b34;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.7vw, 23px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}


/* Guillemets décoratifs */

.daily-quote__content::before,
.daily-quote__content::after {
  position: absolute;

  color: rgba(55, 132, 91, 0.24);

  font-family: Georgia, serif;
  font-size: 52px;
  font-style: normal;
  line-height: 1;
}

.daily-quote__content::before {
  content: "“";

  top: -4px;
  left: -24px;
}

.daily-quote__content::after {
  content: "”";

  right: -24px;
  bottom: -15px;
}


/* ==========================================================
   AUTEUR
   ========================================================== */

.daily-quote__author {
  min-height: 16px;
  margin-top: 2px;

  color: #5e786d;

  font-size: 13px;
  font-style: normal;
}


/* ==========================================================
   ORNEMENT
   ========================================================== */

.daily-quote__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 18px;
  margin-top: 3px;

  color: #438a67;
}

.daily-quote__ornament::before,
.daily-quote__ornament::after {
  content: "";

  display: block;

  width: 55px;
  height: 1px;

  background: rgba(67, 138, 103, 0.28);
}

.daily-quote__leaf {
  font-size: 15px;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 900px) {
  .daily-quote {
    grid-column: 1 / -1;

    width: 100%;
    height: 106px;
    min-height: 106px;

    padding: 8px 20px;
  }

  .daily-quote__content {
    min-height: 58px;
    font-size: 17px;
  }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {
  .daily-quote {
    height: 96px;
    min-height: 96px;
  }

  .daily-quote__content {
    min-height: 54px;

    font-size: 16px;
    line-height: 1.35;
  }

  .daily-quote__content::before,
  .daily-quote__content::after {
    display: none;
  }

  .daily-quote__ornament::before,
  .daily-quote__ornament::after {
    width: 35px;
  }
}


/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .daily-quote {
    transition: opacity 0.2s ease;
  }

  .daily-quote.quote-hidden {
    filter: none;
    transform: none;
  }
}
