#iconWait {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
}


body {
  background-color: #f0f4f8;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.table-container {
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.status-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #cbd5e0;
}

#classroom .td-1{
  width:2em;
  max-width:2em;
}

#teacherHelp .td-1{
  width:15em;
  max-width:15em;
}

.status-btn:hover:not(.disabled-btn) {
  border-width: 2px !important;
  border-color: black !important;
}
textarea {
  resize: none !important;
  height: 100%;
  width: 100%;
  border: none;
  padding: 8px;
  background-color: transparent;
  border-radius: 4px;
  display: block;
}
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5);
}

div.student-textarea {
  min-height: 3rem;
  max-height: 3rem;
  overflow:hidden;
  transition: max-height 0.2s;
}

div.toggle-size {
  max-height: 100vh;
  /*  animation: back-height 2s forwards;  L'animation qui va ramener la hauteur 
    animation-delay: 0.2s;  Délai avant que l'animation ne commence */
}

/*@keyframes back-height {
  from {
    max-height: 100vh;  L'état de départ de l'animation (hauteur ouverte) 
  }
  to {
    max-height: 3rem;  L'état final de l'animation (hauteur d'origine) 
  }
}*/

.table-title {
  color: white;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  border-radius: 8px 8px 0 0;
}
.grid-custom {
  display: grid;
  grid-template-columns: 50px 1fr 50px 1fr;
  min-height: 70px;
}
.img-container img {
  /* état initial */
  transform: scale(1);
}
.img-container:hover img {
  animation: zoomPulse 0.5s ease-in-out 1;
}


@keyframes zoomPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(3);
  }
  90% {
    transform: scale(3);
  }
  100% {
    transform: scale(1);
  }
}
.header-row {
  min-height: auto !important;
  height: auto !important;
}
.empty-row {
  background-color: #d1d5db;
}
.disabled-btn {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}
.grayed-textarea {
  background-color: transparent;
  color: #6b7280;
}
.readonly-textarea {
  background-color: #f3f4f6;
  cursor: not-allowed !important;
}

.francais-theme {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.mathematiques-theme {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}
.sciences-theme {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}
.sciences-humaines-theme {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.technologie-theme {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.status-header {
  font-size: 0.8rem;
}
.francais-teacher-bg {
  background-color: #bfdbfe;
}
.francais-student-bg {
  background-color: #dbeafe;
}
.math-teacher-bg {
  background-color: #fecaca;
}
.math-student-bg {
  background-color: #fee2e2;
}
.sciences-teacher-bg {
  background-color: #a7f3d0;
}
.sciences-student-bg {
  background-color: #d1fae5;
}
.sh-teacher-bg {
  background-color: #fcd34d;
}
.sh-student-bg {
  background-color: #fef3c7;
}
.tech-teacher-bg {
  background-color: #ddd6fe;
}
.tech-student-bg {
  background-color: #ede9fe;
}
.text-cell {
  align-items: center;
  height: 100%;
}

.communication-container {
  background: linear-gradient(to right bottom, #6366f1, #8b5cf6);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.communication-inner {
  background-color: white;
  border-radius: 14px;
  overflow: hidden;
}
.communication-header {
  background-color: #4f46e5;
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 12px 12px 0 0;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.communication-body {
  padding: 20px;
}
.communication-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.communication-col {
  background-color: #f5f7ff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}
.communication-title {
  align-items:center;
  font-weight: 600;
  margin-bottom: 10px;
  color: #4338ca;
  font-size: 1.1rem;
  text-align: center;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 8px;
}
.communication-textarea {
  background-color: white;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  min-height: 140px;
  padding: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.h-140 {
  height: 140px;
}

div.teacher-comm {
  overflow:hidden;
  transition: max-height 0.2s;
}

.editable-name {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.editable-name:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.name-input {
  background: white;
  color: #1f2937;
  border: 2px solid #3b82f6;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: inherit;
  font-weight: inherit;
}

#classroom .td-1{
  width:2em;
  max-width:2em;
}

.student-checked {
  background-color: black !important;
}

.element-already-set {
  background-color: #c5cae9 !important;
}

.new-class-option {
  font-style: italic;
  font-weight: bold;
  color:#ffc107 !important;
}

h4.modal-title {
  font-weight:bold;
  color:white;
}

*, ::before, ::after{
  --tw-border-spacing-x:0;
  --tw-border-spacing-y:0;
  --tw-translate-x:0;
  --tw-translate-y:0;
  --tw-rotate:0;
  --tw-skew-x:0;
  --tw-skew-y:0;
  --tw-scale-x:1;
  --tw-scale-y:1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness:proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width:0px;
  --tw-ring-offset-color:#fff;
  --tw-ring-color:rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow:0 0 #0000;
  --tw-ring-shadow:0 0 #0000;
  --tw-shadow:0 0 #0000;
  --tw-shadow-colored:0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}
::backdrop{
  --tw-border-spacing-x:0;
  --tw-border-spacing-y:0;
  --tw-translate-x:0;
  --tw-translate-y:0;
  --tw-rotate:0;
  --tw-skew-x:0;
  --tw-skew-y:0;
  --tw-scale-x:1;
  --tw-scale-y:1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness:proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width:0px;
  --tw-ring-offset-color:#fff;
  --tw-ring-color:rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow:0 0 #0000;
  --tw-ring-shadow:0 0 #0000;
  --tw-shadow:0 0 #0000;
  --tw-shadow-colored:0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}
/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */*,::after,::before{
  box-sizing:border-box;
  border-width:0;
  border-style:solid;
  border-color:#e5e7eb
}
::after,::before{
  --tw-content:''
}
:host,html{
  line-height:1.5;
  -webkit-text-size-adjust:100%;
  -moz-tab-size:4;
  tab-size:4;
  font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings:normal;
  font-variation-settings:normal;
  -webkit-tap-highlight-color:transparent
}
body{
  margin:0;
  line-height:inherit
}
hr{
  height:0;
  color:inherit;
  border-top-width:1px
}
abbr:where([title]){
  -webkit-text-decoration:underline dotted;
  text-decoration:underline dotted
}
a{
  color:inherit;
  text-decoration:inherit
}
b,strong{
  font-weight:bolder
}
code,kbd,pre,samp{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings:normal;
  font-variation-settings:normal;
  font-size:1em
}
small{
  font-size:80%
}
sub,sup{
  font-size:75%;
  line-height:0;
  position:relative;
  vertical-align:baseline
}
sub{
  bottom:-.25em
}
sup{
  top:-.5em
}
table{
  text-indent:0;
  border-color:inherit;
  border-collapse:collapse
}
button,input,optgroup,select,textarea{
  font-family:inherit;
  font-feature-settings:inherit;
  font-variation-settings:inherit;
  font-size:100%;
  font-weight:inherit;
  line-height:inherit;
  letter-spacing:inherit;
  color:inherit;
  margin:0;
  padding:0
}
button,select{
  text-transform:none
}
button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){
  -webkit-appearance:button;
  background-color:transparent;
  background-image:none
}
:-moz-focusring{
  outline:auto
}
:-moz-ui-invalid{
  box-shadow:none
}
progress{
  vertical-align:baseline
}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{
  height:auto
}
[type=search]{
  -webkit-appearance:textfield;
  outline-offset:-2px
}
::-webkit-search-decoration{
  -webkit-appearance:none
}
::-webkit-file-upload-button{
  -webkit-appearance:button;
  font:inherit
}
summary{
  display:list-item
}
blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{
  margin:0
}
fieldset{
  margin:0;
  padding:0
}
legend{
  padding:0
}
menu,ol,ul{
  list-style:none;
  margin:0;
  padding:0
}
dialog{
  padding:0
}
textarea{
  resize:vertical
}
input::placeholder,textarea::placeholder{
  opacity:1;
  color:#9ca3af
}
[role=button],button{
  cursor:pointer
}
:disabled{
  cursor:default
}
audio,canvas,embed,iframe,img,object,svg,video{
  display:block;
  vertical-align:middle
}
img,video{
  max-width:100%;
  height:auto
}
[hidden]:where(:not([hidden=until-found])){
  display:none
}
.fixed{
  position:fixed
}
.right-4{
  right:1rem
}
.top-4{
  top:1rem
}
.z-50{
  z-index:50
}
.col-span-2{
  grid-column:span 2 / span 2
}
.mx-auto{
  margin-left:auto;
  margin-right:auto
}
.mb-2{
  margin-bottom:0.5rem
}
.mb-3{
  margin-bottom:0.75rem
}
.mb-8{
  margin-bottom:2rem
}
.mt-6{
  margin-top:1.5rem
}
.block{
  display:block
}
.flex{
  display:flex
}
.grid{
  display:grid
}
.h-full{
  height:100%
}
.min-h-\[70px\]{
  min-height:70px
}
.w-full{
  width:100%
}
.min-w-\[200px\]{
  min-width:200px
}
.max-w-6xl{
  max-width:72rem
}
.grid-cols-1{
  grid-template-columns:repeat(1, minmax(0, 1fr))
}
.items-center{
  align-items:center
}
.justify-center{
  justify-content:center
}
.gap-6{
  gap:1.5rem
}
.space-y-2 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse:0;
  margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))
}
.divide-y > :not([hidden]) ~ :not([hidden]){
  --tw-divide-y-reverse:0;
  border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width:calc(1px * var(--tw-divide-y-reverse))
}
.divide-gray-200 > :not([hidden]) ~ :not([hidden]){
  --tw-divide-opacity:1;
  border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))
}
.rounded-full{
  border-radius:9999px
}
.rounded-lg{
  border-radius:0.5rem
}
.rounded-md{
  border-radius:0.375rem
}
.border{
  border-width:1px
}
.border-b{
  border-bottom-width:1px
}
.border-r{
  border-right-width:1px
}
.border-gray-200{
  --tw-border-opacity:1;
  border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))
}
.border-gray-300{
  --tw-border-opacity:1;
  border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))
}
.bg-blue-100{
  --tw-bg-opacity:1;
  background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))
}
.bg-blue-600{
  --tw-bg-opacity:1;
  background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))
}
.bg-green-600{
  --tw-bg-opacity:1;
  background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))
}
.bg-white{
  --tw-bg-opacity:1;
  background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))
}
.p-2{
  padding:0.5rem
}
.p-4{
  padding:1rem
}
.p-6{
  padding:1.5rem
}
.p-3{
  padding:0.75rem
}
.px-2{
  padding-left:0.5rem;
  padding-right:0.5rem
}
.px-3{
  padding-left:0.75rem;
  padding-right:0.75rem
}
.py-1{
  padding-top:0.25rem;
  padding-bottom:0.25rem
}
.py-2{
  padding-top:0.5rem;
  padding-bottom:0.5rem
}
.text-center{
  text-align:center
}
.text-3xl{
  font-size:1.875rem;
  line-height:2.25rem
}
.text-sm{
  font-size:0.875rem;
  line-height:1.25rem
}
.font-bold{
  font-weight:700
}
.font-medium{
  font-weight:500
}
.font-semibold{
  font-weight:600
}
.text-blue-800{
  --tw-text-opacity:1;
  color:rgb(30 64 175 / var(--tw-text-opacity, 1))
}
.text-gray-700{
  --tw-text-opacity:1;
  color:rgb(55 65 81 / var(--tw-text-opacity, 1))
}
.text-white{
  --tw-text-opacity:1;
  color:rgb(255 255 255 / var(--tw-text-opacity, 1))
}
.opacity-80{
  opacity:0.8
}
.shadow-lg{
  --tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.transition-colors{
  transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
  transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration:150ms
}
.hover\:bg-blue-700:hover{
  --tw-bg-opacity:1;
  background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))
}
.hover\:bg-green-700:hover{
  --tw-bg-opacity:1;
  background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))
}
@media (min-width: 768px){
  .md\:mx-auto{
    margin-left:auto;
    margin-right:auto
  }
  .md\:w-1\/2{
    width:50%
  }
  .md\:grid-cols-2{
    grid-template-columns:repeat(2, minmax(0, 1fr))
  }
}

:root {
    --factor: 1.5; /* Facteur de zoom (1.5x) */
}

.zoom-box {
    width: 150px;
    height: 100px;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* 1. Zoom du contenant + Superposition */
.zoom-box:hover {
    transform: scale(var(--factor)); /* Agrandit l'élément */
    z-index: 10; /* Le fait passer au-dessus des autres */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Optionnel : accentue l'effet de superposition */
}

/* 2. Contre-zoom du contenu */
.zoom-box .content {
    transition: transform 0.3s ease;
    /* On divise 1 par le facteur pour annuler visuellement le zoom */
    transform: scale(1); 
}

.zoom-box:hover .content {
    /* Si le parent est à 1.5, l'enfant doit passer à ~0.666 */
    transform: scale(calc(1 / var(--factor)));
}