/* Site PGM : design "printemps" (maquette du 06/11/2026) - vert, creme et or sur fond illustre (img/pgm/fond.jpg,
   genere par site_pgm/export/GenFondSitePgm.java). Les pages du wiki venues du jeu gardent un cadre sombre (couleurs du jeu). */
:root {
	--vert: #3f8a1c;
	--vert-fonce: #2a6410;
	--vert-clair: #74b843;
	--vert-pale: #e7f2d9;
	--or: #c8a75a;
	--or-clair: #ecdcae;
	--creme: #fbf8ec;
	--carte: rgba(252, 250, 241, 0.82);
	--bord: #e3dabd;
	--texte: #22301b;
	--gris: #5f6a58;
	--rouge: #c24a3d;
	--ombre: 0 8px 28px rgba(44, 70, 20, 0.16);
	--rayon: 14px;
	--largeur: 1280px;
}
* { box-sizing: border-box; }
html { background: #dcebc6; scroll-behavior: smooth; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--texte);
	font: 15px/1.55 "Segoe UI", "Nunito", system-ui, -apple-system, Roboto, Arial, sans-serif;
	background-color: #dcebc6;
	background-image: linear-gradient(180deg, rgba(220, 235, 198, 0) 60%, #dcebc6 97%), url(../img/pgm/fond.jpg?v=3);
	background-position: center top;
	background-size: max(100%, 1100px) max(75vw, 825px), max(100%, 1100px) auto;
	background-repeat: no-repeat;
}
a { color: var(--vert-fonce); text-decoration: none; }
a:hover { color: var(--vert); }
h1, h2, h3 { color: var(--texte); line-height: 1.25; }
h1 { font-size: 26px; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 22px 0 10px; }
h3 { font-size: 17px; margin: 0 0 4px; }
main { flex: 1; width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px 48px; }
.gris { color: var(--gris); }
.petit { font-size: 13px; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ico.petit { width: 14px; height: 14px; vertical-align: -2px; }
.ico.titre { width: 30px; height: 30px; color: var(--vert); }
.ico.grand { width: 40px; height: 40px; color: var(--vert); }

/* ---------- barre du haut (cadre blanc flottant) */
.barre {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 18px;
	width: calc(100% - 32px);
	max-width: var(--largeur);
	margin: 0 auto;
	padding: 7px 10px 7px 20px;
	background: rgba(255, 255, 250, 0.9);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-top: 0;
	border-radius: 0 0 var(--rayon) var(--rayon);
	box-shadow: var(--ombre);
}
.marque { display: flex; align-items: center; gap: 8px; color: var(--vert-fonce); }
.marque img { width: 38px; height: 38px; }
.marque span { font: italic 700 26px Georgia, "Times New Roman", serif; letter-spacing: 0.02em; color: #2f3a28; }
.marque small { color: var(--gris); font-size: 12px; }
.navigation { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.navigation > a, .deroulant > button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--texte);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
}
.navigation > a + a::before, .navigation > .deroulant::before, .navigation > .deroulant + a::before {
	content: "";
	position: absolute;
	left: -3px;
	top: 30%;
	height: 40%;
	border-left: 1px solid var(--bord);
}
.deroulant { position: relative; }
.navigation > a:hover, .deroulant > button:hover, .deroulant:focus-within > button { background: var(--vert-pale); color: var(--vert-fonce); }
.navigation > a.actif, .deroulant.actif > button {
	background: linear-gradient(180deg, #59a52b, #367a14);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(42, 100, 16, 0.35);
}
.sous-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	padding: 6px;
	background: var(--creme);
	border: 1px solid var(--bord);
	border-radius: 10px;
	box-shadow: var(--ombre);
	display: none;
}
.deroulant:hover .sous-menu, .deroulant:focus-within .sous-menu, .deroulant.ouvert .sous-menu { display: block; }
.deroulant::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* pont pour le survol */
.sous-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 7px; color: var(--texte); font-weight: 600; }
.sous-menu a:hover, .sous-menu a.actif { background: var(--vert-pale); color: var(--vert-fonce); }
.sous-menu .ico { color: var(--vert); }
.langues .sous-menu { left: auto; right: 0; min-width: 170px; }
.langues > button { color: var(--gris); }
.burger { display: none; margin-left: auto; padding: 8px; border: 1px solid var(--bord); border-radius: 8px; background: #fff; color: var(--vert-fonce); cursor: pointer; }
.burger .ico { width: 22px; height: 22px; }

/* ---------- boutons */
.bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 22px;
	border-radius: 9px;
	font-weight: 700;
	font-size: 16px;
	transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.bouton:hover { transform: translateY(-1px); filter: brightness(1.06); }
.bouton.vert {
	color: #fff;
	background: linear-gradient(180deg, #5eae2d 0%, #3d8a19 55%, #2c6c0f 100%);
	border: 1px solid #2a6410;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 2px rgba(200, 167, 90, 0.55), 0 6px 16px rgba(42, 100, 16, 0.35);
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.bouton.creme {
	color: #3a3320;
	background: linear-gradient(180deg, #fffdf5, #f3ead0);
	border: 1px solid var(--or);
	box-shadow: inset 0 0 0 2px #fffdf6, 0 0 0 1px rgba(200, 167, 90, 0.5), 0 6px 16px rgba(120, 100, 40, 0.18);
}
.bouton.creme .ico { color: var(--vert-fonce); }
.bouton.grand { font-size: 20px; padding: 14px 34px; }
.jouer-haut { padding: 10px 22px; }

/* ---------- accueil : heros */
.heros {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	/* a mi-chemin entre l ancienne hauteur et le bas du logo (demande du 06/11) */
	min-height: calc((clamp(400px, calc(max(100vw, 1100px) * 0.3), 560px) + 6px + clamp(220px, 19vw, 300px)) / 2);
	padding: 10px 16px 34px;
	isolation: isolate;
}
.heros::before { /* brume claire derriere le logo, comme la maquette */
	content: "";
	position: absolute;
	inset: -40px 10% 0;
	z-index: -1;
	background: radial-gradient(ellipse 50% 52% at 50% 46%, rgba(250, 252, 240, 0.92), rgba(246, 250, 236, 0.6) 55%, rgba(246, 250, 236, 0) 100%);
	pointer-events: none;
}
.heros-logo { width: clamp(220px, 19vw, 300px); margin-top: -4px; height: auto; filter: drop-shadow(0 6px 10px rgba(60, 40, 10, 0.25)); }
.heros-nom { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; font: 600 clamp(14px, 1.6vw, 20px) Georgia, "Times New Roman", serif; letter-spacing: 0.28em; text-transform: uppercase; color: #3b3422; }
.heros-nom::before, .heros-nom::after { content: ""; width: clamp(30px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, transparent, #6b5a30); }
.heros-nom::after { transform: scaleX(-1); }
.heros-accroche { max-width: 560px; margin: 0 0 22px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; color: #1f2a19; text-shadow: 0 0 12px rgba(255, 255, 250, 0.9); }
.heros-nom + .boutons, .heros .cache + .boutons { margin-top: 14px; }
.boutons { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- cadre or (bandeau des atouts) et cartes */
.cadre-or {
	position: relative;
	background: linear-gradient(180deg, rgba(255, 253, 244, 0.82), rgba(249, 244, 226, 0.82));
	border: 1px solid var(--or);
	border-radius: 6px;
	box-shadow: inset 0 0 0 4px rgba(255, 253, 244, 0.6), inset 0 0 0 5px var(--or-clair), var(--ombre);
}
.cadre-or::before, .cadre-or::after {
	content: "";
	position: absolute;
	width: 26px;
	height: 26px;
	border: 2px solid var(--or);
	pointer-events: none;
}
.cadre-or::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.cadre-or::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 12px; margin-bottom: 30px; scroll-margin-top: 90px; }
.atout { text-align: center; padding: 4px 18px; }
.atout + .atout { border-left: 1px solid var(--bord); }
.atout h3 { margin: 8px 0 2px; font-size: 18px; }
.atout p { margin: 0; color: #3c4734; font-size: 14.5px; }

.carte {
	background: var(--carte);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--rayon);
	box-shadow: var(--ombre);
	padding: 22px 26px;
}
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.carte-tete h1, .carte-tete h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 25px; }
.lien-fleche { font-size: 13px; font-weight: 600; }
.colonnes { display: grid; grid-template-columns: 1.33fr 1fr; gap: 26px; align-items: start; }
.colonne-droite { display: grid; gap: 22px; }

/* actualites */
.actu { display: grid; grid-template-columns: 215px 1fr; gap: 18px; padding: 14px 0; }
.actu + .actu { border-top: 1px solid var(--bord); }
.actu img { width: 215px; height: 113px; object-fit: cover; border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); }
.actu h3 { font-size: 18px; margin: 6px 0 2px; }
.actu p { margin: 0; font-size: 14.5px; color: #34402c; }
.actu .date { display: flex; align-items: center; gap: 6px; color: var(--gris); font-size: 13px; margin-bottom: 4px; }
.etiquette { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--vert); }
.etiquette.event { background: #3e8a2a; }
.etiquette.info { background: #b08a32; }

/* statut du serveur */
.statut { position: relative; overflow: hidden; }
.statut .carte-tete { justify-content: flex-start; }
.statut .carte-tete h2 { font-size: 21px; }
.pastille { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pastille.en-ligne { background: #e2f1d3; color: var(--vert-fonce); }
.pastille.hors-ligne { background: #f7dfd9; color: var(--rouge); }
.pastille .point { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.stats { list-style: none; margin: 0; padding: 0; max-width: 330px; position: relative; z-index: 1; }
.stats li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; font-size: 15.5px; }
.stats li:nth-child(odd) { background: rgba(231, 242, 217, 0.55); border-radius: 6px; }
.stats li .ico { color: var(--vert); width: 20px; height: 20px; }
.stats li span { flex: 1; }
.stats li strong { color: var(--vert-fonce); font-size: 16px; }
.pavillon { position: absolute; right: 4px; bottom: 0; width: 140px; mix-blend-mode: multiply; opacity: 0.9; pointer-events: none; }

/* lien vers le classement */
.classement-lien { display: flex; align-items: center; gap: 18px; padding: 14px 20px; color: var(--texte); }
.classement-lien:hover { color: var(--texte); transform: translateY(-1px); }
.classement-lien img { width: 86px; mix-blend-mode: multiply; }
.classement-lien span { flex: 1; display: flex; flex-direction: column; }
.classement-lien strong { font-size: 22px; }
.classement-lien small { font-size: 14px; color: #3c4734; }
.classement-lien .rond { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(180deg, #5eae2d, #2c6c0f); color: #fff; box-shadow: 0 0 0 2px rgba(200, 167, 90, 0.5); }

/* installation */
.telecharger { margin-top: 26px; text-align: center; scroll-margin-top: 90px; }
.telecharger h2 { display: inline-flex; align-items: center; gap: 12px; margin-top: 0; font-size: 25px; }
.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 8px 0 22px; text-align: left; }
.etapes li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: rgba(231, 242, 217, 0.6); border-radius: 10px; font-size: 14.5px; }
.etapes li span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vert); color: #fff; font-weight: 700; }
.telecharger .gris { margin: 10px 0 0; }

/* ---------- pages simples (actualites, classement) */
.page-simple { padding-top: 34px; max-width: 980px; }
.trophee-titre { width: 60px; mix-blend-mode: multiply; }
.defile { overflow-x: auto; }
.tableau.rang td, .tableau.rang th { padding: 9px 12px; }
.tableau.rang .place { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; font-weight: 700; color: var(--gris); }
.podium .place { color: #fff; }
.podium.p1 .place { background: linear-gradient(180deg, #f3d36b, #c99a24); }
.podium.p2 .place { background: linear-gradient(180deg, #d9dde2, #9aa2ab); }
.podium.p3 .place { background: linear-gradient(180deg, #e4a874, #ad6a35); }
.empire { display: inline-block; padding: 1px 9px; border-radius: 4px; font-size: 12.5px; font-weight: 700; color: #fff; }
.empire.e1 { background: #b8453a; }
.empire.e2 { background: #c9a227; }
.empire.e3 { background: #3c6fb5; }

/* ---------- tableaux communs */
.tableau { border-collapse: collapse; width: 100%; margin: 6px 0 12px; font-size: 14.5px; }
.tableau th { text-align: left; color: var(--vert-fonce); font-weight: 700; border-bottom: 2px solid var(--bord); padding: 7px 8px; }
.tableau td { border-bottom: 1px solid #ece5cd; padding: 6px 8px; vertical-align: middle; }
.tableau tr:hover td { background: rgba(231, 242, 217, 0.5); }
.tableau.stats { width: auto; min-width: 340px; }

/* ---------- wiki */
.wiki { display: grid; grid-template-columns: 270px 1fr; gap: 22px; padding-top: 28px; align-items: start; max-width: var(--largeur); }
.menu-wiki { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding: 12px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); }
.menu-wiki details { border-bottom: 1px solid var(--bord); }
.menu-wiki details:last-child { border-bottom: 0; }
.menu-wiki summary { cursor: pointer; padding: 9px 8px; font-weight: 700; color: var(--texte); list-style: none; border-radius: 7px; }
.menu-wiki summary::-webkit-details-marker { display: none; }
.menu-wiki summary::before { content: "\25B8"; display: inline-block; width: 14px; color: var(--vert); transition: transform 0.15s; }
.menu-wiki details[open] summary::before { transform: rotate(90deg); }
.menu-wiki summary:hover { background: var(--vert-pale); }
.menu-wiki details a { display: block; padding: 5px 10px 5px 26px; color: #34402c; font-size: 14px; border-radius: 6px; }
.menu-wiki details a:hover { background: var(--vert-pale); color: var(--vert-fonce); }
.menu-wiki details a.actif { background: linear-gradient(180deg, #59a52b, #367a14); color: #fff; }
.menu-wiki details[open] { padding-bottom: 6px; }
.recherche input {
	width: 100%;
	margin-bottom: 8px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--bord);
	border-radius: 9px;
	color: var(--texte);
	font: inherit;
}
.recherche input:focus { outline: none; border-color: var(--vert-clair); box-shadow: 0 0 0 3px rgba(116, 184, 67, 0.25); }
.contenu { min-height: 400px; overflow-x: auto; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px 28px; }
.contenu > h1 { font-size: 24px; }
.compte { margin-top: -4px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.case { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; text-align: center; font-size: 13px; color: var(--texte); }
.case:hover { border-color: var(--vert-clair); background: #f6fbef; color: var(--texte); }
.case img { max-width: 64px; max-height: 96px; }
.case small { color: var(--gris); }
.objet { display: inline-flex; align-items: center; gap: 6px; }
.objet img { width: 32px; height: auto; max-height: 48px; }
.fiche-tete { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.fiche-tete img { max-width: 64px; padding: 6px; background: #2a3123; border-radius: 8px; }
.fiche-tete h1 { margin: 0; }
.description { white-space: pre-line; border-left: 3px solid var(--vert-clair); padding-left: 12px; }
.carac { list-style: none; padding: 0; margin: 0; }
.carac li { padding: 2px 0; color: #1d68a8; font-weight: 600; }
.contenu h2 { border-bottom: 2px solid var(--bord); padding-bottom: 4px; }

/* pages de texte du wiki : cadre sombre facon fenetre du jeu (les couleurs viennent des pages du jeu) */
.page-wiki {
	font: 14px/1.45 Tahoma, "Segoe UI", sans-serif;
	color: #e6e2d6;
	background: linear-gradient(180deg, #232a1e, #171b14);
	border: 1px solid #5d5232;
	border-radius: 10px;
	box-shadow: inset 0 0 0 3px #12150f, inset 0 0 0 4px rgba(200, 167, 90, 0.45);
	padding: 18px 22px;
}
.page-wiki a { color: #b9e08f; }
.page-wiki .gris { color: #a7a99f; }
.page-wiki .wl { min-height: 1.3em; }
.page-wiki .centre { text-align: center; }
.page-wiki .droite { text-align: right; }
.page-wiki .puce::before { content: "\25B8"; color: #a6d36d; margin-right: 8px; }
.page-wiki .wimg { margin: 6px 0; }
.page-wiki .wimg img { max-width: 100%; }
.page-wiki .tableau th { color: #d9c27e; border-bottom-color: #5d5232; }
.page-wiki .tableau td { border-bottom-color: #33392b; }
.page-wiki .tableau tr:hover td { background: rgba(255, 255, 255, 0.04); }
.live { margin-top: 16px; }
.live-titre { color: #f2cc66; font: 16px Tahoma, sans-serif; margin: 18px 0 8px; border: 0; }
.live-ligne { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.live-ligne .icone { width: 40px; flex: none; }
.live-ligne .icone img { max-width: 32px; }
.live-texte.retrait { padding-left: 16px; }
.live-texte.bleu { color: #99d9ff; margin-top: 6px; }
.tableau.bonus td:first-child { width: 50%; }

/* ---------- pied */
.pied { margin-top: auto; background: rgba(36, 58, 24, 0.94); color: #dfe9d2; }
.pied-interieur { max-width: var(--largeur); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 13.5px; }
.pied .marque span { color: #f4f1e2; font-size: 22px; }
.pied .marque img { width: 30px; height: 30px; }
.pied .marque small { color: #b6c6a6; }
.pied nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pied a { color: #e8f2da; }
.pied a:hover { color: #fff; }
.pied .gris { color: #b6c6a6; }

/* ---------- ecrans moyens */
@media (max-width: 1150px) {
	.jouer-haut { display: none; }
	.navigation > a, .deroulant > button { padding: 8px 10px; }
}
@media (max-width: 980px) {
	.colonnes { grid-template-columns: 1fr; }
	.atouts { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
	.atout:nth-child(odd) { border-left: 0; }
	.etapes { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- telephone */
@media (max-width: 820px) {
	.barre { flex-wrap: wrap; padding: 8px 12px 8px 14px; width: 100%; border-radius: 0 0 12px 12px; }
	.burger { display: inline-flex; }
	.navigation { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; }
	.barre.ouverte .navigation { display: flex; }
	.navigation > a + a::before, .navigation > .deroulant::before, .navigation > .deroulant + a::before { display: none; }
	.navigation > a, .deroulant > button { width: 100%; justify-content: flex-start; }
	.sous-menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 18px; }
	.deroulant:hover .sous-menu { display: none; }
	.deroulant.ouvert .sous-menu, .deroulant:focus-within .sous-menu { display: block; }
	.wiki { grid-template-columns: 1fr; }
	.menu-wiki { position: static; max-height: none; }
	.contenu { padding: 18px 14px; }
	.carte { padding: 18px 16px; }
	.actu { grid-template-columns: 1fr; }
	.actu img { width: 100%; height: auto; aspect-ratio: 215 / 113; }
	.page-wiki { padding: 14px 12px; }
}
@media (max-width: 560px) {
	.atouts { grid-template-columns: 1fr; }
	.atout + .atout { border-left: 0; border-top: 1px solid var(--bord); padding-top: 14px; }
	.etapes { grid-template-columns: 1fr; }
	.boutons { gap: 12px; }
	.bouton.grand { font-size: 18px; padding: 12px 24px; }
	.pavillon { display: none; }
	.carte-tete h1, .carte-tete h2 { font-size: 22px; }
}

/* hors accueil : voile clair sur le fond (les zones rebouchees de l'image sont moins couvertes par les cadres) */
body:not(.p-accueil) { background-image: linear-gradient(180deg, rgba(232, 242, 218, 0.55), rgba(220, 235, 198, 0.75) 60%, #dcebc6 97%), url(../img/pgm/fond.jpg?v=3); }

/* personnages (img/pgm/personnages.webp, fournis le 06/11) : bord gauche de l ecran, EN ENTIER derriere les cadres transparents */
body.p-accueil { overflow-x: hidden; }
.personnages {
	position: absolute;
	left: 50%;
	--h: clamp(560px, 50vw, 820px);
	top: -8px;
	height: var(--h);
	width: auto;
	transform: translateX(calc(-1 * min(50vw, 770px) - var(--h) * 0.12));
	z-index: 0;
	pointer-events: none;
	filter: drop-shadow(0 10px 18px rgba(30, 50, 15, 0.25));
}
.heros > :not(.personnages) { position: relative; z-index: 1; }
.atouts { z-index: 2; }
.accueil .colonnes, .accueil .telecharger { position: relative; z-index: 1; } /* cadres devant les personnages (en entier) */
@media (max-width: 1279px) { .personnages { display: none; } }

/* logo PGM de la barre (img/pgm/logo_pgm.webp, fourni le 06/11), deborde un peu sous la barre */
.logo-barre { margin: -4px 0 -14px; }
.logo-barre img { width: auto; height: 62px; filter: drop-shadow(0 3px 5px rgba(40, 30, 10, 0.3)); transition: transform 0.15s; }
.logo-barre:hover img { transform: scale(1.05); }
@media (max-width: 820px) { .logo-barre { margin: -2px 0 -8px; } .logo-barre img { height: 50px; } }
.pied .marque-pied img { width: auto; height: 46px; }
.pied .marque-pied small { font-size: 13px; }

/* cadre statut du serveur + statistiques (remplace les atouts, 06/11) */
.serveur-infos { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: 0; padding: 18px 22px; margin-bottom: 30px; scroll-margin-top: 90px; z-index: 2; }
.serveur-infos h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 19px; }
.serveur-infos .ico.titre { width: 24px; height: 24px; }
.bloc-statut { padding-right: 22px; border-right: 1px solid var(--bord); }
.bloc-stats { padding-left: 22px; }
.voyants { list-style: none; margin: 0; padding: 0; }
.voyants li { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; border-radius: 6px; font-weight: 600; }
.voyants li:nth-child(odd) { background: rgba(231, 242, 217, 0.5); }
.voyants .pastille { padding: 1px 10px; font-size: 12.5px; }
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tuile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 14px; background: rgba(255, 255, 255, 0.45); border: 1px solid var(--bord); border-radius: 10px; }
.tuile .ico { grid-row: span 2; width: 28px; height: 28px; color: var(--vert); }
.tuile strong { font-size: 22px; line-height: 1.1; color: var(--vert-fonce); }
.tuile span { font-size: 13.5px; color: #3c4734; line-height: 1.25; }
.tuile small { display: block; font-size: 12px; color: var(--gris); }
.tuile.record .ico { color: #c99a24; }
@media (max-width: 980px) {
	.serveur-infos { grid-template-columns: 1fr; }
	.bloc-statut { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--bord); }
	.bloc-stats { padding: 14px 0 0; }
}
@media (max-width: 560px) { .tuiles { grid-template-columns: 1fr 1fr; } .tuile strong { font-size: 19px; } }

/* ---------- page Presentation : sommaire a gauche, un cadre par systeme */
.presentation { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 28px; align-items: start; }
.sommaire { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding: 14px 12px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); }
.sommaire h2 { margin: 0 0 6px 8px; font-size: 18px; }
.sommaire-cat { margin: 12px 8px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--vert); }
.sommaire a { display: block; padding: 5px 10px; border-radius: 7px; color: #34402c; font-size: 14px; }
.sommaire a:hover { background: var(--vert-pale); color: var(--vert-fonce); }
.sommaire a.actif { background: linear-gradient(180deg, #59a52b, #367a14); color: #fff; }
.presentation-contenu { min-width: 0; }
.intro h1 { margin-bottom: 6px; }
.intro p { margin: 0; font-size: 16px; }
.titre-cat { margin: 30px 0 12px; padding: 6px 16px; display: inline-block; font-size: 20px; color: #fff; background: linear-gradient(180deg, #59a52b, #2c6c0f); border-radius: 9px; box-shadow: 0 0 0 2px rgba(200, 167, 90, 0.5), var(--ombre); }
.systeme { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 16px; scroll-margin-top: 86px; align-items: start; }
.systeme h3 { font-size: 21px; margin: 2px 0 6px; }
.systeme p { margin: 0 0 8px; font-size: 15px; }
.systeme ul { margin: 0; padding-left: 0; list-style: none; }
.systeme li { position: relative; padding: 3px 0 3px 22px; font-size: 14.5px; color: #34402c; }
.systeme li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--or); }
.systeme:target { box-shadow: 0 0 0 2px var(--vert-clair), var(--ombre); }
.vignette, .systeme .capture { width: 230px; height: 150px; border-radius: 10px; }
.systeme .capture { object-fit: cover; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.vignette {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: radial-gradient(ellipse at 50% 30%, #3f6b28, #1d2f14 75%);
	border: 1px solid #5d5232;
	box-shadow: inset 0 0 0 3px #15210f, inset 0 0 0 4px rgba(200, 167, 90, 0.5), 0 3px 10px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}
.vignette::after { content: ""; position: absolute; inset: 0; background: url(../img/pgm/logo_pgm.webp?v=1) right 8px bottom 8px / 34px auto no-repeat; opacity: 0.35; }
.vignette-ico { width: 54px; height: 54px; color: #e9cf86; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.vignette-objets { display: flex; gap: 8px; }
.vignette-objets img { width: 40px; height: auto; max-height: 64px; padding: 3px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(200, 167, 90, 0.5); border-radius: 6px; }
@media (max-width: 980px) {
	.presentation { grid-template-columns: 1fr; }
	.sommaire { position: static; max-height: none; }
}
@media (max-width: 680px) {
	.systeme { grid-template-columns: 1fr; }
	.vignette, .systeme .capture { width: 100%; }
}
/* capture de l interface en jeu (img/presentation/<id>_<lg>.png), sous le texte, sur toute la largeur */
.systeme .interface { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; }
.systeme .interface img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px #5d5232, 0 6px 18px rgba(0, 0, 0, 0.3); image-rendering: auto; }
.systeme .interface a:hover img { box-shadow: 0 0 0 2px var(--or), 0 6px 18px rgba(0, 0, 0, 0.35); }
.systeme .interface figcaption { margin-top: 6px; font-size: 13px; color: var(--gris); }
/* systeme avec capture d interface : pas de vignette, texte sur toute la largeur ; icones d objets sous le texte sans cadre */
.systeme.sans-vignette { grid-template-columns: 1fr; }
.objets-systeme { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.objets-systeme img { width: 36px; height: auto; max-height: 72px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
/* galerie d images d un systeme (plusieurs captures / illustrations ; ombre qui suit la transparence des PNG detoures) */
.systeme .galerie { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.systeme .galerie img { max-width: 100%; max-height: 680px; width: auto; height: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 14px rgba(20, 30, 10, 0.35)); }
.systeme .galerie a:hover img { box-shadow: none; filter: drop-shadow(0 6px 14px rgba(20, 30, 10, 0.35)) drop-shadow(0 0 2px var(--or)); }
