/* ==========================================================
   Pages légales Fiddes (mentions, CGV, confidentialité)
   Complète styles.css + sales.css. Tout est bouton : sommaire en pastilles, articles en accordéons.
   ========================================================== */

.lg .lg-hero { padding-bottom: 0; }
.lg .lg-hero h1 { font-size: clamp(44px, 7vw, 104px); margin-bottom: 26px; }
.lg-upd { margin-bottom: 30px; }

/* Sommaire : pastilles qui mènent aux articles */
.lg-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1040px; margin: 0 auto; }
.lg-pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 99px; border: 1px solid rgba(10,27,61,.1); background: #fff; cursor: pointer;
  font: 700 15px Sora, sans-serif; letter-spacing: -0.01em; color: var(--nuit); transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; }
.lg-pill i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 11px "JetBrains Mono", monospace; font-style: normal; transition: transform .5s var(--ease); }
.lg-pill:hover, .lg-pill:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(10,27,61,.45); }
.lg-pill:hover i, .lg-pill:focus-visible i { transform: rotate(360deg); }
.lg-pill.on { background: var(--nuit); color: #fff; border-color: var(--nuit); }

/* Articles : même famille que la FAQ des pages de vente */
.lg .lg-body { max-width: 1000px; padding-top: 80px; }
.lg-list { display: flex; flex-direction: column; gap: 10px; }
.lg-item { scroll-margin-top: 110px; }
.lg-q { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 22px; border-radius: 22px; border: 1px solid rgba(10,27,61,.1); background: #fff; cursor: pointer; text-align: left;
  font: 700 18px/1.3 Sora, sans-serif; letter-spacing: -0.015em; color: var(--nuit); transition: all .3s var(--ease); }
.lg-q .lg-n { flex: none; font: 700 13px "JetBrains Mono", monospace; color: var(--acc); background: var(--soft); border-radius: 99px; padding: 6px 10px; transition: background .3s, color .3s; }
.lg-q .lg-t { flex: 1; min-width: 0; }
.lg-q i { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-style: normal; font-size: 22px; transition: transform .4s var(--ease), background .3s, color .3s; }
.lg-q:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(10,27,61,.5); }
.lg-q[aria-expanded="true"] { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.lg-q[aria-expanded="true"] .lg-n { background: rgba(255,255,255,.12); color: var(--peche); }
.lg-q[aria-expanded="true"] i { transform: rotate(45deg); background: var(--acc); color: #fff; }
.lg-item.ping .lg-q { animation: lgPing .9s var(--ease); }
@keyframes lgPing { 40% { box-shadow: 0 0 0 6px rgba(139,92,246,.25); } }

.lg-a { max-height: 0; overflow: hidden; visibility: hidden; padding: 0 24px; transition: max-height .5s var(--ease), padding .4s, visibility 0s linear .5s; }
.lg-a.open { visibility: visible; padding: 14px 24px 18px; transition: max-height .5s var(--ease), padding .4s, visibility 0s; }
.lg-a.instant { transition: none !important; }
.lg-in { font: 500 17px/1.6 "DM Sans", Manrope, sans-serif; color: var(--txt2); }
.lg-in p { margin: 0 0 12px; }
.lg-in p:last-child { margin-bottom: 0; }
.lg-in ul { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lg-in li { position: relative; padding-left: 26px; }
.lg-in li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.lg-in a { color: var(--saphir); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lg-in b { color: var(--nuit); font-weight: 700; background: linear-gradient(90deg, var(--acc), var(--acc2)) no-repeat 0 100% / 0 3px; transition: background-size .6s var(--ease) .2s; }
.lg-a.open .lg-in b { background-size: 100% 3px; }
.lg-form { margin-top: 6px; padding: 18px 20px; border-radius: 18px; border: 2px dashed rgba(139,92,246,.35); background: var(--soft); }

/* Pastilles de fin : autres pages légales + nous écrire */
.lg .lg-end { padding-top: 70px; }
.lg-end-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 640px) {
  .lg .lg-hero { padding-top: 120px !important; }
  .lg-pill { font-size: 14px; padding: 7px 14px 7px 7px; }
  .lg-pill i { width: 26px; height: 26px; }
  .lg .lg-body { padding-top: 56px; }
  .lg-q { gap: 12px; padding: 15px 14px 15px 16px; font-size: 16px; border-radius: 18px; }
  .lg-q .lg-n { display: none; }
  .lg-q i { width: 34px; height: 34px; font-size: 20px; }
  .lg-a { padding: 0 16px; }
  .lg-a.open { padding: 12px 16px 16px; }
  .lg-in { font-size: 16px; }
  .lg-end-row > a { width: 100%; justify-content: center; }
}
