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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #000000;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

.app {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header avec logo */
.app-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Barre de progression minimaliste */
.progress-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e5e5e5;
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
    width: 10%;
}

/* Page d'introduction */
.intro-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.intro-content {
    max-width: 600px;
    width: 100%;
}

.intro-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000000;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 40px;
    font-weight: 500;
}

.intro-description {
    margin-bottom: 48px;
    line-height: 1.7;
}

.intro-description p {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 16px;
}

.start-button {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 8px;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.start-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Question pleine page */
.question-fullscreen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    padding-top: 120px;
}

.question-content {
    max-width: 800px;
    width: 100%;
}

.question-number {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 60px;
    color: #000000;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.choice-option {
    background: transparent;
    border: 2px solid #e5e5e5;
    color: #000000;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    text-align: left;
    font-family: inherit;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.choice-option:hover {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.choice-option.selected {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Options pour questions à choix multiples */
.multiple-choice .choice-option {
    position: relative;
    padding-left: 50px;
}

.multiple-choice .choice-option::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e5e5e5;
    transition: all 0.2s ease;
}

.multiple-choice .choice-option:hover::before {
    border-color: #ffffff;
}

.multiple-choice .choice-option.selected::before {
    background: #ffffff;
    border-color: #ffffff;
}

/* Loader entre questions */
.question-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.question-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e5e5;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: questionSpin 1s linear infinite;
}

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

/* Animation des questions */
.question-content {
    position: relative;
    transition: opacity 0.3s ease;
}

.question-content.transitioning {
    opacity: 0.3;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e5e5;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading p {
    color: #666666;
    font-size: 1rem;
}

/* Résultats */
.results-container {
    background: #ffffff;
    color: #000000;
    padding: 40px;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.results-container h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 32px;
}

/* Chips des réponses utilisateur */
.user-responses {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    max-width: 800px;
}

.response-chip {
    background: #f8f9fa;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    white-space: nowrap;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin-bottom: 48px;
    flex-shrink: 0;
    padding-top: 16px;
}

/* Animation d'apparition des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-top: 16px;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000, #333333);
    border-radius: 16px 16px 0 0;
}

.result-card:nth-child(2)::before {
    background: linear-gradient(90deg, #333333, #666666);
}

.result-card:nth-child(3)::before {
    background: linear-gradient(90deg, #666666, #999999);
}

.result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.result-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.result-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.result-card .salary {
    background: #f8f9fa;
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #e9ecef;
}

.result-card .description {
    font-size: 1rem;
    line-height: 1.7;
    color: #444444;
    margin-top: 16px;
}

.result-card .job-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.result-card .match-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.results-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.results-button {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 180px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.results-button:hover {
    background: #333333;
}

.results-button.secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.results-button.secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .app-header {
        top: 16px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .intro-content h1 {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .intro-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }
    
    .intro-description {
        margin-bottom: 40px;
    }
    
    .intro-description p {
        font-size: 1rem;
    }
    
    .start-button {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .question-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .question-fullscreen {
        padding: 20px;
        padding-top: 100px;
    }
    
    .choice-option {
        padding: 18px 24px;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .options-container {
        gap: 12px;
    }
    
    .results-container {
        padding: 40px 20px;
    }
    
    .results-container h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .result-card {
        padding: 24px;
    }
    
    .result-card h3 {
        font-size: 1.4rem;
    }
    
    .result-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-card .salary {
        align-self: flex-start;
    }
    
    .result-card .match-badge {
        left: 16px;
        top: -10px;
        padding: 4px 12px;
        font-size: 0.7rem;
        z-index: 100;
    }
    
    .results-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-button {
        min-width: auto;
        width: 100%;
    }
    
    .user-responses {
        gap: 8px;
        margin-bottom: 32px;
    }
    
    .response-chip {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .app-header {
        top: 12px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .intro-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .intro-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .intro-description {
        margin-bottom: 32px;
    }
    
    .intro-description p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .start-button {
        padding: 14px 28px;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .intro-screen {
        padding: 16px;
    }
    
    .question-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .question-fullscreen {
        padding: 16px;
        padding-top: 80px;
    }
    
    .choice-option {
        padding: 16px 20px;
        font-size: 0.95rem;
        min-height: 52px;
    }
    
    .multiple-choice .choice-option {
        padding-left: 45px;
    }
    
    .multiple-choice .choice-option::before {
        left: 16px;
        width: 14px;
        height: 14px;
    }
    
    .options-container {
        gap: 10px;
    }
}

/* Très petits écrans (smartphones en portrait) */
@media (max-width: 360px) {
    .app-header {
        top: 10px;
    }
    
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .intro-content h1 {
        font-size: 1.8rem;
    }
    
    .intro-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .intro-description p {
        font-size: 0.9rem;
    }
    
    .start-button {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .intro-screen {
        padding: 12px;
    }
    
    .question-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }
    
    .question-fullscreen {
        padding: 12px;
        padding-top: 70px;
    }
    
    .choice-option {
        padding: 14px 16px;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .results-container {
        padding: 20px 16px;
    }
    
    .results-container h1 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }
    
    .result-card {
        padding: 20px;
        margin-top: 12px;
    }
    
    .result-card h3 {
        font-size: 1.3rem;
    }
    
    .response-chip {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
} 