/* Hub flaconn.fr : fond prune profond, fluide par-dessus. */
@font-face {
  font-family: "Gochi Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/gochi-hand-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
}
:root { --fond: #1c0718; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--fond);
  color: #fff;
  font-family: "Inter Tight", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Le fluide occupe tout l'écran, derrière le contenu. Si WebGL manque, il reste un léger dégradé. */
.fond {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 50% at 70% 30%, rgba(82, 39, 255, 0.18), transparent 70%), var(--fond);
}
.liquid-ether { position: fixed; inset: 0; overflow: hidden; }
.liquid-ether__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.contenu { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; pointer-events: none; }
/* Le titre occupe une large bande au centre ; tant que le script n'a pas pris le relais, c'est un vrai titre texte */
.titre {
  width: 100%;
  height: min(60vh, 520px);
  display: grid;
  place-items: center;
  font-size: clamp(40px, 9vw, 160px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
  pointer-events: auto;
}
.tech-text { position: relative; touch-action: pan-y; user-select: none; }
.tech-text-canvas { display: block; width: 100%; height: 100%; }
.contenu a, .contenu button { pointer-events: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Flèches dessinées « main levée » : trait blanc doux, épaisseur constante quel que soit l'écran */
.fleches { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fleches path {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
/* Chaque flèche se trace l'une après l'autre, puis sa pointe apparaît */
.fleches .trait {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tracer 0.9s cubic-bezier(0.6, 0, 0.3, 1) forwards;
  animation-delay: calc(0.6s + var(--i) * 0.18s);
}
.fleches .pointe {
  opacity: 0;
  animation: apparaitre 0.25s ease-out forwards;
  animation-delay: calc(1.4s + var(--i) * 0.18s);
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fleches .trait { animation: none; stroke-dashoffset: 0; }
  .fleches .pointe { animation: none; opacity: 1; }
}

/* Étiquettes au bout des flèches (placées par le script) */
.etiquette {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
  white-space: nowrap;
  opacity: 0;
  animation: apparaitre 0.5s ease-out forwards;
  animation-delay: 1.9s;
}
.bientot { display: flex; flex-direction: column; align-items: center; cursor: default; }
.bientot canvas { display: block; margin: -2px 0; }
/* Position par rapport à la pointe de chaque flèche */
/* Les deux du haut : centrées au-dessus de la pointe de leur flèche */
.etiquette[data-pointe="192,178"] { transform: translate(-50%, calc(-100% - 10px)); }
.etiquette[data-pointe="1285,427"] { transform: translate(-50%, calc(-100% - 4px)); }
.etiquette[data-pointe="272,1132"] { transform: translate(-50%, 10px); }
.etiquette[data-pointe="806,1120"] { transform: translate(-50%, 8px); }
.etiquette[data-pointe="1405,1035"] { transform: translate(0, -50%); }
/* Téléphone : les flèches occupent une bande plus haute, pour aérer les étiquettes */
.fleches-m { display: none; }
@media (max-aspect-ratio: 1/1) {
  #fleches { display: none; }
  .fleches-m { display: block; top: 14%; height: 72%; }
  .etiquette[data-pointe="192,178"] { transform: translate(-35%, calc(-100% - 8px)); }
  .etiquette[data-pointe="1285,427"] { transform: translate(-65%, calc(-100% - 4px)); }
  .etiquette[data-pointe="272,1132"] { transform: translate(-35%, 8px); }
  .etiquette[data-pointe="806,1120"] { transform: translate(-50%, 8px); }
  .etiquette[data-pointe="1405,1035"] { transform: translate(-75%, 6px); }
}

/* Lien vers Flaconn Accord : le nom dans la typographie du site, soulignement magenta au survol */
.accord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(22px, 2.8vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.accord-nom { position: relative; }
.accord-nom b { font-weight: 600; }
.accord-nom span { font-weight: 300; color: #f6a3cb; }
.accord-nom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #ef2d8a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.accord-fleche { width: 0.7em; height: 0.7em; opacity: 0.7; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s; }
.accord:hover .accord-nom::after, .accord:focus-visible .accord-nom::after { transform: scaleX(1); }
.accord:hover .accord-fleche, .accord:focus-visible .accord-fleche { transform: translate(3px, -3px); opacity: 1; }
.accord:hover { text-shadow: 0 0 24px rgba(239, 45, 138, 0.55); }
.accord:focus-visible { outline: 2px solid #f6a3cb; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .etiquette { animation: none; opacity: 1; }
}

/* Pied de page discret, par-dessus le fluide */
.pied {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 14px 24px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}
.pied a { color: rgba(255, 255, 255, 0.8); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.pied a:hover, .pied a:focus-visible { color: #fff; border-color: currentColor; }
.pied a:focus-visible { outline: 2px solid #f6a3cb; outline-offset: 3px; }
@media (max-width: 640px) {
  .pied { justify-content: center; text-align: center; padding: 12px 16px; font-size: 11.5px; }
}

/* Pages de texte (mentions légales) : sobres, fond prune, lisibles */
.page-texte { background: var(--fond); }
.texte { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.texte h1 { margin-top: 28px; font-size: clamp(36px, 6vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.texte .maj { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.texte h2 { margin-top: 36px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.texte p { margin-top: 10px; }
.texte a { color: #f6a3cb; }
.texte .retour { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px; }
.texte .retour:hover { color: #fff; }
