/* ════════════════════════════════════════════════════════════════════
   docs.css — habillage commun des pages Aide et documents légaux
   (assistance, cgu, cgv, confidentialite, mentions-legales).

   Mêmes jetons, polices, en-tête et pied de page que web/index.html et
   web/tarifs.html : si la charte change là-bas, la reporter ici.

   Polices auto-hébergées (assets/fonts/, licence SIL OFL 1.1) plutôt que
   Google Fonts : ces pages décrivent notre politique de données, elles ne
   doivent transmettre l'adresse IP du visiteur à aucun tiers.

   Servi depuis public/assets/ (copié par « cp -r web/assets » du job pages) :
   les pages référencent « assets/docs.css » en relatif, à plat.
   ════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #0f1623;
  --ink-2: #1a2436;
  --blue: #3b5bdb;
  --blue-deep: #226FA4;
  --blue-soft: #eef2ff;
  --blue-line: #dbe3ff;
  --paper: #f8fafc;
  --white: #ffffff;
  --text: #1a1f2b;
  --muted: #5a6373;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --teal: #14b8a6;
  --danger: #b42318;
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: #8fa9ff; margin-bottom: 14px;
}
:focus-visible { outline: 3px solid #8fa9ff; outline-offset: 2px; border-radius: 6px; }

/* ─── Navigation (identique à l'accueil) ─────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-current { color: var(--ink); font-weight: 600; }
.nav__store-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--ink) !important; border-radius: 7px; transition: color .15s, background .15s, transform .15s; }
.nav__store-link:hover { color: var(--blue) !important; background: var(--blue-soft); transform: translateY(-1px); }
.nav__cta { display: flex; align-items: center; gap: 10px; }

/* ─── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; border-radius: 999px; padding: 10px 20px;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { flex: 0 0 auto; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--paper); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(59,91,219,.32); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(59,91,219,.4); }
/* Variante sur fond sombre (bandeau d'en-tête) */
.btn--light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }

/* ─── Bandeau d'en-tête de page ─────────────────────────────── */
.phead {
  position: relative; overflow: hidden; color: #eaf0ff; text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(59,91,219,.42), transparent 60%),
    radial-gradient(600px 360px at 6% 30%, rgba(20,184,166,.14), transparent 55%),
    linear-gradient(160deg, #0f1623 0%, #131d31 55%, #0f1623 100%);
  padding: 60px 0 92px;
}
.phead::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.phead .wrap { position: relative; }
.phead h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; letter-spacing: -.4px; }
.phead__lead { margin: 16px auto 0; max-width: 640px; font-size: 1.06rem; color: #c3ccdf; }
.phead__meta { margin: 16px auto 0; max-width: 680px; font-size: .9rem; color: #9fb0cf; }
.phead__meta strong { color: #dbe3f5; }
.phead__note { margin: 10px auto 0; max-width: 640px; font-size: .86rem; color: #8fa9ff; }
.phead__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ─── Onglets entre documents ───────────────────────────────── */
.docnav-bar { position: relative; z-index: 5; margin-top: -30px; }
.docnav {
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px;
  box-shadow: 0 18px 40px -26px rgba(15,22,35,.45);
  overflow-x: auto; scrollbar-width: none;
}
.docnav::-webkit-scrollbar { display: none; }
.docnav a, .docnav-current {
  flex: 0 0 auto; font-size: .9rem; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  color: var(--muted); white-space: nowrap; transition: background .15s, color .15s;
}
.docnav a:hover { background: var(--paper); color: var(--ink); }
.docnav-current { background: var(--blue); color: #fff; font-weight: 600; }

/* ─── Mise en page des documents ────────────────────────────── */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 52px 0 88px; align-items: start; }
.doc--single { grid-template-columns: minmax(0, 1fr); max-width: 800px; margin: 0 auto; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.toc__title { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: .86rem; line-height: 1.4; color: var(--muted); transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }

.prose { max-width: 760px; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: 1.42rem; color: var(--ink); margin: 46px 0 14px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child, .prose > .lead + h2 { border-top: 0; padding-top: 0; }
.prose h3 { font-family: "DM Sans", sans-serif; font-size: 1.04rem; font-weight: 700; color: var(--ink); margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text); font-size: 1rem; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue); font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--blue); }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.08rem; color: var(--muted); padding-bottom: 6px; }

/* Tableaux : conteneur arrondi, défilement horizontal sur téléphone */
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; margin: 0; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--paper); color: var(--ink); font-weight: 600; width: 34%; }
.prose td + td, .prose th + td, .prose th + th { border-left: 1px solid var(--line); }
.prose table.grid th { width: auto; }
.prose table:has(tr:first-child > th + th) th { width: auto; }

/* Encadrés */
.prose .note, .prose .highlight {
  background: var(--blue-soft); border: 1px solid var(--blue-line); border-left: 4px solid var(--blue);
  border-radius: 12px; padding: 16px 20px; margin: 18px 0;
}
.prose .box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 18px 0; }
.prose .note > :first-child, .prose .highlight > :first-child, .prose .box > :first-child { margin-top: 0; }

.doc-end {
  margin-top: 52px; padding: 18px 20px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}

/* ════════════ Page Aide ════════════ */
.help { padding-top: 52px; padding-bottom: 88px; }
.help__inner { max-width: 880px; margin: 0 auto; }

/* Sommaire en tuiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--blue-line); box-shadow: 0 16px 36px -26px rgba(15,22,35,.45); }
.tile__icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--blue), var(--blue-deep)); color: #fff;
}
.tile__icon--danger { background: #fdecec; color: var(--danger); }
.tile__txt strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.tile__txt span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 3px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 34px; margin-bottom: 22px;
}
.card--paper { background: var(--paper); }
.card--feat { border-color: var(--blue-line); background: linear-gradient(180deg, var(--blue-soft), var(--white) 70%); }
.card__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.card__icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--blue), var(--blue-deep)); color: #fff;
}
.card__icon--danger { background: #fdecec; color: var(--danger); }
.card h2 { font-size: 1.55rem; color: var(--ink); }
.card__sub { color: var(--muted); font-size: .96rem; margin-top: 4px; }
.card h3 { font-family: "DM Sans", sans-serif; font-size: 1.04rem; font-weight: 700; color: var(--ink); margin: 24px 0 6px; }
.card p, .card li { color: var(--text); }
.card p + p { margin-top: 10px; }
.card a:not(.btn) { color: var(--blue); font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: 3px; }
.card ul, .card ol { padding-left: 22px; margin: 10px 0 0; }
.card li { margin: 7px 0; }
.card li::marker { color: var(--blue); }
.card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.path {
  font-size: .9em; font-weight: 600; white-space: nowrap;
  background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 6px; padding: 1px 7px; color: var(--ink);
}
.tip {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 12px; padding: 14px 18px; margin-top: 20px; font-size: .95rem; color: var(--text);
}
.tip--warn { border-left-color: #f59e0b; background: #fffbeb; border-color: #fde68a; }

/* Étapes numérotées */
.steps { counter-reset: step; list-style: none; margin: 8px 0 0 !important; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin: 0 0 22px !important; }
.steps > li:last-child { margin-bottom: 0 !important; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  border: 1px solid var(--blue-line); font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; justify-content: center;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: -18px; width: 1px; background: var(--line);
}
.steps strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 3px; }
.steps p { color: var(--muted); font-size: .96rem; }

/* Grille « Au quotidien » */
.daily { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.daily > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.daily h3 { margin-top: 0 !important; }
.daily p { font-size: .95rem; color: var(--muted); }

/* FAQ dépliable (même composant que la page tarifs) */
.faq-group { font-family: "DM Sans", sans-serif; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2) !important; margin: 28px 0 12px !important; }
.faq-group:first-of-type { margin-top: 6px !important; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px;
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--blue); box-shadow: 0 10px 30px -24px rgba(59,91,219,.6); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* Badges stores (réponse FAQ) */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff !important;
  border-radius: 12px; padding: 8px 16px 8px 14px; text-decoration: none !important; transition: transform .15s, background .2s;
}
.store-badge:hover { transform: translateY(-1px); background: var(--ink-2); }
.store-badge small { display: block; font-size: .64rem; color: #aeb8cc; line-height: 1.1; }
.store-badge b { display: block; font-size: 1rem; font-weight: 600; line-height: 1.15; }

.contact-mail { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--blue) !important; text-decoration: none !important; margin-top: 6px; }

/* ─── Footer (identique à l'accueil) ────────────────────────── */
footer.site-footer { background: var(--ink); color: #aab4c8; padding: 56px 0 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.footer__brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer__col h4 { font-family: "DM Sans", sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7688; margin: 0 0 14px; }
.footer__col a { display: block; color: #aab4c8; font-size: .95rem; margin-bottom: 10px; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__desc { font-size: .95rem; color: #8a94a8; max-width: 320px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.06); color: #aab4c8; transition: background .15s, color .15s; }
.footer__social a:hover { background: rgba(255,255,255,.14); color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: .85rem; color: #6b7688; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 800px; margin: 0 auto; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: .88rem; }
  .nav__store-link { width: 28px; height: 28px; }
  .nav__cta .btn--primary { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav__inner { height: auto; padding: 10px 22px; flex-wrap: wrap; row-gap: 8px; }
  .brand { font-size: 1.05rem; }
  .nav__links { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  .nav__links a { font-size: .85rem; }
  .nav__store-link { width: 26px; height: 26px; }
  .btn { padding: 9px 16px; font-size: .88rem; }
  html { scroll-padding-top: 120px; }
  .toc { top: 120px; }
  .phead { padding: 44px 0 80px; }
  .phead__actions .btn { width: 100%; }
  .docnav-bar { margin-top: -26px; }
  .docnav { flex-wrap: wrap; justify-content: center; width: auto; border-radius: 18px; overflow: visible; }
  .docnav a, .docnav-current { padding: 7px 12px; font-size: .85rem; }
  .doc, .help { padding-top: 36px; padding-bottom: 64px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { padding: 14px 16px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .card h2 { font-size: 1.32rem; }
  .card__actions .btn { width: 100%; }
  .daily { grid-template-columns: 1fr; }
  .prose h2 { font-size: 1.28rem; }
  .path { white-space: normal; }
}
@media print {
  .nav, .docnav-bar, .toc, footer.site-footer, .phead__actions { display: none !important; }
  .phead { background: none; color: var(--ink); padding: 0 0 12px; text-align: left; }
  .phead h1, .phead__meta, .phead__meta strong, .phead__lead { color: var(--ink); }
  .eyebrow { color: var(--muted); }
  .doc { display: block; padding: 0; }
}
