/**
 * actualites.css — Styles Platero · pages Actualités
 *
 * Aligné sur le design system de front-page.php :
 *   Tokens  : --p-navy #0a2464 · --p-blue #1a4fa8 · --p-green #3ecf8e
 *             --p-bg #f4f7fe · --p-border #dce6f7 · --p-text #1c2340
 *             --p-muted #5c6a8a · --p-white #ffffff
 *   Shadows : --p-sh 0 2px 20px rgba(10,36,100,.08)
 *             --p-shh 0 8px 40px rgba(10,36,100,.16)
 *   Font    : system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif
 *   Radius  : 12px (cards) · 8px (boutons) · 50px (pills)
 *
 * @package Platero
 */

/* ── Tokens locaux (fallback si hors front-page) ──────── */
.platero-actu-wrapper,
.platero-single-wrapper {
  --p-navy:   #0a2464;
  --p-blue:   #1a4fa8;
  --p-light:  #2d6de8;
  --p-green:  #3ecf8e;
  --p-green2: #2ab87a;
  --p-bg:     #f4f7fe;
  --p-border: #dce6f7;
  --p-text:   #1c2340;
  --p-muted:  #5c6a8a;
  --p-white:  #ffffff;
  --p-w:      min(1160px, 92vw);
  --p-r:      12px;
  --p-sh:     0 2px 20px rgba(10,36,100,.08);
  --p-shh:    0 8px 40px rgba(10,36,100,.16);
  --p-font:   system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Flex item pleine largeur (direct child de #content.site-content { display:flex }) ── */
.platero-actu-wrapper,
.platero-single-wrapper {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

/* ── Reset minimal ────────────────────────────────────── */
.platero-actu-wrapper *,
.platero-single-wrapper * { box-sizing: border-box; }
.platero-actu-wrapper a,
.platero-single-wrapper a { text-decoration: none; }


/* ═══════════════════════════════════════════════════════
   UTILITAIRES PARTAGÉS
═══════════════════════════════════════════════════════ */

.actu-badge {
  display: inline-block;
  background: rgba(62,207,142,.15);
  color: var(--p-green, #3ecf8e);
  border: 1px solid rgba(62,207,142,.35);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  line-height: 1.5;
  font-family: var(--p-font);
}
.actu-badge--sm { font-size: .66rem; padding: 3px 10px; }

.actu-meta-sep { color: var(--p-border, #dce6f7); margin: 0 4px; }

.actu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--p-navy, #0a2464);
  color: #fff !important;
  font-size: .93rem;
  font-weight: 700;
  font-family: var(--p-font);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(10,36,100,.22);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.actu-btn:hover {
  background: var(--p-blue, #1a4fa8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,36,100,.28);
  color: #fff !important;
}


/* ═══════════════════════════════════════════════════════
   FULL WIDTH — #page passe en 100 % pour le hero pleine largeur
   (sans toucher aux paddings/marges des éléments enfants)
═══════════════════════════════════════════════════════ */




/* Sidebar masquée */
body.single .widget-area { display: none !important; }


/* ═══════════════════════════════════════════════════════
   ARCHIVE — HERO
═══════════════════════════════════════════════════════ */

.platero-actu-wrapper {
  background: var(--p-bg, #f4f7fe);
  min-height: 60vh;
  font-family: var(--p-font);
}

.actu-hero {
  background: linear-gradient(135deg, #07183f 0%, #0f2d6e 40%, #1a4fa8 100%);
  padding: 64px 24px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;

}
.actu-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(62,207,142,.10), transparent);
  pointer-events: none;
}
.actu-hero__inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
}
.actu-hero .actu-badge { margin-bottom: 20px; }

.actu-hero__title {
  font-family: var(--p-font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px; color: #fff;
}
.actu-hero__title em { color: var(--p-green, #3ecf8e); font-style: normal; }

.actu-hero__sub {
  font-size: clamp(.95rem, 2vw, 1.08rem);
  color: rgba(255,255,255,.78); margin: 0; line-height: 1.65;
}

.actu-container {
  max-width: var(--p-w, min(1160px, 92vw));
  margin: 0 auto;
  padding: 52px 24px 72px;
}


/* ═══════════════════════════════════════════════════════
   ARTICLE VEDETTE
═══════════════════════════════════════════════════════ */

.actu-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--p-white, #fff);
  border: 1.5px solid var(--p-border, #dce6f7);
  border-radius: var(--p-r, 12px);
  overflow: hidden;
  box-shadow: var(--p-sh);
  margin-bottom: 44px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.actu-featured:hover {
  box-shadow: var(--p-shh); transform: translateY(-3px); border-color: #b0c8f0;
}

.actu-featured__img-wrap {
  display: block; overflow: hidden;
  background: linear-gradient(135deg, #07183f, #1a4fa8);
  min-height: 280px; text-decoration: none !important;
}
.actu-featured__img-wrap--placeholder {
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.actu-featured__img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s;
}
.actu-featured:hover .actu-featured__img { transform: scale(1.03); }

.actu-featured__body {
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.actu-featured__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: .82rem; color: var(--p-muted, #5c6a8a); font-family: var(--p-font);
}
.actu-featured__title {
  font-family: var(--p-font);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -.01em; margin: 0;
}
.actu-featured__title a { color: var(--p-text, #1c2340); text-decoration: none !important; transition: color .2s; }
.actu-featured__title a:hover { color: var(--p-blue, #1a4fa8); }

.actu-featured__excerpt {
  color: var(--p-muted, #5c6a8a); font-size: .97rem; line-height: 1.67; margin: 0;
  font-family: var(--p-font);
}


/* ═══════════════════════════════════════════════════════
   GRILLE DE CARDS
═══════════════════════════════════════════════════════ */

.actu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 48px;
}
.actu-grid--3 { grid-template-columns: repeat(3, 1fr); }

.actu-card {
  background: var(--p-white, #fff);
  border: 1.5px solid var(--p-border, #dce6f7);
  border-radius: var(--p-r, 12px);
  overflow: hidden;
  box-shadow: var(--p-sh);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  font-family: var(--p-font);
}
.actu-card:hover { box-shadow: var(--p-shh); transform: translateY(-4px); border-color: #b0c8f0; }

.actu-card__img-wrap {
  display: block; overflow: hidden;
  background: linear-gradient(135deg, #07183f, #1a4fa8);
  aspect-ratio: 16/9;
}
.actu-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.actu-card:hover .actu-card__img { transform: scale(1.04); }
.actu-card__img--placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 2.5rem; min-height: 120px;
}

.actu-card__body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.actu-card__meta { display: flex; align-items: center; font-size: .74rem; color: var(--p-muted, #5c6a8a); }
.actu-card__title {
  font-family: var(--p-font); font-size: .97rem; font-weight: 700;
  line-height: 1.35; margin: 0; color: var(--p-text, #1c2340);
}
.actu-card__title a { color: inherit; text-decoration: none !important; transition: color .2s; }
.actu-card__title a:hover { color: var(--p-blue, #1a4fa8); }

.actu-card__excerpt {
  font-size: .87rem; color: var(--p-muted, #5c6a8a);
  line-height: 1.58; margin: 0; flex: 1;
}
.actu-card__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .86rem; font-weight: 600;
  color: var(--p-blue, #1a4fa8) !important;
  text-decoration: none !important; margin-top: auto; transition: color .2s;
}
.actu-card__link:hover { color: var(--p-navy, #0a2464) !important; }


/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */

.actu-pagination .nav-links {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; padding: 0;
}
.actu-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 8px; font-size: .9rem; font-weight: 500;
  text-decoration: none !important;
  background: var(--p-white, #fff);
  color: var(--p-text, #1c2340) !important;
  border: 1.5px solid var(--p-border, #dce6f7);
  transition: background .15s, color .15s, border-color .15s;
  font-family: var(--p-font);
}
.actu-pagination .page-numbers.current,
.actu-pagination .page-numbers:hover {
  background: var(--p-navy, #0a2464); color: #fff !important;
  border-color: var(--p-navy, #0a2464);
}

.actu-empty {
  text-align: center; color: var(--p-muted, #5c6a8a);
  font-size: 1.1rem; padding: 48px 0; font-family: var(--p-font);
}


/* ═══════════════════════════════════════════════════════
   SINGLE — HERO
═══════════════════════════════════════════════════════ */

.platero-single-wrapper {
  background: var(--p-bg, #f4f7fe); font-family: var(--p-font);
}

.single-hero {
  position: relative; padding: 64px 24px 56px;
  text-align: center; overflow: hidden;

}
.single-hero--has-img {
  color: #fff; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
}
.single-hero--no-img {
  background: linear-gradient(135deg, #07183f 0%, #0f2d6e 40%, #1a4fa8 100%);
  color: #fff;
}
.single-hero--no-img::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(62,207,142,.10), transparent);
  pointer-events: none;
}
.single-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.single-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,24,63,.60) 0%, rgba(7,24,63,.85) 100%);
  z-index: 1;
}
.single-hero__inner {
  position: relative; z-index: 2;
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.single-breadcrumb {
  font-size: .78rem; font-family: var(--p-font);
  color: rgba(255,255,255,.68);
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.single-breadcrumb a { color: rgba(255,255,255,.82) !important; text-decoration: none !important; transition: color .15s; }
.single-breadcrumb a:hover { color: var(--p-green, #3ecf8e) !important; }
.single-breadcrumb .current {
  color: rgba(255,255,255,.48); max-width: 320px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.single-hero__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: center; gap: 4px;
  font-size: .83rem; color: rgba(255,255,255,.78); font-family: var(--p-font);
}

.single-hero__title {
  font-family: var(--p-font);
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  font-weight: 900; line-height: 1.18;
  letter-spacing: -.02em; color: #fff; margin: 0; max-width: 740px;
}
.single-hero__excerpt {
  font-size: 1.05rem; color: rgba(255,255,255,.78);
  line-height: 1.65; margin: 0; max-width: 640px; font-family: var(--p-font);
}


/* ═══════════════════════════════════════════════════════
   SINGLE — CORPS
═══════════════════════════════════════════════════════ */

.single-body {
  max-width: 800px; margin: 0 auto; padding: 48px 24px;
}
.single-article {
  background: var(--p-white, #fff);
  border: 1.5px solid var(--p-border, #dce6f7);
  border-radius: var(--p-r, 12px);
  padding: 52px 56px;
  box-shadow: var(--p-sh);
}
.single-article .entry-title,
.single-article h1.entry-title { display: none !important; }

.single-article__content {
  font-size: 1.04rem; line-height: 1.8;
  color: var(--p-text, #1c2340); font-family: var(--p-font);
}
.single-article__content h2 {
  font-family: var(--p-font); font-size: 1.5rem; font-weight: 800;
  margin: 2.2em 0 .65em; color: var(--p-navy, #0a2464);
  border-bottom: 2px solid var(--p-border, #dce6f7);
  padding-bottom: .4em; letter-spacing: -.01em;
}
.single-article__content h3 {
  font-family: var(--p-font); font-size: 1.18rem; font-weight: 700;
  margin: 1.7em 0 .5em; color: var(--p-navy, #0a2464);
}
.single-article__content p { margin-bottom: 1.4em; }
.single-article__content a {
  color: var(--p-blue, #1a4fa8); text-decoration: underline; text-underline-offset: 3px;
}
.single-article__content a:hover { color: var(--p-navy, #0a2464); }

.single-article__content blockquote {
  border-left: 4px solid var(--p-green, #3ecf8e);
  background: rgba(62,207,142,.07);
  margin: 1.8em 0; padding: 18px 26px;
  border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--p-muted, #5c6a8a);
}
.single-article__content table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: .93rem; border-radius: var(--p-r);
  overflow: hidden; box-shadow: var(--p-sh);
}
.single-article__content th {
  background: var(--p-navy, #0a2464); color: #fff;
  padding: 12px 16px; text-align: left;
  font-weight: 700; font-size: .88rem; letter-spacing: .03em;
}
.single-article__content td {
  padding: 10px 16px; border-bottom: 1px solid var(--p-border, #dce6f7);
  color: var(--p-text, #1c2340);
}
.single-article__content tr:nth-child(even) td { background: var(--p-bg, #f4f7fe); }

/* Navigation inter-articles */
.single-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 44px; padding-top: 32px;
  border-top: 1.5px solid var(--p-border, #dce6f7);
}
.single-post-nav__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: var(--p-r, 12px);
  background: var(--p-bg, #f4f7fe);
  border: 1.5px solid var(--p-border, #dce6f7);
  text-decoration: none !important;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.single-post-nav__item--next { text-align: right; }
.single-post-nav__item:hover {
  background: var(--p-white, #fff); border-color: #b0c8f0; box-shadow: var(--p-sh);
}
.single-post-nav__dir {
  font-size: .74rem; font-weight: 700; color: var(--p-green, #3ecf8e);
  text-transform: uppercase; letter-spacing: .07em;
}
.single-post-nav__title {
  font-size: .9rem; font-weight: 600; color: var(--p-text, #1c2340); line-height: 1.35;
}


/* ═══════════════════════════════════════════════════════
   SINGLE — À LIRE AUSSI
═══════════════════════════════════════════════════════ */

.single-related {
  background: var(--p-white, #fff);
  border-top: 1.5px solid var(--p-border, #dce6f7);
  padding: 60px 24px;
}
.single-related__inner {
  max-width: var(--p-w, min(1160px, 92vw)); margin: 0 auto;
}
.single-related__head { text-align: center; margin-bottom: 40px; }

.single-related__badge {
  display: inline-block;
  background: rgba(62,207,142,.12);
  color: var(--p-green, #3ecf8e);
  border: 1px solid rgba(62,207,142,.3);
  border-radius: 50px; padding: 5px 16px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px; font-family: var(--p-font);
  display: block; width: fit-content; margin-left: auto; margin-right: auto;
}
.single-related__title {
  font-family: var(--p-font);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; letter-spacing: -.015em;
  color: var(--p-navy, #0a2464); margin: 0;
}


/* ═══════════════════════════════════════════════════════
   SINGLE — RETOUR
═══════════════════════════════════════════════════════ */

.single-back {
  text-align: center; padding: 32px 24px 56px;
  background: var(--p-bg, #f4f7fe);
}
.single-back__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 700; font-family: var(--p-font);
  color: var(--p-blue, #1a4fa8) !important;
  text-decoration: none !important; transition: color .15s;
}
.single-back__link:hover { color: var(--p-navy, #0a2464) !important; }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .actu-grid, .actu-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .actu-featured { grid-template-columns: 1fr; }
  .actu-featured__img-wrap { min-height: 220px; }
  .actu-featured__body { padding: 28px 24px; }
  .actu-grid, .actu-grid--3 { grid-template-columns: 1fr; }
  .single-article { padding: 32px 24px; }
  .single-post-nav { grid-template-columns: 1fr; }
  .single-post-nav__item--next { text-align: left; }
  .single-hero__title { font-size: 1.55rem; }
  .single-hero { padding: 44px 20px 40px; }
  .single-related__title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .actu-hero { padding: 44px 16px 36px; }
  .actu-container { padding: 36px 16px 52px; }
  .single-body { padding: 28px 16px; }
  .single-related { padding: 40px 16px; }
}
