@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #030304;
  --panel: rgba(16, 16, 18, 0.72);
  --gold: #d9ac3a;
  --gold-light: #f7d678;
  --blue: #009dff;
  --text: #f7f7f4;
  --muted: #a9abb0;
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(217, 172, 58, 0.24);
}

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);

  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(0, 157, 255, 0.07),
      transparent 34rem
    ),
    radial-gradient(
      circle at 15% 20%,
      rgba(217, 172, 58, 0.07),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      #070708,
      #020203 82%
    );

  font-family: Inter, sans-serif;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    );

  background-size: 74px 74px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    black,
    transparent 85%
  );

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 85%
  );
}

a {
  color: inherit;
}

/* =========================================================
   FOND ANIMÉ
========================================================= */

#networkCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.72;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

.ambient-gold {
  left: -16rem;
  top: 10rem;
  background: var(--gold);
  opacity: 0.055;
}

.ambient-blue {
  right: -18rem;
  top: 3rem;
  background: var(--blue);
  opacity: 0.05;
}

/* =========================================================
   STRUCTURE
========================================================= */

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

/* =========================================================
   EN-TÊTE
========================================================= */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px clamp(18px, 4vw, 62px);

  background:
    linear-gradient(
      180deg,
      rgba(3, 3, 4, 0.96),
      rgba(3, 3, 4, 0.52),
      transparent
    );

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.brand img {
  display: block;

  width: 44px;
  height: 44px;

  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line-gold);

  filter: none;
  -webkit-filter: none;

  image-rendering: auto;
}

.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;

  padding: 7px 12px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: rgba(8, 8, 9, 0.7);
}

.language-switcher span {
  color: #555;
}

.lang-btn {
  border: 0;
  background: none;
  color: #777;

  font-weight: 800;
  font-size: 0.78rem;

  cursor: pointer;
  padding: 4px;
}

.lang-btn.active {
  color: var(--gold-light);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 110px 0 65px;
}

/* Conteneur du logo principal */

.hero-visual {
  position: relative;

  width: min(520px, 78vw);
  aspect-ratio: 1 / 1;

  margin-bottom: 15px;

  display: flex;
  justify-content: center;
  align-items: center;

  isolation: isolate;
}

/* Logo principal corrigé */

.official-logo {
  position: relative;
  z-index: 3;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  border-radius: 50%;

  /*
   * Important :
   * aucun filtre sur l'image elle-même.
   * Cela évite le flou permanent sur Safari/iPhone.
   */
  filter: none;
  -webkit-filter: none;

  image-rendering: auto;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  transform: translateZ(0);
  -webkit-transform: translateZ(0);

  will-change: transform, opacity;

  animation:
    logoReveal 0.8s ease-out both,
    logoFloat 7s ease-in-out 0.8s infinite;
}

/* Apparition nette du logo */

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateZ(0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}

/* Mouvement léger, sans filtre */

@keyframes logoFloat {
  0%,
  100% {
    transform: translateZ(0) translateY(0);
  }

  50% {
    transform: translateZ(0) translateY(-6px);
  }
}

/* Halos placés derrière le logo */

.logo-halo {
  position: absolute;
  inset: 8%;
  z-index: 1;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(45px);
  -webkit-filter: blur(45px);
}

.halo-one {
  background: var(--gold);
  opacity: 0.1;

  animation: haloPulse 4.5s ease-in-out infinite;
}

.halo-two {
  inset: 20%;

  background: var(--blue);
  opacity: 0.08;

  animation: haloPulse 5.2s ease-in-out reverse infinite;
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.16;
  }
}

/* =========================================================
   TYPOGRAPHIE HERO
========================================================= */

.eyebrow,
.kicker {
  color: var(--gold-light);

  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 950px;

  margin: 15px auto 22px;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 6.6rem);

  line-height: 0.98;
  letter-spacing: -0.055em;

  text-wrap: balance;
}

.hero-copy {
  max-width: 800px;

  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* =========================================================
   STATUT
========================================================= */

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 28px;
  padding: 10px 16px;

  border: 1px solid var(--line-gold);
  border-radius: 999px;

  background: rgba(217, 172, 58, 0.045);

  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #6ce3a2;
  box-shadow: 0 0 14px #6ce3a2;

  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* =========================================================
   BOUTONS
========================================================= */

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;

  margin-top: 34px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-height: 54px;

  padding: 0 25px;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 800;
  font-size: 0.92rem;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.primary {
  color: #070707;

  background:
    linear-gradient(
      135deg,
      var(--gold-light),
      var(--gold)
    );

  box-shadow:
    0 15px 42px rgba(217, 172, 58, 0.17);
}

.secondary {
  border: 1px solid var(--line);

  background: rgba(255, 255, 255, 0.035);
}

/* =========================================================
   INDICATEUR DE DÉFILEMENT
========================================================= */

.scroll-down {
  width: 28px;
  height: 45px;

  margin-top: 50px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.scroll-down span {
  display: block;

  width: 4px;
  height: 8px;

  margin: 8px auto;

  background: var(--gold-light);

  border-radius: 999px;

  animation: scroll 1.7s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(18px);
    opacity: 0;
  }

  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
  padding: 105px 0;
}

.section-heading {
  max-width: 800px;

  margin-bottom: 42px;
}

.section-heading h2,
.contact-box h2 {
  margin-top: 12px;

  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);

  line-height: 1.04;
  letter-spacing: -0.04em;
}

/* =========================================================
   MISSION
========================================================= */

.mission-grid {
  display: grid;

  grid-template-columns: 1.45fr 0.75fr;

  gap: 20px;
}

.panel,
.service-card,
.pillars article,
.contact-box {
  border: 1px solid var(--line);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.017)
    );

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 30px 85px rgba(0, 0, 0, 0.38);
}

.panel {
  padding: 34px;

  border-radius: 24px;
}

.mission-copy p {
  color: #c7c8cb;

  font-size: 1.05rem;
}

.mission-copy p + p {
  margin-top: 18px;
}

.founder {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder span {
  color: var(--gold-light);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.founder strong {
  margin: 9px 0 5px;

  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.founder p {
  color: var(--muted);
}

/* =========================================================
   SERVICES
========================================================= */

.services {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.service-card {
  position: relative;

  overflow: hidden;

  min-height: 250px;

  padding: 28px;

  border-radius: 22px;

  transition:
    transform 0.28s ease,
    border-color 0.28s ease;
}

.service-card::after {
  content: "";

  position: absolute;

  width: 160px;
  height: 160px;

  right: -80px;
  bottom: -80px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--gold),
      var(--blue)
    );

  filter: blur(68px);
  -webkit-filter: blur(68px);

  opacity: 0.07;

  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-7px);

  border-color: var(--line-gold);
}

.service-code {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  border: 1px solid var(--line-gold);
  border-radius: 15px;

  background: rgba(217, 172, 58, 0.055);

  color: var(--gold-light);

  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.service-card h3 {
  margin: 24px 0 10px;

  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
}

.service-card p {
  color: var(--muted);

  font-size: 0.94rem;
}

/* =========================================================
   PILIERS
========================================================= */

.pillars {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1px;
}

.pillars article {
  padding: 34px;
}

.pillars article:first-child {
  border-radius: 22px 0 0 22px;
}

.pillars article:last-child {
  border-radius: 0 22px 22px 0;
}

.pillars span {
  color: var(--gold-light);

  font-size: 0.74rem;
  font-weight: 800;
}

.pillars h3 {
  margin: 13px 0 8px;

  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.pillars p {
  color: var(--muted);
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
  padding: 0 0 100px;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 35px;

  padding: 45px;

  border-radius: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 7px;
}

.contact-links a {
  color: #d8d9dc;

  text-decoration: none;

  font-weight: 650;
}

.contact-links a:hover {
  color: var(--gold-light);
}

/* =========================================================
   PIED DE PAGE
========================================================= */

footer {
  padding: 34px 20px 42px;

  border-top: 1px solid var(--line);

  color: #77797e;

  text-align: center;
  font-size: 0.85rem;
}

.slogan {
  margin-bottom: 7px;

  color: var(--gold-light);

  font-weight: 750;
  letter-spacing: 0.08em;
}

/* =========================================================
   APPARITION AU DÉFILEMENT
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 900px) {

  .brand span {
    display: none;
  }

  .mission-grid,
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .mission-copy {
    grid-column: 1 / -1;
  }

  .pillars {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .pillars article,
  .pillars article:first-child,
  .pillars article:last-child {
    border-radius: 18px;
  }

  .contact-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links {
    align-items: flex-start;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

  .shell {
    width: min(calc(100% - 28px), 1180px);
  }

  .topbar {
    padding: 13px 17px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: auto;

    padding-top: 105px;
    padding-bottom: 65px;
  }

  /*
   * Logo légèrement plus petit sur mobile.
   * Cela améliore netteté et temps de chargement.
   */
  .hero-visual {
    width: min(340px, 86vw);
    height: auto;

    aspect-ratio: 1 / 1;

    margin-bottom: 24px;
  }

  .official-logo {
    width: 100%;
    height: auto;

    max-width: 340px;

    margin: 0 auto;

    object-fit: contain;

    filter: none;
    -webkit-filter: none;

    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /*
   * Les halos restent derrière l’image.
   * Ils ne doivent jamais être appliqués au logo.
   */
  .logo-halo {
    inset: 12%;

    filter: blur(30px);
    -webkit-filter: blur(30px);
  }

  .halo-two {
    inset: 24%;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);

    line-height: 1;
  }

  .eyebrow,
  .kicker {
    font-size: 0.7rem;

    letter-spacing: 0.18em;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .mission-grid,
  .services {
    grid-template-columns: 1fr;
  }

  .mission-copy {
    grid-column: auto;
  }

  .section {
    padding: 78px 0;
  }

  .panel,
  .service-card {
    padding: 25px;
  }

  .contact-box {
    padding: 28px;
  }

  .contact-links a {
    overflow-wrap: anywhere;
  }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 390px) {

  .hero-visual {
    width: min(310px, 84vw);
  }

  .official-logo {
    max-width: 310px;
  }

  .language-switcher {
    padding: 6px 10px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }
}

/* =========================================================
   ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .official-logo {
    opacity: 1;
    transform: none;
  }
}