/* Page de Yoru City : la charte DU JEU (pas celle du studio), reprise des menus du jeu.
   Sources : « UI GameOptions » (panneau bulle bleu ciel, rayons très arrondis), BubbleStyle BC_* (boutons crème,
   survol et appui bleus), theme_bubble (teintes pastel), police Nunito. Valeurs Godot (0 à 1) converties en hexadécimal.
   Toutes les couleurs de la page sont ici, dans html.jeu-yoru ; elles remplacent celles de partage/base.css. */

@font-face { font-family: "Nunito"; src: url("polices/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("polices/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

html.jeu-yoru {
  /* Bandes du haut et du bas : le bleu du panneau bulle, assombri pour que le blanc reste lisible */
  --fond: #3b77ab;
  --fond-centre: #65b2e9;   /* BgRect du menu principal du jeu */
  --grain: none;
  --encre: #f0f7ff;           /* Label/font_color du thème du jeu */
  --encre-titre: #f0f7ff;
  --encre-douce: #d8ebfa;
  --accent: #3b6ba6;          /* texte des boutons du jeu : titres sur fond crème */
  --accent-survol: #ffffff;
  --trait: #90c8f1;           /* bordure du panneau bulle */
  --trait-or: #90c8f1;
  --cadre-interieur: rgba(255, 255, 255, .75);
  --ombre: rgba(0, 0, 0, .18);                /* ombre des boutons du jeu */
  --logo-filtre: brightness(0) invert(1);     /* « Tigerhead STUDIO » en blanc sur le bleu */
  /* Cartes et boutons : le crème des boutons du jeu */
  --creme: #faf7ed;
  --creme-bord: #ece8da;
  --texte-bleu: #3b6ba6;
  --texte-corps: #35506f;
  --bouton-fond: var(--creme);
  --bouton-fond-survol: #6ec0f0;
  --bouton-fond-presse: #3d9eff;
  --bouton-trait: var(--creme-bord);
  --bouton-trait-survol: #6ec0f0;
  --bouton-trait-presse: #3d9eff;
  --bouton-texte: var(--texte-bleu);
  /* Un code couleur par outil, en pastel (theme_bubble, teintes de familles du panneau de construction) */
  --p-ville: #83ccf5;         --p-ville-fort: #40b0f0;
  --p-simulation: #ffee9e;    --p-simulation-fort: #ffd84a;
  --p-sociale: #f58cc2;       --p-sociale-fort: #f04fa1;
  --p-build: #ffc89e;         --p-build-fort: #ff9f5a;
  --p-mods: #a283eb;          --p-mods-fort: #7040e0;
  --p-communaute: #c2f2c2;    --p-communaute-fort: #7fd67f;
  --police-titre: "Nunito", var(--police);
  --police-texte: "Nunito", var(--police);
  --police-mono: "Nunito", var(--police);
  --rayon: 28px;
}

html.jeu-yoru body { font-weight: 400; }
html.jeu-yoru h1, html.jeu-yoru h2, html.jeu-yoru h3 { font-weight: 800; }
html.jeu-yoru .entete, html.jeu-yoru .pied { border-color: var(--trait); border-style: solid; border-width: 0 0 5px; }
html.jeu-yoru .pied { border-width: 5px 0 0; }
html.jeu-yoru .nav a, html.jeu-yoru .langues a, html.jeu-yoru .pied { color: var(--encre); }
html.jeu-yoru .marque { color: var(--encre); }

/* Le fond : le bleu du menu principal du jeu (BgRect, #65b2e9) ; les nuages (yoru-nuages.js) passent par-dessus */
html.jeu-yoru main { background: linear-gradient(180deg, #7cc0ee, var(--fond-centre) 40%, #5aaae4); }
/* Canvas des nuages : collé à l'écran pendant le défilement, derrière le contenu (même méthode que le fond d'équations du studio) */
.nuages { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh; z-index: -1; pointer-events: none; }
html.jeu-yoru { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.jeu-yoru { scroll-behavior: auto; } }

/* Le haut de page : retour, logo animé, étiquette, texte */
html.jeu-yoru .retour, html.jeu-yoru .surtitre { color: var(--texte-bleu); font-weight: 800; }
html.jeu-yoru .retour:hover { color: #fff; }
html.jeu-yoru .intro { color: var(--texte-corps); font-weight: 600; }
html.jeu-yoru .etiquette-centree {
  color: var(--texte-bleu); background: var(--creme); border: 3px solid var(--creme-bord); outline: 0; border-radius: 999px;
  padding: 8px 18px; font: 800 13px/1 var(--police-mono); letter-spacing: .12em; box-shadow: 0 3px 8px var(--ombre);
}
.yoru-hero { display: flex; flex-direction: column; align-items: center; }
.yoru-hero .jeu-actions { margin-top: 24px; justify-content: center; }

/* Le logo : 18 images empilées dans une boîte 600 × 420 (unités du jeu, échelle 0,8 de LogoAnimate.tscn).
   --x et --y = centre de l'image en % de la boîte, --l = sa largeur ; les positions viennent de la scène du jeu. */
.yoru-logo { position: relative; width: min(600px, 94vw); aspect-ratio: 600 / 420; margin: 8px 0 10px; }
.yl { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--l) * 1%); height: auto; translate: -50% -50%; }
.yoru-logo.anime .yl { scale: 0; }       /* posé par yoru-logo.js, qui les fait apparaître */
.yoru-logo.anime .yl-fond { scale: 1; opacity: 0; }
.yl-fond { --x: 50.0; --y: 50.0; --l: 68.27; }
.yl-cercle { --x: 50.0; --y: 50.0; --l: 68.27; }
.yl-1-y-back { --x: 25.73; --y: 34.95; --l: 25.94; }
.yl-1-y-front { --x: 25.87; --y: 34.76; --l: 25.94; }
.yl-2-o-back { --x: 42.0; --y: 34.76; --l: 25.94; }
.yl-2-o-front { --x: 42.0; --y: 34.57; --l: 25.94; }
.yl-3-r-back { --x: 57.73; --y: 34.19; --l: 25.94; }
.yl-3-r-front { --x: 57.73; --y: 34.57; --l: 25.94; }
.yl-4-u-back { --x: 73.73; --y: 34.38; --l: 25.94; }
.yl-4-u-front { --x: 73.6; --y: 34.57; --l: 25.94; }
.yl-5-c-back { --x: 27.07; --y: 66.19; --l: 27.65; }
.yl-5-c-front { --x: 27.07; --y: 66.0; --l: 27.65; }
.yl-6-i-back { --x: 41.33; --y: 66.0; --l: 27.65; }
.yl-6-i-front { --x: 41.33; --y: 66.0; --l: 27.65; }
.yl-7-t-back { --x: 55.73; --y: 66.0; --l: 27.65; }
.yl-7-t-front { --x: 55.73; --y: 65.81; --l: 27.65; }
.yl-8-y-back { --x: 72.8; --y: 66.19; --l: 27.65; }
.yl-8-y-front { --x: 72.8; --y: 66.19; --l: 27.65; }
/* Cartes : crème des boutons du jeu, bord épais arrondi, ombre douce (plus de cadre doré) */
html.jeu-yoru .cadre::after { display: none; }
html.jeu-yoru .bloc { background: var(--creme); border: 4px solid var(--creme-bord); border-radius: var(--rayon); box-shadow: 0 3px 8px var(--ombre); }
html.jeu-yoru .bloc h2, html.jeu-yoru .bloc h3 { color: var(--texte-bleu); }
html.jeu-yoru .bloc p { color: var(--texte-corps); }
html.jeu-yoru .jeu-infos { font-weight: 800; color: var(--texte-bleu); }
html.jeu-yoru .fiche-galerie h2, html.jeu-yoru .contact h2  { color: var(--texte-bleu); }
html.jeu-yoru .contact p  { color: var(--texte-corps); font-weight: 600; }
html.jeu-yoru .cadre-double { border: 4px solid var(--creme); border-radius: 20px; box-shadow: 0 3px 8px var(--ombre); }
html.jeu-yoru .cadre-double::after { border-radius: 16px; }

/* Boutons : crème arrondi ; survol bleu clair, appui bleu vif (BubbleStyle BC_Hover / BC_Press) */
html.jeu-yoru .bouton { border-radius: 25px; border-width: 4px; outline: 0; padding: 10px 26px; font-weight: 800; box-shadow: 0 3px 8px var(--ombre); }
html.jeu-yoru .bouton:hover, html.jeu-yoru .bouton:focus-visible, html.jeu-yoru .bouton:active { color: #fff; }
html.jeu-yoru .bouton-inactif { opacity: .75; }
html.jeu-yoru .bouton-inactif:hover { background: var(--creme); border-color: var(--creme-bord); color: var(--texte-bleu); }
html.jeu-yoru :focus-visible { outline-color: #3d9eff; }
html.jeu-yoru .galerie-fleche { border-width: 3px; box-shadow: 0 3px 8px var(--ombre); color: var(--texte-bleu); }
html.jeu-yoru .galerie-fleche:hover { color: #fff; }
html.jeu-yoru .vignette.actif { border-color: #fff; }

/* Un titre posé sur le ciel : dans une bulle crème, lisible même devant un nuage */
.titre-bulle { display: inline-block; margin: 0; padding: 10px 28px; background: var(--creme); color: var(--texte-bleu); border: 4px solid var(--creme-bord);
  border-radius: 999px; box-shadow: 0 3px 8px var(--ombre); font-size: clamp(1.2rem, 3vw, 1.7rem); }
.titre-centre { display: table; margin: 0 auto -12px; }
.fiche-galerie h2 { text-align: center; }

/* Fiche du jeu : quatre faits en puces crème */
.fiche-faits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; padding: 0; }
.fiche-faits div { background: #fff; border: 3px solid var(--creme-bord); border-radius: 18px; padding: 10px 16px; }
.fiche-faits dt { font: 800 11px/1 var(--police-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-bleu); margin-bottom: 4px; }
.fiche-faits dd { margin: 0; color: var(--texte-corps); font-weight: 600; }
.fiche-texte .jeu-actions { justify-content: flex-start; }

/* Les six piliers : un bouton par pilier sous le logo, une couleur chacun (descriptif + lien vers sa section) */
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 980px; margin-top: 26px; }
.pilier { --teinte: var(--p-ville); --fort: var(--p-ville-fort); display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; text-align: left; text-decoration: none;
  background: var(--teinte); color: #2a456b; border: 4px solid var(--fort); border-radius: 25px; box-shadow: 0 3px 8px var(--ombre);
  transition: translate .25s cubic-bezier(.22, .8, .3, 1), border-color .2s, box-shadow .25s; }
.pilier:hover, .pilier:focus-visible { translate: 0 -4px; box-shadow: 0 0 0 4px var(--teinte), 0 8px 16px var(--ombre); }
.pilier:active { translate: 0 0; }
.pilier-nom { font: 800 1.1rem/1.2 var(--police-titre); }
.pilier-desc { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.pilier-ville, .outil-ville { --teinte: var(--p-ville); --fort: var(--p-ville-fort); }
.pilier-simulation, .outil-simulation { --teinte: var(--p-simulation); --fort: var(--p-simulation-fort); }
.pilier-sociale, .outil-sociale { --teinte: var(--p-sociale); --fort: var(--p-sociale-fort); }
.pilier-build, .outil-build { --teinte: var(--p-build); --fort: var(--p-build-fort); }
.pilier-mods, .outil-mods { --teinte: var(--p-mods); --fort: var(--p-mods-fort); }
.pilier-communaute, .outil-communaute { --teinte: var(--p-communaute); --fort: var(--p-communaute-fort); }
.pilier-mods { color: #fff; }   /* le violet demande un texte blanc pour rester lisible */
.pilier-mods .pilier-desc, .pilier-mods .pilier-nom { text-shadow: 0 1px 0 rgba(48, 24, 110, .45); }

/* Une section par pilier : images d'un côté, texte de l'autre (en alternance), bord de la couleur du pilier */
.piliers-sections { display: grid; gap: 32px; }
.pilier-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: 28px; scroll-margin-top: 24px; }
html.jeu-yoru .pilier-section.bloc { border: 6px solid var(--fort); box-shadow: 0 0 0 6px var(--teinte), 0 8px 18px var(--ombre); margin: 6px; }   /* double cerclage : trait fort + halo pastel */
.pilier-section:nth-child(odd) { grid-template-columns: 1fr 1.1fr; }   /* sections impaires : texte à gauche, images à droite (les paires : l inverse) */
.pilier-section:nth-child(odd) .pilier-images { order: 2; }
.pilier-images { display: grid; gap: 14px; }
.pilier-image { margin: 0; aspect-ratio: 16 / 9; }
.pilier-image img { width: 100%; height: 100%; object-fit: cover; }
.pilier-texte h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .5em; }
.pilier-texte p { margin: 0 0 14px; }
.pilier-texte ul { margin: 0; padding-left: 1.2em; color: var(--texte-corps); font-weight: 600; }
.pilier-texte li { margin-bottom: 8px; }
.pilier-texte li strong { color: var(--texte-bleu); }
.pilier-texte li::marker { color: var(--fort); }
.pilier-pastille { display: inline-block; margin-bottom: 12px; padding: 7px 16px; border-radius: 999px; background: var(--teinte); color: #2a456b;
  font: 800 12px/1 var(--police-mono); letter-spacing: .1em; text-transform: uppercase; }
.outil-mods .pilier-pastille { color: #fff; text-shadow: 0 1px 0 rgba(48, 24, 110, .45); }
/* Une tuile à la place de la capture, tant qu'un pilier n'a pas la sienne */
.pilier-tuile { display: grid; place-items: center; background: var(--teinte); color: #fff; font: 800 clamp(2rem, 6vw, 3.4rem)/1 var(--police-titre); text-shadow: 0 3px 0 rgba(48, 24, 110, .35); }

/* L'appel au contact (inchangé) : posé dans une bulle crème pour rester lisible sur le ciel */
html.jeu-yoru .contact { max-width: 760px; padding: 36px 24px; background: var(--creme); border: 4px solid var(--creme-bord); border-radius: var(--rayon); box-shadow: 0 3px 8px var(--ombre); }

/* Les sept créateurs et l'encart Export 3D : sous le texte du pilier Modding, sur toute la largeur */
.createurs, .export3d { grid-column: 1 / -1; }
.createurs h4, .export3d h4 { font-size: 1.3rem; margin: 0 0 .3em; color: var(--texte-bleu); }
.createurs > p { margin: 0 0 16px; }
.createurs-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.createur { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px 14px 14px; background: #fff; border: 3px solid var(--fort); border-radius: 18px; }
.createur strong { font-size: 1.05rem; }
.createur-desc { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--texte-corps); }
.createur-etat { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--p-communaute); color: #2a456b; font: 800 11px/1.3 var(--police-mono); letter-spacing: .08em; text-transform: uppercase; }
.createur-avenir { border-style: dashed; }
.createur-avenir .createur-etat { background: var(--p-simulation); }
.export3d { padding: 20px 22px; border: 4px solid var(--fort); border-radius: 22px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--teinte) 40%, #fff)); }
.export3d p { margin: 0; }

@media (max-width: 900px) { .piliers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .pilier-section, .pilier-section:nth-child(odd) { grid-template-columns: 1fr; padding: 20px; }
  .pilier-section:nth-child(odd) .pilier-images { order: 0; }
  .fiche-faits { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .piliers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pilier { transition: none; } .pilier:hover { translate: 0 0; } }
