/* Autonomous : le site (T215). Style du studio LowPoly Dynamic (facettes, couleurs franches, clair et sombre, aucune police
   externe) aux couleurs du jeu : terre, bois, vert forêt. Les contrastes de texte sont tous d'au moins 4,5 : 1. */
:root {
  --fond: #f6f1e6;
  --fond-2: #ece4d2;
  --carte: #fffdf7;
  --texte: #231b12;
  --doux: #54483a;
  --bord: #d9cdb4;
  --vert: #2c6b32;
  --bois: #8a5a2b;
  --eau: #17678c;
  --sur-vert: #ffffff;
  --ombre: 0 1px 0 rgba(35, 27, 18, .05), 0 12px 30px rgba(35, 27, 18, .10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #15120d; --fond-2: #1d1913; --carte: #241e16; --texte: #f4efe4; --doux: #c4b9a5; --bord: #3b3224;
    --vert: #86d682; --bois: #e4a869; --eau: #74c3ee; --sur-vert: #10200f;
    --ombre: 0 12px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--eau); }
a:focus-visible, .bouton:focus-visible { outline: 3px solid var(--bois); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }

.evitement { position: absolute; left: -9999px; top: 0; z-index: 10; padding: .6rem 1rem; background: var(--carte); color: var(--texte); }
.evitement:focus { left: 1rem; top: 1rem; }

/* En-tête : une vue du jeu en fond, voilée de brun sombre, texte clair dans les deux thèmes. */
.hero { position: relative; min-height: min(90vh, 50rem); display: flex; flex-direction: column; overflow: hidden;
  background: #2a2217; color: #fff4dc; }
.hero-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-voile { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(24, 17, 9, .78) 0%, rgba(24, 17, 9, .45) 48%, rgba(24, 17, 9, .1) 75%),
  linear-gradient(180deg, rgba(24, 17, 9, .5) 0%, rgba(24, 17, 9, 0) 30%, rgba(24, 17, 9, .55) 100%); }
.menu { position: relative; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: flex-end; align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem); }
.menu a { color: #fff4dc; text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: #ffd9a0; text-decoration: underline; text-underline-offset: 4px; }
.menu .menu-cta { padding: .35rem 1rem; border: 1px solid #ffd9a0; border-radius: 999px; color: #ffd9a0; }
.menu .menu-cta:hover { background: rgba(255, 217, 160, .15); text-decoration: none; }
.hero a:focus-visible { outline-color: #ffd9a0; }
.hero-texte { position: relative; margin-top: auto; padding: 0 clamp(1rem, 6vw, 5rem) clamp(2rem, 8vh, 4.5rem); max-width: 56rem; }
.logo { margin: 0; font-weight: 900; letter-spacing: .12em; line-height: 1; font-size: clamp(2.2rem, 9.5vw, 5.8rem);
  white-space: nowrap; color: #fff4dc; text-shadow: 0 3px 0 #6b4425, 0 8px 28px rgba(0, 0, 0, .55); }
.logo.petit { font-size: 1rem; letter-spacing: .1em; text-shadow: none; color: inherit; }
.studio { margin: .6rem 0 0; color: #e8d9bb; letter-spacing: .28em; text-transform: uppercase; font-size: .8rem; }
.studio strong { color: #fff4dc; font-weight: 700; }
.accroche { font-size: clamp(1.1rem, 2.3vw, 1.4rem); margin: 1.1rem 0 1.5rem; max-width: 36rem; text-shadow: 0 2px 8px #000; }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; }
.bouton { display: inline-block; padding: .75rem 1.4rem; border-radius: 12px; font-weight: 700; text-decoration: none;
  color: var(--texte); background: var(--fond-2); border: 1px solid var(--bord); }
.bouton:hover { border-color: var(--vert); }
.bouton.principal { background: var(--vert); border-color: var(--vert); color: var(--sur-vert); }
.bouton.principal:hover { filter: brightness(1.1); }
.hero .bouton { color: #fff4dc; background: rgba(255, 244, 220, .12); border-color: rgba(255, 244, 220, .45); }
.hero .bouton:hover { background: rgba(255, 244, 220, .22); }
.hero .bouton.principal { background: #86d682; border-color: #86d682; color: #10200f; }
.version { color: #e8d9bb; font-size: .9rem; margin: .9rem 0 0; }

main { padding: 0 clamp(1rem, 5vw, 4rem); max-width: 80rem; margin: 0 auto; }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1.5rem 0 1rem; text-align: center; }
.chiffres div { padding: 1rem; border-radius: 14px; background: var(--fond-2); border: 1px solid var(--bord); }
.chiffres strong { display: block; font-size: 2.6rem; line-height: 1.1; color: var(--vert); font-variant-numeric: tabular-nums; }
.chiffres span { color: var(--doux); }

.promesse { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.promesse div { padding: 1.1rem 1.3rem; border-radius: 14px; border: 1px solid var(--vert); background: var(--carte); box-shadow: var(--ombre); }
.promesse strong { display: block; font-size: 1.2rem; }
.promesse span { color: var(--doux); }

.bloc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.bloc h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .7rem; }
.bloc h2::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .5rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--vert), var(--bois)); }
.intro { color: var(--doux); max-width: 48rem; margin: 0 0 1.5rem; }
.suite { margin: 1.5rem 0 0; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.cartes article { position: relative; overflow: hidden; padding: 1.3rem 1.3rem 1.2rem; border-radius: 14px; background: var(--carte);
  border: 1px solid var(--bord); box-shadow: var(--ombre); }
/* La facette du studio : un triangle de couleur dans l'angle. */
.cartes article::before { content: ""; position: absolute; top: 0; right: 0; width: 2.2rem; height: 2.2rem; background: var(--bois);
  clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .85; }
.cartes article:nth-child(3n + 2)::before { background: var(--vert); }
.cartes article:nth-child(3n)::before { background: var(--eau); }
.cartes h3 { margin: 0 2rem .4rem 0; color: var(--vert); font-size: 1.15rem; }
.cartes p { margin: 0 0 .8rem; color: var(--doux); }
.cartes p:last-child { margin-bottom: 0; }
.cartes p strong, .etapes strong { color: var(--texte); }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
figure { margin: 0; }
figure a { display: block; border-radius: 12px; }
figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--bord); background: var(--fond-2); }
figure a:hover img { border-color: var(--vert); }
figcaption { color: var(--doux); font-size: .92rem; margin-top: .35rem; }
.large { margin-top: 1.5rem; max-width: 50rem; }

.telecharger .cartes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.telecharger .cartes .avis { grid-column: 1 / -1; }
.cartes .bouton + .etapes, .cartes .bouton + p { margin-top: 1rem; }
.etapes { margin: 0 0 .8rem; padding-left: 1.3rem; color: var(--doux); }
.etapes li { margin: .35rem 0; }

.date { color: var(--vert); margin: 1.4rem 0 .3rem; font-size: 1.1rem; }
.nouveautes { margin: 0; padding-left: 1.2rem; color: var(--doux); max-width: 52rem; }
.nouveautes li { margin: .3rem 0; }
.nouveautes li::marker { color: var(--bois); }
.nouveautes strong { color: var(--texte); }

.pied { margin-top: 4rem; padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--bord); color: var(--doux); font-size: .9rem; text-align: center; }
.pied p { margin: .2rem 0; }
.pied a { color: var(--doux); }

/* Sélecteur de langue FR · EN. */
.langues { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.langues a { color: inherit; text-decoration: none; }
.langues a:hover { text-decoration: underline; }
.langues strong { color: var(--vert); }
.menu .langues { color: #fff4dc; }
.menu .langues strong { color: #ffd9a0; }

/* Pages de texte : confidentialité. */
.texte { max-width: 46rem; margin: 0 auto; padding: 2rem clamp(1rem, 5vw, 2rem) 4rem; }
.texte h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: .4rem 0 .2rem; }
.texte h2 { margin: 2.2rem 0 .5rem; font-size: 1.35rem; color: var(--vert); }
.texte h3 { margin: 1.4rem 0 .3rem; font-size: 1.1rem; color: var(--bois); }
.texte p, .texte li { color: var(--doux); }
.texte strong { color: var(--texte); }
.texte ul { padding-left: 1.3rem; }
.retour { text-decoration: none; font-weight: 600; }
.maj { font-size: .9rem; color: var(--doux); }
.encadre { padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--vert); background: var(--carte); }
.page-texte .langues { float: right; }
.texte code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; color: var(--texte); }
