/* Nostradamus Game - Style identique à Vinci */

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

body {
    font-family: 'Inter', sans-serif;
    background: #f0ece4;
    overflow-x: hidden;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* Header */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    gap: 15px;
}

.header-portrait {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c08b5c;
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #5c3d2e;
    margin: 0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0 20px 10px;
    border-bottom: 1px solid #e0ddd5;
}

.tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    color: #5c3d2e;
    border-bottom-color: #c08b5c;
}

.tab:hover {
    color: #5c3d2e;
}

.septfamilles-banner {
    background: linear-gradient(90deg, #8b6f47 0%, #a68a5e 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.septfamilles-banner:hover {
    background: linear-gradient(90deg, #a68a5e 0%, #c0a475 100%);
}

.banner-icon {
    font-size: 20px;
}

.banner-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.banner-arrow {
    color: white;
    font-size: 18px;
}

.progress-indicator {
    text-align: center;
    padding: 10px;
    background: #f6f5f2;
    font-size: 14px;
    color: #5c3d2e;
    font-weight: 600;
}

/* Steps */
.step {
    display: none;
    min-height: calc(100vh - 80px);
    padding-top: 200px;
}

.step.active {
    display: block;
}

.step-content {
    padding: 35px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #2c6b81;
    text-align: center;
    margin-bottom: 10px;
}

.step-description {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* User Form */
.user-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #2c6b81;
    margin-bottom: 10px;
}

.form-group input {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #c08b5c;
    box-shadow: 0 0 0 3px rgba(192, 139, 92, 0.1);
}

/* Canvas */
.canvas-container {
    background: #f6f5f2;
    border-radius: 20px;
    padding: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    max-width: 390px;
}

canvas {
    background: white;
    border-radius: 12px;
    cursor: crosshair;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Controls */
.canvas-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.control-button {
    background: white;
    color: #2c6b81;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-button:hover {
    border-color: #c08b5c;
    background: #f6f5f2;
}

.next-button {
    background: linear-gradient(135deg, #c08b5c 0%, #a67c52 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 139, 92, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 139, 92, 0.4);
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.next-button:hover .arrow {
    transform: translateX(5px);
}

/* Loading */
.loading-content {
    text-align: center;
    padding: 100px 40px;
}

.crystal-ball {
    font-size: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top-color: #c08b5c;
    border-radius: 50%;
    margin: 40px auto;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

/* Result */
.result-content {
    padding: 40px;
}

.result-card {
    background: linear-gradient(135deg, #f6f5f2 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.result-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.result-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #2c6b81;
    margin-bottom: 10px;
}

.result-header p {
    font-size: 16px;
    color: #666;
}

.result-section {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    border-left: 4px solid #c08b5c;
}

.result-section.highlight {
    background: linear-gradient(135deg, rgba(192, 139, 92, 0.1) 0%, rgba(192, 139, 92, 0.05) 100%);
    border-left: 4px solid #c08b5c;
    box-shadow: 0 4px 15px rgba(192, 139, 92, 0.1);
}

.result-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #2c6b81;
    margin-bottom: 15px;
}

.result-section p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

/* Formatage élégant des textes de prédiction */
.season-highlight {
    color: #c08b5c;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.3px;
}

.keyword-highlight {
    color: #2c6b81;
    font-weight: 600;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.share-button, .restart-button {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.share-button {
    background: linear-gradient(135deg, #c08b5c 0%, #a67c52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 139, 92, 0.3);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 139, 92, 0.4);
}

.restart-button {
    background: white;
    color: #2c6b81;
    border: 2px solid #e0e0e0;
}

.restart-button:hover {
    border-color: #c08b5c;
    background: #f6f5f2;
}

/* Responsive */
@media (max-width: 768px) {
    .step-content {
        padding: 25px 20px;
    }

    .step-title {
        font-size: 28px;
    }

    .step-description {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .canvas-container {
        padding: 15px;
        margin-bottom: 15px;
        max-width: 340px;
    }

    canvas {
        width: 100%;
        height: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .canvas-controls {
        flex-direction: column;
    }

    .result-card {
        padding: 25px;
    }

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

    .share-button, .restart-button {
        width: 100%;
    }
}

/* iPhone 12 Mini et petits écrans */
@media (max-width: 390px) {
    .step {
        padding-top: 180px;
    }

    .step-content {
        padding: 20px 15px;
    }

    .step-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .canvas-container {
        padding: 12px;
        margin-bottom: 12px;
        max-width: 310px;
    }

    .user-form {
        margin-top: 20px !important;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        font-size: 15px;
        padding: 12px 14px;
    }
}

/* Modal de partage - Style Nostradamus */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 107, 129, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    opacity: 1;
}

.share-modal-content {
    background: linear-gradient(135deg, #f6f5f2 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(44, 107, 129, 0.3), 0 0 0 1px rgba(192, 139, 92, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 2px solid rgba(192, 139, 92, 0.15);
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    background: linear-gradient(135deg, #c08b5c 0%, #a67c52 100%);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 139, 92, 0.3);
    background: linear-gradient(135deg, #d4a574 0%, #c08b5c 100%);
}

.share-twitter svg,
.share-facebook svg,
.share-linkedin svg {
    opacity: 0.95;
}

.share-copy {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #8b7355 0%, #6d5d4a 100%);
}

.share-copy:hover {
    background: linear-gradient(135deg, #9d8567 0%, #8b7355 100%);
}

.share-close {
    width: 100%;
    padding: 12px;
    background: white;
    color: #2c6b81;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-close:hover {
    border-color: #c08b5c;
    background: #f6f5f2;
}

@media (max-width: 480px) {
    .share-modal-content {
        padding: 25px 20px;
    }

    .share-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .share-btn {
        padding: 14px 18px;
        font-size: 14px;
    }

    .share-copy {
        grid-column: 1;
    }
}
