
/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }

body {
  position: relative;
  background: #0d0d0d;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 100;
  letter-spacing: 4px;
}
p, a, li {
  font-weight: 100;
}

/* =====================
   HEADER / NAV
===================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  top: 0; left: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}
header h1 { font-size: 1.2rem; letter-spacing: 2px; }

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}
nav a:hover { color: #aaa; }

.header {
  position: fixed;
  top: 51px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000;
}
.menu {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
}
.menu a {
  position: relative;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0%; height: 1px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: width 0.3s ease;
}
.menu a:hover { color: rgba(255,255,255,1); }
.menu a:hover::after { width: 100%; }
.menu .divider { color: rgba(255,255,255,0.4); font-size: 13px; }

/* =====================
   BACKGROUND
===================== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  background: black;
}
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

/* =====================
   SECTIONS
===================== */
section {
  min-height: 100vh;
  padding: 120px 50px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
h2 {
  font-size: 4rem;
  margin-bottom: 60px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* HERO */
#accueil h1 {
  font-size: 7rem;
  font-weight: 100;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
#accueil h2 { font-size: 6rem; margin-bottom: 20px; }
#accueil p { font-size: 1.2rem; max-width: 700px; color: #fff; }

/* =====================
   SIGNATURE
===================== */
.signature {
  position: absolute;
  top: 51px; left: 60px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.6;
  color: #fff;
  z-index: 1000;
}
.signature .name { font-weight: 100; font-size: 14px; }
.signature .location { font-weight: 100; font-size: 12px; color: #aaa; }

/* =====================
   LANGUAGE SWITCH
===================== */
.lang-widget {
  position: absolute;
  top: 52px; right: 60px;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
}
.lang-widget button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.lang-widget button.active,
.lang-widget button:hover { background: rgba(255,255,255,0.25); }

/* =====================
   ABOUT
===================== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 10%;
	background: black;

}
.about-left { text-align: left; }
.about-left h2 { font-size: 3rem; margin-bottom: 20px; }
.about-left p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 15px; }
.about-right { width: 100%; }

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%;
}
.slides img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  flex-shrink: 0;
}
.slider-controls {
  position: absolute;
  bottom: 15px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0,0,0,0.5);
  padding: 6px 15px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}
.slider-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.slider-controls .pause { font-size: 18px; }
.dots { display: flex; gap: 8px; }
.dots span {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: 0.3s;
}
.dots span.active {
  width: 20px;
  background: white;
  border-radius: 10px;
}
@media (max-width: 900px) {
  .about-section { grid-template-columns: 1fr; text-align: center; }
  .about-left { text-align: center; }
  .about-right { margin-top: 40px; }
}

/* =====================
   WORK
===================== */
.work-section { padding: 120px 0; width: 100%;background: #0d0d0d98; }
.work-block {
  border-bottom: 1px solid rgba(255,255,255,0.15);
	transition: background 0.4s ease;
}
.work-block.open { background: rgba(0,0,0); }
.work-header {
  display: flex; align-items: center;
  gap: clamp(24px,4vw,60px);
  padding: clamp(24px,4vw,50px) 8%;
  cursor: pointer;
}
.work-number {
  font-size: clamp(6rem,20vw,18rem);
  font-weight: 900;
  line-height: .8;
  color: #fff;
  flex-shrink: 0;
  transition: opacity .3s ease;
}
.work-header h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: clamp(1.4rem,2.5vw,2.6rem);
}
.work-header:hover .work-number { opacity: .25; }
.work-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px,4vw,60px);
  padding: 0 8%;
  height: 0;
  overflow: hidden;
  transition: height 0.6s ease, padding 0.4s ease;
}
.work-block.open .work-content { padding: clamp(24px,4vw,50px) 8%; }
.work-slider { position: relative; }
.work-slider img {
  width: 100%;
  height: clamp(500px, 155vh, 690px);
  object-fit: scale-down;
  border-radius: 14px;
  display: none;
}
.work-slider img.active { display: block; }
.work-text {
  align-self: center;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.6;
}

/* =====================
   GALLERY (stacked)
===================== */
#gallery {
  padding: 100px 60px;
  background: #000;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
#gallery h2 {
  margin-bottom: 60px;
  font-size: 4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.stacked-gallery {
  position: relative;
  width: 480px;
  height: 600px;
  margin: 0 auto;
  perspective: 1200px;
}
.stacked-card {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(0) scale(0.9);
  transition: transform 1.2s cubic-bezier(0.25,1,0.3,1), opacity 1s ease;
}
.stacked-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.stacked-card.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 50;
}
.stacked-card.active img { transform: scale(1.05); }
.stacked-widget {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: rgba(255,255,255,0.08);
  border-radius: 40px;
  padding: 8px 20px;
  backdrop-filter: blur(12px);
}
.stacked-widget button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.stacked-widget button:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.15);
}

/* =====================
   LIGHTBOX
===================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox-content {
  position: relative;
  width: 90%; height: 90%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.lightbox iframe { width: 100%; height: 100%; }
.lightbox .close {
  position: absolute;
  top: 15px; right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* =====================
   UTILS
===================== */
.vertical-text {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  opacity: 0.9;
  writing-mode: vertical-rl;
}
.vertical-text.left {
  left: 20px;
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 10px;
}
.vertical-text.right {
  right: 20px;
  border-right: 1px solid rgba(255,255,255,0.3);
  padding-right: 10px;
}
/* =====================
   RESPONSIVE DESIGN
===================== */

/* Tablette */
@media (max-width: 1024px) {
  #accueil h1 { font-size: 4rem; }
  #accueil p { font-size: 1rem; }

  .menu { gap: 20px; }
  .work-content { grid-template-columns: 1fr; }
  .work-text { text-align: center; margin-top: 20px; }
  .about-section { gap: 30px; padding: 60px 5%; }
  .about-left h2 { font-size: 2.2rem; }
  #gallery h2 { font-size: 2.5rem; }
  .stacked-gallery { width: 350px; height: 450px; }
}

/* Mobile */
@media (max-width: 600px) {
  header { padding: 15px 20px; }

  .menu { flex-wrap: wrap; gap: 12px; }
  .menu a { font-size: 12px; letter-spacing: 2px; }

  #accueil h1 { font-size: 2.5rem; }
  #accueil p { font-size: 0.9rem; padding: 0 10px; }

  .about-section { padding: 40px 20px; }
  .about-left h2 { font-size: 1.8rem; }
  .about-left p { font-size: 0.95rem; }

  .work-section { padding: 60px 20px; }
  .work-number { font-size: 4rem; }
  .work-header h3 { font-size: 1.2rem; }
  .work-slider img { height: auto; border-radius: 8px; }

  #gallery { padding: 40px 20px; }
  #gallery h2 { font-size: 2rem; margin-bottom: 30px; }
  .stacked-gallery { width: 280px; height: 350px; }

  .signature { top: 20px; left: 20px; font-size: 12px; }
  .lang-widget { top: 20px; right: 20px; gap: 6px; padding: 3px 8px; }
  .lang-widget button { font-size: 11px; padding: 4px 8px; }
}
.header {
  position: fixed;
  top: 51px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease;
 /* style widget traduction */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 25px;
  padding: 10px 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.header.hide {
  transform: translate(-50%, -150%); /* monte hors écran */
  opacity: 0;
}
/* =====================
   MENU HAMBURGER (Mobile)
===================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation mobile */
.menu {
  transition: transform 0.3s ease-in-out;
}

/* =====================
   AMÉLIORATIONS RESPONSIVE
===================== */

/* Tablette */
@media (max-width: 1024px) {
  .header {
    top: 30px;
    padding: 8px 20px;
  }
  
  .signature {
    top: 25px;
    left: 20px;
  }
  
  .lang-widget {
    top: 25px;
    right: 20px;
  }
  
  #accueil h1 {
    font-size: 5rem;
    margin-top: 40px;
  }
  
  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 5%;
  }
  
  .about-right {
    margin-top: 0;
  }
  
  .slides img {
    height: 500px;
  }
  
  .work-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .work-slider img {
    height: 400px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Menu hamburger visible */
  .menu-toggle {
    display: flex;
  }
  
  /* Navigation originale cachée sur mobile */
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }
  
  .menu.active {
    transform: translateY(0);
  }
  
  .menu a {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }
  
  .menu.active a {
    opacity: 1;
    transform: translateY(0);
  }
  
  .menu .divider {
    display: none;
  }
  
  /* Ajustements généraux */
  section {
    padding: 100px 20px 60px;
    min-height: auto;
  }
  
  #accueil h1 {
    font-size: 2.8rem;
    letter-spacing: 3px;
    margin-top: 60px;
  }
  
  #accueil p {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
  
  /* Signature et langue */
  .signature {
    position: fixed;
    top: 25px;
    left: 60px;
    font-size: 12px;
  }
  
  .lang-widget {
    position: fixed;
    top: 25px;
    right: 20px;
  }
  
  /* About section */
  .about-section {
    padding: 60px 20px;
  }
  
  .about-left h2 {
    font-size: 2rem;
  }
  
  .slides img {
    height: 300px;
  }
  
  /* Work section */
  .work-section {
    padding: 60px 0;
  }
  
  .work-header {
    padding: 20px;
  }
  
  .work-number {
    font-size: 4rem;
  }
  
  .work-header h3 {
    font-size: 1.2rem;
  }
  
  .work-content {
    padding: 0 20px;
  }
  
  .work-block.open .work-content {
    padding: 20px;
  }
  
  .work-slider img {
    height: 250px;
  }
  
  /* Gallery */
  #gallery {
    padding: 60px 20px;
  }
  
  #gallery h2 {
    font-size: 2.5rem;
  }
  
  .stacked-gallery {
    width: 100%;
    max-width: 300px;
    height: 400px;
  }
  
  /* Vertical text caché sur mobile */
  .vertical-text {
    display: none;
  }
}

/* Très petits mobiles */
@media (max-width: 480px) {
  #accueil h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .work-number {
    font-size: 3rem;
  }
  
  .signature {
    left: 20px;
  }
  
  .signature .name {
    font-size: 12px;
  }
  
  .signature .location {
    font-size: 10px;
  }
}

/* Animation d'apparition progressive pour le menu mobile */
.menu a:nth-child(1) { transition-delay: 0.1s; }
.menu a:nth-child(2) { transition-delay: 0.2s; }
.menu a:nth-child(3) { transition-delay: 0.3s; }
.menu a:nth-child(4) { transition-delay: 0.4s; }
.menu a:nth-child(5) { transition-delay: 0.5s; }

/* Correction pour éviter le débordement horizontal */
html, body {
  overflow-x: hidden;
  width: 100%;
}
/* Loader minimaliste & élégant (3 points animés) */
.lang-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lang-loader.active {
  opacity: 1;
  pointer-events: all;
}

.lang-loader span {
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background: white;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 0.6s infinite alternate;
}

.lang-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.lang-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from { transform: scale(0.6); opacity: 0.5; }
  to   { transform: scale(1.2); opacity: 1; }
}
/* --- Autenticação minimalista — versão larga --- */
.auth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  gap: 4rem;
  font-family: 'Poppins', sans-serif;
  color: #eaeaea;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cartão principal mais largo */
.auth-card, .chat-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 3rem 3.5rem;
  width: 100%;
  max-width: 700px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeIn 0.6s ease forwards;
}

.auth-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.auth-card h2, .chat-card h3 {
  font-weight: 500;
  margin-bottom: 1.8rem;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form input {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
}

/* Botões */
.auth-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem;
}

.auth-btn:hover {
  background: rgba(255,255,255,0.15);
}

.auth-btn.secondary {
  margin-top: 1rem;
  background: transparent;
}

/* Links alternar */
.auth-switch {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.6rem;
}

.auth-switch .link {
  cursor: pointer;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
}

.auth-switch .link:hover {
  opacity: 1;
}

/* Estado */
.auth-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Chat mais largo */
.chat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.chat-messages {
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-input {
  display: flex;
  width: 100%;
  gap: 0.8rem;
}

.chat-input input {
  flex: 1;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
}

.chat-input button {
  padding: 1rem 1.4rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  transition: 0.25s ease;
}

.chat-input button:hover {
  background: rgba(255,255,255,0.15);
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============================
   SECTION CONTACT (verre flouté)
   ============================ */
.contact-section {
  padding: 120px 10%;
  background: #000;
  color: #fff;
  text-align: center;
}

.contact-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* Carte floutée */
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Boutons & inputs */
.btn {
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: 0.25s ease;
}
.btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.btn.primary {
  background: rgba(255,255,255,0.2);
}
.btn.small {
  padding: 6px 10px;
  font-size: 0.8rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

/* Auth UI */
.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.auth-header h3 {
  font-size: 1.2rem;
  color: #fff;
}
.auth-card.hidden {
  display: none;
}
.auth-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 5px;
}
.auth-note .link {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

/* Chat */
#messages-ui.hidden {
  display: none;
}
#messages-list {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.msg {
  background: rgba(255,255,255,0.05);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.chat-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
#msg-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #fff;
}
.auth-status {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 8px;
  color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 600px) {
  .contact-card {
    padding: 20px;
    width: 90%;
  }
}

/* =============================
   ESTILOS PÁGINAS DE AUTENTICAÇÃO
   ============================= */

/* Layout geral da página */
.auth-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2; /* Garante que o conteúdo fica sobre o canvas */
}

/* Link para voltar à página inicial */
.home-link {
    position: absolute;
    top: 25px;
    left: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.home-link:hover {
    opacity: 1;
}

/* Container do formulário (efeito vidro) */
.auth-container {
    background: rgba(10, 25, 47, 0.85); /* Cor de fundo do teu site */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 50px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.auth-title {
    color: #fff;
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 1px;
}

/* Formulário */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Aumenta o espaço entre os campos */
}

/* Campos de input */
.auth-form input, .contact-form input, .contact-form textarea {
    background-color: #0a192f;
    border: 1px solid #1a3a5e;
    color: #ccd6f6;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.auth-form input::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #8892b0;
}

.auth-form input:focus, .contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #ffffff; /* Cor de destaque do teu site - Roxo */
    background-color: #9d72ff;
}

/* Botão a ocupar a largura toda */
.btn.full-width {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Link para alternar entre login/registo */
.auth-switch {
    margin-top: 25px;
    color: #8892b0;
}

.auth-switch a {
    color: #9d72ff; /* Cor de destaque - Roxo */
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Mensagens de erro/sucesso */
.auth-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}
.auth-message.error {
    background-color: rgba(255, 100, 100, 0.2);
    color: #ffc0c0;
    border: 1px solid rgba(255, 100, 100, 0.4);
}
.auth-message.success {
    background-color: rgba(100, 255, 100, 0.2);
    color: #c0ffc0;
    border: 1px solid rgba(100, 255, 100, 0.4);
}
.clean-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    text-transform: lowercase !important;
    padding-bottom: 5px;
    transition: 0.3s;
}

.clean-link:hover {
    color: #9d72ff;
    padding-left: 5px;
}

input:focus, select:focus {
    border-color: #9d72ff !important;
    outline: none;
}
/* Container Geral */
.premium-budget {
    padding: 100px 20px;
    background:#0d0d0d98
}

/* O Cartão em Vidro */
.budget-glass-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* Chips de Serviço */
.selector-label {
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.chip { cursor: pointer; }
.chip input { display: none; }

.chip-content {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #8892b0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.chip input:checked + .chip-content {
    background: #9d72ff;
    color: #fff;
    border-color: #9d72ff;
    box-shadow: 0 0 15px rgba(157, 114, 255, 0.4);
    transform: translateY(-3px);
}

/* Inputs e Textarea */
.main-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.input-glow-group, .select-glow-group, .textarea-glow-group {
    position: relative;
}

.input-glow-group input, .select-glow-group select, .textarea-glow-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.textarea-glow-group textarea {
    min-height: 180px; /* Grande como pediste */
    resize: none;
}

.input-glow-group input:focus, .textarea-glow-group textarea:focus {
    outline: none;
    border-color: #9d72ff;
    background: rgba(157, 114, 255, 0.05);
}

/* Botão WOW */
.budget-footer {
    margin-top: 40px;
    text-align: right;
}

.btn-wow {
    background: linear-gradient(135deg, #9d72ff 0%, #6e45e2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
}

.btn-wow:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(110, 69, 226, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .main-row { grid-template-columns: 1fr; }
    .budget-glass-card { padding: 30px; }
}
