:root {
--monjauneorange : #ffc971;
--monbleu: rgb(18, 0, 59); /* Couleur principale */
--monbleuclair : #004B66;
--monbleupastel : #e2f2fd;
--monorange: rgb(255, 183, 59); /* Couleur secondaire */
--monjaunepastel : #fff9c4;
--monorangeclair : #ffc971;
--monvertfonce : #2C4E2B;
--monvert : #7a9e42;
--monvertamande : rgb(232, 245, 233);
--monvertpastel : #d4ffda;
--monrouge : #d14040;
--monrougepastel : #ffebee;
--mongriselephant : #292929;
--mongrissouris : #989898;
--mongrisclair : #f1f1f1;
--monlavande : #474eca;
--monlavandefonce : linear-gradient(135deg, #474eca, #282e91);
--mainfont : "Gill Sans", sans-serif;
--finefont : 'Arial Narrow', sans-serif;
--titlefont :  "Chalkduster", 'sans serif';
--codefont : 'Courier', 'sans serif';
--epaissefont : 'Marker Felt', 'fantasy';
--normalfont : "Gill Sans", sans-serif;
--rouge-pastel: #fceeee;
--rouge-texte: #e74c3c;
--bleu-pastel: #e8f4fb;
--bleu-texte: #3498db;
--gris-fond: #fafafa;
--gris-bordure: #e0e0e0;
--ombre-douce: rgba(0, 0, 0, 0.04);
--rayon: 10px;
--police-base: 'Segoe UI', sans-serif;
}


body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
justify-content: center;
/* align-items: center; */
min-height: 100vh;
font-family: var(--mainfont);
}

header, footer {
background-color: #FFF;
color: black;
display: inline-flex;
justify-content: space-between;
align-items: center;
width: 100%;
}



.navbar {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
background: linear-gradient(135deg, #f0f8ff, #faebd7);
padding: 10px 10px 0px 10px;
/* min-height: 100px; */
}

.navbar svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 500px) {
    .navbar svg {
        transform: translateX(-50%) scale(0.8);
    }
}

.navbar button {
margin-left: auto;
}

.navbar-toggler {
display: flex;
flex-direction: column;
justify-content: center;
align-items: end;
background-color: transparent;
border: none;
padding: 10px;
cursor: pointer;
}



.mon_bouton{
background: linear-gradient(150deg, var(--monorangeclair), orange);
/* display: inline-flex; */
align-items: center;
text-align: center; /* Centrer le texte et l'icône */
display: inline-block;
justify-content: center; /* Centrage horizontal */
height: auto;
max-width: 300px;
min-width:200px;
max-height: 50px;
min-width: 100px;
text-align: center;
font-family: var(--mainfont);
font-size: .9em;
color: white;
border : none;
border-radius: 20px;
padding: 10px 20px;
margin-top: 10px;
transition: background-color 0.3s, transform 1s;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-decoration: none;
margin-left: auto;
margin-right: auto;
}
.mon_bouton.show { text-align: left; margin-top: 20px; display: flex; }
.mon_bouton a{text-decoration: none;color:white;}
.mon_bouton:hover{background-color: var(--monorange);transform: scale(1.05);cursor: pointer}

@media (min-width: 900px) {/*Grands écrans*/
header { display: block; }
.navbar-toggler { display: none; }
.navbar svg {
position: relative;
left: auto;
transform: translateX(0);
}
.menu-items { 
display: block; justify-content: center;
}
#dropdownMenu { display: flex; }
}
#dropdownMenu{
text-align: center;
}

@media (max-width: 899px) {/*Petits*/
header {
display: block;
justify-content: space-between;
align-items: center;
width: 100%;
}
/* .header-container {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
} */
.navbar-toggler { display: block; }
.menu-items { display: none; }
.menu-items.show { display: block; }
}

nav {
display: flex;
justify-content: space-between;
padding: 5px;
color: black;
font-family: var(--mainfont);
flex-direction: column;
align-items: flex-end;
position: relative;
}

.menu-items {
flex-grow: 1;
width: 100%;
/* max-height: 0; */
transition: max-height 0.5s ease-out, opacity 0.6s ease-in;
opacity: 1;
align-items: center;
justify-content: center; /* Aligner horizontalement au centre */
align-items: flex-end; /* Aligner verticalement en bas */
flex-direction: row; /* Les éléments seront alignés sur une seule ligne */
flex-wrap: wrap; 
}

.menu-item a{
text-decoration: none;
color:#02034a;
}

.menu-item, .sous_chapitre {
text-align: center;
padding: 0px;
margin: 10px;
font-size: 1.2em;
text-decoration: none;
transition: color 0.3s ease;
border-bottom: solid 2px transparent;
font-weight: 500;
}

#resetPasswordForm {
    max-width: 400px;
    width: 300px;
    margin: 150px;
}

@media (max-width: 900px) {
    #resetPasswordForm {
        margin: 100px;
    }
}

@media (max-width: 500px) {
    #resetPasswordForm {
        margin: 50px;
    }
}

.menu-items div {
list-style: none;
padding: 10px;
margin: 0;
color: var(--mongriselephant);
justify-content: center;
align-items: center;
}

/* .menu-item::after {
content: '';
display: block;
width: 0;
height: 2px;
background-color: var(--mongriselephant);
transition: width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
opacity: 0;
transform: translateY(-5px);
} */


.menu-item:hover{
/* background-color: var(--mongrisclair); */
/* color:var(--monorange)!important; */
border-top-left-radius: 10px;
border-top-right-radius: 10px;
/* transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease; */
border-bottom: solid 2px var(--monorange);
transition: width 0.8s ease, opacity 0.8s ease, transform 0.8s ease;
/* transform: translateY(-5px); */
}

.focused_chapter{
    /* background-color: var(--mongrisclair); */
    color:var(--monorange)!important;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease; */
    color:var(--monorange);
    border-bottom: solid 2px var(--mongrisclair);
    transition: width 0.8s ease, opacity 0.8s ease, transform 0.8s ease;
    /* transform: translateY(-5px); */
    }

.menu-items div:hover, .sous_chapitre:hover {
color: var(--monbleu);
cursor: pointer;
}

.menu-items div:hover::after {
width: 100%;
opacity: 1;
transform: translateY(0);
}

.menu-items.show {
max-height: 500px;
display: block;
opacity: 1;
transition: max-height 0.5s ease-out, opacity 0.4s ease-out;
}

.navbar-toggler .hamburger-bar {
display: block;
width: 25px;
height: 3px;
background-color: black;
margin: 3px 0;
transition: background-color 0.3s ease;
border-radius: 5px;
}

.navbar-toggler:hover {
/* background-color: var(--mongrisclair); */
border-radius: 5px;
transition: .3s all;
}

.navbar-toggler:hover .hamburger-bar {
background-color: var(--monorange);
}



.chapter-content {
z-index: 1;
position: relative;
background-color: var(--mongrisclair);
width: 100%;
display: none;
overflow: hidden;
opacity: 1; 
transition: max-height 0.8s ease, opacity 0.8s ease, visibility 0s linear 0.8s; 
text-align:center;
}

.chapter-content.show {
display: flex;
opacity: 1;
height: auto;
justify-content: space-around;
align-items: center;
flex-wrap: nowrap;
}

.sous_chapitre {
position: relative;
flex: 1;
color: black;
cursor: pointer;
transition: color 0.3s ease;
text-decoration: none;
text-align: center;
margin-left: auto;
padding: 10px;
}

.sous_chapitre::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background-color: #02034a;
transition: width 0.4s ease, transform 0.4s ease;
transform: translateY(5px);
opacity: 0;
}

.sous_chapitre:hover::after {
width: 100%;
opacity: 1;
transform: translateY(0);
}

.sous_chapitre span {
display: inline-block;
transition: transform 0.4s ease;
}

.sous_chapitre:hover span {
transform: translateY(-5px);
}



.input-group {
margin-bottom: 15px;
font-size:1.4em;
font-family: var(--mainfont);
}

label {
display: block;
margin-bottom: 5px;
}

/*----------PAGE DE LOGIN----------*/

#loginForm, #signupForm {
width: 500px;                 /* Garde la largeur fixe comme avant */
margin: 0 auto;   
padding:5px;            
}

#signupForm h1{
    margin-top: 200px;
}

.input_authentification{
    width:100%;
    background: none;
  border: none;
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
  font-size: .7em;
  border-bottom: solid 1px #d3d3d3;
  font-family: var(--mainfont);
  outline: none;
}

/* input[type="email"], input[type="password"], input[type="text"]  */

.champ_connexion {
    padding: 5px 3px;
    padding-left: 3px; 
    background: none;
    border: none;
    font-size: .9em;
    border-bottom: solid 1px #d3d3d3;
    font-family: var(--mainfont);
    outline: none;
    transition: border 0.3s ease-in-out , border-radius 0.3s ease-in-out;
    box-shadow: 0 0 0 0 var(--monorange); /* Ajout d'une ombre initiale invisible */
}

.champ_connexion:focus {
    border: solid 2px var(--monorange);
    border-radius: 10px;
    box-shadow: 0 0 4px var(--monorange); /* Ajout d'un léger glow pour un effet fluide */
}

.champ_connexion:not(:focus) {
    border: solid 2px transparent;
    border-bottom: solid 1px #d3d3d3;
    border-radius: 0;
    transition: border 0.3s ease-in-out , border-radius 0.3s ease-in-out;
}

@media (max-width: 500px) {
    h1 {
        font-size: 0.9em;
    }
}

.champ_connexion{
width:95%;
}

.password-container {
position: relative;
}

.toggle-password {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
border: none;
background: none;
cursor: pointer;
}

/* button[type="submit"] {
width: 100%;
padding: 10px;
background-color: #1e0c3a;
border: none;
border-radius: 4px;
color: white;
font-size: 16px;
cursor: pointer;
}

button[type="submit"]:hover {
background-color: #2e254e;
} */

#ErreurConnection, #MessageConnection {
padding: 10px;
margin-top: 20px;
display: none;
border-radius: 4px;
font-size: 0.8em;
}

#ErreurConnection {
background-color: rgb(247, 168, 168);
color: red;
}

#MessageConnection {
background-color: rgb(168, 247, 190);
color: rgb(55, 164, 0);
}

.forgot-password {
display: block;
text-align: center;
margin-top: 10px;
color: black;
text-decoration: none;
}

.forgot-password:hover {
text-decoration: underline;
}

.selected_chapter{background-color:rgb(221, 246, 255);border-radius: 10px;}


.footer {
font-family : var(--epaissefont);
background-color: #02034a;
color: #fff;
width:100%;
padding: 40px 0;
}

.footer .container {
width:100%;
font-size: 1.2em;
margin: 0 auto;
padding: 0 20px 0 50px;
}

.footer-content {

display: flex;
justify-content: space-between;
flex-wrap: wrap;
}

.footer-section {
flex-basis: 30%;
margin-bottom: 20px;
}

.footer-section h3 {
font-size: 18px;
margin-bottom: 15px;
color: #FFF;
}

.footer-section p, .footer-section a {
font-family: var(--mainfont);
color: #ccc;
text-decoration: none;
margin-bottom: 10px;
}

.footer-section a:hover {
color: #8e8e8e;
}

.footer-section ul {
list-style-type: none;
padding: 0;
}

.footer-section ul li {
margin-bottom: 10px;
}

.footer-section ul li a {
color: #ccc;
text-decoration: none;
}

.footer-section ul li a:hover {
color: #ffc971;
}

.social-icons a {
margin-right: 10px;
}

.social-icons img {
width: 24px;
height: 24px;
filter: brightness(0) invert(1);
transition: transform 0.3s ease;
}

.social-icons a:hover img {
transform: scale(1.1);
}

.footer-bottom {
text-align: center;
border-top: 1px solid #444;
padding-top: 20px;
margin-top: 20px;
}

.footer-bottom p {
font-size: 14px;
color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
.footer-content {
flex-direction: column;
}

.footer-section {
flex-basis: 100%;
text-align: center;
}
}

.main{
border-top: 1px solid rgb(200, 200, 200);
width:100%;
display: block;            /* Activer flexbox */
text-align: left;
justify-content: center;   /* Centrer horizontalement */
align-items: center;       /* Centrer verticalement (facultatif) */
min-height: 100vh;         /* S'assure que la hauteur occupe tout l'écran */
}

/*Le bouton de connexion*/
/* Style du conteneur de bouton de connexion */



.search-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
  }
  
  .search-container > * {
    flex: 1; 
  }
  #keywords{
    width:470px;
  }

  @media (max-width: 900px) {
    .search-container {
      flex-direction: column; 
      align-items: stretch; 
    }
    #keywords{
        width:100%;
      }
  }



.connexion-button {
display: flex;
justify-content: center;
align-items: center;
margin-top: 10px;
}

.connexion-button a {
display: flex;
justify-content: center;
align-items: center;
background-color: white; /* Couleur de fond */
border: solid 1px ;
border-color: #1e0c3a;
color: #1e0c3a; /* Couleur du texte */
padding: 5px 5px;
border-radius: 5px;
text-decoration: none;
transition: background-color 0.3s ease;
cursor: pointer;
}

.connexion-button a:hover {
background-color: #2e254e; /* Couleur de fond au survol */
color: white;
transition: background-color 0.3s ease, transform 0.3s ease;
}

.connexion-button .connected {
background-color: #2e254e; /* Couleur de fond au survol */
color: white;
transition: background-color 0.3s ease, transform 0.3s ease;
}

.connexion-button .connected:hover {
background-color: white; /* Couleur de fond au survol */
color: #2e254e;
transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Style pour le texte et les icônes */
.connexion-button a span {
margin: 0 10px;
}

.connexion-button a svg {
margin: 0 5px;
}

@media (min-width: 900px) {
.connexion-button a svg {
margin: 0 5px;
display:flex;
}
}

@media (max-width: 899px) {
.connexion-button a svg {
margin: 0 5px;
display:none;
}
}


/*Corps*/

#corps {
width: 100%;
margin: 0 auto; /* Centre le div #corps horizontalement */
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
/* padding-bottom: 100px; */
min-height:800px;
overflow: hidden;
}

#exercices-container {
display: flex;
flex-wrap: wrap;
gap: 0px;
justify-content: center;
padding: 0px;
margin-bottom: 50px;
}

#corps h1 {
font-family:var(--titlefont); /* Vérifiez la syntaxe ici, il y a une erreur de frappe dans le nom de la police */
color: #02034a;
font-size: 2em;
width:100%;
text-align: center;
}


.message-bubble { /*Pour afficher les messages non lus dans le menu*/
position: absolute;
/* top: 10px; */
font-size:.6em;
/* right: -5px; */
width: 15px;
height: 15px;
border-radius: 50%;
font-family:  var(--titlefont);
background-color: red;
font-weight: bolder;
color: white;
/* display: flex; */
align-items: center;
justify-content: center;
text-align: center;
}

.section-ressources,
.section-documentaire {
width:100%;
box-sizing: border-box;
padding: 20px;
}



.section-boutique {
    background: var(--monbleu);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    clip-path: polygon(0% 20%, 100% 0%, 100% 110%, 0% 100%);
    padding: 50px 20px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optionnel pour un effet 3D */
}

.section-boutique h1 {
    color:white!important;
}


.content-wrapper {
display: flex;
align-items: center;
}

.text-content {
flex: 1;
padding: 20px;
border-radius: 8px;
font-size: 1.2em;
opacity: 1; /* Cache le texte au départ */
/* transform: translateX(30px); Position initiale à droite */
transition: opacity 0.5s ease, transform 0.5s ease; /* Transition */
}

#conteneur_disciplines{
display: inline-block;
gap:30px;
text-align: center;
}

/* .discipline-icon{
text-decoration: none;
font-family: var(--titlefont);
text-align: center;
display: inline-block;
padding:5px;
margin: 5px;
width:220px;
border-radius : 20px;
box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.2);
border : solid 1px var(--mongrissouris);
} */

@media (max-width: 900px) {
    #canvas-bees {
        display: none;
    }
}

/* .discipline-icon:hover {
    transform: scale(1.0);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.discipline-icon h2{
    font-size:1.0em;
    margin:2px 0px;
} */

.discipline-icon {
    display: inline-block;
    flex-direction: column; /* Aligne les icônes et le texte en colonne */
    align-items: center;
    text-decoration: none;  /* Retire le soulignement */
    color: var(--monbleu);  /* Applique la couleur variable */
    font-size: 1.5em;       /* Taille de la police du texte (<h2>) */
    transition: transform 0.3s ease ;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6); */
    /* border-radius: 10px;     */
    border:none;
    padding: 20px;          /* Espacement interne pour plus de clicabilité */
    background-color: #fff; /* Arrière-plan blanc pour les icônes */
    width:170px;
    text-align: center;
}

.discipline-icon h2 {
    font-size: 1em; /* Taille des icônes */
    text-align: center;
}

.discipline-icon i {
    font-size: 2em; /* Taille des icônes */
    margin-bottom: 10px; /* Espacement entre l'icône et le texte */
}

.discipline-icon:hover {
    transform: translateY(-10px) scale(1.05); /* Translation vers le haut et effet de zoom */
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.8); /* Ombre blanche plus grande */
}

/* #physique_icon{
background-color: var(--monbleupastel);
color:var(--monbleuclair);
}

#chimie_icon{
background-color: var(--monrougepastel);
color:var(--monrouge);
}

#informatique_icon{
background-color: var(--monvertpastel);
color:var(--monvertfonce);

} */


.discipline-icon:hover{
color:var(--monbleu);
}

/* .discipline-icon i{
font-size: 1.3em;
} */

.clock-gears:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Ombre subtile pour l'effet de profondeur */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition fluide pour la mise à l'échelle et l'ombre */
    transform: scale(1.05); /* Agrandissement léger au survol */
}

.clock-gears {
    position: relative;
    width: 200px; /* Taille du conteneur */
    height: 200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    background-color: #f8f8f8; /* Juste pour visualisation */
    border-radius: 50%; /* Pour créer un cercle si nécessaire */
    border:solid 1px black;
    padding:3px;
}

.gear {
    position: absolute;
    font-size: 50px;
    color: #666;
    animation: rotate-gear 10s linear infinite;
    transform: scale(1.3);
}

.gear1 {
    top: 115px;
    left: 115px;
    animation-direction: reverse;
}

.gear2 {
    top: 65px;
    left: 65px;
    font-size: 70px;
    transform: rotate(20deg);
}

.gear3 {
    top: 65px;
    left: 125px;
    font-size: 30px;
    animation-duration: 15s;
    animation-direction: normal;
    animation-direction: reverse;
}

.hand {
    position: absolute;
    width: 2px;
    height: 96px;
    background-color: #333;
    top: 4px;
    left: 102px;
    transform-origin: bottom;
    transform: rotate(0deg);
}

.hour-hand {
    animation: rotate-hour 360s linear infinite;
}

.minute-hand {
    animation: rotate-minute 6s linear infinite;

}

@keyframes rotate-gear {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-hour {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-minute {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animations pour les sections */
.section-ressources,
.section-boutique,
.section-documentaire,
.post-it {
opacity: 0; /* Cache les éléments au départ */
transform: translateY(30px); /* Position initiale */
transition: opacity 0.5s ease, transform 0.5s ease; /* Transition */
}

.post-it:hover{
cursor:pointer;
}

.post-it h2 {
font-size: 1.5em;
margin-bottom: 10px;
}

.post-it i {
font-size: 4em;
color: var(--monbleu); /* Couleur grise pour les icônes */
}

.section-ressources.animate,
.section-boutique.animate,
.section-documentaire.animate,
.post-it.animate {
opacity: 1; /* Rendre visible */
transform: translateY(0); /* Position finale */
}

/* Pour les titres des sections */
.section-ressources.animate h1,
.section-documentaire.animate h1 {
transform: translateX(-30px); /* Position initiale à gauche */
}

h1 {
opacity: 0; /* Cache le titre au départ */
transform: translateX(30px); /* Position initiale à droite */
transition: opacity 0.5s ease, transform 0.5s ease; /* Transition */
}

h1.title-animate {
opacity: 1; /* Rendre visible */
transform: translateX(0); /* Position finale */
}

/* Styles de contenu */
.text{
text-align: justify;
}

.text-content p {
font-family: var(--mainfont);
}

.image-content {
position: relative;
width: 300px; /* Ajuste la taille selon tes besoins */
height: 200px; /* Ajuste la taille selon tes besoins */
background-size: cover; /* Pour couvrir tout le div */
background-position: center; /* Centrer l'image */
overflow: hidden; /* Pour cacher tout débordement */
}

.image-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle, transparent 40%, rgba(255, 255, 255, 0.8) 90%);

pointer-events: none;/* Pour permettre les interactions sur le div */
}

.post-it-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
margin-top: 20px;
}

.post-it {
width: 200px;
padding: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
border-radius: 5px;
text-align: center;
transform-origin: center;
font-family: var(--codefont);
text-decoration: none;
color:var(--monbleu);
}

.post-it:hover {
transform: scale(1.05);
box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

/* Inclinaison du post-it de gauche */
.post-it-container .post-it:nth-child(1) {
transform: rotate(-5deg); /* Inclinaison vers la gauche */
}

.post-it-container .post-it:nth-child(1):hover {
transform: rotate(-10deg) scale(1.05); 
cursor: pointer;
}

/* Inclinaison du post-it du milieu */
.post-it-container .post-it:nth-child(2) {
transform: rotate(0deg) ; /* Pas d'inclinaison */
}

.post-it-container .post-it:nth-child(2):hover {
transform: rotate(0deg) scale(1.05);
cursor: pointer;
}

/* Inclinaison du post-it de droite */
.post-it-container .post-it:nth-child(3) {
transform: rotate(5deg); /* Inclinaison vers la droite */
}

.post-it-container .post-it:nth-child(3):hover {
transform: rotate(10deg) scale(1.05);
cursor: pointer;
}

.post-it.animate {
opacity: 1; /* Rendre visible */
transform: scale(1); /* Échelle finale */
}

.post-it h2 {
margin: 0;
}



/* Media queries pour ajuster la mise en page sur mobiles */
@media (max-width: 768px) {
.content-wrapper {
flex-direction: column;
}

.image-content {
height: 200px;
}

.post-it {
width: 90%;
}
}

/*Visualisation des exercices*/
/* .header-container {
display: flex; 
flex-direction: row; 
justify-content: flex-start; 
align-items: center; 
font-family: var(--mainfont);
color: #333;
margin-top: 50px;
background-color: var(--mongrisclair);
border-left: solid 1px black;
border-top: solid 1px black;
border-right: solid 1px black;
border-top-left-radius: 20px;
border-top-right-radius: 20px;

} */


/* Style pour le mot "Exercices" */
/* .header-label {
font-size: 1.5em;
font-weight: bold;
background-color: #ffc971;
padding:5px 20px;
color:white;
font-family: var(--titlefont);
border-top-left-radius: 20px;

} */

/* Style pour le titre en Chalkduster */
/* .titre-exo {
width: 100%;
text-align: left;

padding-left: 20px;
padding-top:10px;
font-family: var(--titlefont); 
font-size: 1.5em;
color: #333;
margin: 0 0 0px 0;
box-sizing: border-box;
}

.contenu-exo {
width: 100%;
display: flex;
flex-direction: column;
text-align: center;
justify-content: center;
border-radius: 0px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 20px;
} */

/* Style pour l'iframe PDF */
#pdfViewer {
width: 100%;
height: 100%; /* La hauteur s'ajuste automatiquement */
min-height: 600px; /* Hauteur minimale */
max-width:600px;
aspect-ratio: 1 / 1.414; /* Proportion A4 */
border: none;
}

.toolbar{/*Non lu*/
display:none !important;
}

#viewerContainer, #outerContainer{/*Non lu*/
background-color: white !important;
}

#loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    z-index: 1;
}

.modal-content {
    z-index: 2;
    text-align: center;
    /* background: white; */
    padding: 20px;
    border-radius: 8px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    z-index: 10000;
    display: none;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.donnees{
    text-align: left;
    margin:0px;
    gap:3px;
    /* color: black; */
  }

