/* ============================================================
   HUB STRATÉGIQUE SIR × SYABE TECHNOLOGIES
   styles.css — design system, mise en page, sections
   Direction artistique : éditorial contemporain et sobre.
   ============================================================ */

:root {
  /* Palette issue de la charte officielle SIR (site sir.ci + logo officiel) */
  --sir-green: #009a54;
  --sir-green-logo: #04a64b;
  --sir-orange: #f0912e;

  --bg: #fbfbfa;
  --bg-alt: #f4f4f4;
  --surface: #ffffff;
  --ink: #212121;
  --ink-soft: #4a4a4a;
  --ink-faint: #69727d;
  --petrol: #00703c;
  --petrol-deep: #06351f;
  --copper: #b05f0e;
  --line: #ebebeb;
  --line-strong: #d0d5d2;

  --fact: #00703c;
  --fact-bg: #e6f2ea;
  --comm: #8a5a12;
  --comm-bg: #f7efdf;
  --hyp: #45545f;
  --hyp-bg: #eceff1;

  /* Typographie : Poppins pour les titres, Ubuntu pour les textes */
  --font-display: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Ubuntu", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1160px;
  --header-height: 66px;
  --shadow-soft: 0 1px 2px rgba(28, 39, 51, 0.06);
  --shadow-lift: 0 10px 30px rgba(28, 39, 51, 0.12);
  --transition: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

/* L'attribut hidden doit primer sur les display des composants (modale, assistant). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--petrol); }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  z-index: 200;
  background: var(--petrol);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-3); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
.brand-logo-syabe { height: 30px; }
.brand-divider {
  color: var(--line-strong);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  align-self: center;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.65rem, 1.3vw, 1.35rem);
  list-style: none;
}
.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--petrol);
  border-bottom-color: var(--copper);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-3);
  flex-direction: column;
  gap: 6px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

/* Le wrapper du hero utilise .container sans surcharge :
   même largeur et même padding que la bande de repères. */

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
}

.hero-subtitle {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}

.hero-lead {
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
}
.hero-meta span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.hero-rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}

/* ---------- Repères clés ---------- */
.figures {
  background: var(--petrol-deep);
  color: #eef2f4;
  padding: var(--space-6) 0;
}
.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  list-style: none;
}
.figures-grid li {
  border-left: 2px solid var(--sir-orange);
  padding-left: var(--space-4);
}
.figure-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
}
.figure-label {
  font-size: 0.8rem;
  color: rgba(238, 242, 244, 0.78);
  margin-top: var(--space-1);
}
.figures-grid a {
  color: rgba(238, 242, 244, 0.6);
  font-size: 0.72rem;
  text-decoration: none;
}
.figures-grid a:hover { color: #fff; text-decoration: underline; }

/* ---------- Avertissements ---------- */
.notice {
  border-left: 3px solid var(--petrol);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-5);
  margin: var(--space-6) 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.notice strong { color: var(--ink); }
.notice-warning { border-left-color: var(--copper); }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-alt); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt + .section-alt { border-top: none; }

.section-header { max-width: 46rem; margin-bottom: var(--space-7); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-note {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-top: var(--space-5);
  max-width: 70ch;
}

.sub-title {
  font-size: 1.12rem;
  margin-bottom: var(--space-4);
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--petrol-deep);
  color: rgba(238, 242, 244, 0.82);
  padding: var(--space-7) 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-logos img {
  background: #fff;
  border-radius: var(--radius);
  padding: 6px 10px;
  height: 44px;
  width: auto;
}
.footer-logos img[alt^="Syabe"] { height: 32px; }
.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}
.footer-note {
  font-size: 0.85rem;
  max-width: 58ch;
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav a {
  color: rgba(238, 242, 244, 0.72);
  text-decoration: none;
  font-size: 0.86rem;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Grilles de contenu (disposition) ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}
.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.axes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: var(--space-5);
}
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}
.coherence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.next-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
}
.next-list, .question-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.next-list li, .question-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: 0.95rem;
}
.next-list { counter-reset: next; }
.next-list li {
  position: relative;
  padding-left: calc(var(--space-5) + 2rem);
  counter-increment: next;
}
.next-list li::before {
  content: counter(next, decimal-leading-zero);
  position: absolute;
  left: var(--space-5);
  top: var(--space-4);
  font-family: var(--font-display);
  color: var(--copper);
  font-size: 0.95rem;
}
.question-list li {
  border-left: 3px solid var(--hyp);
  font-style: italic;
  color: var(--ink-soft);
}
.roadmap {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}
.roadmap li {
  position: relative;
  padding-top: var(--space-5);
  border-top: 2px solid var(--line-strong);
  counter-increment: step;
}
.roadmap li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-2);
}
.roadmap h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.roadmap p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---------- Responsive : menu mobile (≤ 1060 px) ---------- */
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: var(--space-2) 0 var(--space-3);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a {
    display: block;
    padding: 0.9rem var(--space-6);
    font-size: 0.98rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a.is-active {
    background: var(--bg-alt);
    border-left-color: var(--copper);
  }
}

@media (max-width: 940px) {
  .next-grid { grid-template-columns: 1fr; }
  .figures-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --space-8: 3.25rem; }
  .container { padding: 0 var(--space-4); }
  .header-inner { padding: 0 var(--space-4); }
  .brand-logo { height: 38px; }
  .brand-logo-syabe { height: 24px; }
  .hero h1 { font-size: 2.05rem; }
  .hero-subtitle { font-size: 1.08rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-meta { gap: var(--space-4); }
  .figures-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
