/* ==========================================================================
   KatteCraft — accueil v4 « Fjord », DA alignée sur la boutique :
   fond nuit #0c1220, aurore turquoise/violet, verre dépoli, accents
   turquoise #4fd1c5 et or #ffaa00. Scène vectorielle nocturne (aurore,
   montagnes, drakkar). Feuille autonome : chargée uniquement par index.html.
   ========================================================================== */

:root {
  --fond: #0c1220;                              /* même fond que la boutique */
  --texte: #eef2f7;
  --texte-doux: rgba(238, 242, 247, 0.72);
  --texte-faible: rgba(238, 242, 247, 0.45);
  --verre: rgba(255, 255, 255, 0.055);
  --verre-fort: rgba(255, 255, 255, 0.10);
  --bord: rgba(255, 255, 255, 0.12);
  --accent: #4fd1c5;                            /* turquoise KatteCraft */
  --or: #ffaa00;                                /* or du grade Roi */
  --rouille: #c24b3a;                           /* voiles de drakkar */
  --violet: #8b5cf6;                            /* aurore */
  --blurple: #5865f2;
  --radius: 16px;
  --ombre: 0 14px 34px -16px rgba(0, 0, 0, 0.55);
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --police: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.accueil-clair {
  font-family: var(--police);
  background: var(--fond);
  color: var(--texte);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fond aurore fixe — identique aux autres pages (style.css) */
.aurore {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 18% 22%, rgba(79, 209, 197, 0.32), transparent 72%),
    radial-gradient(58% 64% at 82% 18%, rgba(139, 92, 246, 0.28), transparent 72%),
    radial-gradient(62% 66% at 74% 82%, rgba(217, 119, 87, 0.26), transparent 72%),
    radial-gradient(56% 60% at 22% 84%, rgba(56, 128, 246, 0.26), transparent 72%),
    radial-gradient(44% 48% at 50% 50%, rgba(46, 196, 138, 0.14), transparent 72%);
  will-change: transform;
  animation: derive-fond 26s ease-in-out infinite alternate;
}

@keyframes derive-fond {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.02); }
}

/* Icônes SVG (sprite <symbol> en tête de page) */
.ic {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.32em;
  flex-shrink: 0;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(rgba(12, 18, 32, 0.94), rgba(12, 18, 32, 0.8) 80%, rgba(12, 18, 32, 0.45));
  transform: translateZ(0);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--texte);
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.nav-logo img { width: 32px; height: 32px; }

.nav-liens { display: flex; align-items: center; gap: clamp(0.7rem, 2.2vw, 1.6rem); flex-wrap: wrap; }

.nav-liens a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-liens a:hover, .nav-liens a.actif { color: var(--texte); }

.nav-liens .lien-compte {
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

.nav-liens .lien-compte:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* ---------- Hero « fjord », version nuit ---------- */

.fjord {
  position: relative;
  background: linear-gradient(180deg, #0d1526 0%, #102a3c 72%, #123246 100%);
  color: var(--texte);
  overflow: hidden;
  padding: clamp(3.2rem, 8vw, 6rem) 1.2rem 0;
  text-align: center;
}

.fjord-contenu {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: clamp(240px, 30vw, 380px);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.eyebrow-sombre { color: var(--or); margin-bottom: 0.8rem; }

.fjord h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 35%, #9be8df 80%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(79, 209, 197, 0.25));
  margin-bottom: 1.1rem;
}

.fjord-pitch {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--texte-doux);
  max-width: 560px;
  margin: 0 auto 1.9rem;
}

.fjord-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* CTA primaire : l'adresse du serveur */
.cta-ip {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--bord);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--police);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 14px 34px -12px rgba(79, 209, 197, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-ip:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(79, 209, 197, 0.5); }

.cta-ip:focus-visible, .cta-discord:focus-visible, .btn-second:focus-visible,
.nav a:focus-visible, .acces-carte:focus-visible, .onglet:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

.cta-ip-adresse {
  display: flex;
  align-items: center;
  padding: 0.95rem 1.3rem;
  color: var(--texte);
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
}

.cta-ip-action {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.85), rgba(56, 128, 246, 0.75));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.cta-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  background: var(--verre-fort);
  border: 1px solid var(--bord);
  color: var(--texte);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta-discord:hover { background: rgba(255, 255, 255, 0.17); transform: translateY(-2px); }

.fjord-statut {
  margin-top: 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texte-doux);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.point-vert {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43e97b;
  box-shadow: 0 0 10px #43e97b;
  display: inline-block;
  animation: pulse-point 2.4s ease-in-out infinite;
}

@keyframes pulse-point {
  0%, 100% { box-shadow: 0 0 4px #43e97b; }
  50%      { box-shadow: 0 0 14px #43e97b; }
}

/* La scène vectorielle nocturne, collée en bas du bandeau */
.scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(240px, 30vw, 420px);
  z-index: 1;
  pointer-events: none;
  display: block;
}

.aurore-rubans { animation: derive-aurore 14s ease-in-out infinite alternate; }

@keyframes derive-aurore {
  from { transform: translateX(-18px); opacity: 0.8; }
  to   { transform: translateX(18px);  opacity: 1; }
}

.drakkar { animation: flotte-drakkar 6s ease-in-out infinite; transform-origin: 720px 460px; }

@keyframes flotte-drakkar {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50%      { transform: translateY(-6px) rotate(0.5deg); }
}

/* ---------- Accès rapide ---------- */

.acces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1080px;
  margin: -2.4rem auto 0;
  padding: 0 1.2rem;
  position: relative;
  z-index: 3;
}

.acces-carte {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  background: rgba(16, 24, 40, 0.92);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--texte);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.acces-carte:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.acces-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--verre-fort);
  border: 1px solid var(--bord);
  color: var(--accent);
  font-size: 1.05rem;
}

.acces-ic-discord { background: var(--blurple); border-color: transparent; color: #fff; }

.acces-carte > span:nth-child(2) { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }

.acces-carte strong { font-family: var(--display); font-weight: 700; font-size: 1rem; }

.acces-carte small { color: var(--texte-doux); font-size: 0.8rem; font-weight: 500; line-height: 1.45; }

.acces-fleche { color: var(--texte-faible); transition: transform 0.16s ease, color 0.16s ease; }

.acces-carte:hover .acces-fleche { transform: translateX(4px); color: var(--accent); }

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.4rem, 8vw, 5.6rem) 1.2rem;
  text-align: center;
}

.section > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.section-brume { background: rgba(255, 255, 255, 0.025); }

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}

.section .sous-titre {
  color: var(--texte-doux);
  font-weight: 500;
  max-width: 600px;
  line-height: 1.7;
  font-size: 0.97rem;
  margin-bottom: 2.6rem;
}

.centre { text-align: center; margin-top: 2rem; }

/* ---------- Les trois actes ---------- */

.actes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
  text-align: left;
  margin-top: 2.4rem;
}

.acte {
  position: relative;
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.7rem;
  border-top: 4px solid var(--accent);
}

.acte:nth-child(2) { border-top-color: var(--or); }
.acte:nth-child(3) { border-top-color: var(--rouille); }

.acte-num {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--texte);
  opacity: 0.14;
}

.acte-ic { width: 1.9em; height: 1.9em; color: var(--accent); margin-bottom: 0.8rem; }

.acte:nth-child(2) .acte-ic { color: var(--or); }
.acte:nth-child(3) .acte-ic { color: var(--rouille); }

.acte h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.55rem; }

.acte p { color: var(--texte-doux); font-size: 0.9rem; line-height: 1.75; font-weight: 500; }

/* ---------- Onglets « Explore le jeu » ---------- */

.onglets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.onglet {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--bord);
  background: var(--verre);
  color: var(--texte-doux);
  font-family: var(--police);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.onglet:hover { color: var(--texte); border-color: rgba(255, 255, 255, 0.3); }

.onglet.actif {
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.85), rgba(56, 128, 246, 0.75));
  border-color: transparent;
  color: #fff;
}

.panneau-jeu {
  max-width: 680px !important;
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 4vw, 2.5rem);
}

.panneau-jeu h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }

.panneau-jeu p { color: var(--texte-doux); line-height: 1.8; font-size: 0.95rem; font-weight: 500; margin-bottom: 1.5rem; }

.panneau-boutons { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

.btn-second {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: var(--verre-fort);
  border: 1px solid var(--bord);
  color: var(--texte);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn-second:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-2px);
}

/* ---------- Chiffres ---------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.chiffre {
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 1.7rem 1.2rem;
}

.chiffre-num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--texte);
}

.chiffre-libelle { color: var(--texte-doux); font-size: 0.86rem; font-weight: 600; margin-top: 0.3rem; line-height: 1.5; }

.chiffre-nuit {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(255, 255, 255, 0.03) 55%),
    rgba(10, 15, 26, 0.8);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 38px -14px color-mix(in srgb, var(--accent) 55%, transparent);
}

.chiffre-nuit .chiffre-num { color: var(--accent); text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- Actus ---------- */

.actus-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  text-align: left;
  margin-top: 2.4rem;
}

.actu-carte {
  display: block;
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--texte);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.actu-carte:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.actu-carte .actu-date {
  color: var(--or);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.actu-carte h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin: 0.45rem 0; }

.actu-carte p { color: var(--texte-doux); font-size: 0.88rem; line-height: 1.7; font-weight: 500; }

/* ---------- Cartes nouveautés ---------- */

.cartes-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  text-align: left;
  margin-top: 2.4rem;
}

.carte {
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: border-color 0.16s ease;
}

.carte:hover { border-color: rgba(255, 255, 255, 0.24); }

.carte-ic { width: 1.8em; height: 1.8em; color: var(--accent); margin-bottom: 0.75rem; }

.carte h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }

.carte p { color: var(--texte-doux); font-size: 0.89rem; line-height: 1.75; font-weight: 500; }

.carte strong { color: var(--texte); font-weight: 700; }

/* ---------- Bandeau final « nuit » ---------- */

.nuit {
  position: relative;
  background:
    radial-gradient(90% 130% at 22% -20%, rgba(79, 209, 197, 0.2), transparent 60%),
    radial-gradient(90% 130% at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    linear-gradient(180deg, #101a2e, #0c1220);
  color: var(--texte);
  text-align: center;
  padding: clamp(3.4rem, 8vw, 5.4rem) 1.2rem;
}

.nuit h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.nuit > p { color: var(--texte-doux); font-weight: 500; margin-bottom: 2rem; }

.cta-discord-nuit { border-color: var(--bord); }

/* ---------- Pied de page ---------- */

.pied {
  padding: 2.4rem 1.2rem 2.6rem;
  text-align: center;
  color: var(--texte-faible);
  font-size: 0.85rem;
  font-weight: 500;
}

.pied a { color: var(--texte-doux); text-decoration: none; margin: 0 0.7rem; font-weight: 600; }

.pied a:hover { color: var(--texte); }

.pied .liens { margin-bottom: 0.7rem; }

.pied .legal { margin-bottom: 0.8rem; font-size: 0.8rem; }

.pied .legal a { color: var(--texte-faible); font-weight: 500; }

/* ---------- Apparition au scroll (site.js pose .reveal-prep) ---------- */

.reveal.reveal-prep { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.reveal-prep.visible { opacity: 1; transform: none; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-prep { opacity: 1; transform: none; transition: none; }
  .aurore-rubans, .drakkar, .point-vert, .aurore { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 0.55rem; }
  .cta-ip { flex-direction: column; width: 100%; max-width: 340px; }
  .cta-ip-adresse { justify-content: center; }
  .cta-ip-action { justify-content: center; }
  .fjord-contenu { padding-bottom: 200px; }
  .scene { height: 200px; }
}
