/* =========================================================
   GLOBAL — arrière-plan + reset
========================================================= */
html {
    height: auto;
    overflow-y: auto;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;

    min-height: 100vh;
    overflow: visible;

    background-color: rgb(128, 0, 34);
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    min-height: 100%;
    background-color: rgb(128, 0, 34);
    z-index: 0;
}

/* =========================================================
   TOP WRAPPER — Conteneur fixe regroupant top-bar + sub-bar
========================================================= */

#top-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* =========================================================
   TOP BAR — Phase / Équipe / Rôle / Heure début / Score
========================================================= */

#top-bar {
    width: 100%;
    background: #eef1f5;

    border-bottom: 1px solid #ccc;

    padding: 10px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

#top-bar .inner {
    width: 90%;
    gap: 40px;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

#top-bar select,
#top-bar input {
    padding: 6px 10px;
    font-size: 14px;

    border-radius: 5px;
    border: 1px solid #aaa;
    background: white;
}

#top-bar input {
    width: 100px;
}

.right-group {
    font-size: 16px;
    font-weight: bold;
    margin-left: 40px;
}


/* Bouton démarrer */
#start-btn {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;
    font-size: 15px;
    border-radius: 6px;
    margin: 0;
}

/* =========================================================
   SUB BAR — Heure actuelle + Temps d’épreuve
========================================================= */

#sub-bar {
    width: 100%;
    background: #f4f6f9;
    border-bottom: 1px solid #ccc;
    padding: 6px 20px;
    font-size: 14px;

    display: flex;
    align-items: center;

    justify-content: center;
    gap: 16px;
}

/* =========================================================
   CONTAINER CENTRAL (cadre blanc)
========================================================= */

.container {
    position: relative;
    z-index: 2;

    background-color: rgba(255, 255, 255, 0.9);
    width: 80%;
    max-width: 1600px;
    margin: 150px auto 20px;
    margin-top: 110px;

    padding: 40px 60px;
    text-align: center;

    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* =========================================================
   BOUTONS
========================================================= */

button {
    margin-top: 15px;
    padding: 12px 25px;

    background-color: #800022;
    color: white;

    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4bb822;
}

/* =========================================================
   UTILS
========================================================= */

.hidden {
    display: none;
}

.stimulus-box {
    max-width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f8f8;
}

.stimulus-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
}

 .stimulus-content {
     margin: 10px 0;
     padding: 10px;
     font-size: 1rem;
     line-height: 1.4;
     white-space: pre-wrap; /* Important si ton contenu contient des retours à la ligne */
 }

.stimulus-brief {

    margin-top: 18px;
    padding: 14px 16px;

    background: linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%);
    border-left: 6px solid #4A90E2;

    border-radius: 8px;

    color: #1a2f55;

    font-size: 0.95rem;
    line-height: 1.55;

    box-shadow:
            0 2px 6px rgba(0,0,0,0.08),
            inset 0 1px 0 rgba(255,255,255,0.6);

    position: relative;
}

.stimulus-brief::before {

    content: "BRIEF ANIMATEUR";

    position: absolute;
    top: -10px;
    left: 14px;

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.05em;

    padding: 2px 8px;

    background: #4A90E2;
    color: white;

    border-radius: 4px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

img, video {
    max-width: 55%;
}

/* =========================================================
   STAFF
=========================================================
 */

.stimulus-content.staff {
    color: red;
    font-weight: bold;
}

.staff-legend {
    color: red;
    font-weight: bold;
}

/* =========================================================
   COUNTDOWN SLIDER
=========================================================
 */

.progress-wrapper {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #962db3; /* couleur à modifier si tu veux */
    transition: width 0s; /* pas de smoothing CSS → vrai 60fps */
}


/* =========================================================
 MCQ STYLES
========================================================= */

.mcq-option.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/*========================================================
 CHANGE TEAM
=========================================================
 */

.change-team-container {
    border: 1px dashed #aaa;
    padding: 10px;
    background: #f9f9f9;
}

.change-team-line {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.change-team-line input {
    width: 80px;
}

.resource-input {
    width: 60px;
    margin-left: 6px;
    font-weight: bold;
}

#resources-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-center: 10px 0;
}

#toggle-resources-edit {
    margin: 0;
    padding: 2px 6px;
    height: 22px;
    min-width: 22px;
    font-size: 12px;
    line-height: 1;

    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.25);
    background: transparent;
    cursor: pointer;
}

#toggle-resources-edit:hover {
    background: rgba(255,255,255,0.15);
}

/* =========================================================
   FAST FORWARD CONTROLS
========================================================= */

#fast-forward-controls button {
    margin: 0;                 /* annule margin-top global */
    padding: 4px 6px;          /* beaucoup plus petit */
    font-size: 14px;
    line-height: 1;

    height: 28px;
    min-width: 28px;

    border-radius: 4px;
    background-color: #ddd;
    color: #333;

    cursor: pointer;
}

#fast-forward-controls button:hover {
    background-color: #bbb;
}

.ff-counter {
    margin-left: 10px;
    font-weight: bold;
    color: black;
}

.blackout-overlay {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 999999;
    display: none;
    cursor: none;
}

.hidden-by-blackout {
    display: none !important;
}

body.blackout-active {
    overflow: hidden;
    height: 100vh;
}


