/* CSS fabs in wp */
.fab-menu {
    /*position: absolute;*/
    position: fixed;
    z-index: 10000;
    top: 50%;
    right: 0px;
    left: auto;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fab-menu.left {
    right: auto;
    left: 20px;
}

.fab-menu .fab-button {
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    font-size: 24px;
    line-height: 56px;
    /*margin-bottom: 10px;*/
}

.fab-menu .fab-menu-items {
    display: none;
    flex-direction: column;
}

.fab-menu .fab-menu-items.show {
    display: flex;
    font-size: 14px;
}

.fab-menu .fab-menu-items .fab-menu-item {
    background-color: #333;
    color: white;
    /*border-radius: 4px;*/
    padding: 10px;
    /*margin-bottom: 5px;*/
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
    width: 96px;
    height: 96px;
}

.fab-menu .fab-menu-items .fab-menu-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    font-size: 14px;
}

.item-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.fab-menu .fab-menu-items .fab-menu-item {
    background-color: var(--fab-bg-color, #333);
}

.fab-menu .fab-menu-items .fab-menu-item:hover {
    background-color: #918d8d !important;
}


/*CSS table items fab in Admin */
#fab-items-table {
    width: 100%;
    border-collapse: collapse;
}
#fab-items-table th, #fab-items-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
#fab-items-table th {
    background-color: #f4f4f4;
}
.fab-item img {
    width: 128px;
    height: 128px;
    object-fit: cover;
}
.upload-image-button {
    margin-top: 5px;
}
#add-item {
    margin-top: 10px;
}



/*CSS form questionnaire*/
.step {
    margin: 20px 0;
}

.step h2 {
    font-size: 20px;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #005177;
}


.content-q {
    background-color: #4593e3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 35px 75px 25px 75px;
    padding: 15px 75px 45px 75px;
    width: fit-content;
    /*border-radius: 10px;*/
    box-shadow: 0px 19px 38px 0px rgba(0, 0, 0, 0.16);
    background-color: rgba(var(--kubio-color-5), 1);
}

.row-q {
    padding: 10px;
    border: 1px solid #00BCD4;
    width: fit-content;
    background-color: aliceblue;
    border-radius: 5px;
}



/* Style par défaut pour les boutons radio */
.button-radio {
    display: inline-block;
    /*width: 300px;*/
    width: -webkit-fill-available;
    /*height: 50px;*/
    padding: 10px;
    margin: 10px;
    font-weight: 400;
    font-size: 16px;
    background-color: #ffffff;
    border: 1px solid #626161;


    border-radius: 5px;
    cursor: pointer;
    /*text-align: center;*/
    line-height: 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.button-radio input[type="radio"] {
    display: none;
}

.button-radio:hover {
    background-color: #ddd;
}

.selected {
    background-color: #43d084;
    color: white;
    border-color: #30b56d;
}

.confirmation-message {
    text-align: center;
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
}

/* Style spécifique pour les tablettes et mobiles */
@media (max-width: 768px) {
    .fab-menu .fab-menu-items .fab-menu-item {
        background-color: #333;
        color: white;
        /*border-radius: 4px;*/
        padding: 10px;
        /*margin-bottom: 5px;*/
        cursor: pointer;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s ease;
        width: 65px;
        height: 65px;
    }
    
    .fab-menu .fab-menu-items .fab-menu-item img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        font-size: 14px;
    }
}

@media (max-width: 480px) { /* Pour les mobiles */
    .fab-menu .fab-menu-items .fab-menu-item {
        background-color: #333;
        color: white;
        /*border-radius: 4px;*/
        padding: 10px;
        /*margin-bottom: 5px;*/
        cursor: pointer;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s ease;
        width: 65px;
        height: 65px;
    }
    
    .fab-menu .fab-menu-items .fab-menu-item img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        font-size: 14px;
    }
}


/*CSS pour le Popup*/
.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.popup-content {
    position: relative;
    margin: auto;
    /*padding: 20px;*/
    margin-top: 97px;
    width: 700px;
    height: 250px;
    background: white;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;

    display: flex;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.btn_popup {
    border-radius: 5px;
    background-color: #00d084;
}

.right-image {
    max-width: 238px;
    height: auto;
}


.h3_popup {
    font-family:arial, helvetica, sans-serif;
    font-style: normal;
    line-height: 1.5;
    font-size: 19px;
    text-align: center;
}

/* Style spécifique pour les tablettes et mobiles */
@media (max-width: 768px) {

    /* Cacher le popup sur tablette et mobile */
    #popup {
        display: none;
    }

    .popup-content {
        width: 400px;
        height: 200px;
    }

    .right-image {
        max-width: 185px;
    }

    .h3_popup {
        font-size: 14px;
    }

    .btn_popup {
        width: 69%;
        font-size: 11px;
    }

    .responsive-text {
        font-size: 4vw;
        /*line-height: 1.2;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;*/
    }
}

@media (max-width: 480px) { /* Pour les mobiles */

    /* Cacher le popup sur tablette et mobile */
    #popup {
        display: none;
    }

    .popup-content {
        width: 400px;
        height: 200px;
    }

    .right-image {
        max-width: 185px;
    }

    .h3_popup {
        font-size: 14px;
    }

    .btn_popup {
        width: 69%;
        font-size: 11px;
    }

    .responsive-text {
        font-size: 3vw;
    }
}

/**/
div#etape-1 {
    display: flex;
}

.image-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    /*border-radius: 10px;*/
    border-radius: 10px 100px;
    object-fit: cover;
    height: 100%;
}

@media screen and (max-width: 768px) {
    .formulaire-container {
        flex-direction: column;
    }

    .formulaire, .image-container {
        width: 100%;
    }

    .image-container {
        height: auto;
    }
}




/*CSS CP Quizz*/
.d-quizz {
    min-width: 1149px;
    width: 1148px ;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.row-col {
    position: relative;
    flex: 1;
    margin: 0;
    padding: 0;
    /*min-width: 168px;*/
    min-width: 16.66%;
}

.row-col img {
    width: 100%;
    height: auto;
}

.parf {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
}

.row-col:hover .parf {
    opacity: 1;
}

@media (max-width: 768px) {
    .d-quizz {
        display: none;
    }
}