/* ==========================================================================
   TRIOPARC — Base (tokens, reset, typographie, composants partagés)
   Source : Figma « Trio Parc » — maquettes 1920px, contenu 1440px
   ========================================================================== */

:root {
  /* Néons */
  --neon-blanc: #ffffff;
  --neon-lime: #a9e85e;      /* Compétition */
  --neon-cyan: #38c6f0;      /* Immersif */
  --neon-jaune: #ffc63a;     /* Resto */
  --neon-rose: #ff6fa8;      /* Événements */
  --neon-violet: #a06bff;

  /* Textes */
  --txt-principal: #eaf0ff;
  --txt-titre: #ebf2ff;
  --txt-doux: #c3cde8;
  --txt-discret: #8a97be;
  --txt-tres-discret: #5d6a92;
  --txt-gris: #9ca3b2;

  /* Traits & surfaces */
  --trait-fin: rgba(255, 255, 255, 0.09);
  --surface-pill: rgba(10, 18, 43, 0.94);
  --surface-card: rgba(8, 13, 27, 0.94);
  --surface-glass: rgba(255, 255, 255, 0.05);

  /* Fonds de page (échantillonnés sur la maquette) */
  --bg-0: #060b1c;
  --bg-1: #080c20;
  --bg-2: #171540;
  --bg-3: #181240;
  --bg-4: #16143f;
  --bg-5: #0e1030;
  --bg-6: #090c23;
  --bg-7: #02040e;

  /* Layout */
  --page-w: 1920px;
  --content-w: 1440px;
  --gutter: clamp(20px, 12.5vw, 240px);
  --nav-h: 64px;

  /* Typo */
  --font: 'Google Sans Flex', 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0, "ROND" 0, "wdth" 100;
  color: var(--txt-principal);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, dl, dd, blockquote { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.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; }

/* Poids typographiques (Google Sans Flex est variable) */
.w-light { font-weight: 300; }
.w-medium { font-weight: 500; }
.w-black { font-weight: 900; }

/* ---------- Conteneurs ---------- */
.page { position: relative; overflow: hidden; }
.container {
  width: 100%;
  max-width: calc(var(--content-w) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; }
/* Les halos (z 1) débordent sur les fonds des sections voisines, sous les contenus (z 2) */
.section > .container { position: relative; z-index: 2; }

/* ---------- Texte dégradé ---------- */
.grad-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Dégradé « à la Figma » : le dégradé couvre tout le bloc texte (--box)
   et n'apparaît que sur les .grad-text qu'il contient. */
.grad-box {
  background-image: var(--grad);
  background-size: var(--box, 100%) 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: currentColor;
}
.grad-box .grad-text { background: none !important; -webkit-text-fill-color: transparent; }

/* ---------- Masses fluides (halos décoratifs) ---------- */
.blob {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
/* Équivalent CSS des « Masses fluides » Figma (cercle flouté, stdDeviation 100–110) */
.blob--fond {
  width: 1300px; height: 1300px;
  background: radial-gradient(circle closest-side, rgba(198, 84, 255, 0.15) 0%, rgba(198, 84, 255, 0.12) 30%, rgba(198, 84, 255, 0.05) 58%, rgba(198, 84, 255, 0) 75%);
}
.blob--seconde {
  width: 1200px; height: 1200px;
  background: radial-gradient(circle closest-side, rgba(169, 232, 94, 0.17) 0%, rgba(169, 232, 94, 0.13) 30%, rgba(169, 232, 94, 0.05) 58%, rgba(169, 232, 94, 0) 75%);
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Pill néon (Réserver) — variante cyan par défaut */
.btn-neon {
  --c: 56, 198, 240;
  background: var(--surface-pill);
  border: 1px solid rgba(var(--glow, var(--c)), 0.32);
  box-shadow: 0 10px 26px -6px rgba(var(--glow, var(--c)), 0.48), inset 0 -6px 14px 0 rgba(var(--glow, var(--c)), 0.22);
  color: #fff;
  font-size: 20px;
  padding: 11px 30px 12px;
  min-height: 48px;
}
.btn-neon:hover { border-color: rgba(var(--glow, var(--c)), 0.6); box-shadow: 0 14px 32px -6px rgba(var(--glow, var(--c)), 0.6), inset 0 -6px 14px 0 rgba(var(--glow, var(--c)), 0.3); }
.btn-neon--jaune { --c: 255, 198, 58; --glow: 160, 107, 255; }
.btn-neon--rose { --c: 255, 111, 168; }
.btn-neon--lime { --c: 169, 232, 94; }
.btn-neon--sm { padding: 9px 20px; min-height: 0; }

/* Pill fantôme */
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--txt-doux);
  font-size: 20px;
  padding: 12px 30px;
  min-height: 48px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.24); }

/* Pill sombre avec flèche (Découvrir Triotech, CTA) */
.btn-dark {
  background: #0a122b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--txt-titre);
  font-size: 17px;
  padding: 15px 24px 15px 28px;
}
.btn-dark .btn-label { font-weight: 500; }
.btn-dark:hover { border-color: rgba(255, 255, 255, 0.32); }
.btn-dark--cyan {
  border-color: rgba(56, 198, 240, 0.4);
  box-shadow: 0 12px 28px -6px rgba(56, 198, 240, 0.5);
  color: #f2f7ff;
  padding: 17px 26px 17px 32px;
}
.btn-dark--cyan:hover { border-color: rgba(56, 198, 240, 0.7); }

/* Lien flèche (en-têtes de section) */
.link-arrow {
  font-size: 17px;
  line-height: 1.7;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.link-arrow:hover { opacity: .8; }
.link-arrow--cyan { color: var(--neon-cyan); }
.link-arrow--rose { color: var(--neon-rose); }
.link-arrow--lime { color: var(--neon-lime); }
.link-arrow--jaune { color: var(--neon-jaune); }
.link-arrow--violet { color: var(--neon-violet); }

/* ---------- En-tête de section ---------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.section-header__title { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.eyebrow {
  font-size: 15px;
  letter-spacing: 4.8px;
  text-transform: uppercase;
  line-height: normal;
}
.eyebrow--cyan { color: var(--neon-cyan); }
.eyebrow--jaune { color: var(--neon-jaune); text-shadow: 0 0 20px rgba(255, 198, 58, 0.5); }
.eyebrow--rose { color: var(--neon-rose); text-shadow: 0 0 20px rgba(255, 111, 168, 0.5); }
.eyebrow--lime { color: var(--neon-lime); }
.eyebrow--violet { color: var(--neon-violet); }
.eyebrow--blanc { color: #fff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
.eyebrow--discret { color: #8a96bd; }
.h2 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.56px;
  color: var(--txt-principal);
  text-shadow: 0 0 64px rgba(255, 255, 255, 0.16);
}
.lead { font-size: 20px; line-height: 1.7; color: var(--txt-discret); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 5.28px;
  line-height: normal;
  white-space: nowrap;
}
.logo span:nth-child(1) { color: #fff; }
.logo span:nth-child(2) { color: var(--neon-jaune); }
.logo span:nth-child(3) { color: var(--neon-rose); }
.logo span:nth-child(4) { color: var(--neon-cyan); }
.logo span:nth-child(5) { color: var(--neon-lime); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  background: rgba(6, 11, 28, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { background: rgba(6, 11, 28, 0.88); box-shadow: 0 1px 0 var(--trait-fin); }
.nav__spacer { width: 100px; height: 1px; flex: 0 1 100px; }
.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--txt-doux);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__links { display: contents; }
.nav__burger { display: none; }

/* ---------- Pied de page ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--trait-fin);
  background: linear-gradient(180deg, var(--bg-7), #02040c);
}
.footer .container { display: flex; flex-direction: column; gap: 44px; padding-top: 60px; padding-bottom: 32px; }
.footer__cols { display: flex; gap: 40px; width: 100%; }
.footer__cols > * { flex: 1 1 0; min-width: 0; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand p { font-size: 20px; line-height: 1.7; color: var(--txt-discret); }
.footer__menu { display: flex; flex-direction: column; gap: 10px; }
.footer__menu h4 { font-size: 15px; letter-spacing: 2.7px; color: var(--txt-discret); text-transform: uppercase; }
.footer__menu a { font-size: 17px; color: var(--txt-doux); white-space: nowrap; transition: color .2s ease; }
.footer__menu a:hover { color: #fff; }
.footer__note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--trait-fin);
  font-size: 15px;
  color: var(--txt-tres-discret);
}

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .h2 { font-size: 48px; }
  .nav__spacer { display: none; }
}
@media (max-width: 1024px) {
  .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    padding: 16px var(--gutter) 28px;
    background: rgba(6, 11, 28, 0.96);
    border-bottom: 1px solid var(--trait-fin);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; }
  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin-left: auto;
    margin-right: 12px;
  }
  .nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--txt-doux); transition: transform .3s ease, opacity .3s ease; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .footer__cols { flex-wrap: wrap; }
  .footer__cols > * { flex: 1 1 40%; }
  .footer__brand { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .h2 { font-size: 38px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .btn-neon, .btn-ghost { font-size: 17px; }
  .footer__note { flex-direction: column; }
  .footer__cols > * { flex-basis: 100%; }
}
