/* =========================================================
   SFRP — ACCUEIL & MAINTENANCE
   Nécessite base.css (chargé avant).
   ========================================================= */

.section { padding-block: clamp(72px, 10vw, 140px); }

.lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.6;
}

h2.title {
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  line-height: 0.92;
}

/* ---------- Intro (une seule fois par session) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  pointer-events: none;
  animation: introOut 0.85s cubic-bezier(0.75, 0, 0.2, 1) 1.15s forwards;
}
.intro img {
  width: clamp(88px, 12vw, 132px);
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  animation: introIn 0.9s var(--ease) 0.1s forwards;
}
.no-intro .intro { display: none; }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Hero ---------- */
.hero {
  --intro: 1.35s;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.no-intro .hero { --intro: 0.05s; }

.hero__photo { position: absolute; inset: 0; z-index: -1; }
.hero__photo img {
  position: absolute;
  top: 0;
  left: 22%;
  height: 100%;
  width: auto;
  max-width: none;
  min-width: 78%;
  object-fit: cover;
  object-position: 40% 30%;
  filter: saturate(0.6) contrast(1.05) brightness(0.85);
  animation: heroPhoto 2.6s var(--ease) both;
  animation-delay: calc(var(--intro) - 0.2s);
}
@keyframes heroPhoto { from { transform: scale(1.06); } to { transform: scale(1); } }

/* voile : fondu vers la couleur primaire + lueur d'aube en bas */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 20%, rgba(20, 24, 19, 0.7) 45%, rgba(20, 24, 19, 0.1) 80%),
    linear-gradient(0deg, var(--ink) 0%, rgba(20, 24, 19, 0.55) 30%, rgba(20, 24, 19, 0) 62%),
    radial-gradient(80% 45% at 70% 100%, rgba(199, 183, 138, 0.16), transparent 70%);
}

.hero__inner {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding-block: 48px clamp(40px, 6vw, 72px);
}

.hero__title {
  font-size: clamp(4.25rem, 13.5vw, 12.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-top: 0.14em;
  margin-top: -0.14em;
}
.hero__title .line > span {
  display: block;
  transform: translateY(108%);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--intro) + var(--d, 0s));
}
@keyframes rise { to { transform: none; } }

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade 0.9s ease forwards;
  animation-delay: calc(var(--intro) + 0.55s);
}
@keyframes fade { to { opacity: 1; } }

.hero__copy { display: grid; gap: 28px; max-width: 46ch; }
.hero__copy p { font-size: 1.1875rem; color: rgba(236, 238, 228, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }

.hero__meta { display: grid; gap: 14px; justify-items: end; }
.status {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 24, 19, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 500;
}
.status.is-on { display: inline-flex; }
.status i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #8bd17c;
  box-shadow: 0 0 0 0 rgba(139, 209, 124, 0.6);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(139, 209, 124, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(139, 209, 124, 0); }
}
.status b { font-family: var(--display); font-size: 1.4rem; font-weight: 800; letter-spacing: 0.03em; }

.hero__front { position: absolute; left: 0; right: 0; bottom: 0; }

@media (max-width: 860px) {
  .hero { align-items: stretch; }
  .hero__photo img { left: 0; min-width: 100%; object-position: 62% 30%; }
  .hero__photo::after {
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(20, 24, 19, 0.9) 34%, rgba(20, 24, 19, 0.25) 70%, rgba(20, 24, 19, 0.5) 100%);
  }
  .hero__inner { align-content: end; }
  .hero__meta { justify-items: start; }
}

/* ---------- Le serveur ---------- */
.serveur {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.serveur__intro { display: grid; gap: 32px; position: sticky; top: calc(var(--nav-h) + 32px); }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { order: 2; color: var(--muted); font-size: 0.9rem; }
.facts dd { order: 1; margin: 0; font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; }

.trailer {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.trailer img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(0.7); transition: transform 0.8s var(--ease), filter 0.4s; }
.trailer:hover img { transform: scale(1.04); filter: saturate(0.7) brightness(0.85); }
.trailer__label {
  position: absolute;
  left: 20px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trailer__play {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  transition: background-color 0.2s, transform 0.3s var(--ease);
}
.trailer:hover .trailer__play { background: var(--coyote); transform: scale(1.08); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.principles li { padding-block: 28px 36px; border-top: 1px solid var(--line-strong); }
.principles h3 { margin-bottom: 12px; font-size: 2rem; line-height: 1; }
.principles p { color: var(--muted); }

@media (max-width: 980px) {
  .serveur { grid-template-columns: 1fr; }
  .serveur__intro { position: static; }
}
@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, auto); gap: 12px 24px; }
  .facts dd { font-size: 2.25rem; }
}

/* ---------- Factions ---------- */
.factions { padding-top: clamp(24px, 4vw, 48px); background: var(--ink); }
.factions__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.camps { position: relative; display: flex; min-height: min(88vh, 820px); }
.camp {
  --tint: #fff;
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  transition: flex-grow 0.7s var(--ease);
}
.camp--fr { --tint: #6b8fe8; --soft: var(--fr-soft); --main: var(--fr); }
.camp--ru { --tint: #e8635a; --soft: var(--ru-soft); --main: var(--ru); }

.camp__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.camp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--tint);
  mix-blend-mode: multiply;
  transition: opacity 0.6s;
}
.camp::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--ink) 4%, rgba(20, 24, 19, 0.78) 38%, rgba(20, 24, 19, 0.25) 100%);
}
.camp__body {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 560px;
  padding: clamp(28px, 4vw, 64px);
}
.camp h3 { font-size: clamp(3.75rem, 7.4vw, 7.5rem); font-weight: 900; line-height: 0.86; }
.camp--fr h3 { font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 0.94; }
.camp__body > p { max-width: 44ch; color: rgba(236, 238, 228, 0.88); }

.flag { display: flex; gap: 0; width: 72px; height: 8px; }
.flag i { flex: 1; }
.flag--fr i:nth-child(1) { background: var(--fr); }
.flag--fr i:nth-child(2) { background: #f4f4f0; }
.flag--fr i:nth-child(3) { background: var(--ru); }
.flag--ru i:nth-child(1) { background: #f4f4f0; }
.flag--ru i:nth-child(2) { background: var(--fr); }
.flag--ru i:nth-child(3) { background: var(--ru); }

.camp__list { display: grid; gap: 8px; }
.camp__list li { position: relative; padding-left: 22px; }
.camp__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 10px;
  background: var(--soft);
  transform: rotate(45deg) scale(0.75);
}
.camp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 8px; }

.camps__seam { position: relative; z-index: 4; flex: 0 0 2px; background: var(--ink); }
.camps__seam img {
  position: absolute;
  top: 50%; left: 50%;
  width: 84px; height: 84px;
  max-width: none;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--ink);
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (min-width: 981px) {
  .camps:hover .camp { flex-grow: 0.82; }
  .camps .camp:hover,
  .camps .camp:focus-within { flex-grow: 1.35; }
  .camp:hover .camp__photo { transform: scale(1.05); }
  .camp:hover::before { opacity: 0.55; }
}
@media (max-width: 980px) {
  .camps { flex-direction: column; min-height: 0; }
  .camp { min-height: 620px; }
  .camps__seam { flex: 0 0 2px; }
  .camps__seam img { width: 64px; height: 64px; }
}

/* ---------- Comment rejoindre ---------- */
.join__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: 12px; padding-top: 20px; border-top: 2px solid var(--line-strong); }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 8vw, 8rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--coyote);
}
.steps h3 { font-size: 1.9rem; line-height: 1; }
.steps p { color: var(--muted); }
.steps a { width: fit-content; color: var(--bone); text-underline-offset: 4px; font-weight: 500; }
.steps a:hover { color: var(--coyote); }
.join__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(40px, 6vw, 64px); }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--ink-2); }
.faq-sec__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.faq-sec__intro { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 32px); }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative;
  display: block;
  padding: 24px 56px 24px 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 20px; height: 2px;
  background: var(--coyote);
  transition: transform 0.35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details.is-open summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--coyote); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq details.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { max-width: 62ch; padding: 0 56px 28px 0; color: var(--muted); }

@media (max-width: 980px) {
  .faq-sec__grid { grid-template-columns: 1fr; }
  .faq-sec__intro { position: static; }
}

/* ---------- Règlement & staff ---------- */
.duty { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.duty__item {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(40px, 6vw, 88px) var(--gutter);
}
.duty__item:first-child { padding-left: max(var(--gutter), calc(50vw - var(--wrap) / 2)); }
.duty__item + .duty__item { border-left: 1px solid var(--line); }
.duty__item h2 { font-size: clamp(2.75rem, 5vw, 4.75rem); }
.duty__item p { max-width: 42ch; color: var(--muted); }
.duty__item .btn, .duty__item .btn-line { justify-self: start; margin-top: 8px; }
@media (max-width: 760px) {
  .duty { grid-template-columns: 1fr; }
  .duty__item:first-child { padding-left: var(--gutter); }
  .duty__item + .duty__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Modale trailer ---------- */
.modal {
  width: min(1000px, 92vw);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--bone);
}
.modal::backdrop { background: rgba(10, 12, 9, 0.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.modal__bar h2 { font-size: 1.6rem; }
.modal__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--bone); color: var(--ink); }
.modal__video { aspect-ratio: 16 / 9; background: #000; }
.modal__video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Page maintenance ---------- */
.pause {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 48px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.pause__photo { position: absolute; inset: 0; z-index: -1; }
.pause__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.4) brightness(0.55); }
.pause__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(20, 24, 19, 0.55), var(--ink) 100%); }
.pause__body { display: grid; justify-items: center; gap: 24px; max-width: 640px; }
.pause__body > img { width: 128px; height: auto; }
.pause__body h1 { font-size: clamp(3.5rem, 10vw, 8rem); font-weight: 900; line-height: 0.88; }
.pause__body p { max-width: 44ch; color: rgba(236, 238, 228, 0.86); }
.pause__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 8px; }
