@charset "utf-8";

/* ------------------------------------------------------------------------- */
/*                             Charte Graphique                              */
/* Couleurs principales : Bleu UPO   - #014495                               */
/*                        Rouge UPO  - #E3001B                               */
/*																			 */
/* Couleurs secondaires : Orange UPO - #ED6000                               */
/*																			 */
/* ------------------------------------------------------------------------- */
/*              Importation de nouvelles polices de caractÃ¨res               */
/* ------------------------------------------------------------------------- */
@font-face {
	}


/* ------------------------------------------------------------------------- */
/*                       RÃ¨gles gÃ©nÃ©rales pour la page                       */
/* ------------------------------------------------------------------------- */
* {
	margin: 0;							/* marge extÃ©rieure de chaque Ã©lÃ©ment */
	padding: 0;							/* marge intÃ©rieure de chaque Ã©lÃ©ment */
	}

body{
	margin: 5px auto;					/* marge extÃ©rieure des Ã©lÃ©ments du corps de la page */
	font-size: 1.1em;					/* taille de base de la police */
	line-height: 1.25;					/* hauteur de ligne de texte */
	color: black;						/* couleur de base du texte */
	background: linear-gradient(to right, white, #014495, #014495, white);
	counter-reset: num_exo;		/* mise Ã  zÃ©ro du compteur num_exo */
	counter-reset: num_activ;		/* mise Ã  zÃ©ro du compteur num_exo */
	background-color : #409AA4;
	}


/* ------------------------------------------------------------------------- */
/*                    Mise en forme des sÃ©lecteurs usuels                    */
/* ------------------------------------------------------------------------- */
p {
	margin: 15px 10px 15px 0;
	text-align: justify;
	}

em {
	font-style: italic;
	}

sub {
	font-size: 0.8em;
    vertical-align: -0.5em;
	}

sup {
	font-size: 0.8em;
    vertical-align: 0.5em;
	}

.
/* ------------------------------------------------------------------------- */
/*                                Les images                                 */
/* ------------------------------------------------------------------------- */
img {
	display: block;
	border: 1px dashed #E3001B;
	margin: 5px auto;
	border-radius:4px;
	padding: 5px;
	max-width: 75%;
	text-align: center;
	}
	
p img, li img {									/* images dans les paragraphes, dans les listes */
	display: inline;
	margin: 5px;
	padding: 7px;
	vertical-align: middle;
	border:0;
	}

.img_flotte {							/* Image flottante Ã  cÃ´tÃ© d'un paragraphe */
	float: right;
	max-width: 250px;
	margin-left: 30px;
	margin-right: 5px;
	}

/* ------------------------------------------------------------------------- */
/*                     Partie rÃ©dactionnelle principale                      */
/* ------------------------------------------------------------------------- */
#corps {
	box-sizing: border-box;
	margin: 5px auto;
	width: 80%;
	min-width: 800px;
	}

section {
	margin: 0;
	width: 100%;
	font-size: 1.05em;
	padding: 1px 10px 10px 20px;
	min-height: 400px;
	background-color: #ffffff; 
	}

section h1 {
	display: inline-block;
	box-sizing : border-box;
	color: #014495;
	font-size: 36px;
	font-weight: bold;
	text-align: left;
	line-height: 50px;
  	margin: 50px 0 0 -15px;
	padding: 0px 20px;
	border: 3px solid #014495;
	border-radius: 25px;
	box-shadow: 7px 7px 7px #014495;
	clear: both;
	}

section .exercice{
	counter-increment : num_exo;					/* mise Ã  jour du compteur de questions */
	}
	section .activite{
	counter-increment : num_activ;					/* mise Ã  jour du compteur de questions */
	}


h1.exercice:before{
	content : 'Exercice nÂ°'counter(num_exo);		/* mise en forme du compteur num_exo */
	}
h1.activite:before{
	content : 'ActivitÃ© nÂ°'counter(num_activ);		/* mise en forme du compteur num_activ */
	}
section h2 {
	display: inline-block;
	color: #ED6000;
	text-align: left;
	font-weight: bold;
	margin: 30px 10px 0 13px;
	padding: 0 2px;
	font-size: 1.25em;
	border-left: 6px ridge #ED6000;
	border-bottom: 6px ridge #ED6000;
	border-radius: 0 0 0 10px;
	}

section h3 {
	color: #E3001B;
	text-align: left;
	font-weight: bold;
	text-decoration : none;
	margin: 22px 0 0 0;
	padding: 0px 10px 0px 13px;
	font-size:0.9em;
	}

article {
	margin-top: 20px;
	margin-bottom: 50px;
	clear: both;
	background-color: #ffffff;	/* Stoppe les objets flottants */
	}

section a { 										
	padding: 0 4px;
	text-decoration: none;				/* on enlÃ¨ve le soulignement automatique de tous les liens */
	font-size: 0.95em;
	color: #E3001B;						/* Couleur du texte - Orange ISN */
	background-color: #ffffff;
	border: 1px solid #E3001B;
	box-shadow: 2px 2px 2px #E3001B;
	border-radius: 8px;
	}

section a:hover {
	color: #ffffff;						/* Couleur du texte - Bleu ISN */
	background-color: #E3001B;
	border: 1px solid #ffffff;
	box-shadow: none;
	transition: 0.5s;
	}

section .lien_image,
section .lien_image:hover {
	margin: 0;
	padding: 0;
	color: white;
	border: none;
	box-shadow: none;
	background-color: #ffffff;
	}

section .lien_image>img {
	margin: 5px;
	padding: 5px;
	border: 1px solid #E3001B;
	box-shadow: 2px 2px 2px #E3001B;
	border-radius: 8px;
	}

section .lien_image>img:hover {
	margin: 5px;
	padding: 5px;
	border: 1px solid #ED6000;
	box-shadow: 2px 2px 2px #ED6000;
	border-radius: 8px;
	transform: rotate(-15deg);
	transition: 0.5s
	}


/* ------------------------------------------------------------------------- */
/*   AccordÃ©ons pour les exercices, l'affichage en direct et les solutions   */
/* ------------------------------------------------------------------------- */
.titrePanneau,
.titreEcran {
	box-sizing : border-box;
	margin: -2px 5px -2px 0;
	padding: 0 1px 2px 0;
	font-size: 0.8em;
	font-weight: bold;
	text-align: center;
	color: #ffffff;
	background-color: #E3001B;
	border: 2px solid #E3001B;				/* Couleur de bordure - Bleu ISN */
	cursor: pointer;
	clear: both;
	}

article>.titrePanneau:first-of-type {
	margin-top: 30px;
	}
	

.titreEcran {
	margin: -2px 5px 0 0;
	}

.titrePanneau:hover,
.titreEcran:hover {
	color: #E3001B;
	background-color: #ffffff;
	}

.titrePanneau::after {
	content: ' - Cliquer pour replier/dÃ©plier';
	}

.titreEcran::after {
	content: 'Affichage Ã  l\'Ã©cran - Cliquer pour dÃ©plier/replier (actualise aussi l\'affichage en hauteur) ';
	}

.panneau {
	box-sizing : border-box;
	background-color: #ffffff;
	margin: 0 5px 0 0;
	border: 2px solid #E3001B;
	vertical-align: middle;
	}

.correction,
.correction_css {
	box-sizing : border-box;
	background-color: #ffffff;
	margin: -2px 5px 0 0;
	border: 2px solid #014495;
	max-height: 300px;
	vertical-align: middle;
	}

.panneau .CodeMirror,
.correction .CodeMirror,
.correction_css .CodeMirror {
	margin: 0;
	height: 300px;
	}

.correction_cache,
.correction_cache .CodeMirror {
	height: 0;
	border: none;
	}

.titreSolution,
.titreSolution_CSS,
.popupcor,
.popupcor_css {
	display: block;
	box-sizing : border-box;
	margin: 0 5px 0 0;
	padding: 0 1px 2px 0;
	font-size: 0.8em;
	font-weight: bold;
	text-align: center;
	color: #ffffff;
	background: #014495;					/* Couleur de fond - Orange ISN */
	border: 2px solid #014495;				/* Couleur de bordure - Orange ISN */
	cursor:  pointer;
	}


.popupcor,
.popupcor_css {
	border-top: 4px solid #014495;				/* Couleur de bordure - Orange ISN */
	}

.titreSolution:hover,
.titreSolution_CSS:hover,
.popupcor:hover,
.popupcor_css:hover {
	color: #014495;							/* Couleur de texte - Orange ISN */
	background: #ffffff;
	}

.titreSolution::after,
.titreSolution_CSS::after {
	content: "Une solution ? - Cliquer pour dÃ©plier/replier";
	}

.popupcor::after,
.popupcor_css::after {
	content: "Affichage obtenu ?";
	}

.ecran {
	box-sizing : border-box;
	background-color: #ffffff;
	margin: -2px 5px 0 0;
	border: 2px solid #E3001B;
	min-height: 150px;
	vertical-align: middle;
	}

.affichage,
.affichagecss {
	width: 99%;
	padding: 0 10px;
	vertical-align: middle;
	}


.entoure {
	box-sizing : border-box;
	background-color: #ffffff;
	margin: 5px 5px 15px 0;
	border: 2px solid #ED6000;
	clear: both;
	}
	

