/* Pages légales de tanoo.tech — même charte que la vitrine (Poppins, Mirage, orange rare). */
:root {
  --mirage: #16232A;
  --orange: #FF6400;
  --green: #176D6E;
  --green-50: #F3F8F8;
  --sand: #E4E5E3;
  --ground: #F4F6F3;
  --card: #FFFFFF;
  --line: #E8EBE6;
  --ink: #16232A;
  --ink-soft: #3D4B49;
  --muted: #697570;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #114E4F; }

header.band {
  background: var(--mirage);
  color: var(--sand);
  padding: 28px 22px 34px;
}
.band-inner { max-width: 760px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--sand); text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
header.band h1 {
  margin-top: 26px;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}
header.band .lead { margin-top: 10px; color: rgba(228, 229, 227, 0.72); max-width: 620px; }
header.band .maj { margin-top: 14px; font-size: 0.82rem; color: rgba(228, 229, 227, 0.5); }

main { max-width: 760px; margin: -18px auto 0; padding: 0 16px 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
}
.card + .card { margin-top: 16px; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 8px; line-height: 1.3; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1rem; font-weight: 600; margin: 18px 0 6px; }
p { color: var(--ink-soft); }
p + p { margin-top: 10px; }
ul { margin: 8px 0 0 1.2em; color: var(--ink-soft); }
li + li { margin-top: 6px; }
strong { color: var(--ink); font-weight: 600; }
.note {
  margin-top: 14px;
  background: var(--green-50);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink-soft);
}
.steps { list-style: none; margin: 12px 0 0; counter-reset: etape; }
.steps li { counter-increment: etape; position: relative; padding-left: 42px; min-height: 30px; }
.steps li::before {
  content: counter(etape);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 600;
}
.steps li + li { margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; min-height: 48px;
  padding: 12px 22px; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 600; text-decoration: none;
}
.btn:hover { background: #146061; color: #fff; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-soft); }
footer.pied { max-width: 760px; margin: 0 auto; padding: 0 22px 36px; font-size: 0.82rem; color: var(--muted); }
footer.pied a { color: var(--muted); }
@media (max-width: 520px) {
  .card { padding: 22px 16px; border-radius: 14px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; color: var(--ink); }
}

/* Accordée à la nouvelle page d'accueil : bandeau sombre avec halo, logo horizontal, titres serrés. */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
header.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 26px 22px 64px;
}
header.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 360px at 88% -10%, rgba(23, 109, 110, 0.5), transparent 70%),
    radial-gradient(rgba(228, 229, 227, 0.07) 1px, transparent 1.2px) 0 0 / 28px 28px;
  pointer-events: none;
}
.brand { min-height: 44px; border-radius: 10px; }
.brand img { display: none; }
.brand::before {
  content: "";
  display: block;
  width: 104px;
  height: 30px;
  background: url("/images/tanoo-logo.png") left center / contain no-repeat;
}
.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
header.band h1 {
  margin-top: 34px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
header.band .lead { margin-top: 14px; font-size: 1.04rem; }
main { position: relative; z-index: 1; margin-top: -36px; }
header.band strong { color: var(--sand); }
.card { border-radius: 22px; padding: 30px 28px; box-shadow: 0 24px 50px -40px rgba(22, 35, 42, 0.35); }
h2 { letter-spacing: -0.02em; }
.btn { border-radius: 14px; box-shadow: 0 12px 26px -14px rgba(23, 109, 110, 0.8); transition: background-color 0.2s, transform 0.2s; }
.btn:active { transform: scale(0.97); }
footer.pied { padding-top: 8px; }
footer.pied a { text-decoration: none; }
footer.pied a:hover { color: var(--green); }
@media (max-width: 520px) {
  header.band { padding: 20px 18px 56px; }
  header.band h1 { margin-top: 26px; }
  .card { padding: 24px 18px; border-radius: 18px; }
}
