/* =========================================================
   SFS FR — feuille de style principale
   Palette, typographie et composants du site
   ========================================================= */

:root {
  --bg: #0B1230;
  --bg-alt: #141B3D;
  --accent: #F5821F;
  --accent-light: #FF9E3D;
  --text: #FFFFFF;
  --text-muted: #C9D0E0;

  --border: rgba(201, 208, 224, 0.16);
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.35);

  --font-display: "Orbitron", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-display); letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Starfield background ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #ffffff 100%, transparent 100%),
    radial-gradient(1px 1px at 27% 62%, #ffffff 100%, transparent 100%),
    radial-gradient(2px 2px at 41% 32%, #ffffff 100%, transparent 100%),
    radial-gradient(1px 1px at 58% 78%, #ffffff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 12%, #ffffff 100%, transparent 100%),
    radial-gradient(1px 1px at 77% 48%, #ffffff 100%, transparent 100%),
    radial-gradient(2px 2px at 87% 68%, #ffffff 100%, transparent 100%),
    radial-gradient(1px 1px at 93% 22%, #ffffff 100%, transparent 100%),
    radial-gradient(1.5px 1.5px at 5% 85%, #ffffff 100%, transparent 100%),
    radial-gradient(1px 1px at 35% 92%, #ffffff 100%, transparent 100%);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: 0.55;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .starfield { animation: none; opacity: 0.5; }
  html { scroll-behavior: auto; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--bg);
  box-shadow: 0 10px 25px rgba(245, 130, 31, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 130, 31, 0.45); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn--small { padding: 0.55em 1.2em; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 48, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__logo { border-radius: 8px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.brand__name-accent { color: var(--accent); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav__link {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-muted);
}
.site-nav__link:hover { color: var(--accent-light); }
.site-nav__cta { margin-top: 16px; align-self: flex-start; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    transform: none;
    background: transparent;
    overflow: visible;
  }
  .site-nav__link { border-bottom: none; padding: 0; }
  .site-nav__cta { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 30px rgba(245, 130, 31, 0.3));
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(255, 158, 61, 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero__trail {
  display: block;
  margin: 48px auto 0;
  max-width: 720px;
  width: 100%;
  opacity: 0.9;
}

/* ---------- Sections generiques ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: block;
  margin-bottom: 10px;
}
.section__title { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.section__desc { color: var(--text-muted); }

/* ---------- Grille "pourquoi nous rejoindre" ---------- */
.reasons {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(4, 1fr); } }

.reason-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
}
.reason-card__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bg);
}
.reason-card h3 { font-size: 1.05rem; }
.reason-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Cartes tutos ---------- */
.tuto-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .tuto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tuto-grid { grid-template-columns: repeat(3, 1fr); } }

.tuto-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  height: 100%;
}
.tuto-card:hover { transform: translateY(-4px); border-color: rgba(255, 158, 61, 0.4); }
.tuto-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 130, 31, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(245, 130, 31, 0.35);
}
.tuto-card__date { font-size: 0.8rem; color: var(--text-muted); }
.tuto-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tuto-card p { color: var(--text-muted); font-size: 0.95rem; }
.tuto-card__link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  color: var(--accent-light);
}
.tuto-card__link::after { content: " ->"; }

.section__footer { text-align: center; margin-top: 36px; }

/* ---------- Filtres de tutos ---------- */
.tuto-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.tuto-filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tuto-filter:hover { border-color: var(--accent-light); color: var(--accent-light); }
.tuto-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.tuto-grid[data-tuto-grid] .tuto-card.is-hidden { display: none; }

/* ---------- Page tuto individuelle ---------- */
.tuto-article { padding: 48px 0 80px; }
.tuto-article__head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.tuto-article__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.tuto-article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tuto-article__body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.tuto-article__body h2 {
  color: var(--text);
  font-size: 1.35rem;
  margin-top: 1.6em;
}
.tuto-article__body h3 { color: var(--text); font-size: 1.1rem; margin-top: 1.4em; }
.tuto-article__body ul, .tuto-article__body ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.tuto-article__body li { margin-bottom: 0.5em; }
.tuto-article__body a { color: var(--accent-light); text-decoration: underline; }
.tuto-article__body strong { color: var(--text); }
.tuto-article__body code {
  background: rgba(255,255,255,0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.tuto-article__back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent-light);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-groups { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.faq-group__title {
  font-size: 1.1rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--accent-light);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 14px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item__answer-inner {
  padding: 0 20px 20px;
  color: var(--text-muted);
}
.faq-item.is-open .faq-item__answer { max-height: 400px; }

/* ---------- A propos ---------- */
.about-body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.about-body h2 { color: var(--text); font-size: 1.3rem; margin-top: 1.6em; }
.about-body ul { padding-left: 1.2em; list-style: disc; margin-bottom: 1.2em; }
.about-body li { margin-bottom: 0.5em; }
.about-body a { color: var(--accent-light); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  text-align: center;
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}
.site-footer__baseline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; }
.site-footer__legal { color: rgba(201, 208, 224, 0.6); font-size: 0.78rem; margin-top: 10px; }

/* ---------- Divider orbite (signature visuelle) ---------- */
.orbit-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 0.7;
}
