/**
 * pages.css — Shared styles for all secondary content pages
 * Observatoire de l'Eau Grand Est
 *
 * Applied to every non-homepage content page (about, profile, resources, FAQ…).
 * Defines:
 *   - Body padding offset for the fixed navbar
 *   - Page hero section (dark blue banner with diagonal bottom clip)
 *   - Breadcrumb navigation
 *   - Sticky table of contents (shared with profil-page.css logic)
 *   - Partner logo banner (bottom of content pages)
 *   - Retex detail page card sections
 *
 * NOTE: Structural mega-menu styles live in css/nav.css.
 *       Profile-page-specific styles live in css/profil-page.css.
 */

body {
  padding-top: 72px;
  font-family: 'Satoshi', 'Source Sans 3', system-ui, sans-serif;
  background: #ffffff;
  color: #1d1d1b;
}

/* ── Page hero banner ── */
.page-hero {
  background: #2a347d;
  padding: 52px 0 80px;
  color: #fff;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
  margin-bottom: -2px;
}
.page-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-hero__eyebrow {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 24px;
}
.page-hero__eyebrow a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-weight: 400;
}
.page-hero__eyebrow a:hover { color: #fff; }
/* H1 inside .page-hero: Cabinet Grotesk 800, uppercase, line-height 75 px */
.page-hero__title {
  font-family: 'Cabinet Grotesk', 'Source Sans 3', system-ui, sans-serif;
  font-size: 60px;
  font-weight: 800;
  color: #fff;
  line-height: 75px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .page-hero__title { font-size: 26px; line-height: 32px; }
  .page-hero__eyebrow { font-size: 13px; }
}
.page-hero__sub {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.80);
  max-width: 680px;
  line-height: 20px;
}

/* ── Contenu page ── */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.page-content--narrow {
  max-width: 860px;
}

/* ── Sections de page ── */
.page-section {
  margin-bottom: 56px;
}
.page-section__title {
  font-size: 20px;
  font-weight: 700;
  color: #2a347d;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #7fddf0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-section__title i {
  color: #2a347d;
  font-size: 18px;
}

/* ── Cartes génériques ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.info-card {
  background: #fff;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 1px 8px rgba(42,52,125,.06);
  border: 1px solid rgba(42,52,125,.15);
}
.info-card__icon {
  width: 44px; height: 44px;
  border-radius: 4px;
  background: #7fddf0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #2a347d;
  margin-bottom: 14px;
}
.info-card__title { font-size: 15px; font-weight: 700; color: #2a347d; margin-bottom: 8px; }
.info-card__text  { font-size: 13px; color: rgba(42,52,125,.55); line-height: 1.6; }

/* ── Texte riche ── */
.rich-text h2 { font-size: 22px; font-weight: 700; margin: 32px 0 14px; color: #2a347d; }
.rich-text h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: #2a347d; }
.rich-text p  { font-size: 14.5px; line-height: 1.75; color: #1d1d1b; margin-bottom: 14px; }
.rich-text ul { margin-bottom: 14px; padding-left: 20px; }
.rich-text ul li { font-size: 14px; color: #1d1d1b; line-height: 1.6; margin-bottom: 6px; }
.rich-text blockquote {
  border-left: 4px solid #2a347d;
  background: rgba(42,52,125,.06);
  padding: 16px 20px;
  border-radius: 0 2px 2px 0;
  margin: 20px 0;
  font-size: 14px;
  color: #2a347d;
  font-style: italic;
}

/* ── Chip / Badge thème ── */
.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 600;
}

/* ── Boutons — charte Grand Est ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #7fddf0; color: #2a347d; font-weight: 700; font-size: 13px;
  padding: 11px 22px; border-radius: 2px; text-decoration: none;
  transition: background .15s; cursor: pointer; border: none;
  text-transform: uppercase; letter-spacing: .4px;
}
.btn-primary:hover { background: #2a347d; color: #ffffff; text-decoration: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; color: #2a347d; font-weight: 700; font-size: 13px;
  padding: 10px 20px; border-radius: 2px; text-decoration: none;
  transition: background .15s; cursor: pointer; border: 2px solid #2a347d;
  text-transform: uppercase; letter-spacing: .4px;
}
.btn-secondary:hover { background: #7fddf0; color: #2a347d; text-decoration: none; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #2a347d; font-weight: 700; font-size: 13px;
  padding: 10px 20px; border-radius: 2px; text-decoration: none;
  transition: background .15s; cursor: pointer; border: 2px solid #2a347d;
  text-transform: uppercase; letter-spacing: .4px;
}
.btn-outline:hover { background: #7fddf0; color: #2a347d; text-decoration: none; }

/* ── Alert / notice ── */
.notice {
  border-radius: 2px;
  padding: 14px 18px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.notice--info    { background: rgba(42,52,125,.08);  color: #2a347d; border-left: 4px solid #2a347d; }
.notice--success { background: rgba(185,225,0,.15);  color: #2a347d; border-left: 4px solid #b9e100; }
.notice--warning { background: rgba(251,208,32,.2);  color: #2a347d; border-left: 4px solid #fbd020; }
.notice i { margin-top: 1px; flex-shrink: 0; }

/* ── Trombinoscope équipe ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: 4px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(42,52,125,.07);
  border: 1px solid rgba(42,52,125,.15);
  transition: transform .2s;
}
.team-card:hover { transform: translateY(-3px); }
.team-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #2a347d;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin: 0 auto 14px;
}
.team-card__name { font-size: 14px; font-weight: 700; color: #2a347d; margin-bottom: 4px; }
.team-card__role { font-size: 12px; color: rgba(42,52,125,.55); margin-bottom: 6px; }
.team-card__org  { font-size: 11px; color: rgba(42,52,125,.45); }

/* ── Accordion FAQ ── */
.faq-item {
  background: #fff;
  border-radius: 2px;
  border: 1px solid rgba(42,52,125,.15);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item__question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 20px;
  font-size: 14.5px; font-weight: 600; color: #2a347d;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .15s;
}
.faq-item__question:hover { background: rgba(127,221,240,.15); }
.faq-item__question .fa-chevron-down { transition: transform .2s; flex-shrink: 0; font-size: 11px; color: rgba(42,52,125,.5); }
.faq-item__question[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.faq-item__answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 13.5px; color: #1d1d1b; line-height: 1.7;
}
.faq-item__answer.is-open { display: block; }

/* ── Articles blog ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(42,52,125,.07);
  border: 1px solid rgba(42,52,125,.15);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(42,52,125,.1); text-decoration: none; color: inherit; }
.article-card__img {
  height: 170px; background: rgba(42,52,125,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #2a347d;
}
.article-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card__cat  {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 2px; margin-bottom: 10px;
}
.article-card__title { font-size: 15px; font-weight: 700; color: #2a347d; margin-bottom: 8px; line-height: 1.4; }
.article-card__excerpt { font-size: 12.5px; color: rgba(42,52,125,.55); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.article-card__meta { font-size: 11px; color: rgba(42,52,125,.45); display: flex; align-items: center; gap: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-hero__title { font-size: 24px; }
  .page-content { padding: 32px 16px 60px; }
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
}


