/* Mimir — landing épurée, menée par le visuel (style cristallin). */

:root {
  --ink: #12233a;
  --muted: #5b6e84;
  --bg: #f7fbff;
  --bg-2: #edf6ff;
  --cyan: #00c8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8%, rgba(0, 200, 255, 0.20), transparent 32rem),
    radial-gradient(circle at 14% 16%, rgba(138, 125, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 40%, rgba(0, 200, 255, 0.10), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 54%, var(--bg-2) 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Trame géométrique très discrète, en fond. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(120deg, transparent 0 22%, rgba(79, 151, 224, 0.16) 22.1% 22.3%, transparent 22.4% 100%),
    radial-gradient(circle, rgba(0, 174, 255, 0.20) 0 1.5px, transparent 2px);
  background-size: 360px 360px, 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.12) 72%, transparent 100%);
}

img { max-width: 100%; display: block; }

/* main occupe la hauteur → footer collé en bas même si la page est courte. */
main {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 56px 22px;
}

/* <picture> ne doit pas casser le flux flex : l'<img> reste l'élément réel. */
.hero picture { display: contents; }

/* Le visuel porte l'identité (mot-symbole MIMIR + sous-titre déjà gravés). */
.emblem {
  width: clamp(280px, 62vw, 540px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(45, 92, 148, 0.22));
}

.lead {
  max-width: 640px;
  margin: 22px 0 0; /* plus d'air entre l'image et le texte */
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--muted);
}

.lead a {
  color: #0094c6;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.4);
  transition: color 160ms ease, border-color 160ms ease;
}

.lead a:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

/* Court texte indexable, discret (SEO sans casser l'épure). */
.about {
  max-width: 560px;
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #8493a6;
}

/* Badge « projet jeune » — repris du style de l'ex-pastille « Bientôt ». */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #4d667e;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(0, 200, 255, 0.34);
}

.badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(0, 200, 255, 0.14), 0 0 16px var(--cyan);
}

/* ===== Sélecteur de langue (fixe, en haut à droite) ===== */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 200, 255, 0.28);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(45, 92, 148, 0.12);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #5b6e84;
  transition: color 160ms ease, background-color 160ms ease;
}

.lang-switch a:hover { color: var(--ink); }

.lang-switch a.is-active {
  color: #06202e;
  background: linear-gradient(180deg, #4fe0ff, var(--cyan));
}

/* ===== Boutons d'appel à l'action ===== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease,
              background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary {
  color: #06202e;
  background: linear-gradient(180deg, #4fe0ff, var(--cyan));
  box-shadow: 0 10px 24px rgba(0, 200, 255, 0.30);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 200, 255, 0.42);
}

.btn--ghost {
  color: #0094c6;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 200, 255, 0.4);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

/* ===== Sections de contenu ===== */
.section {
  width: 100%;
  max-width: 864px;
  margin: 0 auto;
  padding: 30px 22px;
  text-align: left;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.section h3 {
  font-size: 1.08rem;
  margin: 26px 0 8px;
  color: var(--ink);
}

.section p {
  margin: 0 0 14px;
  color: #3f5269;
}

.section a {
  color: #0094c6;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.4);
  transition: color 160ms ease, border-color 160ms ease;
}

.section a:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.muted-note {
  font-size: 0.92rem;
  color: #6b7d92;
}

/* Deux couches : matière brute / savoir construit */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.duo-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(79, 151, 224, 0.18);
}

.duo-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #0094c6;
}

.duo-card p { margin: 0; font-size: 0.94rem; }

/* ===== Blocs de code ===== */
pre {
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(18, 35, 58, 0.04);
  border: 1px solid rgba(79, 151, 224, 0.18);
  overflow-x: auto;
}

pre code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #243a52;
  white-space: pre;
}

:not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 200, 255, 0.10);
  color: #0a4a63;
}

.pipeline code { color: #2d4763; }

footer {
  padding: 28px 22px 44px;
  text-align: center;
  color: #7488a0;
  font-size: 0.82rem;
}

/* ===== Liens sociaux (footer) ===== */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}

.social a {
  color: #5b6e84;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.social a:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.foot-line {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-line a {
  color: #0094c6;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.4);
  transition: color 160ms ease, border-color 160ms ease;
}

.foot-line a:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.divider {
  width: min(560px, calc(100% - 44px));
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.36), transparent);
}

/* Titre accessible mais non affiché (le visuel tient lieu de wordmark). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .hero { padding: 56px 18px 40px; gap: 18px; }
  .lang-switch { top: 12px; right: 12px; }
  .section { padding: 24px 18px; }
  .duo { grid-template-columns: 1fr; }
  .cta-row { width: 100%; }
  .btn { flex: 1 1 auto; justify-content: center; }
  pre code { font-size: 0.8rem; }
}
