/* ==========================================================================
   archilexMP — design tokens
   ========================================================================== */
:root {
  --blue-ink:    #0B2545;   /* header, footer, testi forti su chiaro */
  --blue-deep:   #13315C;   /* superfici scure secondarie */
  --blue-signal: #1D6FB8;   /* CTA, link, accenti interattivi */
  --blue-mist:   #E7EEF6;   /* sfondi di sezione alternati */
  --paper:       #FBFCFD;   /* sfondo base */
  --ink:         #14202E;   /* testo principale */
  --ink-soft:    #4A5A6B;   /* testo secondario */
  --line:        #D3DEE9;   /* rule / bordi sottili */
  --white:       #FFFFFF;

  --font-head: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue-ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

a { color: var(--blue-signal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-signal);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--blue-ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: .01em;
}
.brand:hover { text-decoration: none; }
.brand .mp { color: #8FB8E0; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a {
  color: #C9DAEB;
  font-size: .95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: var(--blue-signal);
}

.lang-switch { display: flex; gap: 4px; font-size: .82rem; }
.lang-switch a {
  color: #9FB6CC;
  padding: 4px 7px;
  border-radius: var(--radius);
}
.lang-switch a[aria-current="true"] {
  color: var(--white);
  background: rgba(255,255,255,.12);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(100deg, #AFCBE6 0%, #AFCBE6 42%, #E7F0FA 64%, #F7FAFD 100%);
  color: var(--ink);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-orbits { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orbits .orb { position: absolute; border-radius: 50%; }

/* grand anneau vide */
.hero-orbits .orb-1 {
  width: 260px; height: 260px; right: 270px; top: 15px;
  border: 1.5px solid rgba(29,111,184,.45);
}
/* anneau vide plus petit — croise le précédent */
.hero-orbits .orb-2 {
  width: 220px; height: 220px; right: 150px; top: 95px;
  border: 1.5px solid rgba(11,37,69,.32);
}
/* petit point d'accent : aligné sur le bord gauche de la sphère du bas et sur l'axe horizontal de l'anneau de droite */
.hero-orbits .orb-3 {
  width: 14px; height: 14px; right: 423px; top: 198px;
  background: var(--blue-ink);
}
/* grande sphère pleine, fondu doux — en bas de la composition */
.hero-orbits .orb-4 {
  width: 340px; height: 340px; right: 90px; top: 250px;
  background: radial-gradient(circle at 40% 35%, rgba(175,203,230,.9) 0%, rgba(175,203,230,0) 70%);
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--blue-signal);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { color: var(--blue-ink); max-width: 24ch; }
.hero p.lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 54ch; margin-top: 18px; }

.cta-row { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-signal); color: var(--white); }
.btn-primary:hover { background: #1861a4; }
.btn-ghost { border-color: rgba(11,37,69,.35); color: var(--blue-ink); }
.btn-ghost:hover { background: rgba(11,37,69,.06); }

/* ==========================================================================
   Mission strip
   ========================================================================== */
.mission {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.mission .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.mission-label { color: var(--blue-signal); font-weight: 600; font-size: .95rem; }
.mission p { font-size: 1.05rem; max-width: 60ch; }

/* ==========================================================================
   Solutions — legal-article style listing
   ========================================================================== */
.solutions { padding: 88px 0; background: var(--blue-mist); }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--blue-signal); font-weight: 600; }

.article-list { border-top: 1px solid var(--line); }

.article {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.article-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--blue-signal);
  border-left: 2px solid var(--blue-signal);
  padding-left: 14px;
  height: fit-content;
}
.article h3 { margin-bottom: 8px; }
.article p { margin-bottom: 10px; }
.article a.more { font-size: .9rem; font-weight: 600; }

/* ==========================================================================
   Partners
   ========================================================================== */
.partners { padding: 72px 0; }
.partners .wrap { text-align: left; }
.partners h2 { margin-bottom: 8px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.partner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  background: var(--white);
}
.partner-card .name { font-weight: 600; color: var(--blue-ink); display:block; margin-bottom: 4px; }
.partner-card .role { font-size: .85rem; color: var(--ink-soft); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--blue-ink); color: var(--white); padding: 56px 0; }
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.stat .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--white); }
.stat .label { font-size: .88rem; color: #9FB6CC; margin-top: 4px; }

/* ==========================================================================
   Page hero (inner pages: solutions, a-propos, contact)
   ========================================================================== */
.page-hero {
  background: linear-gradient(100deg, #AFCBE6 0%, #AFCBE6 42%, #E7F0FA 64%, #F7FAFD 100%);
  color: var(--ink);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--blue-signal); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.page-hero h1 { color: var(--blue-ink); max-width: 28ch; }
.page-hero p.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; margin-top: 16px; }

/* variantes de la composition de sphères pour les page-hero (solutions / à propos / contact) */
.hero-orbits.v2 .orb-1 { width: 220px; height: 220px; right: 280px; top: -30px; }
.hero-orbits.v2 .orb-2 { width: 180px; height: 180px; right: 180px; top: 40px; }
.hero-orbits.v2 .orb-3 { right: 373px; top: 123px; }
.hero-orbits.v2 .orb-4 { width: 260px; height: 260px; right: 120px; top: 120px; }

.hero-orbits.v3 .orb-1 { width: 240px; height: 240px; right: 200px; top: 20px; }
.hero-orbits.v3 .orb-2 { width: 190px; height: 190px; right: 90px; top: 110px; }
.hero-orbits.v3 .orb-3 { right: 333px; top: 198px; }
.hero-orbits.v3 .orb-4 { width: 300px; height: 300px; right: 40px; top: 180px; }

.hero-orbits.v4 .orb-1 { width: 250px; height: 250px; right: 250px; top: 0; }
.hero-orbits.v4 .orb-2 { width: 170px; height: 170px; right: 150px; top: 110px; }
.hero-orbits.v4 .orb-3 { right: 353px; top: 188px; }
.hero-orbits.v4 .orb-4 { width: 280px; height: 280px; right: 80px; top: 160px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-main { padding: 80px 0 96px; }
.contact-main .wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.contact-info,
.contact-form-block {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(11,37,69,.08);
  background: var(--white);
  padding: 36px 40px;
}
.contact-info .eyebrow,
.contact-form-block .eyebrow {
  color: var(--blue-signal);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 20px;
}
.info-item { margin-bottom: 22px; }
.info-item .label {
  display: block;
  font-size: .78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.info-item .value { font-size: 1.05rem; color: var(--blue-ink); font-weight: 600; }
.info-item .value a { color: var(--blue-ink); }
.contact-form-block .form-intro { margin-bottom: 26px; }

.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--blue-ink); }
.form-row input, .form-row textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--blue-signal);
  outline-offset: 1px;
}
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; max-width: 50ch; }

/* ==========================================================================
   Solution detail block (SIL feature list)
   ========================================================================== */
.solution-block { padding: 88px 0; border-bottom: 1px solid var(--line); }
.solution-block .eyebrow { color: var(--blue-signal); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.solution-block h2 { max-width: 40ch; }
.solution-block .lead { font-size: 1.05rem; max-width: 68ch; margin-top: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  border-left: 2px solid var(--blue-signal);
  padding: 4px 0 4px 20px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: .92rem; color: var(--ink-soft); }

/* ==========================================================================
   Cantonal deployments
   ========================================================================== */
.deployments { padding: 88px 0; background: var(--blue-mist); }
.deployment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.deployment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--white);
}
.deployment-card .article-num { margin-bottom: 14px; }
.deployment-card h3 { margin-bottom: 10px; }
.deployment-card p { margin-bottom: 18px; }

.link-row { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.contact-cta { padding: 88px 0; text-align: left; }
.contact-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.contact-cta h2 { max-width: 20ch; margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue-ink); color: #9FB6CC; padding: 56px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: .9rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #9FB6CC; font-size: .92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .mission .wrap { grid-template-columns: 1fr; gap: 16px; }
  .contact-main .wrap { grid-template-columns: 1fr; gap: 32px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .deployment-grid { grid-template-columns: 1fr; }
  .feature-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-orbits { opacity: .55; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue-ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: calc(100vh - 76px); overflow-y: auto; }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 4px;
  }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .lang-switch { padding: 16px 32px 24px; gap: 10px; font-size: .95rem; }
  .lang-switch a { padding: 8px 14px; }

  .article { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-cta .wrap { flex-direction: column; align-items: flex-start; }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-orbits { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
