/* data.carles.pm — palette reprise de carles.pm, polices système (aucun appel externe) */
:root {
	--bleu: #0067ff;
	--bleu-fonce: #0047b3;
	--encre: #0f172a;
	--texte: #364151;
	--discret: #5b6676;
	--fond: #e7f6ff;
	--carte: #ffffff;
	--trait: #d1dae5;
	--titres: Georgia, "Times New Roman", serif;
	--corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--corps); line-height: 1.55; }
a { color: var(--bleu-fonce); text-underline-offset: .15em; }
a:hover { color: var(--bleu); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
h1, h2, h3 { color: var(--encre); line-height: 1.2; }
h1 { font-family: var(--titres); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4em; }
h2 { font-family: var(--titres); font-size: 1.45rem; margin: 2.2em 0 .8em; }
h3 { font-size: 1.02rem; margin: 0 0 .5em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
code { background: #f1f5fa; padding: .1em .35em; border-radius: 3px; }
pre { background: var(--carte); border: 1px solid var(--trait); border-radius: 4px; padding: 1em; overflow-x: auto; }
pre code { background: none; padding: 0; }

.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6em 1em; z-index: 10; }
.evitement:focus { left: 0; }
.conteneur { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.bandeau { background: var(--carte); border-bottom: 1px solid var(--trait); }
.bandeau-int { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6em 1.5em; min-height: 68px; }
.marque { text-decoration: none; font-family: var(--titres); font-size: 1.5rem; font-weight: 700; }
.marque-data { color: var(--bleu); }
.marque-domaine { color: var(--encre); font-weight: 400; }
.bandeau nav { display: flex; gap: 1.4em; flex-wrap: wrap; }
.bandeau nav a { color: var(--encre); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 600; }
.bandeau nav a:hover { color: var(--bleu); }

main { padding-bottom: 3em; }
.intro { padding: 2.2em 0 .5em; max-width: 52em; }
.intro p { margin: .4em 0; }
.chiffres { color: var(--encre); }
.fil { margin: 1.4em 0 0; font-size: .9rem; color: var(--discret); }
.discret { color: var(--discret); font-size: .88rem; margin: .3em 0; }

.cartes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.carte, .stat { background: var(--carte); border: 1px solid var(--trait); border-radius: 4px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.carte h3 a { color: var(--encre); text-decoration: none; }
.carte h3 a:hover { color: var(--bleu); text-decoration: underline; }
.valeurs { display: flex; align-items: baseline; gap: 1em; margin: .2em 0 .5em; }
.temp { font-size: 2.2rem; font-weight: 500; color: var(--encre); line-height: 1; letter-spacing: -.02em; }
.hum { font-size: 1.3rem; color: var(--bleu-fonce); line-height: 1; }
.valeurs small { font-size: .5em; color: var(--discret); font-weight: 400; }
.valeurs.grand .temp { font-size: 3rem; }
.valeurs.grand .hum { font-size: 1.7rem; }
.liens { display: flex; gap: 1.2em; margin: .8em 0 0; font-size: .92rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.stat-moy { font-size: 2rem; color: var(--encre); margin: .1em 0; line-height: 1.1; }
.stat-moy small { font-size: .5em; color: var(--discret); }
.stat-ext { margin: .2em 0; color: var(--texte); display: flex; gap: 1.2em; }

.records { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.records li { background: var(--carte); border: 1px solid var(--trait); border-radius: 4px; padding: 14px 18px; display: flex; flex-direction: column; }
.record-titre { font-weight: 600; color: var(--encre); }
.record-valeur { font-size: 1.5rem; color: var(--bleu-fonce); }

.graphique { background: var(--carte); border: 1px solid var(--trait); border-radius: 4px; padding: 16px 18px; margin: 0 0 20px; }
.graphique figcaption { font-weight: 600; color: var(--encre); margin-bottom: .6em; }
.graphique-zone { position: relative; height: 320px; }

.tableau-defilant { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--carte); border: 1px solid var(--trait); font-size: .95rem; }
th, td { text-align: left; padding: .55em .8em; border-bottom: 1px solid var(--trait); }
thead th { background: #f4f8fc; color: var(--encre); font-weight: 600; }
tbody th { font-weight: 600; }
td { font-variant-numeric: tabular-nums; white-space: nowrap; }

.telechargements { padding-left: 1.2em; }
.telechargements li { margin: .35em 0; }

.pied { border-top: 1px solid var(--trait); background: var(--carte); color: var(--discret); font-size: .88rem; padding: 1.2em 0; }

@media (max-width: 600px) {
	.temp { font-size: 1.9rem; }
	.valeurs.grand .temp { font-size: 2.4rem; }
	.graphique-zone { height: 260px; }
}
