/*
Theme Name: Astra Child
Theme URI: https://example.com/astra-child/
Description: Thème enfant personnalisé du thème Astra
Author: Ton Nom
Author URI: https://example.com
Template: astra
Version: 1.0.0
*/

/* Global CSS */

/* Import Google Fonts */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Thin.ttf") format("ttf");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-SemiBold.ttf") format("ttf");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Bold.ttf") format("ttf");
  font-weight: 700;
  font-style: normal;
}
/* Fin Global CSS */

/* Cartes articles  */
.article-card-container {
  display: flex;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
  transition: 1s ease;
}

.article-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 25px 16px 16px 16px;
  font-family: Arial, sans-serif;
  flex: 1 1 30%;
  max-width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card h3 {
  color: #008291;
  font-family: "Caveat Brush", Sans-serif;
  font-size: 25px;
  margin-bottom: 20px;
}

.article-card .image-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card .category-label {
  font-size: 13px;
  font-weight: bold;
  background-color: #008291;
  text-transform: uppercase;
  display: block;
  font-family: Montserrat, sans-serif;
  padding: 3px 15px;
  border-radius: 80px;
  width: fit-content;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-card .meta {
  font-size: 14px;
  color: #0d2f44;
  margin-bottom: 12px;
  font-family: Montserrat, sans-serif;
}

.article-card p {
  color: #0d2f44;
  margin-bottom: 25px;
  flex-grow: 1;
  font-family: Montserrat, sans-serif;
}

.article-card .button {
  display: inline-block;
  padding: 16px 25px;
  color: #a64b3c;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: 0.3s;
  width: fit-content;
}

.article-card .button:hover {
  background: #a64b3c;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .article-card-container {
    flex-direction: column;
    align-items: center;
  }

  .article-card {
    width: 100%;
    max-width: 100%;
    flex: none;
    margin-bottom: 20px;
  }

  .article-card h3 {
    font-size: 22px;
  }
}

/* Carte Article à la une home page */

.main-news-card {
  max-width: 100%;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none !important;
  display: block;
}

.main-news-card:hover {
  background-color: #9cbdc3;
}

.main-news-card .image-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.main-news-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-news-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.main-news-card .category-label {
  font-size: 13px;
  font-weight: bold;
  background-color: #008291;
  text-transform: uppercase;
  display: inline-block;
  font-family: Montserrat, sans-serif;
  padding: 3px 15px;
  border-radius: 80px;
  color: #ffffff;
  margin-bottom: 10px;
}

.main-news-card h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .main-news-card {
    border-radius: 0px;
  }

  .main-news-card .image-wrapper {
    height: auto;
  }
	
  .main-news-card-content {
    position: static;
    background: #008291;
    color: #ffffff;
    padding: 10px 10px;
  }

  .main-news-card-content .category-label {
 margin: 0px;
 padding: 0px 0px;
  }

}
