@import url("https://fonts.googleapis.com/css2?family=Playwrite+HR:wght@100..400&display=swap");
/* roboto-slab-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/roboto-slab-v34-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}

section {
  position: relative;
}

/*** MENU ***/
.article-blog #menu-drapeaux {
  display: none;
}

/*** TITRE ***/
.blog h2 {
  color: var(--color-green-dark);
  font-weight: 600;
  margin-block: 2rem 1rem;
  font-size: clamp(2rem, 1rem + 4vw, 3rem);
}
.blog h3 {
  font-weight: 600;
  margin-block: 0.75rem;
  margin-inline: auto;
  font-size: clamp(1.4rem, 0.8rem + 2.6667vw, 1.8rem);
  text-align: center;
}

/*** INTRODUCTION ***/
#introduction p {
  width: min(800px, 96%);
  margin-inline: auto;
  font-size: clamp(1.2rem, 0.75rem + 2vw, 1.5rem);
  line-height: 1.5;
  text-align: center;
}
#introduction {
  padding-block: 0 2rem;
}

/*** ACCUEIL BLOG ***/

.card-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 0.2rem;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 6px;
  overflow: hidden;
}
.card {
  width: 450px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: solid 1px var(--color-green-dark);
}
.card img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  transition: transform 0.2s ease-in-out;
}
.card:hover img {
  transform: scale(1.05);
}
.card a {
  text-decoration: none;
}
.card-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: fit-content;
  min-height: 50%;
  padding-block: 0.75rem 3.5rem;

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

  gap: 1rem;
  background-color: rgba(83, 96, 79, 0.8);
  background-color: rgb(169, 197, 160, 1);
  background-color: rgb(231, 242, 231, 0.9);
  background-color: rgba(0, 0, 0, 0.6);
  margin: 0;

  transform: translateY(100%);
  transition: transform 0.25s ease-in-out;
}
.card:hover .card-text {
  transform: translateY(0);
  color: white;
}
.card:hover .card-text p {
  color: white;
}
.card h3 {
  position: absolute;
  top: 0;
  color: white;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
  background: linear-gradient(#0004, #0002, #0000);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0.5rem;
  text-wrap: balance;
}
.card-text p {
  width: 96%;
  padding-block: 0.25rem;
  margin: 0 auto;

  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;

  color: var(--color-font-dark);
}
.card-text h3 a {
  text-decoration: none;
}
p.card-hashtags {
  position: absolute;
  bottom: 0;
  color: white;
  text-align: center;
  width: 100%;
  font-size: 1.2rem;
  transition: all 0.25s ease-in-out;
}
p.card-hashtags span {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding-inline: 0.5rem;
  margin-inline: 0.25rem;
}
.card:hover p.card-hashtags span {
  font-size: 1.1rem;
}

/**** Article de blog *****/

.article-blog section.titre {
  position: relative;
  height: 95vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;

  background-position: center;
  background-size: cover;
}

.article-blog .titre h1 {
  position: absolute;
  display: block;
  width: fit-content;
  top: 5vh;
  right: 0;
  font-size: clamp(2.25rem, 1.125rem + 5vw, 3rem);
  font-weight: 600;
  /* -webkit-text-stroke: 1px rgba(0, 0, 0, 0.2); */
  text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
  width: 75%;
  color: white;
  padding-inline: 1rem;
  text-align: right;
  background: #0000;
  border-radius: 1rem;
  line-height: 1.25;
  min-height: 120px;
  text-wrap: balance;
}

@-moz-document url-prefix() {
  /* Hack Firefox */
  .article-blog .titre h1 {
    text-wrap: balance;
  }
}
@media screen and (min-color-index: 0) and(-webkit-min-device-pixel-ratio:0) {
  /* Hack Safari */
  .article-blog .titre h1 {
    text-wrap: balance;
  }
}
@media screen and (max-width: 720px) {
  .article-blog .titre h1 {
    top: 0;
    right: 0;
    transform: none;
  }
}
@media screen and (max-width: 650px) {
  .article-blog .titre h1 {
    width: 80%;
  }
}
@media screen and (max-width: 500px) {
  .article-blog .titre h1 {
    width: 95%;
  }
}
.article-blog .titre h2 {
  position: absolute;

  display: block;
  width: fit-content;
  bottom: 0;
  left: 1rem;
  transform: translateY(-50%);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem);
  font-weight: 400;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
  color: white;
  padding-inline: 1rem;
  text-align: left;
  background: #0000;
  font-style: italic;
}
.article-blog .titre h2::before {
  content: "#";
  font-style: italic;
  color: white;
  font-weight: 700;
}
.article-blog h3 {
  z-index: 1;
  font-weight: 300;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2rem);
  max-width: 100%;
  text-align: center;
  margin-block: 3rem 0;
  max-width: 94%;
}
.article-blog .titre img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-blog {
  font-size: 1.2rem;
}
.article-blog p.intro {
  max-width: 600px;
  margin-inline: auto;
  padding-bottom: 3rem;
  margin-block: 30px;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.5;
  position: relative;
  text-wrap: balance;
}
p.intro::after {
  content: "~";
  font-size: 4.5rem;
  line-height: 0;
  margin: 0 auto;
  color: var(--color-green-dark);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}
.tilde {
  text-align: center;
  font-size: 4.5rem;
  line-height: 1;
  margin: 0 auto;
  color: var(--color-green-dark);
}
.article-blog main p {
  max-width: min(800px, 96%);
  padding-inline: clamp(0.5rem, -2.3636rem + 12.7273vw, 4rem);
  margin-inline: auto;
  margin-block: 3rem;
  font-size: clamp(1rem, 0.4857rem + 2.2857vw, 1.2rem);
  line-height: 1.5;
}
.article-blog main p:not(.intro, .lien-CHP)::first-letter {
  font-size: 240%;
  margin-top: 0;
  float: left;
  background-color: var(--color-green-light);
  color: white;
  border-radius: 4px;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  /* font-family: "Playwrite HR", cursive; */
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
  translate: 0 0.5rem;
  transform: translate(0 0.5rem);
  margin-right: 0.5rem;
  margin-top: 0.4rem;
}

@-moz-document url-prefix() {
  /* Hack Firefox */
  .article-blog main p:not(.intro, .lien-CHP):first-letter {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
  }
}

.image-blog {
  max-width: min(1000px, 96%);
  font-size: clamp(0.5rem, -2.3636rem + 12.7273vw, 4rem);
  margin-inline: auto;
  margin-block: 30px;
  height: fit-content;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.image-blog img {
  max-height: 80vh;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  position: relative;
}
@media screen and (max-width: 500px) {
  .image-blog img {
    max-height: 50vh;
  }
}
figure {
  width: 100%;
  height: 100%;
}
figcaption {
  font-size: 1rem;
  text-align: right;

  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
}
.lien-CHP,
.sommaire-blog {
  margin-block: 1rem;
  text-align: center;
  max-width: fit-content;
  margin-inline: auto;
}

.lien-CHP a,
.sommaire-blog a {
  margin-inline: auto;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  outline: 1px;
  line-height: normal;
  display: block;
}
.lien-CHP a {
  background-color: var(--color-green-dark);
  max-width: 300px;
}
.lien-CHP a:hover {
  background-color: var(--color-green-very-dark);
  outline: 1px var(--color-green);
}

.sommaire-blog {
  margin-block: 3rem;
}
.sommaire-blog a {
  background-color: var(--color-green-dark);
  width: fit-content;
}
.sommaire-blog a:hover {
  background-color: var(--color-green);
  outline: 1px var(--color-green);
}
/** footer **/
.article-blog .arguments {
  display: none;
}
.article-blog #basdepage {
  margin-top: 0;
}
