html {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.3rem;
  box-sizing: border-box;
  font-family: Arial, Verdana, sans-serif;
  -webkit-overflow-scrolling: touch;
  /*pour permettre le défilemenent continu sur IOS*/
}

:root {
  /*------ENTETE ET PIED DE PAGE - COULEURS ------*/

  /*Fond de l'entete et du pied de page*/
  --entete_fond: black;

  /*Texte entete et pied de page*/
  --entete_texte: white;

  /*----- FIN ENTETE ET PIED DE PAGE - COULEURS ------*/

  /*Titres 2 à 6, puces, bordure au-dessus du titre 2, fond des tableaux et problèmes*/
  --couleur1: #2d5986;

  /*fond des tableaux et problèmes et suvol*/
  --fond_tab_pro: lightgray;
  --fond_tab_pro_hover: gray; /*survol*/
  --cellule_tab_hover: white; /*survol*/
  --couleurtexte_fond: white;

  /*Texte titre1 et caption des tableaux qui contiennent les figures*/
  --texte_titre1: white;

  /*Titre et texte du menu de navigation et couleur des cellules des problèmes*/
  --texte: white;

  /*liens visités du menu*/
  --liens_visites: yellow;

  /*liens visités  documents accompagnement*/
  --liens_visites_documents: rgb(199, 56, 37);

  /*Texte de l'article*/
  --couleur5: black;

  /* Couleur de fond de l'article*/
  --couleurfond_article: white;

  /* Couleur de fond -- nav */
  --couleurfond_nav: #2d5986;

  /* Couleur de fond -- aside */
  --couleurfond_aside: rgba(8, 112, 126, 0.959);

  /*Couleur titre des tableaux*/
  --couleurfond_titre_tableau: #2d5986;

  /*  TÉLÉPHONE */
  /*pour le menu déroulant - en gris sur le téléphone*/
  --couleurfond_menu: #f1f1f1;

  /*tous les titre2 2 à 6 et tableaux et le menu déroulant*/
  --couleurfond_titres: lightgray;

  /*   FIN TÉLÉPHONE */

  /*rayon de courbure pour les encadrés entete, titres 2 à 6, numéro de section et pied de page */
  --rayon: 0.3125rem;

  /*Les marges pour les titres */
  --margegauche_h1: 1.3rem;
  --margegauche_h2: 1.3rem;
  --margegauche_h3: 4rem;
  --margegauche_h4: 6rem;
  --margegauche_h5: 8rem;
  --margegauche_h6: 10rem;
  --couleurfond_tableau: rgb(238, 235, 235);
  /* --couleurtexte_tableau: black; */
  --ombrage_tableau: darkgray;
}

/*****************************
* NUMÉROTATION AUTOMATIQUE *
******************************/

/* numérotation des sections */

nav{
    counter-reset:niveau1 ;
}

/* Initialisation des compteurs */

article{ 
  counter-reset: h1num tabnum fignum probnum casnum;
}

article div.h1{counter-reset: h2num;}

article div.h2{counter-reset: h3num;}

/* numérotation des sections */

article div.h1 h1::before {
  counter-increment: h1num;
  content:counter(h1num)" ";
  color:white;
}

article div.h2 h2::before {
  counter-increment: h2num;
  content: counter(h1num)"."counter(h2num)" ";
  color:var(--couleur1);
}

article div.h3 h3::before {
  counter-increment: h3num;
  content: counter(h1num)"."counter(h2num)"."counter(h3num)" ";
 color:var(--couleur1);
}

/* numérotation des figures */
figure figcaption::before {
  counter-increment: fignum;
  content: "Figure "counter(fignum)" — ";
  color:white;
}

/* numérotation des tableaux */
figure.tableau figcaption::before, 
table.tableau_numéroté caption::before {
  counter-increment: tabnum;
  content: "Tableau "counter(tabnum)" — ";
  color:white;
} 


/* numérotation des problèmes */
p.num_probleme::before{
  counter-increment: probnum;
  content: "Problème "counter(probnum);
 
 }

 p.num_cas::before{
  counter-increment: casnum;
  content: "Cas "counter(casnum)" ";
}

/*******************************
* FIN NUMÉROTATION AUTOMATIQUE *
********************************/



#grid{
  height: 98vh;
  width: 100%;
  display: grid;
  grid-column-gap: 0px;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header header header"
    "nav article aside"
    "footer footer footer";
}

/*-----------ENTÊTE---------------*/
header {
  grid-area: header;
  background-color: var(--entete_fond);
  color: var(--entete_texte);
  padding: 5px 5px 25px 5px;
  border-radius: var(--rayon) var(--rayon) 0px 0px;
}

#conteneur_entete {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-content: center;
  position: relative;
}

#logo {
 max-height: 35px;
}

#titre_chapitre {
  color: var(--entete_texte);
  font-weight: bold;
  font-size: 0.9rem;
  position: absolute;
  top: 30px;
  left: 10px;
}

#lien_retour_extrait{
  color: var(--entete_texte);
  font-weight: bold;
  font-size: 0.9rem;
  position: absolute;
  top: 20px;
  right: 20px;
}

#lien_retour{
  color: var(--entete_texte);
  font-weight: bold;
  font-size: 0.9rem;
  position: absolute;
  top: 40px;
  right: 20px;
}

#lien_retour:hover {
  font-size: 1rem;
}

#form_deconnexion:hover {
  font-size: 1.3rem;
}

#form_deconnexion {
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  top: 10px;
  right: 20px;
  color: var(--entete_texte);
  text-decoration: none;
}

.dropdown {
  display: none;
}

/*---------------------MENU DE NAVIGATION (nav) ----------------*/
nav {
  grid-area: nav;
  background-color: var(--couleurfond_nav);
  width: 400px;
  border-right: 1px solid var(--texte);
  resize: horizontal;
  overflow-y: scroll;
}

nav p {
  color: var(--texte);
}

nav a {
  color: var(--texte);
  text-decoration: none;
}

nav a:visited {
  color: var(--liens_visites);
  text-decoration: none;
}

nav p:first-child,
#titre {
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  padding-top: 5px;
}

#navigation{
  padding-left: 10px;
}

nav summary::marker {
  color: white;
}

nav ul {
  list-style: none;
  margin-top: -10px;
  margin-left: -10px;
}

nav ul {
  list-style: none;
  margin-top: -8px;
  margin-left: -10px;
}

.menu_liste {
  list-style: none;
  margin-left: -27px;
  margin-bottom: 15px;
  margin-top :-8px;
}

.menu_liste_niv2 li {
  list-style: none;
  margin-left: 5px;
  margin-bottom: 5px;
}

nav details details{
  margin-left: 17px;
  margin-top: -12px;
  margin-bottom: 0px;
} 


nav details summary{
margin-bottom:10px;
}

/*-------------FIN MENU DE NAVIGATION------------------*/

/*-------------SECTION ARTICLE------------------*/
article {
  grid-area: article;
  overflow-y: scroll;
  color:black;
  background-color: var(--couleurfond_article);
  padding: 10px;
}



/*-------------DÉBUT SECTION ARTICLE------------------*/

article p img,
article ol li img {
  display: block;
  margin: 12px auto;
  max-width: 70%;
  height: auto;
}

article ul li,  article ol li {
  margin-bottom: 0.3125rem;
}

/* ajustement de la marge de la liste dans une liste */
article ol li ol li{
   margin-left: -2.3rem;
}

.avertissement_extrait::after {
  color: red;
  font-weight: bold;
  content: "Cette section n'est pas disponible ou elle est incomplète.";
}

h1 {
  background-color: var(--couleur1);
  color: var(--texte_titre1);
  border-radius: var(--rayon);
  padding: 0.15rem 0rem 0.2rem 0.5rem;
  font-size: 1.1rem;
}

h2,
h3,
h4,
h5,
h6,
dt {
  color: var(--couleur1);
  font-size: 1rem;
}

.h1  p, .h1 ul, .h1 ol{
margin-left: var(--margegauche_h1);
margin-right: 20px;
}


h2 {
  border-top: 1px solid var(--couleur1);
  padding-top: 3px;
  width: 70%;
  margin-left: var(--margegauche_h2);
  margin-right: 20px;
}

h2, .h2  p, .h2 ul, .h2 ol{
  margin-left: var(--margegauche_h2);
  margin-right: 20px;
}

h3, .h3  p, .h3 ul, .h3 ol {
  margin-left: var(--margegauche_h3);
  margin-right: 20px;
}

h4, .h4  p, .h4 ul, .h4 ol{
  margin-left: var(--margegauche_h4);
  margin-right: 20px;
}

h5, .h5  p, .h5 ul, .h5 ol {
  margin-left: var(--margegauche_h5);
  margin-right: 20px;
}

h6, h6 ~p, h6 ~ ul, h6 ~ ol {
  margin-left: var(--margegauche_h6);
  margin-right: 20px;
}

h4,h5,h6{
  margin-bottom:-10px;
}



/* ------ Les liens ------ */
article a {
  text-decoration: none;
  color: var(--couleur1);
}

article p {
  hyphens: auto;
}

/* ----------Les listes à puces -----------*/

article ul {
  list-style: square;
}

/* Colorer les puces et les numéros des listes */
article li::marker {
  color: var(--couleur1);
  font-weight: bold;
}

/* ----------FIN Les listes à puces -----------*/

/*-------------FIN SECTION ARTICLE------------------*/


/* ----------Les listes de définition -----------*/

dt {
  font-weight: bold;
  margin-left: 4rem;
  margin-bottom: 0;
}

dd {
  margin-left: 4rem;
  margin-bottom: 1rem;
  color: var(--couleur5);
}

/* ----------FIN Les listes de définition -----------*/

/*---------------début filigrane --------------*/


#filigrane p{ 
  margin: 0 auto;
  border-radius: 15px; 
  border:1px solid  var(--couleur1);
  box-shadow: 1px 1px  var(--couleur1); 
  width: 350px;
  padding:10px;
  color: red;
  opacity: 0.5;
  text-align: center;
  font-size: 2rem;
}
/*---------------fin filigrane --------------*/

/*---------------début bouton de connexion --------------*/
.form_connexion_btn {
  display: inline-block;
  margin-top: 15px;
  margin-right: 15px;
  font-weight: bold;
  color: black;
  text-decoration: none;
  border: 1px solid white;
  border-radius: 5px;
  padding: 3px;
  width: 150px;
  height: 20px;
  text-align: center;
  background-color: lightgray;
}

.form_connexion_btn:hover {
  background-color: white;
}

/*---------------fin bouton de connexion --------------*/





/*-------------DÉBUT SECTION ASIDE------------------*/

aside {
  grid-area: aside;
  background-color: var(--couleurfond_aside);
  padding: 0px 10px;
  min-width: 260px;
  resize: horizontal;
  overflow-y: scroll;
}

aside p {
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  padding-top: 5px;
  color: var(--texte);
}

aside a {
  color: var(--texte);
  text-decoration: none;
}

aside a:visited {
  color: var(--liens_visites);
}

aside ul {
  list-style-type: square;
  color: var(--texte);
  margin-top: 5px;
  margin-left: -30px;
}

aside ul li {
  margin-top: 5px;
}

aside p.note_freeplane{
   text-align: left;
   font-size:.9rem;
   font-weight: normal;
 
 }

/*-------------FIN SECTION ASIDE------------------*/

/*-------------SECTION PIED DE PAGE------------------*/

footer {
  grid-area: footer;
  background-color: var(--entete_fond);
  color: var(--entete_texte);
  font-size: 0.9rem;
  border-radius: 0px 0px var(--rayon) var(--rayon);
  padding: 5px;
  display:flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

footer div p {
  text-align: center;
  margin: 0;
}


.btn_navigation{
  padding:2px;
  border-radius: 5px;
  min-width: 150px;
  background-color: var(--couleurfond_nav);
  margin-top: 10px;
  font-size: 1rem;
}

footer a {
  color: white;
  text-decoration: none;
}

/*-------------SECTION PIED DE PAGE------------------*/


/* ----------Les équations -----------*/
.encart_equation{
  min-width: 50%;
  background-color: var(--couleurfond_titres);
  max-width: 90%;
}

.equation {
  font-style: italic;
  font-weight: bold;
  font-size: 1rem;
  max-width: 100%;
  padding: 10px;
}

/*variables des formules en italique, gras bleus qui sont dans le texte */
var {
  color: var(--couleur1);
  font-weight: bold;
  font-style: italic;
}

/* ---------- FIN Les équations -----------*/

/* ---------------- DÉBUT Les équations numérotées -------------------*/
.equation_no {
  padding: 6px;
  margin: 0 auto;
  border: 1px solid black;
  min-width: 50%;
  max-width: 90%;
}

.equation_no caption {
  background-color: var(--couleur1);
  color: var(--couleurtexte_fond);
  padding: 2px 6px;
  font-weight: bold;
}

.equation_tableau_intérieur {
  margin: 0 auto;
  font-style: italic;
  font-weight: bold;
}

/* ----------------FIN Les équations numérotées -------------------*/

/* ------------ALIGNEMENT ET BORDURE ----------------*/

.aligne_droite {
  text-align: right;
}

.aligne_gauche {
  text-align: left;
}

.aligne_centre {
  text-align: center;
}

.bordure_bas {
  border-bottom: 1px solid black;
}

.cercle {
  margin-left: calc((100% - 22px) / 2);
  width: 22px;
  height: 20px;
  line-height: 14px;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  color: #fff;
  background: var(--couleurfond_titres);
}

/* ------------FIN ALIGNEMENT ET BORDURE ----------------*/

/*Tableau début */

table {
  border-collapse: collapse;
  margin: 15px auto;
}


/*Pour les tableaux de données dans les problèmes DÉBUT */
.tableau_resume, .tableau_numéroté, .tab_prob{
  box-shadow: 5px 5px 5px darkgray;
  min-width: 50%;
  max-width: 90%; 
}

.tableau_numéroté{
  border: 1px solid black;
}
.tableau_resume caption, .tableau_numéroté caption, .tab_prob caption{
  background-color: var(--couleur1);
  color: var(--texte);
  font-weight: bold;
  padding: 3px;
  border:1px solid var(--couleur1);
  text-align: left;
}

.tableau_resume, .tableau_numéroté thead, .tab_prob thead{
  background-color: lightgray;
  border: 1px solid black;
}

.tab_prob tbody{
  border: 1px solid black;
}

.tab_prob tbody tr td{
  padding:5px 10px;
}


.tableau_resume
.tab_prob td,
.tableau_numéroté td {
  padding: 5px 10px;
}


.tab_prob tr:hover td,
/* .tableau_numéroté tr:hover, */
.tableau_numéroté tr:hover .equation {
  background-color: var(--couleur1);
  color: white;
 color: var(--cellule_tab_hover);
} 

.tableau_entete_gris thead {
  background-color: rgb(230, 230, 230);
  border-bottom: 1px solid black;
}

.tableau_corps_gris tbody {
  background-color: rgb(230, 230, 230);
}

/* Décaler les cellules de la première colonne */
.tableau_numéroté tbody tr td:first-child {
  padding-left: 5px;
}

.tableau_numéroté img {
  max-width: 100%;
  height: auto;
}
/*Pour les tableaux et figures numérotées FIN*/

/* Pour les tableaux résumé des ratios chapitre 2 */
.tab_ratios {
  /*  color: var(--couleurfond_titre_tableau); */
  padding: 6px;
  margin: 0 auto;
  min-width: 350px;
  border: 1px solid black;
  box-shadow: 5px 5px 5px lightslategray;
  max-width: 100%;
}

.tab_ratios caption {
  font-weight: bold;
  font-size: 0.9rem;
}

.tab_ratios thead {
  background-color: var(--couleurfond_titre_tableau);
  color: var(--couleurtexte_fond);
}
.bordure td {
  border: 1px solid black;
}

.col_largeur_fixe {
  max-width: 60%;
  table-layout: fixed;
}

.ligne_verticale td,
.ligne_verticale th {
  border-right: 1px solid black;
  padding: 2px 5px;
}

.ligne_noire td,
.ligne_noire th {
  padding: 2px 5px;
  border: 1px solid black;
}

.col1gauche td:first-child {
  text-align: left;
}

.col2droite td:nth-child(n + 2) {
  text-align: right;
}

.col3droite td:nth-child(n + 3) {
  text-align: right;
}

/* ajustement des chiffres sans symbole monétaire à compter de la colonne 2  et autres */
.col2droite_espace td:nth-child(n + 2) {
  padding-right: 12px;
  text-align: right;
}

/* ajustement des chiffres sans symbole monétaire à compter de la colonne 3 et autres */
.col3droite_espacesouli td:nth-child(n + 3) {
  padding-right: 12px;
  text-align: right;
}

/*ajuster les chiffres avec symbole monétaire , s'applique sur la balise TR*/
.monnaie td:nth-child(n + 2) {
  text-align: right;
  padding-right: 0px;
}

/* ajuster les chiffres négatifs à compter de la colonne 2 et autres */
.chiffres_négatifs_2col td:nth-child(n + 2) {
  text-align: right;
  padding-right: 8px;
  color: red;
}

/* ajustement des chiffres négatifs à compter de la colonne 3 et autres */
.chiffres_négatifs_3col td:nth-child(n + 3) {
  text-align: right;
  padding-right: 8px;
}

/* aligner les cellules à droite pour les colonnes 2 suivantes */
.col2centre td:nth-child(n + 2) {
  text-align: center;
}

/* aligner au centre toutes les cellules */
.colcentre td {
  text-align: center;
}

.coldroite_espace td:last-child {
  padding-right: 10px;
}

.colgauche_espace td:first-child {
  padding-left: 10px;
}

/*décaler le contenu des cellules à droite*/
.décaler_droite20 {
  padding-left: 20px;
}

.décaler_droite66 {
  padding-left: 66px;
}

.alterne tr:nth-child(even) {
  background-color: lightgrey;
}

.petite_police thead .petite_police tbody,
.petite_police tfoot {
  font-size: 0.7rem;
}

.gras {
  font-weight: bold;
  color: var(--couleur1);
  margin-bottom: -10px;
}

.soulignement {
  text-decoration: underline;
}

.soulignement_double {
  text-decoration-line: underline;
  text-decoration-style: double;
}

.indent {
  text-indent: 15px;
}

.section {
  text-indent: 5px;
}

td ul {
  margin: 0;
  text-indent: -5px;
}

.ligne_total_gras {
  font-weight: bold;
}

/* Ajuste la hauteur pour permettre de dégager la ligne de totalisation */
.derniere_ligne {
  height: 35px;
  vertical-align: top;
}

/*------TABLEAUX-----*/

.encart_gris {
  background-color: var(--couleurfond_titres);
  margin-left: var(--margegauche_h2);
  margin:auto;
  max-width: 90%;
}

.encart_gris tbody tr td ol {
  margin-left: -12px;
}

.tableau_resume p{
   margin-left: 10px;
}
.tableau_resume td ul {
  margin-left: 30px;
}

.tableau_resume ul li{
  list-style-type:square;
}

.soustitretableau {
  font-weight: bold;
}

.tableau_donnees_probleme td,
.tableau_donnees_probleme th {
  border: 1px solid black;
  background-color: lightgray;
  padding:5px 10px;
}

.tableau_donnees_probleme thead th{
  text-align: center;
  background-color: var(--couleur1);
  color:white;
}

/*------FIN LES TABLEAUX-----*/


/*------DÉBUT LES FIGURES-----*/

/* Pour les figures numérotés et les tableaux numérotés*/
figure {
 background-color: var(--texte);
  border: 1px solid var(--couleur1); 
  box-shadow: 5px 5px 5px darkgray;
  text-align: center;
  width: fit-content;
  margin: 10px auto 10px auto; 
}

figcaption {
  background-color: var(--couleur1);
  color: var(--texte_titre1);
  text-align: left;
  font-weight: bold;
  padding: 5px;
}

figure img {
  padding:10px 5px;
  height: auto;
  object-fit: contain;
}

/*------FIN LES FIGURES-----*/

/* -----------------CSS pour les boutons de la calculatrice SHARP -----------------*/

.image_bouton {
  border: 1px solid black;
  padding: 0px 1px 0px 1px;
  border-radius: 2px;
  font-size: 0.8em;
  font-weight: bold;
}

/* colorer le fond de la touche 2ndF en orange */
.fond_orange {
  background-color: orange;
  padding: 0px 10px 0px 10px;
}

/* colorer les fonds des touches flèches en gris  */
.fond_gris {
  background-color: #ddd;
}

.fond_blanc {
  background-color: var(--couleurtexte_fond);
  padding: 0px 3px 0px 3px;
}

.orange_typo {
  color: #cc5200;
  background-color: #f5f5ef;
  padding: 0px 10px 0px 10px;
}

.fond_noir {
  color: var(--couleurtexte_fond);
  background-color: black;
}

.fond_rouge {
  color: var(--couleurtexte_fond);
  background-color: #990000;
  padding: 0px 10px 0px 10px;
}

.fond_vert {
  color: var(--couleurtexte_fond);
  background-color: green;
  padding: 0px 10px 0px 10px;
}

.typo_vert {
  color: green;
  background-color: rgb(230, 230, 230);
  padding: 0px 10px 0px 10px;
}

/* -----------------FIN CSS pour les boutons de la calculatrice SHARP -----------------*/

/*------------------ DÉBUT QUESIONS DE FIN DE CHAPITRE ------------------*/

ol.questions_fin_chapitre {
  margin-left: var(--margegaucheliste);
}
/*------------------ FIN QUESIONS DE FIN DE CHAPITRE ------------------*/

/* ------------------DÉBUT LES PROBLÈMES -----------------*/

article .section_probleme {
  margin-top: 20px;
  margin-left: 0px;
  padding-top: 3px;
  border-top: 1px solid var(--couleur1);
  width: 70%;
}

article .section_probleme,
article .num_probleme,
article .num_cas,
article .travail_a_faire {
color: var(--couleur1);
font-weight: bold;
}

p.num_probleme, p.num_cas{
  
  background-color: lightgray;
  padding: 2px 5px;
  border-radius:5px;
  width:30%;
 
}


.remarques {
  font-weight: bold;
  font-style: italic;
  color: var(--couleur1);
}

ol li {
  margin-left: 40px;
  color: var(--couleur5);
}

.num_probleme,
.travail_a_faire,
.remarques {
  margin-bottom: -10px;
}

/* ------------------FIN LES PROBLÈMES -----------------*/

/*----------Notes de bas de page ---------------*/

hr.regle_note_bas_page {
  margin-left: var(--margegauche);
  max-width: 30%;
  border: 1px solid var(--couleur1);
}

ol.note_bas_page {
  font-size: 0.9rem;
  margin-left: 0rem;
}

ol.note_bas_page li a {
  text-decoration: none;
  font-size: 0.9rem;
}

a:hover {
  font-weight: bold;
}

/*Pour décaler l'affichage des titres lors de la sélection dans le menu*/

:target {
  display: block;
  position: relative;
  top: -15px;
  visibility: hidden;
}

/*---------- FIN Notes de bas de page ---------------*/

/*----------MISE EN PAGE TABLETTE ---------------*/

@media only screen and (min-width:830px) and (max-width: 1300px) and (orientation: landscape){
  html {
    font-size: 1.1rem;
  }
}

@media only screen and (max-width:830px) and (orientation: portrait){
  html {
    font-size: 1.1rem;
  }

  #grid{
    text-size-adjust: none;
    height: 90vh;
    width: 100%;
    display: grid;
    grid-gap:3px;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      "header"
      "article"
      "aside"
      "footer";
    }


    article{
      overflow-y: scroll;
    }


  #accueil {
    color: red;
  }

  .form_connexion_btn {
    display: none;
  }

 #lien_retour,
  #form_deconnexion {
    display: none;
  }

  nav, #cacher_menu, #cacher_documents{
    display: none;
  }

  aside{
    border-radius:var(--rayon);
    padding: 0px 15px;
  }

  aside p{
    margin:0;
     font-size: 1.1rem;
  }

  aside ul{
    display:flex;
    flex-wrap: wrap;
    list-style-type: none;
    justify-content: space-around;
  }

  article {
    margin: 0;
    border-radius: 5px;
    border-color: #990000;
    overflow-y: scroll;
  }

  header {
    border-radius: var(--rayon);
  }

  footer {
    border-radius: var(--rayon);
    background-color: var(--entete_fond);
    color: var(--entete_texte);
    height: 50px;
  }

  footer div{
    margin:auto;
    margin-top: 5px;
  }



  article p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    height: auto;
  }

  #titre {
    padding-top: 0;
  }

  .encart_equation{
  min-width: 70%
}

  .tab_prob,
  .tab_ratios,
  .tableau_numéroté {
    max-width: 90%;
  }

  /* LE MENU DÉROULANT */
  .dropbtn {
    cursor: pointer;
    margin-top: 25px;
  }

  /*The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    top: -20px;
    display: inline-block;
  }

  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    right: 0px;
    background-color: var(--couleurfond_menu);
    min-width: 300px;
    font-size: 0.9rem;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 1);
    z-index: 1;
  }

  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 4px 15px;
    table-layout: auto;
    text-decoration: none;
    display: block;
  }

  /* Changer la couleur des liens au survol (hover) */

  .dropdown-content a:hover {
    background-color: #ddd;
  }

  /* Afficher le menu au survol (hover)*/
  .dropdown:hover .dropdown-content {
    display: block;
  }

  #accueil a:hover {
    color: red;
    font-weight: bold;
    border-top: 1px solid black;
    margin-top: 0;
  }

  .equation_no {
    max-width: 90%;
  }

  #filigrane p{ 
  width: 200px;  
  font-size: 1rem;
}

}

/*---------- FIN DE LA MISE EN PAGE TABLETTE ---------------*/

@media only screen and (max-width: 700px) and (orientation: portrait){
  aside{
    display: none;
  }
}

/* NE PAS AFFICHER SI ON DEMANDE D'IMPRIMER */
@media print {
  html {
    display: none;
  }

  /*header{display:none;}
	h2, .tableau_resume {page-break-before: always;}*/
}
