/*
 Theme Name: Poitiers Collectif Child
 Theme URI: https://poitierscollectif.fr
 Template: generatepress
 Description: Thème enfant “Poitiers Collectif” – gabarit single optimisé (sans Elementor), palette automatique
 Author: Poitiers Collectif
 Version: 1.1.0
 Text Domain: pc-child
*/

:root {
  --pc-max: 1120px;

  /* Typo */
  --pc-font: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --pc-leading: 1.6;

  /* Couleurs Poitiers Collectif */
  --pc-c1: #2c7071;
  /* vert canard */
  --pc-c2: #00a19a;
  /* vert d’eau */
  --pc-c3: #ead53e;
  /* jaune (accent) */
  --pc-c4: #e9427f;
  /* rose/rouge */

  /* Neutres */
  --pc-text: #111827;
  --pc-muted: #6b7280;
  --pc-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pc-font);
  line-height: var(--pc-leading);
  color: var(--pc-text);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.pc-wrap {
  max-width: var(--pc-max);
  margin-inline: auto;
  padding: 10px;
}

.pc-hero {
  margin: 8px 0 24px;
}

.pc-title {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  margin: 16px 0 8px;
}

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--pc-muted);
  font-size: 14px;
}

.pc-breadcrumbs {
  font-size: 14px;
  color: var(--pc-muted);
  margin-bottom: 8px;
}

.pc-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.pc-breadcrumbs a:hover {
  border-bottom-style: solid;
}

/* Image d'article intégrée dans la largeur du texte */
.pc-hero-inline {
  margin: 0 0 24px;
}

.pc-hero-inline img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 12px;
}

.pc-hero-inline figcaption {
  font-size: 14px;
  color: var(--pc-muted);
  margin-top: 6px;
  text-align: center;
}

/* Grid */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .pc-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .pc-toc {
    position: sticky;
    top: 96px;
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }
}

.pc-content {
  font-size: 18px;
}

.pc-content p,
.pc-content li {
  margin: 12px 0;
}

.pc-content figure {
  margin: 20px 0;
}

.pc-content figcaption {
  font-size: 14px;
  color: var(--pc-muted);
  text-align: center;
}

/* Titres – palette automatique */
.pc-title {
  /* h1 */
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pc-c1);
}

.pc-content h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 32px 0 8px;
  font-weight: 700;
  text-transform: none;
  color: var(--pc-c2);
  border-left: 6px solid var(--pc-c2);
  padding-left: 10px;
}

.pc-content h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  margin: 24px 0 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pc-c4);
}

.pc-content h4 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pc-text);
  border-bottom: 2px solid var(--pc-c1);
  padding-bottom: 2px;
}

/* Accents jaune sur emphase courte */
.pc-content h2 em,
.pc-content h3 em {
  background: var(--pc-c3);
  padding: 0 .25em;
  border-radius: .25em;
  font-style: normal;
}

/* Blockquote recoloré */
.pc-content blockquote {
  border-left: 4px solid var(--pc-c4);
  margin: 16px 0;
  padding: 8px 16px;
  background: #fff7fb;
}

/* TOC */
.pc-toc {
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 16px;
}

.pc-toc h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 8px;
  color: var(--pc-c1);
}

.pc-toc nav a {
  display: block;
  font-size: 14px;
  color: #1f2937;
  text-decoration: none;
  padding: 6px 0;
}

.pc-toc nav a:hover {
  text-decoration: none;
  color: var(--pc-c4);
}

.pc-toc .toc-l2 {
  padding-left: 12px;
  opacity: .9;
}

.pc-toc .toc-l3 {
  padding-left: 20px;
  opacity: .8;
}

/* Share */
.pc-share {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  background: #fff;
}

.pc-chip:hover {
  background: #f9fafb;
  border-color: var(--pc-c2);
}

/* Progress */
.pc-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: transparent;
  z-index: 9999;
}

.pc-progress__bar {
  height: 100%;
  width: 0;
  background: var(--pc-c4);
}

/* Footer bits */
.pc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pc-tag {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--pc-c2);
  border-radius: 999px;
  text-decoration: none;
  color: #111827;
}

.pc-tag:hover {
  background: #f0fffd;
  border-color: var(--pc-c2);
}

.pc-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0;
}

.pc-card {
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: #111827;
}

.pc-card:hover {
  background: #f9fafb;
}

.pc-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width:720px) {
  .pc-related {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pc-author {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  margin-top: 24px;
}

.pc-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Liens dans le contenu */
.pc-content a {
  color: var(--pc-c1);
  text-decoration-thickness: .1em;
}

.pc-content a:hover {
  color: var(--pc-c4);
}


/* ================= Header / Menu ================ */
.pc-no-scroll {
  overflow: hidden;
}

.pc-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(6px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--pc-border);
  transition: box-shadow .25s ease, background-color .25s ease, transform .25s ease;
}

.pc-header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.pc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pc-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pc-logo img {
  height: 100px;
  width: auto;
  display: block;
}

.pc-logo--short {
  display: none;
}

/* Switch logos when scrolled */
.pc-header.is-scrolled .pc-logo--long {
  display: none;
}

.pc-header.is-scrolled .pc-logo--short {
  display: block;
}

/* Desktop nav */
.pc-nav-main {
  display: none;
}

@media (min-width: 1024px) {
  .pc-nav-main {
    display: block;
  }
}

.pc-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.pc-menu>li>a {
  text-decoration: none;
  color: var(--pc-text);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.pc-menu>li>a:hover {
  color: var(--pc-c4);
}

.pc-menu .current-menu-item>a,
.pc-menu .current-menu-ancestor>a {
  color: var(--pc-c1);
  background: #f0fffd;
}

/* Submenus */
.pc-menu li {
  position: relative;
}

.pc-menu li ul {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 8px;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.pc-menu li:hover>ul {
  display: block;
}

.pc-menu li ul li a {
  display: block;
  padding: 8px 10px;
  color: var(--pc-text);
  text-decoration: none;
  border-radius: 8px;
}

.pc-menu li ul li a:hover {
  background: #f9fafb;
  color: var(--pc-c1);
}

/* Burger */
.pc-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  cursor: pointer;
}

.pc-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .pc-burger {
    display: none;
  }
}

/* Mobile nav */
.pc-nav-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
  padding: 16px 20px;
  border-top: 1px solid var(--pc-border);
}

.pc-nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pc-menu-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:white;

}

.pc-menu-mobile a {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--pc-text);
  border-radius: 10px;
  border: 1px solid transparent;
}

.pc-menu-mobile a:hover {
  border-color: var(--pc-c2);
  background: #f0fffd;
}

.pc-menu-mobile .menu-item-has-children>a {
  font-weight: 700;
}

.pc-menu-mobile .sub-menu {
  margin-left: 10px;
  border-left: 3px solid var(--pc-border);
  padding-left: 8px;
}


/* CTA styling for "S'engager" */
.pc-menu .menu-cta>a {
  background: var(--pc-c4);
  color: #fff !important;
}

.pc-menu .menu-cta>a:hover {
  opacity: .95;
}

.pc-menu-mobile .menu-cta>a {
  border-color: var(--pc-c4);
  background: var(--pc-c4);
  color: #fff;
}



/* === Inline hero aligned with text column === */
.pc-hero {
  display: none;
}

/* neutralise l'ancien hero pleine largeur si encore présent */

.pc-hero-inline {
  margin: 0 0 24px;
  max-width: 100%;
}

.pc-hero-inline img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  /* 16:9ish */
  object-fit: cover;
  height: auto;
  border-radius: 12px;
}

.pc-hero-inline figcaption {
  font-size: 14px;
  color: var(--pc-muted);
  margin-top: 6px;
  text-align: center;
}

/* Ne pas dépasser la colonne texte, même avec classes Gutenberg */
.pc-content .alignwide,
.pc-content .alignfull,
.pc-content figure.alignwide,
.pc-content figure.alignfull {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}



/* === Sidebar: Articles précédents === */
.pc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
}

.pc-recent {
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 16px;
}

.pc-recent h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 8px;
  color: var(--pc-c1);
}

.pc-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-recent__list li {
  display: flex;
  flex-direction: column;
}

.pc-recent__list a {
  text-decoration: none;
  color: var(--pc-text);
}

.pc-recent__list a:hover {
  color: var(--pc-c4);
  text-decoration: underline;
}

.pc-recent__date {
  font-size: 12px;
  color: var(--pc-muted);
}


/* === Top bar (secondary menu) === */
.pc-topbar {
  background: var(--pc-c3);
  /* #ead53e */
  color: var(--pc-c1);
  /* #2c7071 */
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.pc-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: end;
  min-height: 38px;
}

.pc-menu-top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
}

.pc-menu-top>li>a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--pc-c1);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
}

.pc-menu-top>li>a:hover {
  text-decoration: underline;
}

/* CTA "S'engager" sur top bar : lisible sur fond jaune */
.pc-menu-top .menu-cta>a {
  background: var(--pc-c1);
  /* #2c7071 */
  color: #fff !important;
}

.pc-menu-top .menu-cta>a:hover {
  opacity: .95;
}

/* Mobile duplication in drawer */
.pc-menu-mobile--secondary {
  margin-top: 12px;
  border-top: 1px solid var(--pc-border);
  padding-top: 12px;
}

.pc-menu-mobile--secondary a {
  font-weight: 700;
}

.pc-menu-mobile--secondary .menu-cta>a {
  background: var(--pc-c4);
  color: #fff !important;
  border-color: var(--pc-c4);
}

/* Logos : état par défaut = long visible, court caché */
.pc-header .pc-logo--long {
  display: block !important;
}

.pc-header .pc-logo--short {
  display: none !important;
}

/* État scrolled : long caché, court visible */
.pc-header.is-scrolled .pc-logo--long {
  display: none !important;
}

.pc-header.is-scrolled .pc-logo--short {
  display: block !important;
}


/* ===== Homepage ===== */
.pc-home-hero {
  background: var(--pc-c3);
  /* jaune */
  color: var(--pc-c1);
  /* vert canard */
  padding: 36px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.pc-home-hero__content h1 {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pc-home-hero__lead {
  font-size: clamp(18px, 2vw, 20px);
  margin: 0 0 12px;
}

.pc-home-hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pc-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--pc-border);
}

.pc-btn--primary {
  background: var(--pc-c1);
  color: #fff;
  border-color: var(--pc-c1);
}

.pc-btn--ghost {
  background: #fff;
  color: var(--pc-c1);
}

.pc-btn--sm {
  padding: 8px 12px;
  font-size: 14px;
}

.pc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 28px 0 12px;
}

.pc-section-head h2 {
  margin: 0;
}

.pc-link-more {
  font-size: 14px;
  text-decoration: none;
  color: var(--pc-c1);
}

.pc-link-more:hover {
  color: var(--pc-c4);
}

/* News grid */
.pc-home-news {
  padding: 16px 0 8px;
}

.pc-news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width:720px) {
  .pc-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:1024px) {
  .pc-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pc-news-card {
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.pc-news-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.pc-news-card__meta {
  font-size: 12px;
  color: var(--pc-muted);
  padding: 10px 12px 0;
}

.pc-news-card__title {
  font-size: 18px;
  margin: 4px 12px;
}

.pc-news-card__title a {
  text-decoration: none;
  color: var(--pc-text);
}

.pc-news-card__title a:hover {
  color: var(--pc-c4);
}

.pc-news-card__excerpt {
  font-size: 15px;
  margin: 0 12px 12px;
  color: #374151;
}

/* Agenda list */
.pc-home-agenda {
  padding: 12px 0 36px;
}

.pc-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-agenda-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 12px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 12px;
  align-items: center;
  background: #fff;
}

@media (max-width:720px) {
  .pc-agenda-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.pc-agenda-item__date {
  font-weight: 700;
  color: var(--pc-c1);
}

.pc-agenda-item__title {
  margin: 0;
  font-size: 18px;
}

.pc-agenda-item__loc {
  font-size: 14px;
  color: var(--pc-muted);
}



/* ===== Hero ===== */
.pc-home-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(380px, 48vw, 620px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.pc-home-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.pc-home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

/* overlay gradient: plus dense à droite pour le texte */
.pc-home-hero--right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.10) 0%,
      rgba(44, 112, 113, 0.40) 45%,
      rgba(0, 161, 154, 0.72) 100%);
  z-index: 0;
}

.pc-home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 0;
}

.pc-home-hero--right .pc-home-hero__inner {
  display: flex;
  justify-content: flex-end;
}

/* texte à droite */
.pc-home-hero__content {
  max-width: 760px;
  text-align: left;
}

.pc-home-hero__content h1 {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(28px, 4.4vw, 60px);
}

.pc-home-hero__lead {
  font-size: clamp(18px, 2vw, 22px);
  margin: 0 0 18px;
  line-height: 1.4;
}

.pc-home-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons (reuse theme tokens) */
.pc-btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--pc-border);
  font-weight: 700;
}

.pc-btn--primary {
  background: var(--pc-c4);
  color: #fff;
  border-color: var(--pc-c4);
}

pc-btn--primary-cta {
  background: var(--pc-c4);
  color: #fff;
}

.pc-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.pc-btn--sm {
  padding: 8px 12px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .pc-home-hero--right .pc-home-hero__inner {
    justify-content: center;
  }

  .pc-home-hero__content {
    text-align: center;
  }
}

/* ===== News & Agenda (compléments) ===== */
.pc-home-news {
  padding: 24px 0 8px;
}

.pc-news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width:720px) {
  .pc-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:1024px) {
  .pc-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pc-news-card {
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.pc-news-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.pc-news-card__meta {
  font-size: 12px;
  color: var(--pc-muted);
  padding: 10px 12px 0;
}

.pc-news-card__title {
  font-size: 18px;
  margin: 4px 12px;
}

.pc-news-card__title a {
  text-decoration: none;
  color: var(--pc-text);
}

.pc-news-card__title a:hover {
  color: var(--pc-c4);
}

.pc-news-card__excerpt {
  font-size: 15px;
  margin: 0 12px 12px;
  color: #374151;
}

.pc-home-agenda {
  padding: 12px 0 36px;
}

.pc-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-agenda-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 12px;
  align-items: center;
  background: #fff;
}

@media (max-width:720px) {
  .pc-agenda-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.pc-agenda-item__date {
  font-weight: 700;
  color: var(--pc-c1);
}

.pc-agenda-item__title {
  margin: 0;
  font-size: 18px;
}

.pc-agenda-item__loc {
  font-size: 14px;
  color: var(--pc-muted);
}

/* ===== Footer (fond jaune + CTA compacts) ===== */
.pc-footer--yellow{
  --pc-footer-bg: var(--pc-c3);     /* #ead53e */
  --pc-footer-fg: var(--pc-c1);     /* #2c7071 */
  background: var(--pc-footer-bg);
  color: var(--pc-footer-fg);
  margin-top: 40px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.pc-footer--yellow a{ color: var(--pc-footer-fg); text-decoration:none; }
.pc-footer--yellow a:hover{ color: var(--pc-c4); }

.pc-footer__top{ display:grid; gap:20px; grid-template-columns: 1fr; padding:24px 0; }
@media (min-width:920px){ .pc-footer__top{ grid-template-columns: 1.2fr 1fr auto; } }

.pc-footer__logo img{ width:48px; height:auto; display:block; }
.pc-footer__baseline{ margin:8px 0 0; font-size:14px; opacity:.9; }

.pc-footer-menu{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.pc-footer__cta{ display:flex; gap:8px; flex-wrap:wrap; align-items:flex-start; }

/* Boutons : compacts */
.pc-btn{ display:inline-block; padding:10px 14px; border-radius:10px; text-decoration:none; border:1px solid var(--pc-border); font-weight:700; }
.pc-btn--sm{ padding:8px 12px; font-size:14px; border-radius:10px; }
.pc-footer--yellow .pc-btn--primary{ background: var(--pc-c1); color:#fff; border-color: var(--pc-c1); }
.pc-footer--yellow .pc-btn--ghost{ background: transparent; color: var(--pc-c1); border-color: var(--pc-c1); }
.pc-footer--yellow .pc-btn:hover{ opacity:.95; }

.pc-footer__bottom{
  display:flex; justify-content:space-between; gap:12px; font-size:14px;
  padding: 12px 0 20px;
  border-top: 1px solid rgba(0,0,0,.08);
  flex-wrap: wrap;
}
.pc-footer__social{ display:flex; gap:12px; flex-wrap:wrap; }


/* ===== Search results ===== */
.pc-search__list{ display:flex; flex-direction:column; gap:16px; margin-top:12px; }
.pc-search__item{ border:1px solid var(--pc-border); border-radius:12px; padding:12px; background:#fff; }
.pc-search__title{ margin:0 0 4px; }

/* ===== 404 ===== */
.pc-404 .pc-news-grid{ margin-top:12px; }


/* ===== Footer : logo long sur fond blanc ===== */
.pc-footer--yellow .pc-footer__brand {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-footer--yellow .pc-footer__logo img {
  max-width: 240px; /* tu peux ajuster selon la largeur de ton logo long */
  height: auto;
  display: block;
}

.pc-footer--yellow .pc-footer__baseline {
  font-size: 14px;
  line-height: 1.4;
  color: var(--pc-c1);
  max-width: 280px;

}

/* ==== Filtres liste d'actualités ==== */
.pc-filters{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pc-filters select{ padding:8px 10px; border:1px solid var(--pc-border); border-radius:10px; background:#fff; }

/* ==== Newsletter ==== */
.pc-home-newsletter{ background: #f7faf9; padding: 28px 0 40px; margin-top: 8px; }
.pc-newsletter__box{
  border:1px solid var(--pc-border);
  background:#fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.pc-newsletter__box h2{ margin:0 0 6px; }
.pc-newsletter__box p{ margin:0 0 14px; }
.pc-newsletter__form{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.pc-field{ display:flex; flex-direction:column; gap:6px; }
.pc-field input[type="email"],
.pc-field input[type="tel"]{
  padding:10px 12px; border:1px solid var(--pc-border); border-radius:10px; width:100%;
}
.pc-field--inline{ grid-column: 1 / -1; display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.pc-radio{ display:flex; align-items:center; gap:6px; }
.pc-actions{ grid-column: 1 / -1; }
.pc-legal{ grid-column: 1 / -1; font-size: 13px; color: var(--pc-muted); }
@media (max-width:720px){
  .pc-newsletter__form{ grid-template-columns: 1fr; }
}


/* ===== Agenda en cartes ===== */
.pc-agenda-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 12px;
}

@media (min-width: 600px) {
  .pc-agenda-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pc-agenda-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pc-agenda-card {
  background: #fff;
  border: 1px solid var(--pc-border, #ddd);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .15s ease;
}

.pc-agenda-card:hover {
  transform: translateY(-3px);
}

/* Bloc date en haut à gauche */
.pc-agenda-card__date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pc-c1);
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 700;
  line-height: 1.1;
}
.pc-agenda-card__day {
  display: block;
  font-size: 18px;
}
.pc-agenda-card__month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}

/* Image éventuelle */
.pc-agenda-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Corps */
.pc-agenda-card__body {
  padding: 80px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-agenda-card__title {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.pc-agenda-card__title a {
  text-decoration: none;
  color: var(--pc-text, #222);
}

.pc-agenda-card__title a:hover {
  color: var(--pc-c1);
}

.pc-agenda-card__loc {
  font-size: 0.9rem;
  color: var(--pc-muted, #666);
  margin-bottom: auto;
}

.pc-agenda-card__cta {
  margin-top: 12px;
}
/* Hero CTA – Page d'accueil */
.pc-home-hero__cta .pc-btn--primary {
  background: var(--pc-c4);
  color: #fff;
  border: none; /* retire la bordure blanche */
}

.pc-home-hero__cta .pc-btn--primary:hover {
  background: #229084; /* petit assombrissement au hover */
}

.pc-home-hero__cta .pc-btn--ghost {
  background: var(--pc-c3); /* jaune */
  color: var(--pc-c1);      /* vert canard */
  border: none;
}

.pc-home-hero__cta .pc-btn--ghost:hover {
  background: var(--pc-c1);  
  color:var(--pc-c3); 
}

/* ===== Dropdown menu (desktop) ===== */
.pc-menu, .pc-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.pc-menu li { position: relative; }

.pc-menu > li { /* items de premier niveau */
  margin: 0 4px;
}

.pc-menu > li > a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--pc-text);
  font-weight: 800;
}

.pc-menu > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 12px;
  margin-left: 6px;
  opacity: .7;
}

/* le panneau */
.pc-menu .sub-menu{
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 40;
}

/* flou sous le menu pour casser l'effet "cartouche" */
.pc-menu .sub-menu::before{
  content:""; position:absolute; inset:0; border-radius:14px; backdrop-filter: blur(0px);
}

/* affichage au focus/hover (accessibilité + souris) */
.pc-menu li:focus-within > .sub-menu,
.pc-menu li:hover > .sub-menu{
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* items du dropdown */
.pc-menu .sub-menu > li > a{
  display:block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--pc-text);
  font-weight: 700;
}

.pc-menu .sub-menu > li > a:hover,
.pc-menu .sub-menu > li > a:focus{
  background: #e9fbf8; /* mint léger */
  color: var(--pc-c1);
  outline: none;
}

/* enlève les puces/bullets sur certains thèmes */
.pc-menu .sub-menu > li { list-style: none; }
.pc-menu .sub-menu > li::marker{ content: none; }

/* petit "triangle" d'attache */
.pc-menu .sub-menu::after{
  content:"";
  position:absolute; top:-8px; left:18px;
  border:8px solid transparent; border-bottom-color:#fff;
}

/* ===== Mobile (nav offcanvas / repli) ===== */
.pc-nav-mobile .menu-item-has-children > a{
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 6px;
}

.pc-nav-mobile .menu-item-has-children > a .pc-caret{
  margin-left: 8px; transition: transform .15s ease; font-size: 12px; opacity:.8;
}

.pc-nav-mobile .sub-menu{
  display: none;
  position: static; border: 0; box-shadow: none;
  padding: 6px 0 6px 10px; margin-top: 6px;
  background: transparent;
}

.pc-nav-mobile .menu-item.is-open > .sub-menu{ display: block; }
.pc-nav-mobile .menu-item.is-open > a .pc-caret{ transform: rotate(180deg); }

/* thème : badge actif du premier niveau, plus doux */
.pc-menu > li.current-menu-item > a,
.pc-menu > li.current-menu-ancestor > a{
  background: #e9fbf8;
  color: var(--pc-c4); /* rose */
}

/* 1) S'assurer qu'aucun parent ne coupe le panneau */
.pc-header{ overflow: visible; }

/* 2) Petit "pont" de survol entre l'onglet et le panneau */
.pc-menu > li{
  position: relative;
}
.pc-menu > li::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top:100%;           /* collé sous l'onglet */
  height:14px;        /* zone tampon à traverser */
  z-index:39;         /* sous le panneau (qui est à 40) */
}

/* 3) Panneau : rapprochement et apparition */
.pc-menu .sub-menu{
  position:absolute; left:0;
  top: calc(100% + 8px);   /* 8px d'écart, couvert par le pont */
  min-width:240px;
  background:#fff;
  border:1px solid var(--pc-border);
  border-radius:14px;
  padding:8px;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s;
  z-index:40;
}

/* 4) Conditions d'ouverture — inclure le survol du panneau lui-même */
.pc-menu li:hover > .sub-menu,
.pc-menu li:focus-within > .sub-menu,
.pc-menu .sub-menu:hover{
  opacity:1; visibility:visible; transform:translateY(0);
}

/* Hover dans le dropdown */
.pc-menu .sub-menu > li > a:hover,
.pc-menu .sub-menu > li > a:focus {
  background: #fff8d0; /* jaune très pâle pour hover */
  color: var(--pc-c1);
  outline: none;
}

/* Élément actif ou ancêtre actif */
.pc-menu > li.current-menu-item > a,
.pc-menu > li.current-menu-ancestor > a {
  background: var(--pc-c3); /* jaune plein */
  color: var(--pc-c4);      /* rose */
}

/* Dans le dropdown, pour les liens actifs */
.pc-menu .sub-menu > li.current-menu-item > a {
  background: var(--pc-c3);
  color: var(--pc-c4);
  font-weight: 800;
}

/* ===== Programme : corriger la grille ===== */
.pc-programme { display:grid; grid-template-columns: 1fr; gap:18px; }

/* Desktop: TOC (320px) à gauche, contenu fluide à droite */
@media (min-width:1024px){
  .pc-programme { grid-template-columns: 320px 1fr; }
  .pc-programme > aside { width:auto; }
  .pc-programme .pc-toc { max-width:320px; }
}

/* Sécurité: éviter que des liens trop longs fassent gonfler le sommaire */
.pc-programme .pc-toc a { display:block; }
.pc-programme .pc-toc ul { overflow-wrap:anywhere; }

/* ===== Programme PDF ===== */
.pc-programme-pdf__head{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin: 4px 0 12px;
}
.pc-programme-pdf__actions{ display:flex; gap:8px; flex-wrap:wrap; }

.pc-pdf-embed{
  position: relative;
  border:1px solid var(--pc-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* hauteur responsive : prend quasi tout l'écran sous le header */
.pc-pdf-embed iframe{
  width: 100%;
  height: calc(100vh - 140px); /* hauteur plus généreuse */
  min-height: 680px;          /* meilleure taille sur desktop */
  border: 0;
  display:block;
}

.pc-pdf-fallback{ padding:16px; margin:0; }

/* Mobile : privilégier le bouton / lien plutôt que l'embed très lourd */
@media (max-width: 640px){
  .pc-pdf-embed iframe{ display:none; }
  .pc-pdf-fallback{ display:block; }
}

/* Bouton "ouvrir dans un onglet" en vert canard */
.pc-programme-pdf__actions .pc-btn--ghost {
  background: var(--pc-c1);
  color: #fff;
  border: none;
}

.pc-programme-pdf__actions .pc-btn--ghost:hover {
  background: #20605f; /* léger assombrissement au hover */
  color: #fff;
}

/* ===== H1 page Actualités ===== */
.pc-title--page{
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;            /* garde la casse naturelle */
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0 0 8px;
}

/* ===== Filtres (barre du haut) ===== */
.pc-filters{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pc-link-reset{
  text-decoration:none;
  font-weight:700;
  color: var(--pc-c4);
}
.pc-link-reset:hover{ text-decoration:underline; }

/* Select custom */
.pc-select{
  position:relative;
  display:inline-flex;
  align-items:center;
  background:#fff;
  border:1px solid var(--pc-border);
  border-radius:12px;
  padding:0 10px;
  height:42px;
}
.pc-select::after{
  content:"▾";
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  font-size:12px; color: var(--pc-c1); pointer-events:none;
}
.pc-select select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  border:0; background:transparent; outline:none;
  padding:8px 20px 8px 2px;  /* espace pour la flèche */
  font-weight:700;
  color: var(--pc-text);
}
.pc-select:hover{ border-color: #cbd5e1; }
.pc-select:has(select:focus){ box-shadow: 0 0 0 3px rgba(0,161,154,.15); border-color: var(--pc-c2); }

/* ===== Grille actus (déjà en place, au cas où) ===== */
/* .pc-news-grid … */

/* ===== Pagination stylée ===== */
.pc-pagination{
  margin: 18px 0 6px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 8px;
  flex-wrap:wrap;
}

.pc-pagination a,
.pc-pagination span{
  display:inline-block;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border:1px solid var(--pc-border);
  border-radius: 10px;
  background:#fff;
  color: var(--pc-text);
  text-decoration:none;
  line-height: 38px;
  text-align:center;
  font-weight:700;
}

.pc-pagination a:hover{
  border-color: var(--pc-c2);
  color: var(--pc-c1);
}

.pc-pagination .current{
  background: var(--pc-c1);
  color:#fff;
  border-color: var(--pc-c1);
}

.pc-pagination .prev, .pc-pagination .next{
  padding: 0 14px;
}
.pc-pagination .dots{
  border:0; background:transparent; min-width:auto; width:auto;
}

/* ===== Petits ajustements responsive ===== */
@media (max-width:560px){
  .pc-select{ width:100%; }
  .pc-select select{ width:100%; }
}

/* ===== H2 sur la home ===== */
.pc-home h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
  color: var(--pc-c1); /* vert canard par défaut */
}

/* Soulignement "pastille" jaune sous le texte */
.pc-home h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background: var(--pc-c3); /* jaune */
  border-radius: 4px;
  z-index: -1;
}

/* Variante si tu veux un style différent par section : */
.pc-home .pc-section--actus h2 {
  color: var(--pc-c4); /* rose */
}
.pc-home .pc-section--actus h2::after {
  background: var(--pc-c3); /* jaune reste la base */
}

.pc-home .pc-section--agenda h2 {
  color: var(--pc-c1); /* vert canard */
}
.pc-home .pc-section--newsletter h2 {
  color: var(--pc-c2); /* turquoise */
}

/* Ajustement responsive */
@media (max-width: 640px) {
  .pc-home h2 {
    margin-bottom: 12px;
  }
}

/* ===== Bloc actualités - Titre et lien ===== */
.pc-section--actus .pc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pc-section--actus h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--pc-c4); /* rose */
  position: relative;
  display: inline-block;
  margin: 0;
}

.pc-section--actus h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background: var(--pc-c3); /* jaune */
  border-radius: 4px;
  z-index: -1;
}

/* ===== Lien "Toutes les actus" stylé ===== */
.pc-section--actus .pc-link-more {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--pc-c1); /* vert canard */
  font-size: 16px;
  transition: color .2s ease;
}

.pc-section--actus .pc-link-more::after {
  content: "→";
  margin-left: 6px;
  transition: transform .2s ease;
}

.pc-section--actus .pc-link-more:hover {
  color: var(--pc-c4); /* rose au hover */
}

.pc-section--actus .pc-link-more:hover::after {
  transform: translateX(3px);
}

/* Responsive : lien sous le titre */
@media (max-width: 640px) {
  .pc-section--actus .pc-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ===== Section Agenda ===== */
.pc-section--agenda .pc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pc-section--agenda h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--pc-c1); /* vert canard */
  position: relative;
  display: inline-block;
  margin: 0;
}

.pc-section--agenda h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background: var(--pc-c3); /* jaune */
  border-radius: 4px;
  z-index: -1;
}

/* Lien "Voir l’agenda" */
.pc-section--agenda .pc-link-more {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--pc-c1);
  font-size: 16px;
  transition: color .2s ease;
}

.pc-section--agenda .pc-link-more::after {
  content: "→";
  margin-left: 6px;
  transition: transform .2s ease;
}

.pc-section--agenda .pc-link-more:hover {
  color: var(--pc-c4); /* rose au hover */
}

.pc-section--agenda .pc-link-more:hover::after {
  transform: translateX(3px);
}

/* ===== Section Newsletter ===== */
.pc-section--newsletter .pc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pc-section--newsletter h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--pc-c2); /* turquoise */
  position: relative;
  display: inline-block;
  margin: 0;
}

.pc-section--newsletter h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background: var(--pc-c3); /* jaune */
  border-radius: 4px;
  z-index: -1;
}

/* Lien "S'inscrire" ou autre CTA texte */
.pc-section--newsletter .pc-link-more {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--pc-c2);
  font-size: 16px;
  transition: color .2s ease;
}

.pc-section--newsletter .pc-link-more::after {
  content: "→";
  margin-left: 6px;
  transition: transform .2s ease;
}

.pc-section--newsletter .pc-link-more:hover {
  color: var(--pc-c4); /* rose au hover */
}

.pc-section--newsletter .pc-link-more:hover::after {
  transform: translateX(3px);
}

/* Responsive : lien sous le titre */
@media (max-width: 640px) {
  .pc-section--agenda .pc-section-head,
  .pc-section--newsletter .pc-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ===== Onglets Agenda ===== */
.pc-tabs{ display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.pc-tab{
  border:1px solid var(--pc-border);
  background:#fff;
  color:var(--pc-text);
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  cursor:pointer;
}
.pc-tab.is-active{
  background: var(--pc-c3);  /* jaune */
  color: var(--pc-c4);       /* rose */
  border-color: var(--pc-c3);
}
.pc-tab__count{
  display:inline-block; margin-left:6px;
  background:#fff; color:var(--pc-c1);
  border-radius:999px; padding:2px 8px; font-size:12px; font-weight:800;
  border:1px solid rgba(0,0,0,.05);
}
.pc-tabpanel{ display:block; }
.pc-tabpanel[hidden]{ display:none; }

/* Past cards (atténuées) */
.pc-agenda-card--past{ opacity:.85; }
.pc-agenda-card--past .pc-agenda-card__date{ background:#b9c8c8; } /* vert grisé */

/* “Voir plus” */
.pc-agenda-more{ margin-top:12px; text-align:center; }

/* Bouton "Détails" dans l'agenda */
.pc-agenda-card__cta .pc-btn--ghost {
  background: var(--pc-c3);   /* jaune */
  color: var(--pc-c1);        /* vert canard */
  border: none;
  font-weight: 700;
}

.pc-agenda-card__cta .pc-btn--ghost:hover {
  background: #d6c12e; /* jaune un peu plus foncé au hover */
  color: var(--pc-c1);
}

/* ===== Newsletter (home) – homogénéisée ===== */
.pc-section--newsletter .pc-section-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap;
  margin-bottom:18px;
}
.pc-section--newsletter h2{
  font-size: clamp(24px, 3vw, 34px); font-weight:800; line-height:1.2; margin:0; color: var(--pc-c2);
  position:relative; display:inline-block;
}
.pc-section--newsletter h2::after{
  content:""; position:absolute; left:0; bottom:-6px; width:100%; height:6px; background: var(--pc-c3); border-radius:4px;
}

.pc-newsletter-card{
  background:#fff; border:1px solid var(--pc-border); border-radius:16px;
  box-shadow:0 6px 24px rgba(0,0,0,.04); padding:24px; max-width:800px; margin:0 auto;
}
.pc-newsletter-lead{ margin:0 0 12px; color:#374151; }

/* grille des deux champs */
.pc-newsletter-grid{ display:grid; gap:12px; grid-template-columns:1fr; }
@media (min-width:720px){ .pc-newsletter-grid{ grid-template-columns:1fr 1fr; } }

.pc-field{ display:flex; flex-direction:column; gap:6px; }
.pc-field label{ font-weight:800; color: var(--pc-text); }
.pc-field input[type="email"],
.pc-field input[type="tel"]{
  width:100%; padding:12px 14px; border:1px solid var(--pc-border); border-radius:10px; background:#f8fafb;
}
.pc-field input:focus{ outline:none; box-shadow:0 0 0 3px rgba(0,161,154,.12); border-color: var(--pc-c2); }

/* radios en ligne */
.pc-field--inline{ margin-top:8px; }
.pc-field--inline .pc-radio{ display:flex; align-items:center; gap:8px; margin-right:16px; }
.pc-field--inline .pc-radio + .pc-radio{ margin-top:8px; }
@media (min-width:720px){ .pc-field--inline .pc-radio + .pc-radio{ margin-top:0; } }
.pc-field--inline legend{ font-weight:800; margin-bottom:6px; }

/* actions */
.pc-actions{ margin-top:10px; }
.pc-actions .pc-btn--primary{ background: var(--pc-c4); color:#fff; border:none; }
.pc-actions .pc-btn--primary:hover{ background:#c92e65; }

.pc-btn--primary--rose {
  background: var(--pc-c4)!important;
}
/* note légale */
.pc-legal{ font-size:14px; color: var(--pc-muted); margin:10px 0 0; }
.pc-legal a{ color: var(--pc-c1); text-decoration:underline; }

/* largeur/alignement : s'aligne naturellement à .pc-wrap (comme Actus/Agenda) */

/* === Newsletter : largeur & alignements cohérents === */
.pc-newsletter-card{
  width: 100%;
  max-width: none;            /* ❗ enlève la limite 800px */
  margin: 0;                  /* aligne sur .pc-wrap */
  padding: 20px;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.04);
}

/* Grille interne des champs : 2 colonnes desktop, 1 colonne mobile */
.pc-newsletter__form{
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 14px;
}
@media (min-width: 720px){
  .pc-newsletter__form{ grid-template-columns: 1fr 1fr; }
}

/* Les éléments qui doivent occuper toute la largeur */
.pc-newsletter-lead,
.pc-field--inline,
.pc-actions,
.pc-legal{ grid-column: 1 / -1; }

/* Champs */
.pc-field{ display:flex; flex-direction:column; gap:6px; }
.pc-field label{ font-weight:800; }
.pc-field input[type="email"],
.pc-field input[type="tel"]{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--pc-border);
  border-radius:10px;
  background:#f8fafb;
}
.pc-field input:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(0,161,154,.12);
  border-color: var(--pc-c2);
}

/* Radios mieux alignées */
.pc-field--inline{ margin-top:6px; }
.pc-field--inline .pc-radio{ display:flex; align-items:center; gap:8px; margin-right:18px; }
.pc-field--inline .pc-radio + .pc-radio{ margin-top:8px; }
@media (min-width:720px){
  .pc-field--inline{ display:flex; align-items:center; gap:18px; }
  .pc-field--inline legend{ margin:0; }
  .pc-field--inline .pc-radio + .pc-radio{ margin-top:0; }
}

/* Bouton */
.pc-actions{ margin-top:6px; }
.pc-actions .pc-btn--primary{
  background: var(--pc-c4);
  color:#fff;
  border:none;
  font-weight:800;
  padding:10px 18px;
  border-radius:10px;
}
.pc-actions .pc-btn--primary:hover{ background:#c92e65; }

/* Petit resserrage du paragraphe légal */
.pc-legal{ font-size:14px; color: var(--pc-muted); margin:8px 0 0; }

/* Titre de section déjà charté via .pc-section--newsletter { ... } */

.pc-newsletter-card form{ max-width:100% !important; }
.pc-newsletter-card input, .pc-newsletter-card select, .pc-newsletter-card button{
  font: inherit; /* hérite de la typo/tailles du site */
}

/* ===== Radios alignés à gauche ===== */
.pc-field--inline {
  display: flex;
  flex-direction: column;  /* radios en colonne sous la légende */
  align-items: flex-start; /* alignement à gauche */
  gap: 6px;
}

.pc-field--inline legend {
  font-weight: 800;
  margin-bottom: 4px;
}

.pc-field--inline .pc-radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-field--inline .pc-radio input[type="radio"] {
  margin: 0;
}

/* inputs cohérents */
.pc-newsletter-card .input{
  width:100%; padding:12px 14px;
  border:1px solid var(--pc-border);
  border-radius:10px; background:#f8fafb;
}
.pc-newsletter-card .input:focus{
  outline:none; border-color: var(--pc-c2);
  box-shadow:0 0 0 3px rgba(0,161,154,.12);
}

/* radios & checkbox */
.pc-radio, .pc-checkbox{ display:flex; align-items:flex-start; gap:8px; }
.pc-radio input, .pc-checkbox input{ margin-top:2px; }

/* messages d’aide / erreur */
.entry__specification{ font-size:12px; color: var(--pc-muted); }
.entry__error--primary{ font-size:14px; color:#661d1d; background:#ffeded; border-radius:6px; padding:6px 8px; display:none; }

/* bouton déjà stylé via .pc-btn--primary */

/* ===== Footer ===== */
.pc-footer{
  background: var(--pc-c3); /* jaune */
  color: var(--pc-c1);      /* vert canard pour le texte par défaut */
  padding-top: 28px;
  margin-top:100px;
}

/* grille */
.pc-footer__top{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px){
  .pc-footer__top{ grid-template-columns: 1fr; }
}

/* carte brand plus élégante */
.pc-footer__brand{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.pc-footer__logo img{ display:block; height:36px; width:auto; margin-bottom:10px; }
.pc-footer__tagline{ margin:0; line-height:1.45; color:#315e5f; }

/* navigation */
.pc-footer__nav ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.pc-footer__nav a{
  text-decoration:none;
  font-weight:800;
  color: var(--pc-c1);
  padding:6px 8px;
  border-radius:10px;
}
.pc-footer__nav a:hover{ background: rgba(255,255,255,.55); color: var(--pc-c1); }

/* actions */
.pc-footer__actions{ display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.pc-btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 14px; border-radius:12px; font-weight:800; text-decoration:none; }
.pc-btn--primary{ background: var(--pc-c1); color:#fff; border:none; }
.pc-btn--primary:hover{ background:#20605f; }
.pc-btn--outline{ background: transparent; color: var(--pc-c1); border:2px solid var(--pc-c1); }
.pc-btn--outline:hover{ background: rgba(255,255,255,.6); }

.pc-footer__newsletter{
  display:inline-block; font-weight:800; color: var(--pc-c1); text-decoration:none;
  padding:6px 0;
  border-bottom: 3px solid rgba(0,0,0,.15);
}
.pc-footer__newsletter:hover{ color: var(--pc-c4); border-bottom-color: var(--pc-c4); }

/* barre du bas */
.pc-footer__bottom{
  margin-top: 24px;
  border-top: 1px solid rgba(0,0,0,.15);
  padding: 12px 0 18px;
}
.pc-footer__bottom-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.pc-footer__bottom small{ color:#315e5f; }
.pc-footer__legal{ list-style:none; display:flex; gap:12px; margin:0; padding:0; }
.pc-footer__legal a{ color: var(--pc-c1); text-decoration:none; font-weight:700; }
.pc-footer__legal a:hover{ text-decoration:underline; }

/* petits ajustements */
.pc-footer a:focus-visible{
  outline: 3px solid rgba(0,161,154,.35);
  outline-offset: 2px;
}

/* Contact */
.pc-contact .pc-section-head h1 {
  font-size: 2rem;
  margin-bottom: .3em;
}
.pc-contact .pc-section-head p {
  max-width: 600px;
  margin-bottom: 1.5em;
}

.pc-form {
  max-width: 600px;
  display: grid;
  gap: 1rem;
}
.pc-field label {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.pc-field input,
.pc-field textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--pc-border, #ccc);
  background: #f8fafb;
}
.pc-field input:focus,
.pc-field textarea:focus {
  outline: none;
  border-color: var(--pc-c1);
  box-shadow: 0 0 0 3px rgba(0,161,154,.15);
}

.pc-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.pc-alert--success {
  background: #e8f8f4;
  color: #067060;
}
.pc-alert--error {
  background: #ffeded;
  color: #661d1d;
}

/* Logo footer plus gros */
.pc-footer__logo img {
  height: 60px; /* taille précédente : 36px */
  width: auto;
  display: block;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .pc-footer__logo img {
    height: 45px;
  }
}

/* ===== Contact : header charté + alignements ===== */
.pc-title--page{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 0;
}

.pc-contact__head{
  display: grid;
  grid-template-columns: 1fr 1fr;  /* Titre à gauche, intro à droite */
  align-items: end;                 /* aligne le texte sur la ligne de base du titre */
  gap: 16px;
  margin-bottom: 18px;
}

.pc-contact__intro{
  margin: 0;
  color: var(--pc-text, #1f2937);
  opacity: .85;
  max-width: 56ch;
  justify-self: end;               /* colle le paragraphe au bord droit de la wrap */
}

/* Mobile : empilement propre */
@media (max-width: 900px){
  .pc-contact__head{
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }
  .pc-contact__intro{
    justify-self: start;
    max-width: none;
  }
}

/* Formulaire (rappel léger pour cohérence) */
.pc-form{
  max-width: 760px;   /* un peu plus large pour respirer */
}

/* ===== Contact : header empilé ===== */
.pc-contact__head {
  margin-bottom: 24px;
}

.pc-title--page {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.pc-contact__intro {
  margin: 0;
  color: var(--pc-text, #1f2937);
  opacity: 0.85;
  max-width: 600px;
}

/* ===== Formulaire Brevo en iframe ===== */
.pc-brevo-embed {
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.04);
  overflow: hidden;
  margin-top: 1rem;
}

.pc-brevo-embed iframe {
  width: 100%;
  border: 0;
  display: block;
}

.pc-brevo-fallback {
  margin: 10px 14px;
  font-size: 14px;
  color: var(--pc-muted);
}

.pc-brevo-fallback a {
  color: var(--pc-c1);
  text-decoration: underline;
}

/* ===== Groupes meta ===== */
.pc-post-meta{
  margin: 16px 0 10px;
  display: grid;
  gap: 12px;
}
.pc-post-meta__label{
  display:inline-block;
  font-weight:800;
  color: var(--pc-c1);
  margin-right: 8px;
}

/* ===== Chips catégories / tags ===== */
.pc-chips{ display:flex; gap:10px; flex-wrap:wrap; }
.pc-chip{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border:1px solid var(--pc-border);
  background: #fff;
  color: var(--pc-c1);
  line-height: 1;
}
.pc-chip:hover{ border-color: var(--pc-c2); color: var(--pc-c1); }
.pc-chip--cat{ background: #fffbe0; border-color: #f2e28a; } /* jaune pâle */
.pc-chip--tag{ background: #f7e7ef; border-color: #f1c3d5; color: var(--pc-c4); } /* rose pâle */

/* ===== Nav précédent / suivant ===== */
.pc-post-nav{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--pc-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){ .pc-post-nav{ grid-template-columns: 1fr; } }

.pc-post-nav__link{
  display:flex; flex-direction:column; gap:4px;
  padding: 12px 14px;
  background:#fff;
  border:1px solid var(--pc-border);
  border-radius: 12px;
  text-decoration:none;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pc-post-nav__link:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  border-color: var(--pc-c2);
}

.pc-post-nav__kicker{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pc-c1);
  opacity: .8;
}

.pc-post-nav__title{
  font-weight: 800;
  color: var(--pc-text);
}

/* Flèches */
.pc-post-nav__prev{ position:relative; padding-left: 34px; }
.pc-post-nav__prev::before{
  content: "←";
  position:absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-weight: 900; color: var(--pc-c1);
}
.pc-post-nav__next{ position:relative; padding-right: 34px; text-align:right; }
.pc-post-nav__next::after{
  content: "→";
  position:absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-weight: 900; color: var(--pc-c1);
}


@media (max-width: 768px){
  .pc-home-hero__cta{
    display: flex;            /* ou conserve le flex existant */
    justify-content: center;  /* centre le bouton */
  }
  .pc-home-hero__cta .pc-btn{
    margin: 0;                /* annule un éventuel margin-left */
  }
}

/* ===== Brevo (plugin) — Habillage Poitiers Collectif ===== */
.pc-brevo-wp #sib_embed_signup,
.pc-brevo-wp .sib_signup_form {
  max-width: none;
  margin: 0;
}

/* Grille 2 colonnes (email / téléphone), puis une colonne pour le reste */
.pc-brevo-wp form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px){
  .pc-brevo-wp form { grid-template-columns: 1fr 1fr; }
  /* éléments qui doivent prendre toute la largeur */
  .pc-brevo-wp .sib-TYPE_DE_PARTICIPATION-area,
  .pc-brevo-wp .sib-optin-area,
  .pc-brevo-wp .sib-form-message-panel,
  .pc-brevo-wp .sib-form-block__button {
    grid-column: 1 / -1;
  }
}

/* Labels */
.pc-brevo-wp label {
  font-weight: 800;
  margin-bottom: 6px;
  display: inline-block;
  color: var(--pc-text);
}

/* Champs texte / email / tel */
.pc-brevo-wp input[type="text"],
.pc-brevo-wp input[type="email"],
.pc-brevo-wp input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: #f8fafb;
  font: inherit;
}
.pc-brevo-wp input[type="text"]:focus,
.pc-brevo-wp input[type="email"]:focus,
.pc-brevo-wp input[type="tel"]:focus {
  outline: none;
  border-color: var(--pc-c2);
  box-shadow: 0 0 0 3px rgba(0,161,154,.12);
}

/* Widget téléphone Brevo (sélecteur de pays) */
.pc-brevo-wp .sib-sms-field { display: flex; gap: 8px; align-items: stretch; }
.pc-brevo-wp .sib-country-block { flex: 0 0 auto; }
.pc-brevo-wp .sib-country-flg,
.pc-brevo-wp .sib-toggle { 
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.pc-brevo-wp .sib-sms { 
  flex: 1 1 auto; 
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafb;
}

/* Radios : alignés à gauche, look propre */
.pc-brevo-wp .sib-TYPE_DE_PARTICIPATION-area { margin-top: 6px; }
.pc-brevo-wp .sib-TYPE_DE_PARTICIPATION-area > div { 
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.pc-brevo-wp input[type="radio"] { transform: translateY(1px); }

/* Bouton envoyer */
.pc-brevo-wp input[type="submit"],
.pc-brevo-wp .sib-default-btn,
.pc-brevo-wp button[type="submit"] {
  background: var(--pc-c4);   /* rose */
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}
.pc-brevo-wp input[type="submit"]:hover,
.pc-brevo-wp .sib-default-btn:hover,
.pc-brevo-wp button[type="submit"]:hover {
  background: #c92e65;        /* rose foncé */
}

/* Messages (succès / erreur) */
.pc-brevo-wp .sib-form-message-panel,
.pc-brevo-wp .sib-alert-message {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}
.pc-brevo-wp .sib-form-message-panel.success,
.pc-brevo-wp .sib-alert-message.success {
  background: #e8f8f4; color: #067060; border: 1px solid #b9e2da;
}
.pc-brevo-wp .sib-form-message-panel.error,
.pc-brevo-wp .sib-alert-message.error {
  background: #ffeded; color: #661d1d; border: 1px solid #f3b9b9;
}

/* Nettoyage de styles inline du plugin */
.pc-brevo-wp [style] { /* on neutralise certaines largeurs inline envahissantes */
  max-width: 100% !important;
}

/* ✅ Corrige le chevauchement du drapeau et du numéro (Brevo) */
.pc-brevo-wp .sib-sms-field {
  position: relative;
}

.pc-brevo-wp .sib-sms-field .sib-country-block {
  /* position: relative; */
  z-index: 2;
}

.pc-brevo-wp .sib-sms-field .sib-sms {
  padding-left: 60px !important; /* espace pour le drapeau */
  position: relative;
  z-index: 1;
}

.pc-brevo-wp input[type="radio"] {
  margin-right:10px;
}

/* ===== Grille formulaire Brevo */
.pc-brevo-wp form{
  display:grid;
  grid-template-columns: 1fr;   /* mobile: 1 colonne */
  gap: 14px;
}

/* Desktop: 2 colonnes – email large, téléphone plus étroit */
@media (min-width: 720px){
  .pc-brevo-wp form{
    grid-template-columns: 1fr 0.7fr; /* ajuste 0.6–0.8 selon ton goût */
    align-items: start;
  }
  /* place les champs sur la 1re ligne */
  .pc-brevo-wp .sib-email-area{ grid-column: 1 / 2; }
  .pc-brevo-wp .sib-SMS-area { grid-column: 2 / 3; }

  /* les blocs suivants prennent toute la largeur */
  .pc-brevo-wp .sib-TYPE_DE_PARTICIPATION-area,
  .pc-brevo-wp .sib-optin-area,
  .pc-brevo-wp .sib-form-message-panel,
  .pc-brevo-wp .sib-form-block__button{
    grid-column: 1 / -1;
  }
}

/* ---- Champ téléphone: largeur maîtrisée & alignement propre ---- */
.pc-brevo-wp .sib-sms-field{
  display:flex; align-items:center; gap:8px;
}
.pc-brevo-wp .sib-sms-field .sib-country-block{ flex:0 0 auto; }
.pc-brevo-wp .sib-sms-field .sib-sms{
  flex:1 1 auto;
  width:100%;
  display:block;
  padding-left: 60px !important; /* garde l’espace pour le drapeau si Brevo l’overlay */
}

/* Inputs harmonisés */
.pc-brevo-wp input[type="email"],
.pc-brevo-wp input[type="text"],
.pc-brevo-wp input[type="tel"],
.pc-brevo-wp .sib-sms{
  padding:12px 14px;
  border:1px solid var(--pc-border);
  border-radius:10px;
  background:#f8fafb;
  font:inherit;
}
.pc-brevo-wp input:focus,
.pc-brevo-wp .sib-sms:focus{
  outline:none; border-color: var(--pc-c2);
  box-shadow:0 0 0 3px rgba(0,161,154,.12);
}

/* Radios (on garde ton espacement précédent) */
.pc-brevo-wp .sib-TYPE_DE_PARTICIPATION-area > div{
  display:flex !important; align-items:center; gap:10px; line-height:1.4;
}
.pc-brevo-wp .sib-TYPE_DE_PARTICIPATION-area > div + div{ margin-top:6px; }


/* Style global pour Contact Form 7 */
.wpcf7-form p {
  margin-bottom: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: #f8fafb;
  font: inherit;
}

.wpcf7-form textarea {
  min-height: 120px;
}

.wpcf7-form input[type="submit"] {
  background: var(--pc-c4); /* rose Poitiers Collectif */
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background: #c92e65;
}

.wpcf7-form label {
  font-weight: 700;
}