/* Landing pages CSS - Ultra-minimal pour performance maximale */

/* Self-hosted variable fonts (latin-ext pour accents français) */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/Syne-Variable-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/Syne-Variable-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-Variable-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-Variable-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset léger - permet aux classes Tailwind de fonctionner */
* {
  box-sizing: border-box;
}

:root {
  --bg: #050506;
  --space: #0b0b10;
  --panel: #0c0c12;
  --white: #fafafa;
  --gold: #F5C542;
  --gray: #8a8a8a;
  --line: rgba(255, 255, 255, .10);
  --green: #5ae8a0;
  --red: #e85a5a;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
}

/* Grain subtil premium sur tout le fond */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.02) 2px, rgba(255,255,255,.02) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.02) 2px, rgba(255,255,255,.02) 4px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

body.in-space {
  background: var(--space);
}

body.in-space::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* Landing wizard sections uniquement (pas les sections dans modals) */
body:not(.modal-open) > main section,
[data-controller="landing"] section {
  min-height: 100vh;
  min-height: 100dvh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

body:not(.modal-open) > main section.active,
[data-controller="landing"] section.active {
  display: flex;
  animation: fadeIn 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: 10;
}

/* Gradient border subtil au hover sur form */
#s-form .container {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(245, 197, 66, 0.1);
  transition: all 0.6s ease;
}

#s-form .container:hover {
  border-color: rgba(245, 197, 66, 0.2);
  box-shadow: 0 0 40px rgba(245, 197, 66, 0.08);
}

/* Typography */
.brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 10vw, 5rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
  width: 100%;
  text-align: center;
}

.la {
  color: var(--gold);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(245, 197, 66, 0.4),
      0 0 40px rgba(245, 197, 66, 0.2);
  }
  50% {
    text-shadow:
      0 0 30px rgba(245, 197, 66, 0.8),
      0 0 60px rgba(245, 197, 66, 0.4);
  }
}

.tagline {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 500;
}

.anchor {
  margin-top: .75rem;
  font-size: 1rem;
  color: var(--gray);
}

/* === PERSONAS BLOCK === */
.personas-block {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem auto 2rem;
  max-width: 560px;
}

.persona-card {
  flex: 0 0 auto;
  width: 160px;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.persona-card:hover {
  border-color: rgba(245, 197, 66, 0.25);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.08);
}

.persona-tree {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.persona-tree p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.persona-root {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.persona-more {
  opacity: 0.5;
  font-style: italic;
}

/* Mobile : scroll horizontal bord à bord */
@media (max-width: 560px) {
  .personas-block {
    max-width: none;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.5rem;
    margin-left: -2rem;
    margin-right: -2rem;
    scrollbar-width: none;
  }

  .personas-block::-webkit-scrollbar {
    display: none;
  }

  .persona-card {
    width: 145px;
    min-width: 145px;
    scroll-snap-align: start;
  }
}

.tiny {
  font-size: .9rem;
  color: var(--gray);
}

.tiny a {
  color: inherit;
}

.tiny-secondary {
  color: #737373;
}

/* Buttons */
.btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.15);
}

.btn-primary {
  background: var(--gold);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(245, 197, 66, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(245, 197, 66, 0.25);
}

.btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.08);
}

/* Form */
.form-title {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.form-sub {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 3rem;
  letter-spacing: 0.01em;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.form-actions .back-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .5);
  font-size: .95rem;
  cursor: pointer;
  padding: .5rem;
  transition: color .2s ease;
  white-space: nowrap;
}

.form-actions .back-btn:hover {
  color: var(--white);
}

@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .form-actions .back-btn {
    order: 2;
  }

  .form-actions .btn-primary {
    order: 1;
  }
}

/* Input fluide */
.input-solo {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 700;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gold);
  outline: none;
  color: var(--white);
  text-align: center;
  width: auto;
  min-width: 80px;
  max-width: 90%;
  padding: .4rem .5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.input-solo::placeholder {
  color: rgba(255, 255, 255, .2);
}

.input-solo:focus {
  border-image: linear-gradient(90deg,
    var(--gold) 0%,
    rgba(245, 197, 66, 0.4) 50%,
    var(--gold) 100%);
  border-image-slice: 1;
  animation: borderShine 2s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(245, 197, 66, 0.15);
}

@keyframes borderShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}

/* État de validation */
.input-solo.checking {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 197, 66, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmerInput 1.5s infinite;
}

@keyframes shimmerInput {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* URL Preview */
.url-preview {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  opacity: 0.6;
  word-break: break-all;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.url-preview .la {
  color: var(--gold);
}

/* Status */
.status {
  margin-top: 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  min-height: 1.4rem;
}

.status.ok {
  color: var(--green);
}

/* Hint */
.hint {
  margin-top: 1rem;
  display: none;
}

.hint.active {
  display: block;
}

.hint-title {
  font-size: 1rem;
  color: var(--red);
  font-weight: 500;
}

.hint-sub {
  margin-top: .4rem;
  font-size: .9rem;
  color: var(--gray);
}

/* Login icon discret top-right */
.login-icon {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  color: var(--white);
  opacity: 0.25;
  transition: opacity 0.2s ease;
  text-decoration: none;
  line-height: 0;
}

.login-icon:hover {
  opacity: 0.7;
}

/* Flash blanc Big Bang (écran 2→3) */
.flash-white {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

/* Flash doré transition finale (écran 3→create-account) */
.flash-gold {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 164, 44, 0.85) 0%, rgba(212, 164, 44, 0.9) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.3s ease-out;
}

.flash-white.active {
  animation: flashBang 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes flashBang {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flash-white.active {
    animation: flashBangReduced 0.3s ease;
  }
  @keyframes flashBangReduced {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
  }
}

/* Circle transition */
.circle {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--space);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 50;
}

.circle.go {
  animation: expand 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.circle.warp {
  animation: implode 0.8s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

@keyframes expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300vmax;
    height: 300vmax;
    opacity: 1;
  }
}

/* Circle wipe — page transition (distinct du .circle wizard) */
.circle-wipe {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--space);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}

.circle-wipe.go {
  animation: expand 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.page-entering {
  animation: fadeIn 0.5s ease-out;
}

@keyframes implode {
  0% {
    width: 300vmax;
    height: 300vmax;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    width: 0;
    height: 0;
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
  }
}

/* === ÉCRAN 3 : COSMIC / BIG BANG === */

/* Cosmic Title */
.cosmic-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #F5C542 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

.cosmic-subtitle {
  font-size: 1rem;
  color: var(--gray);
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 3rem;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.4; }
}

/* Signal Block */
.signal-block {
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: 16px;
  position: relative;
  animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% {
    border-color: rgba(245, 197, 66, 0.2);
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.1);
  }
  50% {
    border-color: rgba(245, 197, 66, 0.4);
    box-shadow: 0 0 40px rgba(245, 197, 66, 0.2);
  }
}

.signal-coordinate {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(245, 197, 66, 0.6);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  min-height: 1.2rem;
}

.signal-coordinate .typewriter {
  display: inline-block;
  border-right: 2px solid rgba(245, 197, 66, 0.8);
  padding-right: 2px;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { border-color: rgba(245, 197, 66, 0.8); }
  50% { border-color: transparent; }
}

.signal-core {
  position: relative;
  margin: 2rem 0;
}

/* Label radar discret au-dessus du slug */
.signal-label {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--gray);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.2);
}

.signal-slug {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  animation: heartbeat 2s ease-in-out infinite;
  text-shadow:
    0 0 30px rgba(245, 197, 66, 0.5),
    0 0 60px rgba(245, 197, 66, 0.3);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  hyphens: auto;
  line-height: 1.2;
}

/* Slug court : plus gros et espacé */
.signal-slug.short {
  font-size: clamp(2rem, 7vw, 3.5rem) !important;
  letter-spacing: 0.1em !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Slug long : plus compact */
.signal-slug.long {
  font-size: clamp(1.1rem, 3.5vw, 1.8rem) !important;
  letter-spacing: 0.02em !important;
}

/* Slug très long : ultra compact */
.signal-slug.extra-long {
  font-size: clamp(0.9rem, 3vw, 1.4rem) !important;
  letter-spacing: 0.01em !important;
  line-height: 1.1 !important;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    text-shadow:
      0 0 30px rgba(245, 197, 66, 0.5),
      0 0 60px rgba(245, 197, 66, 0.3);
  }
  50% {
    transform: scale(1.02);
    text-shadow:
      0 0 40px rgba(245, 197, 66, 0.7),
      0 0 80px rgba(245, 197, 66, 0.4);
  }
}

.signal-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 20px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.signal-wave svg {
  width: 100%;
  height: 100%;
  animation: waveScroll 3s linear infinite;
}

@keyframes waveScroll {
  0% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(10%);
  }
}

/* Territoire cosmique (minimisé) */
.cosmic-territoire {
  margin: 2rem auto 3rem;
  max-width: 500px;
}

.cosmic-territoire .territoire-pages {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  gap: 0.3rem;
  margin-bottom: 0;
}

/* CTA cosmique */
.cosmic-cta {
  margin-top: 3rem;
  text-align: center;
}

.cta-label {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.cosmic-btn {
  font-size: 1.1rem;
  padding: 1.2rem 2.5rem;
}

.territoire {
  margin-top: 2.5rem;
  text-align: left;
  padding: 1.25rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
}

.territoire-title {
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: .75rem;
}

.territoire-pages {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1.5rem;
}

.territoire-note {
  font-size: .85rem;
  color: var(--gray);
  font-style: italic;
  opacity: 0.8;
}

.result-actions {
  margin-top: 2.5rem;
}

/* Footer verbes — partage avec storytelling */
.verbs-footer {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: .9rem;
  z-index: 10;
  position: relative;
  opacity: 0.5;
}

.verbs-footer .brand {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: normal;
  line-height: normal;
}

.verbs-footer-phrase {
  width: 100%;
  text-align: center;
  color: var(--gray);
  font-size: .75rem;
  letter-spacing: 0.03em;
  margin-bottom: .25rem;
}

.verbs-footer-link {
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.verbs-footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.verbs-footer-link:hover {
  color: var(--gold);
}

.verbs-footer-link:hover::after {
  width: 100%;
}

.verbs-footer-la {
  color: var(--gold);
}

.verbs-footer-by {
  color: var(--gray);
  font-size: .85rem;
}

/* === SIGNATURE PERROQUET === */
.cosmic-signature {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 180px;
  height: auto;
  opacity: 0.15;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: lighten;
  filter: saturate(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Subtle hover effect (sur le conteneur parent) */
#s-done:hover .cosmic-signature {
  opacity: 0.25;
  transform: rotate(-5deg) scale(1.05);
}

@media (max-width: 768px) {
  .cosmic-signature {
    width: 120px;
    bottom: 1rem;
    right: 1rem;
    opacity: 0.12;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .url-row input {
    width: 130px;
  }
  .detail-row input {
    width: 100px;
  }

  .verbs-footer {
    font-size: .85rem;
    gap: .75rem;
  }

  .cosmic-signature {
    width: 90px;
    bottom: 0.75rem;
    right: 0.75rem;
    opacity: 0.1;
  }
}

/* === AUTH COSMIC STYLE === */

.cosmic-auth {
  min-height: 100vh;
  background: var(--space);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
}

.cosmic-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gold {
  color: #F5C542;
}

.cosmic-tagline {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray);
  opacity: 0.7;
}

.cosmic-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cosmic-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--white);
}

.cosmic-btn-google {
  background: #D4A42C;
  color: #0a0e27;
  border: none;
  box-shadow: 0 4px 12px rgba(212, 164, 44, 0.3);
}

.cosmic-btn-google:hover {
  background: #E8A509;
  box-shadow: 0 6px 20px rgba(212, 164, 44, 0.4);
  transform: translateY(-2px);
}

.cosmic-link {
  font-size: 0.875rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cosmic-link:hover {
  color: #D4A42C;
}

.cosmic-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.cosmic-toast-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.cosmic-toast-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal CGV - Reset complet + styles normaux */
.cgv-modal-content * {
  all: revert;
}

.cgv-modal-content {
  color: #d1d5db;
  text-align: left;
}

.cgv-modal-content section {
  display: block;
  opacity: 1;
  margin-bottom: 1.5rem;
  min-height: auto;
  text-align: left;
}

.cgv-modal-content h3 {
  display: block;
  opacity: 1;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fafafa;
  margin-bottom: 0.5rem;
}

.cgv-modal-content p {
  display: block;
  opacity: 1;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.cgv-modal-content ul {
  display: block;
  opacity: 1;
  list-style: disc;
  padding-left: 1.5rem;
  margin-left: 1rem;
}

.cgv-modal-content li {
  display: list-item;
  opacity: 1;
}

/* --- AI Buttons Section --- */
.ai-buttons-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ai-buttons-label {
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.ai-buttons-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  background: var(--panel, #111114);
  color: var(--white);
  border: 1px solid var(--line, #2a2a30);
}

.ai-btn:hover {
  border-color: var(--gold);
  background: color-mix(in oklch, var(--gold) 10%, var(--panel, #111114));
}

.ai-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.ai-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  color: var(--gray);
  border: 1px solid transparent;
}

.ai-copy-btn:hover {
  color: var(--white);
  border-color: var(--line, #2a2a30);
}

.ai-copy-btn.copied {
  color: var(--green);
}

/* Explore styles are in the dedicated explore layout (app/views/layouts/explore.html.erb) */
