/* ===========================
   THE DREAM REVELATOR – GLOBAL STYLES (PREMIUM + RESPONSIVE)
   Replace entire main.css with this file
   =========================== */

:root {
  --tdr-bg-main: #020617;

  /* Glass card */
  --tdr-card-bg: rgba(15, 23, 42, 0.84);
  --tdr-card-bg-2: rgba(2, 6, 23, 0.38);

  /* Borders */
  --tdr-border-subtle: rgba(148, 163, 184, 0.22);
  --tdr-border-strong: rgba(148, 163, 184, 0.42);

  /* Accents */
  --tdr-accent: #c4b5fd;
  --tdr-accent-strong: #a855f7;

  /* Text */
  --tdr-text-main: #f9fafb;
  --tdr-text-muted: #9ca3af;

  /* Status */
  --tdr-danger: #f87171;

  /* Radius */
  --tdr-radius-lg: 18px;
  --tdr-radius-xl: 24px;

  /* Shadows */
  --tdr-shadow: 0 18px 60px rgba(0, 0, 0, 0.72);
  --tdr-shadow-strong: 0 26px 90px rgba(0, 0, 0, 0.78);

  /* iPhone safe areas */
  --tdr-safe-top: env(safe-area-inset-top, 0px);
  --tdr-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { background-color: var(--tdr-bg-main); }

/* ===========================
   BODY + BACKGROUND
   =========================== */

body.tdr-body {
  min-height: 100vh;
  min-height: 100dvh; /* iOS fix */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tdr-text-main);
  overflow-x: hidden;
  position: relative;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  background-color: var(--tdr-bg-main);
  background-image:
    radial-gradient(1px 2px at 5% 15%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(1px 2px at 18% 32%, rgba(255,255,255,0.75) 0, transparent 60%),
    radial-gradient(1px 2px at 30% 10%, rgba(255,255,255,0.75) 0, transparent 60%),
    radial-gradient(1px 2px at 44% 22%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(1px 2px at 62% 18%, rgba(255,255,255,0.75) 0, transparent 60%),
    radial-gradient(2px 2px at 82% 35%, rgba(255,255,255,0.85) 0, transparent 60%),
     radial-gradient(1px 2px at 5% 15%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(1px 2px at 18% 32%, rgba(255,255,255,0.75) 0, transparent 60%),
    radial-gradient(1px 2px at 30% 10%, rgba(255,255,255,0.75) 0, transparent 60%),
    radial-gradient(1px 2px at 44% 22%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(1px 2px at 62% 18%, rgba(255,255,255,0.75) 0, transparent 60%),
    radial-gradient(2px 2px at 82% 35%, rgba(255,255,255,0.85) 0, transparent 60%),
    radial-gradient(circle at top, #1e293b 0%, #020617 45%, #000 100%);
  
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Orbite décorative */
.tdr-orbit {
  position: fixed;
  top: -320px;
  right: -260px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  z-index: -1;
  pointer-events: none;
}

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

.tdr-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(18px + var(--tdr-safe-top)) 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.tdr-logo-moon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e2e8f0 45%, #475569 120%);
  box-shadow: 0 0 25px rgba(255,255,255,0.78), 0 0 70px rgba(196,181,253,0.55);
  flex: 0 0 auto;
}

.tdr-brand-text { display: flex; flex-direction: column; }

.tdr-brand-name {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tdr-brand-tagline {
  font-size: 0.78rem;
  color: var(--tdr-text-muted);
}

.tdr-nav { display: flex; gap: 14px; }

.tdr-nav a {
  color: var(--tdr-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tdr-nav a:hover,
.tdr-nav a.active {
  color: var(--tdr-text-main);
  border-color: rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.65);
}

/* ===========================
   MAIN LAYOUT
   =========================== */

.tdr-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px calc(56px + var(--tdr-safe-bottom));
}

/* HERO FULL SCREEN */
.tdr-main-hero {
  min-height: calc(100dvh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.tdr-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tdr-hero-content { max-width: 560px; }

.tdr-hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tdr-text-muted);
  margin-bottom: 14px;
}

.tdr-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 12px;
  line-height: 1.08;
}

.tdr-hero-subtitle {
  font-size: 0.98rem;
  color: var(--tdr-text-muted);
  max-width: 26rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tdr-hero-cta-group { display: flex; flex-direction: column; gap: 8px; }
.tdr-hero-note { font-size: 0.78rem; color: var(--tdr-text-muted); line-height: 1.55; }

/* ===========================
   TWO COLUMN LAYOUT (INTERPRET)
   =========================== */

.tdr-main-two-col {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1.1fr);
  gap: 32px;
  align-items: start;
}

/* ===========================
   CARD & FORM
   =========================== */

.tdr-card {
  background: linear-gradient(180deg, rgba(30,41,59,0.52), rgba(15,23,42,0.90));
  padding: 20px;
  border-radius: var(--tdr-radius-xl);
  border: 1px solid var(--tdr-border-subtle);
  box-shadow: var(--tdr-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tdr-card:hover {
  border-color: rgba(196,181,253,0.30);
  box-shadow: var(--tdr-shadow-strong);
}

.tdr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tdr-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tdr-card-subtitle {
  font-size: 0.88rem;
  color: var(--tdr-text-muted);
  line-height: 1.55;
}

/* Price block */
.tdr-price {
  margin-left: auto;
  text-align: right;
}
.tdr-price-label {
  font-size: 0.72rem;
  color: var(--tdr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.tdr-price-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tdr-text-main);
}

/* Form */
.tdr-form { display: flex; flex-direction: column; gap: 12px; }
.tdr-field { display: flex; flex-direction: column; gap: 5px; }

.tdr-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tdr-text-muted);
}

/* Inputs */
.tdr-field input,
.tdr-field textarea {
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148,163,184,0.42);
  color: var(--tdr-text-main);
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.tdr-field input::placeholder,
.tdr-field textarea::placeholder {
  color: rgba(156,163,175,0.75);
}

.tdr-field input:focus,
.tdr-field textarea:focus {
  outline: none;
  border-color: rgba(196,181,253,0.65);
  box-shadow: 0 0 0 3px rgba(196,181,253,0.14);
  background: rgba(2, 6, 23, 0.45);
}

/* Textarea sizing (more premium, less “empty”) */
.tdr-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* ===========================
   CHECKBOX (fix iPhone big white circle)
   =========================== */

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.50);
  background: rgba(2, 6, 23, 0.38);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--tdr-accent-strong), #38bdf8);
  border-color: transparent;
}

/* ===========================
   BUTTONS
   =========================== */

.tdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.tdr-btn-primary {
  background: linear-gradient(135deg, var(--tdr-accent-strong), #38bdf8);
  color: #020617;
  font-weight: 800;
  box-shadow: 0 10px 34px rgba(0,0,0,0.62), 0 0 35px rgba(56,189,248,0.35);
}
.tdr-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.10); }

.tdr-btn-secondary {
  background: rgba(15, 23, 42, 0.55);
  color: var(--tdr-text-main);
  border: 1px solid rgba(148, 163, 184, 0.42);
  box-shadow: 0 10px 35px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tdr-btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  border-color: rgba(196, 181, 253, 0.58);
}



/* ⭐ étoiles input */
#reviewStars span {
  font-size: 22px;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity .2s;
}

#reviewStars span.active {
  opacity: 1;
}

/* ⭐ étoiles affichées */
.tdr-stars {
  color: #f5b301;
  font-size: 14px;
  margin-bottom: 6px;
}

/* résumé */
.tdr-reviews-summary {
  margin-bottom: 12px;
  font-size: 14px;
  opacity: 0.85;
}


/* ===========================
   PROCESSING
   =========================== */

.tdr-processing {
  min-height: 100dvh;
  padding: calc(18px + var(--tdr-safe-top)) 16px calc(18px + var(--tdr-safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #020617, #000);
  overflow: hidden;
  position: relative;
}

.processing-card {
  width: min(680px, 100%);
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 30px 26px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  border: 1px solid rgba(148,163,184,0.26);
}

.processing-card h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4.4vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.processing-card p {
  opacity: 0.92;
  margin-bottom: 14px;
  color: var(--tdr-text-muted);
  line-height: 1.65;
}

.glow-bar {
  height: 4px;
  width: 180px;
  margin: 0 0 14px;
  background: linear-gradient(90deg, transparent, #c4b5fd, transparent);
  animation: glow 1.6s infinite;
}

@keyframes glow {
  0% { opacity: 0.25; }
  50% { opacity: 1; }
  100% { opacity: 0.25; }
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.12;
  animation: drift 120s linear infinite;
}
.stars::after {
  background-size: 200px 200px;
  opacity: 0.08;
  animation-duration: 180s;
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-2000px); }
}

/* ===========================
   RESULT PAGE — PREMIUM
   =========================== */

#result-card,
#dream-output,
#share-btn {
  animation: fadeIn 0.9s ease-out forwards;
  opacity: 0;
}

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

#result-card .tdr-card-title {
  position: relative;
  padding-bottom: 6px;
  font-size: 1.3rem;
  color: var(--tdr-accent);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.55);
}

#result-card .tdr-card-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 55px;
  background: linear-gradient(90deg, var(--tdr-accent), transparent);
  box-shadow: 0 0 8px rgba(196,181,253,0.55);
}

#dream-output strong::before {
  content: "🌙 ";
  color: #c4b5fd;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(196, 181, 253, 0.6);
}

#dream-output {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--tdr-text-main);
  margin-top: 14px;
  white-space: pre-line;
  max-width: 70ch;
}

#result-card {
  background: rgba(15, 23, 42, 0.90);
  border-radius: var(--tdr-radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.16),
    0 0 55px rgba(56, 189, 248, 0.10),
    var(--tdr-shadow);
  padding: 32px 34px;
  max-width: 820px;
  margin: 40px auto 0;
}

#share-btn {
  margin-top: 24px;
  width: 100%;
  max-width: 260px;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--tdr-accent-strong), #38bdf8);
  color: #000;
  font-weight: 800;
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.26);
}
#share-btn:hover { transform: translateY(-2px); filter: brightness(1.10); }

/* ===========================
   REVIEWS (SCOPED)
   =========================== */
/* ===========================
   REVIEWS — PREMIUM GLASS (stars visible)
   Replace your whole reviews section CSS with this
   =========================== */

.tdr-reviews-shell{
  position: relative;
  overflow: visible;
}



/* Nav buttons */
.tdr-reviews-nav{
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.tdr-reviews-btn{
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(2,6,23,0.22);
  color: rgba(249,250,251,0.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tdr-reviews-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(196,181,253,0.55);
  box-shadow: 0 0 0 3px rgba(196,181,253,0.12);
  background: rgba(2,6,23,0.28);
}

.tdr-review-card{
  background: rgba(2,6,23,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
  border-radius: 18px;
  padding: 18px 18px;
}


/* Text */
.tdr-review-quote{
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(249,250,251,0.92);
}

.tdr-review-meta{
  margin-top: 12px;
  color: rgba(156,163,175,0.82);
  font-size: 0.92rem;
}

.tdr-review-meta strong{
  color: rgba(249,250,251,0.92);
  font-weight: 800;
}

/* Footnote */
.tdr-reviews-footnote{
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(156,163,175,0.85);
}

/* Dots */
.tdr-reviews-dots{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 8px;
}

.tdr-dot{
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.10);
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.tdr-dot.is-active{
  background: rgba(196,181,253,0.95);
  border-color: rgba(196,181,253,0.95);
  box-shadow: 0 0 0 3px rgba(196,181,253,0.16);
}

/* Leave a review */
.tdr-review-form{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.tdr-review-form .tdr-field input,
.tdr-review-form .tdr-field textarea{
  background: rgba(2,6,23,0.22);
}

.tdr-review-form .tdr-btn{
  justify-self: start;
}

.tdr-review-form-card{
  max-width: 760px;
  margin: 34px auto 0;
  padding: 20px;
}

@media (max-width: 640px){
  .tdr-reviews-shell{ padding: 22px; }
  .tdr-review-form-card{ padding: 16px; }
  .tdr-reviews-nav{ top: 14px; right: 14px; }
}

/* CONTACT — clean glass block */
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 20px;
  border-radius: var(--tdr-radius-lg);
  background: var(--tdr-card-bg);
  border: 1px solid var(--tdr-border-subtle);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.contact-card h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: 0.2px;
}

.contact-card p {
  margin: 10px 0;
  color: var(--tdr-text-muted);
  line-height: 1.6;
}

.contact-email {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tdr-border-subtle);
  color: var(--tdr-text-main);
  text-decoration: none;
}

.contact-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--tdr-text-muted);
}


/* ===========================
   FOOTER
   =========================== */

.tdr-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px calc(30px + var(--tdr-safe-bottom));
  border-top: 1px solid rgba(31,41,55,0.6);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--tdr-text-muted);
  flex-wrap: wrap;
}
.tdr-footer a { color: var(--tdr-accent); }

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablets & down */
@media (max-width: 900px) {
  .tdr-main-two-col { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .tdr-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tdr-hero-title { font-size: 2.35rem; }
  .tdr-main-hero { min-height: calc(100dvh - 140px); }

  .tdr-reviews-nav { top: 12px; right: 12px; }
  .tdr-reviews-shell { padding: 18px; }

  /* IMPORTANT: iPhone zoom fix + make forms compact */
  .tdr-card {
    padding: 18px;
    border-radius: 20px;
  }

  .tdr-field input,
  .tdr-field textarea {
    font-size: 16px; /* prevents iPhone zoom */
    padding: 12px 14px;
  }

  .tdr-field textarea {
    min-height: 92px; /* removes “empty giant boxes” */
  }

  /* Buttons full width on mobile (premium) */
  .tdr-btn {
    width: 100%;
  }

  /* Dots slightly smaller */
  .tdr-reviews-dots { gap: 8px; }
  .tdr-dot { width: 9px; height: 9px; }
}

/* Very small phones */
@media (max-width: 420px) {
  .tdr-hero-title { font-size: 2.15rem; }
  .tdr-reviews-btn { height: 40px; padding: 0 12px; }
}

/* Big screens */
@media (min-width: 1500px) {
  #result-card { max-width: 900px; padding: 40px 48px; }
  #dream-output { font-size: 1.15rem; }
}
/* FIX: arrows should never overlap review cards (desktop + mobile) */

/* 1) Desktop/tablet: reserve space on the right for the arrows */
@media (min-width: 641px) {
  .tdr-reviews-shell{
    padding-right: 110px; /* space for the 2 buttons */
  }

  .tdr-reviews-nav{
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
  }
}

/* 2) Mobile: keep arrows under the cards */
@media (max-width: 640px) {
  .tdr-reviews-nav {
    position: static;
    margin: 14px auto 0;
    justify-content: center;
    transform: none;
  }
}


