/* Pages publiques (accueil, guides, sécurité, légal). Le tableau de bord n'utilise que style.css et reste sombre. */
html { scroll-behavior: smooth; }
/* Les pages publiques suivent le réglage clair ou sombre de l'appareil. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fafaf8; --panel: #ffffff; --panel2: #f1f0ec; --line: #e4e2dc; --text: #111113; --muted: #5f5f66; --text-2: #3b3b40;
    --accent: #c2410c; --accent2: #0f7a4f; --warn: #8a5300; --ink: #111113; --on-ink: #ffffff; --surface: #ffffff; --header: #fafaf8d9; --shadow: #1111131a;
  }
  .shot { box-shadow: 0 30px 80px var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover { transform: none; }
}
body { font-size: 15px; line-height: 1.6; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel2); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* En-tête sombre sur tout le site, dans la continuité des bandeaux. */
.top { --header: #09090bf5; --accent: #ff7a3d; --line: #ffffff14; --text: #f2f2f4; --muted: #9b9ba3; --panel: #121215; --panel2: #1a1a1e; --ink: #f2f2f4; --on-ink: #09090b; --shadow: #0009; color-scheme: dark; color: var(--text);
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); background: var(--header); border-bottom: 1px solid var(--line); }
.top .logo i { background-color: #f2f2f4; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.top .main-nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu nav { position: absolute; right: 0; top: 44px; min-width: 220px; display: flex; flex-direction: column; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px var(--shadow); }
.menu nav a { padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--text); }
.menu nav a:hover { background: var(--panel2); }
@media (max-width: 960px) { .top .main-nav, .top .hide-sm { display: none; } .menu { display: block; } }

/* Bandeaux sombres (hero, en-têtes de page, sécurité) : mêmes jetons que le mode sombre. */
.dark, .hero { --bg: #09090b; --panel: #121215; --panel2: #1a1a1e; --line: #26262c; --text: #f2f2f4; --muted: #9b9ba3; --text-2: #c9c9cf;
  --accent: #ff7a3d; --ink: #f2f2f4; --on-ink: #09090b; --surface: #121215; --shadow: #0009; color-scheme: dark; }
section.dark { background: var(--bg); color: var(--text); border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
section.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px); background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000, transparent 75%); }
section.dark .tile { background: #ffffff06; }
section.dark a { color: var(--accent); }
.phero { padding: 88px 0 80px; border-top: 0; }
.phero::after { content: ""; position: absolute; z-index: -1; right: -200px; top: -200px; width: 700px; height: 600px; background: radial-gradient(closest-side, #ff7a3d24, transparent); }
.phero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 650; letter-spacing: -.045em; line-height: 1.04; margin: 0 0 18px; max-width: 860px; text-wrap: balance; }
.phero h1 em { font-style: normal; color: var(--accent); }
.phero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 680px; margin: 0; }
@media (max-width: 860px) { .phero { padding: 56px 0 52px; } }

section.block { padding: 84px 0; border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); } /* le témoin, en petit */
h2.title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 14px; max-width: 760px; text-wrap: balance; }
.sub { color: var(--text-2); font-size: 17px; max-width: 680px; margin: 0 0 40px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: border-color .2s ease, transform .2s ease; }
.tile:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--line)); }
.tile h3 { margin: 10px 0 6px; font-size: 16.5px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
.ico.sm { width: 30px; height: 30px; border-radius: 8px; }
.ico .i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm .i { width: 16px; height: 16px; }

.shot { margin: 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); box-shadow: 0 1px 2px var(--shadow), 0 24px 64px var(--shadow); }
.shot .bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }


.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--text-2); }

/* Toujours sombre, dans les deux modes : c'est le dernier bandeau de la page, comme le hero. */
.cta { text-align: center; padding: 72px 24px; border-radius: 20px; color: #f2f2f4; border: 1px solid #ffffff14;
  background: radial-gradient(closest-side at 50% 0%, #ff7a3d24, transparent 70%), #111113; }
.cta h2 { color: #f2f2f4; } .cta p { color: #f2f2f4b3; }
.cta .btn { background: #f2f2f4; color: #09090b; }
.btn.lg { padding: 13px 24px; font-size: 15px; }

/* Offres : la bêta en bandeau sombre (comme le hero et l'appel final), l'offre Entreprise en clair. */
.offers { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.offer { display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.offer .o-head { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer .o-name { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.offer .o-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; color: #ff7a3d; background: #ff7a3d1f; border: 1px solid #ff7a3d4d; }
.offer .o-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer .o-price b { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.offer .o-price span { color: var(--muted); font-size: 15px; }
.offer.alt .o-price b { font-size: 44px; }
.offer .o-desc { margin: -8px 0 0; color: var(--text-2); font-size: 15.5px; }
.offer ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; align-content: start; }
.offer li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text-2); }
.offer li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #ff7a3d1f
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.offer .btn { justify-content: center; width: 100%; padding: 14px 20px; font-size: 15px; }
.offer .o-note { margin: -10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.offer.main { --line: #ffffff17; --muted: #9b9ba3; --text-2: #d4d4d8; color: #f2f2f4; border-color: #ff7a3d40;
  background: radial-gradient(closest-side at 85% 0%, #ff7a3d33, transparent 70%), radial-gradient(closest-side at 0% 100%, #ff7a3d14, transparent 70%), #111113;
  box-shadow: 0 30px 80px -30px #ff7a3d40, inset 0 1px 0 #ffffff0d; }
.offer.main .btn { background: #f2f2f4; color: #09090b; border-color: #f2f2f4; }
.offer.main .btn:hover { background: #fff; }
@media (max-width: 860px) { .offers { grid-template-columns: minmax(0, 1fr); } .offer { padding: 28px 24px; } .offer .o-price b { font-size: 52px; } }

footer.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { margin: 14px 0 18px; max-width: 280px; }
.foot-brand small { font-size: 13px; }
footer.foot nav { display: flex; flex-direction: column; gap: 10px; }
footer.foot nav b { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
footer.foot nav a { color: var(--muted); text-decoration: none; }
footer.foot nav a:hover { color: var(--text); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Apparition au défilement (site.js). */
.anim .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim .rv.in { opacity: 1; transform: none; }
.anim .grid > .rv:nth-child(2) { transition-delay: .07s; } .anim .grid > .rv:nth-child(3) { transition-delay: .14s; } .anim .grid > .rv:nth-child(4) { transition-delay: .21s; }

/* Pages de contenu (guides, sécurité, légal) */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 48px 22px 80px; max-width: 1120px; margin: 0 auto; }
.doc aside { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.doc aside a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 8px; font-size: 14px; }
.doc aside a:hover { background: var(--panel2); color: var(--text); }
.doc article { min-width: 0; max-width: 760px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0 0 10px; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 52px 0 12px; scroll-margin-top: 84px; }
.doc h3 { font-size: 16px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-2); overflow-wrap: anywhere; }
.doc pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; }
.doc table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.note { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 14px; }
.note code { overflow-wrap: anywhere; word-break: break-all; }
.note.warn { background: #f5a52414; border-color: #f5a52455; }
.todo { background: #f5a52429; color: var(--warn); padding: 0 5px; border-radius: 4px; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 20px; } .doc aside { position: static; flex-direction: row; flex-wrap: wrap; } }
