@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600;700&display=swap');

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Palette tirée du logo : nuit indigo, violet électrique,
   lueur magenta, étoile rose & bordeaux, lettrage blanc. */
:root {
  --bg-deep:    #1a0f62;
  --bg-dark:    #241686;
  --primary:    #6a3cf0;
  --primary-hover: #8256ff;
  --accent:     #d9ccff;
  --star:       #ff8cc0;
  --rose:       #ff4d8d;
  --magenta:    #c43cff;
  --maroon:     #7d0d36;
  --white:      #ffffff;
  --text-muted: #cdc3f5;
  --card-bg:    rgba(46, 28, 150, 0.5);
  --border:     rgba(217, 204, 255, 0.24);
  --grad-brand: linear-gradient(135deg, #6a3cf0 0%, #a24cf5 55%, #c43cff 100%);

  --font-display: 'Marcellus', Georgia, serif;
  --font-body:    'Barlow', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-ui:      'Barlow Condensed', 'Barlow', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 700px at 75% -10%, rgba(196, 60, 255, 0.16), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(106, 60, 240, 0.22), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(255, 140, 192, 0.35); color: #fff; }

/* =============================================
   CANVAS STARS BACKGROUND
============================================= */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   NAVIGATION
============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(34, 20, 128, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--star);
  box-shadow: 0 0 0 3px rgba(255, 140, 192, 0.12), 0 0 18px rgba(196, 60, 255, 0.45);
  transition: box-shadow 0.3s, transform 0.3s;
}

.nav-logo:hover img {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 140, 192, 0.25), 0 0 26px rgba(196, 60, 255, 0.7);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
}

.nav-logo-text .sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--star);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  background: var(--grad-brand);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.82rem !important;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 140, 192, 0.55);
  transition: filter 0.25s, box-shadow 0.25s !important;
}

.nav-cta:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 22px rgba(196, 60, 255, 0.6);
}

.nav-cta::after { display: none !important; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO
============================================= */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 7rem;
  overflow: hidden;
}

/* Constellation SVG watermark */
.constellation-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.12;
  pointer-events: none;
}

/* Radial nebula glow */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(196,60,255,0.30) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(106,60,240,0.35) 0%, transparent 75%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(255,77,141,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 15%, rgba(255,140,192,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 2; max-width: 860px; }

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(255,140,192,0.35);
  border-radius: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 1.8rem;
  background: rgba(196,60,255,0.12);
}

.hero-logo {
  width: min(440px, 80vw);
  height: min(440px, 80vw);
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.8rem;
  border: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  -webkit-mask-image: radial-gradient(circle closest-side, black 78%, rgba(0,0,0,0.6) 90%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, black 78%, rgba(0,0,0,0.6) 90%, transparent 100%);
  animation: logoGlow 5s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 22px rgba(196, 60, 255, 0.45))
      drop-shadow(0 0 60px rgba(106, 60, 240, 0.35));
  }
  50% {
    filter:
      drop-shadow(0 0 30px rgba(255, 140, 192, 0.55))
      drop-shadow(0 0 80px rgba(196, 60, 255, 0.5))
      drop-shadow(0 0 120px rgba(106, 60, 240, 0.3));
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 0 30px rgba(217,204,255,0.4);
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  margin-top: 0.6rem;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-tagline {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  font-style: italic;
  opacity: 0.9;
}

.hero-desc {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-brand);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,140,192,0.45);
  box-shadow: 0 6px 22px rgba(106,60,240,0.35);
  transition: filter 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 28px rgba(196,60,255,0.6);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
   HERO SHORTCUTS
============================================= */
.hero-shortcuts {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.shortcut-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  background: rgba(106,60,240,0.16);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  color: var(--accent);
  transition: background 0.3s, border-color 0.3s, transform 0.22s, box-shadow 0.3s, color 0.2s;
  backdrop-filter: blur(10px);
  min-width: 90px;
}

.shortcut-btn:hover {
  background: rgba(106,60,240,0.38);
  border-color: rgba(217,204,255,0.55);
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(106,60,240,0.38);
  color: var(--white);
}

.shortcut-icon { font-size: 1.55rem; line-height: 1; }

.shortcut-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   SECTION COMMONS
============================================= */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--star), var(--magenta));
  border-radius: 2px;
  margin: 1.2rem 0 2.5rem;
}

/* =============================================
   ABOUT / MISSIONS
============================================= */
#about { background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%); }

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.mission-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}

.mission-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217,204,255,0.4);
  box-shadow: 0 8px 32px rgba(106,60,240,0.25);
}

.mission-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.mission-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   ACTUALITÉS / BLOG
============================================= */
#actualites { background: var(--bg-deep); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(106,60,240,0.3);
  border-color: rgba(217,204,255,0.35);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  position: relative;
  overflow: hidden;
}

.news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 0;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--card-bg) 100%);
  z-index: 1;
}

.news-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.news-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
  background: rgba(255,140,192,0.1);
  border: 1px solid rgba(255,140,192,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}

.news-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.news-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
}

.news-link:hover { color: var(--star); gap: 0.7rem; }

button.news-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.article-badge {
  font-size: .68rem;
  letter-spacing: .08em;
  padding: .25rem .65rem;
  border-radius: 4px;
  white-space: nowrap;
}
.article-badge-pub   { background: rgba(26,74,42,.7);   color: #4ade80;          border: 1px solid #2a7a3a; }
.article-badge-draft { background: rgba(106,60,240,.2); color: var(--text-muted); border: 1px solid var(--border); }

.membre-role-com        { color: #a78bfa; border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.08); }
.membre-role-secretaire { color: #38bdf8; border-color: rgba(56,189,248,.3);  background: rgba(56,189,248,.08); }

.role-select {
  background: rgba(24,14,94,.7); border: 1px solid rgba(217,204,255,.2);
  border-radius: 6px; color: var(--white); font-size: .75rem; font-family: inherit;
  padding: .25rem .5rem; cursor: pointer; outline: none; transition: border-color .2s;
}
.role-select:focus { border-color: var(--accent); }
.role-select option { background: #241686; }

.news-source {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-style: italic;
  opacity: 0.75;
}

/* =============================================
   DOSSIERS DU MOIS
============================================= */
#monthly {
  position: relative;
  background: var(--bg-deep);
}

.monthly-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}

.monthly-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.monthly-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 140, 192, 0.4);
  box-shadow: 0 16px 48px rgba(106, 60, 240, 0.35), 0 0 30px rgba(196, 60, 255, 0.12);
}
.monthly-card--lead { grid-row: span 2; }

.monthly-card.is-loading {
  min-height: 260px;
  background: linear-gradient(90deg, var(--bg-dark) 25%, rgba(217,204,255,0.07) 50%, var(--bg-dark) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.monthly-thumb {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 70% at 30% 40%, rgba(196,60,255,0.35) 0%, transparent 70%),
    linear-gradient(135deg, var(--bg-dark), var(--primary));
}
.monthly-card--lead .monthly-thumb { aspect-ratio: auto; flex: 1; min-height: 240px; }
.monthly-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.monthly-card:hover .monthly-thumb img { transform: scale(1.05); }
.monthly-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--card-bg) 100%);
  pointer-events: none;
}
.monthly-icon { font-size: 3rem; color: var(--accent); }

.moon-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(0.8rem, 3vw, 2rem);
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem;
}
.moon-strip-month {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}
.moon-strip div {
  text-align: center;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.moon-strip svg { filter: drop-shadow(0 0 12px rgba(241,236,255,0.35)); }

.monthly-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.monthly-kicker {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 0.6rem;
}
.monthly-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.monthly-card--lead .monthly-body h3 { font-size: 1.6rem; }
.monthly-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.monthly-body .news-link { align-self: flex-start; }

/* Contenu des dossiers dans la fenêtre article */
.mag-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 2rem 0 0.9rem;
}
.mag-body p { margin-bottom: 1.1rem; }
.mag-body a { color: var(--star); }
.mag-body strong { color: var(--white); font-weight: 600; }
.mag-lead { font-size: 1rem; color: #e9ddff; }
.mag-note { font-size: 0.78rem; opacity: 0.8; font-style: italic; }
.mag-cta {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,140,192,0.25);
  border-radius: 10px;
  background: rgba(255,140,192,0.06);
}
.mag-list { padding-left: 1.2rem; margin-bottom: 1.1rem; }
.mag-list li { margin-bottom: 0.7rem; }

.mag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
  overflow-x: auto;
}
.mag-table th,
.mag-table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.mag-table th {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.mag-table tr.is-off td { opacity: 0.55; }

.moon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.moon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.9rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(24,14,94,0.5);
  font-size: 0.8rem;
}

.mag-fiche {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.mag-fiche div {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(24,14,94,0.5);
}
.mag-fiche dt {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 0.2rem;
}
.mag-fiche dd { margin: 0; color: var(--white); font-size: 0.88rem; }

.mag-launch {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(24,14,94,0.45);
  margin-bottom: 0.9rem;
}
.mag-launch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.mag-launch-meta { font-size: 0.78rem; color: var(--accent); margin-bottom: 0.5rem !important; }
.mag-launch p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .monthly-grid { grid-template-columns: 1fr; }
  .monthly-card--lead { grid-row: auto; }
  .monthly-card--lead .monthly-thumb { aspect-ratio: auto; flex: none; min-height: 0; }
  .moon-strip { padding: 1.5rem 0.75rem; gap: 0.6rem; }
  .moon-strip svg { width: 52px; height: 52px; }
  .moon-strip div { font-size: 0.68rem; letter-spacing: 0.06em; }
}

/* =============================================
   SPACE NEWS (API)
============================================= */
#space-news {
  position: relative;
  background: var(--bg-deep);
}

#space-news::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 25% 50%, rgba(106,60,240,0.35) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 80% 25%, rgba(196,60,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 85%, rgba(106,60,240,0.22) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

#space-news .section-inner {
  position: relative;
  z-index: 1;
}

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.news-skeleton {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(
    90deg,
    var(--bg-dark) 25%,
    rgba(217,204,255,0.07) 50%,
    var(--bg-dark) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border: 1px solid var(--border);
}

/* =============================================
   EVENTS
============================================= */
#evenements { background: var(--bg-dark); }

.events-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
  backdrop-filter: blur(8px);
}

.event-item:hover {
  border-color: rgba(217,204,255,0.4);
  transform: translateX(4px);
}

.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  background: linear-gradient(135deg, var(--primary), #4526c4);
  border-radius: 0.5rem;
  padding: 0.5rem 0.4rem;
}

.event-day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.event-month {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-info h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.event-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-badge {
  margin-left: auto;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.badge-open   { background: rgba(74,180,74,0.12); border: 1px solid rgba(74,180,74,0.3); color: #7ddc7d; }
.badge-soon   { background: rgba(255,140,192,0.1);  border: 1px solid rgba(255,140,192,0.3); color: var(--star); }
.badge-closed { background: rgba(217,204,255,0.08); border: 1px solid var(--border); color: var(--text-muted); }

.event-item.event-complet {
  opacity: 0.55;
  filter: grayscale(0.35);
  pointer-events: none;
  position: relative;
}

.event-complet-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: rgba(19,10,76,0.45);
  border-radius: 0.75rem;
  pointer-events: none;
}

.event-item { position: relative; overflow: hidden; }

.event-places {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 72px;
  text-align: center;
}

.event-places-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  color: #7ddc7d;
}

.event-places.event-places-low  .event-places-num { color: var(--star); }
.event-places.event-places-full .event-places-num { color: #ff6b6b; }

.event-places-max {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.event-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.events-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 3rem 0;
}

/* =============================================
   STATS
============================================= */
#stats {
  background: linear-gradient(135deg, #1f1277 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-number span { color: var(--star); }

.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   CONTACT
============================================= */
#contact { background: var(--bg-deep); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: var(--accent);
}

.contact-detail .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(106,60,240,0.3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(34,20,128,0.7);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(205,195,245,0.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,204,255,0.1);
}

.form-group select option { background: var(--bg-dark); }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  background: var(--grad-brand);
  color: var(--white);
  border: 1px solid rgba(255,140,192,0.45);
  border-radius: 2rem;
  padding: 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.3s, box-shadow 0.3s, transform 0.2s;
}

.form-submit:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 26px rgba(196,60,255,0.55);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
  color: var(--star);
  font-size: 0.9rem;
}

/* =============================================
   FOOTER
============================================= */
footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #180e60 0%, #11094a 100%);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--star);
  box-shadow: 0 0 16px rgba(196, 60, 255, 0.4);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.55rem; }

.footer-col ul li a {
  font-size: 0.83rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-bottom p a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom p a:hover { color: var(--star); }

.footer-stars { color: var(--star); font-size: 0.8rem; letter-spacing: 0.1em; }

/* =============================================
   LEGAL PAGE (mentions légales / RGPD)
============================================= */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.92rem;
}

.legal-doc .legal-heading {
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 2.5rem 0 1.25rem;
}
.legal-doc .legal-heading:first-child { margin-top: 0; }

.legal-doc h3 {
  color: var(--accent);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.6rem;
}

.legal-doc p { margin-bottom: 1rem; }

.legal-doc a {
  color: var(--star);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 140, 192, 0.35);
  transition: border-color 0.2s;
}
.legal-doc a:hover { border-color: var(--star); }

.legal-list {
  margin: 0 0 1.2rem 1.2rem;
  padding-left: 0.6rem;
}
.legal-list li {
  margin-bottom: 0.55rem;
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
}
.legal-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.25rem;
}

.legal-updated {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--accent);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.contact-social {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.contact-social:hover {
  color: var(--star);
  border-color: var(--accent);
  background: rgba(106,60,240,0.15);
}

/* =============================================
   CONSTELLATIONS SVG ANIMATION
============================================= */
@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 0.2; }
}

@keyframes star-pulse {
  0%, 100% { r: 2; }
  50%       { r: 3.5; }
}

/* =============================================
   SCROLL REVEAL
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SOLAR SYSTEM 3D
============================================= */
#systeme-solaire {
  position: relative; z-index: 1;
  padding: 0;
  background: #000005;
  display: flex;
  flex-direction: column;
}
.solar-header {
  position: relative; z-index: 10;
  padding: 1.1rem 2rem;
  background: rgba(0,0,5,0.94);
  border-bottom: 1px solid rgba(217,204,255,0.12);
  pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.solar-body {
  height: calc(100vh - 80px);
  min-height: 560px;
  position: relative;
  overflow: hidden;
  transition: height 0.55s cubic-bezier(.22,1,.36,1), min-height 0.5s ease, opacity 0.4s ease;
  opacity: 1;
}
.solar-collapsed .solar-body {
  height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.solar-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--accent);
  padding: 0.32rem 0.95rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: all;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  flex-shrink: 0;
}
.solar-toggle:hover { border-color: var(--accent); color: var(--white); background: rgba(106,60,240,0.2); }
.solar-toggle-icon { transition: transform 0.35s ease; display: inline-block; font-size: 0.55rem; }
.solar-collapsed .solar-toggle-icon { transform: rotate(180deg); }
.solar-header-text .section-title { font-size: clamp(1.4rem,2.5vw,2rem); margin-bottom:0; }
.solar-controls-hint { pointer-events:none; text-align:right; }

/* ---- Barre de recherche système solaire ---- */
.solar-search-bar {
  padding: 0 1.4rem 0.9rem;
  position: relative;
  z-index: 20;
}
.solar-search-wrap {
  position: relative;
  max-width: 460px;
}
.solar-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
#solarSearchInput {
  width: 100%;
  background: rgba(24, 14, 94, 0.65);
  border: 1px solid rgba(217, 204, 255, 0.18);
  border-radius: 8px;
  padding: 0.52rem 1rem 0.52rem 2.3rem;
  color: var(--white);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}
#solarSearchInput:focus {
  border-color: rgba(217, 204, 255, 0.5);
  background: rgba(24, 14, 94, 0.85);
}
#solarSearchInput::placeholder { color: var(--text-muted); }
.solar-search-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: rgba(24, 14, 94, 0.96);
  border: 1px solid rgba(217, 204, 255, 0.18);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.solar-search-dropdown li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.48rem 1rem;
  cursor: pointer;
  transition: background 0.12s;
}
.solar-search-dropdown li:hover,
.solar-search-dropdown li.active {
  background: rgba(217, 204, 255, 0.1);
}
.sr-name {
  font-size: 0.85rem;
  color: var(--white);
  white-space: nowrap;
}
.sr-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.solar-controls-hint p { font-size:.67rem; letter-spacing:.1em; color:rgba(217,204,255,.55); line-height:1.9; }
#solar-canvas { width:100%; height:100%; display:block; cursor:grab; outline:none; }
#solar-canvas:active { cursor:grabbing; }

.planet-panel {
  position:absolute; top:0; right:0; bottom:0;
  width:min(370px,88vw);
  background:rgba(21,11,82,.96);
  backdrop-filter:blur(22px);
  border-left:1px solid rgba(217,204,255,.14);
  z-index:20;
  transform:translateX(102%);
  transition:transform .42s cubic-bezier(.22,1,.36,1);
  display:flex; flex-direction:column; overflow:hidden;
}
.planet-panel.open { transform:translateX(0); }
.panel-header {
  padding:1.2rem 1.4rem;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(217,204,255,.1); flex-shrink:0;
}
.panel-back {
  background:none; border:1px solid var(--border); color:var(--accent);
  font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
  padding:.32rem .8rem; border-radius:2rem; cursor:pointer; font-family:inherit;
  transition:border-color .25s,color .25s;
}
.panel-back:hover { border-color:var(--accent); color:var(--white); }
.panel-close {
  background:none; border:none; color:var(--text-muted); font-size:1.1rem;
  cursor:pointer; padding:.2rem; transition:color .25s; line-height:1;
}
.panel-close:hover { color:var(--white); }
.panel-scroll {
  flex:1; overflow-y:auto; padding:0 1.4rem 2rem;
  scrollbar-width:thin; scrollbar-color:var(--primary) transparent;
}
.panel-scroll::-webkit-scrollbar { width:3px; }
.panel-scroll::-webkit-scrollbar-thumb { background:var(--primary); border-radius:3px; }
.panel-planet-visual {
  display:flex; flex-direction:column; align-items:center; padding:1.5rem 0 1rem;
}
.planet-swatch {
  width:60px; height:60px; border-radius:50%;
  box-shadow:0 0 24px rgba(255,255,255,.12); margin-bottom:.6rem;
}
.panel-type-badge {
  font-size:.62rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--star); margin-bottom:.3rem;
}
.panel-name {
  font-family:var(--font-display); font-size:1.9rem; font-weight:700;
  letter-spacing:.08em; color:var(--white); text-align:center;
}
.panel-desc { font-size:.83rem; color:var(--text-muted); line-height:1.75; margin:1rem 0 1.3rem; }
.panel-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:.55rem; margin-bottom:1.4rem; }
.pstat {
  background:rgba(106,60,240,.14); border:1px solid rgba(217,204,255,.09);
  border-radius:.45rem; padding:.55rem .7rem;
}
.pstat-label { display:block; font-size:.58rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); margin-bottom:.18rem; }
.pstat-value { font-size:.8rem; color:var(--white); font-weight:600; }
.panel-facts { margin-bottom:1.4rem; }
.panel-section-title { font-size:.64rem; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); margin-bottom:.65rem; }
.panel-facts ul { list-style:none; }
.panel-facts li {
  font-size:.8rem; color:var(--text-muted);
  padding:.32rem 0 .32rem 1.1rem; position:relative;
  border-bottom:1px solid rgba(217,204,255,.05); line-height:1.55;
}
.panel-facts li::before { content:'✦'; position:absolute; left:0; top:.4rem; color:var(--star); font-size:.52rem; }
.moon-btn {
  display:flex; align-items:center; gap:.7rem; width:100%;
  background:rgba(106,60,240,.1); border:1px solid rgba(217,204,255,.1);
  border-radius:.45rem; padding:.55rem .75rem; margin-bottom:.45rem;
  cursor:pointer; transition:background .2s,border-color .2s; font-family:inherit;
}
.moon-btn:hover { background:rgba(106,60,240,.28); border-color:rgba(217,204,255,.28); }
.moon-dot { width:16px; height:16px; border-radius:50%; flex-shrink:0; }
.moon-btn-name { flex:1; font-size:.83rem; color:var(--white); text-align:left; }
.moon-btn-sub  { font-size:.68rem; color:var(--text-muted); }
#solarTooltip {
  position:absolute; background:rgba(21,11,82,.92);
  border:1px solid rgba(217,204,255,.22); border-radius:.35rem;
  padding:.28rem .7rem; font-size:.73rem; color:var(--white);
  pointer-events:none; opacity:0; transition:opacity .15s;
  white-space:nowrap; z-index:15; letter-spacing:.06em; backdrop-filter:blur(8px);
}
#solarTooltip.visible { opacity:1; }

/* =============================================
   SATELLITES ARTIFICIELS (galerie 3D)
============================================= */
#satellites {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 6rem;
  background: linear-gradient(180deg, #000005 0%, var(--bg-deep) 22%);
}

.sat-category {
  margin: 3.2rem 0 1.4rem;
}
.sat-category:first-of-type { margin-top: 3rem; }

.sat-category-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--white);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.sat-category-icon { font-size: 1.3rem; }

.sat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.sat-card {
  display: flex;
  flex-direction: column;
  background: rgba(34, 20, 128, 0.34);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sat-card:hover,
.sat-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(217, 204, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  outline: none;
}
.sat-card:focus-visible { border-color: var(--accent); }

/* Indice "agrandir" sur l'aperçu */
.sat-expand {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(21, 11, 82, 0.7);
  border: 1px solid rgba(217, 204, 255, 0.3);
  border-radius: 1rem;
  padding: 0.22rem 0.6rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
}
.sat-card:hover .sat-expand,
.sat-card:focus-visible .sat-expand { opacity: 1; transform: translateY(0); }

.sat-viewer {
  position: relative;
  width: 100%;
  height: 240px;
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(106, 60, 240, 0.28) 0%, transparent 70%),
    #12094c;
  cursor: grab;
  touch-action: none;
}
.sat-viewer:active { cursor: grabbing; }
.sat-viewer canvas { display: block; }

.sat-viewer.is-loading::after {
  content: 'Chargement du modèle 3D…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sat-viewer.is-error::after {
  content: '⚠ Modèle indisponible';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--rose);
}

.sat-viewer-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.sat-viewer-placeholder .sat-icon {
  font-size: 3.4rem;
  opacity: 0.65;
  filter: drop-shadow(0 0 18px rgba(217, 204, 255, 0.35));
}

.sat-card-body {
  padding: 1.25rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sat-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.sat-card-head h4 {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.3;
}
.sat-year {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--star);
  border: 1px solid rgba(255, 140, 192, 0.3);
  border-radius: 1rem;
  padding: 0.12rem 0.6rem;
}
.sat-card-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}
.sat-status {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
}
.sat-status-active  { color: #5fd38a; }
.sat-status-transit { color: var(--accent); }
.sat-status-old     { color: #888; }
.sat-status-ended   { color: #e0788a; }
.sat-news-ago {
  font-size: .78em;
  opacity: .62;
  margin-left: .45em;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .sat-grid { grid-template-columns: 1fr; }
  .sat-viewer { height: 220px; }
}

/* =============================================
   MODALE DÉTAIL SATELLITE
============================================= */
body.modal-open { overflow: hidden; }

.sat-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 2.5rem);
  background: rgba(16, 8, 64, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sat-modal[hidden] { display: none; }
.sat-modal.open { opacity: 1; }

.sat-modal-dialog {
  position: relative;
  display: flex;
  width: min(1100px, 100%);
  height: min(680px, 92vh);
  background: #140a50;
  border: 1px solid rgba(217, 204, 255, 0.22);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.sat-modal.open .sat-modal-dialog { transform: translateY(0) scale(1); }

.sat-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  background: rgba(21, 11, 82, 0.7);
  border: 1px solid rgba(217, 204, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.sat-modal-close:hover {
  background: rgba(106, 60, 240, 0.5);
  border-color: var(--accent);
  transform: translateX(-2px);
}

/* Scène 3D sur fond spatial */
.sat-modal-stage {
  position: relative;
  flex: 1 1 60%;
  min-width: 0;
  background:
    radial-gradient(ellipse 80% 70% at 40% 35%, rgba(106, 60, 240, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(196, 60, 255, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, #211379 0%, #0f0845 100%);
  overflow: hidden;
}
.sat-modal-canvas { position: absolute; inset: 0; }
.sat-modal-canvas canvas { display: block; cursor: grab; }
.sat-modal-canvas:active canvas { cursor: grabbing; }

.sat-modal-bigicon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5rem, 14vw, 9rem);
  filter: drop-shadow(0 0 35px rgba(217, 204, 255, 0.4));
  animation: floaticon 5s ease-in-out infinite;
}
@keyframes floaticon {
  0%, 100% { transform: translateY(-8px); }
  50%      { transform: translateY(8px); }
}

/* Panneau d'informations */
.sat-modal-panel {
  flex: 1 1 40%;
  min-width: 0;
  padding: 3.2rem 1.9rem 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: rgba(24, 14, 94, 0.6);
}
.sat-modal-panel::-webkit-scrollbar { width: 4px; }
.sat-modal-panel::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.sat-modal-cat {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sat-modal-titlerow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.5rem 0 0.4rem;
}
.sat-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--white);
  line-height: 1.25;
}
.sat-modal-year {
  flex-shrink: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--star);
  border: 1px solid rgba(255, 140, 192, 0.3);
  border-radius: 1rem;
  padding: 0.15rem 0.65rem;
}
.sat-modal-status {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.sat-modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.sat-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}
.sat-stat {
  background: rgba(34, 20, 128, 0.4);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
}
.sat-stat-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.sat-stat-value { font-size: 0.84rem; color: var(--white); font-weight: 600; }

.sat-facts-title {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.sat-modal-facts ul { list-style: none; }
.sat-modal-facts li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.55rem;
}
.sat-modal-facts li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--star);
  font-size: 0.6rem;
}

@media (max-width: 800px) {
  .sat-modal-dialog { flex-direction: column; height: min(88vh, 760px); }
  .sat-modal-stage { flex: 0 0 46%; }
  .sat-modal-panel { flex: 1 1 auto; border-left: none; border-top: 1px solid var(--border); padding-top: 1.5rem; }
  .sat-modal-close { top: 0.7rem; left: 0.7rem; }
}

/* =============================================
   PAGE BANNER (sub-pages)
============================================= */
.page-banner {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(106,60,240,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.page-banner .section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-banner .divider {
  margin: 1.2rem auto 0;
}

/* =============================================
   PAGES NAV CARDS (index landing)
============================================= */
#pages {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
}

#pages .section-title { text-align: center; }
#pages .section-label { text-align: center; display: block; }
#pages .divider { margin-left: auto; margin-right: auto; }

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.page-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}

.page-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217,204,255,0.5);
  box-shadow: 0 16px 48px rgba(106,60,240,0.35);
}

.page-card-icon {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.page-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.page-card-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.25s;
}

.page-card:hover .page-card-link {
  color: var(--star);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  nav { padding: 0.9rem 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(34,20,128,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 0.1em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .event-badge { display: none; }
}

/* =============================================
   NAV DROPDOWN ("Le Club")
============================================= */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  transition: color 0.25s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle.active { color: var(--white); }

.nav-caret { font-size: 0.55rem; transition: transform 0.25s; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  list-style: none;
  background: rgba(24, 14, 94, 0.98);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}

/* pont invisible pour ne pas perdre le survol entre le bouton et le menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.9rem; left: 0; right: 0;
  height: 0.9rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li { margin: 0; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  background: rgba(106, 60, 240, 0.35);
  color: var(--white);
}

/* =============================================
   TIMELINE PROJET TÉLESCOPE
============================================= */
.tl-timeline {
  list-style: none;
  margin: 3rem 0 0;
  position: relative;
  padding-left: 0;
}

.tl-item {
  position: relative;
  padding: 0 0 2rem 2.5rem;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
}
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }

.tl-marker {
  position: absolute;
  left: -9px; top: 0.15rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--text-muted);
}
.tl-done .tl-marker {
  background: var(--star);
  border-color: var(--star);
  box-shadow: 0 0 12px rgba(255, 140, 192, 0.5);
}
.tl-current .tl-marker {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.18), 0 0 16px rgba(255, 77, 141, 0.6);
  animation: tlPulse 2s ease-in-out infinite;
}
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,77,141,0.18), 0 0 16px rgba(255,77,141,0.6); }
  50%      { box-shadow: 0 0 0 7px rgba(255,77,141,0.08), 0 0 22px rgba(255,77,141,0.85); }
}

.tl-done   { border-left-color: rgba(255, 140, 192, 0.4); }
.tl-current { border-left-color: rgba(255, 77, 141, 0.4); }

.tl-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}
.tl-item:hover .tl-content {
  border-color: rgba(217, 204, 255, 0.4);
  transform: translateX(4px);
}
.tl-current .tl-content { border-color: rgba(255, 77, 141, 0.35); }

.tl-status {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: 2rem;
  margin-bottom: 0.6rem;
}
.tl-done .tl-status { color: var(--star); background: rgba(255,140,192,0.1); border: 1px solid rgba(255,140,192,0.3); }
.tl-current .tl-status { color: var(--rose); background: rgba(255,77,141,0.1); border: 1px solid rgba(255,77,141,0.35); }
.tl-todo .tl-status { color: var(--text-muted); background: rgba(217,204,255,0.06); border: 1px solid var(--border); }

.tl-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.tl-content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   PROJETS (projets.html)
============================================= */
.projets-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 1rem; }

.projet-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem 2rem 2.2rem;
  backdrop-filter: blur(8px);
}

.projet-head { display: flex; align-items: center; gap: 1rem; }
.projet-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.projet-head-text { flex: 1; min-width: 0; }
.projet-head-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.projet-since {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
}
.projet-pct { text-align: right; flex-shrink: 0; }
.projet-pct strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--white);
}
.projet-pct span { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; }

.projet-bar {
  height: 6px;
  margin: 1.3rem 0 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.projet-bar > div {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--magenta), var(--star));
  box-shadow: 0 0 12px rgba(196, 60, 255, 0.6);
  transition: width 0.6s ease;
}

.projet-desc {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  white-space: pre-line;
}

.projet-card .tl-timeline,
.projet-done .tl-timeline { margin-top: 1.8rem; }

.projet-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.projet-fact {
  padding: 0.9rem 0.8rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}
.projet-fact strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--white);
}
.projet-fact span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--star);
}

.projet-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.projet-shot {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.projet-shot:hover,
.projet-shot:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 140, 192, 0.45);
  box-shadow: 0 10px 28px rgba(106, 60, 240, 0.35);
  outline: none;
}
.projet-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  display: block;
}
.projet-shot span {
  padding: 0.55rem 0.7rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.projet-zoom {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(10, 5, 40, 0.9);
  backdrop-filter: blur(8px);
}
.projet-zoom[hidden] { display: none; }
.projet-zoom figure { position: relative; max-width: min(1100px, 100%); margin: 0; text-align: center; }
.projet-zoom img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.projet-zoom figcaption { margin-top: 0.9rem; color: var(--accent); font-size: 0.92rem; }
.projet-zoom-close {
  position: absolute;
  top: -0.9rem; right: -0.9rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
}
.projet-zoom-close:hover { border-color: var(--star); }

.projet-empty {
  color: var(--text-muted);
  font-style: italic;
  padding: 1.5rem 0;
  text-align: center;
}

.projets-done-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

.projet-done {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.3s;
}
.projet-done[open],
.projet-done:hover { border-color: rgba(255, 140, 192, 0.4); }
.projet-done summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.projet-done summary::-webkit-details-marker { display: none; }
.projet-done .projet-icon { font-size: 1.7rem; }
.projet-done-text { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.projet-done-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.projet-done-text span { font-size: 0.78rem; color: var(--text-muted); }
.projet-done-badge {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ddc7d;
  border: 1px solid rgba(74, 180, 74, 0.35);
  background: rgba(74, 180, 74, 0.1);
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .projet-card { padding: 1.4rem 1.2rem 1.6rem; }
  .projet-head { flex-wrap: wrap; }
  .projet-pct { text-align: left; width: 100%; display: flex; align-items: baseline; gap: 0.6rem; }
  .projet-done-badge { display: none; }
}

/* =============================================
   GALERIE
============================================= */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.gallery-filter {
  background: rgba(106, 60, 240, 0.14);
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.gallery-filter:hover {
  border-color: rgba(217, 204, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}
.gallery-filter.active {
  background: var(--primary);
  border-color: var(--accent);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(217, 204, 255, 0.45);
  box-shadow: 0 14px 44px rgba(106, 60, 240, 0.3);
  outline: none;
}
.gallery-item.is-hidden { display: none; }

.gallery-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--g1, var(--primary)), var(--g2, var(--bg-dark)));
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.3));
  overflow: hidden;
  transition: transform 0.5s ease;
}
.gallery-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover .gallery-ph { transform: scale(1.05); }

.gallery-cap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1.1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.4;
}
.gallery-album {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star);
}

.gallery-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Admin gallery thumbnail */
.gallery-admin-thumb {
  width: 52px; height: 52px; border-radius: 8px;
  background: linear-gradient(135deg, #4526c4, #241686);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; overflow: hidden;
}
.gallery-admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(16, 8, 64, 0.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }

.lightbox-content {
  position: relative;
  max-width: 640px;
  width: 100%;
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.lightbox.open .lightbox-content { transform: scale(1); }

.lightbox-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5rem, 18vw, 10rem);
  background: linear-gradient(135deg, var(--primary), var(--bg-dark));
  border: 1px solid var(--border);
  border-radius: 1rem;
  filter: drop-shadow(0 0 30px rgba(217, 204, 255, 0.35));
}

.lightbox-cap {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 2.6rem; height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  background: rgba(21, 11, 82, 0.7);
  border: 1px solid rgba(217, 204, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover {
  background: rgba(106, 60, 240, 0.5);
  border-color: var(--accent);
  transform: scale(1.08);
}

/* =============================================
   PARTENAIRES
============================================= */
.partner-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.partner-tier {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.6rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.partner-tier:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 204, 255, 0.4);
  box-shadow: 0 10px 36px rgba(106, 60, 240, 0.28);
}
.partner-tier-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 1rem;
}
.partner-tier h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}
.partner-tier p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }

.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  aspect-ratio: 16 / 10;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}
.partner-logo:hover { transform: translateY(-4px); border-color: rgba(217, 204, 255, 0.4); }

.partner-logo-mark {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}
.partner-logo-name {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.partner-logo-empty {
  border-style: dashed;
  border-color: rgba(217, 204, 255, 0.25);
}
.partner-logo-empty .partner-logo-mark { color: var(--text-muted); }
.partner-logo-empty .partner-logo-name { color: var(--text-muted); }

/* =============================================
   ESPACE MEMBRES — AUTH (membre.html)
============================================= */
#auth-section {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
}

.auth-wrap {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}

.auth-tab:hover { color: var(--white); }

.auth-tab.active {
  color: var(--white);
  background: rgba(106, 60, 240, 0.25);
  border-bottom: 2px solid var(--star);
}

.auth-panel {
  display: none;
  padding: 2rem 2.5rem 2.5rem;
}

.auth-panel.active { display: block; }

.auth-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.auth-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
}

.auth-error {
  font-size: 0.82rem;
  color: var(--rose);
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.auth-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.83rem;
  color: var(--accent);
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}
.auth-link:hover { color: var(--star); }

/* =============================================
   ESPACE MEMBRES — PROFIL (profil.html)
============================================= */
#profil-section { padding: 4rem 2rem 6rem; }

.profil-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.profil-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.profil-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4526c4);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 0 24px rgba(106, 60, 240, 0.5);
}

.profil-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin: 0;
}

.profil-email {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profil-role {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star);
  background: rgba(255, 140, 192, 0.1);
  border: 1px solid rgba(255, 140, 192, 0.25);
  border-radius: 2rem;
  padding: 0.25rem 0.8rem;
}

.profil-logout {
  margin-top: 1rem;
  background: none;
  border: 1px solid rgba(255, 77, 141, 0.4);
  border-radius: 2rem;
  color: rgba(255, 77, 141, 0.8);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.profil-logout:hover {
  background: rgba(255, 77, 141, 0.1);
  color: var(--rose);
  border-color: var(--rose);
}

.profil-inscription {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.25s;
}
.profil-inscription:hover { border-color: rgba(217, 204, 255, 0.4); }

.profil-ins-icon { font-size: 1.4rem; flex-shrink: 0; }

.profil-ins-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.profil-ins-info strong { font-size: 0.9rem; color: var(--white); }
.profil-ins-date { font-size: 0.72rem; color: var(--text-muted); }

.profil-desinscrit {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.profil-desinscrit:hover { border-color: var(--rose); color: var(--rose); }

/* =============================================
   ÉVÉNEMENTS — VUE CALENDRIER
============================================= */
.events-view-toggle {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
}
.events-toggle-btn {
  padding: .45rem 1.3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: .82rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
}
.events-toggle-btn.active,
.events-toggle-btn:hover {
  background: rgba(106, 60, 240, .3);
  border-color: var(--accent);
  color: var(--white);
}

.cal-wrapper {
  background: rgba(34, 20, 128, .35);
  border: 1px solid rgba(217, 204, 255, .12);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.cal-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(217, 204, 255, .08);
}
.cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.cal-nav-btn:hover { border-color: rgba(217,204,255,.4); color: var(--white); }
.cal-month-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: var(--white);
  text-transform: uppercase;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-head {
  padding: .55rem 0;
  text-align: center;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(217, 204, 255, .08);
}
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  font-size: .82rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-right: 1px solid rgba(217,204,255,.05);
  border-bottom: 1px solid rgba(217,204,255,.05);
  cursor: default;
  transition: background .15s;
  font-family: inherit;
}
.cal-day.cal-empty { visibility: hidden; }
.cal-day:not([disabled]):not(.cal-empty):hover { background: rgba(106,60,240,.2); cursor: pointer; }
.cal-day.cal-today .cal-num {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(106,60,240,.5);
  color: var(--white);
}
.cal-day.cal-has-event { color: var(--white); font-weight: 600; }
.cal-day.cal-selected  { background: rgba(106,60,240,.45) !important; }
.cal-num { line-height: 1; }
.cal-dots {
  display: flex; gap: 3px; align-items: center; justify-content: center;
  margin-top: 3px;
}
.cal-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
#calSelected {
  padding: 1.5rem;
  border-top: 1px solid rgba(217,204,255,.08);
}
#calSelected:empty { display: none; }
.cal-selected-title {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* =============================================
   ÉVÉNEMENTS — BOUTON INSCRIPTION
============================================= */
.event-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.event-inscrit-btn {
  background: rgba(106, 60, 240, 0.2);
  border: 1px solid rgba(217, 204, 255, 0.3);
  border-radius: 2rem;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.event-inscrit-btn:hover {
  background: rgba(106, 60, 240, 0.45);
  border-color: var(--accent);
  color: var(--white);
}
.event-inscrit-btn.is-inscrit {
  background: rgba(74, 180, 74, 0.12);
  border-color: rgba(74, 180, 74, 0.4);
  color: #7ddc7d;
}
.event-inscrit-btn.is-inscrit:hover {
  background: rgba(255, 77, 141, 0.1);
  border-color: rgba(255, 77, 141, 0.4);
  color: var(--rose);
}
.event-inscrit-btn.is-pending {
  background: rgba(200, 160, 40, 0.10);
  border-color: rgba(200, 160, 40, 0.35);
  color: #d4a030;
  cursor: pointer;
}
.event-inscrit-btn.is-pending:hover {
  background: rgba(255, 77, 141, 0.10);
  border-color: rgba(255, 77, 141, 0.4);
  color: var(--rose);
}
.event-inscrit-btn:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 768px) {
  .profil-grid { grid-template-columns: 1fr; }
  .event-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* =============================================
   NAV DROPDOWN — VERSION MOBILE
============================================= */
@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0.5rem 0 0 0.9rem;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-caret { display: none; }
}

/* =============================================
   COMPOSITION PLANÉTAIRE — MODALE
============================================= */
.comp-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,6,.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.comp-modal.comp-visible {
  opacity: 1;
  pointer-events: auto;
}

.comp-modal-inner {
  position: relative;
  background: linear-gradient(160deg, #190e60 0%, #211379 100%);
  border: 1px solid rgba(217,204,255,.2);
  border-radius: 1.1rem;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow: auto;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: 0 0 80px rgba(150,50,230,.12), 0 8px 40px rgba(0,0,0,.6);
}

.comp-close {
  position: absolute;
  top: .9rem; right: .9rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.8);
  border-radius: 50%;
  width: 2rem; height: 2rem;
  font-size: .85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  z-index: 1;
}
.comp-close:hover { background: rgba(255,255,255,.17); color: #fff; }

.comp-header { margin-bottom: 1.2rem; }
.comp-header h2 {
  font-size: clamp(.9rem, 2vw, 1.2rem);
  letter-spacing: .09em;
  color: #fff;
  margin: 0 0 .2rem;
  text-transform: uppercase;
}
.comp-header p {
  font-size: .7rem;
  letter-spacing: .12em;
  color: #d9ccff;
  text-transform: uppercase;
  margin: 0;
}

#compSVG {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  font-family: inherit;
}

/* Circle — scale in from center */
.comp-circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: compCircleIn .42s cubic-bezier(.2,.8,.3,1) both;
  animation-delay: var(--comp-delay, 0s);
}
@keyframes compCircleIn {
  from { opacity: 0; transform: scale(.35); }
  to   { opacity: 1; transform: scale(1); }
}

/* Lines and labels — fade in */
.comp-label-el {
  opacity: 0;
  animation: compFadeIn .28s ease both;
  animation-delay: var(--comp-delay, 0s);
}
@keyframes compFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Composition button inside planet panel */
.comp-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  width: 100%;
  padding: .58rem .9rem;
  background: rgba(217,204,255,.07);
  border: 1px solid rgba(217,204,255,.22);
  border-radius: .5rem;
  color: #d9ccff;
  font-size: .75rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  text-align: left;
  font-family: inherit;
}
.comp-btn:hover {
  background: rgba(217,204,255,.15);
  border-color: rgba(217,204,255,.42);
  color: #ece4ff;
}

@media (max-width: 520px) {
  .comp-modal-inner { padding: 1.5rem 1rem 1.2rem; }
}

/* =============================================
   DA 2026 — IDENTITÉ "OBS" (logo globe + étoile)
============================================= */
body { font-synthesis: none; }

html { scrollbar-color: var(--primary) var(--bg-deep); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--magenta)); border-radius: 10px; border: 2px solid var(--bg-deep); }

/* Titres : capitales à empattements du logo */
.section-title,
.hero-title,
.nav-logo-text .brand,
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 400;
}
.section-title {
  letter-spacing: 0.06em;
  text-shadow: 0 0 28px rgba(196, 60, 255, 0.35);
}
.nav-logo-text .brand { letter-spacing: 0.18em; }

/* Libellés : linéale condensée du sous-titre du logo */
.nav-links a,
.nav-dropdown-toggle,
.nav-dropdown-menu a,
.nav-logo-text .sub,
.hero-badge,
.section-label,
.btn-primary,
.btn-outline,
.form-submit,
.form-group label,
.page-card-link,
.news-link,
.news-tag,
.event-badge,
.event-month,
.stat-label,
.footer-col h4,
.scroll-hint,
.gallery-filter,
.auth-tab,
.solar-toggle,
.panel-back,
.tl-status,
.sat-year,
.sat-status,
.profil-role,
.events-toggle-btn,
.event-inscrit-btn,
.night-mode-btn {
  font-family: var(--font-ui);
  font-weight: 600;
}
.nav-links a,
.nav-dropdown-toggle { font-size: 0.92rem; letter-spacing: 0.12em; }
.nav-dropdown-menu a { font-size: 0.86rem; }
.nav-logo-text .sub { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--star); }
.section-label { font-size: 0.8rem; letter-spacing: 0.26em; }
.page-card-link,
.news-link { font-size: 0.86rem; }

.nav-links a::after { background: linear-gradient(90deg, var(--star), var(--magenta)); height: 2px; }

.hero-tagline {
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: 0.03em;
  color: #e9ddff;
}

/* Cartes : liseré rose-magenta façon étoile du logo */
.page-card,
.mission-card,
.partner-tier { position: relative; overflow: hidden; }
.page-card::before,
.mission-card::before,
.partner-tier::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--star), var(--magenta), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.page-card:hover::before,
.mission-card:hover::before,
.partner-tier:hover::before { opacity: 1; }

.page-card:hover,
.mission-card:hover,
.news-card:hover,
.partner-tier:hover,
.gallery-item:hover {
  border-color: rgba(255, 140, 192, 0.4);
  box-shadow: 0 16px 48px rgba(106, 60, 240, 0.35), 0 0 30px rgba(196, 60, 255, 0.12);
}

.btn-outline { border-color: rgba(255, 140, 192, 0.35); }
.btn-outline:hover { border-color: var(--star); color: var(--white); box-shadow: 0 0 18px rgba(255, 140, 192, 0.25); }

.event-date-block { background: var(--grad-brand); }
.event-day { font-weight: 400; }
.stat-number { font-family: var(--font-display); font-weight: 400; }
.stat-number span { color: var(--star); }

.page-banner::before {
  background:
    radial-gradient(ellipse 55% 60% at 50% 35%, rgba(196,60,255,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(106,60,240,0.25) 0%, transparent 75%);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--star);
  box-shadow: 0 0 0 3px rgba(255, 140, 192, 0.15);
}

/* Le mode nuit garde ses couleurs rouges */
body.night-mode { background: var(--bg-deep); }
body.night-mode .btn-primary,
body.night-mode .nav-cta,
body.night-mode .form-submit,
body.night-mode .event-date-block { background: var(--primary) !important; box-shadow: none; }
body.night-mode .section-title { text-shadow: none; }
body.night-mode .nav-logo img,
body.night-mode .footer-logo img { border-color: var(--accent); box-shadow: none; }

/* =============================================
   MODE VISION NOCTURNE
============================================= */
.night-mode-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(24, 14, 94, 0.85);
  border: 1px solid rgba(217, 204, 255, 0.3);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  user-select: none;
}
.night-mode-btn:hover {
  border-color: var(--accent);
  background: rgba(24, 14, 94, 0.97);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}
.night-mode-btn.active {
  background: rgba(25, 0, 0, 0.92);
  border-color: rgba(150, 30, 30, 0.65);
  color: #cc3333;
  box-shadow: 0 0 20px rgba(140, 15, 15, 0.4), 0 4px 20px rgba(0, 0, 0, 0.45);
}
.night-icon { font-size: 1rem; line-height: 1; }

body.night-mode {
  --bg-deep:    #0f0000;
  --bg-dark:    #0a0000;
  --primary:    #3d0000;
  --accent:     #993333;
  --star:       #882200;
  --rose:     #661100;
  --white:      #cc3333;
  --text-muted: #662222;
  --card-bg:    rgba(15, 0, 0, 0.85);
  --border:     rgba(100, 20, 20, 0.3);
}

body.night-mode nav {
  background: rgba(10, 0, 0, 0.92) !important;
  border-bottom-color: rgba(100, 20, 20, 0.3) !important;
}
body.night-mode .nav-links {
  background: rgba(8, 0, 0, 0.98) !important;
  border-bottom-color: rgba(100, 20, 20, 0.3) !important;
}
body.night-mode .nav-dropdown-menu {
  background: rgba(8, 0, 0, 0.98) !important;
  border-color: rgba(100, 20, 20, 0.3) !important;
}

body.night-mode footer {
  background: #050000 !important;
  border-top-color: rgba(100, 20, 20, 0.3) !important;
}

body.night-mode #hero::before {
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(80, 10, 10, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(50, 5, 2, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(50, 5, 2, 0.06) 0%, transparent 60%) !important;
}

body.night-mode #stats {
  background: linear-gradient(135deg, #080000 0%, #0a0000 100%) !important;
  border-color: rgba(100, 20, 20, 0.3) !important;
}

body.night-mode .event-date-block {
  background: linear-gradient(135deg, #3d0000, #1a0000) !important;
}

body.night-mode img {
  filter: grayscale(60%) sepia(50%) hue-rotate(-10deg) brightness(0.45) saturate(2.5);
}
body.night-mode .hero-logo {
  filter:
    grayscale(60%) sepia(50%) hue-rotate(-10deg) brightness(0.4) saturate(2.5)
    drop-shadow(0 0 18px rgba(150, 30, 30, 0.5)) !important;
  animation: none !important;
}

body.night-mode .sat-modal {
  background: rgba(6, 0, 0, 0.9) !important;
}
body.night-mode .sat-modal-dialog {
  background: #060000 !important;
  border-color: rgba(100, 20, 20, 0.3) !important;
}
body.night-mode .comp-modal-inner {
  background: linear-gradient(160deg, #0d0000 0%, #080000 100%) !important;
  border-color: rgba(100, 20, 20, 0.25) !important;
}
