:root {
  --color-background: #0d0d0d;
  --color-text: #ffffff;
  --color-muted-text: #cccccc;
  --color-header-blue: #0066cc;
  --color-hover-blue: #0088cc;
  --color-dark-card: #1a1a1a;
  --color-border: #0066cc;
  --color-shadow: rgba(0, 102, 204, 0.2);
  --color-shadow-hover: rgba(0, 102, 204, 0.4);
  --color-button-text: #000;
  --color-footer-bg: #111;
  --color-footer-text: #888;

  --accent: #d4f1ff;
  --accent-glow1: rgba(255, 255, 255, 0.2);
  --accent-glow2: rgba(212, 241, 255, 0.4);
  --accent-glow3: rgba(180, 230, 255, 0.6);
}

body {
  background: radial-gradient(circle at center, #0c1e2c 0%, #010a14 100%);
  color: var(--color-text);
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("/assets/nebuleuse.png");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

.grecaptcha-badge {
  visibility: hidden; /* masque le badge de Google */
}

.recaptcha-disclaimer {
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.5;
  padding: 1rem 0;
}


header {
  padding: 2rem 1rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

h1 {
  font-family: "Sora", sans-serif;
  font-size: 3.5rem;
  color: var(--accent);
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;

  text-shadow: 0 0 4px var(--accent-glow1), 0 0 8px var(--accent-glow2),
    0 0 12px var(--accent-glow3);
}

h1::after {
  content: "";
  display: block;
  margin: 1rem auto 0;
  width: 60%;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    var(--accent),
    rgba(255, 255, 255, 0.2),
    transparent
  );
  clip-path: polygon(
    0% 50%,
    /* pointe gauche */ 50% 0%,
    /* haut centre */ 100% 50%,
    /* pointe droite */ 50% 100% /* bas centre */
  );
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  animation: linePulse 4s ease-in-out infinite;
}

header p {
  font-size: 1.2rem;
  color: var(--color-muted-text);
}

.cards {
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  padding-top: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  height: 250px;
  padding: 1.5rem;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--accent);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  background-color: rgba(13, 13, 13, 0.6);
  box-shadow: 0 0 10px rgba(51, 204, 255, 0.05),
    0 0 20px rgba(51, 204, 255, 0.08) inset;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px var(--accent-shadow-hover), 0 0 20px var(--accent);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, transparent, var(--accent), transparent);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.card:hover::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 14px;
  background: var(--accent);
  opacity: 0.05;
  z-index: -1;
  animation: pulse 1.5s infinite ease-in-out;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-icon {
  width: 40px;
  margin-bottom: 1rem;
  filter: var(--icon-filter);
}

.btn {
  background-color: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  display: inline-block;
  font-weight: bold;
  transition: background 0.3s;
  align-self: flex-start;
  margin: auto;
}

.btn:hover {
  filter: brightness(1.3);
}

footer {
  padding: 1rem;
  color: var(--color-footer-text);
  font-size: 0.9rem;
}

#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
  top: 0;
  left: 0;
}

/********** Flex ********/
.flex {
  display: flex;
}

.column {
  flex-direction: column;
}

.center {
  justify-content: center;
  align-items: center;
}
/******* End flex *********/

/* === THEMES === */

.card[data-theme="cyber"] {
  --accent: #00ffff;
  --accent-shadow: rgba(0, 255, 255, 0.2);
  --accent-shadow-hover: rgba(0, 255, 255, 0.4);
}

.card[data-theme="neon"] {
  --accent: #ff00cc;
  --accent-shadow: rgba(255, 0, 204, 0.2);
  --accent-shadow-hover: rgba(255, 0, 204, 0.4);
}

.card[data-theme="crystal"] {
  --accent: #66ccff;
  --accent-shadow: rgba(102, 204, 255, 0.2);
  --accent-shadow-hover: rgba(102, 204, 255, 0.4);
}

.card[data-theme="flare"] {
  --accent: #ff5500;
  --accent-shadow: rgba(255, 85, 0, 0.2);
  --accent-shadow-hover: rgba(255, 85, 0, 0.4);
}

.card[data-theme="void"] {
  --accent: #aa66ff;
  --accent-shadow: rgba(170, 102, 255, 0.2);
  --accent-shadow-hover: rgba(170, 102, 255, 0.4);
}

.card[data-theme="sunset"] {
  --accent: #ff6b6b;
  --accent-shadow: rgba(255, 107, 107, 0.2);
  --accent-shadow-hover: rgba(255, 107, 107, 0.4);
}

.card[data-theme="ocean"] {
  --accent: #00cccc;
  --accent-shadow: rgba(0, 204, 204, 0.2);
  --accent-shadow-hover: rgba(0, 204, 204, 0.4);
}

.card[data-theme="forest"] {
  --accent: #55aa55;
  --accent-shadow: rgba(85, 170, 85, 0.2);
  --accent-shadow-hover: rgba(85, 170, 85, 0.4);
}

.card[data-theme="ice"] {
  --accent: #a0e9ff;
  --accent-shadow: rgba(160, 233, 255, 0.2);
  --accent-shadow-hover: rgba(160, 233, 255, 0.4);
}

.card[data-theme="matrix"] {
  --accent: #00ff00;
  --accent-shadow: rgba(0, 255, 0, 0.2);
  --accent-shadow-hover: rgba(0, 255, 0, 0.4);
}

.card[data-theme="holo"] {
  --accent: #d966ff;
  --accent-shadow: rgba(217, 102, 255, 0.2);
  --accent-shadow-hover: rgba(217, 102, 255, 0.4);
}

.card[data-theme="dream"] {
  --accent: #8899ff;
  --accent-shadow: rgba(136, 153, 255, 0.2);
  --accent-shadow-hover: rgba(136, 153, 255, 0.4);
}

.card[data-theme="flare-alt"] {
  --accent: #ff9900;
  --accent-shadow: rgba(255, 153, 0, 0.2);
  --accent-shadow-hover: rgba(255, 153, 0, 0.4);
}


/******************************** KeyFrames ********************************/
@keyframes glow-scan {
  0%,
  100% {
    text-shadow: 0 0 10px var(--accent);
  }
  50% {
    text-shadow: 0 0 30px var(--accent);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.05;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.1;
  }
}

@keyframes glow-line {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

@keyframes scanDown {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

@keyframes glowIntro {
  0% {
    text-shadow: 0 0 0px transparent;
    opacity: 0;
  }
  100% {
    text-shadow: 0 0 10px #33ccff, 0 0 20px #33ccff;
    opacity: 1;
  }
}

@keyframes holoFade {
  0% {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes fadeGlowIn {
  from {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes fadeOutIntro {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes dots {
  0% {
    content: "";
  }
  33% {
    content: ".";
  }
  66% {
    content: "..";
  }
  100% {
    content: "...";
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-robot {
  0%,
  5% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px var(--accent));
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes floatNebula {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/**** End Keyframes ****/

/******************************** Intro ********************************/
#intro-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: none;
  z-index: 9999;
  animation: fadeOut 1s ease-in-out 4s forwards;
  pointer-events: none;
}

.intro-content {
  background: none;
  box-shadow: none;
  padding: 0;
}

.intro-content h1 {
  font-family: "Sora", sans-serif;
  font-size: 3.5rem;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent-shadow),
    0 0 18px var(--accent-shadow-hover);
  animation: fadeGlowIn 1.6s ease-out;
  background: transparent;
}

.intro-content p {
  font-size: 1rem;
  opacity: 0.7;
  animation: fadeInUp 2s ease-out;
}

#main-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#intro-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOutIntro 1s ease 3s forwards;
}

.dots-loading::after {
  content: "";
  animation: dots 1.2s steps(3, end) infinite;
}

/********************* Réseaux sociaux **********************/

.social-navbar {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  z-index: 1000;
}

.social-navbar a {
  color: var(--accent, #33ccff);
  font-size: 1.5rem;
  text-align: center;
  transition: transform 0.3s, color 0.3s;
}

.social-navbar a:hover {
  transform: scale(1.2);
  color: #ffffff;
  text-shadow: 0 0 10px var(--accent, #33ccff);
}

.social-mobile {
  display: none;
}
/****** End réseaux sociaux ******/

/*********** Customisation des cartes *************/
.card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card .preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(1px);
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.card:hover .preview-bg {
  opacity: 1;
}

.card h2,
.card p,
.card .btn {
  position: relative;
  z-index: 1;
} /********* End cartes**********/

/******************** Assistant ********************/
#assistant {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 999;
}

#assistant-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
}
#assistant-toggle i {
  color: var(--accent);
  font-size: 1.2rem;
  animation: bounce 3s infinite ease-in-out;
}

#assistant-toggle img {
  width: 64px;
  height: 64px;
  margin-top: -8px;
}

#assistant-toggle:hover img {
  transform: scale(1.1) rotate(2deg);
}

#assistant-box {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 50px;
  background: rgba(10, 10, 10, 0.85);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1rem;
  width: 360px;
  height: 400px;
  font-size: 0.95rem;
}

#assistant.open #assistant-box {
  display: block;
}

#assistant-box form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #fff;
}

#assistant-box input,
#assistant-box textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  color: white;
  font-family: inherit;
  resize: none;
  font-size: 0.8rem;
}

#assistant-box textarea{
  height: 120px;
}
#assistant-box input:focus,
#assistant-box textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 6px var(--accent);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.form-actions button {
  background: var(--accent);
  border: none;
  color: black;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-actions button:hover {
  background: white;
}

#assistant-confirmation {
  display: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 1rem;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

#assistant-confirmation p {
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.15);
}

#assistant-confirmation.show {
  display: block;
} 

.assistant-error {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid #ff4444;
  padding: 0.8rem;
  border-radius: 8px;
  color: #ffaaaa;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
}
/******** End assistant *********/

/******************** Hero section ********************/
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.scroll-down {
  position: absolute;
  bottom: 5rem;
  animation: bounce 2s infinite;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
}

.scroll-down > a {
  color: white;
}
/******************** Mobile ********************/
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  header h2,
  header p {
    font-size: 1rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
  }

  .card {
    width: 80vw;
    max-width: 400px;
    height: auto;
    min-height: 180px;
    padding: 1.2rem;
  }

  .card p {
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .social-navbar {
    display: none;
  }

  .social-mobile {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    z-index: 1000;
    gap: 0.4rem;
  }

  #toggle-social {
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.6);
    border: none;
    border-radius: 50%;
    padding: 0.6rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(51, 204, 255, 0.1);
    transition: transform 0.3s ease;
    font-size: 24px;
    color: white;
  }

  #togal-social > i {
    font-size: 24px;
  }

  .social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    margin-bottom: 10px;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 10px;
    border-radius: 20px;
  }

  .social-icons a {
    font-size: 1.4rem;
    color: var(--accent, #33ccff);
    transition: transform 0.2s ease;
  }
  .social-icons i {
    font-size: 46px;
  }

  .social-mobile.open .social-icons {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #assistant-toggle {
    height: 64px;
    width: 64px;
    justify-content: center;
  }

  #assistant-box{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
  }
}
