/* polices hébergées sur le site (Fraunces et Inter, sous-ensemble latin) */
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500 700; font-display: swap; src: url('assets/fonts/fraunces-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 900; font-display: swap; src: url('assets/fonts/fraunces.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/inter.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #060a1c;
  --bg2: #0a1030;
  --panel: rgba(255, 255, 255, .045);
  --line: rgba(157, 180, 255, .18);
  --text: #e8ecff;
  --muted: #aab5dd;
  --accent: #9db4ff;
  --accent2: #5b7cff;
  --deep: #1a3fb8;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent2); color: #fff; }

.wrap { width: min(1200px, 92%); margin-inline: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }

/* scroll progress */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent2), var(--accent), #fff);
  box-shadow: 0 0 12px var(--accent2);
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(4%, calc((100% - 1200px) / 2));
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(6, 10, 28, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.brand img { filter: drop-shadow(0 0 8px rgba(157, 180, 255, .8)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.12); }
.links { display: flex; align-items: center; gap: 6px; }
.links a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 99px; font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .25s, background .25s;
}
.links a:not(.btn):hover, .links a.active { color: #fff; background: rgba(157, 180, 255, .12); }
.links a i { font-size: .7em; opacity: .7; }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 99px; font-weight: 600; font-size: .98rem;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-glow {
  color: #fff; background: linear-gradient(135deg, var(--accent2), var(--deep));
  box-shadow: 0 8px 30px -6px rgba(91, 124, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-glow::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -6px rgba(91, 124, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-glow:hover::before { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(157, 180, 255, .12); }

/* HERO */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 130px 0 90px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 20% 0%, #14205c 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, #0f2a7a 0%, transparent 50%),
    var(--bg);
}
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.aurora { position: absolute; inset: 0; z-index: -2; filter: blur(80px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; animation: float 18s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #3250d8; top: -10%; left: -8%; }
.aurora i:nth-child(2) { width: 420px; height: 420px; background: #6a8bff; bottom: -12%; right: 10%; animation-delay: -6s; opacity: .7; }
.aurora i:nth-child(3) { width: 340px; height: 340px; background: #19b6c9; top: 30%; left: 45%; animation-delay: -11s; opacity: .35; }
@keyframes float { 50% { transform: translate(60px, -40px) scale(1.15); } }
.hero-fleur {
  position: absolute; z-index: -1; width: min(780px, 90vw); left: -8%; bottom: -18%;
  opacity: .07; transform: rotate(-12deg); pointer-events: none;
}
.hero-inner { width: min(1200px, 92%); margin-inline: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px);
  font-size: .85rem; color: var(--muted); font-weight: 500;
}
.pill b { color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 5.2vw, 4.7rem);
  line-height: 1.02; letter-spacing: -.02em; margin: 24px 0 22px;
}
h1 em { font-weight: 700; }
.grad {
  background: linear-gradient(100deg, #fff 0%, var(--accent) 40%, #6a8bff 70%, #fff 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; perspective: 1200px; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted);
  animation: bounce 2.2s infinite;
}
@keyframes bounce { 50% { transform: translateY(8px); } }

/* LIVE DISCORD */
.live-band { padding: 56px 0 44px; background: linear-gradient(180deg, #0a1030, var(--bg)); border-bottom: 1px solid var(--line); }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.live-grid li {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 28px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.live-grid li::before { content: ''; position: absolute; inset: -40% 20% auto; height: 80%; background: radial-gradient(closest-side, rgba(91, 124, 255, .35), transparent); pointer-events: none; }
.live-grid li:hover { transform: translateY(-6px); border-color: rgba(157, 180, 255, .5); box-shadow: 0 30px 60px -28px rgba(91, 124, 255, .7); }
.live-grid li > i { display: grid; place-items: center; height: 28px; margin-bottom: 12px; font-size: 1.5rem; color: var(--accent); position: relative; }
.live-grid .dot { width: 14px; height: 14px; }
.live-grid b { position: relative; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; font-weight: 900; background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-grid span { position: relative; margin-top: 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
@media (max-width: 640px) {
  .live-grid { grid-template-columns: 1fr; gap: 12px; }
  .live-grid li { flex-direction: row; justify-content: center; gap: 16px; padding: 22px; }
  .live-grid li > i { margin: 0; }
  .live-grid span { margin: 0; text-align: left; max-width: 10ch; }
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section.slim { padding-block: clamp(60px, 8vw, 100px); }
.section.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 12%, var(--bg2) 88%, var(--bg) 100%); }
.head { margin-bottom: 56px; }
.head.center { text-align: center; }
.eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--accent); }
.head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--accent); }
h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.015em; margin: 14px 0 18px; }
h2 em { font-weight: 700; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-inline: auto; }

/* ABOUT */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.card {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  transition: transform .4s var(--ease), border-color .3s, background .3s, box-shadow .4s;
  position: relative; overflow: hidden;
}
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(157, 180, 255, .16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(157, 180, 255, .5); box-shadow: 0 24px 50px -24px rgba(91, 124, 255, .6); }
.card:hover::after { opacity: 1; }
.card > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--accent2), var(--deep)); box-shadow: 0 10px 24px -8px rgba(91, 124, 255, .8); }
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* GALLERY */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filters button {
  padding: 11px 24px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel);
  font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .3s var(--ease);
}
.filters button i { margin-right: 6px; }
.filters button:hover { color: #fff; border-color: var(--accent); }
.filters button.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent2), var(--deep)); box-shadow: 0 10px 28px -8px rgba(91, 124, 255, .8); }
.masonry { columns: 4 250px; column-gap: 18px; }
.work {
  position: relative; display: block; width: 100%; margin-bottom: 18px; border-radius: 18px; overflow: hidden;
  break-inside: avoid; cursor: zoom-in; background: #0b1230; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s, opacity .4s;
  animation: pop .6s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.work img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.work:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -24px rgba(91, 124, 255, .7); }
.work:hover img { transform: scale(1.07); }
.work .ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; padding: 18px;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 8, 26, .92)); opacity: 0; transition: opacity .35s;
}
.work:hover .ov, .work:focus-visible .ov { opacity: 1; }
.work .ov b { font-family: var(--serif); font-size: 1.15rem; }
.work .ov span { font-size: .83rem; color: var(--accent); }
.work .tag { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 99px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(6, 10, 28, .75); backdrop-filter: blur(8px); border: 1px solid var(--line); }
blockquote { color: var(--muted); flex: 1; }
figcaption { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 0 0 20px rgba(157, 180, 255, .45); }
figcaption b { display: block; font-size: 1.05rem; }
figcaption span { font-size: .84rem; color: var(--accent); }
.more { text-align: center; margin-top: 40px; color: var(--muted); }
.more a { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }

/* PARTNERS */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.partners div { width: 190px; height: 110px; display: grid; place-items: center; padding: 18px; border-radius: 20px; background: #f3f5ff; transition: transform .4s var(--ease), box-shadow .4s; }
.partners div:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 24px 50px -20px rgba(157, 180, 255, .7); }
.partners img { max-height: 70px; width: auto; object-fit: contain; }

/* JOIN */
.join { position: relative; padding: clamp(90px, 12vw, 150px) 0; text-align: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 120%, #2b4cd8 0%, transparent 60%), radial-gradient(ellipse at 50% -20%, #14205c, transparent 60%), var(--bg); }
.join::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('assets/quebecprojets2.webp') center / cover; opacity: .12; mix-blend-mode: luminosity; }
.join-logo { width: 110px; margin: 0 auto 10px; filter: drop-shadow(0 0 24px rgba(157, 180, 255, .9)); animation: bob 6s ease-in-out infinite; }
.join p { max-width: 62ch; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.join .cta { justify-content: center; margin-top: 40px; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding-top: 54px; background: #040716; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 30px; justify-content: start; }
.foot-links a { color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 1.15rem; transition: all .3s var(--ease); }
.social a:hover { background: var(--accent2); border-color: var(--accent2); transform: translateY(-5px) rotate(-6deg); box-shadow: 0 12px 26px -8px var(--accent2); }
.copy { text-align: center; margin-top: 46px; padding: 22px 4%; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

.totop { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent2), var(--deep)); box-shadow: 0 10px 30px -6px rgba(91, 124, 255, .8); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translateY(-4px); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(3, 6, 20, .92); backdrop-filter: blur(14px); animation: fade .3s; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { max-width: min(1000px, 86vw); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 16px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); animation: pop .45s var(--ease); }
.lightbox figcaption { display: block; border: 0; margin-top: 18px; padding: 0; }
.lightbox figcaption b { font-family: var(--serif); font-size: 1.4rem; }
.lightbox figcaption span { display: block; color: var(--accent); font-size: .95rem; }
.lb-close, .lb-nav { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 1.1rem; transition: background .25s, transform .25s; }
.lb-close:hover, .lb-nav:hover { background: var(--accent2); }
.lb-close { top: 24px; right: 24px; }
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hero-inner, .about { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .burger { display: flex; }
  .links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 80px 28px;
    background: rgba(6, 10, 28, .96); backdrop-filter: blur(20px); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .links.open { transform: none; }
  .links a:not(.btn) { font-size: 1.1rem; padding: 14px 16px; }
  .links .btn { margin-top: 12px; }
  .burger { z-index: 2; }
}
@media (max-width: 640px) {
  .masonry { columns: 2; column-gap: 12px; }
  .work { margin-bottom: 12px; border-radius: 14px; }
  .work .ov { opacity: 1; padding: 10px; background: linear-gradient(180deg, transparent 55%, rgba(4, 8, 26, .9)); }
  .work .ov b { font-size: .9rem; }
  .work .ov span { font-size: .72rem; }
  .work .tag { display: none; }
  .lb-nav { top: auto; bottom: 20px; }
  .lb-nav.prev { left: 20%; } .lb-nav.next { right: 20%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== PAGES INTERNES ===== */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
.narrow { width: min(900px, 92%); }

.page-head {
  position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 80px;
  background: radial-gradient(ellipse at 15% 0%, #14205c 0%, transparent 60%), radial-gradient(ellipse at 100% 100%, #0f2a7a 0%, transparent 55%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 20px 0 18px; max-width: 18ch; }
.page-head .lead { max-width: 60ch; }
.page-head .cta { margin-top: 28px; }
.crumbs { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: .6rem; opacity: .6; }
.crumbs span { color: var(--accent); font-weight: 600; }

.go { color: var(--accent); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.go i { transition: transform .3s var(--ease); }
.more .btn + .btn { margin-left: 12px; }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.more .btn + .btn { margin-left: 0; }

/* live band variants */
.dot-lg { display: grid; place-items: center; }
.live-band.mini { padding: 34px 0; }
.live-band.mini .live-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.live-band.mini .live-grid li { padding: 24px 16px 20px; }
.live-band.mini .live-grid b { font-size: clamp(2rem, 4vw, 3rem); }

/* portals */
.portals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portal {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 400px; padding: 28px; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: #0b1230; transition: transform .5s var(--ease), box-shadow .5s, border-color .3s;
}
.portal::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover; transition: transform 1s var(--ease); }
.portal::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 10, 28, .25) 0%, rgba(6, 10, 28, .92) 65%), radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(157, 180, 255, .22), transparent 60%); }
.portal:hover { transform: translateY(-8px); border-color: rgba(157, 180, 255, .55); box-shadow: 0 40px 70px -30px rgba(91, 124, 255, .75); }
.portal:hover::before { transform: scale(1.1); }
.portal > i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.3rem; background: rgba(10, 16, 48, .7); border: 1px solid var(--line); backdrop-filter: blur(8px); margin-bottom: auto; }
.portal h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
.portal p { color: #c3cbee; font-size: .92rem; margin-bottom: 18px; }
.portal:hover .go i { transform: translateX(6px); }

/* feature grids */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features.four { grid-template-columns: repeat(4, 1fr); }
.head .sub b { color: #fff; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(157, 180, 255, .5); background: rgba(91, 124, 255, .08); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(157, 180, 255, .14); color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent2); color: #fff; }
.faq p { padding: 0 24px 22px; color: var(--muted); }
.faq p a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 34px 28px 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); transition: transform .4s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(157, 180, 255, .5); }
.step > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; font-family: var(--serif); font-weight: 900; font-size: 1.3rem; background: linear-gradient(135deg, var(--accent2), var(--deep)); box-shadow: 0 10px 24px -8px rgba(91, 124, 255, .8); }
.step h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; }
.step a { color: var(--accent); border-bottom: 1px solid currentColor; }
.steps + .more { margin-top: 44px; }

/* leaders */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.leader { text-align: center; padding: 38px 24px 30px; border-radius: 26px; border: 1px solid var(--line); background: var(--panel); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.leader:hover { transform: translateY(-8px); border-color: rgba(157, 180, 255, .5); box-shadow: 0 30px 60px -28px rgba(91, 124, 255, .6); }
.leader img { width: 140px; height: 140px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); box-shadow: 0 0 40px rgba(157, 180, 255, .45); }
.leader h3 { font-family: var(--serif); font-size: 1.6rem; }
.leader .role { display: inline-block; margin: 8px 0; padding: 4px 16px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(91, 124, 255, .25); color: var(--accent); border: 1px solid var(--line); }
.leader p { color: var(--muted); font-size: .92rem; }
.leaders + .more { margin-top: 40px; display: block; text-align: center; }

/* socials */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.soc { display: flex; flex-direction: column; padding: 30px 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); transition: transform .4s var(--ease), border-color .3s, background .3s, box-shadow .4s; }
.soc:hover { transform: translateY(-8px); border-color: rgba(157, 180, 255, .55); background: rgba(91, 124, 255, .12); box-shadow: 0 30px 60px -28px rgba(91, 124, 255, .7); }
.soc > i { font-size: 2.4rem; color: var(--accent); margin-bottom: 18px; }
.soc h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 6px; }
.soc p { color: var(--muted); font-size: .92rem; flex: 1; }
.soc .go { margin-top: 18px; font-size: .84rem; word-break: break-all; }
.soc:hover .go i { transform: translateX(6px); }

.about-text > p:not(.eyebrow) + p { margin-top: 14px; }
.about-text .cta { margin-top: 28px; }

@media (max-width: 1100px) {
  .portals { grid-template-columns: repeat(2, 1fr); }
  .features.four, .socials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .features, .steps, .leaders { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .page-head { padding: 130px 0 60px; }
}
@media (max-width: 640px) {
  .portals, .features.four, .socials { grid-template-columns: 1fr; }
  .portal { min-height: 320px; }
}

/* ===== PUBLICATIONS ===== */
.pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pub { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.pub:hover { transform: translateY(-6px); border-color: rgba(157, 180, 255, .5); box-shadow: 0 30px 60px -28px rgba(91, 124, 255, .6); }
.pub .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #14267a, #0b1230); }
.pub .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pub:hover .cover img { transform: scale(1.08); }
.pub .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: rgba(157, 180, 255, .5); }
.tag.annonce, .tag.animation { display: inline-block; padding: 5px 14px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(6, 10, 28, .8); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.tag.animation { color: #ffd98a; }
.tag.annonce { color: var(--accent); }
.pub .cover .tag { position: absolute; top: 14px; left: 14px; }
.pub .body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pub time { font-size: .8rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.pub h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin: 6px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pub p { color: var(--muted); font-size: .93rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pub .go { margin-top: 16px; }
.pub:hover .go i { transform: translateX(6px); }
.pubs + .more, .pubs + .empty + .more { margin-top: 40px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.pub-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.pub-tools .filters { margin: 0; justify-content: flex-start; }
.search { position: relative; flex: 0 1 340px; width: 100%; }
.search i { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 13px 20px 13px 46px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; transition: border-color .3s, box-shadow .3s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 124, 255, .25); }

/* lecteur de publication */
.reader { position: fixed; inset: 0; z-index: 300; overflow-y: auto; padding: 5vh 4%; background: rgba(3, 6, 20, .9); backdrop-filter: blur(14px); animation: fade .3s; }
.reader[hidden] { display: none; }
.sheet { position: relative; width: min(820px, 100%); margin: 0 auto; padding: 44px clamp(22px, 5vw, 52px) 40px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, #0f1745, #0a1030); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9); animation: pop .45s var(--ease); }
.sheet .lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; }
.rd-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--accent); font-weight: 600; font-size: .88rem; }
.sheet h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 22px; padding-right: 40px; }
.rd-imgs { display: grid; gap: 12px; margin-bottom: 24px; }
.rd-imgs img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.rd-body { color: #d3d9f5; margin-bottom: 30px; overflow-wrap: anywhere; }
.rd-body p { margin-bottom: 12px; }
.rd-body h4 { font-family: var(--serif); font-size: 1.25rem; margin: 20px 0 8px; color: #fff; }
.rd-body ul { margin: 0 0 14px 22px; list-style: disc; }
.rd-body li { margin-bottom: 4px; }
.rd-body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.rd-body blockquote { margin: 0 0 12px; padding: 4px 16px; border-left: 3px solid var(--accent2); color: var(--muted); }
.rd-body code, .rd-body pre { background: rgba(255, 255, 255, .08); border-radius: 8px; font-size: .9em; }
.rd-body code { padding: 2px 6px; }
.rd-body pre { padding: 14px; margin-bottom: 12px; overflow-x: auto; white-space: pre-wrap; }

@media (max-width: 1000px) { .pubs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pubs { grid-template-columns: 1fr; } .pub-tools .search { flex-basis: 100%; } }

/* équipe : profils reliés à Discord */
a.leader { display: block; color: inherit; }
.leader .dc { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; font-size: .82rem; color: var(--muted); transition: color .3s; }
.leader:hover .dc { color: var(--accent); }
.leader img { background: #0b1230; }
.leaders.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.leaders.grid .leader { flex: 0 1 calc((100% - 72px) / 5); min-width: 170px; }
.leader.sm { padding: 28px 16px 22px; border-radius: 22px; }
.leader.sm img { width: 104px; height: 104px; margin-bottom: 16px; }
.leader.sm h3 { font-size: 1.25rem; overflow-wrap: anywhere; }
.leaders.grid + .more { margin-top: 40px; display: block; text-align: center; }
@media (max-width: 900px) { .leaders.grid { max-width: none; } .leaders.grid .leader { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 560px) { .leaders.grid .leader { flex-basis: calc((100% - 18px) / 2); min-width: 0; } }

/* équipe : direction, modération et animation forment un seul bloc visuel */
.section.grp-first { padding-bottom: 0; }
.section.grp-mid { padding-block: clamp(48px, 6vw, 72px) 0; }
.section.grp-last { padding-top: clamp(48px, 6vw, 72px); }
.grp .head { margin-bottom: 36px; }

/* bandeau d'invitation animé : pas de photo de fond */
.join.fx::before { display: none; }

/* bandeau d'invitation animé (page Équipe) */
.join.fx { background: radial-gradient(ellipse at 50% 120%, #1d3bb8 0%, transparent 60%), linear-gradient(180deg, #060a1c, #0a1236 60%, #0b1442); }
.join.fx .wrap { position: relative; }
.join-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.join-fx::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 58% at 50% 50%, rgba(6, 10, 28, .88), transparent 75%); }
.join-fx .aurora { opacity: .5; }
.join-fx .aurora i:nth-child(1) { top: -30%; left: 5%; background: #1fd1a5; opacity: .45; }
.join-fx .aurora i:nth-child(2) { bottom: -35%; right: 0; background: #5b7cff; }
.join-fx .aurora i:nth-child(3) { top: 10%; left: 60%; background: #a46bff; opacity: .4; }
.ribbon { position: absolute; left: -10%; right: -10%; top: -25%; height: 65%; background: linear-gradient(100deg, transparent 5%, rgba(34, 211, 165, .38) 30%, rgba(91, 124, 255, .5) 60%, transparent 95%); filter: blur(46px); transform: skewY(-8deg); animation: sway 14s ease-in-out infinite alternate; }
.ribbon.r2 { top: -5%; height: 45%; opacity: .6; background: linear-gradient(80deg, transparent 10%, rgba(164, 107, 255, .4) 45%, rgba(34, 211, 165, .3) 75%, transparent 95%); animation-duration: 19s; animation-direction: alternate-reverse; }
@keyframes sway { from { transform: skewY(-8deg) translateX(-4%); } to { transform: skewY(5deg) translateX(4%) scale(1.06); } }
.stars {
  position: absolute; inset: 0; opacity: .85; animation: twinkle 5s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, #fff, transparent), radial-gradient(1px 1px at 110px 90px, #cfe0ff, transparent),
    radial-gradient(1.5px 1.5px at 190px 20px, #fff, transparent), radial-gradient(1px 1px at 250px 130px, #fff, transparent),
    radial-gradient(2px 2px at 70px 160px, #bcd0ff, transparent), radial-gradient(1px 1px at 160px 190px, #fff, transparent);
  background-size: 280px 220px;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .9; } }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin var(--t) linear infinite var(--dir); }
.orbit::before { content: ''; position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 1px dashed rgba(157, 180, 255, .28); border-radius: 50%; }
.orbit.o1 { --t: 80s; --r: 300px; --dir: normal; --rdir: reverse; }
.orbit.o2 { --t: 130s; --r: 490px; --dir: reverse; --rdir: normal; }
.sat { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.sat img { max-width: none; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); background: #0b1230; box-shadow: 0 0 26px rgba(157, 180, 255, .65); animation: spin var(--t) linear infinite var(--rdir); }
.join.fx .join-logo { filter: drop-shadow(0 0 30px rgba(157, 180, 255, .95)) drop-shadow(0 0 60px rgba(91, 124, 255, .6)); }
.join.fx h2 { text-shadow: 0 6px 40px rgba(6, 10, 28, .9); }
.join .pill { margin-bottom: 22px; }
@media (max-width: 760px) {
  .orbit.o1 { --r: 190px; } .orbit.o2 { --r: 300px; }
  .sat img { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

/* À propos : introduction centrée (sans image) */
.about.solo { grid-template-columns: 1fr; width: min(820px, 92%); text-align: center; }
.about.solo .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--accent); }
.about.solo .cta { justify-content: center; }

/* À propos : sections rapprochées, fond continu */
body[data-page="propos"] .section { padding-block: clamp(32px, 4vw, 52px); }
body[data-page="propos"] .section.alt { background: none; }
body[data-page="propos"] .page-head + .section { padding-top: clamp(56px, 7vw, 88px); }
body[data-page="propos"] .section:last-of-type { padding-bottom: clamp(72px, 9vw, 110px); }
body[data-page="propos"] .head { margin-bottom: 32px; }

/* Accueil : espacement équilibré, fond continu */
body[data-page="accueil"] .section { padding-block: clamp(56px, 7vw, 92px); }
body[data-page="accueil"] .section.alt { background: none; }
body[data-page="accueil"] .live-band + .section { padding-top: clamp(64px, 8vw, 104px); }
body[data-page="accueil"] .head { margin-bottom: 44px; }
body[data-page="accueil"] .section.slim { padding-block: clamp(40px, 5vw, 64px); }
body[data-page="accueil"] .join { padding-block: clamp(80px, 10vw, 128px); }
body[data-page="accueil"] .live-band { padding-block: 48px 40px; }

/* en-têtes des pages internes : fond généré (aurore, étoiles, orbites) */
.page-head .wrap { position: relative; }
.head-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.head-fx .ribbon { top: -40%; height: 90%; opacity: .75; }
.head-fx .ribbon.r2 { top: 10%; height: 60%; }
.head-orbits { position: absolute; left: max(78%, calc(50% + 400px)); top: 60%; width: 0; height: 0; }
.head-orbits .core { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; max-width: none; filter: drop-shadow(0 0 22px rgba(157, 180, 255, .95)) drop-shadow(0 0 50px rgba(91, 124, 255, .6)); animation: bob 6s ease-in-out infinite; }
.head-orbits .orbit.o1 { --t: 60s; --r: 105px; }
.head-orbits .orbit.o2 { --t: 100s; --r: 180px; }
.head-orbits .sat img, .ico { position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; object-fit: cover; max-width: none; border: 2px solid rgba(157, 180, 255, .7); background: #0b1230; box-shadow: 0 0 22px rgba(157, 180, 255, .55); animation: spin var(--t) linear infinite var(--rdir); }
.head-orbits .sat img.sq { border-radius: 14px; }
.ico { display: grid; place-items: center; color: #fff; font-size: 1.15rem; background: linear-gradient(135deg, var(--accent2), var(--deep)); }
@media (max-width: 1180px) { .head-orbits { display: none; } }

/* photos de membres tirées au sort : invisibles tant que l'image n'est pas chargée */
img[data-random]:not([src]) { visibility: hidden; }

/* page 404 */
.err { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; place-items: center; padding: 130px 4% 90px; text-align: center;
  background: radial-gradient(ellipse at 20% 0%, #14205c 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #0f2a7a 0%, transparent 50%), var(--bg); }
.err-inner { width: min(760px, 100%); }
.err-code { display: flex; justify-content: center; align-items: center; gap: .04em; font-family: var(--serif); font-weight: 900; font-size: clamp(6.5rem, 22vw, 14rem); line-height: 1; margin-bottom: 10px; }
.err-code span { background: linear-gradient(100deg, #fff 0%, var(--accent) 40%, #6a8bff 70%, #fff 100%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.err-code img { height: .8em; width: auto; max-width: none; filter: drop-shadow(0 0 24px rgba(157, 180, 255, .95)) drop-shadow(0 0 56px rgba(91, 124, 255, .65)); animation: bob 6s ease-in-out infinite; }
.err h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 6px 0 16px; max-width: none; }
.err .lead { margin-inline: auto; }
.err .cta { justify-content: center; }
.err-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.err-links a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: .92rem; font-weight: 500; color: var(--muted); transition: all .3s var(--ease); }
.err-links a:hover { color: #fff; border-color: var(--accent); background: rgba(157, 180, 255, .12); transform: translateY(-3px); }
.err-links i { color: var(--accent); }

/* ===== 1. Rythme de la page d'accueil ===== */
/* bande « mission » en pleine largeur, photo en parallaxe */
.statement { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(90px, 12vw, 170px) 4%;
  background: linear-gradient(180deg, rgba(6, 10, 28, .92), rgba(10, 22, 70, .42) 40%, rgba(10, 22, 70, .42) 60%, rgba(6, 10, 28, .92)), var(--img) center / cover fixed; }
.statement::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(91, 124, 255, .22), transparent 70%); }
.statement blockquote { color: #fff; flex: none; font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 5.4vw, 4.2rem); line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; margin: 18px auto 30px; text-shadow: 0 8px 50px rgba(6, 10, 28, .9); }
.statement blockquote em { font-weight: 700; }
.statement-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.statement-tags li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); background: rgba(10, 16, 48, .6); backdrop-filter: blur(10px); font-size: .9rem; font-weight: 500; }
.statement-tags i { color: var(--accent); }
@media (hover: none), (max-width: 900px) { .statement { background-attachment: scroll; } }

/* « Pourquoi nous rejoindre » : texte collant à gauche, liste à droite */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.why-text { position: sticky; top: 120px; }
.why-text h2 { margin-bottom: 18px; }
.why-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.why-list { display: grid; }
.why-list li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: transform .4s var(--ease); }
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list li:hover { transform: translateX(8px); }
.ico-ring { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 1.15rem; color: var(--accent); border: 1px solid var(--line); background: rgba(91, 124, 255, .1); transition: background .3s, color .3s, border-color .3s; }
.why-list li:hover .ico-ring { background: linear-gradient(135deg, var(--accent2), var(--deep)); color: #fff; border-color: transparent; }
.why-list h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; }
.why-list p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why-text { position: static; } }

/* ===== 2. Identité : accent chaud, motif fleur de lys, cartes unifiées ===== */
:root { --gold: #f6c05d; --gold2: #ec9a35; --r: 22px; --shadow-hover: 0 26px 54px -26px rgba(91, 124, 255, .65); }
body { background-image: url('assets/pattern.png'); background-size: 240px 240px; }

.progress { background: linear-gradient(90deg, var(--accent2), var(--accent), var(--gold)); box-shadow: 0 0 12px rgba(246, 192, 93, .6); }
::selection { background: var(--gold); color: #1b1204; }

/* détails importants : or */
.eyebrow::before, .head.center .eyebrow::after, .about.solo .eyebrow::after { background: var(--gold); }
.eyebrow { color: var(--gold); }
.live-grid li > i:not(.dot-lg) { color: #fff; }
.live-grid b { background: none; color: #fff; }
.leader .role { color: var(--gold); border-color: rgba(246, 192, 93, .35); background: rgba(246, 192, 93, .1); }
.statement-tags i, .err-links i { color: #fff; }
.go { color: var(--gold); }

/* cartes : un seul langage (rayon, bordure, survol) */
.card, .step, .leader, .soc, .pub { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s, background .3s; }
.card:hover, .step:hover, .leader:hover, .soc:hover, .pub:hover { transform: translateY(-6px); border-color: rgba(157, 180, 255, .5); box-shadow: var(--shadow-hover); }
.portal, .work { border-radius: var(--r); }

/* ===== 3. Hero : module Discord en direct ===== */
.dc-card { width: min(470px, 100%); margin-left: auto; padding: 28px; border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 32, 92, .72), rgba(10, 16, 48, .72)); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 44px 90px -26px rgba(40, 80, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .25s ease-out; transform-style: preserve-3d; }
.dc-head { display: flex; align-items: center; gap: 14px; }
.dc-head b { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.dc-head span { font-size: .85rem; color: var(--muted); }
.dc-logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #6d7bff, #4752c4); box-shadow: 0 10px 26px -8px rgba(88, 101, 242, .9); }
.dc-head .dc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: .78rem; font-weight: 600; color: #bff5d2; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .3); }
.dc-online { margin: 28px 0 20px; }
.dc-online b { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(3.4rem, 6vw, 4.8rem); line-height: 1; color: #fff; }
.dc-online span { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dc-avatars { display: flex; align-items: center; padding-left: 14px; margin-bottom: 24px; }
.dc-avatars img { width: 50px; height: 50px; max-width: none; margin-left: -14px; border-radius: 50%; object-fit: cover; border: 3px solid #0d1650; background: #0b1230; }
.dc-more { margin-left: 14px; font-size: .85rem; color: var(--muted); }
.dc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.dc-rows div { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.dc-rows i { color: #fff; font-size: 1.05rem; }
.dc-rows b { color: #fff; font-size: 1.05rem; }
.dc-card .btn { width: 100%; }
@media (max-width: 1000px) { .dc-card { margin-inline: auto; } }

/* ===== 4. Images : même traitement partout ===== */
.work, .pub .cover { position: relative; border-radius: var(--r); overflow: hidden; background: #0b1230; }
.pub .cover { border-radius: var(--r) var(--r) 0 0; }
.pub .cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(91, 124, 255, 0) 45%, rgba(10, 22, 70, .6)); opacity: 0; transition: opacity .4s; }
.pub:hover .cover::after { opacity: 1; }
.work img, .pub .cover img, .portal::before { transition: transform .9s var(--ease), filter .5s; }
.work:hover img, .pub:hover .cover img { transform: scale(1.06); filter: saturate(1.08) contrast(1.03); }
.dc-head .dc-logo { color: #fff; }

/* ===== 5. Moins d'animations simultanées ===== */
.fx-paused *, .fx-paused *::before, .fx-paused *::after { animation-play-state: paused !important; }
/* aurore : dégradés radiaux au lieu d'un flou de 80 px (beaucoup moins coûteux pour le navigateur) */
.aurora { filter: none; opacity: .75; }
.aurora i { background: radial-gradient(closest-side, var(--c, #3250d8), transparent) !important; opacity: .9; }
.aurora i:nth-child(1) { --c: #3250d8; }
.aurora i:nth-child(2) { --c: #6a8bff; }
.aurora i:nth-child(3) { --c: #19b6c9; }
.join-fx .aurora i:nth-child(1) { --c: #1fd1a5; }
.join-fx .aurora i:nth-child(2) { --c: #5b7cff; }
.join-fx .aurora i:nth-child(3) { --c: #a46bff; }
.ribbon { filter: blur(30px); }
/* un seul ruban et des étoiles fixes dans les bandeaux et les en-têtes */
.join-fx .ribbon.r2, .head-fx .ribbon.r2 { display: none; }
.stars { animation: none; opacity: .6; }
/* texte en dégradé fixe, logos sans flottement, flèche immobile */
.grad, .err-code span { animation: none; background-position: 40% center; }
.join-logo, .head-orbits .core, .err-code img { animation: none; }
.scroll-hint { animation: none; }

/* ===== 6. Finitions ===== */
/* squelettes de chargement */
.skel { position: relative; overflow: hidden; background: rgba(157, 180, 255, .08); border-radius: var(--r); }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(157, 180, 255, .16), transparent); animation: skel 1.5s infinite; }
@keyframes skel { to { transform: translateX(100%); } }
#gallery > .skel { display: block; margin-bottom: 18px; break-inside: avoid; }
.skel-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.skel-card .cover { aspect-ratio: 16 / 10; border-radius: 0; }
.skel-card .body { padding: 22px 24px 26px; }
.skel-line { height: 12px; margin-top: 12px; border-radius: 6px; }

/* Équipe : une couleur par rôle, cartes plus grandes */
.leader[data-r="owner"] { --rc: #f6c05d; }
.leader[data-r="founder"] { --rc: #ff9f5a; }
.leader[data-r="admin"] { --rc: #b79bff; }
.leader[data-r="mod"] { --rc: #4fd1c5; }
.leader[data-r="anim"] { --rc: #ff8ac2; }
.leader[data-r] .role { color: var(--rc); border-color: color-mix(in srgb, var(--rc) 40%, transparent); background: color-mix(in srgb, var(--rc) 12%, transparent); }
.leader[data-r] img { border-color: var(--rc); box-shadow: 0 0 36px color-mix(in srgb, var(--rc) 45%, transparent); }
.leader[data-r]:hover { border-color: color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 26px 54px -26px color-mix(in srgb, var(--rc) 55%, transparent); }
.leader:not(.sm) img { width: 168px; height: 168px; }
.leader:not(.sm) h3 { font-size: 1.9rem; }
.leader.sm img { width: 124px; height: 124px; }
.leader.sm h3 { font-size: 1.35rem; }

/* petits écrans : le hero ne doit jamais dépasser la largeur de l'écran */
.hero-inner > * { min-width: 0; }
@media (max-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .dc-card { padding: 22px; }
  .dc-avatars img:nth-child(n+7), .dc-more { display: none; }
  .dc-rows { grid-template-columns: 1fr; }
  .dc-head .dc-live { display: none; }
}

/* ===== Accessibilité, préférences et nouveautés ===== */
[hidden] { display: none !important; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 400; padding: 10px 20px; border-radius: 99px; font-weight: 600; background: var(--gold); color: #1b1204; transition: top .2s; }
.skip:focus { top: 12px; }

/* commande de langue dans la barre de navigation */
.ctls { display: flex; gap: 6px; margin-inline: 4px; }
.ctl { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .8rem; font-weight: 700; transition: color .25s, border-color .25s, background .25s; }
.ctl:hover { color: var(--text); border-color: var(--accent); }
.calm-btn { margin-left: 16px; padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: .8rem; color: var(--muted); transition: color .25s, border-color .25s, background .25s; }
.calm-btn:hover { color: #fff; border-color: var(--accent); }
.calm-btn[aria-pressed="true"] { color: #fff; background: rgba(91, 124, 255, .3); border-color: var(--accent2); }
.links a:not(.btn) { padding-inline: 11px; }
.links { gap: 2px; }
@media (min-width: 1101px) and (max-width: 1260px) { .brand span { display: none; } }

/* option « réduire les animations » */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition-duration: .001s !important; }
html.calm { scroll-behavior: auto; }
html.calm .reveal { opacity: 1; transform: none; }

/* témoignages */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm { display: flex; flex-direction: column; padding: 30px 26px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.tm > i { margin-bottom: 14px; font-size: 1.4rem; color: #fff; }
.tm blockquote { flex: 1; color: var(--text); font-size: 1.02rem; }
.tm figcaption { display: block; margin-top: 20px; padding-top: 16px; }
.tm figcaption b { display: block; }
.tm figcaption span { color: var(--accent); }
@media (max-width: 900px) { .tm-grid { grid-template-columns: 1fr; } }
