* {
	transition: all 0.3s ease;
	transition: background 1s;
  box-sizing: border-box;
}

:root {

	/**/
	--couleur-selection-titre : #7a2161;
	

	--couleur-sombre : #1A1A1D;
	--couleur-sombre-ecriture : white;
	--couleur-sombre-sommaire : #0F0F0F;
	--couleur-sombre-sommaire-lien-selection : #CAE8BD;
	--couleur-sombre-section-ide : #3C3D37;
	--couleur-sombre-section-langage : #222222;
	--couleur-sombre-section-projet : #222222;
	--couleur-sombre-section-projet-lien : #CCF2F4;
	--couleur-sombre-section-hobbie : #222222;
	--couleur-sombre-section-contact : #222831;
	--couleur-sombre-section-contact-bouton : #88304E;
	--couleur-sombre-section-contact-erreur : #e04747;
	--couleur-sombre-footer : #181823;

	--couleur-claire : #FFFDF6;
	--couleur-claire-ecriture : #000000;
	--couleur-claire-sommaire : #D5C7A3;
	--couleur-claire-sommaire-lien-selection : #58AA63;
	--couleur-claire-section-ide : #FAF6E9;
	--couleur-claire-section-langage : #FAF6E9;
	--couleur-claire-section-projet : #FAF6E9;
	--couleur-claire-section-projet-lien : #1E2A78;
	--couleur-claire-section-hobbie : #FAF6E9;
	--couleur-claire-section-contact  : #FAF6E9;
	--couleur-claire-section-contact-bouton : #FAF6D2;
	--couleur-claire-section-contact-erreur : #e35959;
	--couleur-claire-footer : #F6F6F6;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--couleur-sombre);
	color: var(--couleur-sombre-ecriture);
	overflow-x: hidden;
	width: 100%;
	height: 100%;
	margin: 0;
}

p::selection {
	color: var(--couleur-sombre-ecriture);
  background: #49098e;
}

h1::selection {
	color: var(--couleur-sombre-ecriture);
	background: var(--couleur-selection-titre);
}

h2::selection {
	color: var(--couleur-sombre-ecriture);
	background: var(--couleur-selection-titre);
}

h3::selection {
	color: var(--couleur-sombre-ecriture);
	background: var(--couleur-selection-titre);
}

a {
	color: var(--couleur-sombre-ecriture);
	text-decoration: none;
	user-drag: none;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

a::selection {
	color: var(--couleur-sombre-ecriture);
	background: none;
}

br::selection {
	color: var(--couleur-sombre-ecriture);
	background: none;
}

p, label {
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  /*font-weight: <weight>;*/
  font-style: normal;
}

h1 {
	font-size: 40px;
  font-family: "Dosis", sans-serif;
  font-optical-sizing: auto;
  /*font-weight: <weight>;*/
  font-style: normal;

  text-align: left;
}

hr#doubleBarCourte {
	margin: 10px 160px -8px 160px;
	border: 1px double;
}

img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

button {
	border: 0px;
}


/*                                                   */

body[data-theme="light"] {
  background-color: var(--couleur-claire);
  color: var(--couleur-claire-ecriture);
}

/*mon sommaire*/
[data-theme="light"] .Sommaire {
  background-color: var(--couleur-claire-sommaire);
}

[data-theme="light"] .Sommaire nav {
  color: var(--couleur-claire-ecriture);
}

[data-theme="light"] .Sommaire nav a {
  color: var(--couleur-claire-ecriture);
}

[data-theme="light"] .Sommaire nav a:hover {
  color: var(--couleur-claire-sommaire-lien-selection);
}

/*mes projets*/
[data-theme="light"] section#MesProjets .projet {
  background-color: var(--couleur-claire-section-projet);
  color: var(--couleur-claire-ecriture);
}

[data-theme="light"] section#MesProjets .projet a {
  color: var(--couleur-claire-section-projet-lien);
}

/*mes hobbies*/
[data-theme="light"] section#MesHobbies article#articleHobbies {
  background-color: var(--couleur-claire-section-hobbie);
  color: var(--couleur-claire-ecriture);
}

/*mes langages*/
[data-theme="light"] section#MesLangages div#contour {
	background-color: var(--couleur-claire-section-langage);
}

[data-theme="light"] section#MesLangages div#explicationCouleur > div#couleur circle:last-child {
  fill: var(--couleur-claire);
}

/*mes ides*/
[data-theme="light"] section#MesIDEs article div#IDE div#explicationIDE {
  background-color: var(--couleur-claire-section-ide);
  color: var(--couleur-claire-ecriture);
}

/*mes contacts*/
[data-theme="light"] section#MesContacts article p {
  color: var(--couleur-claire-ecriture);
}

[data-theme="light"] section#MesContacts section div#message input[type="text"]#sujet, 
[data-theme="light"] section#MesContacts section div#message input[type="mail"]#mail, 
[data-theme="light"] section#MesContacts section div#message textarea {
  background-color :var(--couleur-claire-section-contact);
  color: var(--couleur-claire-ecriture);
}

[data-theme="light"] section#MesContacts section div#message button#envoiMessage {
	background-color: var(--couleur-claire-section-contact-bouton);
	color: var(--couleur-claire-ecriture);
}

[data-theme="light"] section.message div#message div#inputs div#ensembleInput label {
	background-color: var(--couleur-claire);
}

/*sources*/
[data-theme="light"] footer {
  background-color: var(--couleur-claire-footer);
  color: var(--couleur-claire-ecriture);
}

[data-theme="light"] footer > div.source * {
  color: var(--couleur-claire-ecriture);
} 

/*                                                   */

/* // Body // */

body {
	display: grid;
	grid-template-columns: 300px 1fr;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: "aside header"
											 "aside main"
											 "aside footer";	
}

/* //////////// header (titre) //////////// */

header {
	grid-area: header;
	margin: 10px 20PX;
}

header h1 {
	font-size: 55px;
	font-family: "Chivo Mono", monospace;
	font-optical-sizing: auto;
	/*font-weight: <weight>;*/
	font-style: normal;
}

header hr {
	width: 45%;
}

/* //////////// Sommaire //////////// */
aside {
	grid-area: aside;
}

aside.Sommaire {
	position: fixed;
	/*left:0;
  top:0;
  bottom:0;*/
  width:300px;
  height:100%;
  background-color: var(--couleur-sombre-sommaire);
  padding: 0 5px;
  z-index: 500;
}

nav {
	margin: 0 0 10px 0;
}

nav div#sommaireHaut img {
	width: 267px;
	margin: 5px 10px; /* haut droite bas gauche*/
	border: 1px solid;
	border-color: white;
}

nav div#sommaireHaut iframe {
	margin: 0 0 5px -2px;
}

div#iframe * {
  scrollbar-width: none;     
  -ms-overflow-style: none;  
}

div#iframe *::-webkit-scrollbar {
  display: none;
}

nav div#sommaireBas h1 {
	margin: 2px 0 10px 10px ;
}


nav div#sommaireBas li {
	/*list-style: none;*/
	list-style-type: "> ";
	font-family: "Poetsen One", sans-serif;
	margin: 5px 0;
}

nav div#sommaireBas li a:hover {
	color: var(--couleur-sombre-sommaire-lien-selection);
}

/* //////////// div de selection de themes //////////// */

div.ConteneurTheme {
	width: 45px;
  height: 45px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

div.ConteneurTheme button {
	padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
}

div.ConteneurTheme button:active {
  transform: scale(0.9);
}

div.ConteneurTheme img {
	width: 90%;
}

/* //////////// div de selection de menu //////////// */

div.ConteneurMenu {
	width: 45px;
  height: 45px;
  position: fixed;
  right: 20px;
  top: 30px;
  z-index: 1000;
}

div.ConteneurMenu button {
	padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  transition: transform 1s;
}

div.ConteneurMenu button:active {
  transform: scale(0.9);
}

div.ConteneurMenu img {
	width: 100%;
}

/* //////////// Main //////////// */
main {
	grid-area: main;
	margin: 10px 20px;
}

/* //////////// section Mon Parcours //////////// */
section#MonParcours hr {
	width: 15%;
	border: .5px dashed;
}

section#MonParcours li#fleche::marker {
	content: '>>  ';
}

/* //////////// section Mes IDEs //////////// */
section#MesIDEs {
	margin: 0 0 25px 0;
	text-align: center;
}

section#MesIDEs div {
	display: inline-block;
	/*margin: -15px -5px -15px 0;*/
}

section#MesIDEs article {
	text-align: center;
  margin: 20px 14px;
  display: inline-block;
}

#MesIDEs div#explicationIDE {
	/*display: none;
	
	transition: translate 2s;*/
	position: relative;
	top: 0px;
	height: 100px;
	max-width: 0;
	overflow: hidden;
	transition: max-width 1s ease, padding 1s ease, border-radius 0.5s ease;
	background-color: var(--couleur-sombre-section-ide);
}

#MesIDEs img {
	width:100px;
	height:100px;
	/*margin: 10px;*/
	/*transition: transform .1s;*/
}

#MesIDEs div#IDE:hover div#explicationIDE {
	/*display: inline-block;*/
	padding: 0 10px;
	border-radius: 10px;
	max-width: 300px;
} 

#MesIDEs div#IDE:hover div#explicationIDE {
	translate: 10px;
}

/* //////////// section Mes Projets //////////// */
.projet {
	display: inline-table;
	text-align: justify;
	width: 500px;
	border: 1px solid;
	border-radius: 10px;
	padding: 10px;
	background-color: var(--couleur-sombre-section-projet);
	margin: 3px 0;
}

.projet #haut {
	text-align: center;
}

.projet hr {
	text-align: center;
	margin: auto;
	width: 440px;
}

.projet a {
	text-decoration: underline;
	color: var(--couleur-sombre-section-projet-lien);
	text-align: right;
}

#MesProjets #note p {
	font-size: 14px;
}

#MesProjets .projet img {
	width: 50%;
}

#MesProjets .projet #imageProjet {
	text-align: center;
	margin: 10px 0 15px 0;
}

/* //////////// section Mes Langages //////////// */

section#MesLangages div#sommaireCouleurs {
	display: flex;
	flex-direction: row;
}

section#MesLangages div#explicationCouleur > div#couleur circle:last-child {
  fill: var(--couleur-sombre);
}

section#MesLangages div#explicationCouleur {
  display: flex;
  margin: 0;
  margin-left: 15px;
}

section#MesLangages div#explicationCouleur:first-child {
  margin-left: 0;
}

section#MesLangages div#explicationCouleur > p{
  margin: 0;
  margin-bottom: 10px;
  margin-left: 10px;
}

section#MesLangages div#carteTournante {
	display: inline-block;
	background-color: transparent;
  width: 110px;
  height: 110px;	
  margin: 7px;
}

section#MesLangages div#carteTournanteEnsemble {
	position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

section#MesLangages div#carteTournante:hover  div#carteTournanteEnsemble {
  transform: rotateY(180deg);
}

section#MesLangages div#carteTournanteDevant, section#MesLangages div#carteTournanteDerriere {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

section#MesLangages div#carteTournanteDevant {
	display: flex;
	justify-content: center;
	align-items: center;
}

section#MesLangages div#carteTournanteDerriere {
	border-radius: 20px;
	text-align: center;	
	transform: rotateY(180deg);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20px;
}

section#MesLangages div#contour {
	background-color: var(--couleur-sombre-section-langage);
	align-content: center;
	width: 80%;
	height: 80%;
	border-radius: 14px;
}

section#MesLangages article {
	text-align: center;
	margin: auto;
}

#MesLangages img {
	width:100px;
	height:100px;
	transition: transform .1s;
}

section#MesLangages .bleu {
	background-color: #91C8E4;
	fill: #91C8E4;
}

section#MesLangages .vert {
	background-color: #8FA31E;
	fill: #8FA31E;
}

section#MesLangages .rose {
	background-color: #FAA4BD;
	fill: #FAA4BD;
}

/* //////////// section Mes Hobbies //////////// */
section#MesHobbies {
	margin: 10px 2px;
}

section#MesHobbies article {
	margin: 5px 0;
}

section#MesHobbies article#articleHobbies {
	display: inline-table;
	text-align: justify;
	width: 500px;
	border: 1px solid;
	border-radius: 10px;
	padding: 10px;
	background-color: var(--couleur-sombre-section-hobbie);
}

hr#hrHobbies {
	margin: 5px 350px 5px auto;
}

section#MesHobbies img {
	width: 100px;
	height: 100px;
	border-radius: 1000px;
}

/*
section#MesHobbies aside {
	margin-right: 5px;
}*/

/* //////////// section Mes Contacts //////////// */

section#MesContacts {
	margin: 0 0 20px 0;
}

section#MesContacts article {
	display: grid;
	grid-template-rows: repeat(3, 80px);
	grid-auto-columns: 240px;
	grid-auto-flow: column;
  width: 330px;
  position: relative;
}

section#MesContacts img {
	width: 50px;
	height: 50px;
}

section#MesContacts div#reseau {
	display: flex;
	margin: 10px 15px;
}

section#MesContacts div#reseau > img {
	margin: 0 15px;
}


/*message*/

section.message div#message{
	display: block;
	width: 50%;
}

section.message div#message div#inputs {
	display: flex;
	margin: 20px 0 10px 0;
	width: 100%;
}

section.message div#message div#inputs div#ensembleInput {
	width: 100%;
	height: 47px;
	position: relative;
  top: -18px;
}

section.message div#message div#inputs input{
	display: block;
	border: 1px solid #44444E;
	border-radius: 10px;
	padding: 10px;
	display:block; 
	margin:5px 0;
	width: 100%;
}

section.message div#message div#inputs div#ensembleInput label {
	position: relative;
  top: 20%;
  left: 10%;
  background: var(--couleur-sombre);
  margin: 0;
  padding: 0 5px;
  font-size: 13px;
  border-radius: 10px;
  visibility: hidden;
}

section.message div#message div#inputs div#ensembleInput:has(input:focus) label,
section.message div#message div#inputs div#ensembleInput:has(input:not(:placeholder-shown)) label
{
	visibility: visible;
}

section.message div#message div#inputs div#ensembleInput:has(input:focus),
section.message div#message div#inputs div#ensembleInput:has(input:not(:placeholder-shown)) {
	position: relative;
  top: -18px;
}

section.message div#message div#inputs div#ensembleInput:first-child { 
	margin-right:10px;
}

section.message div#message input[type="text"]#sujet, 
section.message div#message input[type="mail"]#mail, 
section.message div#message textarea, 
section.message div#message div#conteneurSoumettre button {
  background-color : var(--couleur-sombre-section-contact);
  color: white;
}

section.message div#message div#inputs div#ensembleInput input:focus {
	 background: transparent;
}

section.message textarea {
	display:block; 
	resize: none;
	width: 100%;
	height: 200px;
	border-radius: 10px;
	padding: 5px;
}

section.message div#conteneurSoumettre {
	display: flex;
	flex-direction: row-reverse;
  justify-content: flex-end;
}

section.message div#conteneurSoumettre button#envoiMessage {
  display: block;
  margin: 10px -2px;
  margin-right: 10px ;
  padding: 7px 10px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #44444E;
  max-height: 39px;
}

section.message div#conteneurSoumettre button#envoiMessage:hover {
	border-color: var(--couleur-sombre-section-contact-bouton);
}

.elementManquant {
	border-color: var(--couleur-sombre-section-contact-erreur);
}

section.message div#message div#inputs input.elementManquant {
	border-color: var(--couleur-sombre-section-contact-erreur);
}
/* //////////// footer //////////// */

footer {
	grid-area: footer;
	background-color: var(--couleur-sombre-footer);
	width: 100%;
	display: flex;
	justify-content: space-around;
	padding: 20px 0;
}

footer > div.source {
	padding: 10px;
	color: white;
  margin: -10px;
}

footer > div.source h1 {
  font-family: "Fira Code", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  margin: 0px 10px 25px 10px
}

footer > div.source a {
  font-family: "Fira Code", monospace;
  font-weight: 400;
  font-style: normal;
}

footer > div.source p {
  font-family: "Fira Code", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
}

footer > div.source ul {
	margin: -20px;
}

footer > div.source li {
	margin: -10px;
	list-style-type: "";
	position: relative;
  left: 20px;
}

footer > div.source li:first-child {
	position: relative;
  left: 5px;
}

span#nom:hover {
	text-decoration: underline;
}
