/* Responsive Styles */
:root {
    --primary-bg: #0D166A;
    --primary-red: #FF0000;
    --light-blue: #9DC4F3;
    --text-white: #ffffff;
    --text-dark: #243772;
    --secondary-blue: #3868D8;
    --font-body: "Lato", sans-serif;
    --font-title: "Bebas Neue", sans-serif;
}

@media (max-width: 991px) {
    html {
        font-size: calc(1000vw / 402);
    }

    .hide_mob {
        display: none !important;
    }

    /* Global */
    .container {
        height: auto;
        max-width: 35.4rem;
    }

    .main-logo-container {
        position: initial;
        text-align: center;
        margin: 0 auto;
        display: block;
        width: 16.2rem;
        padding-top: 2rem;
        margin-bottom: auto;
        padding-bottom: 1.6rem;
        margin-bottom: 1.6rem;
    }

    .main-logo-container img {
        height: auto;
        width: 100%;
        display: block;
    }

    /* Layout */
    .layout-2-cols,
    .cols-2-layout {
        flex-direction: column;
        text-align: center;
        min-height: initial;
        justify-content: center;
        height: 100%;
        padding-bottom: 2rem;
        min-height: 65rem;
        min-height: initial;
        height: 100vh;
        overflow: auto;
    }

    .col-left,
    .col-right {
        padding: 0;
        width: 100%;
    }

    .main-title {
        font-size: 4rem;
        line-height: initial;
        margin-bottom: 0.8rem;
    }

    .btn-skewed {
        font-size: 3rem;
    }

    /* Etape 1 Fixes */
    .trophy-icon {
        display: none;
    }

    .hero-image {
        width: 50%;
        margin: 0 auto 2rem auto;
    }

    .hero-image:nth-child(3) {
        margin-bottom: 0;
        width: 60%;
    }

    /* Etape 2 Grid */
    .options-grid.cols-3,
    .options-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .option-card {
        display: flex;
        align-items: center;
        text-align: left;
        position: relative;
        padding: 0.8rem;
        border-radius: 1.2rem;
        width: 100%;
        border: 1px solid #9DC4F3;
    }

    .option-card::before {
        content: attr(data-value);
        position: absolute;
        left: 0;
        top: 0;
        transform: translate(-30%, -30%);
        width: 3.5rem;
        height: 3.5rem;
        background-color: var(--medium-blue);
        color: var(--text-white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-title);
        font-size: 2rem;
        z-index: 2;
        display: none;
    }

    .option-card.selected::before {
        background-color: var(--text-white);
        color: var(--medium-blue);
        display: none;
    }

    .option-card:not(.text-only) {
        flex-direction: row;
    }

    .option-card:not(.text-only) .img-wrapper {
        width: 19.3rem;
        width: 11.3rem;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 1.6rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Etape 3 */
    .score-card {
        padding: 3rem 4rem;
    }

    .score-value {
        font-size: 10rem;
    }

    .responses-grid {
        grid-template-columns: 1fr;
    }

    /* Etape 3 Response Accordion Layout */
    .response-card {
        padding: 2rem;
        display: flex;
        justify-content: space-between;
        background: var(--text-white);
        border-radius: 1rem;
        position: relative;
        margin-bottom: 0;
        cursor: pointer;
    }

    .resp-content {
        flex-direction: column;
        gap: 0;
    }

    .resp-img-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        order: 2;
        display: none;
        padding-top: 1.2rem;
        gap: 1.6rem;
    }

    .resp-text {
        display: flex;
    }

    .resp-num {
        grid-area: num;
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        min-height: 8rem;
        border-radius: 1rem 0 0 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .resp-text h4 {
        padding: 0;
        font-size: 1.8rem;
        line-height: 125%;
        letter-spacing: -0.02rem;
        padding-right: 1rem;
    }

    .resp-text p {
        grid-area: p;
        padding: 1rem 2rem 2rem 2rem;
        display: none;
        margin: 0;
    }

    .resp-img-wrapper img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .response-card::after {
        content: "";
        background-image: url(../img/mobile/vector.svg);
        position: absolute;
        right: 2rem;
        top: 5rem;
        width: 1.4rem;
        height: 0.8rem;
        background-repeat: no-repeat;
        background-position: center;
        transition-duration: 0.3s;
    }

    /* Active State for Accordion */

    .response-card.active::after {
        transform: rotate(180deg);
    }

    .resp-status {
        position: absolute;
        top: -0.9rem;
        right: -1.5rem;
        left: initial;
        z-index: 5;
    }

    /* Etape 3 Challenges */
    .s3-images-grid {
        flex-direction: column;
        position: relative;
    }

    .s3-images-grid img {
        width: 100%;
        height: auto;
    }

    .s3-banner-overlay {
        bottom: auto;
        width: 23.5rem;
        height: 7.88rem;
        background-image: url(../img/mobile/bg_5.png);
        top: 15rem;
    }

    .s3-banner-top,
    .s3-banner-bottom {
        font-size: 1.8rem;
        line-height: 1.8rem;
        padding: 0;
    }

    .s3-banner-top {
        padding-top: 1.5rem;
    }

    .s3-banner-bottom {
        padding-top: 1.3rem;
    }

    .btn-soutien {
        font-size: 2rem;
        padding: 1.5rem 3rem;
    }

    /* Donations */
    .donations-grid {
        grid-template-columns: 1fr;
        margin: 0 auto;
        gap: 2rem;
        width: 100%;
    }

    .donation-card {
        display: flex;
        padding: 3rem 2rem;
        text-align: left;
        align-items: center;
        width: 100%;
    }

    .don-amount {
        font-size: 3.6rem;
        line-height: 3.6rem;
        text-align: center;
        margin-bottom: 0;
    }

    .don-deduction {
        text-align: center;
        font-size: 1.4rem;
        font-style: italic;
        margin-bottom: 2rem;
    }

    .don-img {
        width: 15rem;
        margin: 0 2rem 0 0;
        border-radius: 0;
        height: auto;
    }

    .don-desc {
        font-size: 1.6rem;
        text-align: left;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 2rem auto;
    }

    .don-desc br {
        display: none;
    }

    .btn-don {
        margin: 0;
        font-size: 2rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        order: 1;
    }

    .footer-socials {
        order: 2;
        justify-content: center;
    }

    .footer-links {
        order: 3;
        flex-direction: column;
        gap: 1.5rem;
        color: #D6EEFB;
    }

    .footer-links a {
        color: #D6EEFB;
        text-decoration: underline;
    }

    #etape-1 .btn-skewed {
        font-size: 4rem;
        line-height: 4rem;
        padding: 1.2rem 1.25rem 0.7rem 1.5rem;
        box-shadow: -0.9rem 0.5rem 0 var(--primary-red);
    }

    .subtitle {
        font-size: 2rem;
        line-height: initial;
        margin-bottom: 3.2rem;
    }

    #etape-1 {
        min-height: initial;
        height: 100vh;
        overflow: auto;
    }

    .btn-start-wrapper {
        gap: 2.5rem;
    }

    .ico-left-btn {
        height: 2.64rem;
        transform: rotate(-5deg) translateY(-0.2rem);
    }

    .main-logo-container.disabled2,
    .main-logo-container.disabled {
        margin: 0 auto auto 2.4rem;
        margin-bottom: 1.6rem;
    }

    .col-right {
        margin-bottom: auto;
    }

    .step-indicator {
        font-size: 4rem;
        line-height: 4rem;
        padding: 1.202rem 1.566rem 0.5rem 1.566rem;
    }

    .step-indicator::before {
        top: 0.6rem;
        left: -0.8rem;
    }

    .step-indicator::after {
        box-shadow: 0.8rem -0.6rem 0 var(--light-blue);
    }

    .step-icon-left {
        height: 9.262rem;
        transform: initial;
        position: absolute;
        top: -3.5rem;
        left: -9.5rem;
    }

    .step-icon-right {
        height: 0.944rem;
        transform: initial;
        position: absolute;
        top: 0rem;
        right: -7rem;
    }

    .step-header {
        gap: 0;
        position: relative;
        margin-bottom: 3rem;
    }

    .question-title {
        font-size: 1.8rem;
        line-height: initial;
        margin-bottom: 2.4rem;
        font-weight: 400;
    }

    .decor-top-right {
        width: 17.2rem;
        top: 0;
        right: 0;
    }

    .decor-bottom-right {
        width: 100%;
        bottom: 0;
        left: 0;
        right: initial;
    }

    .option-card p {
        font-size: 1.8rem;
        line-height: initial;
    }

    .question-step .img-wrapper::after,
    .option-card .img-wrapper::before,
    .z {
        display: none;
    }

    .question-step .img-wrapper img,
    .question-step p {
        transition-duration: 0.3s;
    }

    .question-step:has(.option-card.selected) .option-card:not(.selected) .img-wrapper img,
    .question-step:has(.option-card.selected) .option-card:not(.selected) p {
        opacity: 0.5;
    }

    .options-grid {
        gap: 2.4rem;
        gap: 1.8rem;
        margin-bottom: 3.5rem;
    }

    .option-number {
        width: 3.7rem;
        height: 3.7rem;
        font-size: 2.2rem;
        top: -2rem;
        left: -2rem;
    }

    .etape {
        height: calc(100vh - 13.2rem);
        height: auto;
    }

    .container-quiz {
        min-height: initial;
        max-width: 37.2rem;
    }

    .arrow-circle {
        width: 2.7rem;
        height: 2.7rem;
    }

    .btn-pill {
        font-size: 2rem;
        height: 5rem;
        padding: 0 1.4rem 0 2.9rem;
        gap: 1.3rem;
        box-shadow: -0.3rem 0.4rem 0 var(--secondary-blue);
    }

    .quiz-wrapper {
        min-height: initial;
        min-height: 65rem;
        padding-bottom: 2.4rem;
    }

    .error-msg-selection {
        font-size: 1.5rem;
        width: 80%;
        bottom: 1.5rem;
    }

    .col-options {
        gap: 1.8rem;
    }

    .question-step {
        position: relative;
        height: 100vh;
        min-height: 65rem;
        min-height: initial;
        padding: 0 0 5rem 0;
        justify-content: flex-start;
    }

    #etape-2 {
        min-height: 65rem;
        min-height: initial;
        height: 100vh;
    }

    .question-step[data-step="2"] .option-card:not(.text-only) .img-wrapper {
        width: 16.4rem;
        width: 9rem;
    }

    .question-step[data-step="2"] .option-card:not(.text-only) .img-wrapper img {
        width: 100%;
    }

    .question-step[data-step="3"] .step-header,
    .question-step[data-step="4"] .step-header {
        margin-bottom: 0.4rem;
    }

    .q_img {
        width: 33.2rem;
        width: 26rem;
        display: block;
        margin: 0 auto 1.7rem auto;
    }

    .question-step[data-step="3"] .options-grid,
    .question-step[data-step="4"] .options-grid {
        gap: 0;
        height: initial;
        min-height: initial;
        overflow: initial;
        margin-bottom: 0;
    }

    .option-card.text-only p {
        font-size: 1.8rem;
        text-align: center;
    }

    .question-step[data-step="3"] .question-title {
        font-size: 1.7rem;
    }

    .option-card.text-only {
        width: 32.4rem;
        height: 5.1rem;
        border: 1px solid #9DC4F3;
        padding: 0;
        text-align: center;
        justify-content: center;
    }

    .option-number-inline {
        width: 3.7rem;
        height: 3.7rem;
        font-size: 2.2rem;
        top: -1.5rem;
        left: -2rem;
    }

    .option-card.text-only.selected {
        border: 1px solid #ffffff;
    }

    .question-step[data-step="4"] .option-card {
        width: 32.4rem;
    }

    .question-step[data-step="5"] .options-grid,
    .question-step[data-step="6"] .options-grid {
        gap: 1.6rem;
        width: 100%;
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 1.5rem;
    }

    .question-step[data-step="5"] .option-card,
    .question-step[data-step="6"] .option-card {
        width: 17rem;
        flex-direction: column;
        padding: 1rem;
        width: 15rem;
    }


    .question-step[data-step="5"] .option-card:not(.text-only) .img-wrapper,
    .question-step[data-step="6"] .option-card:not(.text-only) .img-wrapper {
        width: 100%;
        margin: 0 auto 1rem auto;
    }

    .question-step[data-step="5"] .option-card:not(.text-only) p,
    .question-step[data-step="6"] .option-card:not(.text-only) p {
        text-align: center;
        font-size: 1.6rem;
    }

    .form-title {
        font-size: 4rem;
        line-height: 4.2rem;
        margin-bottom: 0.8rem;
    }

    .form-subtitle {
        font-size: 2rem;
        line-height: initial;
        margin-bottom: 0;
    }

    .form-header {
        margin-bottom: 0.8rem;
    }

    .form-subtitle span {
        display: block;
        color: var(--light-blue);
    }

    .form-grid {
        width: 100%;
        gap: 1.6rem;
    }

    .input-group input {
        width: 100%;
        height: 4rem;
    }

    .input-group label {
        font-size: 2rem;
    }

    .form-step .btn-pill {
        padding: 0 1.4rem;
        box-shadow: -0.4rem 0.4rem 0 var(--secondary-blue);
    }

    .disclaimer {
        font-size: 1.4rem;
        line-height: 120%;
        font-weight: 300;
    }

    .error-message {
        left: initial;
        right: 0;
    }

    .form-general-error.error-message {
        width: 80%;
    }

    .form-step {
        padding-bottom: 1.5rem;
        padding-top: 0;
    }

    #merci .decor-top-right {
        top: -12.2rem;
        width: 18.5rem;
        top: 0rem;
    }

    .merci-banner {
        width: 34.244rem;
        height: 8.4rem;
        background-image: url(../img/mobile/bg_1.svg);
        padding-top: 1.3rem;
    }

    .merci-banner-top {
        font-size: 2.1rem;
    }

    .merci-banner-bottom {
        padding-top: 0.9rem;
        font-size: 2.1rem;
    }

    .score-card {
        padding: 0;
        width: 34.5rem;
        height: 14.2rem;
        background-image: url(../img/mobile/bg_2.svg);
        margin-bottom: 3rem;
    }

    .score-value {
        font-size: 10.3rem;
        font-weight: 400;
    }

    .score-label {
        font-size: 0.991rem;
        padding-top: 1.6rem;
    }

    .s3-section1 {
        padding: 0 0 4.8rem 0;
    }

    .score-avg {
        font-size: 1.6rem;
        line-height: initial;
        margin-bottom: 3rem;
    }

    .score-desc {
        font-size: 1.6rem;
        line-height: 150%;
        text-align: left;
        margin-bottom: 3rem;
        margin-top: 0;
        opacity: 1;
    }

    .share-title {
        font-size: 2.3rem;
        line-height: initial;
        margin-bottom: 0.6rem;
        position: relative;
        z-index: 1;
    }

    .share-title img {
        display: block;
        width: 37rem;
        position: absolute;
        top: calc(100% - 2.6rem);
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        margin-bottom: 3rem;
        gap: 0.7rem;
        position: relative;
        z-index: 2;
    }

    .social-btn img {
        height: 3.273rem;
    }

    .answers-banner {
        font-size: 1.9rem;
        transform: rotate(-3deg);
        padding: 0.6rem 0 0 0;
    }

    .answers-wrapper {
        width: 23.5rem;
        height: 6.3rem;
        background-image: url(../img/mobile/bg_3.png);
    }

    .answers-banner-red {
        padding-top: 0.1rem;
        transform: rotate(-3deg);

    }

    .arrow-down {
        width: 5.7rem;
        height: 5.7rem;
        top: calc(100% - 1rem);
    }

    .s3-section2 {
        padding: 4rem 0 5rem 0;
    }

    .responses-banner-wrapper {
        width: 17rem;
        height: 9.7rem;
    }

    .resp-banner-top {
        font-size: 4rem;
        line-height: 4rem;
        padding-top: 2rem;
    }

    .resp-banner-bottom {
        font-size: 2rem;
        line-height: 2rem;
        padding: 0.7rem 0 0 0.5rem;
    }

    .responses-header {
        margin-bottom: 3rem;
    }

    .responses-grid {
        max-width: 35.4rem;
        margin: 0 auto;
        width: 100%;
        gap: 1.6rem;
    }

    .decor-top-left2 {
        top: -8rem;
        left: -0.8rem;
        width: 7.6rem;
    }

    .resp-title {
        gap: 1.2rem;
        margin-bottom: 0;
    }

    .resp-num {
        min-height: initial;
        height: 100%;
        width: 2.5rem;
        border-radius: 0;
        background-color: #E0292E;
        font-size: 2.4rem;
    }

    .resp-img-wrapper img {
        width: 9.6rem;
    }

    .resp-img-wrapper p {
        font-size: 1.6rem;
        line-height: 150%;
        color: #00020C;
        font-weight: 400;
        padding-top: 1.2rem;
        position: relative;
        letter-spacing: -0.02rem;
    }

    .resp-img-wrapper p::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0.2rem;
        background-color: #FF0000;
    }

    .response-card.card-resp-wrong .resp-img-wrapper p::before {
        background-color: #FF0000;
    }

    .response-card.card-resp-correct .resp-img-wrapper p::before {
        background-color: #23730B;
    }

    .s3-section3 .decor-top-left {
        top: -1.3rem;
        width: 4.5rem;
    }

    .s3-content-wrapper {
        padding: 4rem 2rem 5rem 2rem;
    }

    .s3-content-wrapper p {
        font-size: 1.6rem;
        text-align: left;
        margin-bottom: 2rem;
    }

    .s3-content-wrapper p span {
        color: var(--light-blue);
    }

    .btn-soutien {
        font-size: 1.8rem;
        line-height: 125%;
        width: 31.5rem;
        box-shadow: -0.3rem 0.3rem 0 #50A6F9;
    }

    .s3-section4 {
        padding: 4rem 0 5rem 0;
    }

    .s3-section4 .container {
        max-width: 36.2rem;
    }

    .donation-title {
        font-size: 2rem;
        line-height: 125%;
        margin-bottom: 2rem;
    }

    .s3-footer {
        padding: 2rem 0;
    }

    .footer-logo {
        height: 5.8rem;
    }

    .buzzer {
        left: 14.7rem;
        bottom: 3rem;
        width: 6rem;
        height: 4.2rem;
    }

    .p_merci {
        background-color: #2C46A1;
    }

    .p_merci .s3-section2 {
        padding-top: 0;
    }

}

@media (min-width: 992px) {
    html {
        font-size: calc(1000vw / 1920);
    }

    .hide_desk {
        display: none !important;
    }

    .resp-img-wrapper {
        display: block !important;
    }

    .option-card:hover .img-wrapper img {
        transform: scale(1.01) translateX(0.2rem);
    }

    .btn-pill:hover {
        transform: translateY(-0.5rem);
        color: var(--text-white);
        background-color: var(--secondary-blue);
        box-shadow: -0.6rem 0.6rem 0 var(--text-white);
    }

    .btn-pill:hover img:first-child {
        opacity: 0;
    }

    .btn-pill:hover img:last-child {
        opacity: 1;
    }

    .btn-skewed:hover {
        transform: translateY(-0.5rem);
        color: var(--text-white);
        background-color: #50A6F9;
        box-shadow: -0.6rem 0.6rem 0 var(--primary-red);
    }

    .option-card:hover .img-wrapper::before {
        opacity: 1;
    }

    .option-card.text-only:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .input-group input:hover {
        border: 0.1rem solid #e8eff7;
        background-color: #344883;

    }

    .social-btn:hover img {
        transform: scale(1.1);
    }

    .btn-don:hover {
        transform: translateY(-0.3rem);
        color: var(--text-white);
        background-color: #50A6F9;
        box-shadow: -0.253rem 0.38rem 0 var(--primary-red);
    }

    .footer-links a:hover::after {
        width: 100%;
    }

    .footer-socials img:hover {
        transform: scale(1.1);
    }

    #etape-1 .btn-skewed:hover {
        transform: skewX(-20deg) rotate(-5deg) scale(1.05);
        background-color: var(--text-white);
    }

    .question-step {
        position: relative;
    }

    .error-msg-selection {
        bottom: 2rem;
    }

    .donation-card:hover {
        transform: scale(1.05);
    }

    .form-step {
        height: 100vh;
        justify-content: center;
    }
}