/*
Theme Name: Padel Clair
Template: silverstorm
Description: Child theme for Padel Clair — guides padel en français.
Version: 1.0.10
Text Domain: padelclair
*/

.padelclair-seo {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  color: #1f2933;
  line-height: 1.7;
}
.padelclair-seo h2 {
  font-size: 1.45rem;
  margin: 1.6em 0 0.6em;
  color: #123b28;
}
.padelclair-seo h2:first-child { margin-top: 0; }
.padelclair-seo h3 {
  font-size: 1.15rem;
  margin: 1.3em 0 0.45em;
  color: #1a4d36;
}
.padelclair-seo p { margin: 0 0 1em; }
.padelclair-seo ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}
.padelclair-seo li { margin: 0 0 0.4em; }
.padelclair-legal h1,
.padelclair-legal h2 { color: #123b28; }
.padelclair-legal { max-width: 820px; margin: 0 auto; line-height: 1.7; }

.padelclair-home-posts {
  background: #f4f6f4;
  padding: 48px 20px 56px;
}
.home .page-content {
  background: #fff;
}
.padelclair-home-posts__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.padelclair-home-posts__title {
  margin: 0 0 28px;
  font-size: 1.75rem;
  color: #123b28;
}
.padelclair-home-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.padelclair-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 59, 40, 0.08);
  display: flex;
  flex-direction: column;
}
.padelclair-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1f3b2e;
}
.padelclair-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.padelclair-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.padelclair-card__date {
  font-size: 0.8rem;
  color: #5b6b63;
}
.padelclair-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}
.padelclair-card__title a {
  color: #123b28;
  text-decoration: none;
}
.padelclair-card__title a:hover { text-decoration: underline; }
.padelclair-card__excerpt {
  margin: 0;
  color: #33443c;
  line-height: 1.55;
  flex: 1;
}
.padelclair-card__more {
  color: #0f7a4a;
  font-weight: 600;
  text-decoration: none;
}
.padelclair-home-posts__pager {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.padelclair-home-posts__pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  color: #123b28;
  text-decoration: none;
  border: 1px solid #d5ddd8;
}
.padelclair-home-posts__pager .page-numbers.current,
.padelclair-home-posts__pager .page-numbers:hover {
  background: #123b28;
  color: #fff;
  border-color: #123b28;
}
@media (max-width: 900px) {
  .padelclair-home-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .padelclair-home-posts__grid { grid-template-columns: 1fr; }
}

/* Inner pages only — homepage hero is slideshow; single posts hide this hero. */
body:not(.single-post) #colibri .h-hero.style-local-13-h25.style-55 {
  background-image: url("/wp-content/uploads/2026/08/igfotojonas-paddle-tennis-6612340-scaled.jpg") !important;
  background-size: cover !important;
  background-position: 50% 45% !important;
}

/* Hero slogan is two lines (via <br>); keep it from wrapping to a third. */
.home #colibri .style-27 h1,
.home #colibri .h-heading.style-27 h1 {
  margin-left: 0 !important;
  white-space: nowrap;
  font-size: clamp(1.45rem, 4.6vw, 3.1rem) !important;
  line-height: 1.12;
  max-width: 100%;
}

body.single-post #hero,
body.single-post .h-hero.style-local-13-h25 {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.single-post #colibri .style-55,
body.single-post #colibri .style-local-13-h25 {
  background-image: none !important;
}

/* Nav was designed as white text over the hero photo. Without hero it needs a solid bar. */
body.single-post .h-navigation_overlap,
body.single-post .h-navigation_outer {
  position: relative !important;
}
body.single-post #navigation,
body.single-post .h-navigation,
body.single-post .h-navigation_outer {
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(18, 59, 40, 0.08);
}
body.single-post #navigation,
body.single-post #navigation .h-logo__text,
body.single-post #navigation .logo-text,
body.single-post #navigation a {
  color: #123b28 !important;
}
body.single-post #navigation .h-toggle-wrapper,
body.single-post #navigation .hamburger-box,
body.single-post #navigation .hamburger-inner,
body.single-post #navigation .hamburger-inner::before,
body.single-post #navigation .hamburger-inner::after {
  background-color: #123b28 !important;
}

.padelclair-single-title {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.25;
  color: #123b28;
  margin: 1.1rem 0 0.5rem;
  font-weight: 700;
}
body.single-post .colibri-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

#comments-2,
.blog-post-comments,
.comment-respond,
#respond,
.widget_recent_comments,
.wp-block-latest-comments,
.wp-block-group:has(.wp-block-latest-comments) {
  display: none !important;
}

.h-post-categories,
.colibri_category_button {
  display: none !important;
}
