/* Couleurs IFB
IF			#3558A2
Tournesol	#FFE552
Menthe		#21AB88
Écume		#869ECE
Tuile		#FF9575
Cumulus		#7AB1E8
Bourgeon	#99C221
Macaron		#FFB7AE
*/

@font-face { font-family: 'Marianne-Bold';				src: url('/fonts/Marianne-Bold.woff2'); }
@font-face { font-family: 'Marianne-Bold_Italic';		src: url('/fonts/Marianne-Bold_Italic.woff2'); }
@font-face { font-family: 'Marianne-ExtraBold';			src: url('/fonts/Marianne-ExtraBold.woff2'); }
@font-face { font-family: 'Marianne-ExtraBold_Italic';	src: url('/fonts/Marianne-ExtraBold_Italic.woff2'); }
@font-face { font-family: 'Marianne-Light';				src: url('/fonts/Marianne-Light.woff2'); }
@font-face { font-family: 'Marianne-Light_Italic';		src: url('/fonts/Marianne-Light_Italic.woff2'); }
@font-face { font-family: 'Marianne-Medium';			src: url('/fonts/Marianne-Medium.woff2'); }
@font-face { font-family: 'Marianne-Medium_Italic';		src: url('/fonts/Marianne-Medium_Italic.woff2'); }
@font-face { font-family: 'Marianne-Regular';			src: url('/fonts/Marianne-Regular.woff2'); }
@font-face { font-family: 'Marianne-Regular_Italic';	src: url('/fonts/Marianne-Regular_Italic.woff2'); }
@font-face { font-family: 'Marianne-Thin';				src: url('/fonts/Marianne-Thin.woff2'); }
@font-face { font-family: 'Marianne-Thin_Italic';		src: url('/fonts/Marianne-Thin_Italic.woff2'); }
@font-face { font-family: 'digital-7m';					src: url('/fonts/digital-7m.ttf'); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%; /* Asegura que el body ocupe todo el alto */
}

.container {
    display: grid;
    grid-template-rows: 20vh 1fr 5vh; /* Fila1:60px, Fila2:resto, Fila3:40px */
    height: 100vh; /* Ocupa todo el viewport */
    width: 100%;
}

.row {
    display: grid;
    justify-content: center;
    align-items: center;
    /* Colores solo para visualización */
	background-color: #ffffff;
	/*border: 1px solid black;*/
}




.container-Main {
    display: grid;
    grid-template-rows: 65vh 10vh; /* Fila1:60px, Fila2:resto */
    height: 75vh; /* Ocupa todo el viewport */
    width: 100%;
	vertical-align: top;
}
.row-Main {
    display: grid;
    justify-content: center;
    align-items: center;
	background-color: #ffffff;
	grid-template-columns: 50vw 50vw;
}
.row-Main-Center {
    display: grid;
    justify-content: center;
    align-items: center;
	background-color: #ffffff;
}
.col-Main {
    width: 100%;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: flex-start;  
    justify-content: center;
    padding-top: 2vh;
}

#Gauche {
	padding: 5vh;
	font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : center;
    display:inline;
    vertical-align: middle;
}

#Gauche H1 {
    font-family : Marianne-Bold;
    font-size : 4vh;
    text-align : center;
	color: #3558A2;
}

#Gauche #LaHoraInicio p {
    font-family : Marianne-Bold;
    font-size : 5vh;
    text-align : center;
	color: #99C221;
}

#Gauche #LaHoraFin p {
    font-family : Marianne-Bold;
    font-size : 5vh;
    text-align : center;
	color: #FF9575;
}


#Droite {
	padding: 5vh;
    font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : center;
    display:inline;
    vertical-align: middle;
}

#Droite H1 {
    font-family : Marianne-Bold;
    font-size : 4vh;
    text-align : center;
	color: #3558A2;
}

#Droite p {
    font-family : Marianne-Bold;
    font-size : 5vh;
    text-align : center;
	color: #FF9575;
}


.row-3 {
    display: grid;
    justify-content: center;
    align-items: center;
    /* Colores solo para visualización */
	background-color: #ffffff;
	/*border: 1px solid black;*/
	grid-template-columns: 20vw 1fr 20vw;
}

  .col {
    width: 100%;
    background-color: #ffffff;
  /*  border: 1px solid black;*/
    text-align: center;
	overflow: hidden;
  }





.button {
  display: inline-block;
  border-radius: 4px;
  background-color: #3558A2;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 2vh;
  padding: 1vh;
  padding-right: 25px;
  padding-left: 25px;
  width: 50vw;
  cursor: pointer;
  border-radius: 8px;
}

.button:disabled {
  border: none;
  background-color: #cccccc;
  color: #666666;
}

.button span {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

#Logo {
    display: table;
}
#Logo img {
    display: block;
	height: auto;
    width: 90%;
	padding-left:10%;
}

#serverTime {
    font-family : digital-7m;
    font-size : 15vh;
    text-align : center;
	color: #3558A2;
}

#Niveau {
    display: grid;
    font-family : Marianne-Bold;
    font-size : 10vh;
    text-align : center;
	color: #3558A2;
}

#Niveau span {
    font-size : 4vh;
	color: #888890;
	position: relative;
	top: -20px;
}

#Status {
height: 6vh; 
max-height: 6vh; 
background-color: rgba(255,120,0,0.1);
}

#connectionStatusL {
    font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : left;
	padding-left: 2vw;
	color: #888890;
}

#connectionStatusM {
    font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : center;
	color: #888890;
}

#connectionStatusR {
    font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : right;
	padding-right: 2vw;
	color: #FFB7AE;
/*	color: #99C221;*/
}



#ChoixSalleconnectionStatusL {
    font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : left;
	padding-left: 2vw;
	color: #888890;
}

#ChoixSalleconnectionStatusM {
    font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : center;
	color: #888890;
}

#ChoixSalleconnectionStatusR {
    font-family : Marianne-Bold;
    font-size : 1.5vh;
    text-align : right;
	padding-right: 2vw;
	color: #FFB7AE;
/*	color: #99C221;*/
}



.progress-bar__wrapper {
  position: relative;
}
.progress-bar__value {
	font-family : Marianne-Bold;
	color: #FFFFFF;
    font-size : 1vw;
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -67%);
}
progress {
  width: 40%;
  height: 50px;
  border-radius: 50px;
  background-color: #FF9575;
  transition: width 300ms ease;
}
progress[value]::-webkit-progress-bar {
  width: 100%;
  height: 50px;
  border-radius: 50px;
  background-color: #FF9575;
  transition: width 300ms ease;
}

progress[value]::-webkit-progress-value {
  width: 0;
  border-radius: 50px;
  background-color: #99C221;
  transition: width 300ms ease;
}

progress[value]::-moz-progress-bar {
  width: 0;
  border-radius: 50px;
  background-color: #99C221;
  transition: width 300ms ease;
}


/* ── Overlay de confirmación de reset ───────────────────────────────────── */
#ResetOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#ResetOverlay.visible {
    opacity: 1;
    pointer-events: auto;
}
#ResetDialog {
    background: #fff;
    border-radius: 12px;
    padding: 3vh 4vw;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
#ResetDialog p {
    font-family: Marianne-Bold;
    font-size: 2.5vh;
    color: #3558A2;
    margin-bottom: 2vh;
}
.reset-btns {
    display: flex;
    gap: 1.5vw;
    justify-content: center;
}
.reset-btns button {
    font-family: Marianne-Bold;
    font-size: 1.8vh;
    padding: 0.8vh 2.5vw;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.reset-btns button:hover { opacity: 0.85; }
#ResetConfirmer { background: #FF9575; color: #fff; }
#ResetAnnuler   { background: #e2e8f0; color: #334155; }

/* ── Footer Visualisation — 4 columnas ──────────────────────────────────── */
#vis-footer {
    grid-template-columns: 20vw auto 1fr 20vw;
}

/* ── Botón de ayuda ──────────────────────────────────────────────────────── */
#BoutonAide {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.35;
    font-size: 1.8vh;
    padding: 0.3vh 0.8vw;
    color: inherit;
    transition: opacity 0.2s, color 0.2s;
}
#BoutonAide:hover:not(:disabled) {
    opacity: 0.9;
    color: #FF9575;
}
#BoutonAide:disabled {
    opacity: 0.15;
    cursor: not-allowed;
}

/* ── Selección de salle — tarjetas ───────────────────────────────────────── */
.salles-label {
    font-family: Marianne-Bold;
    font-size: 1.6vh;
    color: #888890;
    text-align: center;
    margin-bottom: 1.5vh;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.salles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 0 10px 10px;
    overflow-y: auto;
    max-height: 55vh;
}
.salle-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    user-select: none;
}
.salle-card:hover {
    border-color: #3558A2;
    background: #f5f7ff;
    transform: translateY(-1px);
}
.salle-card.selected {
    border-color: #3558A2;
    background: #eef1fb;
    box-shadow: 0 0 0 3px rgba(53,88,162,0.18);
}
.salle-card--occupee {
    border-color: #FF9575;
    background: #fff8f5;
}
.salle-card--occupee .salle-card__name {
    color: #c0623a;
}
.salle-card__name {
    font-family: Marianne-Bold;
    font-size: 1.1rem;
    color: #3558A2;
    margin-bottom: 6px;
    word-break: break-word;
}
.salle-card__badges {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.salle-card__badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-family: Marianne-Bold;
    font-size: 0.75rem;
}
.salle-card__time {
    font-family: Marianne-Regular;
    font-size: 0.63rem;
    color: #aaa;
}

.custom-select {
  min-width: 350px;
  position: relative;
}

.custom-select select {
  appearance: none;
  width: 100%;
  font-size: 1.15rem;
  padding: 0.675em 6em 0.675em 1em;
  background-color: #fff;
  border: 1px solid #caced1;
  border-radius: 0.25rem;
  color: #000;
  cursor: pointer;

}

.custom-select::before,
.custom-select::after {
  --size: 0.3rem;
  position: absolute;
  content: "";
  right: 1rem;
  pointer-events: none;
}

.custom-select::before {
  border-left: var(--size) solid transparent;
  border-right: var(--size) solid transparent;
  border-bottom: var(--size) solid black;
  top: 50%;
}

.custom-select::after {
  border-left: var(--size) solid transparent;
  border-right: var(--size) solid transparent;
  border-top: var(--size) solid black;
  top: 75%;
}