html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background: #F8F9FC; 
    color: #0A1740;      
    overflow: hidden; 
}

.header-bar {
    width: 100%;
    background-color: #FFFFFF;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(10, 23, 64, 0.10); 
    position: relative;
}

.header-bar img {
    max-width: 100px;
    height: 60px;
}

.header-bar .logo-link, .header-bar .exit-link {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.header-bar .logo-link {
    left: 20px;
}

.header-bar .exit-link {
    right: 20px;
    color: #0A1740; 
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.header-bar .exit-link img {
    margin-left: 5px;
    width: 16px;
    height: 16px;
}

#questionIndicator {
    background-color: #FFFFFF;
    color: #0A1740; 
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0;
    animation: slideInDown 0.5s ease forwards;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    /*overflow: hidden;*/
    background-color: #F8F9FC; 
}

.content {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.left-panel, .right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    width: 50%;
}

.left-panel {
    background-color: #0A1740; 
    color: #FFFFFF;
    padding: 0 6%;
    width: 40%;
}

.right-panel {
    background-color: #F8F9FC; 
    padding: 0 6%;
    text-align: center;
    width: 60%;
}

.quiz-content {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 20px;
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); */
    text-align: center;
}

.quiz-question, .quiz-options {
    display: none;
    margin: 15px 0;
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.quiz-question.active, .quiz-options.active {
    display: block;
    animation: slideInUp 0.5s ease forwards;
}

.quiz-question.exit, .quiz-options.exit {
    animation: slideOutDown 0.5s ease forwards;
}

.form-options {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.form-check {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-check-label {
    background-color: #FFFFFF;
    color: #0A1740; /* was #2b3e50 */
    display: inline-block;
    margin: 10px;
    /* padding: 20px; */
    box-shadow: 0 4px 6px rgba(10, 23, 64, 0.10);
    transition: transform 0.2s, background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    cursor: pointer;
    font-weight: 500;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 92%;
    border-radius: 50%;
    padding: 15px 15px 13.5px 15px;
    border: 1px solid #ECECEC;
}

.form-check-label img {
    max-height: 125px;
}

.form-check-label:hover, .form-check-input:checked + .form-check-label {
    transform: translateY(-3px); 
    background-color: #DDF37C; 
    color: #0A1740;            
    border-color: #A6CB17;     
}

.form-check-input {
    display: none;
}

.form-check-text {
    margin-top: 10px;
    color: #0A1740;  
    inline-size: 87%;
    text-align: center;
    font-size: 92%;
}

.h4 {
    padding-top: 15px; 
    text-align: center;
    font-size: 32px; 
}

.btn {
    padding: 16px 20px;
    border-radius: 9px;
    border: 2px solid transparent;
    color: #FFFFFF;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.navigation-left .btn {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.navigation-left .btn:hover {
    background-color: #FFFFFF; 
    color: #0A1740;
    border: 2px solid #FFFFFF;
}

.navigation-right .btn {
    background-color: #DDF37C; 
    color: #0A1740;           
}

.navigation-right .btn:hover {
    background-color: rgba(255, 87, 34, 1); 
    color: #ffffffff;           
    border: 2px solid rgba(255, 87, 34, 1); 
}

.navigation-left, .navigation-right {
    position: fixed;
    bottom: 50px;
}

.navigation-left {
    left: 13%;
}

.navigation-right {
    right: 24%;
}

#errorMessage {
    margin-left: 3%;
    color: #FF5722; 
}

.question-indicator {
    padding: 6px 10px;
    border-radius: 14px;
    line-height: 15px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
}

input[type="range"].slider {
    -webkit-appearance: none;
    width: 100%;
    height: 25px;
    background: #EDF0F7; 
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    border-radius: 10px;
}

input[type="range"].slider:hover {
    opacity: 1;
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: #DDF37C; 
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(10, 23, 64, 0.20);
    border: 2px solid #0A1740;
}

input[type="range"].slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: #DDF37C; 
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(10, 23, 64, 0.20);
    border: 2px solid #0A1740;
}

.quiz-question span {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #0A1740; 
}

@keyframes slideInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slideInDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Mobile */
@media (max-width: 767px) {
    .content {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        /* overflow: auto; */
        overflow: visible;
    }
    .container {
        height: 85%;
        overflow: scroll;
    }
    .h4 {
        font-size: 33px;
        color: #0A1740;
    }
    div#introText {
        font-size: 21px;
        color: #0A1740;
    }
    #questionIndicator {
        background-color: #FFFFFF;
        color: #0A1740;
        font-size: 25px;
        padding: 19px 20px;
        border-radius: 50px;
        display: inline-block;
        margin: 10px 0;
        animation: slideInDown 0.5s ease forwards;
    }
    .form-check-text {
        font-size: xx-large;
        color: #0A1740;
    }
    .quiz-options {
        display: none;
        margin: 15px 0;
        padding: 20px;
        opacity: 0;
        transform: translateY(100%);
        transition: opacity 0.3s, transform 0.3s;
    }
    .quiz-options.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    .form-options {
        display: flex;
        justify-content: center;
        gap: 36px;
        flex-wrap: wrap;
    }
    .form-check {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
    }
    .form-check-label {
        background-color: #FFFFFF;
        color: #0A1740;
        display: flex;
        align-items: center;
        margin: 10px;
        border-radius: 100px;
        padding: 100px;
        box-shadow: 0 4px 6px rgba(10, 23, 64, 0.10);
        transition: transform 0.2s, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
        cursor: pointer;
        font-weight: 500;
    }
    label.form-check-label {
        font-size: xx-large;
    }
 
    .form-check-label img {
        max-height: 300%;
    }
    .form-check-label:hover, .form-check-input:checked + .form-check-label {
        transform: translateY(-3px); 
        background-color: #DDF37C;
        color: #0A1740;
        border-color: #A6CB17;
    }
    .form-check-input {
        display: none;
    }
    .form-check-text {
        color: #0A1740;
        flex: 1;
        font-size: 35px;
    }
    .navigation-right {
        position: fixed;
        bottom: 20px;
        right: 3%;
        z-index: 1;
    }
    .navigation-left {
        position: fixed;
        bottom: 20px;
        margin-left: -10%;
        z-index: 1;    
    }
    .btn {
        padding: 33px 19px;
        border-radius: 19px;
        font-size: xx-large;
        font-weight: bold;
    }
    div#errorMessage {
        font-size: 25px;
        margin-top: 3%;
        left: 29%;
        color: #FF5722;
    }
    .left-panel, .right-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        transition: all 0.3s ease;
        width: 100%;
    }
    .navigation-left .btn {
        background-color: #0A1740; 
        color: #FFFFFF;
        border: 2px solid #0A1740;
    }
    .exit-link {
        font-size: 26px;
        color: #0A1740;
    }
    .header-bar img {
        max-width: 25%;
    }
}

@media (min-width: 1024px) and (max-width: 1100px) {
    .form-check-label {
        margin: 0px !important;
    }
}


/* Tablette (768px à 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .content {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        /* overflow: auto; */
        overflow: visible;
    }
    .container {
        height: 85%;
        overflow: scroll;
    }
    .h4 {
        font-size: 33px;
        color: #ffffffff;
    }
    div#introText {
        font-size: 21px;
        color: #ffffffff;
    }
    #questionIndicator {
        background-color: #FFFFFF;
        color: #0A1740;
        font-size: 25px;
        padding: 19px 20px;
        border-radius: 50px;
        display: inline-block;
        margin: 10px 0;
        animation: slideInDown 0.5s ease forwards;
    }
    .form-check-text {
        font-size: xx-large;
        color: #0A1740;
    }
    .quiz-options {
        display: none;
        margin: 15px 0;
        padding: 20px;
        opacity: 0;
        transform: translateY(100%);
        transition: opacity 0.3s, transform 0.3s;
    }
    .quiz-options.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    .form-options {
        display: flex;
        justify-content: center;
        gap: 36px;
        flex-wrap: wrap;
    }
    .form-check {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
    }
    .form-check-label {
        background-color: #FFFFFF;
        color: #0A1740;
        display: flex;
        align-items: center;
        margin: 10px;
        border-radius: 100px;
        padding: 100px;
        box-shadow: 0 4px 6px rgba(10, 23, 64, 0.10);
        transition: transform 0.2s, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
        cursor: pointer;
        font-weight: 500;
    }
    label.form-check-label {
        font-size: xx-large;
    }
 
    .form-check-label img {
        max-height: 300%;
    }
    .form-check-label:hover, .form-check-input:checked + .form-check-label {
        transform: translateY(-3px); 
        background-color: #DDF37C; 
        color: #0A1740;
        border-color: #A6CB17;
    }
    .form-check-input {
        display: none;
    }
    .form-check-text {
        color: #0A1740;
        flex: 1;
        font-size: 35px;
    }
    .navigation-right {
        position: fixed;
        bottom: 20px;
        right: 3%;
        z-index: 1;
    }
    .navigation-left {
        position: fixed;
        bottom: 20px;
        margin-left: -10%;
        z-index: 1;    
    }
    .btn {
        padding: 33px 19px;
        border-radius: 19px;
        font-size: xx-large;
        font-weight: bold;
    }
    div#errorMessage {
        font-size: 25px;
        margin-top: 3%;
        left: 29%;
        color: #FF5722;
    }
    .left-panel, .right-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        transition: all 0.3s ease;
        width: 100%;
    }
    .navigation-left .btn {
        background-color: #0A1740; 
        color: #FFFFFF;
        border: 2px solid #0A1740;
    }
    .exit-link {
        font-size: 26px;
        color: #0A1740;
    }
    .header-bar img {
        max-width: 25%;
    }
    .logocbdpaschere {
        width: 149px !important;
        height: 100px !important;  
    }
}
