/*

██╗  ██╗██╗███╗   ██╗ ██████╗ ██╗  ██╗██╗   ███████╗██████╗ 
██║ ██╔╝██║████╗  ██║██╔═══██╗██║ ██╔╝██║   ██╔════╝██╔══██╗
█████╔╝ ██║██╔██╗ ██║██║   ██║█████╔╝ ██║   █████╗  ██████╔╝
██╔═██╗ ██║██║╚██╗██║██║   ██║██╔═██╗ ██║   ██╔══╝  ██╔══██╗
██║  ██╗██║██║ ╚████║╚██████╔╝██║  ██╗██║██╗██║     ██║  ██║
╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═╝  ╚═╝╚═╝╚═╝╚═╝     ╚═╝  ╚═╝
                                                                                                  
*/

@charset "UTF-8";
/* CSS Document */

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: normal;
    font-weight: 300;
    src: url(../fonts/Marianne-Light.woff2) format("woff2"),
        url(../fonts/Marianne-Light.woff) format("woff")
}

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: italic;
    font-weight: 300;
    src: url(../fonts/Marianne-Light_Italic.woff2) format("woff2"),
        url(../fonts/Marianne-Light_Italic.woff) format("woff")
}

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Marianne-Regular.woff2) format("woff2"),
        url(../fonts/Marianne-Regular.woff) format("woff")
}

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: italic;
    font-weight: 400;
    src: url(../fonts/Marianne-Regular_Italic.woff2) format("woff2"),
        url(../fonts/Marianne-Regular_Italic.woff) format("woff")
}

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/Marianne-Medium.woff2) format("woff2"),
        url(../fonts/Marianne-Medium.woff) format("woff")
}

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: italic;
    font-weight: 500;
    src: url(../fonts/Marianne-Medium_Italic.woff2) format("woff2"),
        url(../fonts/Marianne-Medium_Italic.woff) format("woff")
}

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/Marianne-Bold.woff2) format("woff2"),
        url(../fonts/Marianne-Bold.woff) format("woff")
}

@font-face {
    font-display: swap;
    font-family: Marianne;
    font-style: italic;
    font-weight: 700;
    src: url(../fonts/Marianne-Bold_Italic.woff2) format("woff2"),
        url(../fonts/Marianne-Bold_Italic.woff) format("woff")
}

/* patches fonts */
@font-face {
    font-family: Nasalization;
    src: url("../fonts/patches/nasalization-rg-webfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Madenz;
    src: url("../fonts/patches/madenz2-webfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: CNESTitleOne;
    src: url("../fonts/patches/CNESTitleOne-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Audiowide;
    src: url("../fonts/patches/audiowide-regular-webfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: ZenDots;
    src: url("../fonts/patches/zendots-regular-webfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    font-family: Marianne,arial,sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility
}

nav .nav-link{
    font-size: .875rem;
    line-height: 1.5rem;
    font-weight: 500;
    padding: 5px 12px;
}

/* Variables pour le thème clair */
:root {
  --color-body-light: #161616;
  --color-logo-cnes-light: #004f91;
  --color-nav-link-light: #000b82;
  --color-nav-link-hover-light: #f6f6f6;
  --color-logo-republiquefrancaise-st4-light: #000000;
  --form-bg-light:#fafafa;
    
  --color-logo-republiquefrancaise-st0: #000091;
  --color-logo-republiquefrancaise-st1: gray;
  --color-logo-republiquefrancaise-st2: #e1000f;
  --color-logo-republiquefrancaise-st3: #fff;
    
  --primary-color-light:#000091;  
  --primary-color-hover-light:#3513ff;  
}

/* Variables pour le thème sombre */
:root {
  --color-body-dark: #ffffff;
  --color-logo-cnes-dark: #ffffff;
  --color-nav-link-dark: #8585f6;
  --color-nav-link-hover-dark: #3f3f3f;    
  --color-logo-republiquefrancaise-st4-dark: #ffffff;   
  --form-bg-dark:#383838;   
  --primary-color-dark:#8585f6;     
  --primary-color-hover-dark:#b1b1f9;    
}

/* Thème sombre par défaut */
:root {
  --bs-body-color: var(--color-body-dark);
  --logo-cnes: var(--color-logo-cnes-dark);
  --nav-link-color: var(--color-nav-link-dark);
  --nav-link-color-hover: var(--color-nav-link-hover-dark);
  --logo-republiquefrancaise-st4: var(--color-logo-republiquefrancaise-st4-dark);
  --form-bg: var(--form-bg-dark);    
    
  --logo-republiquefrancaise-st0: var(--color-logo-republiquefrancaise-st0);
  --logo-republiquefrancaise-st1: var(--color-logo-republiquefrancaise-st1);
  --logo-republiquefrancaise-st2: var(--color-logo-republiquefrancaise-st2);
  --logo-republiquefrancaise-st3: var(--color-logo-republiquefrancaise-st3);
  --primary-color:var(--primary-color-dark); 
  --primary-color-hover:var(--primary-color-hover-dark);    
}

/* Utilisation des variables pour le thème clair en fonction de la préférence système */
@media (prefers-color-scheme: light) {
  :root {
    --bs-body-color: var(--color-body-light);
    --logo-cnes: var(--color-logo-cnes-light);
    --nav-link-color: var(--color-nav-link-light);
    --nav-link-color-hover: var(--color-nav-link-hover-light);
    --logo-republiquefrancaise-st4: var(--color-logo-republiquefrancaise-st4-dark);
    --form-bg: var(--form-bg-light);
    --primary-color:var(--primary-color-light); 
    --primary-color-hover:var(--primary-color-hover-light);      
  }
}

/* Forçage des thèmes clair ou sombre */
[data-bs-theme="light"] {
  --bs-body-color: var(--color-body-light);
  --logo-cnes: var(--color-logo-cnes-light);
  --nav-link-color: var(--color-nav-link-light);
  --nav-link-color-hover: var(--color-nav-link-hover-light);
  --logo-republiquefrancaise-st4: var(--color-logo-republiquefrancaise-st4-light);
  --form-bg: var(--form-bg-light); 
  --primary-color:var(--primary-color-light);
  --primary-color-hover:var(--primary-color-hover-light);    
}

[data-bs-theme="dark"] {
  --bs-body-color: var(--color-body-dark);
  --logo-cnes: var(--color-logo-cnes-dark);
  --nav-link-color: var(--color-nav-link-dark);
  --nav-link-color-hover: var(--color-nav-link-hover-dark);   
  --logo-republiquefrancaise-st4: var(--color-logo-republiquefrancaise-st4-dark);
  --form-bg: var(--form-bg-dark);  
  --primary-color:var(--primary-color-dark);
  --primary-color-hover:var(--primary-color-hover-dark);    
}

/* Utilisation des variables */
#logo_republiquefrancaise .st0 {
  fill: var(--logo-republiquefrancaise-st0);
}
#logo_republiquefrancaise .st1 {
  fill: var(--logo-republiquefrancaise-st1);
}
#logo_republiquefrancaise .st2 {
  fill: var(--logo-republiquefrancaise-st2);
}
#logo_republiquefrancaise .st3 {
  fill: var(--logo-republiquefrancaise-st3);
}
#logo_republiquefrancaise .st4 {
  fill: var(--logo-republiquefrancaise-st4);
}
#logo_cnes .logo-cnes {
  fill: var(--logo-cnes);
}
.icon_theme_fill{
    fill: var(--nav-link-color);
}

.form-bg{
    background-color: var(--form-bg);
}

nav .nav-link {
  color: var(--nav-link-color)!important;
}

nav .nav-link:hover {
  background-color: var(--nav-link-color-hover);
}

body {
  color: var(--bs-body-color);
}

.dropdown-menu.show {
    border-radius: 0;
    width: -webkit-fill-available;
}

.btn-primary{
    background-color: var(--primary-color);
    border: none;
    border-radius: 0;
}

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

footer{
    border-top: 2px solid var(--primary-color);
}

footer p.txt{
font-size: .875rem;
    line-height: 1.5rem;    
    color: var(--bs-dark-text-emphasis);
}

.fr-footer__bottom-items{
    list-style: none;
}
.fr-footer__bottom-item{
    line-height: 1.25rem;
}
.fr-footer__bottom-item::after{
box-shadow: inset 0 0 0 1px var(--bs-secondary-bg);
    content: "";
    display: inline-block;
    height: 1rem;
    margin-bottom: .625rem;
    margin-right: .25rem;
    margin-top: .625rem;
    position: relative;
    vertical-align: middle;
    width: 1px;
}
hr{
    opacity: 0.18;
}
.fr-footer__bottom-item a,
p.btmtxt{
    font-size: .75rem;
    line-height: 1.25rem;
    color: var(--bs-dark-text-emphasis);
    text-decoration: none;
}
p.btmtxt a{
    text-decoration: underline;
    color: var(--bs-dark-text-emphasis);
}
.fr-footer__bottom-item a:hover,
p.btmtxt a:hover{
    text-decoration: underline;
}

.icon_external_link{
    fill:var(--bs-dark-text-emphasis);
}

.headprojet{
    font-weight: 500;
}
.titleprojet{
    font-weight: 700;
}
.minheightcinqcent{
    min-height:550px;
}

/* epreuve 2 */


.rolecard.instructeur{
    background-image: url("../roles/INSTRUCTEUR.png");
    background-repeat: no-repeat;
    background-position: center top;
}
.rolecard.xpertspace{
    background-image: url("../roles/XPERT.png");
    background-repeat: no-repeat;
    background-position: center top;
}
.rolecard.medecin{
    background-image: url("../roles/MEDECIN.png");
    background-repeat: no-repeat;
    background-position: center top;
}
.rolecard.ingenieur{
    background-image: url("../roles/INGENIEUR.png");
    background-repeat: no-repeat;
    background-position: center top;
}

.rolecard {
    width: 150px;
    height: 195px;
    border-radius: 20px;
    overflow: hidden;
    padding: 0px;
    background-size: contain;
}
.rolecard h3{
    color: white;
    font-weight: bold;
    text-shadow: #000 1px 0 10px;    
}


.role-avatar{
    left: 0;
    right: 0;
    bottom: -125px;
}
.role-avatar img{
    border-radius: 80px;
}


/* exercice 1 */
.ep2_ex1_questions{
	min-height: 300px;
}

.bt_hint {
    display: flex;
	/*width: 80px;
    height: 80px;*/
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
	font-size: 13px;
	background-color: #3458a2;
	color: white;
	padding: 10px 20px;
	box-shadow: 0px 2px 5px rgba(107,107,107,0.21);
}

.bt_hint:hover{
	background-color: #3D68C0;
	box-shadow: 0px 2px 5px rgba(107,107,107,0.51);
}

.bt_hint img:hover {
    /*box-shadow: 0px 2px 5px rgba(107,107,107,0.51);*/
	opacity: .75;
}

.hints_wrapper{
    width: 100%;
}
.q-tips{
    display: flex;
    flex-wrap: wrap;
    width: 125px;
    gap: 1px;
}
.q-tip{
    height: 50px;
	width: 50px;
	border-radius: 50px;
    background: #FFC98F;
    color: white;
    font-weight: 600;
}

.q-tip.done{
    background: #ff9d33;
}
/* exercice 2 */
#game-board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 400px;
    margin: 50px auto;
    gap: 10px;
}
.block {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 2px solid #999;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
	font-size: 9px;
}
.block.filled {
    background-color: #f0f0f0;
}
#piece-pool {
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    background-color: aliceblue;
}
.piece {
    width: 50px;
    height: 50px;
    background-color: #ffd700;
    border: 2px solid #999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
	font-size: 11px;
	text-align: center;
	line-height: 12px;
}
.piece.dragging {
    opacity: 0.5;
}
.block[data-piece] {
    cursor: grab;
}

/* jeu du sac ep2 ex 3 */

.sac {
  padding: 20px;
  background-color: #f2f2f2;
}
.pool {
  padding: 20px;
  height: 100%; /* Prend toute la hauteur disponible */
  display: flex;
  flex-direction: column; /* Permet d'aligner les objets verticalement */
  gap: 10px; /* Espacement entre les objets */
}
.pool.dragover {
  background-color: #b2ebf2; /* Change légèrement le fond lorsqu'un objet est survolé */
}
#objects {
  min-height: 200px;
  background-color: #e0f7fa; /* Fond de couleur bleu clair */
    display: flex;
    flex-wrap: wrap;
}
.object {
    margin: 0;
    padding: 10px;
    background-color: #ddd;
    cursor: grab;
    text-align: center;
    width: 60px;
    height: 60px;
    margin-right: 20px;
    margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  grid-template-rows: repeat(2, 60px);
  gap: 10px;
}
.case {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
.grid .case .object{
    margin: 0px;
}
.case.dragover {
  background-color: #cce7ff;
}

/* patch creation */

            
#screen_patch_one #imageContainer, #screen_patch_one #foregroundContainer, #screen_patch_one #shapeContainer {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#screen_patch_one img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

#screen_patch_one img:hover {
    border-color: blue;
}

#screen_patch_one canvas {
    display: block;
    margin: 0 auto 0 auto;
}  

.form-label {
  line-height: normal!important;
}

div.consignes p{
	margin-bottom: 0;
	font-size: 14px;
}

#chat-container{
    /*position: absolute;*/
    padding: 0px;
    background-color: rgba(22,142,248,1.00);
    /*box-shadow: 2px 2px 8px rgba(103,103,103,0.75);*/
    max-width: 512px;
    right: 50px;
    top: 50px;
    font-size: 13px;
    line-height: normal;
}
#chat-container h3{
    padding: 8px 10px;
    font-size: 18px;
    margin: 0;
    color: white;
    cursor: move!important;
}
#chat-container .chat-wrapper{
    padding: 15px 15px;
    background-color: rgba(224,228,232,1.00);
}
.chatcol{
    background-color: rgba(224,228,232,1.00);
}
#chat-container #chat-messages{
    margin: 15px 0;
    background-color: #eee;
    overflow: auto;
    max-height: 360px;
}
#chat-container #chat-messages div{
    margin-bottom: 1px;
    padding: 5px;
    border-bottom: 1px solid rgba(149,149,149,1.00);
} 
.crosshairpointer{
    cursor: pointer;
}
html, body, main{
    height: 100vh;
}
.fullheight{
    height: 100%;
}
#loader{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background-color: white;
}
.timer-wrap {
  position: absolute;
  left: 5px;
  top: 5px;
    width: 85px;
    text-align: center;
    background-color: white;
	margin: 0;
}
.timer-wrap .timer{
  padding: 5px;
	margin: 0;
    text-align: center;
}
.timer-wrap .timer.alert{
    animation: blinker 1s linear infinite;
    background-color: red;
    color: white;
}
@keyframes blinker {
  50% {
    background-color: #FFA200;
  }
}
.revoir-consignes-wrap{
    right:5px;
    top: 5px;
}
#btn_signal{
	border: none;
	border-radius: 50px;
	background-color: transparent;
}

.pacthImageForVote{
	border:2px solid transparent;
}
.pacthImageForVote:hover{
	border:2px solid blue;
}
.pacthImageForVote.selected{
	border:2px solid red;
}

.note-slider-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0px auto;
    text-align: center;
}

.note-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    position: relative;
}

.note-labels span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.note-labels span.active-note {
    background-color: #007bff;
    color: white;
}

.game_disabled{
	background-color: rgba(136,0,0,0.5);
	color: white;
	width: 100%;
	/*height: 100vh;*/
	z-index: 9;
	line-height: normal;
	white-space: pre-line;
}

svg.gauge text {
    user-select: none;
    -webkit-user-select: none; /* Pour Safari */
    -moz-user-select: none;    /* Pour Firefox */
    -ms-user-select: none;     /* Pour les anciennes versions d'Edge */
	font-size: 12px;
	font-weight: bolder;
	pointer-events: none;
}
.screen{
	padding-top: 10px;
}
svg .cursor-pointer{
    cursor: pointer!important;
}
svg .green{
     fill: #198754;
}
svg .green:hover{
     fill:#1D9D61;
}
svg .orange{
     fill: #ffc107;
}
svg .orange:hover{
     fill:#FFC92A;
}
svg .red{
     fill: #dc3545;
}
svg .red:hover{
     fill:#E04D5B;
}
.fs-10{
    font-size: 10px!important;
    line-height: 13px;
}
.gauge-wrapper{
    width: 33%;

}
.gauge-wrapper p.fs-10{
    margin-bottom: 0px;
    min-height: 95px;
}
.fakelink{
    color:#2F79FF;
    cursor: pointer;
    text-decoration: underline;
}
li.browsertab .nav-link{
    background-color: #EFEFEF;
    color: black;
    border: 1px solid #929292;
    cursor: pointer!important;
}
li.browsertab .nav-link:hover{
    border: 1px solid #929292;
    background-color: #F3F3F3;
}
li.browsertab .nav-link.active{
    background-color: white;
}
li.browsertab .nav-link.active:hover{
    background-color: white;
    border-color: var(--bs-nav-tabs-link-active-border-color);
}


#newMessageIndicator {
    background-color: rgba(251, 52, 52, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: none; /* Caché par défaut */
}

@keyframes flash {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.new-message-flash {
    animation: flash 0.8s ease-in-out 2; /* Clignote 2 fois */
}

