/* ============================================================
   AdamAI Lab — feuille de style principale
   Design sobre premium, HTML + CSS uniquement
   ============================================================ */

/* ---- Variables ---- */
:root {
  --color-bg: #f9f8f6;
  --color-surface: #ffffff;
  --color-border: #e4e0d9;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-accent: #1a3a5c;
  --color-accent-light: #e8eff7;
  --color-tag: #2e5d8e;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "Courier New", monospace;
  --max-width: 860px;
  --radius: 4px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---- Header ---- */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover { text-decoration: none; }

/* ---- Navigation ---- */
nav ul {
  list-style: none;
  display: flex;
  gap: 0.1rem;
  flex-wrap: wrap;
}

nav ul li a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
  text-decoration: none;
}

/* ---- Footer ---- */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
}

footer a {
  color: var(--color-muted);
}

footer a:hover {
  color: var(--color-accent);
}

/* ---- Typography ---- */
h1 {
  font-size: 1.85rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  color: var(--color-accent);
}

h3 {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.3rem; }

/* ---- Hero section ---- */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 580px;
  margin-top: 0.6rem;
}

/* ---- Sections ---- */
section {
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
  display: block;
}

/* ---- Cards grid ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---- Insight block ---- */
.insight {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.insight h3 {
  font-size: 1.05rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.insight-label {
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}

.insight ul {
  margin: 0.3rem 0 0 1.2rem;
}

.insight ul li {
  font-size: 0.9rem;
  color: var(--color-text);
}

.insight .question {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.6rem;
}

/* ---- Focus cards ---- */
.focus-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.focus-card-num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  padding-top: 0.2rem;
  min-width: 52px;
}

.focus-card-body { flex: 1; }

.focus-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--color-accent);
}

.focus-card-body p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
}

.focus-card-body a {
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.tag-coming {
  display: inline-block;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* ---- Method steps ---- */
.steps {
  counter-reset: steps;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.step {
  counter-increment: steps;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding-top: 0.15rem;
  min-width: 24px;
  font-family: var(--font-mono);
}

.step-body h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---- Table ---- */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead tr {
  background: var(--color-accent);
  color: #fff;
}

thead th {
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: normal;
  letter-spacing: 0.03em;
}

tbody tr:nth-child(even) {
  background: var(--color-accent-light);
}

tbody td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}

/* ---- Repo references ---- */
.repo-list {
  list-style: none;
  padding: 0;
}

.repo-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.repo-list li:last-child { border-bottom: none; }

.repo-name {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--color-accent);
}

.repo-placeholder {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* ---- CTA block ---- */
.cta-block {
  background: var(--color-accent-light);
  border: 1px solid #c5d9ef;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.cta-block p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: #142d4a;
  text-decoration: none;
}

/* ---- Contact ---- */
.contact-intro {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.faq {
  margin-top: 2rem;
}

.faq-item {
  border-top: 1px solid var(--color-border);
  padding: 1.1rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--color-border); }

.faq-item dt {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.faq-item dd {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ---- Meta info ---- */
.meta-update {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2rem;
  display: block;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---- Notice / intro block ---- */
.intro-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ---- Divider ---- */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav ul {
    gap: 0;
  }

  nav ul li a {
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
  }

  .focus-card {
    flex-direction: column;
    gap: 0.5rem;
  }

  .focus-card-num { min-width: auto; }

  .cards {
    grid-template-columns: 1fr;
  }
}
