/* =========================================================
   MTECH — Mycélium Tech SASU
   Feuille de style unique partagée
   Thème « Luminous Ecological Vitality — B2B » (design Stitch) :
   corporate, vert forêt profond + navy, accents vitality green,
   Inter + JetBrains Mono, angles nets, bordures plutôt qu'ombres.
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  /* Surfaces (tonal layers clairs) */
  --surface:        #f7f9fb;   /* fond de page */
  --surface-low:    #f2f4f6;   /* sections alternées / champs */
  --surface-cont:   #eceef0;   /* conteneurs */
  --surface-high:   #e6e8ea;   /* nuances / en-têtes de table */
  --surface-highest:#e0e3e5;
  --white:          #ffffff;   /* cartes */

  /* Vert forêt profond (autorité) */
  --primary:        #001813;   /* hero, panneaux sombres, titres */
  --primary-cont:   #0d2e27;   /* conteneur vert profond / boutons clairs */
  --on-primary-cont:#76978d;   /* texte vert-gris sur fond sombre */

  /* Navy (footer / CTA sombre) */
  --tertiary:       #041528;
  --tertiary-cont:  #1a2a3e;
  --on-tertiary-cont:#8191a9;
  --on-tertiary-var:#38485d;

  /* Vitality green (croissance, actions, succès) */
  --secondary:      #006e2f;   /* vert vif — liens, accents sur clair */
  --secondary-fixed:#6bff8f;   /* vert lumineux — CTA sur fond sombre */
  --secondary-dim:  #4ae176;
  --on-secondary-fixed:#002109;

  /* Orange — signal de conversion réservé au Diag Flash / RDV */
  --orange:         #fa7d00;
  --orange-2:       #e17d19;

  /* Statuts */
  --warn:           #f59e0b;
  --error:          #ba1a1a;

  /* Texte */
  --ink:            #191c1e;   /* on-surface */
  --ink-2:          #414846;   /* on-surface-variant */
  --muted:          #717976;   /* outline / texte tertiaire */

  /* Lignes / ombres */
  --border:         #c1c8c4;   /* outline-variant */
  --border-soft:    rgba(113, 121, 118, .18);
  --shadow:         0 4px 6px -1px rgba(13, 46, 39, .10),
                    0 2px 4px -2px rgba(13, 46, 39, .05);
  --shadow-lg:      0 12px 24px -6px rgba(4, 21, 40, .16),
                    0 4px 8px -4px rgba(4, 21, 40, .08);

  --grad-signature: linear-gradient(120deg, #006e2f, #22c55e, #6bff8f);

  /* Angles nets (B2B) */
  --radius-sm:  2px;
  --radius:     4px;
  --radius-lg:  8px;
  --radius-xl:  12px;

  --maxw:       1280px;
  --header-h:   88px;

  --font-title: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body:  "Inter", "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-cont); }
ul { padding-left: 1.2em; }

/* ---------- Accessibilité : focus visible ---------- */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--primary-cont);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.14;
  color: var(--primary);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
  color: var(--ink-2);
  max-width: 62ch;
}
.text-muted { color: var(--muted); }
.gradient-text {
  background: var(--grad-signature);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 40px;
}
.section { padding-block: 80px; }
.section--alt { background-color: var(--surface-low); }
.section__head { max-width: 70ch; margin-bottom: 48px; }
.section__head.center { margin-inline: auto; text-align: center; }

/* Eyebrow : label technique mono (style B2B) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.section__head.center .eyebrow { display: block; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1.1;
  text-align: center;
}
/* Primaire = Diag Flash / conversion : orange (signal de conversion) */
.btn-primary {
  background-color: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(250, 125, 0, .22);
}
.btn-primary:hover {
  background-color: var(--orange-2);
  border-color: var(--orange-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(250, 125, 0, .30);
}
/* Action secondaire : contour */
.btn-ghost {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  background-color: var(--surface-low);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* Contextes sombres : le Diag Flash reste orange (signal de conversion) */
.hero .btn-primary,
.cta-final .btn-primary {
  background-color: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 8px 26px rgba(250, 125, 0, .35);
}
.hero .btn-primary:hover,
.cta-final .btn-primary:hover {
  background-color: var(--orange-2);
  border-color: var(--orange-2);
  color: #fff;
}
.hero .btn-ghost,
.cta-final .btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.hero .btn-ghost:hover,
.cta-final .btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: rgba(247, 249, 251, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background-color: rgba(247, 249, 251, .96);
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 2px;
  position: relative;
}
.nav__links a:hover { color: var(--primary); }
.nav__links a[aria-current="page"] { color: var(--secondary); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--secondary);
}
.nav .btn { padding: 10px 18px; font-size: .92rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero (sombre) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--on-primary-cont);
  padding-block: clamp(64px, 10vw, 116px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(680px 380px at 88% -8%, rgba(107, 255, 143, .14), transparent 60%),
    radial-gradient(560px 380px at -6% 112%, rgba(0, 110, 47, .18), transparent 60%);
  pointer-events: none;
}
.hero__net { display: none; }            /* motif clair masqué sur fond sombre */
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 .gradient-text,
.hero .gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--secondary-fixed);
}
.hero .lead { color: var(--on-primary-cont); margin-bottom: 2rem; max-width: 56ch; }
.hero .eyebrow { color: var(--on-primary-cont); }
.hero--compact { padding-block: clamp(52px, 8vw, 88px); }

/* Hero en deux colonnes (accueil) + carte « indicateur » */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-panel {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 26px;
}
.hero-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.hero-panel__head h3 {
  margin: 0; color: #fff; font-family: var(--font-mono);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
}
.hero-panel__head .dot { color: var(--secondary-fixed); }
.hero-meter {
  height: 8px; width: 100%;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px; overflow: hidden; margin-bottom: 10px;
}
.hero-meter > span { display: block; height: 100%; background: var(--secondary-fixed); border-radius: 999px; }
.hero-panel__row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: .74rem;
  color: var(--on-primary-cont); letter-spacing: .03em;
}
.hero-panel__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hero-panel__list li {
  display: flex; align-items: center; gap: 10px;
  color: #e6efe9; font-size: .92rem;
}
.hero-panel__list svg { width: 18px; height: 18px; color: var(--secondary-fixed); flex: none; }

/* ---------- KPI strip ---------- */
.kpi-strip { background: var(--surface-low); border-block: 1px solid var(--border); }
.kpi-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 36px;
}
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi__num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.kpi__label {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-2);
}

/* ---------- Cartes ---------- */
.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  border: 1px solid var(--border);
  color: var(--secondary);
  margin-bottom: 18px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--primary-cont); border-color: var(--primary-cont); color: var(--secondary-fixed); }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.benefit {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--secondary);
  font-size: .92rem;
}

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Bento (services) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
  min-height: 230px;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-card .card__icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--secondary-fixed); }
.bento-card h3 { margin-bottom: .4em; }
.bento-card p { font-size: .95rem; }
.bento-card .btn-arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--secondary); background: none; border: 0; cursor: pointer;
  padding: 0; transition: gap .2s ease, color .2s ease;
}
.bento-card .btn-arrow svg { width: 18px; height: 18px; }
.bento-card .btn-arrow:hover { gap: 12px; }
.bento-card .badge { align-self: flex-start; }

/* Variantes de fond */
.bento-card--light { background: var(--white); }
.bento-card--light .btn-arrow { color: var(--secondary); }
.bento-card--dark { background: var(--tertiary-cont); border-color: var(--tertiary-cont); }
.bento-card--dark h3 { color: #fff; }
.bento-card--dark p { color: var(--on-tertiary-cont); }
.bento-card--dark .btn-arrow { color: var(--secondary-fixed); }
.bento-card--forest { background: var(--primary-cont); border-color: var(--primary-cont); }
.bento-card--forest h3 { color: #fff; }
.bento-card--forest p { color: var(--on-primary-cont); }
.bento-card--forest .btn-arrow { color: var(--secondary-fixed); }

/* Carte média avec overlay */
.bento-card--media { color: #fff; justify-content: flex-end; min-height: 320px; }
.bento-card--media h3 { color: #fff; }
.bento-card--media p { color: rgba(255, 255, 255, .85); }
.bento-card--media .btn-arrow { color: var(--secondary-fixed); }
.bento-card__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.bento-card--media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 24, 19, .92), rgba(0, 24, 19, .35) 55%, rgba(0, 24, 19, .15));
}
.bento-card--media > * { position: relative; z-index: 2; }
.bento-card--media > .bento-card__bg { position: absolute; inset: 0; z-index: 0; }

/* Mini-indicateur dans une carte bento */
.bento-stat {
  margin-top: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.bento-stat__row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bento-stat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary-fixed); box-shadow: 0 0 8px var(--secondary-dim); flex: none; }
.bento-stat__row span { font-family: var(--font-mono); font-size: .74rem; color: #fff; letter-spacing: .03em; }
.bento-stat__val { font-family: var(--font-mono); font-size: .8rem; color: var(--on-tertiary-cont); }

/* Bloc « accompagnement » large */
.bento-card--wide { flex-direction: row; align-items: center; gap: 28px; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.bento-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .04em; color: var(--secondary-fixed);
}
.bento-tag svg { width: 16px; height: 16px; }

/* ---------- Étapes numérotées ---------- */
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--primary-cont);
  color: var(--secondary-fixed);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  background-color: var(--secondary-fixed);
  color: var(--on-secondary-fixed);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .68rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.badge--soft {
  background: rgba(0, 110, 47, .1);
  color: var(--secondary);
  border: 1px solid rgba(0, 110, 47, .25);
}

/* ---------- Stats (cartes) ---------- */
.stats { text-align: left; }
.stats > div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.stat__num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 10px;
}
.stat__label { color: var(--muted); font-size: .95rem; }

/* ---------- Data table (aperçu plateforme / dashboard) ---------- */
.data-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 680px; }
.data-table thead { background: var(--surface-high); border-bottom: 1px solid var(--border); }
.data-table th {
  padding: 14px 18px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2);
  white-space: nowrap;
}
.data-table td { padding: 16px 18px; font-size: .92rem; border-bottom: 1px solid var(--border-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-low); }
.data-table .asset { font-weight: 600; color: var(--primary); }
.data-table .num { font-family: var(--font-mono); }
.rating {
  display: inline-flex; min-width: 22px; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem;
  color: #fff; padding: 2px 7px; border-radius: var(--radius-sm);
}
.rating--a { background: #2e7d32; }
.rating--b { background: #4caf50; }
.rating--c { background: #8bc34a; color: #1b2a14; }
.rating--d { background: #f59e0b; color: #2a1c00; }
.meter-inline {
  display: inline-flex; align-items: center; gap: 10px;
}
.meter-inline .bar { width: 90px; height: 6px; background: var(--surface-highest); border-radius: 999px; overflow: hidden; }
.meter-inline .bar > span { display: block; height: 100%; border-radius: 999px; }
.bar > span.ok { background: var(--secondary); }
.bar > span.warn { background: var(--warn); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status .dot.ok { background: var(--secondary); }
.status .dot.warn { background: var(--warn); }
.link-cell { color: var(--secondary); font-family: var(--font-mono); font-size: .78rem; font-weight: 500; }
.link-cell:hover { text-decoration: underline; }
.data-cap { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 18px; }

/* ---------- Encadré / highlight ---------- */
.callout {
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.callout h2, .callout h3 { color: var(--primary); }

/* ---------- Liste à puces avec picto ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.check-list .ic { color: var(--secondary); width: 24px; height: 24px; flex: none; margin-top: 2px; }

/* ---------- Étude de cas : lien de téléchargement ---------- */
.download-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-weight: 600; font-size: .92rem;
  color: var(--secondary);
}
.download-link svg { width: 18px; height: 18px; flex: none; }

/* ---------- Mention partenaire ---------- */
.partner-note {
  margin-top: 16px;
  padding: 16px 20px;
  background-color: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--ink-2);
  font-size: .92rem;
}
.partner-note strong { color: var(--ink); }

/* ---------- Variante encadré "vision" ---------- */
.callout--vision { border-left-color: var(--primary-cont); }
.callout .tag-soon {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--secondary); border: 1px solid rgba(0, 110, 47, .35);
  border-radius: var(--radius-sm); padding: 3px 10px;
}

/* ---------- Note sous bandeau preuves ---------- */
.proof-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 22px; }

/* ---------- CTA final (panneau navy) ---------- */
.cta-final { text-align: center; }
.cta-final .container {
  background: var(--tertiary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-final .container::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% -20%, rgba(107, 255, 143, .12), transparent 60%);
  pointer-events: none;
}
.cta-final h2 { color: #fff; position: relative; }
.cta-final .lead { color: var(--on-tertiary-cont); margin-inline: auto; position: relative; }
.cta-final .btn-group { justify-content: center; position: relative; }
.phone-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}
.phone-link:hover { color: var(--secondary-fixed); }
/* Téléphone hors panneau sombre */
.section:not(.cta-final) .phone-link { color: var(--primary); }
.section:not(.cta-final) .phone-link:hover { color: var(--secondary); }

/* ---------- Pipeline (technologie) ---------- */
.pipeline { width: 100%; overflow-x: auto; padding-bottom: 8px; }
.pipeline svg { min-width: 720px; }

/* ---------- Liste de capacités ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-item {
  display: flex; align-items: center; gap: 12px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-weight: 500;
  color: var(--ink);
}
.cap-item .ic { color: var(--secondary); width: 24px; height: 24px; flex: none; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-weight: 500; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2);
}
.field .req { color: var(--secondary); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--secondary);
  outline: none;
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 110, 47, .15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-alert {
  background: rgba(186, 26, 26, .07);
  border: 1px solid rgba(186, 26, 26, .3);
  border-left: 3px solid var(--error);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: .92rem;
  color: #93000a;
}
.form-alert a { color: #93000a; font-weight: 600; text-decoration: underline; }
.energy-hint {
  display: none;
  margin-top: 8px;
  padding: 12px 14px;
  background-color: rgba(0, 110, 47, .08);
  border: 1px solid rgba(0, 110, 47, .2);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--secondary);
}
.energy-hint.show { display: block; }

.contact-aside {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.contact-aside dt {
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 500; color: var(--secondary); margin-top: 18px;
}
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 4px 0 0; color: var(--ink); }

/* ---------- Footer (navy) ---------- */
.site-footer {
  background-color: var(--tertiary);
  border-top: 1px solid var(--tertiary-cont);
  padding-block: 56px 28px;
  color: var(--on-tertiary-cont);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer img.footer-logo { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer .baseline { font-style: italic; color: #cdd8e6; max-width: 32ch; }
.site-footer h4 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-tertiary-cont); }
.site-footer a:hover { color: var(--secondary-fixed); }
.footer-bottom {
  border-top: 1px solid var(--tertiary-cont);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  color: var(--on-tertiary-var);
}
.footer-bottom a { color: var(--on-tertiary-cont); }
.footer-bottom .links a { margin-left: 18px; }
.footer-bottom .links a:first-child { margin-left: 0; }

/* ---------- Sections utilitaires ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ---------- Prise de rendez-vous ---------- */
.rdv-wrap { max-width: 920px; margin-inline: auto; }
.booking {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}
.rdv-step[hidden] { display: none; }
.rdv-step > h2 { margin-bottom: 8px; }
.rdv-intro { color: var(--ink-2); margin-bottom: 28px; }
.rdv-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-weight: 500; font-family: var(--font-body);
  padding: 6px 0; margin-bottom: 10px;
}
.rdv-back:hover { color: var(--primary); }
.rdv-back svg { width: 20px; height: 20px; }

/* Cartes de service (étape 1) */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-card {
  text-align: left; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; cursor: pointer; font-family: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, background-color .2s, transform .15s, box-shadow .2s;
}
.svc-card:hover { border-color: var(--secondary); background: var(--surface-low); transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-card[aria-pressed="true"] { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0, 110, 47, .15); background: var(--white); }
.svc-card__top { display: flex; align-items: center; gap: 14px; }
.svc-card__ic {
  width: 46px; height: 46px; flex: none; border-radius: var(--radius-lg);
  background: var(--surface-low); border: 1px solid var(--border); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
}
.svc-card__ic svg { width: 25px; height: 25px; }
.svc-card h3 { margin: 0; font-size: 1.1rem; }
.svc-card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.svc-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.svc-card__meta span {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 500; letter-spacing: .04em;
  background: rgba(0, 110, 47, .08); color: var(--secondary);
  padding: 4px 10px; border-radius: var(--radius-sm);
}

/* Étape 2 : disponibilités + coordonnées */
.rdv-form-step { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.rdv-form-step > h2 { margin-bottom: 12px; }
.rdv-chosen {
  background: var(--surface-low); border: 1px solid var(--border);
  border-left: 3px solid var(--secondary); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 22px; font-size: .95rem;
}
.rdv-chosen strong { color: var(--primary); }
.rdv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.rdv-actions { margin-top: 28px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }

/* État de confirmation */
.rdv-success { text-align: center; padding: 20px 0; }
.rdv-success .ok {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(0, 110, 47, .1); color: var(--secondary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.rdv-success .ok svg { width: 42px; height: 42px; }

/* Repli Cal.com */
.cal-pending { text-align: center; padding: 56px 24px; }
.cal-pending strong { display: block; font-family: var(--font-title); font-size: 1.2rem; color: var(--primary); margin-bottom: 10px; }
.cal-pending p { max-width: 48ch; margin: 0 auto 22px; color: var(--ink-2); }

/* Bouton flottant « Prendre RDV » */
.rdv-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--orange); color: #fff;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem;
  padding: 13px 20px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(250, 125, 0, .35);
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.rdv-fab:hover {
  background: var(--orange-2); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(250, 125, 0, .42);
}
.rdv-fab svg { width: 20px; height: 20px; flex: none; }

/* Bandeau de réassurance */
.trust { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust div { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-size: .82rem; font-weight: 500; }
.trust svg { width: 20px; height: 20px; color: var(--secondary); flex: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-strip .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  /* Bento -> empilé sur tablette */
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card { grid-column: span 6 !important; }
}

@media (max-width: 768px) {
  .container { padding-inline: 24px; }
  .section { padding-block: 52px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: rgba(247, 249, 251, .98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__links a { padding: 14px 24px; border-bottom: 1px solid var(--border-soft); color: var(--ink); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 12px 24px 0; width: auto; align-self: stretch; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cap-grid { grid-template-columns: 1fr; }
  .kpi-strip .container { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .btn-group .btn { width: 100%; }
  .svc-grid { grid-template-columns: 1fr; }
  .rdv-grid2 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .card { padding: 22px; }
  .callout { padding: 22px; }
  .kpi-strip .container { grid-template-columns: 1fr; }
  .rdv-fab { right: 16px; bottom: 16px; padding: 14px; gap: 0; }
  .rdv-fab span { display: none; }
}

/* ---------- Préférence mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
