/* ═══════════════════════════════════════════════════════════════
   Relève — rq3i.ca (v3)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --rl-blue:   #1b3c86;
  --rl-green:  #85c06c;
  --rl-dark:   #111827;
  --rl-gray:   #6b7280;
  --rl-light:  #f7f8fc;
  --rl-white:  #ffffff;
  --rl-border: #e5e7eb;
}

/* ── Supprimer l'espace thème ────────────────────────────────── */
body.rq3i-releve-page .site-content,
body.rq3i-releve-page .content-inner {
  padding-top: 0 !important;
  margin-top:  0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.releve-hero {
  background: var(--rl-blue);
  padding: 72px 0 64px;
  color: var(--rl-white);
}

.releve-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.releve-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.releve-hero__breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}

.releve-hero__breadcrumb a:hover { color: var(--rl-white); }

.releve-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--rl-white);
}

.releve-hero__intro {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,.85);
  max-width: 800px;
  line-height: 1.75;
  margin: 0;
}

.releve-hero__intro p { margin: 0 0 10px; }
.releve-hero__intro p:last-child { margin-bottom: 0; }

/* Static subtitle (archive page) */
.releve-hero__sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,.8);
  max-width: 640px;
  margin: 0;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL — sidebar + contenu
   ═══════════════════════════════════════════════════════════════ */

.releve-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Sidebar */
.releve-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  padding: 32px 0;
  border-right: 1px solid #e8e8e8;
}

.releve-sidenav__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  padding: 0 24px 12px;
  margin: 0;
}

.releve-sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.releve-sidenav ul li a {
  display: block;
  padding: 10px 24px;
  font-size: 0.9rem;
  color: #444;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.releve-sidenav ul li a:hover {
  color: var(--rl-blue);
  background: #f5f7fc;
}

.releve-sidenav ul li a.is-active {
  color: var(--rl-blue);
  font-weight: 600;
  border-left-color: var(--rl-green);
  background: #f5f7fc;
}

/* Contenu principal */
.releve-content {
  padding: 0 0 64px 48px;
  min-width: 0;
}

/* Sections dans le contenu : supprimer le padding latéral interne */
.releve-content .releve-section,
.releve-content .releve-intro-section {
  padding-left: 0;
  padding-right: 0;
}

.releve-content .releve-section__inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.releve-content .releve-intro-section {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Tablette */
@media (max-width: 1024px) {
  .releve-layout {
    grid-template-columns: 180px 1fr;
  }
}

/* Mobile : sidebar devient barre horizontale */
@media (max-width: 768px) {
  .releve-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .releve-sidebar {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    background: var(--rl-white);
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: none;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .releve-sidenav__title {
    display: none;
  }

  .releve-sidenav ul {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    padding: 0 16px;
  }

  .releve-sidenav ul li a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .releve-sidenav ul li a.is-active {
    border-left: none;
    border-bottom-color: var(--rl-green);
    background: transparent;
  }

  .releve-content {
    padding: 0 0 48px 0;
  }

  .releve-content .releve-section,
  .releve-content .releve-intro-section {
    padding-left: 0;
    padding-right: 0;
  }

  .releve-content .releve-section__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .releve-content .releve-intro-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   INTRO — deux colonnes (texte + image)
   ═══════════════════════════════════════════════════════════════ */

.releve-intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px var(--releve-padding-x, 5%);
  background: var(--rl-white);
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.releve-intro-section__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

.releve-intro-section__text p {
  margin: 0 0 1em;
}

.releve-intro-section__text p:last-child {
  margin-bottom: 0;
}

.releve-intro-section__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  display: block;
}

@media (max-width: 768px) {
  .releve-intro-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }
  .releve-intro-section__image {
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION GÉNÉRIQUE
   ═══════════════════════════════════════════════════════════════ */

.releve-section {
  padding: 72px 0;
  background: var(--rl-white);
}

.releve-section--alt {
  background: var(--rl-light);
}

.releve-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.releve-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.releve-section__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--rl-blue);
  margin: 0;
  line-height: 1.2;
}

.releve-section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--rl-green);
  margin-top: 10px;
}

.releve-section__cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--rl-blue);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.releve-section__cta:hover {
  border-bottom-color: var(--rl-blue);
}

/* ═══════════════════════════════════════════════════════════════
   OBJECTIFS
   ═══════════════════════════════════════════════════════════════ */

.releve-objectifs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: obj-counter;
}

.releve-objectif {
  counter-increment: obj-counter;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--rl-white);
  border-radius: 8px;
  border: 1px solid var(--rl-border);
}

.releve-objectif::before {
  content: counter(obj-counter);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rl-green);
  color: var(--rl-white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.releve-objectif p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rl-dark);
  padding-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   MEMBRES
   ═══════════════════════════════════════════════════════════════ */

.releve-membres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.releve-membre {
  background: var(--rl-white);
  border: 1px solid var(--rl-border);
  border-radius: 8px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.releve-membre__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.releve-membre__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.releve-membre__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--rl-blue);
  color: var(--rl-white);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.releve-membre__nom {
  font-size: 15px;
  font-weight: 600;
  color: var(--rl-dark);
  margin: 0;
}

.releve-membre__meta {
  font-size: 13px;
  color: var(--rl-gray);
  margin: 0;
  line-height: 1.5;
}

.releve-membre__bio {
  font-size: 13px;
  color: var(--rl-gray);
  margin: 0;
  line-height: 1.55;
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS — grille
   ═══════════════════════════════════════════════════════════════ */

.releve-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   CARD — base
   ═══════════════════════════════════════════════════════════════ */

.releve-card {
  background: var(--rl-white);
  border: 1px solid var(--rl-border);
  border-top: 3px solid transparent;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s ease, border-top-color .2s ease;
}

.releve-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  border-top-color: var(--rl-green);
}

/* Image area */
.releve-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rl-blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.releve-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SVG placeholder icon in image area */
.releve-card__image svg {
  color: rgba(255,255,255,.3);
}

/* No-image variant (affiches) — petite zone d'en-tête avec avatar */
.releve-card--no-image .releve-card__image {
  aspect-ratio: unset;
  height: 80px;
  background: #eef2fb;
  justify-content: flex-start;
  padding: 16px 20px;
}

/* Avatar initiales */
.releve-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rl-blue);
  color: var(--rl-white);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Corps de la card */
.releve-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.releve-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rl-white);
  background: var(--rl-green);
  padding: 3px 10px;
  border-radius: 20px;
}

.releve-card__date {
  font-size: 12px;
  color: var(--rl-gray);
  margin: 0;
}

.releve-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--rl-dark);
  margin: 0;
  line-height: 1.4;
}

.releve-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.releve-card__title a:hover {
  color: var(--rl-blue);
  text-decoration: underline;
}

.releve-card__excerpt {
  font-size: 13px;
  color: var(--rl-gray);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.releve-card__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--rl-blue);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  transition: opacity .2s;
}

.releve-card__link:hover { opacity: .7; }

/* Lien "Voir tout" sous une grille de cards */
.releve-voir-tout {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--rl-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--rl-green);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}

.releve-voir-tout:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════════
   PLACEHOLDER "À VENIR"
   ═══════════════════════════════════════════════════════════════ */

.releve-placeholder {
  padding: 40px 28px;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
  border: 1px dashed #ccc;
}

.releve-placeholder__icon {
  color: #bbb;
  margin-bottom: 10px;
}

.releve-placeholder__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--rl-gray);
  margin: 0 0 8px;
  font-style: italic;
}

.releve-placeholder__text {
  font-size: 13px;
  color: #999;
  margin: 0;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   VIDE / EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */

.releve-vide {
  font-size: 14px;
  color: var(--rl-gray);
  font-style: italic;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--rl-border);
  border-radius: 6px;
  margin: 0;
}

.releve-vide a { color: var(--rl-blue); }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION (archive nouvelles)
   ═══════════════════════════════════════════════════════════════ */

.releve-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rl-border);
}

.releve-pagination span { display: inline-block; }

.releve-pagination a,
.releve-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.releve-pagination a {
  color: var(--rl-blue);
  background: var(--rl-white);
  border: 1px solid var(--rl-border);
}

.releve-pagination a:hover {
  background: var(--rl-light);
  border-color: var(--rl-blue);
}

.releve-pagination span.current {
  background: var(--rl-blue);
  color: var(--rl-white);
  border: 1px solid var(--rl-blue);
}

/* Retour link */
.releve-retour {
  margin-top: 40px;
}

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

@media (max-width: 900px) {
  .releve-membres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .releve-objectifs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .releve-hero { padding: 48px 0 40px; }
  .releve-section { padding: 48px 0; }

  .releve-membres-grid,
  .releve-cards-grid {
    grid-template-columns: 1fr;
  }

  .releve-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .releve-section__inner,
  .releve-hero__inner {
    padding: 0 16px;
  }
}
