
/* Version et notes générales

	Version: 0.0.8-1


	--xxx: xxx;
	pour valeur calculée : attribut=var(--xxx)

    --usel : attribut créer pour empêcher la sélection copier/coller dans une page web
	⯀
	⯀Valeurs avec un mot-clé
	font-weight: normal; (normal|bold)

	⯀Valeurs relatives à l'élément parent
	font-weight: lighter; (lighter|bolder)

	⯀Valeurs numériques
	font-weight: 100; (100|200|300|400|500|600|700|800|900)
	font-weight: 400; (normal)
	font-weight: 700; (gras)

	margin|padding
	margin: 4px;
	margin: 4px 4px 4px 4px; (top|right|bottom|left)
	margin-left: 4px;
	margin-right: 4px;
	margin-top: 4px;
	margin-bottom: 4px;

	margin: 0;
	padding: 0;

	display: none; (none|block|inline-block)



    Fontes
    ------
    * Noto Sans, Regular
    * Style Script, Regular 400
    * materialdesignicons-webfont
*/

@import "theme_0.css";
@import "theme_1.css";
@import "theme_2.css";

/*********/
/* Debug *
 *********


.debug {
	border: 1px solid red;
	padding: 4px;
	margin: 4px;
}

.wrapper.debug { border-color: #00a ; }
.rub.debug { border-color: #080 ; }
.head.debug, .content.debug, .foot.debug { border-color: #0f0 ;}

debug on/off */



/* ********************************
   Theme switcher visibility
   ********************************


button#next-theme{
	display: none;
}

* Button off */



/* Déclaration des Fontes
 ***************************************/

@font-face {
	font-family: Material; /*'Material Design Icons'*/
	src: url(asset/materialdesignicons-webfont.ttf) format('truetype');
	font-weight: normal;
	font-style: normal;
	/*font-display: swap;*/ /*TESTS*/
}


@font-face {
	font-family: NotoSans; /* Corps de contenu */
	src:url(asset/NotoSans/static/NotoSans-Regular.ttf) format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Testes des fontes de titres */

@font-face {
	font-family: StyleScript;
	src:url(asset/StyleScript/StyleScript-Regular.ttf) format('truetype');
	font-weight: normal;
	font-style: normal;
}


/* fonte variable */
/*
.noto-sans-regular {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:"wdth" 100;
}
*/

/* Global
 ***************************************/

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

:root {
	/* ici ne sont défini que les couleurs par défaut et l'image de bannière */
	--banner_image: url("images/banner.jpg");
	--bg_color: rgb(243,205,192);
	--site_title_color: rgb(253,245,240);
	--section_title_color: rgb(130,45,38);
	--section_bullet_color: rgb(130,45,38);
	--text_color: rgb(130,45,38);
	--usel: text; /*none|text*/
}

/* colors
 ******************************/

body {
	background-color : var(--bg_color);
}

p, span, ul, li {
	color: var(--text_color);
}

h1, .head p, .head .tiret {
	color: var(--site_title_color);
}

h2, h2::before {
	color: var(--section_title_color);
}


p.mdi, .foot p  {
	color: var(--section_title_color);
}



/* Activation des classes Typographiques
 ***************************************/



html {
	--ft: NotoSans;
	--ftSiz: 14pt;
	font-family: var(--ft);
	font-size: var(--ftSiz);
    --ftTitre: StyleScript, serif;
	--ftSizTitre: 2.5em;	/* taille texte, nom du site */
	--ftSizSection: 1.4em; /* taille texte, nom de section */
	--ftSizFoot: 1em; 	/* taille texte, footer */
	--h2-left-gutter-width: 1.25em; /* puces titres de sections */
	--h2-marker-spacing: .5em;
}



/******************************/
/* Tailles et positionnements */
/******************************/

html{
}

.wrapper {
}

/* Flex
 ******************************/

.banner {
	height: 50vh;
	min-height : 10rem;
	max-height : 22.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: var(--banner_image);
}

.content {
	max-width: 800px;
	margin : 0 auto;
	padding : 0 3rem;
}


.flexbr {
	display: none ;
}

/* End Flex */

/* *******************
 * Theme switch button
 * *******************/

#next-theme {
	display: block;
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100;
}

/******************************
 * Elements
 ******************************/
/*
	font-style: oblique;

*/
.rub {
	padding-top : 4rem;
}

/* Coefficent de correction de la tailles pour fontes fantaisistes */

h1, h2,.foot p{
	font-family : var(--ftTitre);
   	font-size-adjust: 0.62;
}



h1 {
	font-size: var(--ftSizTitre);
	text-align: center;
	text-shadow: 4px 4px 2px var(--section_title_color);
}

.head p {
	font-size: calc(var(--ftSizFoot)*1.4);
	font-weight: 700;
	text-align: center;
	padding: 0;
	margin: 0;
}

p {
	padding-top: .625rem;
	padding-left: 1.75rem;
}

ul {
	padding-left: 2.5rem;
}


p.mdi {
	padding-right: .5rem;
}

.mdi span {
	padding-left: .5rem;
}

div.foot p{
	font-size: var(--ftSizFoot);
	font-style: oblique;
	padding: 3rem 1% 4rem 1%;
	text-align: center;
}

/* Display
 * ******************************/

@media screen and (max-width: 570px){
	span.tiret {
		display: none;
	}
	br.flexbr {
		display: inline;
	}
	html {
		--ftSiz: 14pt;
		--ftSizTitre: 2rem; 	/* taille texte, nom du site */
		--ftSizSection: 1.25rem; /* taille texte, nom de section */
		--ftSizFoot: 1rem; 	/* taille texte, footer */
		font-size: var(--ftSiz);
		--h2-left-gutter-width: 1.25em; /* puces titres de sections */
		--h2-marker-spacing: .5em;
	}
	h1 {
		text-shadow: 3px 3px 2px var(--section_title_color);
	}
	.banner {
		height: 50vh;
		min-height : 9rem;
		max-height : 14rem;
	}
	.content {
		padding : 0 1rem;
		margin: 0;
	}
	.rub {
		padding-top : 2.5rem;
	}
}


/* Recette h2 : https://www.ctrl.blog/entry/css-negative-text-indent.html
   **********************************************************************
	font-size: smaller;
*/

h2 {
	font-size: var(--ftSizSection);
	display: block;
	padding-left: var(--h2-left-gutter-width);
	text-indent: calc(0px - var(--h2-left-gutter-width));
}

h2::before {
    content: "";
    display: inline-block;
    min-height: calc(var(--h2-left-gutter-width) - var(--h2-marker-spacing));
    background-color: var(--section_bullet_color);
    outline: 1px solid var(--section_bullet_color);
	margin-right: var(--h2-marker-spacing);
	min-width: calc(var(--h2-left-gutter-width) - var(--h2-marker-spacing));
	text-align: right;
}

