﻿/*CSS principal*/
html {
  height: 100%;
}
body {
	min-height: 100%;
	width:90%;
	margin:auto;
	background-color:darkgrey;
	font-family: Calibri,verdana,arial,serif;
	font-size:14px;
}

body.mainpage {
	min-height: 100%;
	width:100%;
	margin:auto;
	background-color:white;
	font-family: Calibri,verdana,arial,serif;
	font-size:14px;
}

header{
	background-color:white;
	display:block;
	width:90%;
	position:fixed;
	height:40px;
	top:0;
}
section{
	position:fixed;
	top:40;
	bottom:25px;
	width:90%;
	background-color:white;
	overflow:auto;
}
section p{
	margin-left:30px;
}
footer{
	background-color:white;
	width:90%;
	position:fixed;
	height:30px;
	bottom:0;
	border-top: 4px solid black;
	vertical-align:middle;
}


/*CSS principal*/

h1
{
	font-size: 24px;
	font-weight:normal;
	font-family:calibri,verdana,arial,serif;
	text-align:center;
	border:3px double;
	background-color:lightgrey;
	width: 95%;
	margin:auto;
	word-wrap: break-word;
	margin-top:10px;
	margin-bottom:10px;
	padding:5px;
}

#solution{
	background-color:IndianRed;
	display:none;

}

.consigne{
	font-weight:bold;
	font-size:15px;
	text-decoration : underline;
	margin-bottom:5px;
	margin-top:5px;
	word-break:normal;
}

.souligne{
	text-decoration : underline;
}

.petite_police{
	font-size:11px;
}

.breaknorm{

	word-break:normal;

}

.barre{

	text-decoration:line-through;

}

.tableau{
	display:table;
	background-color:none;
	width:100%;
	margin:auto;
	table-layout: fixed;
	padding:0;
}
.colonne{
	display:table-cell;
	word-break:break-all;
	padding-top:0px;
}
#tableau_exo {
	counter-reset: exo;
} /* on initialise et nomme un compteur */

ol {
    display: block;
    list-style-type: lower-alpha;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 15px;
    padding-inline-start: 5px;
}

ol.numero_exo li {
	list-style-type: none;
	counter-increment: exo; /* on incrémente le compteur à chaque nouveau li */
	margin-bottom: 20px;
	line-height:2;
}
ol.numero_exo li:before {
	content: counter(exo); /* on affiche le compteur */
	padding: 4px;
	margin-right: 8px;
	Width:18px;
	Height:18px;
	display:inline-block;
	text-align:center;
	border-radius: 100%;
	line-height:18px;
	vertical-align: top;
	background: black;
	color: white;

}

#tableau_solution {
	counter-reset: sol;
} /* on initialise et nomme un compteur */

ol.numero_sol li {
	list-style-type: none;
	counter-increment: sol; /* on incrémente le compteur à chaque nouveau li */
	margin-bottom: 20px;
	line-height:2;
}
ol.numero_sol li:before {
	content: counter(sol); /* on affiche le compteur */
	padding: 4px;
	margin-right: 8px;
	Width:18px;
	Height:18px;
	display:inline-block;
	text-align:center;
	border-radius: 100%;
	line-height:18px;
	vertical-align: top;
	background:red;
	color: white;

}

#formulaire{
	margin:auto;
	text-align:center;
}
/*Liste Générateur*/

p.important {
    font-weight: bold;
    color: red;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-family: Calibri, verdana, arial, serif;
}

.navigation {
    margin: auto;
    padding: 0;
    list-style: none;
    background: none;
    color: transparent;
    width: auto;
    font: 1.2em Calibri, sans-serif;
    text-align: center;
}

.navigation a,
.navigation span {
    display: block;
    padding: 4px 10px;
    color: #fff;
    text-decoration: none;
}

.navigation .toggleSubMenu a,
.navigation .toggleSubMenu span {
    background-color: #729EBF;
    background-image: -webkit-linear-gradient(top, #729EBF 0%, #333A40 100%);
    background-image: linear-gradient(to bottom, #729EBF 0%, #333A40 100%);
    border-radius: 6px;

}

.navigation .toggleSubMenu a:hover {
    background-color: #999;
}

.subMenu a:hover,
.subMenu a:focus,
.subMenu a:active {
    color: white;
}

.navigation .subMenu {
    font-size: 0.9em;
    background: #444;
    font-size: 0.9em;
    margin: 0;
    padding: 0;
    border-radius: 6px;

}

.navigation ul.subMenu a {
    background: #444;
    box-shadow: none;
}

.lien {
    color: black;
}

.lien:hover {
    color: green;
    text-decoration: underline;
    text-decoration-style: double;
    font-style: italic;
}

.lien:active {
    color: blue;
    font-weight: bold;
}

#premiere {
    display: inline-block;
    padding: 25px;
    width: 25%;
    text-align: center;
    vertical-align: top;
}

#deuxieme {
    display: inline-block;
    padding: 25px;
    width: 25%;
    text-align: center;
    vertical-align: top;
}

#troisieme {
    display: inline-block;
    padding: 25px;
    width: 25%;
    text-align: center;
    vertical-align: top;
}

.divcenter {
    display: block;
    text-align: center;
}

h2 {
    font-size: 18px;
    padding: 5px;
    margin: 0px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: calibri, verdana, arial, serif;
    text-align: center;
    color: white;
    text-transform: uppercase;
    background-color: black;
    border: 2px solid grey;
    border-radius: 5px;
}

.description {
    display: block;
    width: 33%;
    text-align: center;
    vertical-align: top;
    margin: auto;
}

/*Bannière*/

#menu li {
	display: inline-block;
	list-style: none; /* nécessaire pour IE7 */ 
}

#menu {
	padding: 0;
	width:90%;
	margin: auto;
	text-align:center;
	position:fixed;
	border: 1px solid #333;
	border-top-color: #707070;
	background-color: #5E5E5E;
	background: -moz-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
	background: -webkit-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
	background: -ms-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
	background: -o-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
	background: linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
	height: 36px;
	-webkit-box-shadow: 0 1px 3px #999;
	-moz-box-shadow: 0 1px 3px #999;
	box-shadow: 0 1px 3px #999;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}
#menu a {
	height: 36px;
	margin:0;
	padding: 0 35px;
	line-height: 36px;
	border-left: 1px solid #555;
	border-right: 1px solid #888;
	text-decoration: none;
	color: white;
	text-shadow: -1px -1px 0 #444;
	font-family: Helvetica, Arial, Verdana, sans-serif;
	font-size: 1em;
}

#menu .menu-count-item {
    padding: 0 10px;
}

.menu-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-left: 1px solid #555;
    border-right: 1px solid #888;
    color: white;
    text-shadow: -1px -1px 0 #444;
    font-family: Helvetica, Arial, Verdana, sans-serif;
    font-size: 0.95em;
    font-weight: bold;
    background-color: #5E5E5E;
    background: -moz-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    background: -webkit-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    background: -ms-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    background: -o-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    background: linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    border-radius: 6px;
}

.menu-count__input {
    width: 72px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #b9c8e4;
    border-radius: 999px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    text-align: center;
}

.menu-count__input:focus {
    outline: 2px solid rgba(31, 78, 216, 0.22);
    border-color: #1f4ed8;
}

#menu a:hover,
#menu a:focus {
	background-color: #3E3E3E;
	background: -moz-linear-gradient(bottom , #444444 0pt, #3E3E3E 50%, #505050 51%, #606060 100%) repeat scroll 0 0 transparent;
	background: -webkit-linear-gradient(bottom , #444444 0pt, #3E3E3E 50%, #505050 51%, #606060 100%) repeat scroll 0 0 transparent;
	background: -ms-linear-gradient(bottom , #444444 0pt, #3E3E3E 50%, #505050 51%, #606060 100%) repeat scroll 0 0 transparent;
	background: -o-linear-gradient(bottom , #444444 0pt, #3E3E3E 50%, #505050 51%, #606060 100%) repeat scroll 0 0 transparent;
	background: linear-gradient(bottom , #444444 0pt, #3E3E3E 50%, #505050 51%, #606060 100%) repeat scroll 0 0 transparent;
	text-shadow: -1px -1px 0 #000;
}

/*Code propres au JS*/

.sol{
	color:red;
	font-weight:bold;
}

.solverte{
	color:green;
	font-weight:bold;
}

.solbleue{
	color:blue;
	font-weight:bold;
}

.indice_rouge{
	color:red;
	font-size:11px;	
}

.stylegraph {
    pointer-events: none;
    margin: auto;
    width: 200px;
    height: 200px;
}

.img {
    text-align: center;
    margin: auto;
    padding: 5px;
}

.center {
    text-align: center;
}

span.frac {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

/*Police fractions*/

span.frac > sup,
span.frac > sub {
    display: block;
    font: inherit;
    padding: 0 0.3em;
}

span.frac > sup {
    border-bottom: 0.08em solid;
}

span.frac > span {
    display: none;
}

span.fracparenthese {
    vertical-align: bottom;
    font-size: 33px;
    font-weight: lighter
}

/*Police radicaux*/

.radical {
    font-size: 14px;
    font-family: Calibri;
    text-decoration: overline;
}

.radicalsymb {
    font-size: 14px;
    font-family: Cambria;
}

/*Alternative Radical */
.root {
  display: inline-block;
  vertical-align: middle;
  border-top: 1px solid;
  border-left: 1px solid;
  transform: skew(-15deg);
  transform-origin: bottom left;
  margin: 0 10px;
  position: relative;
}

.root:before {
  content: "";
  position: absolute;
  bottom: 0;
  height: 40%;
  width: 5px;
  left: -5px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: skew(30deg);
  transform-origin: bottom right;
}

.radicand {
  display: inline-block;
  padding-left: 0.5em;
  transform: skew(15deg);
}

/*Police radicaux en fractions*/

span.fracrad {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

span.fracrad > sup,
span.fracrad > sub {
    display: block;
    font: inherit;
    padding: 3 0.3em;
}

span.fracrad > sup {
    border-bottom: 0.08em solid;
}

span.fracrad > span {
    display: none;
}

span.fracparenthese {
    vertical-align: bottom;
    font-size: 33px;
    font-weight: lighter
}

/*Tableau Principal Exo (début)*/
	table#tableau_principal_exo,#tableau_principal_sol {
		margin: auto;
		border-collapse: collapse;
		width: 90%;
	}

	tr.tr_principal {
		height:50px;
	}

	td.td_principal_exo {
		text-decoration: none;
		font-weight: normal;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid;
		text-align: center;
		min-width: 80px;
	}
	td.td_principal_petit {
		text-decoration: none;
		font-weight: normal;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid;
		text-align: center;
		min-width: 80px;
        width:10%
	}
	td.td_principal_left {
		text-decoration: none;
		font-weight: normal;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid;
		text-align: left;
		min-width: 80px;
	}
	td.td_principal_exo_gras {
		text-decoration: none;
		font-weight: normal;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid;
		border-right:3px solid;
		text-align: center;
		min-width: 80px;
	}
	
	td.td_principal_sol {
		text-decoration: none;
		font-weight: normal;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid;
		text-align: center;
		min-width: 80px;
	}	
	
	td.td_principal_sol_gras {
		text-decoration: none;
		font-weight: normal;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid;
		border-right:3px solid;
		text-align: center;
		min-width: 80px;
	}

	th.th_principal_exo {
		text-decoration: none;
		font-weight: bold;
		color: white;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid black;
		background-color: grey;
		text-align: center;
	}	
	
	th.th_principal_exo_gras {
		text-decoration: none;
		font-weight: bold;
		color: white;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid black;
		border-right:3px solid black;
		background-color: grey;
		text-align: center;
	}

	th.th_principal_sol {
		text-decoration: none;
		font-weight: bold;
		color: white;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid black;
		background-color: IndianRed;
		text-align: center;
	}
	
	th.th_principal_sol_gras {
		text-decoration: none;
		font-weight: bold;
		color: white;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid black;
		border-right:3px solid black;
		background-color: IndianRed;
		text-align: center;
	}
	
	td.1er_td{
		border: 1px solid black;
	}
	
	.numero{
		font-weight:bold;
		text-align:right;
	}
/*Tableau Principal Exo (fin)*/


/*Tableau standard*/
	table{
		margin:auto;
	}
	td{
		font-size: 14px;
		padding:5px;
	}
	
	td.center{
		font-size: 14px;
		padding:5px;
		text-align:center;
		vertical-align:middle;
		font-weight:bold;
	}

	
/*Tableau diagramme*/
	table.tab_diagramme {
		margin: auto;
		border-collapse: collapse;
		width: 70%;
	}

	tr.tab_diagramme {
		height:50px;
	}

	td.tab_diagramme {
		text-decoration: none;
		font-weight: normal;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid;
		text-align: center;
		min-width: 80px;
		word-break:normal;
	}

	th.tab_diagramme {
		text-decoration: none;
		font-weight: bold;
		color: white;
		font-size: 14px;
		font-family: Calibri;
		padding-right: 5px;
		padding-left: 5px;
		border: 1px solid black;
		background-color: grey;
		text-align: center;
		word-break:normal;
	}

/*Écriture consigne texte long*/

.txt_long{
	word-break:normal;
}

/*Tableau Horner*/

table.horner {
    border-collapse: collapse;
    color: red;
    font-weight: bold;
    width: auto;
}

td.horner {
    color: red;
    font-weight: bold;
    text-align: center;
    border: 1px solid;
    padding: 0px;
    width: auto;
    min-width: 40px;
    height: auto;
}

/*Tableau Mise en équation*/

table.misequation {
    margin: auto;
    border-collapse: collapse;
	width:100%;
}

td.misequation {
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: red;
    font-family: Calibri;
    padding: 5px;
    border: 1px solid red;
    height: auto;
    width: 33%;
	text-align: center;
}

th.misequation {
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid red;
    background-color: red;
    text-align: center;
    height: auto;
}

/*Tableau Sans Brodure ==> orthographe à corriger dans quelques programmes mais lesquels ?*/

table.tab_sans_brodure {
    border-collapse: collapse;
    width: 100%;
}
td.tab_sans_brodure {
    vertical-align:top;
}

/*Tableau Sans Bordure*/

table.tab_sans_bordure {
    border-collapse: collapse;
    width: 100%;
}
td.tab_sans_bordure {
    vertical-align:top;
}

/*Tableau Multiplication écrite*/

table.mult_ecrite {
    border-collapse: collapse;
    width: 100%;
}
td.mult_ecrite {
    vertical-align:top;
	border-left: 1px dashed black;
}

/*Tableau Dévelopemment Equations avec fleche*/

table.tab_equation {
    border-collapse: collapse;
    width: auto;
}
td.tab_equation {
    color:red;
	font-weight:bold;
	text-align:center;
	vertical-align:middle;
	padding:5px;
	border:0px solid red
}

/*Tableau Dévelopemment Fraction fleche*/

table.tab_frac_fleche {
    border-collapse: collapse;
    width: auto;
}
td.tab_frac_fleche {
    color:red;
	font-weight:bold;
	text-align:center;
	vertical-align:middle;
	padding:1px;
	border:0px solid red
}

/*Tableau de Correspondance Horizontal*/

table.tab_corr {
    margin: auto;
    border-collapse: collapse;
    width: auto;
    margin-bottom: 20px;
    margin-top: 20px;

}

td.tab_corr {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid black;
    height: auto;
    text-align: center;
    min-width: 30px;

}

th.tab_corr {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid black;
    height: auto;
    background-color: grey;
    text-align: center;
    min-width: 30px;

}

/*Tableau de Correspondance Vertical Bleu*/

table.tab_corr_bleu {
    margin: auto;
    border-collapse: collapse;
    width: auto;
    margin-bottom: 20px;
    margin-top: 20px;

}

td.tab_corr_bleu {
    text-decoration: none;
	color:blue;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid blue;
    height: auto;
    text-align: center;
    width: 50px;
	height:30px;
}

th.tab_corr_bleu {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid blue;
    height: auto;
    background-color: blue;
    text-align: center;
    width: 50px;
	height:20px;
}

/*Tableau de Correspondance Vertical Rouge*/

table.tab_corr_rouge {
    margin: auto;
    border-collapse: collapse;
    width: auto;
    margin-bottom: 20px;
    margin-top: 20px;

}

td.tab_corr_rouge {
    text-decoration: none;
	color:red;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid red;
    height: auto;
    text-align: center;
    width: 50px;
	height:30px;

}

th.tab_corr_rouge {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid red;
    height: auto;
    background-color: red;
    text-align: center;
    width: 50px;
	height:20px;

}

/*Tableau de Correspondance Vertical Vert*/

table.tab_corr_vert {
    margin: auto;
    border-collapse: collapse;
    width: auto;
    margin-bottom: 20px;
    margin-top: 20px;

}

td.tab_corr_vert {
    text-decoration: none;
	color:green;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid green;
    height: auto;
    text-align: center;
    width: 50px;
	height:30px;
}

th.tab_corr_vert {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid green;
    height: auto;
    background-color: green;
    text-align: center;
    width: 50px;
	height:20px;
}

/* écriture nombre périodiques */
.periode {
    font-size: 14px;
    font-family: Calibri;
    text-decoration: overline;
}

/*soulignement des opérations prioritaires*/
.pemdas {
    border-bottom: 2px red;
    border-bottom-style: dotted;
}

/*Encadrement réponse finale*/
.final {
    border: 1px solid red;
    padding: 6px;
	
}

/*Encadrement réponse finale*/
.finalbleu {
    border: 1px solid blue;
    padding: 6px;
	
}

/*Encadrement réponse finale d'un fraction*/
.final_frac {
    border: 1px solid red;
    padding: 5px;
	padding-bottom:20px;
	padding-top:20px;
}

/*valeur numérique polynome*/
table.vpn {
    border-collapse: collapse;
    width: auto;
    float: left;
}

td.vpn {
    width: 200px;
}


/* Addition de polynomes*/

table.addpoly {
    margin: auto;
    border-collapse: collapse;
    color: red;
    font-weight: bold;
    width: auto;
    border: hidden;
    margin-top: 25px;
    margin-bottom: 25px;
}

td.addpoly {
    color: red;
    font-weight: bold;
    text-align: center;
    border: 1px dotted;
    padding: 0px;
    width: auto;
    min-width: 45px;
    height: auto;
}

td.addpolydown {
    color: red;
    font-weight: bold;
    text-align: center;
    border: 1px dotted;
    border-top: 3px solid;
    padding: 0px;
    width: auto;
    min-width: 45px;
    height: auto;
}

td.addpolyup {
    color: red;
    font-weight: bold;
    text-align: center;
    border: 1px dotted;
    border-bottom: 3px solid;
    padding: 0px;
    width: auto;
    min-width: 45px;
    height: auto;
}

/*Tableau Recherche de diviseur & valeur numérique*/
table.rdp {
    border-collapse: collapse;
    height: auto;
}

table.rdp2 {
    border-collapse: collapse;
    height: auto;
}

td.rdp {
    height: auto;
    padding-bottom: 10px;
	width:100px;
}

td.rdp2 {
    height: auto;
    padding-bottom: 10px;
	width:140px;
}

/*Fleche sur Vecteur*/
.vecteur {
    position: relative;
    display: inline-block;
    text-indent: 0px;
    font-size: 10px;
}

.vecteur:after {
    position: absolute;
    display: block;
    font-family: cambria;
    content: '→';
    top: -0.6em;
    left: 0.15em;
}

/*Accent circonflexe sur lettre*/
.circonflexe {
    position: relative;
    display: inline-block;
    text-indent: 0px;
}

.circonflexe:after {
    position: absolute;
    display: block;
    font-family: cambria;
    content: '^';
    top: -0.45em;

}

/* tableau proportions*/


td.propk {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    height: auto;
    min-width: 30px;

}

td.propfleche {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    height: auto;
}
table.prop {
    margin: left;
    border-collapse: collapse;
    width: auto;
}
td.prop {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    height: 40px;
    border: 1px solid;
    text-align: center;
    min-width: 30px;

}

table.petitab {
    margin: auto;
    border-collapse: collapse;
    width: auto;
}

td.petitab {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid;
    text-align: center;
    height: 40px;

}

th.petitab {
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid black;
    background-color: grey;
    text-align: center;
    height: auto;
}

table.petitabsol {
    margin: auto;
    border-collapse: collapse;
}

td.petitabsol {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    color: red;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid red;
    text-align: center;
    height: 40px;
    vertical-align: top;
}

th.petitabsol {
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid red;
    background-color: red;
    text-align: center;
    height: auto;
}

table.petitabsol {
    margin: auto;
    border-collapse: collapse;
}

td.petitabsol {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    color: red;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid red;
    text-align: center;
    height: 40px;
    vertical-align: top;
}

th.petitabsol {
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 1px solid red;
    background-color: red;
    text-align: center;
    height: auto;
}

table.carre_magique {
    margin: auto;
    border-collapse: collapse;
    
}

td.carre_magique {
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    color: black;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    border: 2px solid black;
    text-align: center;
    height: 50px;
    width: 50px;
    vertical-align: middle;
}

table.pyramide {
    margin: auto;
}

td.pyramide {
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    color: black;
    font-family: Calibri;
    border: 1px solid black;
    text-align: center;
    height: 50px;
	max-width:30px;
    min-width:30px;
    vertical-align: middle;

}
td.pyramide2 {
    height: 50px;
}

table.tab_sig {
    border-collapse: collapse;
    margin: auto;
    width: auto;

}

tr.tab_sig {
    border: 1px solid black;
}

td.tab_sig {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    text-align: center;
    min-width: 30px; 

}

td.tab_sig_col1 {
    border: 1px solid black;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
	color:white;
    font-family: Calibri;
    padding-right: 5px;
    padding-left: 5px;
    text-align: center;
    min-width: 40px;
	background:grey;
}

table.videgauche {
    margin: left;
    border-collapse: collapse;
    width: 100%;
}

td.videgauche {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 2px;
    padding-left: 2px;
    height: auto;
}
table.systeme {
    margin: left;
    border-collapse: collapse;
    width: auto;
}

td.systeme {
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 2px;
    padding-left: 2px;
    height: auto;
}
td.systemesol {
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    font-family: Calibri;
    padding-right: 2px;
    padding-left: 2px;
    height: auto;
    color:red;
}
td.para {
    text-decoration: none;
    font-weight: normal;
    font-size: 55px;
    font-family: Calibri;
    padding-right: 2px;
    padding-left: 2px;
    height: auto;
}

/* Addition Ecrite*/

table.calcul_ecrit {
    margin: left;
    border-collapse: collapse;
    width: auto;
}
td.border_bottom {
	border-bottom: 2px solid black;
}
td.border_top {
	border-top: 3px solid black;
}

/* Division Ecrite*/

table.division_ecrite {
    margin: left;
    border-collapse: collapse;
    width: auto;
}
td.division_ecrite {
	text-align:center;
	font-weight:bold;
}
td.division_ecrite_bottom {
	text-align:center;
	border-bottom: 2px solid black;
	font-weight:bold;

}
td.division_ecrite_right {
	text-align:center;
	border-right: 2px solid black;
	font-weight:bold;

}
.pgcd{
	border: 2px solid green;
}
.ppcm{
	  border: 2px solid blue;
  border-radius: 50%; 
}

/* Refonte 2026 : couches modernes compatibles avec les anciens générateurs */

:root {
    --page-bg: #eef3fb;
    --panel-alt: #f7f9fc;
    --text-main: #172033;
    --text-soft: #52607a;
    --line-soft: #d8e0ef;
    --brand: #1f4ed8;
    --brand-dark: #1839a8;
    --brand-light: #e7efff;
    --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

body {
    min-height: 100%;
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 32px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 24%),
        var(--page-bg);
    color: var(--text-main);
    font-family: "Segoe UI", "Trebuchet MS", Calibri, Arial, sans-serif;
    font-size: 16px;
}

body.mainpage {
    width: min(1500px, calc(100% - 32px));
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

header,
section,
footer {
    width: 100%;
}

header {
    position: sticky;
    top: 12px;
    z-index: 20;
    height: auto;
    background: transparent;
}

section {
    position: relative;
    top: auto;
    bottom: auto;
    min-height: auto;
    background: transparent;
    overflow: visible;
}

footer {
    position: static;
    height: auto;
    background: transparent;
    border-top: 0;
}

.app-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.exercise-header {
    padding: 18px 20px;
    border: 1px solid rgba(216, 224, 239, 0.95);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.exercise-header__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.exercise-header__subtitle {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    color: var(--brand-dark);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

#menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    height: auto;
}

#menu li {
    display: block;
}

#menu a,
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--panel-alt);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
}

.exercise-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #333;
    border-top-color: #707070;
    border-radius: 999px;
    background-color: #5E5E5E;
    background: linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    color: white;
    text-shadow: -1px -1px 0 #444;
    font-family: Helvetica, Arial, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.exercise-count__input {
    width: 84px;
    min-height: 34px;
    padding: 4px 10px;
    border: 1px solid #b9c8e4;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-main);
    font: inherit;
    text-align: center;
}

.exercise-count__input:focus {
    outline: 2px solid rgba(31, 78, 216, 0.22);
    border-color: var(--brand);
}

.action-button {
    cursor: pointer;
}

.action-button--primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-color: transparent;
    color: #ffffff;
}

.exercise-card {
    padding: 28px;
    border: 1px solid rgba(216, 224, 239, 0.95);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.exercise-footer {
    padding: 0 8px 8px;
    color: var(--text-soft);
    font-size: 0.92rem;
    text-align: center;
}

h1 {
    width: auto;
    margin: 0 0 18px;
    padding: 16px 20px;
    border: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #eff4ff 0%, #dbe8ff 100%);
    color: #0f1d3a;
    font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(31, 78, 216, 0.10);
}

#solution {
    margin-top: 28px;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe0e6 100%);
    color: #7f1d1d;
}

.consigne {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 5px solid var(--brand);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--brand-light);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

section p {
    margin-left: 0;
}

.tableau {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    table-layout: auto;
}

.colonne {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    padding-top: 0;
    word-break: normal;
    overflow-wrap: anywhere;
}

ol {
    margin: 0;
    padding-inline-start: 0;
}

ol.numero_exo li,
ol.numero_sol li {
    position: relative;
    margin-bottom: 16px;
    padding: 16px 18px 16px 54px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: #ffffff;
    line-height: 1.8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

ol.numero_sol li {
    background: #fff8f8;
}

ol.numero_exo li:before,
ol.numero_sol li:before {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin-right: 0;
    border-radius: 999px;
    line-height: 28px;
    font-size: 0.9rem;
    font-weight: 700;
}

ol.numero_exo li:before {
    background: linear-gradient(135deg, #1f4ed8 0%, #1839a8 100%);
}

ol.numero_sol li:before {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.sol,
.solbleue,
.solverte {
    display: inline-block;
    padding: 0.12rem 0.35rem;
    border-radius: 10px;
    font-weight: 800;
}

.sol {
    background: #fee2e2;
    color: #b91c1c;
}

.solbleue {
    background: #dbeafe;
    color: #1d4ed8;
}

.solverte {
    background: #dcfce7;
    color: #15803d;
}

.divcenter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    text-align: initial;
}

#premiere,
#deuxieme,
#troisieme {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 22px;
    border: 1px solid rgba(216, 224, 239, 0.95);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

h2 {
    margin: 0 0 6px;
    padding: 14px 16px;
    border: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #10214a 0%, #1f4ed8 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
    font: inherit;
    text-align: left;
}

.navigation li {
    list-style: none;
}

.navigation .toggleSubMenu > a,
.navigation .toggleSubMenu > span,
.navigation .toggleSubMenu > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 78, 216, 0.10);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #eff4ff 0%, #dbe8ff 100%);
    color: #0f1d3a;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.navigation .toggleSubMenu.is-open > a,
.navigation .toggleSubMenu.is-open > span,
.navigation .toggleSubMenu.is-open > button,
.navigation .toggleSubMenu > a:hover,
.navigation .toggleSubMenu > a:focus,
.navigation .toggleSubMenu > button:hover,
.navigation .toggleSubMenu > button:focus {
    background: linear-gradient(135deg, #eff4ff 0%, #dbe8ff 100%);
    color: #0f1d3a;
}

.navigation .toggleSubMenu > a::after,
.navigation .toggleSubMenu > button::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand);
}

.navigation .toggleSubMenu.is-open > a::after,
.navigation .toggleSubMenu.is-open > button::after {
    content: "−";
}

.navigation .SubMenu,
.navigation .subMenu {
    display: grid;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.navigation .SubMenu a,
.navigation .subMenu a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-main);
    text-decoration: none;
}

@media (max-width: 980px) {
    body,
    body.mainpage {
        width: min(100%, calc(100% - 20px));
        padding-top: 14px;
    }

    .exercise-card,
    #premiere,
    #deuxieme,
    #troisieme {
        padding: 18px;
    }

    .divcenter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tableau {
        flex-direction: column;
    }

    .colonne {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .exercise-header {
        top: 6px;
        padding: 16px;
    }

    .divcenter {
        grid-template-columns: 1fr;
    }

    #menu {
        gap: 8px;
    }

    #menu a,
    .action-button,
    .exercise-count {
        width: 100%;
    }

    .exercise-count {
        justify-content: space-between;
    }
}
