* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #0f172a;
  background:
    linear-gradient(180deg, #edf2fb, #e8eef7);
  overflow-x: hidden;
}



/* ===== FOND LEGER ===== */

.creator-page {
  position: relative;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 42px 0 80px;
}

.creator-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("/creator-bg-light.png");
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}

.creator-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(80,140,255,0.10), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(70,170,255,0.12), transparent 34%);
}

/* ===== VOIX FLOTTANTE ===== */

.voice-welcome {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 380px;
  max-width: calc(100vw - 40px);
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 60px rgba(90,120,180,.16);
  backdrop-filter: blur(14px);
  color: #0f172a;
}

.voice-orb {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#5c66ff,#1fb3ff);
  color: white;
  font-weight: 900;
  flex-shrink: 0;
}

.voice-box {
  flex: 1;
}

.voice-box p {
  margin: 4px 0 10px;
  color: #475569;
}

.voice-conversation {
  max-height: 130px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.voice-user,
.voice-ai {
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
}

.voice-user {
  background: #e0f2fe;
  align-self: flex-end;
}

.voice-ai {
  background: #eef2ff;
  align-self: flex-start;
}

#voiceMessage {
  width: 100%;
  min-height: 60px;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #d7e1ef;
  resize: none;
  background: rgba(255,255,255,.92);
  color: #0f172a;
}

.voice-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.voice-actions button {
  padding: 10px 14px;
  font-size: 13px;
}

/* ===== HEADER CREATEUR ===== */

.creator-hero,
.creator-card {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 34px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(90,120,180,.10);
}

.creator-hero {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 34px;
  align-items: center;
  padding: 44px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}

.creator-hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(90,170,255,.12), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.networkBadge {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  border: 1px solid rgba(31,179,255,.35);
}

.hero-logo {
  width: 70px;
  height: 70px;
  margin: 18px 0 8px;
  border-radius: 18px;
}

.hero-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  font-weight: 850;
  color: #0f172a;
  max-width: 850px;
  margin: 22px 0 18px;
  letter-spacing: -1.4px;
}

.hero-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  color: #324b72;
  max-width: 900px;
  margin: 0 0 26px;
}

.hero-copy p {
  font-size: clamp(17px, 2vw, 28px);
  line-height: 1.7;
  max-width: 900px;
  color: #52627e;
}

/* ===== BOUTONS ===== */

button,
.primary-link,
.networkButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg,#5c66ff,#1fb3ff);
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}

button:hover,
.primary-link:hover,
.networkButton:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-actions button:nth-child(2),
.hero-actions button:nth-child(3) {
  background: white;
  color: #17243d;
  border: 1px solid #d7e1ef;
}

/* ===== STATS ===== */

.stats-box {
  margin: 20px auto 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stats-box div {
  padding: 14px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.82);
  text-align: center;
}

.stats-box span {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #2f80ff;
}

.stats-box small {
  color: #51627f;
  opacity: 1;
  font-weight: 700;
}

/* ===== VISAGE CREATEUR ===== */

.creator-face {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: radial-gradient(circle,#ffd978,#e3ab34,#3f2600);
  box-shadow: 0 0 70px rgba(255,212,102,.32);
  transition: filter .4s ease, transform .4s ease, box-shadow .4s ease;
  animation: facePulse 5s infinite ease-in-out;
}

.eye {
  position: absolute;
  top: 54px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff1b8;
  box-shadow: 0 0 18px rgba(255,241,184,.9);
  animation: blinkEyes 7s infinite;
}

.eye.left {
  left: 48px;
}

.eye.right {
  right: 48px;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 36px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff1b8;
  box-shadow: 0 0 18px rgba(255,241,184,.8);
}

.creator-face.speaking .mouth {
  animation: mouthSpeak .18s infinite alternate;
}

.creator-face.thinking {
  animation: thinkingGlow 1.6s ease-in-out infinite;
}

.creator-face.listening {
  animation: listeningPulse 1.4s infinite ease-in-out;
}

.creator-face.mood-focused {
  box-shadow: 0 0 35px rgba(120,220,255,.7);
}

.creator-face.mood-supportive {
  box-shadow: 0 0 35px rgba(190,120,255,.75);
  transform: scale(1.03);
}

.creator-face.mood-visionary {
  box-shadow: 0 0 55px rgba(255,210,90,.9);
  transform: scale(1.06);
}

@keyframes facePulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(.98);
  }

  50% {
    transform: scale(1.025);
    filter: brightness(1.12);
  }
}

@keyframes mouthSpeak {
  from {
    height: 6px;
    opacity: .75;
  }

  to {
    height: 20px;
    opacity: 1;
  }
}

@keyframes listeningPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes thinkingGlow {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.18);
  }
}

@keyframes blinkEyes {
  0%, 96%, 100% {
    transform: scaleY(1);
  }

  97%, 99% {
    transform: scaleY(.08);
  }
}

/* ===== CARTES ===== */

.creator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.creator-card {
  padding: 28px;
  color: #24334f;
}

.creator-card h2 {
  margin-top: 0;
  color: #0f172a;
}

.creator-card p {
  color: #24334f;
}

.creator-card input,
.creator-card textarea,
input {
  width: 100%;
  margin: 10px 0;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid #d7e1ef;
  background: rgba(255,255,255,.86);
  color: #0f172a;
  outline: none;
  font-size: 15px;
}

.creator-card input::placeholder,
.creator-card textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: #70829c;
}

.authStatus {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
  min-height: 20px;
}

.auth-box,
.profile-box {
  display: grid;
  gap: 10px;
}

.auth-box {
  grid-template-columns: 1fr 1fr;
}

.profile-box {
  grid-template-columns: 1fr;
}

.chat-card {
  margin-bottom: 24px;
}

.chat {
  height: 360px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(250,252,255,.92);
  border: 1px solid rgba(215,225,239,.9);
}

.message {
  margin-bottom: 20px;
  line-height: 1.62;
  white-space: pre-wrap;
  font-size: 15.5px;
}

.message.user {
  color: #0f172a;
}

.message.creator {
  color: #17243d;
  background: rgba(96,123,255,.08);
  padding: 12px 14px;
  border-radius: 18px;
}

.label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

#message {
  margin-top: 18px;
  font-size: 16px;
  padding: 18px;
}

.chat-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-actions button {
  width: auto;
}

#publicProfileBox {
  margin-top: 30px;
}

#publicProfileBox textarea {
  min-height: 90px;
}

footer {
  text-align: center;
  padding: 28px;
  color: #51627f;
}

footer a {
  color: #4d5cff;
  margin: 0 6px;
}

/* ===== TRADUCTION ===== */

.gtranslate-zone {
  position: relative;
  z-index: 10;
}

/* ===== MOBILE ===== */

@media (max-width: 800px) {
  .creator-page {
    width: 94%;
    padding-top: 22px;
  }

  .creator-hero,
  .creator-grid {
    grid-template-columns: 1fr;
  }

  .creator-hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 22px;
  }

  .hero-copy {
    width: 100%;
  }

  .networkBadge {
    justify-content: center;
    margin: 0 auto;
  }

  .hero-logo {
    margin: 18px auto 6px;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.05;
    text-align: center;
  }

  .hero-copy h2 {
    font-size: 21px;
    line-height: 1.35;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
    text-align: center;
  }

  .stats-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .creator-face {
    transform: scale(.82);
    margin-top: -8px;
  }

  .auth-box {
    grid-template-columns: 1fr;
  }

  .chat {
    height: 390px;
  }

  .chat-actions {
    flex-direction: column;
  }

  .chat-actions button {
    width: 100%;
  }

  @media(max-width: 760px){

  body{
    overflow-x:hidden;
  }

  .media-shell,
  .network-shell,
  .home-shell,
  .messages-shell{
    width:100%;
    padding:12px;
    display:block;
  }

  .left-panel,
  .right-panel{
    display:none;
  }

  .scene-card,
  .feed,
  .main-card,
  .chat-card{
    width:100%;
    padding:18px;
    border-radius:24px;
    margin:0 0 16px;
  }

  h1{
    font-size:30px !important;
  }

  .scene-stage{
    grid-template-columns:1fr;
    padding:18px;
    gap:18px;
  }

  .actions{
    display:grid;
    grid-template-columns:1fr;
  }

  button,
  input,
  textarea,
  select{
    width:100%;
    font-size:16px;
  }

  img,
  video,
  iframe{
    max-width:100%;
    height:auto;
  }

}

  .voice-welcome {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 14px;
    border-radius: 24px;
  }

  .voice-orb {
    width: 48px;
    height: 48px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}



.landing-first{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:26px;
  align-items:stretch;
  margin-bottom:28px;
}

.landing-presentation{
  background:rgba(255,255,255,.68);
  border:1px solid rgba(255,255,255,.86);
  border-radius:34px;
  padding:42px;
  backdrop-filter:blur(16px);
  box-shadow:0 20px 60px rgba(90,120,180,.10);
}

.landing-presentation h1{
  font-size:clamp(38px,5vw,64px);
  line-height:1;
  margin:22px 0 18px;
  color:#0f172a;
}

.landing-presentation p{
  font-size:20px;
  line-height:1.65;
  color:#52627e;
}

.simple-auth{
  display:flex !important;
  flex-direction:column;
  gap:12px;
}

.simple-auth h2{
  margin-bottom:8px;
}

.simple-auth .primary-link,
.simple-auth button{
  width:100%;
}

@media(max-width:800px){
  .landing-first{
    grid-template-columns:1fr;
  }

  .landing-presentation{
    text-align:center;
    padding:28px 20px;
  }

  .landing-presentation h1{
    font-size:34px;
  }

  .landing-presentation p{
    font-size:16px;
  }
}
