/* ============================================
   TEST GRATUIT - Johwan Guidance
   Styles CSS
   ============================================ */

/* Variables CSS pour la cohérence du thème */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #101420;
    --bg-accent: rgba(16, 21, 44, 0.8);
    --text-light: #e8f4f8;
    --text-medium: #a8b8c8;
    --text-dark: #708090;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4e4a6;
    --accent-silver: #b8c5d6;
    --neon-blue: #1e90ff;
    --neon-blue-dark: #104e8b;
    --border-light: rgba(255, 255, 255, 0.1);
    --font-title: 'Raleway', sans-serif;
    --font-body: 'Raleway', sans-serif;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --error-red: #dc3545;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Canvas de fond étoilé */
#starry-sky-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* Bannière supérieure */
.top-banner {
    background: linear-gradient(90deg, rgba(30, 144, 255, 0.2) 0%, rgba(212, 175, 55, 0.2) 50%, rgba(30, 144, 255, 0.2) 100%);
    text-align: center;
    padding: 0.8em 1em;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
}

.brand-highlight {
    color: var(--accent-gold-light);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Header */
.page-header {
    text-align: center;
    padding: 3em 1em 2em;
    background: radial-gradient(ellipse at center, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
}

.main-title-wrapper h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-bottom: 0.5em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.page-header h2 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--accent-silver);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Compteur de places */
.places-counter {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 1em 1.5em;
    margin: 1.5em auto;
    max-width: 400px;
    text-align: center;
}

.places-counter .count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

.places-counter .label {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Sections principales */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5em;
}

section {
    margin-bottom: 3em;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 1.2em;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Section introduction */
.intro-section {
    background: rgba(16, 21, 44, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 2.5em 2em;
    backdrop-filter: blur(10px);
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2em;
    line-height: 1.7;
}

/* Boîtes d'information */
.info-box {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid var(--neon-blue-dark);
    border-radius: 12px;
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.info-box h4 {
    color: var(--accent-gold-light);
    font-size: 1.2rem;
    margin-bottom: 1em;
    font-weight: 600;
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.15) 0%, rgba(253, 126, 20, 0.05) 100%);
    border-color: var(--warning-orange);
}

.info-box.warning h4 {
    color: var(--warning-orange);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 0.8em;
    padding-left: 1.8em;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.info-list li::before {
    position: absolute;
    left: 0;
}

.info-list.check li::before { content: "✓"; color: var(--success-green); }
.info-list.cross li::before { content: "✗"; color: var(--error-red); }
.info-list.warning li::before { content: "⚠"; color: var(--warning-orange); }
.info-list.star li::before { content: "✨"; color: var(--accent-gold); }

/* Section formulaire */
.signup-section {
    background: rgba(30, 144, 255, 0.05);
    border: 2px solid var(--neon-blue-dark);
    border-radius: 20px;
    padding: 2.5em 2em;
    text-align: center;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.signup-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 2em;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.signup-form {
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.3em;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--accent-silver);
    margin-bottom: 0.4em;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8em 1em;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--text-dark);
}

/* Date de naissance - 3 selects */
.date-selects {
    display: flex;
    gap: 0.5em;
}

.date-selects select {
    flex: 1;
    padding: 0.9em 0.5em;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.date-selects select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.date-selects select option {
    background: var(--bg-secondary);
    color: var(--text-light);
}

/* Boutons CTA */
.cta-button {
    display: inline-block;
    padding: 1em 2em;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

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

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cta-button.secondary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-blue-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

/* Message de succès */
.success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
    border: 2px solid var(--success-green);
    border-radius: 12px;
    padding: 2em;
    text-align: center;
    margin-top: 2em;
}

.success-message h4 {
    color: #90ee90;
    font-size: 1.3rem;
    margin-bottom: 1em;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ============================================
   PAGE CONNEXION - Texte spirituel
   ============================================ */

.connexion-section {
    background: rgba(16, 21, 44, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3em 2em;
    max-width: 700px;
    margin: 2em auto;
}

.spiritual-text {
    text-align: center;
}

.spiritual-text h3 {
    color: var(--accent-gold-light);
    font-size: 1.5rem;
    margin-bottom: 1.5em;
}

.spiritual-block {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-gold);
    padding: 1.5em;
    margin-bottom: 1.5em;
    text-align: left;
    border-radius: 0 10px 10px 0;
}

.spiritual-block h4 {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-bottom: 0.8em;
}

.spiritual-block p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   PAGE SELECTION - Grilles de numéros
   ============================================ */

.selection-section {
    margin-bottom: 3em;
}

.deck-selection {
    background: rgba(16, 21, 44, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 2em;
    margin-bottom: 2em;
}

.deck-selection h3 {
    color: var(--accent-gold-light);
    font-size: 1.3rem;
    margin-bottom: 0.5em;
    text-align: center;
}

.deck-selection .deck-info {
    color: var(--text-medium);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5em;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.number-btn {
    aspect-ratio: 1;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-btn:hover {
    background: rgba(30, 144, 255, 0.2);
    border-color: var(--neon-blue);
    transform: scale(1.05);
}

.number-btn.selected {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    border-color: var(--accent-gold-light);
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.selected-display {
    text-align: center;
    margin-top: 1em;
    padding: 0.8em;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    min-height: 50px;
}

.selected-display span {
    color: var(--accent-gold-light);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Bouton de validation final */
.validation-section {
    text-align: center;
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid var(--border-light);
}

.validation-section p {
    color: var(--text-medium);
    margin-bottom: 1em;
}

/* ============================================
   PAGE CONFIRMATION
   ============================================ */

.confirmation-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(30, 144, 255, 0.1) 100%);
    border: 2px solid var(--success-green);
    border-radius: 20px;
    padding: 3em 2em;
    text-align: center;
    max-width: 600px;
    margin: 2em auto;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 0.5em;
}

.confirmation-section h2 {
    color: #90ee90;
    font-size: 1.8rem;
    margin-bottom: 1em;
}

.confirmation-section p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1em;
}

.delivery-time {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 1.5em;
    margin: 2em 0;
}

.delivery-time .time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

.delivery-time .label {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    max-width: 700px;
    margin: 3em auto;
    padding: 0 1em;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 1.5em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.faq-item {
    background: rgba(16, 21, 44, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.2em 1.5em;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold-light);
    margin-bottom: 0.5em;
}

.faq-answer {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--accent-gold);
    text-decoration: none;
}

.faq-answer a:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* Section Partage */
.share-section {
    max-width: 700px;
    margin: 3em auto;
    padding: 0 1em;
    text-align: center;
}

.share-text {
    color: var(--text-medium);
    margin-bottom: 1.5em;
    font-size: 1rem;
    line-height: 1.6;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

.share-btn.messenger {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

.share-btn.messenger:hover {
    background: linear-gradient(135deg, #0099dd 0%, #0055cc 100%);
}

.share-btn.email {
    background: #EA4335;
}

.share-btn.email:hover {
    background: #d33426;
}

.share-btn.copy-link {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}

.share-btn.copy-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

/* Footer */
.page-footer {
    margin-top: 4em;
    background: rgba(10, 14, 26, 0.9);
    border-top: 1px solid var(--border-light);
    padding: 2em;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5em;
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
    margin: 0 1em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold-light);
}

.copyright {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Bouton retour en haut */
#back-to-top {
    position: fixed;
    bottom: 2em;
    right: 2em;
    width: 3em;
    height: 3em;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--accent-gold-light);
    transform: translateY(-3px);
}

/* Animations de révélation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 1em;
    }

    .intro-section,
    .signup-section,
    .connexion-section,
    .deck-selection {
        padding: 1.5em;
    }

    .number-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }

    .number-btn {
        font-size: 0.9rem;
    }

    #back-to-top {
        bottom: 1.5em;
        right: 1.5em;
        width: 2.5em;
        height: 2.5em;
    }
}

@media (max-width: 480px) {
    .number-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Fallback pour les navigateurs sans Canvas */
.canvas-fallback {
    background: radial-gradient(ellipse at center, rgba(30, 144, 255, 0.1) 0%, var(--bg-primary) 100%);
}

/* Indicateur de chargement */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-dark);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PAGE INDEX - Section présentation
   ============================================ */

.presenter-section {
    margin: 2em auto;
    max-width: 900px;
}

.presenter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
}

.presenter-photo {
    width: 100%;
}

.presenter-photo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-light);
    display: block;
}

.photo-placeholder,
.video-placeholder {
    aspect-ratio: 16 / 9;
    background: rgba(16, 21, 44, 0.6);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    text-align: center;
    padding: 1em;
}

.photo-placeholder span,
.video-placeholder span {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

.photo-placeholder small,
.video-placeholder small {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.presenter-text h3 {
    color: var(--accent-gold-light);
    font-size: 1.5rem;
    margin-bottom: 0.8em;
}

.presenter-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1em;
}

.presenter-text .highlight-text {
    color: var(--accent-gold);
    font-weight: 600;
    font-style: italic;
}

/* Section vidéo */
.video-section {
    max-width: 700px;
    margin: 2em auto;
}

.video-placeholder .video-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 0.5em;
}

/* Boîte d'information transparente */
.info-box-transparent {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.info-box-transparent .intro-text {
    text-align: left;
    margin-bottom: 0;
}

/* Section règles */
.rules-box {
    background: rgba(253, 126, 20, 0.05);
    border-color: rgba(253, 126, 20, 0.3);
}

.rules-list {
    list-style: none;
    padding: 0;
    margin-top: 1em;
}

.rules-list li {
    margin-bottom: 1em;
    padding-left: 0;
    line-height: 1.6;
}

.rules-list li strong {
    color: var(--accent-gold-light);
}

/* Section info générique */
.info-section {
    margin: 2em auto;
    max-width: 700px;
}

/* Section finale */
.final-section {
    margin: 3em auto;
    max-width: 700px;
    text-align: center;
}

.final-content {
    background: rgba(16, 21, 44, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 2em;
}

.final-content .intro-text {
    text-align: center;
    margin-bottom: 1.5em;
}

.final-links {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
}

.final-links .cta-button {
    min-width: 280px;
}

/* Responsive pour la section présentation */
@media (max-width: 768px) {
    .presenter-grid {
        grid-template-columns: 1fr;
    }

    .presenter-photo {
        order: -1;
    }

    .final-links .cta-button {
        min-width: auto;
        width: 100%;
    }
}
