/* Piscine Équipée — front styles */
:root {
  --as-green: #0b3a53;
  --as-green-mid: #0e7490;
  --as-green-soft: #e3f4f7;
  --as-wood: #0e9bb0;
  --as-sand: #f2c14e;
  --as-cream: #fbfdfe;
  --as-cream-2: #eef7fa;
  --as-line: #dbe9ef;
  --as-ink: #13212b;
}

body,
.site,
#inner-wrap,
#wrapper {
  background-color: var(--as-cream);
  color: var(--as-ink);
}

.site-header-wrap,
#masthead,
.site-header-row-container,
.site-header-row-container-inner {
  background: var(--as-cream) !important;
}

#masthead {
  border-bottom: 1px solid var(--as-line);
}

.site-header .custom-logo {
  max-height: 64px;
  width: auto;
}

.main-navigation a,
.header-navigation-wrapper a {
  color: var(--as-green);
  font-weight: 600;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--as-wood);
}

.pe-hero.wp-block-cover {
  min-height: 72vh;
}

.pe-hero .wp-block-cover__inner-container {
  max-width: 860px;
}

.pe-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}

.pe-hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
}

.pe-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.pe-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--as-wood);
  margin-bottom: 0.6rem;
}

.pe-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media (max-width: 800px) {
  .pe-cards {
    grid-template-columns: 1fr;
  }
}

.pe-card {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 58, 83, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 58, 83, 0.12);
}

.pe-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.pe-card-body {
  padding: 1.25rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.pe-card h2,
.pe-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--as-green);
}

.pe-card p {
  margin: 0;
  flex: 1;
}

.pe-btn,
.wp-block-button__link,
.pe-card a.pe-btn {
  display: inline-block;
  background: var(--as-green) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.7rem 1.25rem !important;
  text-decoration: none !important;
  font-weight: 650;
  border: 0 !important;
}

.pe-btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.pe-btn-light {
  background: var(--as-green-soft) !important;
  color: var(--as-green) !important;
}

.pe-disclosure,
.pe-notice {
  background: var(--as-cream-2);
  border-left: 4px solid var(--as-wood);
  padding: 1.1rem 1.2rem;
  border-radius: 4px 12px 12px 4px;
  margin: 2rem 0;
}

.pe-method {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  padding: 2rem;
}

.pe-method ol {
  padding-left: 1.2rem;
}

.pe-method li {
  margin: 0.55rem 0;
}

.pe-photo-credit {
  font-size: 0.82rem;
  color: #5b645c;
  margin-top: 0.35rem;
}

.site-footer,
#colophon {
  background: var(--as-green) !important;
  color: var(--as-cream-2) !important;
}

.site-footer a,
#colophon a {
  color: #eaf6fa !important;
}

.site-footer .pe-footer-legal {
  font-size: 0.9rem;
  opacity: 0.95;
}

.pe-form label {
  display: block;
  font-weight: 650;
  margin: 0.8rem 0 0.3rem;
}

.pe-form input[type="text"],
.pe-form input[type="email"],
.pe-form textarea {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.pe-form textarea {
  min-height: 160px;
}

.pe-form {
  position: relative;
}

.pe-form .pe-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pe-form-success {
  background: var(--as-green-soft);
  color: var(--as-green);
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.pe-form-error {
  background: #f8e8e6;
  color: #6b2b22;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.entry-content h1,
.entry-content h2,
.entry-title {
  color: var(--as-green);
}

.entry-content a {
  color: var(--as-green-mid);
}

.content-bg,
.content-wrap,
.entry-content-wrap {
  background: transparent;
}

.pe-site-footer-extra {
  background: #082c40;
  color: #eaf6fa;
  padding: 1.6rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pe-site-footer-extra a {
  color: #eaf6fa;
  text-decoration: underline;
}

.pe-site-footer-extra p {
  margin: 0.45rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .pe-hero {
    min-height: 70vh;
  }
  .pe-card img {
    height: 200px;
  }
}

/* Hide Kadence "Accueil" title banner on the front page only */
.home section.entry-hero.page-hero-section {
  display: none !important;
}

/* Let the cover hero span the full width */
.home .content-container.site-container,
.home #primary.content-area .content-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.home .content-wrap,
.home article.entry,
.home .entry-content-wrap,
.home .content-bg {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.home .entry-content {
  margin: 0;
  padding: 0;
}
.home .wp-block-cover.alignfull.pe-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  border-radius: 0;
}

/* Hero text must stay readable on the photo */
.pe-hero .wp-block-cover__inner-container,
.pe-hero .wp-block-cover__inner-container h1,
.pe-hero .wp-block-cover__inner-container p,
.home .wp-block-cover.pe-hero h1,
.home .wp-block-cover.pe-hero p {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* Logo typographique (pas d'image) */
#masthead .site-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem !important; font-weight: 700; letter-spacing: .01em; color: #0b3a53 !important; }
#masthead .site-title::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-right: .45em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #1fb5c4, #0b6e8a); vertical-align: .05em; }
#masthead .site-description { display: none !important; }

#masthead .custom-logo {
  max-height: 58px;
  width: auto;
}


/* Fil d'Ariane (silo Accueil → pilier → article) */
.pe-breadcrumbs {
  font-size: 0.92rem;
  margin: 0 0 1.15rem;
  color: #4a4a4a;
}
.pe-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  margin: 0;
  padding: 0;
}
.pe-breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.pe-breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 0.45rem;
  color: #8a8a8a;
}
.pe-breadcrumbs a {
  color: #0e7490;
  text-decoration: none;
}
.pe-breadcrumbs a:hover {
  text-decoration: underline;
}
.pe-guides-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}
.pe-guides-list li {
  margin: 0.55rem 0;
  padding-left: 0;
}
.pe-guides-list a {
  color: #0e7490;
  font-weight: 600;
  text-decoration: none;
}
.pe-guides-list a:hover {
  text-decoration: underline;
}

/* Héros des articles : image entière visible en 16:9, sans chevauchement du titre */
.single-post .article-post-thumbnail.kadence-thumbnail-position-behind {
  padding-bottom: 56.25% !important;
  margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(11, 58, 83, 0.14);
}
.single-post .article-post-thumbnail .post-thumbnail-inner {
  position: absolute;
  inset: 0;
}
.single-post .article-post-thumbnail .post-thumbnail-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.single-post .article-post-thumbnail:after { display: none !important; }
@media (max-width: 719px) {
  .single-post .article-post-thumbnail.alignwide {
    width: auto;
    max-width: none;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    border-radius: 12px;
  }
}

/* ===== Piscine Équipée : finitions premium ===== */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.entry-content { font-size: 1.07rem; line-height: 1.75; }
.entry-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -0.01em; margin-top: 2.2em; }
.entry-content h3 { color: var(--as-green-mid); }
.single-post .entry-title { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.18; letter-spacing: -0.02em; }
.pe-hero.wp-block-cover { min-height: 78vh; }
.pe-hero .wp-block-cover__inner-container { max-width: 920px; text-align: center; }
.pe-hero .pe-hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.pe-btn-ghost { background: rgba(255,255,255,.12) !important; border: 2px solid #fff !important; backdrop-filter: blur(4px); }
.pe-section-alt { background: var(--as-cream-2); }
.pe-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.2rem; }
.pe-section-head h2 { color: var(--as-green); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .2rem 0 .6rem; }
.pe-card img { height: 240px; }
.pe-card-body .pe-btn { align-self: flex-start; }
.pe-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pe-trust > div { background: #fff; border: 1px solid var(--as-line); border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 24px rgba(11,58,83,.05); }
.pe-trust h3 { margin: .2rem 0 .5rem; color: var(--as-green); font-size: 1.15rem; }
.pe-trust .pe-ico { font-size: 1.6rem; }
@media (max-width: 800px) { .pe-trust { grid-template-columns: 1fr; } }
.pe-latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.pe-latest li { background: #fff; border: 1px solid var(--as-line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(11,58,83,.06); transition: transform .2s ease; }
.pe-latest li:hover { transform: translateY(-3px); }
.pe-latest a { text-decoration: none; color: inherit; display: block; }
.pe-latest img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; display: block; }
.pe-latest .pe-latest-body { padding: 1rem 1.1rem 1.25rem; }
.pe-latest .pe-latest-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--as-wood); font-weight: 700; }
.pe-latest h3 { font-size: 1.08rem; line-height: 1.35; margin: .35rem 0 .4rem; color: var(--as-green); }
.pe-latest p { font-size: .93rem; margin: 0; color: #43535e; }
@media (max-width: 900px) { .pe-latest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pe-latest { grid-template-columns: 1fr; } }
.pe-keybox { background: linear-gradient(135deg, #e3f4f7, #f3fbfd); border: 1px solid #c4e6ee; border-radius: 16px; padding: 1.3rem 1.5rem; margin: 1.6rem 0 2rem; }
.pe-keybox-title { font-weight: 800; color: var(--as-green); margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.pe-keybox ul { margin: 0; padding-left: 1.15rem; }
.pe-keybox li { margin: .35rem 0; }
.pe-tip { border-left: 4px solid var(--as-sand); background: #fff9e8; padding: 1rem 1.2rem; border-radius: 4px 12px 12px 4px; margin: 1.6rem 0; }
.pe-tip p { margin: 0; }
.pe-tip p::before { content: "Conseil d’expert · "; font-weight: 800; color: #8a6500; }
.pe-more { background: #fff; border: 1px solid var(--as-line); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 2.2rem 0 1.4rem; box-shadow: 0 8px 22px rgba(11,58,83,.05); }
.pe-more-title { font-weight: 800; color: var(--as-green); margin: 0 0 .4rem; }
.pe-more ul { margin: 0; padding-left: 1.1rem; }
.pe-more a { font-weight: 600; }
.wp-block-table.pe-table { margin: 1.5rem 0 2rem; overflow-x: auto; }
.wp-block-table.pe-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--as-line); border-radius: 12px; overflow: hidden; font-size: .96rem; background: #fff; }
.wp-block-table.pe-table thead th { background: var(--as-green); color: #fff; text-align: left; padding: .75rem .9rem; border: 0; }
.wp-block-table.pe-table td { padding: .7rem .9rem; border: 0; border-top: 1px solid var(--as-line); vertical-align: top; }
.wp-block-table.pe-table tbody tr:nth-child(even) td { background: #f5fafc; }
.wp-block-table.pe-table figcaption { font-size: .85rem; color: #5b6b75; text-align: left; }
.pe-inline-img img { border-radius: 14px; box-shadow: 0 12px 30px rgba(11,58,83,.12); width: 100%; height: auto; }
.pe-sources { font-size: .88rem; color: #4b5b66; word-break: break-word; }
.pe-pillar-hero img { border-radius: 16px; width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: 0 14px 36px rgba(11,58,83,.14); }
.pe-guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; list-style: none; padding: 0; margin: 1rem 0 2rem; }
@media (max-width: 700px) { .pe-guides { grid-template-columns: 1fr; } }
.pe-guides li { margin: 0; }
.pe-guides { --x: 0; }
.entry-content table { max-width: 100%; }

/* ---------- Mise en page sans images ---------- */
.pe-hero-plain { position: relative; overflow: hidden; padding: clamp(4.5rem, 12vw, 8.5rem) 1.4rem clamp(4rem, 10vw, 7rem); text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, rgba(120,230,240,.55) 0%, rgba(120,230,240,0) 55%), radial-gradient(90% 80% at 0% 100%, rgba(11,58,83,.85) 0%, rgba(11,58,83,0) 60%), linear-gradient(135deg, #0f8fa6 0%, #0b6e8a 45%, #0b3a53 100%); }
.pe-hero-plain::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 90px;
  background: radial-gradient(60% 100% at 50% 100%, #fff 0 70%, transparent 71%); opacity: 1; }
.pe-hero-plain .pe-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.pe-hero-plain .pe-kicker { color: #bff3f7 !important; }
.pe-hero-plain h1 { color: #fff !important; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.12; margin: .4rem 0 1rem; }
.pe-hero-plain p { color: rgba(255,255,255,.92) !important; font-size: clamp(1.02rem, 2.2vw, 1.22rem); max-width: 720px; margin: 0 auto; }
.pe-hero-plain .pe-hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.pe-hero-plain .pe-btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.8); color: #fff !important; }
.pe-card-icon { display: flex; align-items: center; justify-content: center; height: 140px; font-size: 3.2rem; background: linear-gradient(135deg, #e6f8fa, #c9eef3); }
.pe-latest li { border-top: 4px solid #1fb5c4; }
.pe-pillar-band { padding: 1.4rem 1.6rem; margin: 0 0 1.6rem; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0f8fa6, #0b3a53); font-size: 1.05rem; }
.pe-pillar-band strong { color: #bff3f7; }
