/* =====[ VARIABLES CSS / COULEURS ]========================================== */

:root {
    --jaune: #e8990f;
}

/* =====[ GLOBAL STYLES ]========================================= */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    z-index: 0;
    margin: 0;
    background-color: #fff;
    color: #000;
    font-family: Helvetica, sans-serif;
    text-wrap-style: pretty;
}

.error,
.error::placeholder {
    color: #dc3545;
}

.countdown strong {
    font-weight: 800;
}

a,
button,
input,
[icon] {
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s ease-in-out;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    margin: 0 auto;
    width: min(90%, 1550px);
}

/* ======[ SCROLL WATCHER ]================================== */

.scroll-watcher {
    position: fixed;
    z-index: 1000;
    height: 6px;
    width: 0%;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--jaune);
}

@supports (animation-timeline: scroll()) {
    .scroll-watcher {
        animation: scroll-watcher linear;
        animation-timeline: scroll();
    }

    @keyframes scroll-watcher {
        to {
            width: 100%;
        }
    }
}

/* =====[ HEADER - UTILITY BAR ]================================================= */

header .utility-bar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--12pxrem);
    padding-top: 0.75rem;
    color: var(--jaune);
}

header .utility-bar li {
    display: contents;
}

header .utility-bar a {
    color: var(--jaune);
    font-size: 32px;
    cursor: pointer;
}

header .utility-bar a:hover {
    color: #000;
}

header .utility-bar a.logout {
    color: #000;
}

header .utility-bar a.logout:hover {
    color: var(--jaune);
}

header .utility-bar .btn-programme {
    border-radius: 25px;
    padding-inline: 1.25rem;
    height: 34px;
    background-color: var(--jaune);
    color: #fff;
    font-size: var(--18px);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
}

header .utility-bar .btn-programme:hover {
    background-color: #000;
    color: #fff;
}

/* =====[ HEADER - CLIENT-BANNER ]================================================= */

header .client-banner {
    padding-bottom: 1.5rem;
}

header .client-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .client-banner .logos a {
    display: contents;
}

header .client-banner .logos img {
    height: 6.5rem;
    width: 16.5rem;
}



/* =====[ HEADER - COUNTDOWN ]================================================= */

header .countdown {
    width: max(50%, min(425px, 100%));
}

header .countdown h2 {
    margin-bottom: 0.375rem;
    font-size: var(--22px);
    font-weight: 400;
    color: #000;
}

header .countdown ul {
    --countdown-gap: 2.25rem;
    display: flex;
    gap: var(--countdown-gap);
}

header .countdown li {
    position: relative;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--13px);
    text-align: center;
    text-transform: capitalize;
}

header .countdown li span {
    position: relative;
    display: block;
    margin-top: var(--2pxrem);
    padding-block: var(--5pxrem);
    background-color: #f7f3ed;
    font-size: var(--22px);
    color: #000;
    font-weight: 700;
}

header .countdown li:not(:last-child) span::after {
    content: ":";
    position: absolute;
    top: 50%;
    right: calc(var(--countdown-gap) * -1);
    width: var(--countdown-gap);
    font-family: 'Trebuchet MS', 'Segoe UI', 'Courier New', 'Open Sans', 'Roboto', 'Ubuntu', 'Noto Sans', 'Arial Rounded MT', system-ui, BlinkMacSystemFont, sans-serif;
    font-size: var(--22px);
    font-weight: 600;
    transform: translateY(-50%);
}

/* =====[ LOBBY ]================================================= */

.lobby {
    flex: 1;
    padding-block: 4rem;
    --bg-height: 1280;
    --bg-width: 1924;
    --bg-min-height: 1400px;
    /*min-height: var(--bg-min-height);*/
    background-image: var(--background);
    background-size: auto max(var(--bg-min-height), 100%, calc(100vw / (var(--bg-width) / var(--bg-height))));
    background-position: top;
    background-repeat: no-repeat;
}

.lobby .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* =====[ EVENT OVERVIEW ]================================================= */

.event-overview .datetime {
    font-size: var(--22px);
    color: #fff;
}

.event-overview .datetime span {
    font-weight: 700;
}

.event-overview h1 {
    margin-block: 3.5rem 4.5rem;
    font-size: var(--42px);
    font-weight: 700;
    width: 80%;
    color: #fff;
}

.event-overview .title span {
    font-weight: 400;
}

.event-overview .credit {
    font-size: var(--18px);
    font-weight: 700;
}

/* =====[ EVENT FORM ]================================================= */

.event-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    height: fit-content;
    width: min(450px, 100%);
    color: #000;
    text-align: center;
    overflow: hidden;
}

/* =====[ EVENT FORM - NAV-TABS ]================================================= */

.event-form .nav-tabs {
    display: flex;
    transform: translateZ(0);
    background-color: #f7f3ed;
    color: var(--jaune);
}

.event-form .nav-tabs button {
    appearance: none;
    flex: 1;
    outline: none;
    border: none;
    padding: 1rem 1.25rem;
    background-color: inherit;
    color: inherit;
    font-family: inherit;
    font-size: var(--20px);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.event-form .nav-tabs button:not(:disabled, .active):hover {
    background-color: var(--jaune);
    color: #fff;
}

.event-form .nav-tabs button.active {
    background-color: #fff;
    color: var(--jaune);
    cursor: default;
}

.event-form .nav-tabs button:disabled {
    cursor: not-allowed;
}

/* =====[ EVENT FORM - MESSAGE + NAV-ITEM ]================================================= */

.event-form .message,
.event-form .nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background-color: #fff;
    padding: 1.75rem 2rem;
    text-align: center;
}

.event-form .nav-item.hidden {
    display: none;
}

.event-form .message .not-available-maintext {
    font-size: var(--38px);
}

.event-form .message .not-available-subtext {
    font-size: var(--20px);
}

.event-form .message .icon {
    margin-block: 2rem;
    font-size: var(--56px);
}

.event-form .message .credentials-working,
.event-form .message .not-available-yet {
    margin-block: 0.5rem 0.75rem;
    font-size: var(--22px);
    font-weight: 500;
}

.event-form .message .datetime {
    margin-bottom: 0;
    font-size: var(--18px);
}

.event-form .nav-item h2 {
    margin-block: 0 1.75rem;
    font-size: var(--32px);
    line-height: 1.1;
    font-weight: 500;
    color: #000;
}

.event-form .nav-item h2 strong {
    display: block;
    font-size: var(--52px);
    font-weight: 700;
    color: #000;
}

.event-form .nav-item h3 {
    margin-top: 0;
    font-size: var(--24px);
    font-weight: 400;
}

.event-form .nav-item input {
    outline: none;
    margin-bottom: 0.75rem;
    border: 1px solid var(--jaune);
    border-radius: 5px;
    padding: 0.7rem 0.5rem 0.6rem;
    width: 100%;
}

.event-form .nav-item textarea {
    outline: none;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 0.7rem 0.5rem 0.6rem;
    width: 100%;
    height: 80px;
    font-family: inherit;
    font-size: inherit;
}

.event-form .nav-item select {
    outline: none;
    background: #fff;
    border: 1px solid var(--jaune);
    border-radius: 5px;
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.5rem 0.6rem;
    width: 100%;
}

.event-form .nav-item input:not(.error)::placeholder,
.event-form .nav-item select:not(.error) {
    color: #aaa;
}

.event-form .nav-item input,
.event-form .nav-item select.has-value {
    color: #000;
}

.event-form .nav-item select option {
    color: #000;
}


.event-form .nav-item .kicked,
.event-form .nav-item .error-message {
    margin-block: 0 0.75rem;
    font-size: var(--14px);
    color: #dc3545;
    text-wrap-style: pretty;
}

.event-form .nav-item em {
    display: block;
    margin-block: 0.5rem 0.25rem;
    font-size: var(--12px);
    font-weight: 600;
}

.event-form .nav-item .click-here {
    margin-bottom: 0.75rem;
    font-size: var(--18px);
    line-height: 1.5;
}

.event-form .nav-item .click-here a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.event-form .nav-item .click-here a:hover {
    color: #000;
}

.event-form .nav-item .form-label {
    align-self: flex-start;
    margin-top: -8px;
    text-align: left;
    font-size: var(--11px);
    color: #000;
}

.event-form .nav-item input[type="submit"] {
    margin-block: 1rem 0;
    padding: 0.6rem 3.5rem;
    width: auto;
    background-color: var(--jaune);
    color: #fff;
    font-family: inherit;
    font-size: var(--20px);
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
}

.event-form .nav-item input[type="submit"]:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.event-form .nav-item input[type="submit"] + a {
    margin-top: 0.5rem;
    font-size: var(--14px);
    text-decoration: underline;
}

.event-form .nav-item .consens {
    font-size: var(--12px);
    font-style: italic;
}

/* =====[ EVENT FORM - ADD-CALENDAR ]================================================= */

.event-form .add-calendar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--10pxrem);
    padding: 0.6rem;
    width: 100%;
    background-color: var(--jaune);
    color: #fff;
    font-size: var(--14px);
    font-weight: 400;
}

.event-form .add-calendar .icon {
    font-size: var(--26px);
    transition: all 0.25s ease-in-out;
}

.event-form .add-calendar .icon:hover {
    color: #000;
}

/* =====[ PLAYBACK - EVENT-BANNER ]================================================= */

.playback .event-banner {
    padding-block: 3rem 2.25rem;
    color: #fff;
    background-image: var(--video-banner, none);
}

.playback .event-banner .datetime span {
    font-weight: 700;
}

.playback .event-banner .datetime {
    font-size: var(--20px);
    font-weight: 300;
}

.playback .event-banner .date,
.playback .event-banner .time {
    display: inline-block;
}

.playback .event-banner .time {
    margin-left: 6rem;
}

.playback .datetime .datetime span {
    font-weight: 600;
}

.playback .event-banner h1 {
    margin-block: 0.75rem 0;
    font-size: var(--36px);
}

/* =====[ PLAYBACK - PLAYER ]================================================= */

.playback .event-banner + .container {
    display: flex;
    gap: 2.5rem;
    padding-block: 3rem;
}

.playback .player {
    flex: 3;
    width: 100%;
}

.playback .player:only-child {
    margin: 0 auto;
    width: 100%;
    max-width: 918px;
}

.playback .player .jwplayer .jw-wrapper {
    background-color: unset;
}

.playback .player .jwplayer,
.playback .player .jw-video,
.playback .player .jw-preview,
.playback .player .jw-controls-backdrop,
.playback .player .jw-controls {
    border-radius: 10px;
}

.playback .player .play-button {
    position: absolute;
    inset: 1.25rem auto auto 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    background: url(/client/contech/lobbies/2026_api/assets/icone_unmute.png) no-repeat;
    background-size: 2.5rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.playback .player .play-button:hover {
    opacity: 1;
}

.playback .player .play-button.invisible {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* =====[ PLAYBACK - INTERACTIONS ]================================================= */

.playback .interactions {
    flex: 2;
    width: 100%;
    color: var(--jaune);
}

.playback .interactions .nav-tabs {
    display: flex;
    gap: 1px;
    background-color: var(--jaune);
    color: #fff;
    overflow: hidden;
    transform: translateZ(0);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.playback .interactions .nav-tabs button {
    appearance: none;
    flex: 1;
    outline: none;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid var(--jaune);
    color: var(--jaune);
    font-family: inherit;
    font-size: var(--18px);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.playback .interactions .nav-tabs button:first-child {
    border-top-left-radius: inherit;
}

.playback .interactions .nav-tabs button:last-child {
    border-top-right-radius: inherit;
}

.playback .interactions .nav-tabs button:not(.active):hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.playback .interactions .nav-tabs button.active {
    background-color: inherit;
    color: inherit;
    cursor: default;
}

.playback .interactions .nav-item {
    display: flex;
}

.playback .interactions .nav-item.hidden {
    display: none;
}

.playback .interactions .nav-item + hr {
    margin-block: 2rem;
}

/* =====[ PLAYBACK - INTERACTIONS (COMMENT) ]================================================= */

.playback .interactions .nav-item.comment {
    position: relative;
}

.playback .interactions .comment textarea {
    outline: none;
    margin-top: 0.75rem;
    border: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 1rem;
    min-height: 14rem;
    width: 100%;
    background-color: #f7f3ed;
    font-family: inherit;
    font-size: var(--16px);
    resize: none;
}

.playback .interactions .comment .comment-controls {
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0;
    padding: 0.5rem 1rem;
    width: 100%;
    bottom: 0;
}

.playback .interactions .comment .comment-controls p {
    margin: 0;
    padding: 0;
    color: #bbb;
    font-size: var(--13px);
    -webkit-user-select: none;
    user-select: none;
}

.playback .interactions .comment .comment-controls .send-icon {
    background-color: var(--jaune);
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

.playback .interactions .comment .comment-controls .send-icon:hover {
    background-color: #000;
    color: #fff;
}

.playback .interactions .comment .comment-controls .toast-container {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
}

.playback .interactions .comment .comment-controls .toast-notification {
    padding: 1rem;
    color: #fff;
    background-color: #198754;
    text-align: center;
    opacity: 0;
    transform: translateY(-40%);
    transition: all 0.4s ease-in-out;
}

.playback .interactions .comment .comment-controls .toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* =====[ PLAYBACK - INTERACTIONS (DOCUMENTS) ]================================================= */

.playback .interactions .documents {
    margin-top: 0.75rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 1rem;
    min-height: 14rem;
    background-color: #f7f3ed;
}

.playback .interactions .documents a {
    color: #000;
    font-size: var(--17px);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: var(--3pxrem);
    text-decoration-thickness: var(--2pxrem);
}

.playback .interactions .documents a:hover {
    color: #000;
}

.playback .interactions .documents span {
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
    font-size: var(--20px);
}

/* =====[ DETAILS ]================================================= */

.sondage-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 0.75rem 1.75rem;
    font-size: var(--20px);
    width: 100%;
    align-self: center;
    cursor: pointer;
    border: none;
    text-align: center;
    border-radius: 50px;
}

.sondage-btn:hover {
    background-color: var(--jaune);
}

.sondage-btn [icon] {
    margin-right: 1.5rem;
}

.text-nowrap {
    white-space: no-wrap;
}

/* =====[ FOOTER - SUPPORTS + LEGAL ]================================================= */

footer {
    font-family: Arial, Helvetica, sans-serif;
}

footer .supports {
    background-color: #f7f3ed;
}

footer .supports ul {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    padding: 1.25rem 0;
    max-width: 600px;
    text-align: center;
    color: #000;
}

footer .supports li {
    flex: 1;
    padding: 1.563rem 0;
    font-size: var(--13px);
}

footer .supports a {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

footer .supports figure {
    margin: 0;
    width: fit-content;
}

footer .supports .icon {
    font-size: var(--50px);
}

footer .supports figcaption {
    margin-top: 0.5rem;
}

footer .supports .icon,
footer .supports figcaption {
    color: #000;
    transition: all 0.25s ease-in-out;
}

footer .supports a:hover .icon,
footer .supports a:hover figcaption {
    color: var(--jaune);
}

footer .legal {
    padding: 1.5rem 0;
    background-color: #000;
    font-size: var(--13px);
    color: #fff;
    text-align: center;
}

@media screen and (max-width: 1020px) {

    .lobby .container,
    .playback .event-banner + .container {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 780px) {
    header .client-banner .container {
        flex-direction: column;
    }

    header .client-banner .logos img {
        margin-top: 20px;
    }

    header .countdown {
        text-align: center;
    }

    .lobby .container {
        gap: 0;
    }
}

@media screen and (max-width: 575px) {
    header .utility-bar {
        justify-content: center;
    }

    header .utility-bar a {
        font-size: 36px;
    }

    header .utility-bar .btn-programme {
        height: 36px;
    }

    .event-form form h2 {
        font-size: 1.75rem;
    }

    .event-form form h2 strong {
        font-size: 2.75rem;
    }

    .lobby .container {
        gap: 0;
    }
}

@media screen and (max-width: 500px) {

    .playback .event-banner .date,
    .playback .event-banner .time {
        display: block;
    }

    .playback .event-banner .time {
        margin: 0;
    }

    .lobby .container {
        gap: 0;
    }
}

@media screen and (max-width: 460px) {
    main .lobby .container {
        width: 100%;
    }

    .event-overview {
        width: 90%;
    }

    .event-form {
        border-radius: 0;
    }
}

@media screen and (max-width: 390px) {
    header .countdown ul {
        --countdown-gap: 16px;
    }

    header .countdown li:not(:last-child) span::after {
        content: "";
    }
}
