/* ==========================================================================
   Gallus Tech — feuille de style commune
   ========================================================================== */

:root {
  --bg: #0b0e14;
  --bg-elevated: #11151d;
  --surface: #141a23;
  --surface-hover: #19212d;
  --border: #252d3a;
  --border-strong: #35404f;
  --text: #b8c2cf;
  --text-bright: #f2f5f9;
  --text-muted: #7d8999;
  --accent: #4f9cff;
  --accent-strong: #2f7fe8;
  --accent-soft: rgba(79, 156, 255, 0.1);
  --success: #2fb26a;
  --success-strong: #25995a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  color: #9cc8ff;
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

h1, h2, h3 { color: var(--text-bright); line-height: 1.25; margin: 0 0 0.5em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 8px; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand small { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text-bright); text-decoration: none; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch a {
  padding: 5px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-switch a + a { border-left: 1px solid var(--border-strong); }
.lang-switch a:hover { color: var(--text-bright); background: var(--surface); text-decoration: none; }
.lang-switch a.is-active { color: #fff; background: var(--accent-strong); }

.lang-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 20px; justify-content: center; }
.hero-actions-center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-success { background: var(--success-strong); color: #fff; }
.btn-success:hover { background: var(--success); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-bright); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79, 156, 255, 0.12), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.hero .lead { font-size: 1.2rem; color: var(--text); max-width: 640px; }
.hero-centered { text-align: center; }
.hero-centered .lead { margin: 0 auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-visual { display: flex; justify-content: center; }
.hero-visual img {
  width: 280px;
  border-radius: 22%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.card h3 { font-size: 1.12rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.card strong { color: var(--text); }

.card-accent { border-top: 3px solid var(--accent); }

.metric {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* ---------- Product card (home) ---------- */
.product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.product-card img { width: 200px; border-radius: 22%; border: 1px solid var(--border); }
.product-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.product-card p { color: var(--text-muted); margin: 0 0 14px; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tag {
  padding: 4px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
}

/* ---------- Principles list ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checklist li::before {
  content: "";
  width: 20px; height: 20px; margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234f9cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.checklist strong { color: var(--text-bright); }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin: 0; }
.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #000; }
.shot figcaption { padding: 14px 18px; font-size: 0.9rem; color: var(--text-muted); }
.shot-wide { grid-column: 1 / -1; }
.shot-wide img { aspect-ratio: 16 / 8; }

.note { color: var(--text-muted); font-size: 0.92rem; text-align: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 56px 0 32px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h2 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-bright); margin-bottom: 14px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .hero { padding: 64px 0 48px; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 160px; }
  .product-card { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .product-card img { margin: 0 auto; width: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-nav { gap: 18px; }
  .brand small { display: none; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .site-nav a:not(.btn) { font-size: 0.88rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
