/* Site iceshift.app : couleurs de l'application (bleu nuit, bleu glace) */
:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #0d2336;
  --muted: #4a5d6e;
  --accent: #0369a1;
  --border: #d9e3ec;
  --brand: #0d2336;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1d2d;
    --surface: #112b42;
    --text: #e6eff6;
    --muted: #a3b6c6;
    --accent: #38bdf8;
    --border: #1f3b52;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Page dans une langue : l'autre est masquée (sans JavaScript, les deux restent visibles) */
html[data-lang="fr"] [lang="en"],
html[data-lang="en"] [lang="fr"] {
  display: none;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  background: var(--brand);
  color: #f8fafc;
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.langs {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.langs a {
  color: #cbd8e3;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}

html[data-lang="fr"] .langs a[hreflang="fr"],
html[data-lang="en"] .langs a[hreflang="en"] {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
}

main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 36px 0 8px;
}

h3 {
  font-size: 17px;
  margin: 20px 0 4px;
}

p,
ul,
ol {
  margin: 0 0 12px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.box > :first-child {
  margin-top: 0;
}

.box > :last-child {
  margin-bottom: 0;
}

.hero {
  text-align: center;
  padding: 16px 0 8px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
}

.hero h1 {
  margin-top: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.cards .box {
  margin: 0;
}

.cards h3 {
  margin-top: 0;
}

.soon {
  display: inline-block;
  background: var(--brand);
  color: #f8fafc;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 25px;
  }

  .brand span {
    font-size: 18px;
  }
}
