/* 0xLabs — studio indépendant. Thème sombre, accent turquoise du logo ;
   chaque marque de la famille Atomy garde sa couleur. */
:root {
  --bg: #0a0f14;
  --bg-2: #0e151c;
  --panel: #121b24;
  --panel-2: #172330;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef3;
  --muted: #93a3b1;
  --accent: #2dd4bf; /* turquoise du logo 0xLabs */
  --accent-deep: #0f766e;
  --bookatomy: #8f9cff;
  --worldatomy: #e39a3b;
  --simulatomy: #4fd1e8;
  --radius: 18px;
  --maxw: 1120px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background:
    radial-gradient(1000px 520px at 90% -12%, rgba(45, 212, 191, 0.13), transparent 60%),
    radial-gradient(800px 480px at -10% 30%, rgba(143, 156, 255, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #7ee8d8; }

.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 20, 0.75); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: 0.2px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }

/* Héros */
.hero { padding: 96px 0 64px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -0.8px; margin: 0 0 22px; max-width: 900px; }
h1 .soft { color: var(--muted); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 720px; margin: 0; }

h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.3px; margin: 0 0 10px; }
h3 { margin: 0 0 6px; font-size: 22px; }
.section-intro { color: var(--muted); margin: 0 0 30px; max-width: 680px; }
section { padding: 44px 0; }

/* Famille Atomy */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-card { --c: var(--accent); position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.brand-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.brand-card.bookatomy { --c: var(--bookatomy); }
.brand-card.worldatomy { --c: var(--worldatomy); }
.brand-card.simulatomy { --c: var(--simulatomy); }
.brand-card .visual { aspect-ratio: 16 / 10; overflow: hidden; }
.brand-card .visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.brand-card .kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }
.brand-card h3 { font-size: 26px; }
.brand-card h3 .atomy { color: var(--c); }
.brand-card p { margin: 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.pill:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.pill.primary { background: var(--c, var(--accent)); color: #071014; border-color: transparent; }
.pill.primary:hover { filter: brightness(1.08); color: #071014; }
.pill.disabled { opacity: 0.55; pointer-events: none; }
.pill svg { width: 16px; height: 16px; }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.app { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: inherit; transition: border-color 0.2s ease, background 0.2s ease; }
.app:hover { border-color: rgba(45, 212, 191, 0.45); background: var(--panel-2); color: inherit; }
.app img, .app .tile { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; display: block; }
.app .tile { display: grid; place-items: center; font-weight: 800; font-size: 30px; color: #071014; background: linear-gradient(135deg, var(--bookatomy), #c7b6ff); }
.app h3 { font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--muted); }
.badge.bookatomy { color: var(--bookatomy); }
.badge.simulatomy { color: var(--simulatomy); }
.app .where { margin-top: 8px; font-size: 13px; color: var(--accent); }

/* Démarche */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.principle { border-top: 2px solid var(--accent-deep); padding-top: 16px; }
.principle h3 { font-size: 18px; }
.principle p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* Texte courant (À propos) */
.prose { max-width: 760px; }
/* Texte dans un conteneur : aligné à gauche comme le titre */
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: 760px; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin-top: 40px; font-size: 26px; }
.callout { background: linear-gradient(120deg, rgba(45, 212, 191, 0.09), rgba(143, 156, 255, 0.08)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; max-width: 760px; }
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin: 0; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin: 0 0 10px; color: var(--text); font-size: 14px; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .family { grid-template-columns: 1fr; }
  .brand-card { display: grid; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .optional { display: none; }
  .hero { padding: 60px 0 40px; }
  .apps { grid-template-columns: 1fr; }
  .app { grid-template-columns: 60px 1fr; }
  .app img, .app .tile { width: 60px; height: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
}
