@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Maven+Pro:wght@400..900&display=swap');

:root {
    --bg-color: #110f0f;
    --bg-popup: rgba(94, 95, 96, 0.518);
    --text-color: #d9e6f8;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0;
}

.pop-up {
    background-color: var(--bg-popup) !important;
    border: none !important;
    backdrop-filter: blur(6px) !important;
}

.pop-up:has( > .pop-up-message > .project) {
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.pop-up-buttons {
    margin-top: auto !important;
}
.yes-button {
    background-color: #46785a !important;
    border-color: #c4ffd2 !important;
    color: #c4ffd2 !important;
}

#home {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#home::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height: 200px; /* 120–200px selon ton layout */
  pointer-events:none;
  z-index: 3;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    color-mix(in srgb, var(--bg-color) 50%, transparent),
    var(--bg-color)
  );
}

.text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#home .text .title {
    text-align: left;
    margin-bottom: 1rem;
}

#home .text .title > * {
    margin: 0;
    line-height: 1.1;
}

#home .text h1 {
    font-size: 4rem;
    margin: 0;
}

.background-effect {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#starfield{
  width: 100%;
  height: 100%;
  display: block;
}


section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 14vh;
}

* { cursor: none; }

.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* permet aux clicks d'atteindre les popups */
    z-index: 99999;        /* au-dessus des popups visuellement */
    mix-blend-mode: normal;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: rgba(200,220,255,0.95);
  box-shadow: 0 0 12px rgba(120,160,255,0.55);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(160,190,255,0.45);
  box-shadow: 0 0 26px rgba(120,160,255,0.20);
  backdrop-filter: blur(2px);
}

/* États interactifs */
.cursor--active .cursor-ring {
  transform: translate(-50%, -50%) scale(1.25);
  border-color: rgba(255,200,140,0.55);
  box-shadow: 0 0 34px rgba(255,200,140,0.22);
}
.cursor--active .cursor-dot {
  background: rgba(255,200,140,0.95);
  box-shadow: 0 0 14px rgba(255,200,140,0.55);
}

/* Accessibilité : si l’utilisateur préfère moins d’animations */
@media (prefers-reduced-motion: reduce) {
  .cursor-ring { transition: none !important; }
}

.slide {
    border-radius: 8px;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--text-color);
    margin: 4px;
    box-shadow: 0 0 4px rgba(151, 150, 153, 0.5);
    z-index: 2;
}

.slide:hover {
    box-shadow: 0 0 8px rgba(164, 154, 186, 0.8);
    transition: box-shadow 0.3s ease;
}

*:has(> .slide) {
    width: 33%;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 40%;
    max-width: 762px;
    margin: 40px auto;
    padding: 18px;
    box-shadow: 0 0 4px rgba(151, 150, 153, 0.5);
    border-radius: 8px;
}

#contact input, #contact textarea {
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: "Manrope", sans-serif;
    background-color: var(--bg-color);
    border: 1px solid #555;
}

#contact form * {
    color: var(--text-color);
}

#contact button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #444;
    color: var(--text-color);
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

[data-parallax] { will-change: transform; }

.parallax-layer{
  position:absolute; inset:-10%;
  /* pointer-events:none; */
  z-index:1;
  will-change: transform;
}
.layer-glow{
  background: radial-gradient(circle at 30% 30%, rgba(120,160,255,.18), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(255,200,140,.10), transparent 60%);
  opacity: 0.4;
}

.h1-fx{
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* lettres */
.h1-fx .ch{
  display: inline-block;
  will-change: transform, filter, background-position;
  transition: transform .45s ease-in-out, filter .45s ease-in-out, background-position .7s ease-in-out, opacity .3s ease-in-out;
}

/* état normal : texte quasi blanc */
.h1-fx .ch{
  color: rgba(240,245,255,0.92);
}

/* gradient prêt mais non affiché */
.h1-fx.gradient .ch{
  background: linear-gradient(90deg, #84abff, #6284ff, #ffc58a);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  padding-bottom: 10px;
}

/* hover : on révèle le gradient + lift + glow */
.h1-fx.gradient:hover .ch,
.h1-fx.gradient.h1-fx.auto-over .ch {
  color: transparent; /* laisse passer le gradient CLIPPÉ sur la lettre */
  background-position: 100% 50%;
  transform: translateY(-2px);
  filter:
    drop-shadow(0 0 10px rgba(120,160,255,0.35))
    drop-shadow(0 0 18px rgba(255,180,120,0.25));
  transition-delay: calc(var(--i) * 18ms);
}

.h1-fx.gradient:hover .ch:nth-child(odd),
.h1-fx.gradient.h1-fx.auto-over .ch:nth-child(odd) {
  transform: translateY(-3px);
}

/* mobile version */
@media (max-width: 560px) {
    #home .text {
        margin: 0 12px;
    }
    #home .text h1 {
        font-size: 2.5rem;
    }

    #home .text p {
        text-align: center;
    }
    #contact form {
        width: 80%;
    }
}