/* HandPan Parts — feuille de style commune aux trois pages.
   Palette reprise de l'app : acier sombre, cuivre, or. */

:root {
  --bg: #12100e;
  --bg-warm: #1a1712;
  --panel: #1d1a16;
  --card: #262119;
  --border: #3a342b;
  --copper: #c98a4b;
  --copper-light: #e8b87d;
  --gold: #f0c987;
  --text: #efe8dd;
  --muted: #a89e8f;
  --steel: #8a8378;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at 50% -10%, #2a2419 0%, var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(18, 16, 14, .82);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}

header.site .wrap {
  display: flex; align-items: center; gap: 14px;
  padding-top: 12px; padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand span { font-size: 1.02rem; font-weight: 600; letter-spacing: .2px; }

nav.site { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

nav.site a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  padding: 6px 11px; border-radius: 7px;
}
nav.site a:hover { color: var(--text); background: rgba(201, 138, 75, .12); }
nav.site a.active { color: var(--gold); }

.lang { display: flex; gap: 3px; margin-left: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: inherit; font-size: .8rem; padding: 4px 9px; border-radius: 6px;
}
.lang button[aria-pressed="true"] { background: var(--copper); color: #1a1408; font-weight: 600; }

/* ---------- Sections ---------- */

main { padding: 44px 0 72px; }

h1 { font-size: 2.05rem; font-weight: 600; letter-spacing: -.4px; margin-bottom: 12px; }
h2 { font-size: 1.32rem; font-weight: 600; color: var(--copper-light); margin: 38px 0 12px; }
h3 { font-size: 1.02rem; font-weight: 600; color: var(--copper); margin: 22px 0 6px; }

p { margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 26px; }
.muted { color: var(--muted); }
small { color: var(--steel); font-size: .84rem; }

a { color: var(--copper-light); }
a:hover { color: var(--gold); }

ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 13px; padding: 20px 22px; margin-bottom: 16px;
}

.grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: .93rem; }
th, td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
th { color: var(--copper); font-weight: 600; background: rgba(201, 138, 75, .07); }

code {
  background: #12100e; border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 6px; font-size: .88em; color: var(--copper-light);
}

hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

/* ---------- Hero (page marketing) ---------- */

.hero { text-align: center; padding: 56px 0 30px; }
.hero img.icon {
  width: 118px; height: 118px; border-radius: 26px; margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .55);
}
.hero h1 { font-size: 2.7rem; margin-bottom: 10px; }
.hero .tagline { font-size: 1.22rem; color: var(--copper-light); margin-bottom: 16px; }
.hero .pitch { font-size: 1.06rem; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }

.btn {
  display: inline-block; background: var(--copper); color: #1a1408;
  text-decoration: none; font-weight: 600; padding: 12px 26px;
  border-radius: 10px; border: 0; font-size: 1rem;
}
.btn:hover { background: var(--copper-light); color: #1a1408; }
.btn.ghost { background: transparent; color: var(--copper-light); border: 1px solid var(--copper); }
.btn.ghost:hover { background: rgba(201, 138, 75, .12); color: var(--gold); }

.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; font-size: .95rem; color: var(--muted); }

/* ---------- FAQ ---------- */

details {
  border: 1px solid var(--border); border-radius: 11px;
  padding: 14px 18px; margin-bottom: 10px; background: var(--card);
}
details[open] { border-color: rgba(201, 138, 75, .45); }
summary {
  cursor: pointer; font-weight: 600; color: var(--copper-light);
  list-style: none; font-size: .99rem;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "▸ "; color: var(--copper); }
details[open] summary::before { content: "▾ "; }
details > *:not(summary) { margin-top: 11px; }

/* ---------- Formulaire ---------- */

form.contact { display: grid; gap: 13px; }
form.contact label { font-size: .88rem; color: var(--muted); display: block; margin-bottom: 5px; }
form.contact input, form.contact textarea, form.contact select {
  width: 100%; background: #14120f; border: 1px solid var(--border);
  border-radius: 9px; padding: 11px 13px; color: var(--text);
  font: inherit; font-size: .96rem;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: none; border-color: var(--copper);
}
form.contact textarea { min-height: 132px; resize: vertical; }

.notice {
  border-left: 3px solid var(--copper); background: rgba(201, 138, 75, .08);
  padding: 13px 17px; border-radius: 0 9px 9px 0; margin: 18px 0;
  font-size: .94rem;
}

/* ---------- Pied de page ---------- */

footer.site {
  border-top: 1px solid var(--border); padding: 26px 0 40px;
  color: var(--steel); font-size: .87rem;
}
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--copper-light); }
footer.site .spacer { margin-left: auto; }

/* ---------- Bascule de langue ---------- */

[data-lang] { display: none; }
body[data-active-lang="fr"] [data-lang="fr"],
body[data-active-lang="en"] [data-lang="en"] { display: revert; }

@media (max-width: 620px) {
  .hero h1 { font-size: 2.1rem; }
  h1 { font-size: 1.7rem; }
  nav.site a { padding: 6px 8px; font-size: .85rem; }
}
