/* Version et notes générales

	Version : 0.0.4

	--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)

	Candidats de Fontes
	*******************

	Nom du site et titres:
	----------------------
	* Kapakana, variable
	* Corinthia, Regular 400, Bold 700
	* Parisienne, Regular 400
	* Rouge Script, Regular 400
	* Style Script, Regular 400

	Paragraphe
	----------
	* Noto, variable
*/

/*********/
/* 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 */

/* Fontes typographiques */

@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*/
}

/* Test linux */
/*
@font-face {
	font-family : LiberationSerif;
	src: local(LiberationSerif-Regular) format('truetype');
	font-weight: normal;
	font-style: normal;
}
*/

/* Test windows */
/* À vérifier
@font-face {
	font-family : "Times New Roman";
	src: local(TimesNewRoman) format('truetype');
	font-weight: normal;
	font-style: normal;
}
*/

/* Corps de contenu */
@font-face {
	font-family: NotoSans;
	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: Corinthia;
	src:url(asset/Corinthia/Corinthia-Regular.ttf) format('truetype');
	font-weight: normal;
	font-style: normal;
}

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

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

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

@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;
}
*/

/* Variables */

/* Essais couleur */
/*
	--h_color: red;
	--h_color: rgb(54,98,93); / * vert d'origine (dégueu) * /
	--h_color: rgb(54,98,93,.80); / * le même, éclairci par opacité * /
	--h_color: rgb(94,129,125); / * vert "pharma" retenu (le vert d'origine éclairci, sans opacité). Toujours dégueu * /
	--p_color: rgb(64,64,64); / * Un texte en noir est beaucoup trop agressif à la lecture * /
*/

/* Themes */
/* Pour comprendre et aléger la strcture,
 * j'ai préféré séparer les thèmes de typographie
 * et les thèmes de couleurs.
 */

/*
	Theme flyer
	--bg_color: white; --h_color: rgb(94,129,125); --p_color: rgb(64,64,64);

	Theme carte de visite
	--bg_color: rgb(243,205,192); --h_color: rgb(130,45,38); --p_color: rgb(130,45,38);
	*
	* Fontes :
	*
	--ftTitre: NotoSans, serif ; --ftSiz: 1.125em; --ftSizTitre: 2rem; --ftSizSection: 1.25rem;
	--ftTitre: Corinthia, sans-serif; --ftSiz: 1.125em; --ftSizTitre: 2rem; --ftSizSection: 1.25rem;
*/

/* Global */

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

:root {
	/* theme est scindé en deux
	 * ici ne sont défini que les couleurs et les images de l'accueil
	 */
	--banner_image: url("images/banner.jpg");
	--bg_color: rgb(243,205,192); --h_color: rgb(130,45,38); --p_color: rgb(130,45,38);
	/* end theme */
	--usel: text; /*none|text*/
	font-size: 14pt;
}

/* Thèmes Typographiques pour les titres */
html {
	/* TODO :
	 * Des corrections de tailles doivent être appliquées aux tailles de caractères en fonction
	 * de la police utilisée. Ce n'est pas normal mais je n'ai pas encore trouvé quel genre de correctif
	 * doit être apporté dans le sélecteur @font-face pour que "1em" rende la même taille quelque soit
	 * la police.
	 */
	--ft: NotoSans;
	--ftSiz: 14pt;
	--ftTitre: serif;		/* Corinthia|Kapakana|Parisienne|RougeScript|StyleScript|"Time New Roman"|Serif" */
	--ftSizTitre: 2.5rem;	/* taille nom du site */
	--ftSizSection: 1.5rem;	/* taille nom de section */
	--ftSizFoot: 1rem;		/* taille footer */
	font-family: var(--ft);
	font-size: var(--ftSiz);
}

body.Kapakana * {
	--ft: NotoSans;
	--ftTitre: Kapakana;	/* Corinthia|Kapakana|Parisienne|RougeScript|StyleScript|"Time New Roman"|Serif" */
	--ftSizTitre: 3.5rem;	/* taille nom du site */
	--ftSizSection: 2.1rem;	/* taille nom de section */
	--ftSizFoot: 1rem;		/* taille footer */
	font-family: var(--ft);
	font-size: var(--ftSiz);
}

body.RougeScript * {
	--ft: NotoSans;
	--ftTitre: RougeScript;	/* Corinthia|Kapakana|Parisienne|RougeScript|StyleScript|"Time New Roman"|Serif" */
	--ftSizTitre: 3.5rem;	/* taille nom du site */
	--ftSizSection: 2.1rem;	/* taille nom de section */
	--ftSizFoot: 1rem;		/* taille footer */
	font-family: var(--ft);
	font-size: var(--ftSiz);
}

body.StyleScript * {
	--ft: NotoSans;
	--ftTitre: StyleScript;	/* Corinthia|Kapakana|Parisienne|RougeScript|StyleScript|"Time New Roman"|Serif" */
	--ftSizTitre: 3.5rem;	/* taille nom du site */
	--ftSizSection: 2.1rem;	/* taille nom de section */
	--ftSizFoot: 1.4rem;	/* taille footer */
	font-family: var(--ft);
	font-size: var(--ftSiz);
}

html {
	/* Activation typo */
}

/* colors */

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

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

.ttl, .sttl {
	color: var(--h_color);
}

.head .ttl, .head .sttl {
	color: var(--bg_color);
}

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

/* Tailles et positionnements */

html {
	height: 100%;
}

.wrapper {
	max-width: 800px;
	min-width: 410px;
	margin: 0 auto;
	padding: 0;
}

.banner {
	height : 22rem;
	background-image: var(--banner_image);
}

.head {
}

.content {
	padding-top : 1rem;
}

.rub {
	padding-top : 2rem;
}

.head h1, .head p {
	text-align: center;
}

.head h1 {
	font-family : var(--ftTitre);
	font-size: var(--ftSizTitre);
	font-style: oblique;
	padding-top: 8rem;
	margin-left: -1.5rem;
}
.head .sttl {
	font-size: var(--ftSizFoot);
}

.rub h2 {
	font-family : var(--ftTitre);
	font-size: var(--ftSizSection);
	font-style: oblique;
}

.rub h2 span.smaller {
	font-size: 60%;
	font-style: normal;
}

p.text, .rub p {
	padding-left: 1.75rem;
}

.rub ul {
	padding-left: 2.5rem;
}

p.mdi {

	padding-right: .5rem;
}

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

div.foot p {
	font-family: var(--ftTitre);
	font-size: var(--ftSizFoot);
	font-style: oblique;
	padding-top: 2rem;
	padding-bottom: 1rem;
	text-align: center;
}
