/* Re:Naissance, site officiel. Polices et images servies depuis ce dossier : aucun appel externe. */
@font-face { font-family: "Kroftsmann"; src: url("fonts/kroftsmann.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --noir: #07060c;
  --nuit: #110d22;
  --violet: #2a1d5c;
  --violet-vif: #8b6cff;
  --lilas: #c9bfff;
  --texte: #e9e6f5;
  --doux: #a9a3c4;
  --or: #f3d58c;
  --or-fonce: #c9a24f;
  --bord: rgba(201, 191, 255, 0.28);
  --largeur: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(88, 60, 190, 0.35), transparent 60%),
    radial-gradient(900px 600px at 110% 30%, rgba(120, 70, 200, 0.22), transparent 60%),
    radial-gradient(800px 500px at 50% 120%, rgba(60, 40, 140, 0.35), transparent 60%),
    var(--noir);
  background-attachment: fixed;
  color: var(--texte);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--or); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

.titre, h1, h2, h3 {
  font-family: "Kroftsmann", "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}
h2 { font-size: clamp(30px, 5vw, 46px); }
h3 { font-size: 24px; color: var(--or); }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }

/* Éclats de cristal en fond, discrets */
.eclats { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.eclats img { position: absolute; width: 26px; opacity: 0.18; animation: flotte 14s ease-in-out infinite; }
.eclats img:nth-child(1) { left: 6%; top: 18%; width: 30px; animation-delay: -2s; }
.eclats img:nth-child(2) { left: 88%; top: 12%; width: 18px; animation-delay: -6s; }
.eclats img:nth-child(3) { left: 78%; top: 64%; width: 34px; animation-delay: -9s; opacity: 0.12; }
.eclats img:nth-child(4) { left: 12%; top: 72%; width: 20px; animation-delay: -4s; }
.eclats img:nth-child(5) { left: 48%; top: 88%; width: 16px; animation-delay: -11s; opacity: 0.12; }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
.page { position: relative; z-index: 1; }

/* En-tête */
.entete { padding: 18px 0; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); }
.marque img { width: 34px; }
.marque span { font-family: "Kroftsmann", sans-serif; font-size: 22px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--doux); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--or); }

/* Accueil : bannière */
.banniere {
  position: relative;
  text-align: center;
  padding: clamp(40px, 8vw, 90px) 0 clamp(50px, 8vw, 90px);
  background: url("img/fond-eclats.webp") center 40% / cover no-repeat;
  border-bottom: 1px solid var(--bord);
}
.banniere::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 12, 0.55), rgba(7, 6, 12, 0.25) 40%, rgba(7, 6, 12, 0.95));
}
.banniere > * { position: relative; }
.banniere .etoile { width: clamp(90px, 14vw, 140px); margin: 0 auto 10px; filter: drop-shadow(0 0 22px rgba(200, 180, 255, 0.55)); animation: respire 5s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(1.05) rotate(3deg); } }
.banniere .logo { width: min(760px, 92%); margin: 0 auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.7)); }
.banniere h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.accroche { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2.4vw, 21px); font-weight: 600; color: var(--texte); }
.trait { width: 260px; margin: 14px auto 28px; }

/* Bouton façon menus du jeu (parallélogramme) */
.bouton {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 44px;
  background: #fff; color: #0b0a12;
  font-family: "Kroftsmann", sans-serif; font-size: 24px; letter-spacing: 0.04em;
  text-decoration: none;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  transition: background 0.2s, transform 0.2s;
}
.bouton:hover, .bouton:focus-visible { background: var(--or); color: #0b0a12; transform: translateY(-2px); }
.bouton svg { width: 22px; height: 22px; }
.bouton:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }

/* Sections */
.section { padding: clamp(50px, 8vw, 90px) 0; }
.section .chapo { color: var(--doux); max-width: 620px; margin: 12px 0 34px; }
.etiquette {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--noir); background: var(--or); padding: 4px 10px; margin-bottom: 14px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

/* Cadres façon fenêtres du jeu : fond nuit, bord lilas, coins en cristal */
.cadre {
  position: relative;
  background: linear-gradient(160deg, rgba(42, 29, 92, 0.55), rgba(17, 13, 34, 0.9));
  border: 1px solid var(--bord);
  padding: 26px;
}
.cadre::before, .cadre::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--lilas); border-style: solid; opacity: 0.8;
}
.cadre::before { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.cadre::after { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }

.boutiques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.boutique { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 150px; }
.boutique .nom { font-family: "Kroftsmann", sans-serif; font-size: 28px; }
.boutique .etat { color: var(--doux); font-size: 15px; }
.boutique .eclat { position: absolute; right: 18px; top: 18px; width: 18px; opacity: 0.7; }
/* À la sortie : remplacer <div class="boutique cadre"> par <a class="boutique cadre" href="..."> */
a.boutique { text-decoration: none; color: var(--texte); transition: border-color 0.2s, transform 0.2s; }
a.boutique:hover { border-color: var(--or); transform: translateY(-3px); }

.ecran {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center;
  background: url("img/fond-lignes.webp") center / cover no-repeat, var(--nuit);
  border: 1px solid var(--bord); overflow: hidden;
}
.ecran .attente { max-width: 460px; padding: 20px; }
.ecran .attente img { width: 72px; margin: 0 auto 14px; opacity: 0.9; animation: respire 5s ease-in-out infinite; }
.ecran .attente p { margin: 8px 0 0; color: var(--doux); }
.ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pages de texte (confidentialité, mentions légales) */
.texte { max-width: 780px; }
.texte h1 { font-size: clamp(36px, 7vw, 60px); margin: 10px 0 6px; }
.texte h2 { font-size: clamp(24px, 3.6vw, 30px); color: var(--or); margin: 38px 0 8px; }
.texte p, .texte li { color: #dcd8ec; }
.texte ul { padding-left: 1.2em; }
.maj { color: var(--doux); font-size: 15px; margin: 0 0 8px; }
.intro { font-size: 19px; font-weight: 600; color: var(--texte); }
.a-completer { background: rgba(243, 213, 140, 0.15); color: var(--or); padding: 1px 6px; font-weight: 600; }

.langues { display: inline-flex; border: 1px solid var(--bord); margin: 18px 0 8px; }
.langues button {
  font: 700 13px/1 "Montserrat", sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--doux); border: 0; padding: 10px 16px; cursor: pointer;
}
.langues button[aria-pressed="true"] { background: var(--or); color: var(--noir); }
.langues button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
/* Sans JavaScript, les deux versions restent visibles l'une sous l'autre */
.js [data-langue][hidden] { display: none; }
.sans-js .langues { display: none; }

/* Pied de page */
.pied { border-top: 1px solid var(--bord); padding: 26px 0 34px; margin-top: 40px; font-size: 14px; color: var(--doux); position: relative; z-index: 1; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
.pied nav { display: flex; gap: 22px; flex-wrap: wrap; }
.pied a { color: var(--texte); text-decoration: none; font-weight: 600; }
.pied a:hover { color: var(--or); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .boutiques { grid-template-columns: 1fr; }
  .boutique { min-height: 0; }
  .nav { gap: 14px; }
  .nav a { font-size: 12px; }
  .marque span { display: none; }
  .bouton { font-size: 21px; padding: 14px 34px; }
  .ecran { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Pages légales : même ciel que l'accueil */
body { background: #000; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url("img/fond.webp") center bottom / cover no-repeat, #0b1a4a;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.62) 100%);
}
.eclats { display: none; }
.pied { border-top-color: rgba(255,255,255,.18); }
