:root {
  --bg: #f2efe8;
  --surface: #fffdf9;
  --ink: #1f1f1f;
  --muted: #5f5a54;
  --accent: #285943;
  --accent-2: #b84f2f;
  --border: #ded6ca;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #efe4d4 0, #efe4d4 15%, transparent 40%),
    linear-gradient(180deg, #f7f3ec 0%, var(--bg) 100%);
  line-height: 1.5;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.wrapper {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

.brand {
  margin: 0;
  padding-top: 1rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.tagline {
  margin: 0.4rem 0 0.8rem;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.lang-switch button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}

.lang-switch button.active {
  border-color: var(--accent);
  color: var(--surface);
  background: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #3e3b37;
  text-decoration: none;
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.2rem 0;
  position: relative;
  transition: color 0.16s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-nav a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, white);
  outline-offset: 2px;
}

body[data-page="home"] .site-nav a[href="index.html"],
body[data-page="pricing"] .site-nav a[href="tarifs.html"],
body[data-page="custompc"] .site-nav a[href="custompc.html"],
body[data-page="contact"] .site-nav a[href="contact.html"] {
  color: var(--accent);
}

body[data-page="home"] .site-nav a[href="index.html"]::after,
body[data-page="pricing"] .site-nav a[href="tarifs.html"]::after,
body[data-page="custompc"] .site-nav a[href="custompc.html"]::after,
body[data-page="contact"] .site-nav a[href="contact.html"]::after {
  width: 100%;
}

main {
  padding: 1.4rem 0 2rem;
}

.hero {
  margin: 1rem 0 1.6rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 1.7vw + 0.95rem, 2.2rem);
  line-height: 1.18;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem 1rem 0.8rem;
  margin: 1rem 0;
}

.card.notice {
  background: #c62828;
  color: #ffffff;
  border: 1px solid #9f1f1f;
  border-left: 8px solid #7f0000;
  box-shadow: 0 8px 18px rgba(127, 0, 0, 0.22);
}

.card.notice p {
  margin: 0;
  font-weight: 700;
}

.card.notice a {
  color: #ffffff;
  text-decoration: underline;
}

.card.card-do {
  background: #e9f7ee;
  border-color: #b7ddc3;
  border-left: 6px solid #2f7a50;
}

.card.card-dont {
  background: #fdeeee;
  border-color: #edc4c4;
  border-left: 6px solid #b64646;
}

.hidden {
  display: none !important;
}

.contact-wizard {
  border-left: 6px solid #d8a12f;
}

.qa-block,
.qa-result {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}

.qa-question {
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.choice-buttons {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.choice-btn {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8f4ed;
  color: var(--ink);
  padding: 0.35rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.choice-btn:hover,
.choice-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.choice-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.choice-btn-primary:hover,
.choice-btn-primary:focus-visible {
  color: #ffffff;
  filter: brightness(1.05);
}

.qa-result {
  border-top-style: solid;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fffcf8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, white);
  outline-offset: 1px;
}

.form-status {
  margin: 0.2rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f7f3ec;
}

.form-status.is-success {
  border-color: #b7ddc3;
  background: #e9f7ee;
}

.form-status.is-error {
  border-color: #edc4c4;
  background: #fdeeee;
}

.card h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 1rem 0 1.4rem;
}

@media (max-width: 700px) {
  .site-header {
    position: static;
  }

  .brand {
    font-size: 0.98rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .lang-switch {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .lang-switch button {
    min-width: 56px;
    min-height: 44px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.65rem;
    padding-bottom: 0.8rem;
  }

  .site-nav a {
    min-height: 46px;
    width: 100%;
    justify-content: center;
    padding: 0.3rem 0;
  }

  .site-nav a::after {
    left: 12%;
    width: 0;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  body[data-page="home"] .site-nav a[href="index.html"]::after,
  body[data-page="pricing"] .site-nav a[href="tarifs.html"]::after,
  body[data-page="custompc"] .site-nav a[href="custompc.html"]::after,
  body[data-page="contact"] .site-nav a[href="contact.html"]::after {
    width: 76%;
  }

  main {
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .card {
    padding: 0.85rem 0.85rem 0.7rem;
  }

  .choice-btn {
    width: 100%;
  }
}