/* ==========================================================================
   solaty — feuille de style (version claire, non minifiée)
   Reproduit à l'identique le rendu du portail solaty.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices (fichiers variables locaux, dans assets/fonts/)
   - Space Grotesk : police d'affichage (titres, logo texte, pied de page)
   - Roboto        : police secondaire / chiffres
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("assets/fonts/space-grotesk-latin-wght-normal-BhU9QXUp.woff2") format("woff2-variations");
  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: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("assets/fonts/space-grotesk-latin-ext-wght-normal-D9tNdqV9.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("assets/fonts/space-grotesk-vietnamese-wght-normal-D0rl6rjA.woff2") format("woff2-variations");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Roboto Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/roboto-latin-wght-normal-ccAYIvAh.woff2") format("woff2-variations");
  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: "Roboto Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/roboto-latin-ext-wght-normal-DYIxWhlt.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Jetons de design (couleurs, polices, rayons)
   -------------------------------------------------------------------------- */
:root {
  --color-void: #0b0614;
  --color-nebula: #17092b;
  --color-nebula-2: #1f0e3a;
  --color-grape: #2a1650;
  --color-violet: #3f63b8;
  --color-iris: #3f63b8;
  --color-iris-soft: #c4b5fd;
  --color-flash: #fff;
  --color-muted: #c7c7d2;
  --color-muted-dim: #9595a2;

  --font-sans: "Space Grotesk Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Roboto Variable", ui-sans-serif, system-ui, sans-serif;

  --radius-tile: 18px;
  --radius-lg: 0.5rem;

  --discord: #c8ad7f;
}

/* --------------------------------------------------------------------------
   Réinitialisation minimale
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  color-scheme: dark;
  scrollbar-color: var(--color-grape) transparent;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  background-color: var(--color-void);
  color: var(--color-flash);
  font-family: var(--font-sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

::selection {
  background: color-mix(in srgb, var(--color-iris) 40%, transparent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-iris-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accessibilité : contenu réservé aux lecteurs d'écran. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border-width: 0;
}

/* --------------------------------------------------------------------------
   Structure de la page
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--color-void);
}

.shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem;
}

/* --------------------------------------------------------------------------
   Fond animé (vidéo floutée + voile + grain)
   -------------------------------------------------------------------------- */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  object-fit: cover;
  opacity: 0.45;
  filter: blur(26px);
  pointer-events: none;
}

.bg-fade {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-void) 55%, transparent),
    color-mix(in srgb, var(--color-void) 82%, transparent)
  );
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   En-tête (logo)
   -------------------------------------------------------------------------- */
.hero {
  margin-bottom: 3.5rem;
  text-align: center;
}

.hero-logo {
  height: 10rem;
  width: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 55px color-mix(in srgb, var(--color-iris) 75%, transparent));
  animation: bolt-strike 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (min-width: 40rem) {
  .hero-logo {
    height: 13rem;
  }
}

/* --------------------------------------------------------------------------
   Grilles de destinations
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid-secondary {
  margin-top: 1rem;
}

@media (min-width: 40rem) {
  .grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .grid-flagship {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .grid-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Tuiles
   -------------------------------------------------------------------------- */
.tile-wrap {
  position: relative;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-nebula-2) 92%, transparent),
    color-mix(in srgb, var(--color-nebula) 88%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--color-iris) 16%, transparent);
  border-radius: var(--radius-tile);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.3s;
}

.tile-flagship {
  min-height: 15rem;
  padding: 1.75rem;
}

.tile-secondary {
  min-height: 9.5rem;
  padding: 1.5rem;
}

@media (min-width: 40rem) {
  .tile-flagship {
    min-height: 17rem;
    padding: 2.25rem;
  }
}

/* Tuile désactivée (« à venir »). */
.tile-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Survol (uniquement pour les tuiles cliquables). */
@media (hover: hover) {
  a.tile:hover {
    transform: translateY(-0.25rem);
    border-color: color-mix(in srgb, var(--acc) 50%, transparent);
    box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--acc) 55%, transparent);
  }

  a.tile:hover .tile-arrow {
    transform: translateX(0.25rem);
  }
}

/* Image de fond de la tuile + voile dégradé. */
.tile-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tile-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.tile-bg-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-void) 16%,
    color-mix(in srgb, var(--color-void) 45%, transparent) 60%,
    transparent
  );
}

/* Halo coloré propre à la tuile. */
.tile-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    125% 120% at 100% 0%,
    color-mix(in srgb, var(--acc) 24%, transparent),
    transparent 55%
  );
}

/* Contenu (au-dessus du fond, ancré en bas). */
.tile-content {
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.tile-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logos selon la variante. */
.tile-logo-flagship {
  height: 3.5rem;
  width: auto;
}

.tile-logo-secondary {
  height: 2.75rem;
  width: auto;
}

.tile-logo-lg {
  height: 7rem;
  width: auto;
}

.tile-logo-lockup {
  height: 5rem;
  width: auto;
}

/* Titres. */
.tile-title {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--color-flash);
}

.tile-title-flagship {
  font-size: 2.25rem;
  line-height: 1.111;
}

.tile-title-secondary {
  font-size: 1.5rem;
  line-height: 1.333;
}

@media (min-width: 40rem) {
  .tile-title-flagship {
    font-size: 3rem;
    line-height: 1;
  }
}

/* Tagline + flèche. */
.tile-footer {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tile-tagline {
  color: var(--color-muted);
}

.tile-tagline-flagship {
  font-size: 1rem;
  line-height: 1.5;
}

.tile-tagline-secondary {
  font-size: 0.875rem;
  line-height: 1.428;
}

.tile-arrow {
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--acc) 60%, var(--color-flash));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Badge Discord
   -------------------------------------------------------------------------- */
.discord-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: color-mix(in srgb, var(--color-void) 40%, transparent);
  color: var(--color-muted);
  backdrop-filter: blur(8px);
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.discord-badge:hover {
  border-color: color-mix(in srgb, var(--discord) 60%, transparent);
  background: color-mix(in srgb, var(--discord) 20%, transparent);
  color: var(--color-flash);
}

.discord-badge-disabled {
  color: var(--color-muted-dim);
  opacity: 0.6;
  cursor: not-allowed;
}

.discord-icon {
  height: 1.25rem;
  width: 1.25rem;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--color-iris) 10%, transparent);
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-muted-dim);
}

.footer-link {
  color: var(--color-muted);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
  color: var(--color-flash);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes bolt-strike {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 transparent);
    transform: translateY(-16px) scale(0.86) rotate(-2deg);
  }
  14% {
    opacity: 1;
  }
  22% {
    transform: translateY(0) scale(1.04) rotate(0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
