/** layout **/
body{
    font-family: 'Amarante', serif;
    font-size: 1.1rem;
    line-height: 1.5rem;
    color: #321 ;
}
.mb1{
    margin-bottom:10px;
}

#fg{
    z-index:1;
    position: relative;
}
.container{
    margin: 0 auto;
    max-width: 1200px;
}
#bg{
    background-image: url("../img/bg_stone.jpg");
    background-size: cover;
    background-position: left top;
    position:fixed;
    top:0;
    height:100vh;
    width:100vw;
    z-index:0;
}
header, footer{
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px 0;
}
footer{
    margin:20px 0 0 0;
}
footer a{
    font-size: 1.2rem;
}
header img{
    width: 300px;
}

main{
    background-color: rgba(255, 255, 255, 0.75);
}
main.alt{
    background-color:rgba(3, 77, 56, 0.7);
    margin:10px 0;
    color:#fff;
}
main.alt a {
    color:#fff;
}

/** description with grid */
.desGrid{
    display: grid;
	grid-gap: 20px;
  	grid-template-columns: repeat(1, 1fr);
  	width: 100%;
}
.desGrid .contText{
    background-color: #eee;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    line-height: 2rem;
    text-align: center;
}
.desGrid .withImage {
    background-size: cover;
    background-position: center;
}
.desGrid .withImage .contText{
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-shadow: 2px 2px #000;
}
.desGrid .withDraw {
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.desGrid .withDraw .contText{
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px #fff;
}
.wTrans7, .desGrid .withDraw .wTrans7{
    background-color: rgba(255, 255, 255, 0.7);
}
.desGrid .square{
    height: 278px;
}

.factions{
    grid-template-columns: repeat(2, 1fr);
}
.factions .square{
    height: 100px;
}
.factions .contText{
    font-size: 1.4rem;
    line-height: 1.5rem;
}
.factions .colEnd {
    font-size: 1.3rem;
    grid-column: 1 / 3;
}
main .factions .contText.colEnd {
    font-size: 1.3rem;
}

.galerie .photo{
    text-align: center;
}
.galerie .photo .image{
    height: 300px;
    background-size: cover;
    background-position: center;
}


/** global **/
b{
    -webkit-text-stroke: 0.5px #064;
}
a{
    color: #064;
    text-decoration: none;
    font-weight: bold;
}
a:hover{
    text-decoration: underline;
}

h2{
    font-family: "New Rocker", system-ui;
    font-size: 1.7rem;
    line-height: 2rem;
    margin:0 0 10px 0;
}
ul{
    list-style-type:square;
    list-style-position:outside;
    margin-left:10px;
}

/** nav */
nav{
    margin:0 0 20px 0;
    background-color: rgba(3, 77, 56, 0.7);
}
nav ul {
  display: block;
  list-style-position: outside;
}
nav ul li {
  display: inline-block;
  list-style: none outside none;
  margin: 0;
  padding: 0;
}
nav ul li a {
  display: block;
  padding: 0 0 0 10px;
  color:#fff;
  text-shadow: 1px 1px #000;
  line-height: 3rem;
}

/** portal */
#portal {
    position: fixed;
    right: 0;
    bottom: 0;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("../img/magic-gate.png");
    background-size: cover;
}
.enchanted #fg{
    filter: invert(1);
}

/** profil */
table.profil th, table.profil td{
    padding: 5px 8px;
    text-align: center;
}
table.profil td.name{
    text-align: left;
    font-weight: bold;

}
table.profil tr.carac{
    background-color: #333;
    color: #fff;
}
table.profil tr.value{
    background-color: #ddd;
}

/** download */
ul.download li {
    line-height: 1.8rem;
}

/** generic */
.w100 {width: 100%;}
.mAuto {margin: 0 auto;}
.mt2 {margin-top: 20px;}
.pad1{padding: 10px;}
.pad2{padding: 20px;}
.relative{position: relative;}
.center{text-align: center;}
.button{
    height: 40px;
    line-height: 40px;
    display: inline-block;
    padding: 0 15px;
    border: 1px solid rgb(10, 124, 120);
    background-color: rgb(10, 124, 120);
    color: #fff;
    border-radius: 4px;
    font-weight: normal;
    box-sizing: border-box;
    font-size: 1.3rem;
}
.button:hover{
    background-color: rgb(2, 61, 63);
    border-color: rgb(2, 61, 63);
    text-decoration: none;
}

main.alt .button{
    border-color: #ddd;
    background-color: #ddd;
    color: #222;
}
main.alt .button:hover{
    border-color: #fff;
    background-color: #fff;
    color: #000;
}

/** contact */
.error {color:red;}
ul.error{margin-bottom:10px;}
.form-line {margin-bottom: 5px;}
.form-line>span.cont-label {display:block; font-weight: bold; margin-bottom: 2px;}
.form-line>span.cont-field {display:block; margin-bottom: 2px; line-height: 40px;}
fieldset{ border-radius: 5px; border: 1px solid #555;}
/*.nb {font-size:12px;}*/

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="file"],
textarea,
select {
  height: 38px;
  padding: 6px 10px;
  background: #fff;
  background-color: #fff;
  border: 1px solid #777;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box; }
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="file"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  line-height: 20px; }
textarea{width:100%;min-height: 100px;}
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0; }
legend {padding:0 10px};
input[type="checkbox"],
input[type="radio"] {display:inline;}

input[type="text"],
input[type="password"] {width:250px;}
input[type="number"] {width:100px;}
input.short {width:150px;}
input.tiny {width:75px;}


/** message */
#jContFlashMsg{
	position: fixed;
	top:0;
	right:0;
	box-sizing: border-box;
	width: 100%;
	z-index: 15;
}
div.flash_message{
	padding:10px 15px; 
	cursor:pointer;
	box-sizing: border-box;
	text-shadow: 1px 1px #333;
	animation: cssClean 0s ease-in 5s forwards;
}
div.flash_message::before{
	content:'X';
	float:right;
	border:1px solid;
	font-size: 12px;
	line-height: 20px;
	width: 20px;
	text-align: center;
	border-radius: 4px;
	margin-left: 10px;
}
div.flash_error{
	color: #fb9;
	background-color: rgba(200,20,0,0.8);
}
div.flash_notice{
	color: #9ef;
	background-color: rgba(0,100,120,0.8);
}
div.flash_success{
	color:#cfa;
	background-color: rgba(0,120,20,0.8);
}
@keyframes cssClean {
    to {
		width:0;
        height:0;
        opacity: 0;
    }
}

@media screen and (min-width:768px) {
	#jContFlashMsg{
		padding:10px;
		max-width: 400px;
	}
	
}

/* petites tablettes 768 */
@media screen and (min-width:768px) {
	.desGrid{
        grid-template-columns: repeat(2, 1fr);
    }
    .factions{
        grid-template-columns: repeat(3, 1fr);
    }
    .factions .colEnd {
        grid-column: 1 / 4;
    }
    nav ul li a {
        font-size: 1.3rem;
        padding: 0 10px;
    }
}
/* tablettes 980 */
@media screen and (min-width:980px) {

    header img{
        width: 400px;
    }

    #portal {
        height: 40px;
        width: 40px;
    }

	.desGrid .square{
        height: 373px;
    }
    .factions .square{
        height: 150px;
    }
    main .factions .contText{
        font-size: 1.6rem;
        line-height: 1.8rem;
    }
}

/* tablettes 1024 */
@media screen and (min-width:1024px) {
    
    .desGrid{
        grid-template-columns: repeat(3, 1fr);
    }
    .desGrid .contText{
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .factions{
        grid-template-columns: repeat(4, 1fr);
    }
    .factions .colEnd {
        grid-column: 3 / 5;
    }
    
}