.ejt-quizz-find-game {
    width: 100%;
    margin: 0 auto;
}

.ejt-quizz-form {
    position: relative;
}

/* Conteneur de chaque étape */
.ejt-quizz-step {
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ejt-quizz-step.ejt-quizz-step--active {
    opacity: 1;
    transform: translateX(0);
}

/* En-tête de l'étape */
.ejt-quizz-step__header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.ejt-quizz-step__title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0;
    line-height: 1.3;
    position: relative;
    padding: 1.5rem 2rem;
    background-color: #FFF9E6;
    border-radius: 1.5rem;
    border: 1px solid #FBBF01;
    box-shadow: 0 4px 16px rgba(251, 191, 1, 0.15);
    display: inline-block;
}

.ejt-quizz-step__title::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #FBBF01;
}

.ejt-quizz-step__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFF9E6;
}

/* Conteneur des options */
.ejt-quizz-step__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Option individuelle */
.ejt-quizz-option {
    display: block;
    cursor: pointer;
    position: relative;
}

.ejt-quizz-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ejt-quizz-option__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.875rem;
    padding: 1.75rem 1.5rem;
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    justify-content: center;
    height: 100%;
    border: 1px solid lightgray;
}

.ejt-quizz-option:hover .ejt-quizz-option__content {
    border-color: #FBBF01;
}

.ejt-quizz-option input[type="radio"]:checked+.ejt-quizz-option__content {
    border-color: #FBBF01;
    background-color: #FFF9E6;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2);
}

.ejt-quizz-option__icon {
    font-size: 4.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.ejt-quizz-option__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ejt-quizz-option__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1c1c1c;
    display: block;
}

.ejt-quizz-option__description {
    font-size: 1.35rem;
    color: rgba(28, 28, 28, 0.7);
    line-height: 1.5;
    display: block;
}

/* Pied de page de l'étape */
.ejt-quizz-step__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

/* Boutons */
.ejt-quizz-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #1c1c1c;
}

.ejt-quizz-btn--prev {
    background-color: #F5F5F5;
    color: #1c1c1c;
}

.ejt-quizz-btn--prev:hover:not(:disabled) {
    background-color: #E8E8E8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ejt-quizz-btn--next,
.ejt-quizz-btn--submit {
    background-color: #FBBF01;
    color: #1c1c1c;
    margin-left: auto;
}

.ejt-quizz-btn--next:hover:not(:disabled),
.ejt-quizz-btn--submit:hover:not(:disabled) {
    background-color: #FBBF01;
    box-shadow: 0 4px 12px rgba(251, 191, 1, 0.3);
    transform: translateY(-1px);
}

.ejt-quizz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Indicateur de progression */
.ejt-quizz-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ejt-quizz-progress__bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    overflow: hidden;
}

.ejt-quizz-progress__fill {
    height: 100%;
    background-color: #FBBF01;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.ejt-quizz-progress__text {
    font-size: 1.3rem;
    color: rgba(28, 28, 28, 0.7);
    font-weight: 500;
}

.ejt-quizz-progress__current {
    font-weight: 700;
    color: #1c1c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .ejt-quizz-step {
        padding: 1.5rem;
    }

    .ejt-quizz-step__header {
        margin-bottom: 2rem;
    }

    .ejt-quizz-step__options {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .ejt-quizz-step__footer {
        margin-top: 0.75rem;
    }

    .ejt-quizz-step__title {
        font-size: 1.9rem;
        padding: 1.25rem 1.5rem;
    }

    .ejt-quizz-step__options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ejt-quizz-option__content {
        padding: 1.5rem 1.25rem;
        gap: 0.75rem;
    }

    .ejt-quizz-option__icon {
        font-size: 3.5rem;
    }

    .ejt-quizz-option__title {
        font-size: 1.5rem;
    }

    .ejt-quizz-option__description {
        font-size: 1.2rem;
    }

    .ejt-quizz-btn {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }

    .ejt-quizz-progress__text {
        font-size: 1.15rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ejt-quizz-step__options {
        grid-template-columns: repeat(2, 1fr);
    }
}