/* Copyright © 2004-2026 - Meteolustin.be - Tous droits réservés. */

/* Code couleur site web
orange #F26619
jaune #F6B12D
bleu foncé #2F4558
bleu clair foncé #335F8A
bleu fluo #55D5E0
*/
:root {
    font-size: clamp(14px, 1vw + 1rem, 18px);
    --orange:#F26619; 
	--jaune:#F6B12D; 
	--bleutresfonce:#2F4558; 
	--bleufonce:#335F8A; 
	--bleufluo:#55D5E0;
}
/* CSS Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}

button {
outline-style:  none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-regular.woff2') format('woff2'),
         url('fonts/roboto-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-bold.woff2') format('woff2'),
         url('fonts/roboto-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

/* -------------------STYLE PRINCIPAL-------------------------------------------------------------- */

body{
	font-family: 'Roboto', sans-serif;
	line-height: 1;
	border: 0;
	color: #ffffff;
	background-color: #EBF2FA;
    overflow-x: hidden;
}
/* ------------------------------LIEN----------------------------------- */
a , a:link, a:visited{
	color: var(--bleufluo);
	text-decoration: none;
}
a:hover, a:active {
	text-decoration: none;
}
.lien , .lien:link, .lien:visited{
	color: var(--orange);
	text-decoration: none;
}
.lien:hover, .lien:active {
	text-decoration: underline;
	text-decoration-thickness: 3px;   /* épaisseur */
    text-underline-offset: 5px;       /* distance par rapport au texte */
}
/* --------------ELEMENT FORMULAIRE RESPONSIVE et IMAGE----------------- */
input, input[type="submit"], textarea, select {
	max-width: 100%;
	background: white;
	border: none;
	color: var(--bleutresfonce);
	font-weight: bold;
	font-size: 1rem;
	padding: 6px 10px;
	border-radius: 10px;
	border: 1px solid var(--bleutresfonce);
	cursor: pointer;
    box-shadow: 0 0 4px 2px rgba(51, 94, 138, 0.3);
}
input:focus {
	outline: 2px solid var(--bleutresfonce);
}
input[type="button"] {
	color: white;
	background: var(--bleufonce);
}
input[type="button"]:hover {
	color: var(--jaune);
}
/* -------------------------------------------STRUCTURE DE BASE-------------------------------------------------------------- */

#page {
	width: 100%;
    min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header et footer prennent leur hauteur naturelle */
header, footer{
  flex: 0 0 auto;
}

/* ------------------------------------------------------HEADER-------------------------------------------------------------- */
header {
	display: flex;
	flex-direction: column;
	justify-content:space-around;
    flex: 0 0 auto; /* garde sa hauteur naturelle */
    padding: 0 1em;
	height: 110px;
	background-color: white;
	border-bottom: 1px solid #2F4558;
	box-shadow: 0 2px 2px rgba(47, 70, 89, 0.2);	
}

#nav-toggle, .burger-menu {
    display: none;
}

#header_top {
	display: flex;
	justify-content:space-between;	
}
.titresite {
	font-family: 'Cinzel', serif;
	font-size: 2rem;
	white-space: nowrap;
}

.titresite span {
	display: inline;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.season1 { color: #F26619; }  /* Automne */
.season2 { color: #F6B12D; }  /* Été */
.season3 { color: #2F4558; }  /* Hiver */
.season4 { color: #55D5E0; }  /* Printemps */

.slogan {
	font-family: 'Cinzel', serif;
	font-style: italic;
	margin-right: 20px;
	color: #2F4558;
}

nav {
	display: flex;
}

.navigation a {
    padding: 10px 0;
    margin-right: 15px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #2F4558;
	background:
    linear-gradient(to right, rgba(51, 94, 138, 0), rgba(51, 94, 138, 0)),
    linear-gradient(to right, rgba(51, 94, 138, 1), rgba(51, 94, 138, 1));
	background-size: 100% 0.2em, 0 0.2em;
	background-position: 100% 100%, 0 100%;
	background-repeat: no-repeat;
	transition: background-size 400ms;
 }

.navigation a:hover,
.navigation a:focus {
  background-size: 0 0.2em, 100% 0.2em;
}

/* ----------------------------------------------------------CONTENU-------------------------------------------------------------- */

#contenu {
  flex: 1 0 auto;         /* occupe tout l’espace disponible */
  display: flex;
  flex-direction: column; /* empile les sections à l’intérieur */
  gap: 2rem;              /* espace vertical entre les zones */
  padding: 1rem 0;        /* respiration verticale */
}

#contenu_accueil {  
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(355px, 385px));
    gap: 1rem; /*20px; Espacement entre les éléments */
    justify-content: center; /* pour centrer la grille */
	margin: 30px 0;
	padding: 0rem 0.8rem 1.5rem;
    align-self: stretch;      /* + au cas où un parent centre ses enfants */
	color: #2F4558;
}

.rubrique {  
	display: flex;
	align-items: center;
    letter-spacing: 0.5px;
	border: 1px solid #335F8A;
	box-shadow: 0 -2px 2px rgba(51, 94, 138, 0.2);
	border-radius : 10px;
	background-color: #ffffff;
	padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}

.rubrique_stats {  
	display: flex;
	flex-direction: column;
    letter-spacing: 0.5px;
	border: 1px solid #335F8A;
	box-shadow: 0 -2px 2px rgba(51, 94, 138, 0.2);
	border-radius : 10px;
	background-color: #ffffff;
	padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}


.icone { 
	width: 65px;
    flex: 0 0 auto;
}

.donnee { 
	display: flex;
	flex-direction: column;
	width: 302px;
    flex: 1 1 auto;             /* + */
    min-width: 0;               /* + important pour éviter tout débordement */
	align-items: center;
	gap: 8px; /* Espacement entre les éléments */
}

.etiquette { 
	color: #335e8a;
	text-transform: uppercase;
	font-weight: bold;
}

.donnee1 { 
	text-transform: uppercase;
	font-weight: bold;
	font-size: 2rem;
}
.donnee2 { 
	margin: auto;
	font-size: 0.8rem;

}

#contenu_graphique {  
	display: grid;
    grid-template-columns: repeat(1, minmax(320px, 1fr));
    gap: 50px; /* Espacement entre les éléments */
	margin: 50px 0;
}

.graphique_accueil {  
	width: 60%; 
	margin: 0 auto;
}

.camera {
	display: block;
    max-width: 300px;
    height: auto;
    border: 2px solid #333;
    border-radius: 8px;
	margin: 0 auto; /* ← centre horizontalement */
}

canvas {
	width: 100% !important;
    height: auto !important;
}

hr {
	width: 80%;
	border: none;
    height: 2px; /* Épaisseur de la ligne */
    background: #335F8A; /* Couleur de la ligne */
    box-shadow: 0 0px 3px rgba(51, 94, 138, 0.3); /* Ombre */
}

h1 {
	color: #335F8A;
	margin: 2rem auto 2.5rem auto;
	font-family: 'Cinzel', serif;
	font-weight: normal;
	text-align: center;
}

h2 {
	font-size: 1.25rem;
	color: #335F8A;
	margin: 5px auto 2rem;
	font-family: 'Cinzel', serif;
}
a.btn {
	background:var(--bleufonce);
	color:#ffffff;
	text-decoration:none;
	padding:10px 15px;
	border-radius:10px;
	margin:4px 4px 0 0;
}

form .row {
	display:flex;
	gap:8px;
	flex-wrap:wrap;
	margin-top:6px;
}
	
.rubrique_stats ul li{
	margin:6px 0;
}

.rubrique_stats ul a{
	color: var(--bleufonce);
}

.chips {
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	margin-top:6px;
}

.chip {
  display: flex;
  align-items: center;
  
}


.chip strong {
	padding:0.8rem 1rem;
	border-radius:999px;
	color:#ffffff;
	background:var(--bleufonce);
}	

a.chip {
	padding:0.8rem 1rem;
	border-radius:999px;
	border:1px solid var(--bleutresfonce);
	color:var(--bleufonce);
}		

a.chip:hover {
	background:var(--orange);
	color:white;
}	

#contenu h2.gauche {
	margin: 1rem 0;
	margin-top: 10px;
	font-family: 'Cinzel', serif;
	white-space: nowrap;
	background:#eaf6ff;
	padding:6px 14px;
	border-radius:5px;
    color: #237bbd;
	font-weight:600;
	box-shadow:0 2px 6px rgba(50,60,80,0.04);
}

/* ----------------------------------------------------------CONTENU STATS-------------------------------------------------------------- */

#contenu_stats {
	display: flex;
    flex-direction: column;
	flex-wrap: wrap; /* Permet d'aller à la ligne */
	background: white;
	color: #2F4558;
	margin: 0 auto 10px auto;
	width: 100%;
	max-width: 1200px;
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid #335F8A;
	box-shadow: 0 -2px 2px rgba(51, 94, 138, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

.bordurebasse {
	border-bottom: 1px solid #ffffff;
}

tr.moyenne_cumul td {
	background-color: #335F8A;
	color: white;
	font-size: 1.1rem;
    font-weight: bold;
	border-right: 1px solid white;
	vertical-align: middle;
}

th, td {
    padding: 8px;
    border: 1px solid #335F8A;
	box-shadow: 0 0 5px rgba(51, 94, 138, 0.3);
	text-align: center;
}

.fondminmoymax{
    background-color: #55D5E0;
    color: white;
}

th {
    background-color: #335F8A;
    color: white;
}

table thead tr:first-child th {
  font-weight: bold;
}

/* Séparation douce entre les blocs */
table tr td:nth-child(2),  /* début Vent */
table tr td:nth-child(8)  /* début Pression */
{
    border-left: 4px solid #ffffff; /* couleur blanche fine */
}

/* Séparation douce entre les blocs - Page stats du jour (heure) */
table tr td.statsJour + td {
  border-left: 1px solid var(--bleufonce);
}

/* Séparations pour les en-têtes (ligne 1 du thead) */
table thead tr:nth-child(2) th:nth-child(5), /* début Vent */
table thead tr:nth-child(2) th:nth-child(7), /* début Humidité */
table thead tr:nth-child(2) th:nth-child(10) /* début Pression */
{
    border-left: 4px solid #ffffff;
}

/* Séparations pour les en-têtes (ligne 2 du thead) */
table thead tr:nth-child(1) th:nth-child(4), /* début Vent */
table thead tr:nth-child(1) th:nth-child(7), /* début Humidité */
table thead tr:nth-child(1) th:nth-child(10) /* début Pression */
{
    border-left: 4px solid #ffffff;
}

/* Ajout d'un espage blanc entre les colonnes principales */
.borduregauche
{
    border-left: 4px solid #ffffff;
}

.minimum {
	font-size: 1.1rem;
    font-weight: bold;
}

.maximum {
	font-size: 1.1rem;
    font-weight: bold;
	color: #DC143C ;
}
.HeureStats {
	font-size: 0.7rem;
    font-weight: normal;
}

/*---------------------------------------------------DESIGN RESUME STATS-----------------------------------------------------------------------------*/

.resumeStats {
    list-style: none;
    padding: 15px 20px;
    background: #eef4fa;
    border-radius: 10px;
    width: fit-content;
    font-size: 16px;
    line-height: 1.6;
}
.resumeStats li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.resumeStats li span {
    font-size: 18px;
}


/*---------------------------------------------------DESIGN NAVIGATION STATS-----------------------------------------------------------------------------*/

.period-form {
  display: flex;
  flex-wrap: wrap; /*nouvel élément*/
  align-items: center; /* centre verticalement */
  gap: 8px; 
  justify-content: center;   /* ← Centre parfaitement le contenu */
  margin: 0 auto -1.5rem auto;
  /*height: 50px;*/
}
.period-form select option[data-ok="0"] { 
    color:#9aa3af; 
}
.period-form h5 {
    width: 100%;
    text-align: center;   /* centre le texte */
    order: -1; /* passe au-dessus */
    margin: 0 0 8px 0; /* ajuste un peu si nécessaire */
}
.sr-only { 
    position:absolute; 
    left:-9999px; 
}

/* ----------------------------------------------------------FOOTER-------------------------------------------------------------- */
footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 110px;
	font-size: 1rem;
	padding: 0 1em;
	color: #ffffff;
	background: #335F8A;
	border-top: 1px solid #2F4558;
	box-shadow: 0 -2px 2px rgba(47, 70, 89, 0.2);
}

footer ul {
	display: flex;
	justify-content: space-between;
	width: 100px;
	margin-right: 20px;
}

.couleur {
	color: #55D5E0;
}

.img_footer {
    width: 32px;
    height: 32px;
    transition: transform 0.6s ease-in-out;
    display: inline-block;
  }

 .img_footer:hover {
    transform: rotate(360deg);
 }

/* ----------------------------------------------------------MEDIA QUERIES-------------------------------------------------------------- */

/* Pour les écrans de moins de 930px (tablette ou smartphone paysage) */
@media only screen and (max-width: 930px) {
	#contenu_graphique {  
		gap: 50px; /* Espacement entre les éléments */
	}
	.graphique_accueil {  
		width: 80%; 
		margin: 0 auto;
	}
	.donnee { 
		width: 280px;
	}
	.img_footer {
		height: 35px;
	}
}

/* écran < 450px  smartphone en mode portrait */
@media only screen and (max-width: 450px) {
	header {
		height: 90px;
	}
	.graphique_accueil {  
		width: 90%; 
		margin: 0 auto;
	}
	#header_top {
	justify-content:center;	
	}
	.burger-menu {
		display: flex;
		color: var(--orange);
	}
	.genericon {
		font-size: 30px;
		transition: transform .1s ease;
	}
	.navigation, .slogan {
		display: none;
	}

	#nav-toggle:checked ~ nav .navigation {
		display: flex;
		flex-direction: column;
		z-index:10;
		margin-top: 20px;
		width: 100%;
		color: white;
		background: var(--orange);
	}	

	#nav-toggle:checked ~ nav .navigation a {
		padding: 20px 0;
		margin-left: 15px;
		font-size: 14px;
		font-weight: 300;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		color: white;
	 }

	#nav-toggle:checked ~ nav .navigation a:hover {
		color: white;
		text-decoration:underline;
	}
	
	#contenu_stats {
	overflow-x: auto;
	flex-wrap: wrap; /* Permet d'aller à la ligne */
	}
	
	footer {  
	flex-wrap: wrap; /* Permet d'aller à la ligne */
	justify-content: center;
	text-align: center;
	}