/* =========================================================
   RACINE CHILD - PAGE NOUVELLES
   Version 1.0.3
   ========================================================= */

body.page-slug-nouvelles,
body.blog {
  --news-navy: #113f59;
  --news-blue: #1e6787;
  --news-sky: #eaf6fb;
  --news-green: #65ad46;
  --news-ink: #173042;
  --news-muted: #647784;
  --news-line: #dbe6eb;
  --news-bg: #f6f9fa;
  --news-white: #fff;
  overflow-x: hidden;
}

body.page-slug-nouvelles .site-main,
body.blog .site-main,
body.page-slug-nouvelles #primary,
body.blog #primary,
body.page-slug-nouvelles .content-area,
body.blog .content-area {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.racine-news-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 330px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.12) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.07) 0 165px, transparent 166px),
    linear-gradient(120deg, #103e57 0%, #174f6d 48%, #2c7d9c 100%);
  color: #fff;
  overflow: hidden;
}

.racine-news-hero::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -45px;
  height: 90px;
  background: var(--news-bg);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
}

.racine-news-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 92px;
}

.racine-news-eyebrow,
.racine-news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.racine-news-eyebrow {
  color: #d7f0fb;
}

.racine-news-eyebrow::before,
.racine-news-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--news-green);
}

.racine-news-hero h1 {
  margin: 14px 0 14px;
  color: #fff;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -.035em;
}

.racine-news-hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: rgba(255,255,255,.9);
}

.racine-news-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--news-bg);
  padding: 54px 24px 86px;
}

.racine-news-tools,
.racine-news-grid,
.racine-news-pagination,
.racine-news-empty {
  width: min(1240px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.racine-news-tools {
  margin-bottom: 34px;
}

.racine-news-tools__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.racine-news-kicker {
  color: var(--news-blue);
}

.racine-news-tools__head h2 {
  margin: 8px 0 0;
  color: var(--news-ink);
  font-size: clamp(29px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.racine-news-tools__head > p {
  margin: 0 0 6px;
  color: var(--news-muted);
  font-weight: 650;
  white-space: nowrap;
}

.racine-news-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, .8fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--news-line);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17,63,89,.06);
}

.racine-news-filter label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.racine-news-filter label > span {
  color: var(--news-ink);
  font-size: 13px;
  font-weight: 750;
}

.racine-news-filter input,
.racine-news-filter select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #ccdce4;
  border-radius: 12px;
  background: #fff;
  color: var(--news-ink);
  font: inherit;
  box-shadow: none;
}

.racine-news-filter input:focus,
.racine-news-filter select:focus {
  outline: 3px solid rgba(30,103,135,.15);
  border-color: var(--news-blue);
}

.racine-news-filter button,
.racine-news-reset {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  white-space: nowrap;
}

.racine-news-filter button {
  border: 1px solid var(--news-navy);
  background: var(--news-navy);
  color: #fff;
  cursor: pointer;
}

.racine-news-filter button:hover {
  background: var(--news-blue);
  border-color: var(--news-blue);
}

.racine-news-reset {
  border: 1px solid var(--news-line);
  background: #fff;
  color: var(--news-blue);
}

.racine-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.racine-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--news-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(17,63,89,.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.racine-news-card:hover {
  transform: translateY(-4px);
  border-color: #bfd3dd;
  box-shadow: 0 18px 44px rgba(17,63,89,.13);
}

.racine-news-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfeef3;
}

.racine-news-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform .35s ease;
}

.racine-news-card:hover .racine-news-card__media img {
  transform: scale(1.035);
}

.racine-news-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dff1f7, #eef7ef);
}

.racine-news-card__placeholder span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--news-navy);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}

.racine-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.racine-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 11px;
  color: var(--news-muted);
  font-size: 13px;
  font-weight: 650;
}

.racine-news-card__meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--news-sky);
  color: var(--news-blue);
}

.racine-news-card h3 {
  margin: 0 0 12px;
  color: var(--news-ink);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.23;
  letter-spacing: -.015em;
}

.racine-news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.racine-news-card__body > p {
  margin: 0 0 20px;
  color: var(--news-muted);
  line-height: 1.65;
}

.racine-news-card__link {
  margin-top: auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--news-blue);
  font-weight: 800;
  text-decoration: none;
}

.racine-news-card__link span {
  transition: transform .2s ease;
}

.racine-news-card__link:hover span {
  transform: translateX(4px);
}

.racine-news-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.racine-news-pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--news-line);
  border-radius: 10px;
  background: #fff;
  color: var(--news-ink);
  text-decoration: none;
  font-weight: 700;
}

.racine-news-pagination .page-numbers.current,
.racine-news-pagination .page-numbers:hover {
  background: var(--news-navy);
  border-color: var(--news-navy);
  color: #fff;
}

.racine-news-empty {
  padding: 54px 24px;
  text-align: center;
  border: 1px dashed #bdced6;
  border-radius: 18px;
  background: #fff;
}

.racine-news-empty h2 {
  margin-top: 0;
  color: var(--news-ink);
}

.racine-news-empty a {
  display: inline-flex;
  margin-top: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--news-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}

@media (max-width: 980px) {
  .racine-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .racine-news-filter {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .racine-news-hero {
    min-height: 285px;
  }
  .racine-news-hero__inner {
    width: min(100% - 32px, 1240px);
    padding: 48px 0 80px;
  }
  .racine-news-page {
    padding: 42px 16px 64px;
  }
  .racine-news-tools__head {
    display: block;
  }
  .racine-news-tools__head > p {
    margin-top: 10px;
  }
  .racine-news-filter {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .racine-news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .racine-news-card__body {
    padding: 19px;
  }
}
