/* =========================================================================
   Site SaoWorld — feuille de style unique
   Palette alignee sur saoworld.net : bleus profonds, accents cyan, texte creme.
   ========================================================================= */

:root {
  --bg-deep: #071427;
  --bg: #164673;
  --surface: #103050;
  --surface-2: #0d2745;
  --primary: #20b0f0;
  --primary-mid: #1090e0;
  --primary-light: #80d0f0;
  --accent-light: #d7f3ff;
  --danger: #e36b45;
  --text: #fff8e8;
  --muted: rgba(255, 248, 232, 0.62);
  --faint: rgba(255, 248, 232, 0.58);   /* contraste 5,9:1 sur le verre sombre */
  --line: rgba(128, 208, 240, 0.18);
  --line-strong: rgba(128, 208, 240, 0.38);
  --shadow: 0 18px 50px rgba(0, 16, 48, 0.55);

  --pixel: "Press Start 2P", "Courier New", ui-monospace, monospace;
  --sans: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 14px;
  --wrap: 1180px;

  /* Accents chauds et violets : sans eux la page vire au bleu uniforme. */
  --accent-warm: #f5a742;
  --accent-violet: #b98cff;
  --accent-green: #7ce38f;

  /* Fleche de telechargement, utilisee en masque CSS sur .btn-hero. */
  --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v10'/%3E%3Cpath d='m8 9 4 4 4-4'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Le ciel d'Aincrad est clair : sans voile, aucun texte ne tiendrait dessus.
   Le degrade laisse le chateau visible en haut puis assombrit vers le bas, la
   ou le contenu commence. */
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    linear-gradient(180deg,
      rgba(7, 20, 39, 0.45) 0%,
      rgba(7, 20, 39, 0.78) 42%,
      rgba(7, 20, 39, 0.94) 78%,
      var(--bg-deep) 100%),
    url("../img/site_background.webp") center top / cover no-repeat,
    var(--bg-deep);
  background-attachment: fixed, fixed, fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Sur l'accueil le decor est le sujet : on l'assombrit moins. */
body.home {
  background:
    linear-gradient(180deg,
      rgba(7, 20, 39, 0.18) 0%,
      rgba(7, 20, 39, 0.35) 30%,
      rgba(7, 20, 39, 0.86) 72%,
      var(--bg-deep) 100%),
    url("../img/site_background.webp") center top / cover no-repeat,
    var(--bg-deep);
  background-attachment: fixed, fixed, fixed;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent-light); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* --- Titrage ------------------------------------------------------------ */

h1, h2, h3 {
  margin: 0 0 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.18;
  font-weight: 800;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.05rem; letter-spacing: 0.08em; }

.eyebrow {
  font-family: var(--pixel);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* --- En-tete ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 20, 39, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover { color: var(--accent-light); }
.brand img { width: 26px; height: 26px; image-rendering: pixelated; }

.nav { display: flex; gap: 0.35rem; margin-left: auto; flex-wrap: wrap; }

.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.16s, background 0.16s;
}

.nav a:hover { color: var(--text); background: rgba(128, 208, 240, 0.1); }

.nav a[aria-current="page"] {
  color: var(--bg-deep);
  background: var(--primary-light);
}

/* --- Boutons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #04121f;
  box-shadow: 0 4px 0 #0f7fc4;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover { color: #04121f; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0f7fc4; }

.btn-ghost {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn-ghost:hover { background: rgba(128, 208, 240, 0.12); color: var(--accent-light); box-shadow: none; }

/* Bouton principal d'une page : plus gros, plus lumineux, avec un halo qui
   respire pour attirer l'oeil. L'icone est un pseudo-element, pas un enfant :
   la traduction remplace le textContent et effacerait un <svg> a chaque
   changement de langue. */
.btn-hero {
  position: relative;
  padding: 1.1rem 2.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  border-radius: 14px;
  background: linear-gradient(180deg, #4fc8ff 0%, var(--primary) 55%, var(--primary-mid) 100%);
  box-shadow:
    0 6px 0 #0f7fc4,
    0 14px 34px rgba(32, 176, 240, 0.42);
}

.btn-hero::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  /* fleche de telechargement */
  -webkit-mask: var(--icon-download) center / contain no-repeat;
  mask: var(--icon-download) center / contain no-repeat;
}

/* Halo pulsant, derriere le bouton. */
.btn-hero::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(32, 176, 240, 0.55), transparent);
  opacity: 0;
  z-index: -1;
  animation: halo 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes halo {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}

.btn-hero:hover {
  box-shadow:
    0 6px 0 #0f7fc4,
    0 14px 40px rgba(32, 176, 240, 0.55);
}

.btn-hero:active { transform: translateY(3px); box-shadow: 0 3px 0 #0f7fc4, 0 8px 20px rgba(32, 176, 240, 0.4); }

.btn-hero[aria-disabled="true"] { background: rgba(128, 208, 240, 0.14); box-shadow: none; }
.btn-hero[aria-disabled="true"]::after { animation: none; opacity: 0; }

@media (max-width: 620px) {
  .btn-hero { width: 100%; justify-content: center; padding: 1rem 1.4rem; font-size: 0.85rem; }
}

/* =========================================================================
   Accueil : heros plein cadre et portails vers les deux parties
   ========================================================================= */

.landing {
  min-height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 4rem;
  text-align: center;
}

.landing h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  text-shadow: 0 4px 24px rgba(0, 12, 30, 0.75), 0 1px 0 rgba(0, 0, 0, 0.35);
}

.landing .lede {
  margin-inline: auto;
  font-size: 1.1rem;
  text-shadow: 0 2px 12px rgba(0, 12, 30, 0.8);
}

/* Adresse du serveur, copiable d'un clic. */
.ip-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;          /* sur mobile l'IP et le bouton passent l'un sous l'autre */
  gap: 0.75rem;
  max-width: 100%;
  margin: 2.2rem auto 0;
  padding: 0.55rem 0.55rem 0.55rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 20, 39, 0.62);
  backdrop-filter: blur(8px);
}

.ip-box code {
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  overflow-wrap: anywhere;
}

.scroll-cue {
  margin-top: 3.5rem;
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 232, 0.6);
}

/* --- Portails ----------------------------------------------------------- */

.portals { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 48, 80, 0.82), rgba(9, 26, 48, 0.92));
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.18s, border-color 0.18s;
}

a.portal:hover { border-color: var(--line-strong); color: inherit; }

.portal-icon { width: 52px; height: 52px; image-rendering: pixelated; }
.portal h3 { margin: 0.4rem 0 0; color: var(--primary-light); }
.portal p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.portal-go {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.portal.is-soon { opacity: 0.72; }
.portal.is-soon .portal-icon { filter: grayscale(0.9) brightness(0.8); }
.portal.is-soon .portal-go { color: var(--faint); }

.tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-family: var(--pixel);
  font-size: 0.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--faint);
}

/* --- Bouton desactive ---------------------------------------------------- */

.btn[aria-disabled="true"] {
  background: rgba(128, 208, 240, 0.14);
  color: var(--faint);
  box-shadow: none;
  cursor: not-allowed;
}

.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; color: var(--faint); }

/* --- Sections et cartes ------------------------------------------------- */

section { padding: 4rem 0; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.card {
  background: linear-gradient(180deg, rgba(16, 48, 80, 0.9), rgba(13, 39, 69, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }


/* =========================================================================
   Onglets de la page launcher
   ========================================================================= */

.tabs {
  position: sticky;
  top: 66px;
  z-index: 40;
  padding: 0.9rem 0 1.6rem;
}

.tablist {
  display: flex;
  gap: 0.3rem;
  padding: 0.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 20, 39, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 12, 30, 0.4);
  overflow-x: auto;
  scrollbar-width: none;
}

.tablist::-webkit-scrollbar { display: none; }

.tab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 0 auto;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, transform 0.18s;
}

.tab svg { width: 16px; height: 16px; flex: 0 0 auto; }

.tab:hover { color: var(--text); background: rgba(128, 208, 240, 0.09); }
.tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.tab[aria-selected="true"] {
  color: #06182b;
  background: linear-gradient(135deg, var(--primary-light) 0%, #6fd3f0 45%, var(--accent-warm) 130%);
  box-shadow: 0 8px 22px rgba(32, 176, 240, 0.38);
}

.tab[aria-selected="true"] svg { transform: scale(1.06); }

/* --- Panneaux ------------------------------------------------------------ */

.panel[hidden] { display: none; }

.panel { animation: panelIn 0.4s cubic-bezier(0.2, 0.75, 0.3, 1) both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Entree en cascade : chaque bloc arrive juste apres le precedent. */
.panel .card,
.panel .faq details,
.panel .callout {
  animation: riseIn 0.45s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.panel .card:nth-child(1), .panel .faq details:nth-child(1) { animation-delay: 0.04s; }
.panel .card:nth-child(2), .panel .faq details:nth-child(2) { animation-delay: 0.09s; }
.panel .card:nth-child(3), .panel .faq details:nth-child(3) { animation-delay: 0.14s; }
.panel .card:nth-child(4), .panel .faq details:nth-child(4) { animation-delay: 0.19s; }
.panel .card:nth-child(5), .panel .faq details:nth-child(5) { animation-delay: 0.24s; }
.panel .card:nth-child(6), .panel .faq details:nth-child(6) { animation-delay: 0.29s; }
.panel .faq details:nth-child(7) { animation-delay: 0.33s; }
.panel .faq details:nth-child(8) { animation-delay: 0.37s; }
.panel .faq details:nth-child(9) { animation-delay: 0.41s; }
.panel .faq details:nth-child(10) { animation-delay: 0.45s; }

/* --- Cartes vivantes ----------------------------------------------------- */

.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.2, 0.75, 0.3, 1),
              border-color 0.24s, box-shadow 0.24s;
}

/* Filet lumineux qui s'allume sur le bord haut au survol. */
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light) 35%,
                              var(--accent-warm) 65%, transparent);
  opacity: 0;
  transition: opacity 0.28s;
}

.grid .card:hover, .split .card:hover {
  border-color: var(--line-strong);
}

.grid .card:hover::after, .split .card:hover::after { opacity: 1; }

/* Un accent different par carte, pour sortir du bleu uniforme. */
.grid-3 .card h3 { color: var(--primary-light); }
.grid-3 .card:nth-child(3n+2) h3 { color: var(--accent-warm); }
.grid-3 .card:nth-child(3n) h3 { color: var(--accent-violet); }

/* =========================================================================
   Page launcher : blocs d'explication
   ========================================================================= */

/* Nappes de couleur qui derivent lentement derriere le titre : elles cassent
   l'aplat bleu sans rien couter en balisage. */
.launcher-hero { position: relative; isolation: isolate; }

.launcher-hero::before {
  content: "";
  position: absolute;
  /* Pas de debord lateral : la boite ferait defiler la page. Le flou suffit a
     adoucir les bords. */
  inset: -18% 0 -30%;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 18% 32%, rgba(32, 176, 240, 0.42), transparent 70%),
    radial-gradient(34% 40% at 78% 22%, rgba(245, 167, 66, 0.30), transparent 70%),
    radial-gradient(40% 44% at 58% 80%, rgba(185, 140, 255, 0.28), transparent 70%);
  filter: blur(46px);
  animation: derive 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes derive {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  50% { transform: translate3d(4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.03); }
}

.launcher-hero h1 {
  background: linear-gradient(105deg, #ffffff 0%, var(--accent-light) 40%, var(--primary-light) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.free-line {
  margin: 1.4rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.free-line b { color: var(--accent-green); font-weight: 700; }

/* Repere de defilement : sans lui, l'aperçu occupe tout l'ecran et rien ne dit
   que la page continue. Cliquable, il descend jusqu'aux onglets. */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.4rem auto 0;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 20, 39, 0.5);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, opacity 0.35s, transform 0.35s;
}

.scroll-hint svg { width: 16px; height: 16px; animation: rebond 1.9s ease-in-out infinite; }

@keyframes rebond {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

.scroll-hint:hover { color: var(--primary-light); border-color: var(--line-strong); }
.scroll-hint:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Une fois la page defilee, le repere n'a plus lieu d'etre. */
.scroll-hint.is-gone { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* Etapes numerotees automatiquement par un compteur CSS. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }

.steps li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(128, 208, 240, 0.14);
}

.steps li:last-child { border-bottom: 0; padding-bottom: 0; }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary-light), var(--accent-warm));
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: #06182b;
  box-shadow: 0 4px 14px rgba(32, 176, 240, 0.32);
}

.steps b { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.steps span { font-size: 0.87rem; color: var(--muted); }
.steps code { color: var(--accent-light); }

/* Deux colonnes qui se replient en une seule sur petit ecran. */
.split { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.aside {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Encadre d'avertissement, plus visible qu'une carte ordinaire. */
.callout {
  margin-top: 1.2rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(227, 107, 69, 0.35);
  border-left: 3px solid var(--danger);
  background: rgba(227, 107, 69, 0.08);
}

.callout h3 { margin: 0 0 0.6rem; font-size: 0.95rem; color: var(--text); }
.callout p { margin: 0 0 0.7rem; font-size: 0.9rem; color: var(--muted); }
.callout p:last-child { margin-bottom: 0; }
.callout code { color: var(--accent-light); font-size: 0.94em; }

/* Listes a puce marquee : coche pour ce que le launcher fait, croix pour ce
   qu'il ne fait pas. */
.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

.ticks li, .crosses li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.ticks li::before, .crosses li::before {
  position: absolute;
  left: 0;
  top: -0.05em;
  font-weight: 800;
  font-size: 1rem;
}

.ticks li::before { content: "✓"; color: #7ce38f; }
.crosses li::before { content: "✕"; color: var(--danger); }

/* --- Questions frequentes ------------------------------------------------ */

.faq { display: grid; gap: 0.6rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 48, 80, 0.72), rgba(13, 39, 69, 0.8));
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  font-size: 0.94rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: color 0.14s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--primary-light);
  font-size: 0.9rem;
  line-height: 1;
}

.faq details[open] summary::before { content: "−"; }
.faq summary:hover { color: var(--primary-light); }
.faq details[open] summary { color: var(--primary-light); border-bottom: 1px solid var(--line); }

.faq details[open] p { animation: reponse 0.3s cubic-bezier(0.2, 0.75, 0.3, 1) both; }

@keyframes reponse {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.faq details[open] summary::before {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
  border-color: transparent;
  color: #06182b;
}

.faq p {
  margin: 0;
  padding: 1rem 1.2rem 1.2rem 3.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq code { color: var(--accent-light); font-size: 0.92em; overflow-wrap: anywhere; }

/* =========================================================================
   Page 404
   ========================================================================= */

.notfound-code {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--pixel);
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--primary-light) 0%, var(--accent-warm) 55%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 28px rgba(32, 176, 240, 0.35));
  animation: flotte 5s ease-in-out infinite;
}

@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Titre plus sobre sous le grand 404, et sans l'ombre de .landing h1 qui
   salirait le degrade du texte. */
.notfound h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-shadow: none;
}

/* --- Apercu du launcher -------------------------------------------------- */

.preview { margin: 0; }

/* Plafonnee : en pleine hauteur l'aperçu pousse les onglets tres loin sous la
   ligne de flottaison. On garde le haut de la capture, la partie utile. */
.preview img {
  width: 100%;
  height: auto;
  max-height: min(58vh, 560px);
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0, 12, 30, 0.6), 0 0 60px rgba(32, 176, 240, 0.14);
  transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.3, 1), box-shadow 0.4s;
}


.preview figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.release-line {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}

/* --- Pied de page ------------------------------------------------------- */

.site-footer {
  margin-top: 3rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  background: rgba(7, 20, 39, 0.6);
  font-size: 0.82rem;
  color: var(--faint);
}

.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* --- Adaptatif ---------------------------------------------------------- */

@media (max-width: 620px) {
  .site-header .wrap { min-height: 58px; gap: 0.8rem; }
  .nav a { padding: 0.4rem 0.55rem; font-size: 0.68rem; letter-spacing: 0.08em; }
  section { padding: 2.6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Avertissement / information ---------------------------------------- */

/* Bandeau d'information avec un liseré a gauche : il attire l'oeil sans faire
   alerte. Sur la page launcher, il porte l'avertissement antivirus. */
.notice {
  margin: 1.4rem 0 1.6rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  background: rgba(32, 176, 240, 0.08);
}

.notice strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--pixel);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--primary-light);
}

.notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Deux paragraphes se suivent dans l'avertissement : on les espace. */
.notice p + p { margin-top: 0.55rem; }

/* --- Selecteur de langue ------------------------------------------------- */

.lang-select {
  margin-left: 0.35rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}

.lang-select:hover { color: var(--text); border-color: var(--line-strong); }

/* Le menu deroulant est rendu par le systeme : sans cette regle, les options
   heriteraient d'un fond clair et deviendraient illisibles. */
.lang-select option { background: var(--surface-2); color: var(--text); }
