::selection {
  background-color: var(--tripwizy-color-primary);
  color: #fff;
}

/******** Hero-section **********/

.hero-section {
  min-height: 400px;
  background-color: #303030;
}

.hero-section-home {
  /* min-height: min(663px, calc(100vh - 100px)); */
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 60px);
}

.hero-section-without-image {
  margin-top: 80px;
  margin-bottom: 20px;
}

.hero-section-without-image .page-title h1 {
  color: var(--tripwizy-color-secondary);
  text-shadow: 4px 4px 4px #ccc;
}

.nav-card {
  min-height: 300px;
  background-color: #303030;
}

.image-bg-container {
  background-color: #303030;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-bg-container > figure {
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0;
}

.image-bg-container > figure .ct-image-container {
  height: 100%;
  overflow: hidden;
}

.ct-image-container img,
.ct-image-container video {
  /* filter: brightness(78%); */
}

.image-bg-container.animate-scale > figure .ct-image-container img {
  animation-name: hero-image-animation;
  animation-duration: 60s;
  animation-iteration-count: infinite;
}

.image-bg-container .page-title {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-title h1,
.editor-styles-wrapper h1 {
  color: white;
  font-size: 2.8em;
  line-height: 1.2em;
  text-align: center;
  margin: 0;
  max-height: 100%;
  font-family: "Julius Sans One";
  font-weight: 900;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 16px 32px;
  border-radius: 4px;
}

.ct-image-container img {
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  height: 100%;
}

/******** Main content (general) **********/

.editor-styles-wrapper {
  background-color: #e9e9e9;
  font-size: 1.2em !important;
}

.editor-styles-wrapper h1 {
  background-color: black;
  padding: 10px;
}

main,
.editor-styles-wrapper p {
  color: var(--tripwizy-color-content);
  line-height: 1.5em;
  font-family: "Noto Sans";
}

/* Except article in h2 balise */

.excerpt {
  font-family: "FiraSansCondensed";
  font-size: 1.3em;
  font-weight: normal;
  line-height: 1.2em;
  padding: 14px 20px;
  margin-top: 1.5em;
  margin-bottom: 2.5em;
  border-left: 5px solid var(--tripwizy-color-primary);
  border-right: 5px solid var(--tripwizy-color-primary);
  background-color: white;
  color: var(--tripwizy-color-primary);
}

.excerpt:last-child {
  margin-bottom: 0;
}

/* Julius red titles */

main .wp-block-column > h3,
.wp-block-post-content .wp-block-column > h3,
main .wp-block-column > h4,
.wp-block-post-content .wp-block-column > h4 {
  margin-top: 0.5em;
}

main h3,
.wp-block-post-content h3,
main .home h2,
main .related-articles-container h2 {
  font-family: "Julius Sans One";
  color: var(--tripwizy-color-primary);
  font-size: 2em;
  line-height: 1.2em;
  text-shadow: 4px 4px 4px #ccc;
  margin-top: 2.5em;
}

main h4,
.wp-block-post-content h4 {
  font-size: 1.3em;
  margin-top: 64px;
}

main .image-noborder img,
.editor-styles-wrapper .image-noborder img {
  box-shadow: none;
  border-radius: 0;
}

main img,
.editor-styles-wrapper img {
  box-shadow: rgba(50, 50, 93, 0.5) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  border-radius: 5px;
}

main a,
.editor-styles-wrapper a {
  text-decoration: underline dotted;
  color: var(--tripwizy-color-primary);
}

main hr,
.editor-styles-wrapper hr {
  max-width: 100px;
  color: #dddddd;
  margin-top: 20px;
  margin-bottom: 20px;
}

main figcaption,
.editor-styles-wrapper figcaption {
  font-style: italic;
  font-size: 0.9em;
  text-align: center;
}

main article ul {
  list-style: none;
}

main article li {
  margin-bottom: 0.8em;
}

main article ul li::before {
  content: "\25AA";
  color: var(--tripwizy-color-primary);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

main article ol {
  list-style: none;
  counter-reset: li;
}

main article ol li::before {
  content: counter(li);
  color: white;
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -2em;
  margin-right: 0.5em;
  text-align: center;
  border-radius: 50%;
  background-color: var(--tripwizy-color-primary);
}

main article ol li {
  counter-increment: li;
}

.content-tips {
  position: relative;
  padding: 16px 16px 16px 80px;
  background-color: white;
  min-height: 84px;
  box-shadow: rgba(50, 50, 93, 0.3) 0px 0px 12px -2px;
  margin-top: 1.8em;
  margin-bottom: 2em;
}
.content-tips::before {
  content: url("../imgs/lamp.png");
  position: absolute;
  left: 12px;
  top: 12px;
}

/******** Grid Articles style **********/

.grid-articles article {
  /* box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.04); */
  box-shadow: rgba(0, 0, 0, 0.7) 0px 5px 15px;
  border-radius: 5px;
  overflow: hidden;
}

.grid-articles h3 {
  line-height: 2rem;
  margin: 0;
  text-align: center;
  text-shadow: none;
}
.grid-articles h3 a {
  text-decoration: none;
  color: white;
  text-shadow: 4px 4px 4px #000;
  font-size: 1.5rem;
}

.grid-articles article .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s;
  background-color: rgba(0, 0, 0, 0.3);
}
.grid-articles article:hover .card-title {
  background-color: rgba(0, 0, 0, 0.6);
}

.grid-articles article img,
.grid-articles article .ct-image-container img {
  transition: transform 0.5s ease-in-out, filter 0.1s;
}

.grid-articles article:hover .ct-image-container img {
  transform: scale(1.2);
  filter: brightness(100%);
}

/******* Tables *******/
.wp-block-table thead {
  border-bottom: none;
  box-shadow: rgba(50, 50, 93, 0.5) 0px 6px 12px -2px;
}
.wp-block-table th {
  background-color: var(--tripwizy-color-secondary);
  color: white;
}

/********** Form ***********/

.form-submit input[name="submit"] {
  background-color: var(--tripwizy-color-secondary);
  color: #ffffff;
  font-size: 14px;
  padding: 0.5em 1em;
  border: 0;
  cursor: pointer;
  border-radius: 3px;
}
.form-submit input[name="submit"]:hover {
  background-color: var(--tripwizy-color-secondary);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.4);
}

form p {
  margin-top: 0;
}
form textarea {
  width: 100%;
  min-height: 170px;
  line-height: 1.5;
  padding: 16px;
  resize: vertical;
}

form input {
  line-height: 1.5;
  padding: 4px 16px;
}

/******** Table Of Contents **********/

.tripwizy-toc {
  background-color: white;
  padding: 16px 20px 8px 20px;
  margin-left: 10%;
  margin-right: 10%;
  border-radius: 20px;
}
.tripwizy-toc .toc-title {
  font-weight: bold;
}
.tripwizy-toc ul {
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
  padding-inline-start: 30px;
  padding-left: 4px;
}
.tripwizy-toc li {
  margin-bottom: 0em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  position: relative;
}
.tripwizy-toc li::before {
  margin-left: 0;                  /* Aligne la puce avec le bord gauche */
  /* color: var(--tripwizy-color-primary);
  display: inline-block;
  width: 1em;
  margin-left: -1em; */
}
.tripwizy-toc li.level-2::before {
  content: "\203A";
}

.tripwizy-toc li a {
  text-decoration: none;
  font-size: 0.95em;
}
.tripwizy-toc li a:hover {
  text-decoration: underline dotted;
}
.tripwizy-toc li.level-2 {
  margin-left: 1em;
}
.tripwizy-toc li.level-3 {
  margin-left: 2em;
}
.tripwizy-toc li.level-4 {
  margin-left: 3em;
}

/*********** Buttons *********/
main .btn,
.wp-block-post-content .btn {
  display: flex;
  background-color: var(--tripwizy-color-secondary);
  padding: 10px 18px;
  border-radius: 6px;
  margin: 1em 2vw 2em 2vw;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0px 2px #bbb;
  transition: all 250ms;
}

main .btn:hover,
.wp-block-post-content .btn:hover {
  box-shadow: 0 0px 8px #888;
  transform: scale(1.02) rotate(-0deg);
  background-color: var(--tripwizy-color-secondary-lighter);
}

main .btn:active,
.wp-block-post-content .btn:active {
  background-color: var(--tripwizy-color-secondary);
  box-shadow: 0 4px 4px #aaa;
}
main .btn a,
.wp-block-post-content .btn a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-family: "Julius Sans One";
}

.wp-block-columns {
  margin-top: 3em;
}

@keyframes hero-image-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media screen and (max-width: 450px) {
  .comment-form {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (max-width: 700px) {
  .page-title h1,
  .editor-styles-wrapper h1 {
    font-size: 2em;
  }
  .tripwizy-toc {
    margin-left: 0;
    margin-right: 0;
  }
  .tripwizy-toc ul {
    padding-inline-start: 0px;
  }
}
