/* Gif4Mac — site statique. Aucune dépendance, aucun build. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --accent-dark: #0058b0;
  --border: #d2d2d7;
  --radius: 12px;
  --max-width: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161617;
    --bg-alt: #1d1d1f;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent: #2997ff;
    --accent-dark: #64b5ff;
    --border: #3a3a3c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }

.lang-switch {
  font-size: 0.9375rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.store-badge { display: inline-block; }
.store-badge img { height: 54px; width: auto; display: block; }

.hero-demo {
  margin: 3rem auto 0;
  max-width: 44rem;
}
.hero-demo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 3rem 0;
}

@media (min-width: 40rem) {
  .features { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}

/* Generic content pages */
main.page {
  padding: 3rem 0 4rem;
}

main.page h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

main.page h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}

.subtitle { color: var(--text-muted); margin-top: 0; }

/* Requirements strip */
.requirements {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 0 0 3rem;
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.75rem;
  background: var(--bg-alt);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details p { color: var(--text-muted); margin-bottom: 0.25rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
}
.error-page h1 { font-size: 4rem; margin: 0; }
