html,
body {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

html,
body,
main {
    height: 100%;
    margin: 0;
    padding: 0;

}

header .container {
    padding: .1rem;
    padding-left: 5rem;
    padding-right: 1rem;
}

.container-exo {
    height: 100%;
    width: 100%;
    display: flex;
    gap: 2px;
    padding: 5px;
}

.separatorCursor {
    background-color: transparent;
    width: 3px;
    height: 100%;
    align-self: center;
    position: relative;
    border-radius: 10px;
    user-select: none;
}

.separatorCursor:hover {
    height: 100%;
    background-color: rgb(25, 133, 248);
    cursor: ew-resize;
}

.cursor {
    position: absolute;
    width: 3px;
    height: 6%;
    background-color: green;
    top: 50%;
    left: 50%;
}

.cursorCenter {
    translate: -50% -50%;
}

.separatorCursor:hover .cursor {
    background-color: transparent;
}

.container-ide,
.info-exo {
    /* flex-shrink: 0; */

    display: flex;
    flex-direction: column;
    height: 100%;
    /* width: 50%; */
    padding: 10px;
    border-radius: 10px;
    background: #1e1e1e;
}

.container-ide {
    width: 60%;
}

.container-ide.maximize-ide {
    width: 100% !important;
}

.container-ide.maximize-info {
    display: none;
}

.info-exo {
    width: 40%;
}


.info-exo.maximize-ide {
    /* width: 0px; */
    display: none;
}


.info-exo.maximize-info {
    width: 100% !important;
}

.editor-container {
    margin-top: 5px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#header.maximize-ide {
    display: none;
}

.editor {
    flex: 1;
    height: 100%;
}

.status-bar {
    background: #1e1e1e;
    padding: 4px 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: whitesmoke;
    border-radius: 10px;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 20px;
}



.info-exo .btn-primary {
    background-color: #28c244;
    width: max-content;
}

.info-exo .btn-primary:hover {
    background-color: #1c8f31;

}


.info-exo .btn-danger {
    background-color: #c22828;
    width: max-content;
}

.info-exo .btn-danger:hover {
    background-color: #8f1c1c;

}

.buttonsActionExo {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* INFO CONSIGNE ETC.  */
.info-exo {
    font-family: sans-serif;
    color: white;
    line-height: 1.5;

    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    justify-content: flex-start;
    /* overflow-y: scroll; */
    overflow-y: auto;
    position: relative;
}

.info-exo * {
    color: white;
    margin: 0 0 0.5rem 0;
}

#result {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    overflow: auto;
    transition: opacity 0.2s ease;
    /* animation fluide sur l’opacité */
}

#result.fade {
    opacity: 0;
}

.info-exo h1 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.info-exo h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.2rem;
    font-weight: bold;
}

.info-exo h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: bold;
}

.info-exo p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.info-exo ul,
.info-exo ol {
    padding-left: 1.2rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.info-exo li {
    margin-bottom: 0.3rem;
}

.info-exo code {
    background-color: #2d2d2d;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.info-exo pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
    background-color: #2d2d2d;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-exo blockquote {
    border-left: 4px solid #007acc;
    padding-left: 1rem;
    color: #ccc;
    font-style: italic;
    margin: 0.5rem 0;
}

.info-exo a {
    color: #4aa3ff;
    text-decoration: underline;
}

.info-exo hr {
    border: none;
    border-top: 1px solid #444;
    margin: 1rem 0;
}





/* pop up */


#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Contenu de la popup */
.popup-content {
    background: rgb(48 48 48);
    color: white;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.popup-content p {
    color: #EFF1F6BF;
}

.popup-content h3 {

    display: flex;
    align-items: center;
    gap: 5px;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: -3px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Boutons en bas */
.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.popup-buttons button {
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.success {
    border-left: 6px solid #28a745;
}

.failure {
    border-left: 6px solid #dc3545;
}

.btn-green {
    background-color: #28a745;
    color: white;
}

.btn-red {
    background-color: #dc3545;
    color: white;
}

.btn-gray {
    background-color: #ffffff1A;
    color: white;
}




/* loader point*/

#loaderPoint {
    display: inline-block;
    width: 1em;
    text-align: left;
    font-weight: bold;
    font-size: 1.2em;
}

#loaderPoint::after {
    content: '.';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* loader rond */

.loaderRond {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.menu-deroulant * {

    scrollbar-width: none;
}

.menu-deroulant {
    position: relative;
    display: inline-block;
}

.menu-deroulant .contenu-menu {
    display: none;
    position: absolute;
    background-color: #292929;
    padding: 10px;
    /* border: 1px solid #ccc; */
    min-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 15px;
    right: 5px;
}

.menu-deroulant:hover .contenu-menu {
    display: block;
}

.menu-deroulant .contenu-menu div {
    padding: 8px;
    cursor: pointer;
    /* border-bottom: 1px solid #eee; */
}

.menu-deroulant .contenu-menu>div:hover {
    background-color: grey;
}

.histoReponse {
    position: relative;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.histoReponse:hover {
    background-color: #444;
}


.histoReponse .valide {
    position: absolute;
    top: 0;
    right: 0;
    height: 7px;
    width: 7px;
    border: 0px;
    border-radius: 50%;
}

.color-green {
    background: #28a745;
}

.color-red {
    background-color: red;
}



.color-white {
    background-color: white;
}


.btn-display {
    display: flex;
    align-items: center;
    gap: 10px;
    height: max-content;
    padding-bottom: 5px;
}

.btn-primary-bis {
    background-color: #4b7bec;
    border-color: #4b7bec;
}



/* ide */

.header-ide {
    display: flex;
    gap: 5px;
    align-content: baseline;
    fill: white;
    color: white;
    background-color: #ffffff1a;
    margin: 0;
    padding: 10px;
    height: 45px;
}

.container-ide {
    padding: 0;
}

.info-ide {
    display: flex;
    gap: 5px;
    align-content: baseline;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    /* max-height: 30px; */
    padding: 5px;
}

.language-ide {
    color: grey;
}

.action-ide {
    display: flex;
    gap: 5px;
}

.action-ide-div {
    height: 28px;
    width: 28px;
    padding: 2px;
    /* background-color: #ffffff38; */
    border-radius: 5px;
    cursor: pointer;
}

#reset-code svg {
    rotate: -45deg;
}

.action-ide-div:hover {
    background-color: #ffffff34;
}


/* #ffffff24 */
.header-ide {
    position: relative;
}

.header-texte {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-exe {
    font-family: Consolas, "Courier New", monospace;
    font-weight: normal;
    font-size: 14px;
    font-feature-settings: "liga" 0, "calt" 0;
    font-variation-settings: normal;
    line-height: 19px;
    letter-spacing: 0px;

    display: flex;
    align-items: center;
    gap: 5px;
    color: #28c244;
    background-color: #444;
    border-radius: 10px;
    border: 0;
    padding: 5px 7px 5px 7px;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.btn-exe {}

/* ide */
.minimize_svg {
    display: none;
}

.maximize-ide .minimize_svg {
    display: block;
}

.maximize-ide .maximize_svg {
    display: none;
}


/* info */

.minimize_svg {
    display: none;
}

.maximize-info .minimize_svg {
    display: block;
}

.maximize-info .maximize_svg {
    display: none;
}


#separatorCursor.maximize-ide {
    display: none;
}


.header-info {
    margin: -10px;
    background-color: #ffffff1a;
    padding: 5px;
    display: flex;
    gap: 15px;
    overflow: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 45px;
    min-height: 45px;
    padding-bottom: 0;
    position: relative;
    padding-right: 5.8rem;
}

.header-info::-webkit-scrollbar {
    display: none;
}

.action-info {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
    margin: 0;
}

.action-info-before::before {
    content: "";
    position: absolute;
    right: calc(100% + 15px / 2);
    width: 1px;
    height: 10px;
    background-color: #ffffff24;
}





.header-info svg {
    margin: 0;
}


.action-info {
    cursor: pointer;
    opacity: .6;
}

.action-info.active {
    opacity: 1;
}


.clignote {
    transition: fill 0.2s;
}

svg .clignote {
    animation: clignoter 0.4s infinite alternate;
}

@keyframes clignoter {
    0% {
        fill: #28a745;
    }

    50% {
        fill: transparent;
    }

    100% {
        fill: #28a745;
    }
}


.btnCertif {
    position: absolute;
    top: calc(3rem + 5px);
    right: 5px;
    color: #fff;
}

.btnCertif:not(.unCertif) svg:last-of-type {
    display: none;
}

.btnCertif.unCertif svg:first-of-type {
    display: none;
}

.action-header-info {
    position: absolute;
    right: 0;
    top: 0;
    width: 70px;
    height: 45px;
    max-height: 45px;
    background-color: #313131;
    z-index: 1;
    box-shadow: -18px -9px 17px 7px #313131;
}


.minimize_svg_info {
    position: absolute;
    top: 50%;
    right: 5px;
    translate: 0 -50%;
    display: flex;
    gap: 5px;
}

.minimize_svg_info svg {
    margin: 0;
}

@keyframes rotateOnce {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes rotateOnce {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(-315deg);
    }
}

.rotate {
    animation: rotateOnce 1.6s cubic-bezier(0.3, 0.8, 0.3, 2.3);
    ;
}

.rotatev2 {
    animation: rotateOnce 0.6s linear;
}
.disabled{
    cursor:no-drop;
}

.buttonsActionExo {
    /* margin-top: 30px; */
    display: none;
}