@font-face {
  font-family: "ttcommons";
  src: url("../fonts/TTCommonsPro-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "calson";
  src: url("../fonts/ACaslonPro-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #fcffde;
}

/* Conteneur principal du header */
.site-header {
  padding: 1rem 0;
}

/* Contrainte de largeur */
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Flexbox pour aligner logo et menu */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* pour le responsive */
}

/* Logo */
.logo h1 {
  margin: 0;
}

.logo h1 a {
  font-size: 1.8rem;
  color: #3e6913;
  text-decoration: none;
  font-family: "ttcommons", sans-serif;
}

.logo h1 a:hover {
  text-decoration: underline;
}

/* Navigation principale */
.main-navigation {
  display: flex;
  align-items: center;
}

/* Liste des liens */
.main-navigation ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

/* Liens */
.main-navigation a {
  text-decoration: none;
  color: #3e6913;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a:hover {
  text-decoration: underline;
}

/* Responsive : empile logo et menu */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

.site-main {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

h1 {
  font-family: "ttcommons", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  color: #3e6913;
  text-align: center;
}

h2 {
  font-family: "calson", serif;
  font-size: 2.5rem;
  color: #3e6913;
}

p {
  font-family: "calson", serif;
  font-size: 1.5rem;
  color: #3e6913;
}

.wp-block-media-text {
  margin: 0;
  padding: 0;
  width: 100%;
  vertical-align: top !important;
}

.wp-block-media-text__content {
  padding: 0 8% 0 0 !important;
}

.wp-block-media-text:not(.has-media-on-the-right)
  .wp-block-media-text__content {
  padding: 0 8% !important;
}

.prices-table {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 75px;
}

.prices-table > div {
  border: 2px solid #3e6913;
  border-radius: 60px;
  max-width: 390px;
  padding: 20px;
}

.prices-table img {
  border-radius: 60px;
  width: 100%;
  height: auto;
  display: block;
}

.prices-table p {
  margin: 0;
  padding: 0;
  font-family: "calson", serif;
  font-size: 1.2rem;
  color: #3e6913;
  text-align: center;
  font-weight: bold;
}

/* Catégories en ligne, centrées et dans le thème */
.categories-list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.categories-list li {
  font-family: "ttcommons", sans-serif;
  font-size: 1.1rem;
}

.categories-list a {
  color: #3e6913;
  text-decoration: none;
  padding: 0.4em 1em;
  border-radius: 30px;
  border: 1px solid #3e6913;
  transition: background 0.2s, color 0.2s;
  background: #fcffde;
  font-weight: 500;
}

.categories-list a:hover,
.categories-list .current-cat a {
  background: #3e6913;
  color: #fff;
}

/**
 * Blog
 */
.fypinpo_posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post {
  border: 1px solid #3e6913;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.post-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #3e6913;
  font-family: "ttcommons", sans-serif;
}

.post-title a {
  text-decoration: none;
  color: #3e6913;
  transition: color 0.3s ease;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.85rem;
  color: #3e6913;
  margin-bottom: 0.75rem;
}

.post-excerpt {
  color: #3e6913;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.read-more {
  align-self: flex-start;
  background: #42463e;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.read-more:hover {
  background: #3e6913a9;
}

.fypinpo_end-message {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #3e6913;
}

/**
 * Single Post
 */
.site-main-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.site-main-single .post-header {
  margin-bottom: 1.5rem;
}

.site-main-single .post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.site-main-single .post-meta {
  font-size: 0.9rem;
  color: #3e6913;
  text-align: center;
}

.site-main-single .post-thumbnail {
  margin: 2rem 0;
  width: 100%;
}

.site-main-single .post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.site-main-single .post-content {
  line-height: 1.7;
  font-size: 1.1rem;
  color: #333;
}

.site-main-single .post-content img {
  max-width: 100%;
  height: auto;
}

.site-main-single .post-content p,
.site-main-single .post-content ul,
.site-main-single .post-content ol,
.site-main-single .post-content li {
  font-size: 1.3rem;
}

.site-main-single .post-footer {
  margin-top: 3rem;
}

.site-main-single .post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.95rem;
}

/*
 * Commentaires
 */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

/* Titre de la zone */
.comments-title,
.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Liste des commentaires */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.comment-author {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.comment-author img {
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.comment-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.comment-content {
  font-size: 1rem;
  line-height: 1.6;
}

/* Réponse à un commentaire */
.comment .children {
  margin-left: 2rem;
  margin-top: 1rem;
}

/* Formulaire de commentaire */
#respond {
  margin-top: 2rem;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

#respond textarea {
  min-height: 120px;
  resize: vertical;
}

#respond input[type="submit"] {
  background-color: #007acc;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#respond input[type="submit"]:hover {
  background-color: #005fa3;
}

/**
 * Site Footer
 */
.site-footer {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

.footer-widgets {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .footer-widgets {
    flex-direction: column;
  }
}

.footer-widget {
  flex: 1 1 45%;
  color: #3e6913;
  font-family: "calson", serif;
  font-size: 0.9rem;
}
