@font-face {
    font-family: "c64";
    src: url("c64.ttf");
}



/* thème préférences navigateur */
:root {
    color-scheme: light dark;
    
    
    
    --button-bg: #a0a4d9;
    --menu-width: 250px;
    
    --header-height: 7vh;
    
    --important-border: crimson;
    --techno-border: coral;
    --travail-border: #3D69E1;
    --remarque-border: #43B3AE;
    --separator-color: rgba(255, 255, 255, 0.1);
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'QuickSand', sans-serif;
    --side-margin: 40px; /* Marge latérale augmentée */
    --amber: #ffa86d;
}

/* thème clair */
:root[data-theme="light"] {
    color-scheme: light;
    
    --primary-color: #354c7c;   
    --secondary-color: #ced3dc;
    --background-color: #f8f8f8;
    --menu-color: #212121;
    --hover-color: #b0b8ce;
    --text-color: #212121;
    --tips-bg: #e6ebe8;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --separator-color: rgba(0, 0, 0, 0.2);
    --qcm-bg: #b0b8ce;
}

/* thème sombre */
:root:root[data-theme="dark"] {
    color-scheme: dark;
    
    --primary-color: #5d9cec;
    --secondary-color: #1a1a2e;
    --background-color: rgb(24,36,63);
    --menu-color: #ececec;
    --hover-color: #2a2a3e;
    --text-color: #ececec;
    --tips-bg: #131d34;
    --shadow-color: rgba(0, 0, 0);
    --separator-color: rgba(255, 255, 255, 0.1);
    --qcm-bg: #5d9cec;
}

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

}

/* élément permettant au switch de se déplacer */
:root[data-theme="dark"] .dummy {
    flex-grow: 0; /* écrasé en dark */
    transition: flex 1s ease;
}

:root[data-theme="light"] .dummy {
    flex-grow: 1; /* étalé en light */
    transition: flex 1s ease;
}

html {
  scroll-behavior: smooth;
}

body {
    display: flex;
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    margin-left: 0;
    
    scrollbar-width: auto;          /* "auto" or "thin"  */
    scrollbar-color: #2d2d2d #fbfaf8;   /* scroll thumb & track */ 
    transition: 
        margin-left 0.3s ease,
        color 1s ease,
        background-color 1s ease;
}


body.menu-visible {
    margin-left: calc(var(--menu-width) + 1vw);
}

/* Bandeau fixe */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--secondary-color);
    background-image: url('circuit.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 var(--side-margin); /* Marge latérale appliquée */
    z-index: 1000;
}

header img{
    vertical-align: middle;
    margin: 0 1rem 0 1rem;
    height: 5vh;
}

/* Overlay moins sombre */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 46, 0.5);
    z-index: -1;
}

header p {
    font-family: var(--font-title);
    font-size: 3vh;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Barre de recherche */
.search-wrapper{
    position: relative;
    margin-left: 3em;
    display: flex;
    flex-direction: column;
}

.searchBox {
    display: flex;
    backdrop-filter: blur(10px);
    height: 40px;
    border-radius: 40px;
    padding: 10px;
    align-items: center;

}

.searchButton {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #2f3640;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

.searchInput {
    border:none;
    outline:none;
    padding: 0;
    color: white;
    background: #2f3640;
    font-size: 2vh;
    transition: 0.4s;
    line-height: 40px;
    width: 240px;
    padding: 0 6px;

}

.search-results{
    position: relative;
    top: var(--header-height);
    left: 33%;
    overflow-y: auto;
    color: black;
    background-color: #f0f0f0;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    max-height: 20vh;
    width: 33%;

    animation: fadeOut 0.5s forwards;
}


.search-results:popover-open {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
      opacity: 0;
      translate: 0 -1em;
    }
  
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
      translate: 0 0;
    }
  
    to {
      opacity: 0;
      translate: 0 1em;
    }
  }

#macaron-connexion{
    font-size: 1.7vh;
    margin-left: auto;
    margin-right: 1rem;
    background-color: crimson;
    border-radius: 20px;
    text-align: center;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    box-sizing: border-box;
}


/* Menu latéral gauche */
.sidebar {
    width: var(--menu-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--secondary-color);
    border-top-right-radius: 50px;
    color: var(--menu-color);
    position: fixed;
    margin-top: var(--header-height);
    padding-top: 1rem;
    left: -100%;
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar.visible {
    left: 0;
    transition: left 0.3s ease;
}



/* Nav Trigger */
.nav-trigger {
  /* critical styles - hide the checkbox input */
  visibility: hidden;
}

label[for="nav-trigger"] {
  /* critical positioning styles */
  position: fixed;
  left: 2vw; top: calc(var(--header-height) + 2vh);
  z-index: 2;
  /* non-critical apperance styles */
  height: 30px;
  width: 30px;
  cursor: pointer;
}

label[for="nav-trigger"] > svg{
    fill: var(--text-color);
}

.nav-trigger + label {
  transition: left 0.5s;
}

.nav-trigger:checked + label {
  left: calc(var(--menu-width) + 1vw);
}

/* Switch mode */
.switch-mode-wrapper{
    display: flex;
    margin: 0 auto;
    margin-bottom: 1rem;
    justify-items: center;
    align-items: center;
}

.switch-mode-wrapper > svg{
    scale: 1.5;
    margin: 0 0.5rem;
    fill: var(--text-color);
}

input[type="checkbox"].slider {
    display: none;
    }
    
input[type="checkbox"].slider + label {
    box-sizing: border-box;
    display: inline-block;
    left: 33%;
    width: 3rem;
    height: 1.5rem;
    vertical-align: middle;
    border-radius: 1.5rem;
    border: 1px solid var(--text-color);
    padding:2px;
    background-color: var(--background-color) ;
    transition: all 0.5s ;
    }
    
input[type="checkbox"].slider + label::before {
    box-sizing: border-box;
    display: block;
    content: "";
    height: calc(1.5rem - 5px);
    width: calc(1.5rem - 5px);
    background-color: var(--text-color) ;
    border-radius: 50%;
    transition: all 0.5s ;
    }
    
input[type="checkbox"].slider:checked + label::before {
    margin-left: 1.4rem ;
    }
    


/* Partie fixe du menu (en bas) */
.sidebar-fixed {
    flex: 0 0 auto;
}

.sidebar-fixed ul {
    list-style: none;
    
}

.sidebar p{
    text-align: center;
}

.sidebar-fixed li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--separator-color);
}

.sidebar-fixed a {
    color: var(--menu-color);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    text-align: center;
}

.sidebar-fixed li:hover {
    background-color: var(--hover-color);
}

.sidebar-fixed a:hover {
    color: var(--primary-color);
}

/* Séparation entre les parties fixe et déroulable */
.sidebar-separator {
    height: 1px;
    background-color: var(--separator-color);
    margin: 10px 0;
    width: 100%;
}

/* Partie déroulable du menu (en haut) */
.sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
}

.sidebar-scrollable ul {
    list-style: none;
}

.sidebar-scrollable li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--separator-color);
    position: relative;
}

.sidebar-scrollable li:hover {
    background-color: var(--hover-color);
}

.sidebar-scrollable a {
    color: var(--menu-color);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.sidebar-scrollable a:hover {
    color: var(--primary-color);
}

/* Sous-menu déroulant */
.sidebar-scrollable .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-scrollable li:hover .submenu {
    max-height: 500px;
}

.sidebar-scrollable .submenu li {
    padding: 10px 20px;
    border-bottom: none;
    font-size: 0.9rem;
}

.sidebar-scrollable .submenu li:hover {
    background-color: rgba(93, 156, 236, 0.2);
}

#btn-conn, #btn-deconn{
    cursor: pointer;
}

#btn-conn:hover, #btn-deconn:hover{
    color: var(--primary-color);        
}

#menu-util {
	text-align: center;
	margin: 0 auto;
	list-style-type: none;
}

#menu-util li {
    display: block;
    text-decoration: none;   
    text-align: center;
    cursor: pointer;
}

/* Sommaire */
/* Conteneur pour l'étiquette et le menu */
  .sommaire-container {
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      z-index: 1000;
      pointer-events: none; /* Désactive les interactions par défaut */
  }

  /* Étiquette "Sommaire" avec texte vertical */
  #sommaire-label {
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      background-color: var(--primary-color);
      color: white;
      padding: 20px 8px;
      font-size: 0.9em;
      font-weight: bold;
      cursor: pointer;
      z-index: 1001;
      border-radius: 5px 0 0 5px;
      writing-mode: vertical-rl;
      text-orientation: mixed;
      pointer-events: auto; /* Réactive les interactions pour l'étiquette */
  }

  /* Menu latéral DROIT (masqué par défaut) */
  #sidebar-right {
      position: fixed;
      top: 0;
      right: -var(--menu-width);
      width: var(--menu-width);
      height: 100vh;
      background-color: var(--secondary-color);
      color: var(--menu-color);
      transition: right 0.3s ease;
      padding-top: var(--header-height);
      overflow-y: auto;
      pointer-events: auto; /* Réactive les interactions pour le menu */
  }

  /* Affiche le menu quand le conteneur est survolé */
  .sommaire-container:hover #sidebar-right {
      right: 0;
      transition: right 0.3s ease;
  }

  /* Style du menu */
  #sidebar-right ul {
      list-style: none;.important, .travail, .techno, .remarque
  }

  #sidebar-right li {
      padding: 15px 20px;
      border-bottom: 1px solid var(--separator-color);
  }

  #sidebar-right li:hover {
      background-color: var(--hover-color);
  }

  #sidebar-right a {
      color: var(--menu-color);
      text-decoration: none;
      transition: color 0.2s;
      display: block;
  }

  #sidebar-right a:hover {
      color: var(--primary-color);
  }

  /* Sous-menu déroulant */
  #sidebar-right .submenu {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      padding-left: 20px;
      background-color: rgba(0, 0, 0, 0.1);
  }

  #sidebar-right li:hover .submenu {
      max-height: 500px;
  }

  #sidebar-right .submenu li {
      padding: 10px 20px;
      border-bottom: none;
      font-size: 0.9rem;
  }

  #sidebar-right .submenu li:hover {
      background-color: rgba(93, 156, 236, 0.2);
  }
  
/* Contenu principal */
main {
    flex: 1;
    padding: calc(var(--header-height) + 30px) var(--side-margin) 0px; /* Marges latérales augmentées */
    transition: margin-left 0.3s;
    max-width: 1500px; /* Largeur maximale pour éviter un étirement trop large */
    margin: 0 auto; /* Centrage du contenu */
    min-width: 0;
    font-size: 1.2em;
}

main p{
    margin: 1em 0 1em 0;
}

main li,
.search-results li{
    margin: 1em;
}

main a,
.search-results a {
    color: var(--primary-color);
    border-bottom: 1px solid transparent; /* Préparation pour l'effet de survol */
}

main a:hover,
.search-results a:hover {
    border-bottom: 1px solid var(--primary-color); /* Soulignement au survol */
    opacity: 0.9;
}

main ul, main ol{
    margin: 2em 0 2em 1em;
}

/* Adaptation pour les petits écrans */
@media (max-width: 768px) {
    
    body {
        margin-left: 0;
    }

    body.menu-visible {
        margin-left: 0;
    }
    
    .sidebar {
        left: -100%;
    }
    .sidebar.visible {
        left: 0;
    }
    
        
    main {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 1em;
    }
    header {
        padding: 0 20px;
    }
}


/* Bloc "Tips" */

/* Props communes */
.important, .travail, .techno, .remarque {
    margin: 2em 0 1em; /* Marge supérieure augmentée pour l'espace du label */
    padding: 2em 0.5em;
    background-color: var(--tips-bg);
    border-radius: 4px;
    position: relative; /* Nécessaire pour le positionnement absolu */
    transition:
        background-color 1s ease;
}



/* Supprime les marges des paragraphes */
.important p, .travail p, .techno p, .remarque p {
    margin: 2em;
}

/* Style commun pour tous les ::before */
.important::before,
.travail::before,
.techno::before,
.remarque::before {
    color: white;
    position: absolute;
    top: -20px; /* Positionne au-dessus du bloc */
    left: 10px; /* Décalage à gauche */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    transform: none;
    box-shadow: 0 2px 4px var(--shadow-color); /* Ombre pour un effet "flottant" */
}

/* Props spécifiques */
.important {
    border-left: 4px solid var(--important-border);
}
.important::before {
    content: "Important";
    background-color: var(--important-border);
}

.travail {
    border-left: 4px solid var(--travail-border);
}
.travail::before {
    content: "A FAIRE";
    background-color: var(--travail-border);
}

.techno {
    border-left: 4px solid var(--techno-border);
}
.techno::before {
    content: "Technique";
    background-color: var(--techno-border);
}

.remarque {
    border-left: 4px solid var(--remarque-border);
}
.remarque::before {
    content: "Remarque";
    background-color: var(--remarque-border);
}




/* TITRES */
.anchor{
    height: var(--header-height);
}

h1 {font-weight:400;margin: 2em 0 1em 0;}
h2,h3,h4,h5,h6{font-weight:400;margin: 1em 0 1em 0;}

h1	{
	width: 100%;
	font-size: 3em;
	text-align: justify;
}

h2 {
	width: 100%;
	font-size: 2em;
	padding: 0.2em;
	border-bottom: 5px double gray;
}

h3 {
	width: 100%;
	font-size: 1.5em;
	padding: 0.2em;
	border-bottom: 3px dotted gray;

}

h4 {
	font-size: 1.25em;
	font-weight: bold;
}

h5 {
	font-size: 1em;
	font-weight: bold;
}

h6 {
	font-size: 1em;
	font-weight: bold;
} 


/*------------------
    ANIM TYPEWRITER
---------------------*/
.container-typewriter {
    box-sizing:content-box;
    position: relative;
    background-color: #232323;
    border-radius: 20px 20px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interlaced {
    position: absolute;
    border-radius: 20px 20px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: repeating-linear-gradient(transparent 0px 1px, hsl(154 0% 0%/.3) 3px 4px);
    pointer-events: none; /* Pour éviter que l'interlaced bloque les clics */
}

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

.interlaced {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: repeating-linear-gradient(transparent 0px 1px, hsl(154 0% 0%/.3) 3px 4px);
    pointer-events: none; /* Pour éviter que l'interlaced bloque les clics */
}

.typewriter h1 {
    color: #FFFFFF;
    text-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 15px #FFF, 0 0 20px #49ff18, 0 0 30px #49FF18, 0 0 40px #49FF18, 0 0 55px #49FF18, 0 0 75px #49ff18;
    font-family: c64;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.typewriter-text {
    overflow: hidden; /* Cache le texte qui dépasse */
    animation: typing 1.5s steps(13, end);
    display: inline-block; /* Pour que la largeur soit calculée correctement */
    padding: 0;
    padding: 1em;
}

.typewriter-caret {
    display: inline-block;
    width: 0.5ch;
    height: 1ch;
    animation: blink-caret 1s step-end infinite;
    margin-left: -0.7em;
}

/* Animation pour l'effet de frappe */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Animation pour le curseur */
@keyframes blink-caret {
    from, to { background-color: transparent }
    50% { background-color: #ffffff; box-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 15px #FFF, 0 0 20px #49ff18, 0 0 30px #49FF18, 0 0 40px #49FF18, 0 0 55px #49FF18, 0 0 75px #49ff18; }
}



/*-------------
    ANCIEN CSS 
--------------*/
code {
    font-family: Courier;
    font-weight: bold;
}

#recette {
	font-family: monospace;
	margin: 0.5em auto;
	width: 80%;
	font-size: 1.2em;
	border: 2px solid black;
	border-radius: 5px;
	background: white;
	padding: 1em;
}


.algo {

	font-family: monospace;
	width: 80%;
	margin-left: 5em;
	font-size: 1em;
	border: 2px solid black;
	border-radius: 5px;
	background: white;
	padding: 0.5em 0.5em 0.5em 5em;
	color: blue;
}

.flow {
	margin: 1em auto;
	width: 50%;
	padding: 0.5em;
	text-align: center;
	background: white;
	border: 2px solid black
}

/* QCM */

#qcm {
	width: 60%;
	margin: 0 auto;
	text-align: center;
    display: flex;
    flex-direction: column;
}

.qcm-question {
    display: block;
	text-align:left;
	margin: 1em;
	padding: 1em;
	border: solid;
  	border-radius: 5pt;
  	border-width: 1pt;
}

.qcm-liste-choix {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.qcm-tip {
	text-align: left;
    color:#eee;
	background-color: rgb(72, 83, 204);
}

.good {
    color:#eee;
	background-color: green;   
}

.bad {
    color:#eee;
	background-color: red;   
}

#qcm label {
  display: flex;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.375em;
  /* Accessible outline */
  /* Remove comment to use */
  /*
  	&:focus-within {
  			outline: .125em solid $primary-color;
  	}
  */
}
#qcm label input {
  position: absolute;
  left: -9999px;
}
#qcm label input:checked + span {
  background-color: var(--qcm-bg);
}
#qcm label input:checked + span:before {
  box-shadow: inset 0 0 0 0.4375em #00005c;
}
#qcm label span {
  display: flex;
  align-items: center;
  padding: 0.375em 0.75em 0.375em 0.375em;
  border-radius: 99em;
  transition: 0.25s ease;
}
#qcm label span:hover {
  background-color: var(--qcm-bg);
}
#qcm label span:before {
  display: flex;
  flex-shrink: 0;
  content: "";
  background-color: #fff;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  margin-right: 0.375em;
  transition: 0.25s ease;
  box-shadow: inset 0 0 0 0.125em #00005c;
}






/*--------- Formulaire contact-------*/

form::not(.qcm) {
	width: 60%;
	margin: 0 auto;
	text-align: center;
}

legend {
	font-weight: bold;
}

input {
	border-radius: 5px;
}

#envoyer {
	font-size: 1.1em;
}

/*--- Bloc solution -------*/

.solut {
	display: inline-block;
	padding: 0.5em;
	font-weight: bold;
	background-color: red;
	color: white;
	max-width: auto;

}

.solut:hover {
  
	background-color: white;
	color: red;
}

.cache {
	display: none;
}

.cache:not(span) {
	width: 80%;
	margin: 1em auto;
	padding: 1em 0em 1em 1em;
}




.reponse {
	width: 80%;
	margin-left: 5em;
	font-family: monospace;
	font-size: 1.2em;
	font-weight: normal;
	color: black;
	border: 2px solid black;
	border-radius: 5px;
	background: white;
	padding: 1em 1em 1em 1em;
	text-align: left;

}

.accordeon {
	display: inline-block;
	width: 80%;
	max-height: 1.7em;
	overflow: hidden;
	margin: auto;

   transition:1s ease;
}

.accordeon:hover{
	max-height: 999px;
}





/*---Equation avec des fractions----*/

.equation {
	text-align: center;
	}

.fraction {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	letter-spacing: 0.01em;
	text-align: center;
	}
.fraction > span {
	display: block;
	padding: 0.2em;
	}
.fraction span.fdn {border-top: thin solid var(--text-color);}
.fraction span.bar {display: none;}

.gl_exercice {

  border: solid;
  border-radius: 5pt;
  border-width: 2pt;
  padding : 5px;
	margin-bottom:1em;
}

.gl_title {
  font-weight: bold;
  font-family: monospace;
  padding:5px;
  font-size: 150%;
}

.graphe {
	display: flex;
	flex-wrap: nowrap; 
	width: 80%; 
	margin: auto;
	align-items: center;
	align-content: space-around;
  	justify-content: space-around;
}

.network {
  display: inline-block;
  width: 600px;
  height: 400px;
  border: 1px solid lightgray;
  margin: auto;
}

.graphe > div {
	margin: 1em;
}

.graphe table {
	margin: 1em;
}

.folded {
	opacity: 0;
   transition: all 1s;
   overflow: hidden;
   max-height: 0;
}

.unfolded {
	opacity: 1;
	max-height: 9999999px;

}

.puzzle-code > ul {
	background-color: #f0f0f0;	
	border-style: solid;
	border-radius: 10px;
	padding: 1em;
	width: min-content;
	overflow: hidden;	
	max-width: 100%;				
}

.puzzle-code > ul > li {
	list-style-type: none;
	display: block;
	width: min-content;				
}

.puzzle-code > ul > li > pre {
	font-family: monospace;
	font-size: 1.5em;
	display: inline;	
}

.draggable-over {
	border-style: dotted;				
}

.draggable-dragging {
	opacity : 0.5;				
}

/* Formulaire de connexion et bouton de connexion/déconnexion */
#btn-chat  {
	cursor: pointer;
} 
		
/* Masquez la forme Popup */
.form-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) brightness(0.6);
  overflow: hidden;
  overscroll-behavior: contain;
  z-index: 10;
}

/* Styles pour le conteneur de la forme */
.form-container {
  max-width: 350px;
  margin: auto;
  padding: 1em;
  color: var(--text-color);
  text-align: center;
  border: 2px solid #666;
  background: var(--background-color);
  border-radius: 20px;
  
}

#titre-con {
	width: 100%;
	font-size: 1.5em;
	padding: 0.2em;
	border-bottom: 5px double var(--text-color);  	
}

/* Largeur complète pour les champs de saisie */
.form-container input[type="text"],
.form-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 5px 0 22px 0;
  border: none;
  background: #eee;
}


.form-container input[type="text"]:focus,
.form-container input[type="password"]:focus {
  background-color: #555;
  outline: none;
}

.form-container .separator{
    border-top: solid var(--text-color) thin;
    margin: 10px 0;
}

/* Bouton de connexion */
.form-container .btn {
  background-color: #8ebf42;
  color: #fff;
  padding: 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin: 0;
  margin-bottom: 10px;
  border-radius: 20px;
  opacity: 0.8;
}

/* Bouton pour annuler */
.form-container .cancel {
  background-color: #cc0000;
}

.form-container .btn:hover,
.open-button:hover {
  opacity: 1;
}

/* Champ d'erreur connexion */
#con-error {
 font-size: 1.2em;
 color: #f00;
}

/* Champ de succès modif pwd */
#pwd-modif {
 font-size: 1.2em;
 color: #0f0;
}



svg {
	overflow: visible;
}

.fichiers {
	font-size: 1em;
	font-family: monospace;
}

.vaug {
 text-align: center;
 margin-top: 0;
 text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff,
   0 0 40px #ff00ff, 0 0 50px #ff00ff, 0 0 60px #ff00ff, 0 0 70px #ff00ff;
 animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
 from {
   text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff,
     0 0 40px #ff00ff, 0 0 50px #ff00ff, 0 0 60px #ff00ff, 0 0 70px #ff00ff;
 }
 to {
   text-shadow: 0 0 20px #3498db, 0 0 30px #3498db, 0 0 40px #3498db,
     0 0 50px #3498db, 0 0 60px #3498db, 0 0 70px #3498db, 0 0 80px #3498db;
 }
}

/* bouton scroll to top */
#scrollToTopButton
 {
  position: fixed;
  bottom: 5em;
  right: 30px;
  border: 0;
  z-index: 999;
  background-color: transparent;
  opacity: 0.3;
  visibility: hidden;
  transition: opacity 0.5s;
}

#scrollToTopButton img {
    width: 6em;
	background-color: transparent;
	
}

#scrollToTopButton:hover
 {
  cursor: pointer;
  opacity: 1;
}	

var {
	font-size: 1em;
	font-family: Courier;
}

sub {
	font-size: 0.6em;
}

/* Images */
.image_cote {
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	flex-wrap: no-wrap;
	align-items: center;
	justify-content: space-evenly;
    gap: 1em;
}


.image_cote .texte{
	flex: 1 1 60%;
	flex-direction: row;
	}

.image_cote figure{
    text-align: center;
}

.image_cote img{
	flex: 1 1 40%;
	flex-grow:0;
	flex-shrink:0;	
	width: auto;
	max-width: 100%;
	box-shadow: 3px 3px 6px 5px var(--shadow-color);
}

.bloc_image {
	margin: 1em auto;
	display: flex;
	flex-direction: row;
	flex-wrap: no-wrap;
	align-items: center;
	justify-content: space-evenly;
}

.bloc_image .fig {
	flex: 1 1 content;
	text-align: center;
	margin: 0 1em;
}

.fig img{
	max-width: 100%;
	box-shadow: 3px 3px 6px 5px var(--shadow-color);
}

figcaption {
	font-size: 0.9em;
	font-style: italic;
	text-align: center;
	width: auto;
	margin-top: 0.5em;
	margin-bottom: 1em;
}

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

/* Tableaux */
table{
    margin: 1em auto;
	border-collapse: collapse;
	border-spacing:0;
	width:80%;
	border:1px solid #ccc;
	table-layout: auto;
	max-width: 100%;
	background-color: #121212;
    color: #e0e0e0;
}

tr, td {
	border:1px solid #ccc;
	text-align:center;

}

tr:nth-child(even){
	background-color:#1e293b;
}

th {
	padding:8px 8px;
	text-align:center;
	vertical-align:middle;
	white-space: normal;
	color: #ffffff;
	background-color: #1e3a8a;
	border-bottom: 2px solid #334155;
}

th:first-child, td:first-child{
	padding-left:1em;
}

td {
  padding: 10px;
  border-bottom: 1px solid #334155;
}

table tr:hover {
  background-color: #334155;
}

/* Listes déroulantes */
select {
  width: 180px;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #1565C0;       /* Bleu primaire */
  border-radius: 5px;
  font-size: 14px;
  color: white;                    /* Texte blanc pour contraste */
  background-color: #0D47A1;       /* Fond bleu foncé */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Ombre subtile */
  transition: all 0.3s ease;       /* Animation douce */
}

select:hover {
  background-color: #1565C0;       /* Éclaircit légèrement au survol */
}

select:focus {
  outline: none;
  border-color: #BBDEFB;          /* Bordure bleu clair quand sélectionné */
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.3); /* Lueur bleue */
}

option {
  padding: 8px;
  background-color: white;        /* Fond blanc pour les options */
  color: #0D47A1;                 /* Texte bleu foncé */
}

option:hover {
  background-color: #BBDEFB;      /* Survol des options en bleu très clair */
}

/* Line SOLUTION */
.solution {
    background-color: #f54927;
    margin-left: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;    
    align-items: center;
    justify-content: center;
}

.solution {
    display: none;
}

.solution:hover {
  background-color: #F4320B;
  text-decoration: none;
}


.solution:active {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
}

.solution:focus {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
}

.solution a{
    text-decoration: none;
    font-size: 1em;
    color: #f8fafc;
    cursor: pointer;
}

.solution a:hover{
    text-decoration: none;
    border-bottom: 0;
}

/* Ancres */
.anchor:target + h2,
.anchor:target + h3 {
    animation: highlight-section 1.5s ease;
}

@keyframes highlight-section {
    0% {
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(255,235,59,0);
        padding-left: 0.2em;
    }

    50% {
        background-color: var(--secondary-color);
        box-shadow: 0 0 0 10px rgba(255,235,59,0.8);
        padding-left: 1em;
    }

    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(255,235,59,0);
        padding-left: 0.2em;
    }

}

button:not(.menu-toggle, .searchButton) {
    background-color: #2563eb;
    color: #f8fafc;
    margin-left: 10px;
    padding: 12px 20px;
    border: 2px solid var(--background-color);
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 3.5rem;
}

button:not(.menu-toggle, .searchButton):hover {
  background-color: #1e40af;
}

button:not(.menu-toggle, .searchButton):focus {
  border: 2px solid var(--text-color);
}

#modal-send {
    position: fixed;
    top: 25%;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }





