: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;
  --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;
}

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

body.site-page{
  background-color: #111111;
  color: #111111;
  padding-top: 4.5rem;
}

body.site-page main{
  background-color: #ffffff;
  min-height: 60vh;
}

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;
}

.link-inherit{
  color: inherit;
}

.link-inherit:hover{
  color: inherit;
}

/* =========================================================
   Navigation
   ========================================================= */

.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);
}

.navbar-brand .brand-sub{
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-top: 0.25rem;
  line-height: 1.2;
  display: block;
}

/* =========================================================
   Typographie
   ========================================================= */

h1{
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

h2{
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}

/* =========================================================
   Structure commune
   ========================================================= */

.section-light{
  background-color: #ffffff;
}

.section-soft{
  background-color: #f5f5f5;
}

.section-dark-divider{
  border-top: 1px solid #e5e7eb;
}

.section-divider{
  border-top: 1px solid #e5e7eb;
}

.text-soft{
  color: #4b5563;
}

.text-strong{
  color: #111111;
}

.card-clean{
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.35rem 1.2rem rgba(0, 0, 0, 0.04);
}

.hero-kicker{
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
}

.hero-lead{
  color: rgba(255,255,255,0.82);
}

.hero-text{
  color: rgba(255,255,255,0.82);
}

.page-hero{
  background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
  color: #f5f5f5;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-hero .breadcrumb{
  background-color: transparent;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before{
  color: rgba(255,255,255,0.55);
}

.page-hero .breadcrumb-item a{
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}

.page-hero .breadcrumb-item a:hover{
  text-decoration: underline;
}

/* =========================================================
   Composants réutilisés
   ========================================================= */

.mini-list{
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.mini-list li{
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.8rem;
  color: #57534e;
}

.mini-list li:last-child{
  margin-bottom: 0;
}

.mini-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #44403c;
}

.toc{
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.25rem;
  position: sticky;
  top: 6rem;
  box-shadow: 0 0.35rem 1.2rem rgba(0, 0, 0, 0.04);
}

.toc h2{
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.toc a{
  color: #111111;
  text-decoration: none;
}

.toc a:hover{
  text-decoration: underline;
}

.legal-content h2,
.privacy-content h2{
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.legal-content h2:first-of-type,
.privacy-content h2:first-of-type{
  margin-top: 0;
}

.legal-content p,
.legal-content li,
.privacy-content p,
.privacy-content li{
  color: #4b5563;
  line-height: 1.7;
}

.legal-list{
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.legal-list li,
.legal-list div{
  margin-bottom: 0.55rem;
  color: #4b5563;
}

.legal-list li:last-child{
  margin-bottom: 0;
}

.icon-soft{
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f0ee;
  color: #44403c;
  border: 1px solid #d6d3d1;
  flex: 0 0 auto;
}

.split-2cols .col-lg-6{
  position: relative;
}

.cloud-pill{
  display: inline-block;
  padding: 0.55rem 0.82rem;
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  background: #fafaf9;
  color: #1c1917;
  font-size: 0.92rem;
  font-weight: 500;
}

/* =========================================================
   Matrice cloud
   ========================================================= */

.matrix-card{
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0.35rem 1.2rem rgba(0, 0, 0, 0.04);
}

.matrix-table{
  width: 100%;
  margin-bottom: 0;
  table-layout: fixed;
}

.matrix-table thead th{
  background: #18181b;
  color: #fafafa;
  border-color: #2f2f35;
  font-size: 0.88rem;
  vertical-align: middle;
  text-align: center;
}

.matrix-table thead th:first-child{
  text-align: left;
  padding-left: 1.25rem;
}

.matrix-table tbody tr:nth-child(even){
  background-color: #fcfcfb;
}

.matrix-table tbody tr:hover{
  background-color: #f7f6f4;
}

.matrix-table tbody th{
  padding-left: 1.25rem;
  border-color: #ece7e2;
  background: #ffffff;
  text-align: left;
}

.matrix-table tbody td{
  text-align: center;
  border-color: #ece7e2;
}

.matrix-label{
  display: block;
  font-weight: 600;
  color: #111111;
}

.matrix-sub{
  display: block;
  font-size: 0.8rem;
  color: #78716c;
}

.matrix-block{
  display: block;
  height: 0.95rem;
  max-width: 70%;
  margin: 0.2rem auto;
  border-radius: 999px;
  border: 1px solid #44403c;
}

.matrix-block-client{
  background: #1c1917;
  border-color: #1c1917;
}

.matrix-block-provider{
  background: #d6d3d1;
  border-color: #bfb8b1;
}

.matrix-block-shared{
  background: linear-gradient(135deg, #1c1917 0, #1c1917 49%, #d6d3d1 51%, #d6d3d1 100%);
  border-color: #8b857f;
}

.legend-dot{
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-right: 0.5rem;
  vertical-align: -1px;
  border: 1px solid #6b7280;
}

.legend-client{
  background: #1c1917;
  border-color: #1c1917;
}

.legend-provider{
  background: #d6d3d1;
  border-color: #bfb8b1;
}

.legend-shared{
  background: linear-gradient(135deg, #1c1917 0, #1c1917 49%, #d6d3d1 51%, #d6d3d1 100%);
  border-color: #8b857f;
}

/* =========================================================
   Home Balgoo
   ========================================================= */

body.home #hero{
  background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
  color: #f5f5f5;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.home #hero .hero-kicker{
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
}

body.home #hero .hero-lead,
body.home #hero .hero-text{
  color: rgba(255,255,255,0.82);
}

body.home #hero .hero-panel{
  border-radius: 1rem;
  background: #f3f4f6;
  color: #111111;
  border: 1px solid #d1d5db;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

body.home .card-clean{
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.home .card-clean:hover{
  transform: translateY(-2px);
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.07);
}

body.home .badge-soft{
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  color: #111111;
  font-size: 0.92rem;
  font-weight: 500;
}

body.home .cta-box{
  background: #111111;
  color: #f5f5f5;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

body.home .cta-box p{
  color: rgba(255,255,255,0.82);
}

/* =========================================================
   Illus container (layout parent)
   ========================================================= */

.illus-showcase{
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.illus-intro{
  margin-bottom: 1.5rem;
}

.illus-stack{
  display: grid;
  gap: 1.5rem;
}

/* =========================================================
   Contact
   ========================================================= */

body.contact-page .section-dark{
  background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
  color: #f5f5f5;
}

body.contact-page .hero-kicker{
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
}

body.contact-page .hero-lead{
  color: rgba(255,255,255,0.84);
}

body.contact-page #contact-hero .breadcrumb{
  background-color: transparent;
}

body.contact-page #contact-hero .breadcrumb-item + .breadcrumb-item::before{
  color: rgba(255,255,255,0.55);
}

body.contact-page #contact-hero .breadcrumb-item a{
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}

body.contact-page #contact-hero .breadcrumb-item a:hover{
  text-decoration: underline;
}

body.contact-page .form-label{
  font-weight: 600;
  margin-bottom: 0.45rem;
}

body.contact-page .form-control,
body.contact-page .input-group-text{
  border-radius: 0.85rem;
  border-color: #d1d5db;
}

body.contact-page .form-control{
  padding: 0.85rem 0.95rem;
}

body.contact-page textarea.form-control{
  min-height: 10rem;
  resize: vertical;
}

body.contact-page .input-group-text{
  background: #f9fafb;
  color: #111111;
}

body.contact-page .contact-note{
  font-size: 0.95rem;
  color: #4b5563;
}

.hp-wrap{
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   Footer
   ========================================================= */

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;
}

/* =========================================================
   Back to top
   ========================================================= */

#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);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 992px){
  .split-2cols .col-lg-6:first-child{
    padding-right: 2.25rem;
  }

  .split-2cols .col-lg-6:last-child{
    padding-left: 2.25rem;
  }

  .split-2cols .col-lg-6:first-child::after{
    content: "";
    position: absolute;
    top: 0.35rem;
    right: 0;
    width: 1px;
    height: calc(100% - 0.7rem);
    background: #e7e5e4;
  }

  .illus-stack{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 991.98px){
  .toc{
    position: static;
  }
}

@media (max-width: 575.98px){
  .matrix-table thead th{
    font-size: 0.76rem;
  }

  .matrix-table tbody th{
    padding-left: 1rem;
  }
}
