/* Setalba Network — feuille unique du site. Règles de la DA : ../DA.md */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050505;
  --text: #fafafa;
  --muted: #b4b4b4;
  --line: rgba(255, 255, 255, 0.1);
  /* Spectre de Newton (ODR-0122) : arrêts de investigations/marque/21-couleurs/palettes.json
     (OKLCH, déjà convertis en sRGB), les mêmes que le nom dessiné (setalba-network.svg). */
  --gradient-brand: linear-gradient(135deg, #fe8991 0.0%, #fe8991 8.9%, #ff8990 10.7%, #ff898e 12.4%, #ff898c 14.2%, #fe898b 15.9%, #ff8989 17.7%, #ff8c89 19.4%, #ff8f89 21.2%, #ff9189 22.9%, #fe9c89 24.6%, #fea689 26.2%, #ffb089 27.8%, #ffb889 29.5%, #ffc189 31.1%, #ffca89 32.7%, #ffd489 34.4%, #ffdf89 36.0%, #ffeb89 38.1%, #fffa89 40.3%, #effe89 42.4%, #daff89 44.5%, #c2ff89 46.6%, #a3ff89 48.8%, #89fe96 50.9%, #89ffb0 53.0%, #89ffbd 54.8%, #89ffc7 56.5%, #89fed0 58.3%, #89ffd9 60.0%, #89ffe1 61.8%, #89ffe8 63.5%, #89ffef 65.3%, #89fff6 67.0%, #89fdff 68.3%, #89f4ff 69.5%, #89ebff 70.8%, #89e2ff 72.0%, #89daff 73.3%, #89d1fe 74.6%, #89c9ff 75.8%, #89bfff 77.1%, #89b4ff 78.8%, #89a6ff 80.6%, #8a89fe 82.3%, #9089ff 84.1%, #9689ff 85.8%, #9e89ff 87.6%, #a789ff 89.3%, #b089ff 91.1%, #b089ff 100.0%);
}

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

html { background: var(--bg); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Pas de fond ici : il passerait devant les calques du fond (z-index négatif). */
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  -webkit-font-smoothing: antialiased;
}

/* Fond (repli sans WebGL) : les six nappes de Newton, lentes, très floues, plus un
   grain qui casse l'aspect « dégradé numérique ». */
body::before {
  content: '';
  position: fixed;
  inset: -25%;
  background:
    radial-gradient(38% 32% at 18% 22%, #fe898b, transparent 70%),
    radial-gradient(34% 30% at 82% 18%, #89bfff, transparent 70%),
    radial-gradient(40% 34% at 70% 78%, #b089ff, transparent 70%),
    radial-gradient(32% 28% at 25% 80%, #89fff6, transparent 70%),
    radial-gradient(26% 22% at 50% 50%, #ffdf89, transparent 70%),
    radial-gradient(22% 20% at 4% 52%, #89ffb0, transparent 70%);
  opacity: 0.2;
  filter: blur(90px);
  pointer-events: none;
  z-index: -2;
  animation: derive 28s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

@keyframes derive {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.08); }
}

/* Le fond en WebGL (fond.js) : plus doux, sans marches de couleur. Si WebGL
   manque, `html.gl` n'est pas posé et les nappes CSS ci-dessus restent. */
#fond { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
html.gl body::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.page {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  flex: 1;
  padding: 16vh 0 4rem;
}

.logo { width: 44px; height: 44px; display: block; margin-bottom: 2.5rem; }

h1 {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Le nom en tête : le dessin de l'écriture maison (ODR-0125), dégradé compris. */
h1.nom-marque { line-height: 0; margin-bottom: 1.25rem; }
h1.nom-marque img { display: block; width: min(100%, 22rem); height: auto; }

/* Le dégradé ne couvre que le mot (boîte à la taille du texte). */
.marque {
  display: inline-block;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro { color: var(--muted); font-size: 1.05rem; margin-bottom: 4.5rem; }

h2 {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.projets { list-style: none; border-top: 1px solid var(--line); }

.projets li { border-bottom: 1px solid var(--line); }

.projets a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0;
}

.projets .nom { font-size: 1.25rem; font-weight: 550; letter-spacing: -0.015em; }

.projets .quoi { color: var(--muted); flex: 1; }

.projets .fleche { color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }

.projets a:hover .fleche,
.projets a:focus-visible .fleche { color: var(--text); transform: translateX(3px); }


.titre-valeurs { margin-top: 4.5rem; }
.valeurs { list-style: none; display: grid; gap: 1.4rem; }
.valeurs li { color: var(--muted); }
.valeurs strong { display: block; color: var(--text); font-weight: 550; margin-bottom: 0.15rem; }

.plus { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }
.plus a { color: var(--text); border-bottom: 1px solid var(--line); }
.plus a:hover { border-color: var(--text); }

footer {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a:hover { color: var(--text); }
footer .droite { margin-left: auto; }
footer .mention-ia { flex-basis: 100%; }
.signature { display: inline-flex; align-items: center; gap: 0.3em; }
.signature img { width: 1.05em; height: 1.05em; }

/* Pages de texte (mentions légales) */
.texte { padding-top: 10vh; }
.texte .retour { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 3rem; }
.texte .retour:hover { color: var(--text); }
.texte h1 { font-size: clamp(2rem, 7vw, 2.6rem); margin-bottom: 3rem; }
.texte h2 { font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); margin: 2.5rem 0 0.6rem; }
.texte p { color: #c4c4c4; }
.texte p a { color: var(--text); border-bottom: 1px solid var(--line); }

@media (max-width: 480px) {
  .projets a { flex-wrap: wrap; gap: 0.15rem 1rem; }
  .projets .quoi { order: 3; flex-basis: 100%; }
  .projets .fleche { margin-left: auto; }
  footer .droite { margin-left: 0; }
}
