/* ============================================================
   fhoo.dev — feuille de style
   ============================================================ */

:root {
  --bg: #06070d;
  --bg-soft: #0b0e1a;
  --ink: #eef1fb;
  --ink-dim: #9aa3c4;
  --accent: #f7b955;   /* ambre — lumière chaude */
  --accent-2: #6c8cff; /* bleu — connectivité */
  --accent-3: #34e7d3; /* teal — capteurs / énergie */
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Fond : canvas constellation ---------- */
#constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease 0.3s;
}
.is-loaded #constellation { opacity: 1; }

/* ---------- Fond : aurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(60px);
}
.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora__blob--1 {
  width: 52vw; height: 52vw;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 65%);
  top: -12vw; left: -8vw;
  animation: drift1 22s var(--ease) infinite alternate;
}
.aurora__blob--2 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle at 60% 40%, var(--accent-2), transparent 65%);
  top: 20vh; right: -12vw;
  animation: drift2 26s var(--ease) infinite alternate;
}
.aurora__blob--3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle at 50% 50%, var(--accent-3), transparent 65%);
  bottom: -14vw; left: 30vw;
  animation: drift3 30s var(--ease) infinite alternate;
  opacity: 0.4;
}
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 8vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(8vw, -10vh) scale(1.2); } }

/* ---------- Spotlight souris ---------- */
.spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  margin: -300px 0 0 -300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(247,185,85,0.10), transparent 60%);
  will-change: transform;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 5vw, 4rem);
  mix-blend-mode: difference;
}
.nav__brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; gap: 1.8rem; font-size: 0.92rem; }
.nav__links a { position: relative; color: var(--ink-dim); transition: color 0.3s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: currentColor; transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__kbd {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 4px 7px; cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.nav__kbd:hover { border-color: var(--accent); background: rgba(108,140,255,0.12); }
.nav__kbd kbd {
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--ink-dim);
}

/* ---------- Layout sections ---------- */
main { position: relative; z-index: 3; }
section { padding: 0 clamp(1.2rem, 5vw, 4rem); }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; }
}
.hero__eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.is-loaded .hero__title .word { transform: translateY(0) rotate(0); opacity: 1; }
.hero__title .gradient {
  background: linear-gradient(110deg, var(--accent), var(--accent-2) 45%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero__sub {
  max-width: 36rem;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  margin-bottom: 2.4rem;
}

/* Éléments révélés (chargement) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.is-loaded .reveal { opacity: 1; transform: translateY(0); }

/* ---------- Boutons ---------- */
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.7rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn--primary {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(108,140,255,0.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(108,140,255,0.75); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(5px); }
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }

/* ---------- Indicateur de scroll ---------- */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
}
.scroll-hint__mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--ink-dim);
  border-radius: 12px;
  position: relative;
}
.scroll-hint__mouse::before {
  content: ""; position: absolute; top: 6px; left: 50%;
  width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--ink); border-radius: 2px;
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.scroll-hint__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.25em; }

/* ---------- Apparition au scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Section À propos ---------- */
.section__tag {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent-3);
}
.about, .contact { max-width: var(--max); margin: 0 auto; padding-top: 12vh; padding-bottom: 12vh; }
.about__heading {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 1rem 0 3.5rem;
  max-width: 18ch;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,140,255,0.5);
  box-shadow: 0 24px 50px -20px rgba(108,140,255,0.35);
}
.card__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  margin: 0.6rem 0 0.6rem;
}
.card p { color: var(--ink-dim); font-size: 0.98rem; }

/* ---------- Plan de maison interactif ---------- */
.home-panel {
  align-self: center;
  width: 100%;
  border-radius: 22px;
  padding: 1.1rem 1.2rem 1.4rem;
  background: radial-gradient(120% 100% at 50% 0%, rgba(247,185,85,0.07), transparent 55%),
              linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85);
  backdrop-filter: blur(14px);
}
.home-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.3rem;
}
.home-panel__title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.95rem; }
.home-panel__badges { display: inline-flex; align-items: center; gap: 0.5rem; }
.home-panel__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace; font-size: 0.64rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-3);
}
.home-panel__badge--lock {
  color: var(--accent); padding: 3px 8px; border-radius: 100px;
  border: 1px solid rgba(247,185,85,0.3); background: rgba(247,185,85,0.08);
  letter-spacing: 0.1em;
}
.home-panel__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 10px var(--accent-3); animation: breathe 1.8s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.4; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

.house { width: 100%; height: auto; display: block; color: var(--accent); transition: color 0.7s var(--ease); }
.house-roof { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 2.5; stroke-linejoin: round; }
.house-body { fill: rgba(255,255,255,0.018); stroke: rgba(255,255,255,0.2); stroke-width: 2.5; }
.room { fill: transparent; stroke: rgba(255,255,255,0.08); stroke-width: 1; transition: fill 0.5s, stroke 0.5s; }
.room:hover { fill: rgba(247,185,85,0.06); stroke: rgba(247,185,85,0.25); }
.room-label {
  fill: var(--ink-dim); font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}

.wire {
  stroke: var(--accent-2); stroke-width: 1.4;
  stroke-dasharray: 3 7; opacity: 0.45;
  animation: flow 1s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -20; } }

.node { fill: currentColor; filter: drop-shadow(0 0 7px currentColor); transition: opacity 0.7s var(--ease), filter 0.7s; }
.node-glow { fill: currentColor; opacity: 0.16; transition: opacity 0.7s var(--ease); }

.hub { fill: var(--accent-2); filter: drop-shadow(0 0 8px var(--accent-2)); }
.hub-ring { fill: none; stroke: var(--accent-2); stroke-width: 1.5; transform-origin: 250px 285px; animation: hubring 2.6s ease-out infinite; }
@keyframes hubring { 0% { r: 9; opacity: 0.6; } 100% { r: 30; opacity: 0; } }
.hub-label { fill: var(--accent-2); font-family: "JetBrains Mono", monospace; font-size: 11px; text-anchor: middle; letter-spacing: 1px; opacity: 0.8; }

/* --- Bouclier d'alarme --- */
.shield {
  fill: rgba(52,231,211,0.12); stroke: var(--accent-3); stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(52,231,211,0.5));
  transition: fill 0.5s, stroke 0.5s, filter 0.5s;
}
.shield-check { fill: none; stroke: var(--accent-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s; }
.shield-label { fill: var(--accent-3); font-family: "JetBrains Mono", monospace; font-size: 11px; text-anchor: middle; letter-spacing: 1px; transition: fill 0.5s; }
/* armé : scènes nuit & départ */
.house[data-scene="nuit"] .shield,
.house[data-scene="depart"] .shield {
  fill: rgba(255,95,87,0.22); stroke: #ff6a5f;
  filter: drop-shadow(0 0 9px #ff6a5f); animation: alarmpulse 1.4s ease-in-out infinite;
}
.house[data-scene="nuit"] .shield-check,
.house[data-scene="depart"] .shield-check { stroke: #ff8a80; }
.house[data-scene="nuit"] .shield-label,
.house[data-scene="depart"] .shield-label { fill: #ff8a80; }
@keyframes alarmpulse { 0%,100% { opacity: 0.75; } 50% { opacity: 1; } }

/* --- Scènes : ambiance lumineuse par pièce --- */
.house[data-scene="reveil"]  { color: #ffd27a; }
.house[data-scene="journee"] { color: #cfe9ff; }
.house[data-scene="cinema"]  { color: #6c8cff; }
.house[data-scene="nuit"]    { color: #3a4d8f; }

/* réveil : chambre + cuisine */
.house[data-scene="reveil"] #n-salon,
.house[data-scene="reveil"] #n-bureau { opacity: 0.14; }
.house[data-scene="reveil"] #g-salon,
.house[data-scene="reveil"] #g-bureau { opacity: 0.03; }
/* cinéma : salon uniquement */
.house[data-scene="cinema"] .node { opacity: 0.1; }
.house[data-scene="cinema"] .node-glow { opacity: 0.02; }
.house[data-scene="cinema"] #n-salon { opacity: 1; }
.house[data-scene="cinema"] #g-salon { opacity: 0.24; }
/* nuit : tout en veille */
.house[data-scene="nuit"] .node { opacity: 0.14; }
.house[data-scene="nuit"] .node-glow { opacity: 0.03; }
/* départ : maison vide, tout coupé, alarme armée */
.house[data-scene="depart"] { color: #3a4d8f; }
.house[data-scene="depart"] .node { opacity: 0.1; }
.house[data-scene="depart"] .node-glow { opacity: 0.02; }

.scenes { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-top: 0.6rem; }
.scene-btn {
  font-family: "Space Grotesk", sans-serif; font-size: 0.82rem;
  padding: 0.5rem 0.95rem; border-radius: 100px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03); color: var(--ink-dim);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.scene-btn:hover { color: var(--ink); border-color: rgba(255,255,255,0.32); transform: translateY(-2px); }
.scene-btn.is-active {
  background: linear-gradient(110deg, var(--accent), #ffce85);
  color: #1a1205; border-color: transparent; font-weight: 600;
  box-shadow: 0 10px 26px -8px rgba(247,185,85,0.55);
}

/* ---------- Palette de commandes ---------- */
.palette { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; }
.palette[hidden] { display: none; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(3,4,9,0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.2s ease; }
.palette.is-open .palette__backdrop { opacity: 1; }
.palette__box {
  position: relative;
  margin-top: 16vh;
  width: min(560px, 92vw);
  background: rgba(14, 17, 30, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98); opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s ease;
}
.palette.is-open .palette__box { transform: translateY(0) scale(1); opacity: 1; }
.palette__search { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.palette__prompt { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 1.1rem; }
.palette__input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-size: 1rem; font-family: "Inter", sans-serif; }
.palette__input::placeholder { color: var(--ink-dim); }
.palette__esc { font-family: "JetBrains Mono", monospace; font-size: 0.68rem; color: var(--ink-dim); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; padding: 2px 6px; }
.palette__list { list-style: none; max-height: 320px; overflow-y: auto; padding: 0.5rem; }
.palette__item { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.8rem; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
.palette__item.is-active { background: rgba(108,140,255,0.16); }
.palette__icon { width: 1.4rem; text-align: center; color: var(--accent); font-family: "JetBrains Mono", monospace; }
.palette__label { color: var(--ink); font-weight: 500; }
.palette__hint { margin-left: auto; color: var(--ink-dim); font-size: 0.8rem; font-family: "JetBrains Mono", monospace; }
.palette__empty { padding: 1.2rem; text-align: center; color: var(--ink-dim); }

/* ---------- Ce que je connecte ---------- */
.caps { max-width: var(--max); margin: 0 auto; padding-top: 8vh; padding-bottom: 8vh; }
.caps__heading {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 1rem 0 2.6rem;
}
.caps__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.cap {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.cap:hover {
  transform: translateY(-4px);
  border-color: rgba(247,185,85,0.45);
  box-shadow: 0 18px 40px -20px rgba(247,185,85,0.3);
}
.cap__icon {
  font-size: 1.4rem; line-height: 1;
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(247,185,85,0.1);
  border: 1px solid rgba(247,185,85,0.18);
}
.cap__label { font-size: 0.95rem; color: var(--ink); font-weight: 500; }
/* la carte « sécurité / accès chiffré » se distingue */
.cap--sec { border-color: rgba(52,231,211,0.3); background: linear-gradient(160deg, rgba(52,231,211,0.08), rgba(255,255,255,0.015)); }
.cap--sec .cap__icon { background: rgba(52,231,211,0.12); border-color: rgba(52,231,211,0.3); }
.cap--sec:hover { border-color: rgba(52,231,211,0.6); box-shadow: 0 18px 40px -20px rgba(52,231,211,0.35); }

/* ---------- Écosystèmes maîtrisés ---------- */
.eco { max-width: var(--max); margin: 0 auto; padding-top: 4vh; padding-bottom: 6vh; text-align: center; }
.eco .section__tag { display: block; }
.eco__heading {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 1rem auto 2.4rem;
  max-width: 20ch;
}
.eco__grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.eco__item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--ink-dim);
  font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 0.92rem;
  transition: transform 0.35s var(--ease), color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.eco__item:hover {
  color: var(--ink);
  border-color: rgba(247,185,85,0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -16px rgba(247,185,85,0.4);
}
.eco__icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  color: var(--accent);
}

/* ---------- Aller plus loin (liens externes) ---------- */
.explore { max-width: var(--max); margin: 0 auto; padding-top: 6vh; padding-bottom: 6vh; }
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.link-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  min-height: 200px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.link-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,140,255,0.5);
  box-shadow: 0 26px 55px -22px rgba(108,140,255,0.45);
}
/* halo lumineux qui s'illumine au survol */
.link-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(420px circle at 50% 0%, rgba(108,140,255,0.25), transparent 70%);
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.link-card:hover .link-card__glow { opacity: 1; }
.link-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.link-card__kicker {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--accent-3);
}
.link-card__arrow {
  font-size: 1.4rem;
  color: var(--ink-dim);
  transition: transform 0.4s var(--ease), color 0.4s;
}
.link-card:hover .link-card__arrow { transform: translate(4px, -4px); color: var(--accent); }
.link-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  margin: 1.6rem 0 0.5rem;
}
.link-card__desc { color: var(--ink-dim); font-size: 0.98rem; margin-bottom: 1.2rem; }
.link-card__url {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.link-card__url::before { content: "→ "; opacity: 0.6; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__heading {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
}
.contact__sub { color: var(--ink-dim); margin: 1rem 0 2.5rem; font-size: 1.1rem; }
.contact__mail {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600;
  position: relative;
  background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.6s var(--ease);
}
.contact__mail:hover { background-position: 100% center; }
.contact__zone { margin-top: 1.8rem; color: var(--ink-dim); font-size: 0.95rem; }
.contact__zone strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem clamp(1.2rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--ink-dim);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .nav__links { gap: 1.1rem; }
  .scroll-hint { display: none; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__title .word, .reveal, .fade-up { opacity: 1; transform: none; }
  #constellation { opacity: 1; }
}
