:root {
    --primary-color: #6661fc;
    --secondary-color: #ff00f2;
    --bg-primary: #0d0d42;
    --bg-secondary: hsl(208, 100%, 95%);
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --transition: 0.2s ease-in-out;
    --border-color: #e5e7eb;
    --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

[data-theme="dark"] {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: #374151;
    --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 10px 10px -5px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#main-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100vh;
    padding: 2rem;
}

.review-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 1s ease 0.5s forwards;
}

[data-theme="dark"] .review-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#theme-toggle {
  position: fixed;
  z-index: 20;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(206, 206, 206);
  transition: background var(--transition), box-shadow var(--transition);
}
#theme-toggle:hover {
  color: rgb(255, 255, 255);
  box-shadow: 0 2px 16px rgba(255, 255, 255, 0.15);
}
.logotain {
    width: auto;
    height: 50px;
    border-radius: 20px;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 0 6px rgb(13, 2, 44));
    animation: float 3s ease-in-out infinite;
}
[data-theme="dark"] {
    .logotain {
            filter: drop-shadow(0 0 12px rgba(102, 97, 252, 0.5));
}
}
.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subtitle-left {
    text-align: left;
}

.social-proof {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: -0.25rem auto 1.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 97, 252, 0.35);
    background: linear-gradient(135deg, rgba(102, 97, 252, 0.12), rgba(255, 0, 242, 0.08));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.reassurance-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 auto 1rem;
    max-width: 360px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.redirect-block {
    opacity: 0.85;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.redirect-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.redirect-countdown {
    font-weight: 600;
    font-size: 0.78em;
    color: var(--text-primary);
}

.cancel-redirect {
    width: auto;
    margin: 0.25rem auto 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.78rem;
    opacity: 0.55;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: inline-block;
}

.cancel-redirect:hover {
    transform: none;
    background: transparent;
    color: var(--text-primary);
    opacity: 0.9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes nudge-wiggle {
    0% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.cta-button.pre-redirect-nudge {
    animation: pulse-cta 2s infinite, nudge-wiggle 0.45s ease-in-out 1;
}

@media (prefers-reduced-motion: reduce) {
    .cta-button.pre-redirect-nudge {
        animation: pulse-cta 2s infinite;
    }
}

.cancel-redirect.is-disabled,
.cancel-redirect:disabled {
    cursor: default;
    transform: none;
    opacity: 0.7;
}

/* Étoiles subliminales - plus petites et non-interactives */
.stars-display {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.star-subliminal {
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.star-subliminal.active svg {
    width: 100%;
    height: 100%;
    fill: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border: 2px solid #b6b3ff;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.cta-icon {
    color: #ff00f2;
    flex: 0 0 auto;
    animation: cta-icon-blink 0.9s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 0, 242, 0.2));
}

@keyframes cta-icon-blink {
    0% {
        color: #ff00f2;
        filter: drop-shadow(0 0 10px rgba(255, 0, 242, 0.25));
    }
    100% {
        color: #666fec;
        filter: drop-shadow(0 0 10px rgba(102, 111, 236, 0.35));
    }
}

/* Instructions alternatives */
.alternative-instructions {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .alternative-instructions {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.help-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.help-text strong {
    color: var(--text-primary);
}

.secondary-button {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

[data-theme="dark"] .secondary-button {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .secondary-button:hover {
    background: rgba(26, 26, 46, 0.7);
}

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

.secondary-link:hover {
    color: var(--primary-color);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 10s linear infinite;
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0.6;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .review-card {
        padding: 2rem;
        margin: 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .alternative-instructions {
        padding: 1rem;
    }

    .help-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 430px) {
    .title {
        font-size: 21px;
        margin-top: -20px;
    }
.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
#main-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0.2rem;
}
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(102, 97, 252, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


@keyframes pulse-cta {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 242, 0.4), 0 0 0 0 rgba(102, 97, 252, 0.3);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 0, 242, 0), 0 0 0 24px rgba(102, 97, 252, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 242, 0), 0 0 0 0 rgba(102, 97, 252, 0);
    }
}

.cta-button, #mapsButton {
    animation: pulse-cta 2s infinite;
}
#mapsButton {
    background-color: #ffc3fc23;
    border: 2px solid #6661fc;
}
#particles-bg {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
