:root{
  --black: #0b0c0f;
  --white: #ffffff;
  --nearwhite: #f5f5f7;
  --text: #1d1d1f;
  --muted: #515154;
  --border: rgba(0,0,0,.10);
  --hero-border: rgba(255,255,255,.10);
  --link: #06c;
}
body{
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color: inherit; text-decoration: none; }
a.link,
a.link-inherit{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a.link:hover,
a.link-inherit:hover{
  text-decoration-thickness: 2px;
}
.nav-apple{
  background: rgba(11,12,15,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hero-border);
}
.navbar-dark .navbar-nav .nav-link{
  color: rgba(245,245,247,.84);
  text-decoration: none;
}
.navbar-dark .navbar-nav .nav-link:hover{ color: rgba(245,245,247,1); }

.btn-pill{ border-radius: 999px; padding: 8px 14px; font-weight: 650; }
.btn-ghost-hero{
  background: transparent;
  border: 1px solid rgba(255,255,255,.20);
  color: #f5f5f7;
}
.btn-ghost-hero:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.30); color:#fff; }
.btn-solid-hero{
  background: rgba(245,245,247,.92);
  border: 1px solid rgba(245,245,247,.92);
  color: #0b0c0f;
}
.btn-solid-hero:hover{ background:#fff; border-color:#fff; color:#000; }
.btn-dark-pill{
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-dark-pill:hover{ background:#000; border-color:#000; color:#fff; }
.section{ padding: 56px 0; }
.hero{
  background: var(--black);
  color: #f5f5f7;
  border-bottom: 1px solid var(--hero-border);
  padding: clamp(46px, 6vw, 92px) 0;
}
.price{
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
h1{
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.subhead{
  font-size: 18px;
  max-width: 72ch;
  margin: 0 auto;
  color: rgba(245,245,247,.78);
}
.kpi{
  display:flex; gap:10px; flex-wrap:wrap;
  justify-content:center;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(245,245,247,.82);
}
.kpi span{
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}
.eyebrow{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
h2{
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.section-subtitle{
  color: var(--muted);
  max-width: 82ch;
  margin-bottom: 0;
}
.feature{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  height: 100%;
}
.feature h3{
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature p{
  color: var(--muted);
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}
.band{
  background: var(--nearwhite);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.bigcard{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 22px;
  height: 100%;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.06);
}
.bigcard h3{
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bigcard p{
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 15px;
}
.bigcard .meta{
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.faq-shell{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: clamp(16px, 2.5vw, 22px);
}
.accordion-item{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}
.accordion-button{
  background-color: #ffffff;
  color: #212529;
  box-shadow: none;
  border: 0;
  font-weight: 600;
  padding: 0.95rem 1.25rem;
}
.accordion-button:hover{
  background-color: #f9fafb;
  color: #212529;
}
.accordion-button:focus{
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
  box-shadow: none;
}
.accordion-button:not(.collapsed){
  color: #000000;
  background-color: #ffffff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #000000;
}
.accordion-collapse{
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.accordion-collapse.show{
  border-left: 3px solid #000000;
}
.accordion-body{
  background-color: #f9fafb;
  color: #212529;
  padding: 0.9rem 1.25rem 1.1rem 1.25rem;
  line-height: 1.75;
  font-size: 15px;
}
.card-pricing{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  padding:22px;
  height:100%;
  box-shadow:0 .75rem 1.8rem rgba(15,23,42,.06);
  display:flex;
  flex-direction:column;
  position:relative;
}
.cta-wrap{ margin-top:auto; }
.card-annual{
  background: var(--nearwhite);
  border-color: rgba(0,0,0,.22);
}
.badge-top{
  position:absolute;
  top:14px; right:14px;
  background:#0b0c0f;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:650;
}
.price-plan{
  font-size:44px;
  font-weight:800;
  letter-spacing:-.02em;
  margin:0;
}
.price-plan small{ font-size:14px; color:var(--muted); }
.divider{
  height:1px;
  background:rgba(0,0,0,.08);
  margin:14px 0;
}
.list-clean{
  padding-left:1rem;
  margin:12px 0 0 0;
  color:var(--muted);
}
.list-clean li{ margin:6px 0; }
footer{
  background: var(--nearwhite);
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  font-size: 14px;
  color: var(--text);
}
.footer-brand{
  font-weight: 750;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
}
.footer-desc{
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-badges{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-badge{
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a{
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.footer-links a:hover{
  color: #000;
  text-decoration: underline;
}
.footer-bottom{
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
#backToTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, background-color .25s ease;
}
#backToTop:hover{
  background: #ffffff;
  transform: translateY(4px);
}
#backToTop:focus{
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 3px;
  box-shadow: none;
}
#backToTop.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.form-wrap{
  max-width: 920px;
}
.cardx{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: clamp(16px, 2.5vw, 22px);
  box-shadow: 0 .75rem 1.8rem rgba(15,23,42,.06);
}
.hp-wrap{
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* =========================================================
   Mentions légales / pages légales
   Reprise du rendu "mentions-legales2" — SCOPÉ
   ========================================================= */

body.legal{
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* HERO identique à ta v2 (si jamais d'autres pages modifient) */
body.legal .hero{
  background: var(--black);
  color: #f5f5f7;
  border-bottom: 1px solid var(--hero-border);
  padding: clamp(46px, 6vw, 92px) 0;
}
body.legal h1{
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
body.legal .subhead{
  font-size: 18px;
  max-width: 72ch;
  margin: 0 auto;
  color: rgba(245,245,247,.78);
}

/* bande grise */
body.legal .band{
  background: var(--nearwhite);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* TOC */
body.legal .toc{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.06);
}
body.legal .toc h2{
  font-size: 14px;
  font-weight: 750;
  margin: 0 0 10px 0;
  color: var(--text);
}
body.legal .toc a{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
body.legal .toc a:hover{
  text-decoration-thickness: 2px;
}

/* CARD */
body.legal .bigcard{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.06);
}

/* ✅ LE POINT CRITIQUE : on écrase tes styles globaux .bigcard p */
body.legal .bigcard p{
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: .9rem;
}
body.legal .bigcard p strong{ color: var(--text); }

/* Titres (version plus compacte que ton h2 global) */
body.legal .bigcard h2{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.2rem 0 .5rem;
  color: var(--text);
}

/* Listes */
body.legal .legal-list{
  padding-left: 1.1rem;
  margin-bottom: 0.9rem;
}
body.legal .legal-list li{
  margin-bottom: .45rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}
body.legal .legal-list li strong{ color: var(--text); }

/* =========================================================
   Confidentialité — rendu "confidentialite.html" (scope body.privacy)
   ========================================================= */

body.privacy{
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.privacy .band{
  background: var(--nearwhite);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* TOC */
body.privacy .toc{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.06);
}
body.privacy .toc h2{
  font-size: 14px;
  font-weight: 750;
  margin: 0 0 10px 0;
  color: var(--text);
}
body.privacy .toc a{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
body.privacy .toc a:hover{
  text-decoration-thickness: 2px;
}

/* CARD */
body.privacy .bigcard{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.06);
}

/* ✅ override critique du global .bigcard p { margin-bottom:0 } */
body.privacy .bigcard p{
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: .9rem;
}
body.privacy .bigcard p strong{ color: var(--text); }

/* Titres : plus petit que ton h2 global */
body.privacy .bigcard h2{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.2rem 0 .5rem;
  color: var(--text);
}

/* Listes */
body.privacy .legal-list{
  padding-left: 1.1rem;
  margin-bottom: 0;
}
body.privacy .legal-list li{
  margin-bottom: .45rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}
body.privacy .legal-list li strong{ color: var(--text); }

/* Table (lisibilité) */
body.privacy .table{
  --bs-table-bg: transparent;
}
body.privacy .table thead th{
  font-weight: 650;
}

/* =========================================================
   Page Modèles LaTeX (scope body.templates)
   ========================================================= */

body.templates code{
  color: #212529;
  background-color: #e9ecef;
  padding: 0.05rem 0.25rem;
  border-radius: 0.2rem;
  font-size: 0.9em;
}

body.templates .tpl-card{
  display:flex;
  flex-direction:column;
}

body.templates .tpl-head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin-bottom: 8px;
}

body.templates .tpl-head i{
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

body.templates .tpl-card h3{
  font-size: 16px;
  font-weight: 750;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

body.templates .tpl-kicker{
  margin: 3px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

body.templates .tpl-desc{
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

body.templates .tpl-list{
  padding-left: 1.05rem;
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

body.templates .tpl-actions{
  margin-top: auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

body.templates .tpl-tags{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
}

body.templates .tpl-tags .badge{
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.10);
  color: var(--muted);
  font-weight: 650;
}

/* =========================================================
   Page Git (scopé via body.git)
   ========================================================= */

body.git code{
  color: #212529;
  background-color: #e9ecef;
  padding: 0.05rem 0.25rem;
  border-radius: 0.2rem;
  font-size: 0.95em;
}

body.git .git-codeblock{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 .75rem 1.8rem rgba(15,23,42,.04);
}

body.git .git-codeblock pre{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.55;
  color: #111;
}
body.git .git-codeblock code{
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* =========================================================
   Global typography alignment (site-wide)
   Ensures Inter is actually used everywhere (including Bootstrap components)
   ========================================================= */
:root{
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html, body{
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

/* =========================================================
   Page "Pourquoi" (scope body.why)
   - icônes harmonisées avec templates
   - Share Project (layout screenshot) responsive, sans scale()
   - codeblock (git snippet) aligné
   ========================================================= */

body.why .why-gap{ gap: 12px; }

body.why .why-icon{
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

/* =========================================================
   Share Project (layout screenshot) — responsive
   ========================================================= */

body.why .blx-demo-shell{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 .75rem 1.8rem rgba(15,23,42,.04);
  overflow: hidden;
}

body.why .blx-share-frame,
body.why .blx-share-stage{
  width: 100%;
  max-width: 100%;
}

body.why .blx-share-modal{
  width: 100%;
  max-width: 980px;     /* look desktop proche screenshot */
  margin: 0 auto;       /* centré */
  background: #fff;
}

body.why .blx-share-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: var(--nearwhite);
}

body.why .blx-share-title{
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 14px;
}

body.why .blx-share-body{
  padding: 14px;
}

body.why .blx-no-resize{ resize: none; }

body.why .blx-helper{
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

body.why .blx-btn-invite{
  background: var(--text);
  color:#fff;
  border: 1px solid var(--text);
  border-radius: 10px;
  min-height: 44px;
  font-weight: 650;
}
body.why .blx-btn-invite:disabled{ opacity: .65; }

body.why .blx-chips{
  min-height: 10px;
  margin-top: 10px;
}

body.why .blx-muted-inline{
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 6px;
}
body.why .blx-muted-inline a{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
body.why .blx-muted-inline a:hover{ text-decoration-thickness: 2px; }

body.why .blx-section-title{
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 6px;
}

body.why .blx-link-row{
  display:flex;
  gap: 8px;
  align-items: stretch;
}
body.why .blx-link-row input{
  font-size: 13px;
  min-width: 0;
  flex: 1 1 auto;
}
body.why .blx-link-row .blx-copy-btn{
  min-width: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

body.why .blx-owner-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
body.why .blx-owner-row i{ margin-right: 6px; }

@media (max-width: 575.98px){
  body.why .blx-link-row{ flex-direction: column; }
}

/* =========================================================
   Codeblock (git snippet) aligné avec tes pages Git/Templates
   ========================================================= */

body.why .codeblock{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 .75rem 1.8rem rgba(15,23,42,.04);
}

body.why .codeblock pre{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.55;
  color: #111;
}

body.why .codeblock code{
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}
