.answer-guide-container {

    /* Answer section */
    .answer-container {
        width: 1401px !important;
        padding: 65px 0;
        background-color: #dddce5;
        gap: 23px;
        color: #000;

        h5 {
            margin-bottom: 8px !important;
        }

        figure.wp-block-table {
            display: flex;
            flex-direction: column;
        }

        table {
            max-width: 830px;
            border-collapse: collapse;
            border: 1px solid #000;
            overflow: hidden;
        }

        thead {
            background: #000;
        }

        th {
            padding: 29px 24px;
            font-weight: 500;
            font-size: 16px;
            line-height: 140%;
            letter-spacing: -0.02em;
            color: #f0eee4;
            text-align: left;
            border: 1px solid #5F5F5F;
            border-top: 1px solid #000;
            border-bottom: 1px solid #000;
        }

        th:first-child {
            border-left: 1px solid #000;
        }

        th:last-child {
            border-right: 1px solid #000;
        }

        tbody tr {
            background: #eeeef2;
        }

        tbody tr:last-child {
            background: #5F5F5F;
            color: #fff;
        }

        tbody tr:not(:last-child) td:not(:first-child):not(:last-child) {
            color: #5F5F5F;
        }

        td {
            padding: 29px 24px;
            font-size: 14px;
            line-height: 140%;
            border: 1px solid #000;
            border-top: none !important;
        }

        figure.wp-block-table figcaption {
            order: -1;
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 16px;
            margin-top: 0;
        }
    }

    .question-card {
        width: 100%;
        max-width: 926px;
        margin: 0 auto;
        align-items: flex-start;
        padding: 24px;
        gap: 24px;
        background: #fff;
        align-self: stretch;

        .question-header {
            align-items: flex-start;
            gap: 8px;
            align-self: stretch;

            .question-label {
                align-self: stretch;
            }

            .question-text {
                color: #000 !important;
            }
        }

        .answer-box {
            align-items: flex-start;
            padding: 24px;
            gap: 16px;
            background: rgba(221, 220, 229, 0.5);
            align-self: stretch;

            .module-tag {
                box-sizing: border-box;
                padding: 3px 8px;
                gap: 8px;
                background: linear-gradient(0deg, #fff, #fff), rgba(255, 255, 255, 0.75);
                border-radius: 30px;
                color: #000 !important;
            }

            .answer-text {
                align-items: center;
                align-self: stretch;
                color: #000 !important;
                font-weight: 300;
            }
        }
    }
}

.answer-guide-container {
    .reflection-container {
        margin-top: 26px !important;
    }
}

/* Tablet landscape and small desktop */
@media (max-width: 1400px) {
    .answer-guide-container {
        width: 100% !important;
        padding: 0 40px;
        box-sizing: border-box;

        .header-container {
            grid-template-columns: 2fr 1fr;
            width: 100%;

            .module-name {
                width: 100%;
            }
        }

        .answer-container {
            width: 100% !important;
            padding: 40px !important;
            box-sizing: border-box;
/*
            table {
                width: 100%;
                display: block;
                overflow-x: auto;
            }*/
        }

        .dropdowns {
            max-width: 100% !important;
        }
    }
}

/*  Mobile and tablet portrait */
@media (max-width: 950px) {
    .answer-guide-container {
        width: 100%;
        padding: 0 20px;

        .header-container {
            display: flex;
            flex-direction: column;
            width: 100%;

            .module-name,
            .goals,
            .theories {
                width: 100%;
                grid-column: auto;
                grid-row: auto;
            }

            .module-name {
                padding: 20px;
                height: 200px;

                /* Adjust module tag for mobile */
                .module-number {
                    font-size: 10px;
                    padding: 2px 6px;
                }

                /* Adjust print button for mobile */
                .print-btn {
                    right: 16px;
                    bottom: 16px;
                    padding: 8px 12px;
                    gap: 20px;
                    font-size: 12px;
                }
            }

            .goals h5 {
                margin-bottom: 24px !important;
            }
        }

        .answer-container {
            width: 100% !important;
            min-width: 0;
            padding: 40px 20px !important;
            overflow-x: clip;
            box-sizing: border-box;

            @media (max-width: 796px) {
                padding: 15px 20px 40px 20px !important;
            }

            h5 {
                margin-bottom: 5px !important;
            }

            /* Seul le figure défile en X ; le texte (h5, etc.) et le reste ne bougent pas */
            figure.wp-block-table {
                display: block;
                width: 100%;
                max-width: 100%;
                min-width: 0;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                box-sizing: border-box;
            }

            figure.wp-block-table table {
                display: table;
                width: max-content;
                min-width: 100%;
            }

            /* answer-box peut être dans .question-card ou directement dans .answer-container */
            .answer-box {
                min-width: 0;
                overflow-x: clip;
                overflow-wrap: break-word;
                box-sizing: border-box;
            }

            .answer-box > * {
                min-width: 0;
            }

            .question-card {
                width: 100%;
                min-width: 0;
                overflow-x: clip;
                padding: 20px;
                box-sizing: border-box;
                overflow-x: auto;

                .answer-box {
                    padding: 20px;
                }
            }
        }
    }
}