@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

@view-transition {
    navigation: auto;
}

:root{
    --background-body: #0f172a;
    --color-primary: #c7d2fe;
    --background-color-primary:  #6366f1;
    --color-success: #047857;
    --background-color-success: #a7f3d0;
    --color-danger: #991b1b;
    --background-color-danger: #fecaca;
    --color-warning: #f59e0b;
    --background-color-warning: #fde68a;
    --color-default: #f3f4f6;
    --background-color-default: #f3f4f6;
    --shadow-default: 0 0 6px 0 #00000050;
}

body {
    background-color: var(--background-body);
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
}

h1 {
    color: white;
    text-transform: uppercase;
    font-size: 50px;
    margin: 0;
}

h2 {
    margin: 0;
}

a {
    text-decoration: none;
}

.mt-20px {
    margin-top: 20px;
}

.mb-10px {
    margin-bottom: 10px;
}

.mb-20px {
    margin-bottom: 20px;
}

.mb-50px {
    margin-bottom: 50px;
}

.badge {
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-complete {
    background-color: var(--background-color-success);
    color: var(--color-success);
}

.badge-progress {
    background-color: var(--background-color-primary);
    color: var( --color-primary);
}

.badge-failed {
    background-color: var(--background-color-danger);
    color: var(--color-danger);
}

.badge-video_progress {
    background-color: var(--background-color-warning);
    color: var(--color-warning);
}

.badge-waiting {
    background-color: var(--background-color-default);
    color: black;
}

.btn-no-bg {
    background-color: transparent !important;
}

.text-center {
    text-align: center;
}

.container {
    margin: 50px;
}

.bouton-config-scene{
    padding-left: 10px;
    font-weight: 500;
    font-size: 16px;
    color: white;
}

.bouton-config-scene:hover{
    text-decoration: underline;
}

.debug-section{
    position: fixed;
    top: 80px;
    left: 10px;
    border-radius: 8px;
    background-color:rgba(0,0,0,0.84);
    color: red;
    margin: 0;
    padding: 5px;
    z-index: 999;
}

.debug-section-close{
    position: absolute;
    right: 8px;
    top: 2px;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.captures {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.capture {
    position: relative;
    background-color: #1e293b;
    color: #94a3b8;
    border-radius: 10px;
    margin: 0px 10px 10px 0px;
    width: calc(16.66% - 50px);
    cursor: pointer;
    overflow: hidden;
    height: 230px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.capture::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background-color: rgb(30, 41, 59, 0.5);
    transition: 0.2s;
}

.capture:hover::before {
    background-color: rgb(30, 41, 59, 0);
}

.capture .capture-content {
    position: relative;
    z-index: 3;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.capture:hover .capture-image {
    scale: 1.5;
}

.capture .capture-date-creation{
    position: absolute;
    z-index: 9;
    bottom: 0;
    left: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    padding: 20px 0 4px 0;
    color: white;
    font-family: system-ui;
    font-weight: 500;
    font-size: 12px;
    text-shadow: 0 0 10px black;
    background: #0f172a;
    background: linear-gradient(0deg, #00000080 0%, rgba(255, 255, 255, 0) 100%);
}

.capture .capture-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    scale: 1.2;
    transition: 0.2s;
}

.titre_avec_fond {
    background-color: #1e293b;
    color: #e5e7eb;
    padding: 20px;
    border-radius: 4px;
    max-width: 50%;
    margin: auto;
}

.titre_avec_fond h2 {
    font-size: 22px;
}

.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    background-color: var(--background-color-default);
    color: var(--color-default);
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 50px;
    margin: 5px 10px;
    text-decoration: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    transition-duration: 0.2s;
}

.btn:hover {
    color: #ffffff !important;
}

.btn span{
    margin-left: 6px;
}

.btn-primary{
    background-color: var(--background-color-primary);
    color: white;
}

.btn-primary:hover{
    background-color: rgb(from var(--background-color-primary) r g b / 0.5);
}

.btn-success{
    background-color: var(--background-color-success);
    color: var(--color-success);
}

.btn-success:hover{
    background-color: var(--color-success);
}

.btn-danger{
    background-color: var(--background-color-danger);
    color: var(--color-danger);
}

.btn-danger:hover{
    background-color: var(--color-danger);
}

.btn-warning{
    background-color: var(--background-color-warning);
    color: var(--color-warning);
}

.btn-warning:hover{
    background-color: var(--color-warning);
}

.btn-default{
    background-color: var(--background-color-default);
    color: #0f172a;
}

.btn-default:hover{
    background-color: rgb(from var(--background-color-default) r g b / 0.8);
}

.text-primary {
    color: var(--background-color-primary);
}

input[type="file"]::-webkit-file-upload-button {
    background-color: var(--background-color-primary);
    color: var(--color-primary);
    border: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--background-color-primary);
    color: var(--color-primary);
}

.jconfirm-content .form-group input[type="text"] {
    padding: 12px;
    background-color: #1e293b;
    border: none;
    color: white;
    min-width: 261px;
}

.form-group input[type="text"]:focus-visible {
    border: none;
    outline: none;
}

.form-group input[type="text"]::placeholder {
    color: #475569;
}

#studio_4d_tec3h_body{
    cursor: grab;
}

#studio_4d_tec3h_body:active{
    cursor: grabbing;
}

#capture_informations{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    padding: 10px;
    user-select: none;
    transform: scaleX(0);
    animation: capture_info_in 1s 1s ease-in-out forwards;
}

#capture_informations .capture-text{
    margin: 0;
    font-family: system-ui;
    font-weight: 400;
    text-transform: uppercase;
    color: white;
    font-size: 23px;
    text-shadow: 0 0 2px #ffffff96;
}

#capture_informations .capture-details{
    margin: 0;
    font-family: system-ui;
    font-weight: 400;
    color: white;
    font-size: 14px;
    text-shadow: 0 0 2px #ffffff96;
}

@keyframes capture_info_in {
    100% {
        transform: scaleX(1);
    }
}

#logo_informations{
    display: flex;
    flex-direction: column;
    position: fixed;
    padding: 10px;
    transform: scale(0);
    user-select: none;
    animation: logo_info_in 1s 1s ease-in-out forwards;
}

#logo_informations .logo-img{
    width: 70px;
}

@keyframes logo_info_in {
    100% {
        transform: scale(1);
    }
}

.container-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.error h1 {
    color: white;
    text-transform: uppercase;
    font-size: 26px;
}

.bloc-titre {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.bloc-titre img {
    max-width: 100px;
    width: 100%;
}

.headerButton {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    color: white;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 0px;
}


@media screen and (max-width: 1400px) {
    .capture {
        width: calc(25% - 50px);
    }
}

@media screen and (max-width: 992px) {
    .capture {
        width: calc(50% - 50px);
    }
}

@media screen and (max-width: 772px) {
    .capture {
        width: 100%;
        margin: 0px 0px 10px 0px;
    }

    .headerButton {
        flex-direction: column;
    }

    .headerButton a {
        width: 100%;
    }
}

/* Styles pour le formulaire de connexion */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.login-form .form-group {
    margin-bottom: 15px;
    width: 100%;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #0069d9;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}