/* Carbon Control — site vitrine. Feuille de style autonome conforme à la
   charte graphique (docs/charte-graphique-carbon-control.html) :
   palette officielle, Montserrat (texte) + Vonique 92 (accents signés). */

/* ====================== Polices (auto-hébergées) ====================== */
/* Montserrat est une police variable : un seul fichier couvre 400→800. */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Vonique 92 — réservée aux usages signés (titres clés). */
@font-face {
  font-family: 'Vonique 92';
  src: url('/fonts/vonique-92-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vonique 92';
  src: url('/fonts/vonique-92-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ====================== Tokens charte ====================== */
:root {
  --vert: #99c144;
  --vert-clair: #bad273;
  --turquoise: #74c5c7;
  --gris: #5b5a5d;
  --gris-vert: #545852;
  --anthracite: #1a171b;
  --paper: #fbfbf9;
  --bg: #ececea;
  --line: #e8e8e4;
  --ink: #2c2c2e;
  --muted: #9a9a96;

  --maxw: 1120px;
  --radius: 10px;
  --font: 'Montserrat', system-ui, -apple-system, Arial, Helvetica, sans-serif;
  --font-display: 'Vonique 92', 'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent { font-family: var(--font-display); font-weight: 400; color: var(--vert); letter-spacing: 0.01em; }

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vert);
}

/* ====================== Header ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.site-header__brand { display: inline-flex; align-items: center; }
.site-header__logo { height: 40px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.site-nav__link {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav__link:hover { color: var(--anthracite); }

.site-nav__cta {
  color: var(--anthracite);
  background: var(--vert);
  text-decoration: none;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
.site-nav__cta:hover { background: var(--vert-clair); }

/* ====================== Boutons ====================== */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--vert); color: var(--anthracite); }
.btn--primary:hover { background: var(--vert-clair); }
.btn--ghost { background: transparent; color: var(--paper); border: 1px solid rgba(251, 251, 249, 0.35); }
.btn--ghost:hover { border-color: var(--vert); color: var(--vert); }

/* ====================== Hero (couverture anthracite) ====================== */
.hero {
  background: var(--anthracite);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
/* Halo vert discret en fond, rappelle le monogramme. */
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(153, 193, 68, 0.18), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 820px;
  /* padding-block uniquement : le padding inline (gauche/droite) vient de
     .container — un `padding` raccourci écraserait ces marges latérales. */
  padding-block: 6rem 5.5rem;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 1rem 0 1.25rem;
  color: #fff;
}
.hero__lead {
  font-size: 1.18rem;
  font-weight: 500;
  color: #b9b9bb;
  max-width: 60ch;
  margin-bottom: 1.75rem;
}
.hero__lead strong { color: #fff; font-weight: 700; }

.hero__pillars {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  font-weight: 700;
  color: #fff;
}
.hero__pillars li { position: relative; padding-left: 1.4rem; }
.hero__pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--vert);
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ====================== Sections ====================== */
.section { padding: 5rem 0; }
.section--paper { background: var(--paper); }

.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.75rem 0 0.75rem;
  color: var(--anthracite);
}
.section-intro { color: var(--gris); font-size: 1.05rem; font-weight: 500; }

/* Comparatif théorique vs réel */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.split__card {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
}
.split__card--muted { background: #fff; }
.split__card--accent { background: var(--anthracite); border-color: transparent; }
.split__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--anthracite); }
.split__card--accent .split__title { color: #fff; }
.split__card p { color: var(--gris); font-weight: 500; }
.split__card--accent p { color: #c9c9cb; }

/* Connecteurs télématiques */
.connectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.connectors__group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.connectors__status {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.connectors__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.connectors__status--live { color: var(--vert); }
.connectors__status--live::before { background: var(--vert); }
.connectors__status--wip { color: var(--turquoise); }
.connectors__status--wip::before { background: var(--turquoise); }
.connectors__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.connectors__list li {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--anthracite);
}

/* Cartes fonctionnalités */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 23, 27, 0.08);
}
.feature-card__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(153, 193, 68, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card__mark span { width: 18px; height: 18px; border-radius: 50%; background: var(--vert); display: block; }
.feature-card__title { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--anthracite); }
.feature-card p { color: var(--gris); font-weight: 500; }

/* Exemple chiffré illustratif (par OT) */
.example {
  margin: 2.5rem 0 0;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.example__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.example__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
}
.example__metrics li { display: flex; flex-direction: column; gap: 0.25rem; border-left: 3px solid var(--vert); padding-left: 0.9rem; }
.example__value { font-weight: 800; font-size: 1.25rem; color: var(--anthracite); }
.example__key { font-size: 0.85rem; color: var(--gris); font-weight: 600; }

/* Bande norme ISO */
.norme {
  background: linear-gradient(120deg, rgba(116, 197, 199, 0.12), rgba(153, 193, 68, 0.12));
}
.norme__inner { max-width: 70ch; }
.norme p { color: var(--gris-vert); font-size: 1.08rem; font-weight: 500; }
.norme__points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.norme__points li { position: relative; padding-left: 1.6rem; color: var(--gris-vert); font-weight: 600; }
.norme__points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); }

/* Étapes de mise en œuvre */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.steps__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(153, 193, 68, 0.16);
  color: var(--anthracite);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.steps__item h3 { font-size: 1.05rem; font-weight: 700; color: var(--anthracite); margin-bottom: 0.4rem; }
.steps__item p { color: var(--gris); font-weight: 500; font-size: 0.95rem; }

/* Modèle économique */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.duo__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.duo__title { font-size: 1.3rem; font-weight: 800; color: var(--anthracite); margin-bottom: 0.75rem; }
.duo__card p { color: var(--gris); font-weight: 500; }

/* Feuille de route */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.roadmap__item { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--vert); border-radius: var(--radius); padding: 1.75rem; }
.roadmap__when {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vert);
  margin-bottom: 0.75rem;
}
.roadmap__item h3 { font-size: 1.1rem; font-weight: 700; color: var(--anthracite); margin-bottom: 0.5rem; }
.roadmap__item p { color: var(--gris); font-weight: 500; font-size: 0.95rem; }

/* Bandeau d'appel à l'action final */
.cta {
  background: var(--anthracite);
  color: var(--paper);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(153, 193, 68, 0.16), transparent 62%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta__title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: 0.75rem; }
.cta__lead { color: #b9b9bb; font-size: 1.05rem; font-weight: 500; margin-bottom: 1.75rem; }

/* ====================== Footer ====================== */
.site-footer { background: var(--anthracite); color: #b9b9bb; padding: 3rem 0; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-footer__logo { height: 34px; width: auto; display: block; }
.site-footer__copy { font-size: 0.85rem; color: #85858a; margin: 0; }
.site-footer__nav { display: flex; gap: 1.5rem; }
.site-footer__nav a { color: #b9b9bb; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.site-footer__nav a:hover { color: var(--vert); }

/* ====================== Responsive ====================== */
@media (max-width: 720px) {
  .site-nav { gap: 1rem; }
  .site-nav__link { display: none; }
  .hero__inner { padding-block: 4rem 3.5rem; }
  .section { padding: 3.5rem 0; }
  .cta { padding: 3.5rem 0; }
}
