/* ── PAGE HEADER ─────────────────────────────────────────────────── */
.page-header {
  padding: 120px 0 4rem;
  background: var(--c-green-deep);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(176,112,64,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(168,196,176,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 2; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--c-ivory);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-header h1 em { font-style: italic; color: var(--c-copper-light); }
.page-header p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245,240,232,0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}
/* ── ORBIT LOGO FIX ─────────────────────────────────────────────── */
.orbit-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
}
/* ── HOME CARDS ──────────────────────────────────────────────────── */
.home-cards { padding: 6rem 0; background: var(--c-bg); }
.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.home-card {
  background: var(--c-bg-stone);
  border: 1px solid var(--c-stone-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.home-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.home-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(26,51,39,0.15); border-color: var(--c-stone); }
.home-card:hover::after { transform: scaleX(1); }
.home-card-icon { font-size: 2rem; line-height: 1; }
.home-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
}
.home-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--c-green-deep);
  line-height: 1.2;
}
.home-card p { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.7; }
.home-card-arrow { margin-top: auto; font-size: 1.2rem; color: var(--c-copper); }
/* ── MEMBER SPACE ────────────────────────────────────────────────── */
.member-page { min-height: 80vh; display: flex; align-items: center; background: var(--c-bg-stone); padding: 8rem 0 4rem; }
.member-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: var(--c-ivory);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 24px 64px rgba(26,51,39,0.12);
}
.member-logo { text-align: center; margin-bottom: 2rem; }
.member-logo .logo-symbol { font-size: 3rem; color: var(--c-copper); }
.member-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--c-green-deep);
  text-align: center;
  margin-bottom: 0.5rem;
}
.member-sub { text-align: center; color: var(--c-text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--c-stone); margin-bottom: 2rem; }
.auth-tab { flex: 1; padding: 0.75rem; background: none; border: none; cursor: pointer; font-size: 0.9rem; color: var(--c-text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.3s; }
.auth-tab.active { color: var(--c-green-deep); border-bottom-color: var(--c-copper); font-weight: 500; }
.member-form { display: flex; flex-direction: column; gap: 1.25rem; }
.member-form label { font-size: 0.85rem; color: var(--c-text-mid); font-weight: 500; display: block; margin-bottom: 0.4rem; }
.member-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-stone);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--c-text);
  transition: border-color 0.3s;
}
.member-form input:focus { outline: none; border-color: var(--c-green-mid); }
.member-form .btn-primary { margin-top: 0.5rem; width: 100%; justify-content: center; }
.member-divider { text-align: center; color: var(--c-text-muted); font-size: 0.85rem; position: relative; margin: 0.5rem 0; }
.member-divider::before, .member-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--c-stone); }
.member-divider::before { left: 0; }
.member-divider::after { right: 0; }
.member-forgot { text-align: center; margin-top: 1rem; }
.member-forgot a { color: var(--c-copper); font-size: 0.85rem; text-decoration: none; }
.member-forgot a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .home-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .home-cards-grid { grid-template-columns: 1fr; } }
[dir="rtl"] .home-card::after { transform-origin: right; }

/* ════════════════════════════════════════════════════════════════
   MISE EN PAGE FLEXIBLE DES IMAGES D'ARTICLES (RESPONSIVE)
════════════════════════════════════════════════════════════════ */
.article-img-figure {
  display: block !important;
  transition: all 0.3s ease;
  box-sizing: border-box !important;
}

/* Tailles */
.article-img-figure.size-petite {
  width: 280px !important;
  max-width: 100% !important;
}
.article-img-figure.size-moyenne {
  width: 480px !important;
  max-width: 100% !important;
}
.article-img-figure.size-grande {
  width: 100% !important;
  max-width: 100% !important;
}

/* Alignements & Habillage sur Grand Écran (Desktop >= 768px) */
@media (min-width: 768px) {
  .article-img-figure.align-centre {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    float: none !important;
    clear: both !important;
    text-align: center !important;
  }
  .article-img-figure.align-gauche {
    float: left !important;
    margin-right: 1.75rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
    clear: left !important;
  }
  .article-img-figure.align-droite {
    float: right !important;
    margin-left: 1.75rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
    clear: right !important;
  }
}

/* Adaptation Mobile (< 768px) : Désactivation du float pour lisibilité optimale */
@media (max-width: 767px) {
  .article-img-figure.align-gauche,
  .article-img-figure.align-droite,
  .article-img-figure.align-centre {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Nettoyage du flux (Clearfix) après les paragraphes et conteneurs */
.prose::after,
.article-body-content::after {
  content: "";
  display: table;
  clear: both;
}

