/* Reset global */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  background-color: #020024;
    color: #e6e7f1;
}

/* Body et main */
body {
    display: flex;
    flex-direction: column;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 43%, rgb(3, 64, 77) 100%);
}

body::before {
  content: "";
  position: fixed;
  left: -55vw;
  right: -55vw;
  top: 53%;
  height: 95vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 65, 235, 0.72) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 65, 235, 0.72) 2px, transparent 2px);
  background-size: 92px 92px;
  transform: perspective(900px) rotateX(70deg) scale(1.45);
  transform-origin: top center;
  opacity: 0.8;
  filter:
    drop-shadow(0 0 4px rgba(255, 65, 235, 0.8))
    drop-shadow(0 0 14px rgba(255, 65, 235, 0.45));
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 53%;
  height: 3px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 170, 250, 0.85) 12%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 170, 250, 0.85) 88%,
    transparent 100%
  );
  box-shadow:
    0 0 10px rgba(255, 150, 245, 0.95),
    0 0 26px rgba(255, 90, 230, 0.8),
    0 0 52px rgba(255, 40, 210, 0.55);
}

body > * {
  position: relative;
  z-index: 1;
}


main {
    flex: 1;
}

/* Header & footer */
header, footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* header {
    background-color: #81B29A;
}

footer {
    background-color: #E07A5F;
} */

/* Titles */
h1, h2 {
    text-align: center;
    margin: 0;
}

h1
{
  font-size: 50px;
}

a
{
	text-decoration	:	none;
}

a:visited
{
	text-decoration	:	none;
	color			:	#e6e7f1;
}

/* Physics container */
#physics-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px); /* zone physique */
    overflow: hidden;
}

.projectsLegend {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  padding: 10px 12px;
  border: 1px solid rgba(255, 170, 250, 0.4);
  border-radius: 12px;
  background: rgba(2, 0, 36, 0.45);
  backdrop-filter: blur(2px);
  color: #F4F1DE;
  font-size: 0.9rem;
}

.projectsLegend .legendItem {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projectsLegend .legendItem + .legendItem {
  margin-top: 6px;
}

.projectsLegend .legendDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 65, 235, 0.85);
  box-shadow:
    0 0 6px rgba(255, 65, 235, 0.7),
    0 0 12px rgba(255, 65, 235, 0.35);
}

.projectsLegend .legendDot.projectType42 {
  border-color: rgba(80, 170, 255, 0.85);
  box-shadow:
    0 0 6px rgba(80, 170, 255, 0.7),
    0 0 12px rgba(80, 170, 255, 0.35);
}

.projectsLegend .legendDot.projectTypeGraphic {
  border-color: rgba(90, 235, 145, 0.85);
  box-shadow:
    0 0 6px rgba(90, 235, 145, 0.7),
    0 0 12px rgba(90, 235, 145, 0.35);
}

.projectsLegend .legendDot.projectTypeGame {
  border-color: rgba(255, 95, 95, 0.85);
  box-shadow:
    0 0 6px rgba(255, 95, 95, 0.7),
    0 0 12px rgba(255, 95, 95, 0.35);
}

.projectsLegend .legendDot.projectTypeOther {
  border-color: rgba(255, 170, 90, 0.85);
  box-shadow:
    0 0 6px rgba(255, 170, 90, 0.7),
    0 0 12px rgba(255, 170, 90, 0.35);
}

/* Bulles physiques */
.projectBubble {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
  --bubble-border-color: rgba(255, 65, 235, 0.85);
  --bubble-shadow-strong: rgba(255, 65, 235, 0.7);
  --bubble-shadow-soft: rgba(255, 65, 235, 0.35);
  --bubble-shadow-hover-strong: rgba(255, 65, 235, 0.95);
  --bubble-shadow-hover-soft: rgba(255, 65, 235, 0.55);
  border: 2px solid var(--bubble-border-color);
  box-shadow:
    0 0 8px var(--bubble-shadow-strong),
    0 0 18px var(--bubble-shadow-soft);
  transition: box-shadow 0.3s ease;
    /* width/height définis par JS via radius */
}

.projectBubble.projectType42 {
  --bubble-border-color: rgba(80, 170, 255, 0.85);
  --bubble-shadow-strong: rgba(80, 170, 255, 0.7);
  --bubble-shadow-soft: rgba(80, 170, 255, 0.35);
  --bubble-shadow-hover-strong: rgba(80, 170, 255, 0.95);
  --bubble-shadow-hover-soft: rgba(80, 170, 255, 0.55);
}

.projectBubble.projectTypeGraphic {
  --bubble-border-color: rgba(90, 235, 145, 0.85);
  --bubble-shadow-strong: rgba(90, 235, 145, 0.7);
  --bubble-shadow-soft: rgba(90, 235, 145, 0.35);
  --bubble-shadow-hover-strong: rgba(90, 235, 145, 0.95);
  --bubble-shadow-hover-soft: rgba(90, 235, 145, 0.55);
}

.projectBubble.projectTypeGame {
  --bubble-border-color: rgba(255, 95, 95, 0.85);
  --bubble-shadow-strong: rgba(255, 95, 95, 0.7);
  --bubble-shadow-soft: rgba(255, 95, 95, 0.35);
  --bubble-shadow-hover-strong: rgba(255, 95, 95, 0.95);
  --bubble-shadow-hover-soft: rgba(255, 95, 95, 0.55);
}

.projectBubble.projectTypeOther {
  --bubble-border-color: rgba(255, 170, 90, 0.85);
  --bubble-shadow-strong: rgba(255, 170, 90, 0.7);
  --bubble-shadow-soft: rgba(255, 170, 90, 0.35);
  --bubble-shadow-hover-strong: rgba(255, 170, 90, 0.95);
  --bubble-shadow-hover-soft: rgba(255, 170, 90, 0.55);
}

.projectBubble .circleContent {
  position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
	  background-size: cover;
	  background-position: center;
	  display: flex;
    justify-content: center;  /* centre horizontalement */
    align-items: center;      /* centre verticalement */
    text-align: center;
}

.projectBubble .circleContent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: rgba(2, 0, 36, 0.92);
  transition: opacity 0.3s ease;
}

.projectBubble:hover .circleContent::before {
  opacity: 0;
}

.projectBubble h2 {
    position: relative;
    z-index: 2;
    color: #F4F1DE;
    margin: 0;
    padding: 0 5px; /* pour éviter que le texte touche les bords */
    font-size: 1.5em; /* ajuste si besoin selon le radius */
    word-wrap: break-word;
    opacity: 1;
    text-shadow:
      0 0 6px rgba(0, 0, 0, 0.75),
      0 0 14px rgba(0, 0, 0, 0.6);
}

/* Optionnel : style hover pour zoom */
.projectBubble:hover {
    transition: transform 0.3s ease;
    box-shadow:
  0 0 14px var(--bubble-shadow-hover-strong),
  0 0 28px var(--bubble-shadow-hover-soft);
}

/* Buttons container */

.buttonContainer
{
  height: 60%;
  width: 40%;
  margin: auto;
  display:flex;
  align-items: center;
  flex-direction:column;
  justify-content:space-evenly;
}

.buttonContainer > a
{
  display: inline-block;
  width: 70%;
  padding-top: 2%;
  padding-bottom: 2%;
  border: 1px solid transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.buttonContainer > a:hover
{
  transform: translateY(-2px);
  border-color: rgba(255, 170, 250, 0.85);
  box-shadow:
    0 0 10px rgba(255, 150, 245, 0.95),
    0 0 26px rgba(255, 90, 230, 0.8),
    0 0 52px rgba(255, 40, 210, 0.55);
}

/* Supprimer flex/grid qui clash avec les bulles */
ul.projectsWrapper, li, li a {
    display: block;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    border-radius: 0;
}

.projectPage
{
	display: flex;
	padding: 3%;
	flex-direction: column;
	align-items: center;
}

.mainImage
{
	width: 50%;
	border-radius: 12%;
}

/**** FONT CLASSES ****/

.kedebideri-regular {
  font-family: "Kedebideri", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.kedebideri-medium {
  font-family: "Kedebideri", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.kedebideri-semibold {
  font-family: "Kedebideri", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.kedebideri-bold {
  font-family: "Kedebideri", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.kedebideri-extrabold {
  font-family: "Kedebideri", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.kedebideri-black {
  font-family: "Kedebideri", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.alumni-sans-pinstripe-regular {
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.alumni-sans-pinstripe-regular-italic {
  font-family: "Alumni Sans Pinstripe", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.new-amsterdam-regular {
  font-family: "New Amsterdam", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.jaro {
  font-family: "Jaro", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.electrolize-regular {
  font-family: "Electrolize", sans-serif;
  font-weight: 900;
  font-style: normal;
}
.silkscreen-regular {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.silkscreen-bold {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.monofett-regular {
  font-family: "Monofett", monospace;
  font-weight: 400;
  font-style: normal;
}

.doto {
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "ROND" 0;
}

.bungee-shade-regular {
  font-family: "Bungee Shade", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.tourney {
  font-family: "Tourney", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.silkscreen-regular {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.silkscreen-bold {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-style: normal;
}
