/*
 Theme Name:  GeneratePress Child
 Theme URI:   https://pointlocal.fr
 Description: Thème enfant GeneratePress pour Point Local — magazine d'actualité locale
 Author:      Point Local
 Template:    generatepress
 Version:     1.0.0
 Text Domain: generatepress-child
*/

/* =====================================================================
   VARIABLES — Palette Point Local (§design-contract.md)
   ===================================================================== */
:root {
  --pl-navy:       #0F2343;
  --pl-coral:      #F25C3D;
  --pl-blue:       #1E63D6;
  --pl-green:      #4E9B57;
  --pl-orange:     #F59A23;
  --pl-purple:     #9B59D0;
  --pl-text:       #0F2343;
  --pl-text-soft:  #5B6B82;
  --pl-bg:         #FFFFFF;
  --pl-bg-soft:    #F6FAFF;
  --pl-bg-sky:     #EAF4FF;
  --pl-border:     #DCE6F2;
  --pl-overlay:    rgba(15,35,67,.55);
  --pl-maxw:       1200px;
  --pl-radius:     12px;
  --pl-header-h:   64px;

  /* Couleurs badge par catégorie */
  --pl-c-actu:       #F25C3D;
  --pl-c-entreprise: #4E9B57;
  --pl-c-lifestyle:  #9B59D0;
  --pl-c-pratique:   #F59A23;
  --pl-c-services:   #1E63D6;
  --pl-c-tourisme:   #0F2343;
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body.pl-theme {
  font-family: 'Inter', sans-serif !important;
  color: var(--pl-text) !important;
  background: var(--pl-bg) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Écraser fond GP */
.site-content,
.inside-article,
#page,
.site-main {
  background: transparent !important;
}

/* =====================================================================
   SITE HEADER
   ===================================================================== */
.pl-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pl-bg) !important;
  border-bottom: 1px solid var(--pl-border);
  height: var(--pl-header-h);
  box-shadow: 0 1px 4px rgba(15,35,67,.07);
}

.pl-header-inner {
  max-width: var(--pl-maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
}

/* Logo */
.pl-logo {
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1.1;
}
.pl-logo-text {
  font-family: 'Plus Jakarta Sans', 'Sora', 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--pl-navy) !important;
  letter-spacing: -.3px;
}
.pl-logo-text .pl-dot {
  color: var(--pl-coral);
}
.pl-logo-tagline {
  font-size: 10px;
  color: var(--pl-text-soft);
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* Nav principale — centrée */
.pl-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pl-nav-link {
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--pl-navy) !important;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.pl-nav-link:hover,
.pl-nav-link.is-active {
  background: var(--pl-bg-sky) !important;
  color: var(--pl-blue) !important;
}
.pl-nav-link.is-active {
  font-weight: 600;
}

/* Actions droite */
.pl-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Bouton recherche */
.pl-search-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--pl-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  transition: background .15s;
}
.pl-search-btn:hover { background: var(--pl-bg-sky) !important; }
.pl-search-btn svg { flex-shrink: 0; }

/* CTA "Découvrir" */
.pl-btn-discover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pl-coral) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: opacity .15s;
  white-space: nowrap;
}
.pl-btn-discover:hover { opacity: .88; }

/* Burger — masqué sur desktop */
.pl-burger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 4px !important;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-left: auto;
}
.pl-burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--pl-navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.pl-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pl-burger.open span:nth-child(2) { opacity: 0; }
.pl-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.pl-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15,35,67,.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.pl-search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.pl-search-form {
  display: flex;
  gap: 0;
  width: min(600px, 90vw);
  position: relative;
}
.pl-search-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
}
.pl-search-submit {
  background: var(--pl-coral);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
.pl-search-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* Nav mobile */
.pl-mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--pl-header-h);
  left: 0;
  right: 0;
  background: var(--pl-bg);
  border-bottom: 2px solid var(--pl-border);
  z-index: 999;
  padding: 12px 20px 16px;
  box-shadow: 0 4px 12px rgba(15,35,67,.12);
}
.pl-mobile-nav.open { display: flex; }
.pl-mobile-nav a {
  text-decoration: none !important;
  color: var(--pl-navy) !important;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--pl-border);
}
.pl-mobile-nav a:last-child { border-bottom: none; }
.pl-mobile-nav a.is-active { color: var(--pl-blue) !important; font-weight: 600; }

/* Admin bar offset */
.admin-bar .pl-site-header { top: 32px; }
.admin-bar .pl-mobile-nav  { top: calc(var(--pl-header-h) + 32px); }

/* =====================================================================
   FRONT-PAGE — HERO
   ===================================================================== */
.pl-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: var(--pl-navy);
  overflow: hidden;
}

.pl-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.pl-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--pl-overlay);
  z-index: 1;
}

.pl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--pl-maxw);
  margin: 0 auto;
  padding: 60px 20px 56px;
}

.pl-hero-badge {
  display: inline-block;
  background: var(--pl-coral);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none !important;
  margin-bottom: 16px;
}

.pl-hero-title {
  font-family: 'Plus Jakarta Sans', 'Sora', 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  color: #fff !important;
  line-height: 1.18;
  margin: 0 0 16px;
  max-width: 620px;
}
.pl-hero-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.pl-hero-excerpt {
  color: rgba(255,255,255,.88) !important;
  font-size: 16px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 0 24px;
}

.pl-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pl-coral) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 8px;
  transition: opacity .15s;
}
.pl-btn-read:hover { opacity: .88; }

/* =====================================================================
   EYEBROW / BADGE catégorie
   ===================================================================== */
.pl-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 3px 9px;
  border-radius: 4px;
  text-decoration: none !important;
  line-height: 1.4;
}

/* couleurs par slug catégorie */
.pl-eyebrow--actu      { background: #FEE9E4; color: var(--pl-coral) !important; }
.pl-eyebrow--entreprise{ background: #E8F5EB; color: var(--pl-green) !important; }
.pl-eyebrow--lifestyle { background: #F3ECFC; color: var(--pl-purple) !important; }
.pl-eyebrow--pratique  { background: #FEF4E6; color: var(--pl-orange) !important; }
.pl-eyebrow--services  { background: #E7F0FD; color: var(--pl-blue) !important; }
.pl-eyebrow--tourisme  { background: #E3EBF5; color: var(--pl-navy) !important; }
/* fallback */
.pl-eyebrow--default   { background: #EAF4FF; color: var(--pl-blue) !important; }

/* =====================================================================
   CONTAINERS & SECTIONS
   ===================================================================== */
.pl-container {
  max-width: var(--pl-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.pl-section {
  padding: 52px 0;
}
.pl-section--soft {
  background: var(--pl-bg-soft) !important;
}
.pl-section--sky {
  background: var(--pl-bg-sky) !important;
}

/* En-tête de section */
.pl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.pl-section-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--pl-coral);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-right: 8px;
}

.pl-section-title {
  font-family: 'Plus Jakarta Sans', 'Sora', 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--pl-navy) !important;
  margin: 0;
}
.pl-section-title .pl-section-num { font-size: 14px; }

.pl-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--pl-blue) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.pl-see-all:hover { text-decoration: underline !important; }

/* =====================================================================
   GRILLE 4 CARDS
   ===================================================================== */
.pl-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card article */
.pl-card {
  background: var(--pl-bg);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.pl-card:hover {
  box-shadow: 0 6px 20px rgba(15,35,67,.1);
  transform: translateY(-2px);
}

.pl-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pl-navy) 0%, var(--pl-blue) 100%);
  display: block;
  text-decoration: none !important;
}
.pl-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.pl-card:hover .pl-card-thumb-wrap img { transform: scale(1.04); }

.pl-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pl-card-title {
  font-family: 'Plus Jakarta Sans', 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: var(--pl-navy) !important;
  margin: 0;
}
.pl-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}
.pl-card-title a:hover { color: var(--pl-blue) !important; }

.pl-card-meta {
  font-size: 12px;
  color: var(--pl-text-soft) !important;
  margin-top: auto;
}

/* =====================================================================
   SECTION ACTUALITÉS LOCALES — 4 cards + sidebar CTA
   ===================================================================== */
.pl-actu-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

/* CTA encart "Restez informé" */
.pl-newsletter-cta {
  background: var(--pl-navy);
  border-radius: var(--pl-radius);
  padding: 28px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pl-newsletter-cta__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-newsletter-cta__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff !important;
  margin: 0;
}
.pl-newsletter-cta__desc {
  font-size: 13px;
  color: rgba(255,255,255,.75) !important;
  margin: 0;
  line-height: 1.55;
}
.pl-newsletter-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pl-coral) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 7px;
  transition: opacity .15s;
}
.pl-newsletter-cta__btn:hover { opacity: .85; }

/* =====================================================================
   SECTION CATÉGORIE — grille + sidebar "Soutien local"
   ===================================================================== */
.pl-cat-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: start;
}

.pl-cat-sidebar {
  background: var(--pl-bg-sky);
  border-radius: var(--pl-radius);
  padding: 22px 20px;
  border: 1px solid var(--pl-border);
}
.pl-cat-sidebar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--pl-green) !important;
  margin: 0 0 6px;
}
.pl-cat-sidebar__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--pl-navy) !important;
  margin: 0 0 8px;
}
.pl-cat-sidebar__desc {
  font-size: 12px;
  color: var(--pl-text-soft) !important;
  line-height: 1.55;
  margin: 0 0 14px;
}
.pl-cat-sidebar__btn {
  display: block;
  text-align: center;
  background: var(--pl-green) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 7px;
  transition: opacity .15s;
}
.pl-cat-sidebar__btn:hover { opacity: .85; }

/* =====================================================================
   SECTION GUIDES PRATIQUES — rangée d'icônes
   ===================================================================== */
.pl-icons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pl-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--pl-bg);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  text-decoration: none !important;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.pl-icon-item:hover {
  box-shadow: 0 4px 14px rgba(15,35,67,.09);
  transform: translateY(-2px);
}
.pl-icon-item__icon {
  width: 44px;
  height: 44px;
  background: var(--pl-bg-sky);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl-orange);
}
.pl-icon-item__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-navy) !important;
  line-height: 1.3;
}
.pl-icon-item__count {
  font-size: 11px;
  color: var(--pl-text-soft) !important;
}

/* =====================================================================
   SECTION SERVICES — rangée d'icônes (bleu)
   ===================================================================== */
.pl-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pl-service-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  background: var(--pl-bg);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  text-decoration: none !important;
  transition: box-shadow .2s;
}
.pl-service-card:hover { box-shadow: 0 4px 14px rgba(15,35,67,.09); }
.pl-service-card__icon {
  width: 40px;
  height: 40px;
  background: #E7F0FD;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl-blue);
  flex-shrink: 0;
}
.pl-service-card__body {}
.pl-service-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pl-navy) !important;
  margin: 0 0 2px;
}
.pl-service-card__desc {
  font-size: 11px;
  color: var(--pl-text-soft) !important;
  margin: 0;
  line-height: 1.4;
}

/* =====================================================================
   SECTION TOURISME — avec sidebar "Partagez"
   ===================================================================== */
.pl-tourisme-sidebar {
  background: linear-gradient(145deg, var(--pl-blue), #1553b3);
  border-radius: var(--pl-radius);
  padding: 24px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pl-tourisme-sidebar__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff !important;
  margin: 0;
}
.pl-tourisme-sidebar__desc {
  font-size: 12px;
  color: rgba(255,255,255,.8) !important;
  margin: 0;
  line-height: 1.5;
}
.pl-tourisme-sidebar__btn {
  display: block;
  text-align: center;
  background: #fff !important;
  color: var(--pl-blue) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 7px;
  transition: opacity .15s;
}
.pl-tourisme-sidebar__btn:hover { opacity: .9; }

/* =====================================================================
   SECTION SEO TEXT
   ===================================================================== */
.pl-seo-text {
  background: var(--pl-bg-soft) !important;
  padding: 52px 0;
  border-top: 1px solid var(--pl-border);
}
.pl-seo-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}
.pl-seo-inner h2 {
  font-family: 'Plus Jakarta Sans', 'Sora', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--pl-navy) !important;
  margin: 0 0 20px;
}
.pl-seo-inner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pl-text-soft) !important;
  margin: 0 0 14px;
}
.pl-seo-inner a {
  color: var(--pl-blue) !important;
  text-decoration: underline;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.pl-footer {
  background: var(--pl-navy) !important;
  color: rgba(255,255,255,.82);
}

.pl-footer-top {
  max-width: var(--pl-maxw);
  margin: 0 auto;
  padding: 52px 20px 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Colonne brand */
.pl-footer-brand {}
.pl-footer-logo {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.pl-footer-logo .pl-dot { color: var(--pl-coral); }
.pl-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.65) !important;
  margin: 0 0 20px;
  max-width: 280px;
}

/* RS footer */
.pl-footer-rs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  gap: 12px;
}
.pl-footer-rs li { margin: 0 !important; }
.pl-footer-rs a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 7px;
  color: rgba(255,255,255,.75) !important;
  transition: background .15s;
  text-decoration: none !important;
}
.pl-footer-rs a:hover { background: rgba(255,255,255,.2); }

/* Colonnes footer */
.pl-footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff !important;
  margin: 0 0 16px;
}
.pl-footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pl-footer-col ul li { margin: 0 !important; }
.pl-footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,.65) !important;
  text-decoration: none !important;
  transition: color .15s;
}
.pl-footer-col ul a:hover { color: #fff !important; }

/* Bottom bar */
.pl-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--pl-maxw);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.pl-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.45) !important;
  margin: 0 !important;
}
.pl-footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.pl-footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,.45) !important;
  text-decoration: none !important;
}
.pl-footer-legal a:hover { color: rgba(255,255,255,.75) !important; }

/* Écraser GP footer */
.generate-footer,
#footer-widgets,
.footer-bar,
#footer-bar {
  display: none !important;
}

/* =====================================================================
   ARTICLE SINGLE — fix puces + tableaux (design-contract.md §ARTICLES)
   ===================================================================== */
.entry-content ul {
  list-style: disc outside !important;
  padding-left: 1.4em !important;
}
.entry-content ol {
  list-style: decimal outside !important;
  padding-left: 1.4em !important;
}
.entry-content li {
  margin: .4em 0 !important;
}
/* Anti-marker UNIQUEMENT sur pagination */
.pl-pagination li::marker,
ul.page-numbers li::marker {
  content: none !important;
}
/* Tableaux mobiles */
.entry-content table {
  margin: 14px 0 !important;
  width: 100%;
  border-collapse: collapse;
}
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablette */
@media (max-width: 1024px) {
  .pl-grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pl-actu-layout {
    grid-template-columns: 1fr;
  }
  .pl-cat-layout {
    grid-template-columns: 1fr;
  }
  .pl-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .pl-icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pl-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .pl-nav { display: none !important; }
  .pl-btn-discover { display: none !important; }
  .pl-burger { display: flex !important; }

  .pl-header-inner {
    gap: 0;
  }
  /* Logo max-width pour ne pas déborder sur le burger */
  .pl-logo {
    max-width: calc(100% - 100px);
  }
  .pl-header-actions {
    margin-left: auto;
  }

  .pl-grid4 {
    grid-template-columns: 1fr;
  }
  .pl-hero-inner {
    padding: 40px 16px 36px;
  }
  .pl-hero-title {
    font-size: 24px;
  }
  .pl-footer-top {
    grid-template-columns: 1fr;
    padding: 36px 20px 28px;
    gap: 28px;
  }
  .pl-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .pl-icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pl-services-grid {
    grid-template-columns: 1fr;
  }
  .pl-section {
    padding: 36px 0;
  }
}

/* Très petit */
@media (max-width: 480px) {
  .pl-grid4 { grid-template-columns: 1fr; }
  .pl-icons-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   UTILITAIRES
   ===================================================================== */
.pl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Tableaux contenu : suppression des marges top/bottom (retour Mathieu 15/06/2026) =====
   Sélecteur boosté :not(#z) (spécificité ID) pour battre les règles inline .xx-single-main .entry-content table */
.entry-content table:not(#z),
.entry-content .solutions-table:not(#z),
.entry-content .custom-table:not(#z){ margin:0 !important; }
.entry-content figure.wp-block-table:not(#z),
.entry-content .wp-block-table:not(#z),
.entry-content div[class*="table-wrap"]:not(#z){ margin:0 0 .6em !important; }


/* ===== Reset padding GeneratePress separate-containers (Mathieu 15/06 — gros padding 30px parasite) ===== */
.separate-containers .inside-article:not(#z),
.one-container .site-content:not(#z),
.inside-page-header:not(#z),
.separate-containers .paging-navigation:not(#z),
.separate-containers .comments-area:not(#z){ padding:0 !important; }
