/* ============================================================
   GAAN — Guest Access & Automation Nexus
   Noir & blanc + bleu marine du logo (#17395E)
   Thèmes clair / sombre via html[data-theme]
   ============================================================ */

:root {
  --bg:      #ffffff;
  --text:    #0b0e14;
  --accent:  #17395e;            /* bleu du logo */
  --blue:    #2e6fe0;            /* accent vif, usage parcimonieux */
  --muted:   #6b7280;
  --faint:   #9aa1ab;
  --line:    #e6e8ec;
  --nav-bg:  rgba(255, 255, 255, 0.82);
  --soft-bg: #f5f6f8;
  --card-shadow: rgba(11, 14, 20, 0.08);

  /* section sombre (piliers, CTA) */
  --dark-bg:    #0b0e14;
  --dark-text:  #ffffff;
  --dark-muted: #9aa1ab;
  --dark-line:  #1e2836;

  /* couleur des points du globe (r,g,b) */
  --globe-rgb: 23, 57, 94;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg:      #0b0e14;
  --text:    #f1f5f9;
  --accent:  #6f9fe8;            /* bleu éclairci, lisible sur fond sombre */
  --muted:   #9aa1ab;
  --faint:   #6b7280;
  --line:    #1e2836;
  --nav-bg:  rgba(11, 14, 20, 0.82);
  --soft-bg: #0f151f;
  --card-shadow: rgba(0, 0, 0, 0.55);

  --dark-bg:   #10161f;
  --dark-line: #263349;

  --globe-rgb: 111, 159, 232;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Le logo (bleu marine) devient blanc en mode sombre */
html[data-theme="dark"] .logo-img {
  filter: brightness(0) invert(1);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand img { height: 40px; width: auto; }

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav__links a:hover::after { width: 100%; }

.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Lang toggle ---------- */

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.35rem;
  background: var(--bg);
}

.lang__btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang__btn:hover { color: var(--text); }

.lang__btn.is-active {
  background: var(--accent);
  color: var(--bg);
}

.lang__sep { width: 1px; height: 14px; background: var(--line); }

/* ---------- Theme toggle ---------- */

.theme-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover { border-color: var(--accent); transform: rotate(15deg); }

.theme-btn svg { width: 18px; height: 18px; }

.theme-btn .icon-sun { display: none; }
html[data-theme="dark"] .theme-btn .icon-sun { display: block; }
html[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 1rem 4rem;
}

#globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero__kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__logo {
  height: clamp(90px, 16vw, 150px);
  width: auto;
  margin: 0 auto 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.4rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid var(--faint);
  border-radius: 12px;
  z-index: 1;
}

.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollhint 1.8s ease-in-out infinite;
}

@keyframes scrollhint {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 111, 224, 0.3);
}

.btn--ghost {
  color: var(--text);
  border: 1.5px solid var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--blue {
  background: var(--blue);
  color: #fff;
}

.btn--blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(46, 111, 224, 0.35);
}

/* ---------- Marquee ---------- */

.marquee {
  background: #17395e;
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee__track span {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.nexus-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin: 0 2.2rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.kicker--blue { color: var(--blue); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

html[data-theme="dark"] .section--dark {
  border-block: 1px solid var(--dark-line);
}

/* ---------- Concept / à propos ---------- */

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
}

.about__text {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  align-self: center;
}

/* ---------- Acronyme ---------- */

.acro__heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.acro { border-top: 1px solid var(--line); }

.acro__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.acro__letter {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  transition: color 0.3s ease;
  text-align: center;
}

.acro__row:hover .acro__letter { color: var(--accent); }

.acro__word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.2rem;
}

.acro__body p { color: var(--muted); max-width: 560px; }

/* ---------- Piliers ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.pillar {
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.pillar__icon {
  width: 42px; height: 42px;
  color: var(--dark-text);
  margin: 1.6rem 0 1.2rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pillar p { color: var(--dark-muted); font-size: 0.95rem; }

/* ---------- Fonctionnalités ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: var(--bg);
}

.feature:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px var(--card-shadow);
}

.feature__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}

.feature__icon svg { width: 24px; height: 24px; }

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.feature p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Ils nous font confiance ---------- */

.trust {
  background: var(--soft-bg);
  border-block: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
}

.trust__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 1.2rem;
  line-height: 1.45;
}

.trust__text a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.trust__text a:hover { color: var(--blue); border-color: var(--blue); }

.trust__site {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.trust__site:hover { color: var(--accent); }

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.cta__nexus {
  width: 74px; height: 74px;
  color: var(--blue);
  margin: 0 auto 1.6rem;
  animation: nexus-spin 24s linear infinite;
}

@keyframes nexus-spin {
  to { transform: rotate(360deg); }
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__logo { height: 46px; width: auto; margin-bottom: 0.9rem; }

.footer__tag { color: var(--muted); font-size: 0.92rem; max-width: 380px; }

.footer__meta { text-align: right; }

.footer__dev { color: var(--muted); font-size: 0.92rem; }

.footer__dev a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.footer__dev a:hover { text-decoration: underline; }

.footer__meta p:last-child { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .cta__nexus, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .pillars, .features { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__text { border-left: none; border-top: 3px solid var(--accent); padding: 1.2rem 0 0; }
}

@media (max-width: 640px) {
  .nav { padding: 0.6rem 1rem; }
  .nav__brand img { height: 34px; }
  .nav__links { display: none; }

  .hero { padding: 5.5rem 1.2rem 3.5rem; }
  .hero__kicker { letter-spacing: 0.2em; font-size: 0.75rem; }
  .hero__actions {
    flex-direction: column;
    width: min(320px, 100%);
    margin-inline: auto;
  }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { bottom: 1.1rem; }

  .marquee__track span { font-size: 0.72rem; letter-spacing: 0.22em; }

  .pillars, .features { grid-template-columns: 1fr; }
  .pillar, .feature { padding: 1.6rem 1.4rem; }

  .acro__row { grid-template-columns: 72px 1fr; gap: 1.2rem; }
  .acro__letter { -webkit-text-stroke-width: 1.5px; }

  .footer__grid { align-items: flex-start; flex-direction: column; }
  .footer__meta { text-align: left; }
}

@media (max-width: 380px) {
  .lang__btn { padding: 0.3rem 0.5rem; }
  .theme-btn { width: 34px; height: 34px; }
}
