/*
Theme Name: Baskerville Child
Theme URI: https://example.com/
Description: Thème enfant pour personnaliser le footer (crédits) de Baskerville.
Author: Site Owner
Template: baskerville
Version: 1.0.0
*/


/* CSS du thème enfant. Ajoutez vos surcharges ci-dessous. */

a.tbe-sharebar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
}

.tbe-sharebar {
	margin: 25px 0 10px 0;
}

.tbe-sharebar__title {
	font-weight: 600;
	margin-bottom: 8px;
}

.tbe-sharebar__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

a#wpfront-scroll-top-container,
#wpfront-scroll-top-container {
  position: fixed;
  z-index: 9999;
  cursor: pointer;
}

a,
a:hover {
  color: #d53457 !important;
}

.navigation.bg-dark {
  background: #d53457;
}

.comment.bypostauthor:after {
  background: #d53457 url("assets/images/icons/1x/author-w.png") no-repeat
    center 8px;
  background-size: 14px auto;
}

.comment-inner:after {
  margin-left: -22px;
}

.post-author:after {
  border-left-color: #d53457;
  border-right-color: #d53457;
}

.post-author:before {
  background: #d53457 url("assets/images/icons/1x/author-w.png") no-repeat
    center 29px;
  background-size: 22px auto;
}

.post-meta-container a {
  color: #9499a0 !important;
  text-decoration: none;
  transition: all ease-in-out 250ms;
}
.post-meta-container a:hover {
  color: #d53457 !important;
}

.post-header .post-title a {
  color: #2b3542 !important;
  text-decoration: none;
  transition: all ease-in-out 250ms;
}
.post-header .post-title a:hover {
  color: #d53457 !important;
}

.main-menu > li > a {
  color: #fff !important;
  text-decoration: none;
}

.bg-graphite {
  background: #2b3542;
}

.footer .column-1 .widget_text {
  border: 0;
  margin: 0;
}

.footer .column-1 .widget_text p {
  color: #9e9e9e;
  text-align: justify;
}

.footer .column-1 .customize-unpreviewable,
.footer .column-1 .customize-unpreviewable:hover {
  color: #d53457;
}

.comment-respond .submit:hover {
  background: #d53457 !important;
}

.comment .comment-actions a:hover,
.post-meta-container .post-author .author-link-posts:hover {
  background-color: #d53457;
}

#site-content .archive-nav a {
  color: #fff !important;
}
#site-content .archive-nav a:hover {
  background: #d53457;
}

.post .post-header:before,
.page .post-header:before {
  border-top-color: #fff;
  margin-bottom: -22px;
}

/* credits section */
.credits {
  background: #d53457;
}

.credits p,
.credits a {
  color: #fff !important;
}
.credits-left span,
.credits-right span {
  display: none;
}

.credits .credits-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* side bar last articles */
.widget-content ul li:before {
  display: none;
}

.baskerville_latest_posts_widget .baskerville-latest-thumb__item {
  background: #2b3542;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 15px;
  align-items: center;
  padding: 0;
  margin: 30px 0;
}
.baskerville_latest_posts_widget .baskerville-latest-thumb__item:last-child {
  margin-bottom: 0;
}

.baskerville-latest-thumb__content {
  margin-right: 10px;
}

.baskerville_latest_posts_widget .baskerville-latest-thumb__item a {
  height: fit-content;
  width: fit-content;
  line-height: 0;
  font-size: 12px;
  color: #fff !important;
}

.baskerville_latest_posts_widget
  .baskerville-latest-thumb__item
  a
  .wp-post-image {
  max-width: 100px;
  border-radius: 2px;
}

.baskerville-latest-thumb__title,
.baskerville-latest-thumb__title:hover {
  color: #2b3542;
}

/* search input */
.sidebar .wp-block-search__inside-wrapper {
  position: relative;
}

.sidebar .wp-block-search__inside-wrapper .wp-block-search__input {
  background: #f0f0f0;
  border-radius: 2px 0 0 2px;
  transition: all ease-in-out 250ms;
}
.sidebar .wp-block-search__inside-wrapper .wp-block-search__input:focus {
  background: #2b3542;
  color: #fff;
}

.sidebar .wp-block-search__inside-wrapper .wp-block-search__button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translatey(-50%);
  margin: 0;
  background: transparent;
  padding-right: 5px;
  border-radius: 0 2px 2px 0;
  transition: all ease-in-out 240ms;
}

.sidebar .wp-block-search__inside-wrapper .wp-block-search__button svg {
  transform: scaleX(-1);
  opacity: 0.3;
  width: 35px;
  height: auto;
  transition: all ease-in-out 240ms;
}

.sidebar
  .wp-block-search__inside-wrapper:focus-within
  .wp-block-search__button
  svg {
  opacity: 0.8;
  color: #fff;
}

/* social sidebar */
.wp-block-social-links a {
  color: #fff !important;
}

/* nuage d'étiquettes */
.baskerville-taxonomy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.baskerville-taxonomy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: fit-content;
  padding: 8px;
  border-radius: 4px;
  background: #666666;
  color: #fff !important;
  font-size: 15px;
  text-decoration: none;
  line-height: 1;
  transition: all ease-in-out 250ms;
}

.baskerville-taxonomy-pill:hover {
  background: #d53457;
  color: #fff !important;
  text-decoration: none !important;
}

.baskerville-taxonomy-pill__label {
  font-size: 0.95em;
}

.baskerville-taxonomy-pill__count {
  background: #2b3542;
  color: #fff;
  padding: 5px 5px;
  border-radius: 2px;
  font-size: 10px;
}



/* contact form 7 */
.wpcf7-form .wpcf7-submit {
  font-size: 0.9em;
  padding: 16px 20px;
  background: #2B3542;
  border-radius: 3px;
  color: #fff;
}
.wpcf7-form .wpcf7-submit:hover {
  background: #d53457 !important;
}


/* titre page catégorie */
.page-title .top.subtitle5 {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid #ccc;
  font-family: 'Roboto Slab', sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.page-title .bottom.categotyTitle {
  margin-top: 15px;
  font-family: 'Roboto Slab', sans-serif;
  font-size: 1.75em;
  font-weight: 400;
  text-align: center;
  color: #2B3542;
}


.post-author-content .post-author-name {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}


@media screen and (max-width: 1300px) {
  .mobile-menu .menu-item a {
    color: #9e9e9e !important;
    transition: all 250ms ease-in-out;
  }

  .mobile-menu .menu-item a:hover {
    color: #fff !important;
  }

  .footer .one-third + .one-third {
    border-top: none;
    padding: 20px 0 0 0;
  }

  .credits .credits-inner .site-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 500px) {
  .footer .column-2 .widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .baskerville-taxonomy-pills {
    justify-content: center;
    gap: 5px;
  }
  .baskerville-taxonomy-pill {
    padding: 4px;
  }

  .credits .credits-right {
    gap: 5px;
  }
}

/* Override icnones */
.posts .post-meta a.post-date:hover {
  background-image: url(assets/images/icons/1x/clock-c.png);
}
.posts .post-meta a.post-comments:hover {
  background-image: url(assets/images/icons/1x/comment-c.png);
}
.posts .post-meta a.post-edit-link:hover {
  background-image: url(assets/images/icons/1x/edit-c.png);
}
.single a.post-edit-link:hover {
  background-image: url(assets/images/icons/1x/edit-c.png);
}
.posts .post-meta a.zilla-likes.active {
  background-image: url(assets/images/icons/1x/heart-c.png);
}
.single .post-meta a.zilla-likes:hover {
  background-image: url(assets/images/icons/1x/heart-c.png);
}
.post-link a {
  background: url(assets/images/icons/1x/link-c.png) no-repeat left center;
}
a.post-nav-next:hover {
  background-image: url(assets/images/icons/1x/next-c.png);
}
a.post-nav-prev:hover {
  background-image: url(assets/images/icons/1x/prev-c.png);
}
.wrapper .searchform .searchsubmit:hover,
.footer .searchform .searchsubmit:hover {
  background-image: url(assets/images/icons/1x/spyglass-c.png);
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .posts .post-meta a.post-date:hover {
    background-image: url(assets/images/icons/2x/clock-c.png);
  }
  .posts .post-meta a.post-comments:hover {
    background-image: url(assets/images/icons/2x/comment-c.png);
  }
  .posts .post-meta a.post-edit-link:hover {
    background-image: url(assets/images/icons/2x/edit-c.png);
  }
  .single a.post-edit-link:hover {
    background-image: url(assets/images/icons/2x/edit-c.png);
  }
  .posts .post-meta a.zilla-likes.active {
    background-image: url(assets/images/icons/2x/heart-c.png);
  }
  .single .post-meta a.zilla-likes:hover {
    background-image: url(assets/images/icons/2x/heart-c.png);
  }
  .post-link a {
    background-image: url(assets/images/icons/2x/link-c.png);
  }
  a.post-nav-next:hover {
    background-image: url(assets/images/icons/2x/next-c.png);
  }
  a.post-nav-prev:hover {
    background-image: url(assets/images/icons/2x/prev-c.png);
  }
  .footer .searchform .searchsubmit:hover {
    background-image: url(assets/images/icons/2x/spyglass-c.png);
  }
  .searchform .searchsubmit:hover {
    background-image: url(assets/images/icons/2x/spyglass-c.png);
  }
}
/* ------------------------------ */

/* Styles pour les commentaires de l'admin */
.comment.comment-admin {
	position: relative;
}

.comment.comment-admin .comment-inner-admin {
	background: #eee;
	border-left: 3px solid #d534573b;
	padding-left: 23px; /* 20px normal + 3px pour la bordure */
}

.comment.comment-admin .comment-inner-admin:after {
	border-right-color: #eee;
}


/* Si c'est une réponse ET un commentaire admin, décalage supplémentaire */
.comment-by-admin .children .comment.comment-admin .comment-inner-admin {
	margin-left: 8%;
	background: #fafafa;
	border-left-color: #d53457;
}

