/* Chrome PHP — aligné sur le site Next.js OS Dépollution */

:root {
  --green-950: #052e16;
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --slate-950: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-950);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: none;
  aspect-ratio: 1024 / 338;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .site-logo__img {
    height: 2.75rem;
  }
}

.site-logo__footer-wrap {
  display: inline-flex;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

.site-logo__img--footer {
  height: 2.25rem;
}

.site-logo__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.site-logo__text {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--green-950);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate-700);
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green-900);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.site-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-900);
  text-decoration: none;
  transition: color 0.15s;
}

.site-phone:hover { color: var(--green-950); }

.phone-gate {
  flex-shrink: 0;
}

.phone-gate__locked[hidden],
.phone-gate__unlocked[hidden] {
  display: none !important;
}

.phone-gate__locked {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
  font-size: 0.875rem;
}

.phone-gate__phone-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--green-900);
}

.phone-gate__cp-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: text;
  margin: 0;
}

.phone-gate__cp-label {
  display: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .phone-gate__cp-label {
    display: inline;
  }
}

.phone-gate__blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green-900);
}

.phone-gate__input {
  width: 3.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--green-900);
}

.phone-gate__input::placeholder {
  color: var(--slate-400);
  font-weight: 400;
}

.phone-gate__input:focus {
  outline: none;
}

.phone-gate__unlocked {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgb(167 243 208);
  background: rgb(236 253 245);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green-900);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.phone-gate__unlocked:hover {
  background: rgb(209 250 229);
  border-color: rgb(110 231 183);
  color: var(--green-950);
}

.phone-gate__unlocked svg {
  flex-shrink: 0;
}

.phone-gate--mobile {
  margin: 0.25rem 0;
}

.phone-gate--mobile .phone-gate__locked {
  width: 100%;
  max-width: 20rem;
}

.phone-gate--footer {
  margin: 0.25rem 0;
}

.phone-gate--footer .phone-gate__locked {
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.phone-gate--footer .phone-gate__phone-side {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgb(255 255 255 / 0.9);
}

.phone-gate--footer .phone-gate__blur {
  color: rgb(255 255 255 / 0.9);
}

.phone-gate--footer .phone-gate__cp-side {
  padding: 0;
}

.phone-gate--footer .phone-gate__cp-label {
  display: inline;
  color: rgb(255 255 255 / 0.6);
}

.phone-gate--footer .phone-gate__input {
  width: 3.25rem;
  padding: 0.25rem 0.375rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 0.375rem;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.phone-gate--footer .phone-gate__input::placeholder {
  color: rgb(255 255 255 / 0.45);
}

.phone-gate--footer .phone-gate__unlocked {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgb(255 255 255 / 0.9);
  font-weight: 500;
}

.phone-gate--footer .phone-gate__unlocked:hover {
  background: transparent;
  color: #fff;
}

.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;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--green-900);
  color: #fff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--green-900);
  border: 1px solid var(--green-900);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background: var(--green-900);
  color: #fff;
}

.site-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--slate-700);
  cursor: pointer;
  border-radius: 0.5rem;
}

.site-menu-toggle:hover { background: var(--slate-100); }

.site-mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: #fff;
  padding: 1rem 0 1.25rem;
}

.site-mobile-nav.is-open { display: block; }

.site-mobile-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
}

.site-mobile-nav a.is-active { color: var(--green-900); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .site-header__actions { display: flex; }
  .site-menu-toggle { display: none; }
}

/* ── Hero actualités ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 55%, #115e59 100%);
  color: #fff;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgb(255 255 255 / 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgb(255 255 255 / 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 28ch;
}

.page-hero__desc {
  color: rgb(255 255 255 / 0.82);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0;
  line-height: 1.55;
}

/* ── Filtres ── */
.filters-bar {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  margin: -1.75rem 0 2rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.filters-bar__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin: 0 0 0.75rem;
}

.filters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-600);
  transition: all 0.15s;
}

.filter-pill:hover {
  border-color: var(--green-800);
  color: var(--green-900);
  background: var(--green-50);
}

.filter-pill.is-active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-pill.is-active:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

/* ── Grille articles ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgb(22 101 52 / 0.25);
}

.news-card__media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green-100) 0%, var(--slate-100) 100%);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

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

.news-card__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--green-800);
  opacity: 0.35;
}

.news-card__service {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgb(255 255 255 / 0.92);
  color: var(--green-900);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.125rem 1.25rem 1.25rem;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--green-800);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.news-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green-700);
  opacity: 0.5;
}

.news-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.news-card__excerpt {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-900);
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--slate-50);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-xl);
  color: var(--slate-500);
}

/* ── Article détail ── */
.article-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-900);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.article-back:hover { text-decoration: underline; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--green-800);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.article-tag {
  display: inline-flex;
  padding: 0.2rem 0.625rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-900);
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.article-featured {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.article-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--slate-700);
}

.article-content h2,
.article-content h3 {
  color: var(--slate-950);
  font-weight: 600;
  margin-top: 2rem;
  line-height: 1.3;
}

.article-content h2 { font-size: 1.375rem; }
.article-content h3 { font-size: 1.125rem; }

.article-content p { margin: 1rem 0; }

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.article-content li { margin: 0.35rem 0; }

.article-related {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
}

.article-related__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-950);
  margin-bottom: 0.875rem;
}

.article-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-950);
  color: rgb(255 255 255 / 0.9);
  font-size: 0.875rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer__brand p {
  color: rgb(255 255 255 / 0.65);
  margin: 0.75rem 0 0;
  max-width: 22ch;
  line-height: 1.5;
}

.site-footer__heading {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer__links a {
  display: block;
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}

.site-footer__links a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.5);
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .site-footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.site-footer__legal a:hover { color: #fff; }
