﻿@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Carattere&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Graduate&display=swap');

:root {
	--co1: #BDD7F0;
	/* Ecume de vent */
	--co2: #161719;
	/* Souffle d'éclipse */
	--co3: #FFD700;
	/*  Brise d'ambre */

	--co1d: #5599D8;
	/*  EDV dark */
	--co2l: #EAF3FA;
	/* SDE light */
	--co3d: #473D00;
	/*  BDA dark */
	--co3l: #FFF4B8;
	/*  BDA light */
}

* {
	box-sizing: border-box;
	user-select: none2;
}

/* GENERAL ----------------------*/

body {
	margin:0;
	min-height: 100%;
	font-family: "Alexandria", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	color: var(--co2);
	background-color: snow;
	background-image:url('../../images/bgrnd-airplane.png');background-position:center;
	background-repeat:repeat;
	font-size: medium;
	text-align: left;
}

/* Active le défilement fluide sur toute la page */
html {
	lang="fr";
	scroll-behavior: smooth;
}


.home {
	width: 100%; height: 100%;
	text-align: center;
	background-image:url('../../images/error.png');
	background-size: cover;
	background-repeat:no-repeat;
	padding: 20%;
}

.home > * {
	text-align:center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Audiowide", sans-serif;
	text-align: left;
	color: var(--co2);
}

h1 {
	font-family: "Carattere", cursive;
	font-size: 3em;
	text-align: center;
}
h2 {
	padding-top: 2em;
}

.logo {
	font-family: "Audiowide", sans-serif;
}

.logo2 {
	font-family: "Carattere", cursive;
	font-optical-sizing: auto;
	font-style: normal;
}

.acadomo {
	font-family: "Graduate", sans-serif;
	font-style: normal;
}

blockquote {
	width: 100%;
	margin: 6px auto;
	background-color: var(--co3l);
	font-style: italic;
	border-bottom: medium var(--co3) solid;
	padding: 8px;
	border-radius: 4px;
}

.topic {
	width: 80%;
	background-color: snow;
	max-width: 800px;
	margin: 120px auto auto auto;
	padding: 8px;
}

.strip {
	position: relative;
	width: 100%;
	min-height: 240px;
	margin: auto;
	padding: 10px;
	background-position:center;
	background-size: cover;
	
}

.strip h3 {
  font-size: 3em;
  color: var(--co3l);
  	text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);

}

#automenu {
	width: 80%;
	text-align: center;
	margin: 10% auto 10% auto;
	padding: 4px;
}

a:link,
a:visited {
	text-decoration: none;
	color: var(--co1d);
	font-weight: 600;
}

a:hover {
	text-decoration: none;
	color: var(--co3d);
}

.dark {
	color: snow;
	background-color: var(--co2);
}

.dark a:link,
.dark a:visited {
	text-decoration: none;
	color: var(--co1);
}

.dark a:hover {
	text-decoration: none;
	color: var(--co3);
}

.light {
	color: var(--co2);

	background-color: var(--co1);
}

.light a:link,
.light a:visited {
	text-decoration: none;
	color: var(--co3);
}

.light a:hover {
	text-decoration: none;
	color: var(--co2);
}

.dark a:focus,
.light a:focus {
}

/* NAVIG  */
.btn {
	display: inline-block;
	font-weight: 500;
	font-size:medium;
	margin: 4px;
	padding: 4px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	border-radius: 4px;
}

.btn:hover {
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3) inset;
	background-color: var(--co3);
}

.btn:disabled {
	cursor: not-allowed;
	filter: grayscale(75%);
	padding: 3px;
	margin: 0 2px;
}

.left {
	float: left;
	margin-right: 2px;
}

.right {
	float: right;
	margin-left: 2px;
}

.infoplus {
	position: absolute;
	right: 4px;
	bottom: 4px;
}

.align-right {
	text-align: right;
}

.navigUpDwn {
	position: fixed;
	display: block;
	top: 33%;
	right: 0;
	opacity: 50%;
	z-index: 999;
}

/* HEADER & MENU ------------------*/

header {
	width: 100%;
	top: 0;
	margin: 0;
	text-align: center;
	background-color: var(--co1);
	z-index: 100;
}

.header-menu {
	position:sticky; top:0;
	color: snow;
	background-color: var(--co1);
	font-size: large;
	width: auto;
	margin: auto;
	text-align: center;
	z-index: 100;
}

.header-menu > div {
	position: relative;
	margin: auto;
	width: 80%;
	padding: 8px 12px 8px 12px;
	animation-name: fading;
	animation-duration: 0.5s;
	top: 0px;
	left: 0px;
}

@keyframes fading {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

#menu-normal {
	display: inline-block;
}

#menu-smallscreen {
	display:none;
}

.menu-header {
	display: inline;
}

.menu-header:hover {
	color: var(--co2);
}

.menu-content {
	display: none;
	background-color: var(--co1);
	transition: all 1.0s ease-in-out;
	position: absolute;
	width: auto;
	max-width:600px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 0 0 8px 8px;
	padding-bottom: 16px;
	padding-top: 16px;
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

#menu-container {
	position:sticky; top:0;
}

.menu-container:hover .menu-content {
	display: block;
}

.menu-content a {
	color: var(--co2);
	opacity: 1.0;
	display: inline-block;
	padding: 12px;
	text-align: center;
	border-radius: 8px;
	transition: all 0.5s ease-in-out;
	font-family: Audiowide, sans-serif;
	font-weight: 400;
	font-style: normal;
	text-shadow: none;
	text-decoration: none;
}

.menu-content a:hover {
	color: white;
	background-color: var(--co2);
}
	
	#menu-ham {
		display: none;
		z-index:900;
		text-align:center;
	}
	
	@keyframes AutoSlide {
		0%	{ left:-100%;}
	  100% 	{ left:0; }
	}
	
	#ham-content {
		display:none;
		position: fixed;
		color: snow;
		text-align:left;
		font-size:x-large;
	    height:100%;
	    left:0; top:0; margin:0;
	    width: 100%;
	    overflow:auto;
	    padding: 12px;
	    border-right: thick var(--co3) solid;
	  	box-shadow: 40% 0 16px rgba(0, 0, 0, 0.1);
	  	opacity: 0.97;
	}

	#ham-content:target {
		display: block;
		animation-name: AutoSlide ;
		animation-duration: 1s;
		animation-timing-function: cubic-bezier(0.7, 1.0, 0.5);
	}


.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-template-rows: repeat(2, auto);   /* 2 lignes */
	gap: 8px;
	background-color: transparent;
	font-size: small;
	padding: 8px;
}

/* FOOTER */

footer {
	width: 100%;
	min-height: 15%;
	position: relative;
	padding: 16px 10% 16px 10%;
	background-color: var(--co1);
}

/* RGPD */

#rgpd-container {
	display: none;
	width: 80%;
	margin: auto;
	padding: 8px 10% 8px 10%;
	background-image: url('../../images/cookie.png');
	background-size: cover;
	position: fixed;
	z-index: 10;
	bottom: 5%;
	left: 10%;
	box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.1);
}

/* Styles pour téléphone */
@media only screen and (max-width: 768px) {
  body {
    font-size: 16px;   /* Texte adapté aux mobiles */
    margin: 0;
  }
  
  .topic {
	width:100%;
	padding:6px;
	hyphens: auto;
}
  
  #menu-normal {
	display: none;
}
	#menu-normal {
		display: none;
	}
	
	#menu-ham {
		display: inline-block;
		z-index:900;
		text-align:center;
	}
	
	@keyframes AutoSlide {
		0%	{ left:-100%;}
	  100% 	{ left:0; }
	}
	
	#ham-content {
		display:none;
		position: fixed;
		text-align:left;
		font-size:x-large;
	    height:100%;
	    left:0; top:0; margin:0;
	    min-width: 100%;
	    overflow:auto;
	    padding: 12px;
	    border-right: thin var(--coda1) solid;
	  	box-shadow: 40% 0 16px rgba(0, 0, 0, 0.1);
	  	opacity: 0.97;
	}

	#ham-content:target {
		display: block;
		animation-name: AutoSlide ;
		animation-duration: 1s;
		animation-timing-function: cubic-bezier(0.7, 1.0, 0.5);
	}

  #rgpd-container {
	width: 100%;
	padding: 8px;
	bottom: 0;
	left: 0;
}

.grid-container {
		grid-template-columns: 1fr; /* 1 seule colonne */
	grid-template-rows: auto;   /* les lignes s’empilent */
}

}

