/* NETTIBAC : pages légales (mise en page inspirée de discove.fr, aux couleurs NETTIBAC) */
:root {
  --g: #386e53; --g-2: #4a8a69; --g-deep: #1d3a2c; --blue: #509ac6; --blue-2: #3b82b0; --sky: #d3e8f4;
  --cream: #f4f6f2; --ink: #15201a; --muted: rgba(21,32,26,0.68); --line: rgba(21,32,26,0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --r: 26px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 100px; }
body { background: var(--cream); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2.5px solid var(--g); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 36px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 15.5px; white-space: nowrap; transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .4s; }
.btn i { font-size: 18px; }
.btn-g { background: var(--g); color: #fff; box-shadow: 0 14px 34px -14px rgba(56,110,83,0.75); }
.btn-g:hover { background: var(--g-deep); transform: translateY(-2px); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn-sm { padding: 12px 18px; font-size: 14.5px; }

/* Nav (même que l'accueil) */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding: 16px 0; transition: background-color .4s, padding .4s, box-shadow .4s; }
.nav.scrolled { padding: 10px 0; background: rgba(244,246,242,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.logo { position: relative; z-index: 2; }
.logo img { height: 58px; width: auto; background: #fff; border-radius: 12px; padding: 4px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .3s, background-color .3s; }
.nav-links a:hover { color: var(--ink); background: rgba(21,32,26,0.06); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; z-index: 2; background: rgba(255,255,255,0.6); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.menu-open { overflow: hidden; }
.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.m-menu { position: fixed; inset: 0; z-index: 55; background: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 90px 28px 40px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; overflow-y: auto; }
.menu-open .m-menu { opacity: 1; visibility: visible; transition: opacity .4s; }
.m-menu > a { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.15; }
.m-menu > a:hover { color: var(--g); }
.m-menu .m-cta { margin-top: 28px; display: grid; gap: 10px; }
.m-menu .m-cta .btn { justify-content: center; }

/* En-tête de page */
.page-hero { padding: 160px 0 56px; }
.kicker { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g); margin-bottom: 18px; }
.page-hero h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
.page-hero h1 em { font-style: normal; color: var(--g); }
.page-hero .lead { margin-top: 20px; color: var(--muted); font-size: 18.5px; max-width: 62ch; }
.updated { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.updated i { color: var(--g); }

/* Sommaire + cartes */
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 110px; }
.toc { position: sticky; top: 100px; padding: 22px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.toc p { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .3s var(--ease), background-color .3s var(--ease); }
.toc a:hover { color: var(--ink); background: rgba(21,32,26,0.05); }
.toc a.on { color: #fff; background: var(--g); }
.legal-cards { display: grid; gap: 20px; }
.lg { border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 36px; display: grid; gap: 20px; }
.lg h2 { display: flex; align-items: center; gap: 14px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.025em; line-height: 1.2; }
.lg-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; color: var(--blue-2); background: var(--sky); flex-shrink: 0; }
.lg-body { display: grid; gap: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.lg-body strong { color: var(--ink); font-weight: 700; }
.lg-body a { color: var(--g); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(56,110,83,0.35); text-underline-offset: 3px; }
.lg-body a:hover { text-decoration-color: var(--g); }
.lg-body ul { display: grid; gap: 10px; }
.lg-body li { position: relative; padding-left: 22px; }
.lg-body li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.kv { display: grid; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.kv > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-weight: 700; color: var(--ink); }
.kv dd { color: var(--muted); }
.todo { background: #fff3c4; color: #6b5200; padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: .95em; }

/* Apparitions */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links, .nav .btn { display: none; } .burger { display: block; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .page-hero { padding: 120px 0 40px; }
  .logo img { height: 48px; }
  .lg { padding: 24px 18px; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .lg-body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Titres animés (comme Corespa) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split.in .w > span { transform: none; }
.kicker { opacity: 0; letter-spacing: .32em; transition: opacity .8s ease, letter-spacing 1.1s var(--ease); }
.kicker.in { opacity: 1; letter-spacing: .14em; }
@media (prefers-reduced-motion: reduce) { .split .w > span { transform: none; transition: none; } .kicker { opacity: 1; letter-spacing: .14em; transition: none; } }
