/* Sensa 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: #8a8a8a;
  --line: rgba(255, 255, 255, 0.1);
  --gradient-brand: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
}

* { 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 : les couleurs de la marque en nappes 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%, #ff6b6b, transparent 70%),
    radial-gradient(34% 30% at 82% 18%, #54a0ff, transparent 70%),
    radial-gradient(40% 34% at 70% 78%, #ff9ff3, transparent 70%),
    radial-gradient(32% 28% at 25% 80%, #48dbfb, transparent 70%),
    radial-gradient(26% 22% at 50% 50%, #feca57, 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;
}

.marque {
  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; }
.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; }
}
