/* ============================================================
   François Steiner — style.css
   Site vitrine léger, sans framework. Polices système = rapidité.
   ============================================================ */

:root {
  --red: #d8232a;          /* accent rouge « suisse » */
  --red-dark: #b01c22;
  --ink: #16181d;          /* texte principal */
  --ink-soft: #4b4f58;     /* texte secondaire */
  --bg: #ffffff;
  --bg-alt: #f6f6f4;       /* sections alternées */
  --line: #e4e4e0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(22, 24, 29, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--ink-soft); margin-bottom: 2.5rem; max-width: 42rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { padding: 0.45rem 1.1rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 38px; height: 38px; }
.brand-mark-wide { width: 95px; height: 38px; }
.brand-text { font-size: 1.05rem; }
.brand-text strong { font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(216, 35, 42, 0.07), transparent),
    var(--bg);
}
.hero-badge {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.card-price {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ink) !important;
  font-size: 1rem !important;
}
.card-price strong { font-size: 1.25rem; color: var(--red); }

/* ---------- Tarifs ---------- */
.pricing-main {
  background: var(--bg);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  box-shadow: var(--shadow);
}
.pricing-header { margin-bottom: 1.25rem; }
.pricing-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
}
.pricing-amount span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.pricing-subtitle { text-align: center; margin: 0 0 1.5rem; font-size: 1.3rem; }
.pricing-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.pricing-main .btn { margin-top: 0.75rem; }

.checklist { list-style: none; margin: 0 0 1.5rem; }
.checklist li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.checklist em { color: var(--ink-soft); font-size: 0.9em; }

.pricing-card { text-align: center; align-items: center; position: relative; }
.pricing-card .card-price { margin: 0.25rem 0 0.75rem; padding-top: 0; }
.pricing-card.featured { border-color: var(--red); border-width: 2px; }
.tag {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  padding: 0.15rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.fine-print {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Étapes ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.steps h3 { color: var(--red); }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Pourquoi moi ---------- */
.why p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid p { color: var(--ink-soft); }
.about-facts {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.about-facts .checklist { margin-bottom: 0; }

/* ---------- Réalisations ---------- */
.works { grid-template-columns: repeat(2, 1fr); }
.work-banner {
  border-radius: 10px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 1.1rem;
}
.work-banner.hikari { background: linear-gradient(135deg, #2c2440, #8a6ab0); }
.work-banner.kinea { background: linear-gradient(135deg, #1e5c4f, #63b59f); }
.work-link {
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 1rem;
}
.work-link:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-list { list-style: none; margin-top: 1.5rem; }
.contact-list li { margin-bottom: 0.6rem; }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.9rem 0 0.3rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.contact-form .btn { margin-top: 1.25rem; align-self: flex-start; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 0.5rem; }
.legal-version { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-soft); }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4, .steps, .works { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
