@import url('https://fonts.googleapis.com/css2?family=Sono:wght@200;400;800&display=swap');
*:not(a,i){
	box-sizing: border-box;
}
html{overflow-x: hidden;}
body{
	max-width: 100% !important;
	line-height: 3em;
	font-family: 'Sono', monospace;
	padding: 0;
	margin: 0;
}
h1,h2,h3,h4,h5,h6{
	font-family: 'YU Gothic', monospace;
}
main{
	padding-top:7em;
	padding-bottom:2em;
	margin-bottom:3em;
	max-width: 100%;
	min-height: 100vmax;
}
section.thin{width: 80%;margin: auto;padding: 15px;text-align: justify;}
article a[href]{font-style: italic;}
input{
	width: 100%;
}
form textarea,form select,form input {
	/* background-color: var(--color-dark-1); */
	border: #112 2px solid;
	color:var(--color-text);
}
textarea,select,input {
	width: 80%;
	font-size: 16px;
	padding: 12px 20px 12px 40px;
	border: 1px solid #ddd;
	border-radius: 6px;
	margin: auto;
	margin-bottom: 12px;
	display: block;
	background-color: #0002;
	color:currentColor;
  }
textarea{
	max-width: 100%;
	min-width: 100px;
}
p{
	white-space: break-spaces;
}
a{
	text-decoration: none;
	color:var(--color-light-1);
	transition: 
		color var(--transition);
}
a:hover{
	color:var(--color-light-2);
}
button{
	background: var(--color-light-1);
	line-height: 1em;
	padding: 1em;
	border-radius: 1em;
	border-color:#0000;
	color:var(--color-bg);
}
button:hover{
	background: var(--color-light-2);
}
[dataset-copy]{
	cursor:pointer;
}
form{
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: auto;
	gap:1em;
}
form button{
	margin: auto;
	margin-top: 2em;
	position: relative;
	width: fit-content;
}
section h2{
	margin: 1em auto 1em;
	text-align: center;
}
section p{
	text-align: center;
}
article{
	margin: auto;
	max-width: 38em;
}
[device=desktop] article{max-width: 75vw;}
b{display: block;}
b,strong{
	font-weight: bolder;
	font-size: 1.1em;
}
.card{
	width: 40%;
	/* border: none !important; */
	padding: 5px 15px;
}
.card,.project-card{
	border-radius: 10px;
	margin: 10px auto;
	box-sizing: border-box;
	transition: 
		background-color var(--transition),
		box-shadow var(--transition);
}
.project-card:hover{
	border:solid 2px var(--color-text);
}
.project-card:hover,.card:hover{
	box-shadow: var(--color-dark-3) -10px 10px 0px 10px,var(--color-dark-4) 10px -10px 0px 15px;
	background-color: var(--color-dark-5);
	
	color:var(--color-text);
}
.project-card{
	background-color: #4371;
	box-shadow: #2241 15px -15px 0px 1px,#2241 -15px 15px 0px 2px;
	border:solid 1px var(--color-dark-1);
	transition: 
		background-color var(--transition),
		border-color var(--transition),
		box-shadow var(--transition);
}
.card{
	background-color: var(--color-dark-2);
	box-shadow: #2241 15px -15px 0px 1px,#2241 -15px 15px 0px 2px;
}
.row,.col{display: flex;gap:10px;}
.row{flex-direction: row;}
.col{flex-direction: column;}
#nos-offres~table{
	border-spacing: .5em 0;
}
#nos-offres~table th,#nos-offres~table td{
	min-width:20em;
	max-width:40em;
}
#nos-offres~table tr:not(*:last-child,*:first-child) td::before{
	content: "-";
	padding-left: 1em;
	padding-right: 2em;
}
#nos-offres~table td{
	background-color: var(--color-dark-1);
	padding:.5em;
}
#nos-offres~table tr:last-child td{
	border-bottom-left-radius: 1em;
	border-bottom-right-radius: 1em;
	text-align: center;
}
#nos-offres~table th,#nos-offres~table tr:first-child td{
	color:#222;
	background-color: var(--color-light-1);
	padding:1.5em;
}
#nos-offres~table th{
	border-top-left-radius: 1em;
	border-top-right-radius: 1em;
}
#gotop{
	bottom: 8em;
	display: none;
}
#device{
	bottom: 2em;
}
#gotop,#device {
	right: 3em;
	position: fixed;
	z-index: 999;
	border: none;
	outline: none;
	background-color: var(--color-dark-2);
	color: var(--color-light-1);
	cursor: pointer;
	padding: 0.4em;
  border-radius: 10px;
  font-size: 18px;
  aspect-ratio: 1;
  width: 3em;
  text-align: center;
  height: 3em;
  }
  
  #gotop:hover,#device:hover {
	background-color: #555; /* Add a dark-grey background on hover */
  }
@media screen and (min-aspect-ratio : 5/4 ) {
	[device="mobile"] section.thin{width:50%}
}
@media screen and (max-aspect-ratio : 1/1) {
	body{
		font-size: 10pt;
	}
	.fa::before {
		width: min-content !important;
	}
	.omg-list{
		list-style-type: none;
		padding-left: 0;
	}
	section.thin{width:100%;}
	.row{
		flex-direction: column;
	}
	.card{
		width: 100%;
	}
	article{
		margin:5px;
	}
}
@page{
	margin:10%;
}
@media print {
	#gotop,#device,dialog,#alerts
	nav{display: none!important;}
	section:not(.thin){padding:1em !important;}
	section.thin{padding:2em !important;}
}
dialog {
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
	backdrop-filter: blur(5px);
  }
  #alerts {
	position: fixed;
	bottom:0;
	left:0;
	display: flex;
	flex-direction: column;
	z-index: 999;
	width: 25vmax;
	max-width:50%;
  }
  .alert:first-child {
	background: #f54;
  }
  .alert {
	padding: 20px;
	background: #f43;
	color: white;
	margin-bottom: 15px;
	width: 100%;
	transition: 
		background var(--transition),
		opacity .5s
	;
  }
  /* Modal Content/Box */
dialog .modal-content {
	background-color: #fefefe;
	margin: 15% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
  }