/* ============================================================
   Sourcinno — design system
   Palette, typographie et espacements : PRD.md §7 + MOCKUPS §1.
   Fichier unique, sans build. Ne pas coder de couleur en dur
   ailleurs : tout passe par les variables ci-dessous.
   ============================================================ */

:root {
  /* Couleurs — PRD §7 */
  --navy: #1a365d;
  --navy-dark: #12253f;
  --navy-soft: #2c4a76;
  --teal: #319795;
  --teal-dark: #247a78;
  --orange: #dd6b20;
  --white: #ffffff;
  --grey-50: #f5f8fc;
  --grey-100: #e6edf3;
  --grey-300: #cbd5e0;
  --grey-500: #64707f;  /* assombri pour atteindre 4,5:1 sur blanc */
  --grey-700: #4a5568;

  /* Roles sur fond sombre et etats — aucune couleur en dur hors de :root (Pass 40) */
  --accent-on-dark:     #9fe3e0;  /* surtitres, compteurs et accents clairs sur bleu nuit */
  --link-hover-on-dark: #7fd6d3;  /* lien survole du pied de page */
  --primary-hover:      #1f6360;  /* bouton principal et lanceur survoles */
  --error:              #c53030;  /* message et bordure d erreur */
  --tag-text:           #a04a12;  /* texte des etiquettes (fond orange translucide) */
  --hero-deep:          #10243d;  /* degrade de la carte Strategie de l accueil */
  --card-strategie-end: #24546a;  /* degrade de la carte Strategie de l accueil */

  /* Rôles */
  --bg: var(--white);
  --bg-alt: var(--grey-50);
  --text: var(--navy);
  --text-muted: var(--grey-700);
  --accent: var(--teal);
  --accent-2: var(--orange);
  --border: var(--grey-100);

  /* Typographie */
  --font-title: var(--font-body);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Espacement généreux — PRD §7 */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.16);
  --container: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* Une adresse email ne contient aucune coupure : celles des listes de contact passent a la ligne n importe ou plutot que de deborder a 320 px. */
.ticks a[href^="mailto:"] { overflow-wrap: anywhere; }
.ticks--contact a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 var(--space-2);
  color: var(--navy);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 var(--space-2); }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-6); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 780px; margin-bottom: var(--space-5); }
.lead { font-size: 1.12rem; color: var(--text-muted); }

.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
/* Un enfant de grille peut retrecir sous la largeur de son contenu (sinon la piste 1fr s elargit au-dela de l ecran). */
.grid > * { min-width: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* Glassmorphism au défilement — MOCKUPS §1 */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.site-logo img { height: 65px; width: auto; }
/* De 861 à 960 px le menu complet ne laisse pas la place : logo à 40 px (owner 2026-10-11). */
@media (min-width: 861px) and (max-width: 960px) { .site-logo img { height: 40px; } }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.site-nav__list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width 0.25s var(--ease);
}
.site-nav__list a:not(.btn):hover { color: var(--teal-dark); }
.site-nav__list a:not(.btn):hover::after,
.site-nav__list a:not(.btn)[aria-current="page"]::after { width: 100%; }
.site-nav__list a:not(.btn)[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; }
.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary { background: var(--teal-dark); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-hover); box-shadow: var(--shadow); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--teal-dark) 100%);
  padding-block: var(--space-7);
  overflow: hidden;
}
.hero::after {
  /* voile de particules discret — MOCKUPS §2 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 78%, rgba(255, 255, 255, 0.10) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 65%, rgba(255, 255, 255, 0.13) 0 2px, transparent 3px);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--white);
  max-width: 62ch;
  margin-bottom: var(--space-4);
}

/* Hero photo (accueil et pages de service) — PRD § Refonte 2026-10-11 : la photo occupe les 70 % de droite
   et se fond dans le bleu nuit ; le voile (::after, a la place des particules) n existe que derriere le texte.
   Jusqu a 860 px : la photo en bloc de 230 px, le texte remonte sur son bas estompe. */
.hero--cover { display: flex; align-items: center; min-height: 400px; padding-block: 0; background: var(--navy-dark); }
.hero--cover::after { background: linear-gradient(90deg, rgba(18, 37, 63, 0.96) 0%, rgba(18, 37, 63, 0.9) 36%, rgba(18, 37, 63, 0.78) 52%, rgba(18, 37, 63, 0) 72%); }
.hero--cover > .container { padding-block: var(--space-5); }
.hero--cover h1 { max-width: 22ch; }
.hero--cover .hero__sub:last-child { margin-bottom: 0; }
.hero__bg {
  position: absolute;
  inset: 0 0 0 30%;
  width: 70%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
/* Point de la photo garde au cadrage, par page. */
.hero--strategie .hero__bg { object-position: 50% 12%; }
.hero--home .hero__bg { object-position: 86% 60%; }
.hero--home { min-height: 520px; }
.hero--home h1 { max-width: 14ch; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.05; }
.hero--home h1 span { color: var(--accent-on-dark); }
.hero--home .hero__sub { max-width: 56ch; margin-bottom: var(--space-3); }
@media (min-width: 861px) {
  .hero--cover h1, .hero--cover .hero__sub { max-width: 50%; }
}
@media (max-width: 860px) {
  .hero--cover { display: block; min-height: 0; }
  .hero__bg {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 230px;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  }
  .hero--cover::after { background: linear-gradient(180deg, rgba(18, 37, 63, 0) 0, rgba(18, 37, 63, 0) 100px, rgba(18, 37, 63, 0.92) 178px); }
  .hero--cover > .container { margin-top: -3.25rem; padding-block: 0 var(--space-4); }
}
@media (max-width: 640px) {
  .hero--home h1 { font-size: clamp(2.35rem, 9vw, 3.2rem); }
}
/* Téléphone court (553 px de haut et moins de 600) : « Votre enjeu » visible sans défiler (Pass 67) ; #services n'est pas .reveal. */
@media (max-width: 640px) and (max-height: 600px) {
  .hero--home > .container { padding-bottom: var(--space-2); }
  #services { padding-top: var(--space-2); }
}
.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: var(--space-1);
}
.hero--page { padding-block: var(--space-6); }

/* ---------- Cartes ---------- */
/* Surface commune des cartes : avant .card--service et .card--strategie/--ia, qui la surchargent. */
.card, .disclosure--card, .ia-chat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { border-color: rgba(49, 151, 149, 0.4); }
.card h3 { margin-bottom: var(--space-1); }
.card p { color: var(--text-muted); }
.card__foot { margin-top: auto; padding-top: var(--space-2); }

/* ---------- Listes à puces ---------- */
.ticks { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: 0.6rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.bullets { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.bullets li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; }
.bullets li::before { content: "▪"; position: absolute; left: 0; color: var(--orange); }

/* ---------- Bandeau logos clients ---------- */
.logo-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); }
.logo-band img {
  height: 42px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.logo-band img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: var(--space-2); }
.field > label { font-size: 0.88rem; font-weight: 600; }
.field .hint { font-size: 0.8rem; color: var(--grey-500); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  font: inherit;
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.18);
  outline: none;
}
textarea { min-height: 150px; resize: vertical; }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--check input { margin-top: 0.35rem; width: auto; flex: 0 0 auto; }
.field--check label { font-weight: 400; font-size: 0.9rem; }
.field--check { flex-wrap: wrap; }
.field--check .error { flex: 1 0 100%; }
.field .error { margin: 0; font-size: 0.82rem; color: var(--error); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.form-status { margin-top: var(--space-2); padding: var(--space-2); border-radius: var(--radius); font-size: 0.92rem; }
.form-status[data-state="ok"] { background: rgba(49, 151, 149, 0.12); border: 1px solid var(--teal); }
.form-status[data-state="error"] { background: rgba(197, 48, 48, 0.08); border: 1px solid var(--error); }
.form-status:empty { display: none; }
.required { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.78); padding-block: var(--space-5) var(--space-3); }
.site-footer h2 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-2); }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, 0.78); transition: color 0.2s var(--ease); }
.site-footer a:not(.btn):hover { color: var(--link-hover-on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.site-footer__cta { margin-top: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer__bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.85rem;
}
.site-footer__brand { font-family: var(--font-title); font-size: 1.2rem; color: var(--white); margin-bottom: var(--space-1); }

/* ---------- Animations au scroll — PRD §7 ----------
   Une section n est masquee que sous une classe posee par un script :
   .reveal-wait (coquille tools/shell/header.html, retiree apres 2,5 s au plus)
   puis .reveal-on (site.js). Sans JavaScript, site.js bloque ou mouvement
   reduit : tout reste visible. `check.mjs --nojs` refuse un masquage sans elles. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .reveal-wait .reveal, .reveal-on .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }
}

/* ---------- Utilitaires ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: var(--space-2); }
.measure { max-width: 68ch; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-2) var(--space-3) var(--space-4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--border); }
  .site-nav__list li:last-child { border-bottom: 0; padding-top: var(--space-2); }
  .site-nav__list a:not(.btn) { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .site-nav__list a:not(.btn)::after { display: none; }
}

@media (max-width: 640px) {
  :root { --space-6: 3.25rem; --space-7: 4rem; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .logo-band { gap: var(--space-3); }
  .logo-band img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover, .card--service:hover { transform: none !important; }
}

@media print {
  .site-header, .site-nav, .nav-toggle, .site-footer { display: none; }
}

/* ---------- Variantes de hero par offre — PRD §4.2 ----------
   Chaque page d'offre a une identite visuelle propre. */
.hero--pattern::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  opacity: 0.9;
}

/* ---------- Bandeau d'appel a l'action ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: var(--space-2); }

/* ---------- Filtres et étiquettes (blog Publications) ---------- */
.chip {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
/* .card est en display: flex, qui l emporte sur [hidden] du navigateur : la puce masque ainsi un article. */
.card[hidden] { display: none; }
/* Publications : une colonne à la largeur de lecture ; sur ordinateur, les trois cartes (1/3) à côté du blog (2/3).
   minmax(0, …) : le lecteur vidéo ne peut pas élargir sa colonne. */
.pub-cols { display: grid; grid-template-columns: minmax(0, 68ch); gap: var(--space-6) var(--space-4); align-items: start; }
@media (min-width: 961px) {
  .pub-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

.card__meta { font-size: 0.85rem; color: var(--grey-500); margin-bottom: var(--space-1); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 var(--space-1); }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(221, 107, 32, 0.12);
  color: var(--tag-text);
}

/* ---------- Banniere de consentement (PRD §5) ---------- */
.consent {
  position: fixed;
  left: var(--space-2);
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: 1500;
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
}
.consent p { font-size: 0.9rem; margin-bottom: var(--space-2); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* ---------- Assistant flottant (PRD §3, MOCKUPS §7) ---------- */
.chat-launcher {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 1400;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.chat-launcher:hover { background: var(--primary-hover); transform: scale(1.06); }
.chat-launcher svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.chat-panel {
  position: fixed;
  right: var(--space-3);
  bottom: calc(var(--space-3) + 68px);
  z-index: 1400;
  width: min(370px, calc(100vw - 2 * var(--space-3)));
  max-height: min(560px, calc(100dvh - 140px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-panel__head { background: var(--navy); color: var(--white); padding: var(--space-2) var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.chat-panel__head p { margin: 0; font-weight: 600; font-size: 0.95rem; }
.chat-panel__head small { display: block; font-weight: 400; opacity: 0.75; font-size: 0.78rem; }
.chat-panel__close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.chat-log { flex: 1; overflow-y: auto; padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); }
.chat-msg { max-width: 88%; padding: 0.6rem 0.85rem; border-radius: var(--radius); font-size: 0.9rem; line-height: 1.55; }
.chat-msg--bot { background: var(--grey-100); align-self: flex-start; }
.chat-msg--me { background: var(--teal-dark); color: var(--white); align-self: flex-end; }
.chat-msg a { text-decoration: underline; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 var(--space-3) var(--space-2); }
.chat-form { display: flex; gap: 0.4rem; padding: var(--space-2); border-top: 1px solid var(--border); }
.chat-form input { flex: 1; }
@media (max-width: 640px) {
  .chat-panel { right: var(--space-2); left: var(--space-2); width: auto; }
}

/* ---------- Menu deroulant "Services" ----------
   Bati sur <details> : il s ouvre et se ferme sans JavaScript, repond au
   clavier et au toucher sans code supplementaire. Le script ne fait
   qu ajouter la fermeture au clic exterieur. */
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.nav-drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop > summary:hover,
.nav-drop[open] > summary,
.nav-drop > summary[aria-current="page"] { color: var(--teal-dark); }
.nav-drop > summary[aria-current="page"] { font-weight: 600; }

.nav-drop__menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  min-width: 270px;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.nav-drop__menu li { border: 0; }
.nav-drop__menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--navy);
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-drop__menu a::after { display: none; }
.nav-drop__menu a:hover { background: var(--grey-50); color: var(--teal-dark); }
.nav-drop__menu a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }

@media (max-width: 860px) {
  /* En mobile le menu est deja une liste verticale : le sous-menu s y insere
     a plat plutot que de flotter par-dessus. */
  .nav-drop > summary { display: flex; justify-content: space-between; padding: 0.85rem 0; font-size: 1rem; }
  .nav-drop__menu {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 0.9rem;
    border-left: 2px solid var(--border);
    margin-bottom: 0.5rem;
  }
  .nav-drop__menu a { padding: 0.6rem 0; white-space: normal; }
}

/* ---------- Illustration centree en tete de bande ---------- */
.band-figure { margin: 0 auto var(--space-5); max-width: 760px; text-align: center; }
.band-figure img { margin-inline: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Lecteur vidéo partagé (assets/js/video.js) : vignette locale + ▶, YouTube chargé au clic ---------- */
.video-launch,
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); }
.video-launch { position: relative; padding: 0; cursor: pointer; overflow: hidden; background: var(--navy-dark); color: var(--white); }
.band-figure .video-launch img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
/* Centre, le ▶ masquait une lettre du titre de la vignette : petit, dans le coin, sur tous les ecrans. */
.video-launch span { position: absolute; inset: auto 12px 12px auto; margin: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-dark); font-size: 0.96rem; line-height: 1; }
.video-launch:hover span { background: var(--navy); }
.band-figure figcaption a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.card .band-figure { margin: var(--space-1) 0 0; }

/* ============================================================
   Page d'accueil — PRD §5.1
   Composants propres a l'accueil.
   ============================================================ */

/* ---------- Besoins des pages de service et bandeau de confiance ---------- */
#besoin .section__head { max-width: 640px; margin-bottom: var(--space-4); }
#besoin .lead { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.25; font-weight: 700; color: var(--navy); }
#references { padding-block: var(--space-4); }
#references .section__head { margin-bottom: var(--space-3); }
#references .logo-band { gap: var(--space-2) var(--space-4); }
/* Une seule hauteur : les images band_*.png sont construites pour elle par tools/logo-band.py (owner 2026-10-12). */
#references .logo-band img { height: 48px; }

/* ---------- Cartes de service avec image de fond — PRD §5.1 section 3 ----------
   Le texte ne repose JAMAIS sur la photo : un voile bleu nuit opaque (0,92 en
   haut a 0,82 en bas) s intercale. Le couple reellement affiche est donc blanc
   sur --navy, celui que `check.mjs --a11y` verifie deja ; ce controle compare
   des couleurs DECLAREES et ne voit pas une image, d ou ce voile. */
.card--service {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-color: transparent;
  color: var(--white);
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.card--service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(18, 37, 63, 0.97) 0%, rgba(18, 37, 63, 0.89) 47%, rgba(26, 54, 93, 0.68) 100%);
}
/* P74 : numéros « 01 »/« 02 » retirés (owner 2026-10-29), haut de carte réduit d’un quart (5.5rem → 4.125rem). */
#services .card--service { padding-top: 4.125rem; }
#services .card--service h3 { max-width: 19ch; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
#services .card--service .card__foot { margin-top: auto; }
#services .card--service { min-height: 415px; }
#services .service-needs { list-style: none; margin: 0; padding: var(--space-2) 0 0; border-top: 1px solid rgba(159, 227, 224, 0.3); }
#services .service-needs li + li { margin-top: var(--space-2); }
#services .service-needs strong { display: block; color: var(--accent-on-dark); line-height: 1.4; }
#services .service-needs span { display: block; color: var(--white); font-size: 0.95rem; line-height: 1.5; }
.card--service > * { position: relative; z-index: 1; }
.card--service h3 { color: var(--white); }
.card--service p { color: rgba(255, 255, 255, 0.92); }
.card--service:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(49, 151, 149, 0.55); }
/* Image de la carte IA de l accueil : chargee en fond CSS, sans
   redimensionnement, une seule declaration (Pass 40). La carte Strategie a son
   fond en degrade (#services .card--strategie, ci-dessous ; image retiree Pass 65).
   Les photos des heros sont des <img> dans les pages (Pass 55). */
.card--ia        { background-image: url("/pictures/1ai_hero.jpg"); }
#services .card--strategie {
  background-image:
    linear-gradient(130deg, rgba(18, 37, 63, 0.3), rgba(26, 54, 93, 0.15)),
    repeating-linear-gradient(145deg, transparent 0 34px, rgba(159, 227, 224, 0.22) 35px 36px),
    linear-gradient(135deg, var(--hero-deep), var(--card-strategie-end));
}

/* ---------- Frise verticale — PRD §5.1 section 3 bis ----------
   Chaque etape est du texte visible, sans infobulle : rien a activer, donc
   rien de focalisable. Le trait part de chaque point et rejoint le point
   suivant, quelle que soit la hauteur de l etape. */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.timeline > li { position: relative; padding-left: var(--space-4); }
.timeline > li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
}
.timeline > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 19px;
  bottom: calc(-1 * var(--space-2) - 3px);
  width: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(49, 151, 149, 0.45));
}
.timeline__when { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; color: var(--teal-dark); }
.timeline__what { display: block; font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: var(--navy); }
.timeline__text { display: block; margin-top: 0.3rem; font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); }

/* ---------- Accueil : frise a gauche, cartes empilees a droite ----------
   Une carte par ligne a toutes les largeurs. Au-dessus de 960 px, deux colonnes
   de meme hauteur cartes fermees : chaque etape et chaque titre de carte ont la
   meme hauteur minimale (--xp-row) et le meme ecart. La frise reste calee en
   haut, ses etapes ne sont pas reparties sur la hauteur de la ligne : ouvrir
   une carte allonge la colonne de droite sans deplacer la frise. */
#experience { --xp-row: 6.5rem; }
#experience .grid--2 { grid-template-columns: 1fr; align-items: start; gap: var(--space-4); }
#experience .experience-panel { display: grid; gap: var(--space-3); }
@media (min-width: 961px) {
  #experience .grid--2 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-5); }
  #experience .timeline > li { min-height: calc(var(--xp-row) + 2px); }
  #experience .disclosure--card summary { min-height: var(--xp-row); }
  /* P74 : la frise passe à --space-2 entre étapes ; les cartes empilées suivent pour garder la ligne P31 égale. */
  #experience .hl--tabs:not(.is-hover) > .hl__items { gap: var(--space-2); }
}

/* ---------- Dépliant unique : details.disclosure (accueil, Publications) ---------- */
.disclosure { border-top: 1px solid var(--border); }
.disclosure summary { display: flex; align-items: baseline; gap: var(--space-2); min-height: 44px; padding: var(--space-2) 0; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.5; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; flex: none; margin-left: auto; color: var(--teal-dark); }
.disclosure[open] summary::after { content: "−"; }
.disclosure summary:focus-visible { outline-color: var(--teal-dark); }
/* Carte : titre + sous-titre empilés en colonne 1, le "+" en colonne 2 sur la ligne du titre. */
.disclosure--card { min-width: 0; }
.disclosure--card[open] { background: var(--grey-50); border-color: var(--teal-dark); }
.disclosure--card summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: var(--space-1) var(--space-2); padding: var(--space-3); border-radius: var(--radius-lg); }
.disclosure--card summary > * { grid-column: 1; }
.disclosure--card summary::after { grid-column: 2; grid-row: 1; margin-left: 0; }
.disclosure--card h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.disclosure--card .bullets { margin: 0 var(--space-3) var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.disclosure--card .bullets li { font-size: 0.95rem; line-height: 1.5; margin-bottom: var(--space-2); }
@media (max-width: 640px) {
  .disclosure--card summary { padding: var(--space-2); }
  .disclosure--card .bullets { margin: 0 var(--space-2) var(--space-2); }
}

/* ---------- Publications : article complet dans un dépliant du blog (écrit par le moteur gtm-blog, blog.mjs sync) ---------- */
/* Résumé : étiquette, titre, date empilés ; le "+" sur la ligne du titre. */
#blog-list .disclosure--card summary::after { grid-row: 2; }
#blog-list .disclosure--card .tags,
#blog-list .disclosure--card .card__meta { margin: 0; font-weight: 400; }
/* Corps : même retrait et même filet que .bullets ; texte à la largeur de lecture, image jamais plus large que la carte. */
.blog-body { margin: 0 var(--space-3) var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.blog-body > * { margin: 0; }
.blog-body > * + * { margin-top: var(--space-2); }
.blog-body > :not(img) { max-width: 68ch; }
.blog-body h4 { margin-top: var(--space-3); color: var(--text); font-size: 1rem; line-height: 1.4; }
.blog-body ul, .blog-body ol { padding-left: 1.4rem; }
.blog-body li + li { margin-top: 0.4rem; }
.blog-body a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.blog-body > img { border: 1px solid var(--border); border-radius: var(--radius); }
.blog-body .band-figure { max-width: 480px; text-align: left; }
@media (max-width: 640px) {
  .blog-body { margin: 0 var(--space-2) var(--space-2); }
}
/* Tableau d'un article : toute la largeur de la carte, première ligne et première colonne en en-têtes. */
.blog-body > table { max-width: none; }
.blog-body table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--white); }
.blog-body tr > :first-child { width: 7.5rem; }
.blog-body th, .blog-body td { padding: var(--space-1) 0.75rem; border: 1px solid var(--grey-300); vertical-align: top; text-align: left; overflow-wrap: break-word; }
.blog-body th { background: var(--grey-100); color: var(--text); font-weight: 700; line-height: 1.4; }
.blog-body td > * { margin: 0; }
.blog-body td > * + * { margin-top: var(--space-1); }
.blog-body td ul, .blog-body td ol { padding-left: 1.15rem; }
/* Téléphone, sans script : chaque ligne devient un bloc — son titre, puis chaque cellule sous le titre de sa colonne
   (attribut data-label de la cellule). La ligne des titres de colonne est masquée : ils sont répétés au-dessus de chaque cellule. */
@media (max-width: 640px) {
  .blog-body table, .blog-body tbody, .blog-body tr, .blog-body th, .blog-body td { display: block; }
  .blog-body table { background: none; }
  .blog-body tr { border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--white); overflow: hidden; }
  .blog-body tr:has(> th[scope="col"]) { display: none; }
  .blog-body tr + tr { margin-top: var(--space-2); }
  .blog-body tr > :first-child { width: auto; }
  .blog-body th, .blog-body td { border: 0; }
  .blog-body td + td { border-top: 1px solid var(--border); }
  .blog-body td[data-label]::before { content: attr(data-label); display: block; margin-bottom: var(--space-1); color: var(--teal-dark); font-size: 0.85rem; font-weight: 700; line-height: 1.4; }
}

/* ---------- Accueil « Votre enjeu » (Pass 72, maquette v13 option A) : offres → traits → « Création de valeur » → schéma ----------
   Les traits (svg.vx-lines) sont créés et dessinés par site.js d'après la place réelle des blocs : ils suivent toute largeur.
   Sans script : ni traits ni chevron, le schéma est affiché. .is-live est posé par site.js. */
.ico { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vx { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "c1" "c2" "node" "tree"; gap: var(--space-3); }
.vx-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.vx-lines path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vx-lines circle { fill: var(--teal-dark); }
.vx-lines .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vx-draw .7s cubic-bezier(.16, 1, .3, 1) forwards; }
.vx-lines circle.draw { opacity: 0; animation: vx-fade .3s .45s forwards; }
@keyframes vx-draw { to { stroke-dashoffset: 0; } }
@keyframes vx-fade { to { opacity: 1; } }
.vx-src--1 { grid-area: c1; }
.vx-src--2 { grid-area: c2; }
.vx-hub { grid-area: node; position: relative; display: flex; justify-content: center; }
.vx-tree { grid-area: tree; position: relative; }
/* Le nœud « Création de valeur » : un vrai bouton (clic, Entrée, Espace) */
.vx-node { display: flex; align-items: center; gap: 1.25rem; width: 100%; padding: 1rem 1rem 1rem 1.5rem; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.vx-node:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.vx-node:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 4px; }
.vx-node__text { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.vx-node__title { font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; line-height: 1.3; }
.vx-node__goals { color: var(--accent-on-dark); font-size: .95rem; line-height: 1.4; }
.vx-node__chev { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.vx-node[aria-expanded="true"] .vx-node__chev { transform: rotate(180deg); }
.vx:not(.is-live) .vx-node { cursor: default; }
.vx:not(.is-live) .vx-node__chev { display: none; }
.vx-branches { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.vx-branch { position: relative; min-width: 0; padding: var(--space-3); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.vx-branch__label { margin: 0 0 var(--space-1); font-size: 1.1rem; line-height: 1.3; }
.vx-branch__formula { margin: 0 0 var(--space-2); color: var(--navy); font-weight: 600; line-height: 1.45; }
.vx-branch__levers { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.5; }
.vx-tree.is-entering .vx-branch { animation: vx-in .55s cubic-bezier(.16, 1, .3, 1) both; }
.vx-tree.is-entering .vx-branch:nth-child(2) { animation-delay: .07s; }
.vx-tree.is-entering .vx-branch:nth-child(3) { animation-delay: .14s; }
@keyframes vx-in { from { opacity: 0; translate: 0 14px; } }
/* ≤ 640 : tout empilé, un trait dans la marge gauche relie offres, nœud et schéma ; ≥ 641 : offres côte à côte, schéma en trois colonnes. */
@media (max-width: 640px) {
  .vx { row-gap: var(--space-3); }
  .vx-hub { margin-top: var(--space-2); }
  .vx-tree { margin-top: var(--space-1); }
}
@media (min-width: 641px) {
  .vx { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "c1 c2" "node node" "tree tree"; row-gap: var(--space-6); column-gap: var(--space-3); }
  .vx-node { width: auto; min-width: 22rem; }
  .vx-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
}

/* ---------- Accueil « Méthodologie type » (Pass 72, maquette v13 option A) : frise de quatre étapes en onglets ----------
   site.js montre la frise (.mA-rail, livrée hidden), pose .is-live et les rôles d'onglet, masque les autres étapes et,
   à partir de 861 px, réserve à chaque étape la hauteur de la plus haute (changer d'étape ne déplace pas la page).
   Sans script : pas de frise, les étapes l'une sous l'autre (quatre ici, trois sur les services : .mA-rail--3, plus bas). .chip est aussi la puce du blog : règles sous .mA. */
/* P74 : écart méthodologie → « Discutons de votre besoin » divisé par deux (accueil seulement : #demarche et la section qui suit). */
#demarche { padding-bottom: calc(var(--space-6) / 2); }
#demarche + .section { padding-top: calc(var(--space-6) / 2 - .5rem); }
.mA .act { margin: 0; color: var(--navy); font-weight: 600; line-height: 1.45; }
.mA .kit { display: grid; gap: .4rem; margin-top: .65rem; }
.mA .kit__row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; margin: 0; font-size: .85rem; line-height: 1.45; }
.mA .kit__label { display: inline-flex; align-items: center; gap: .3rem; margin-right: .1rem; color: var(--grey-700); font-size: .8rem; font-weight: 400; }
.mA .kit__label .ico { width: .95rem; height: .95rem; }
.mA .kit__row--ia { display: block; }
.mA .kit__row--ia .kit__label { color: var(--teal-dark); font-weight: 600; vertical-align: -.15em; margin-right: .3rem; }
.mA .kit__tool { color: var(--text-muted); }
.mA .chip { display: inline-block; padding: .1rem .6rem; border: 1px solid var(--grey-300); border-radius: .8rem; background: var(--white); color: var(--navy); font-size: .8rem; font-weight: 600; line-height: 1.6; cursor: auto; }
.mA-rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--space-4); }
.mA-rail[hidden] { display: none; }
.mA-rail::before, .mA-fill { content: ""; position: absolute; top: calc(1.375rem - 1px); left: 12.5%; height: 2px; }
.mA-rail::before { right: 12.5%; background: var(--grey-300); }
.mA-fill { width: 75%; background: var(--teal-dark); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.mA-tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 0 .25rem 1rem; border: 0; background: none; color: var(--grey-700); font: inherit; cursor: pointer; }
.mA-dot { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--grey-300); background: var(--white); font-weight: 700; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.mA-tab:hover .mA-dot { border-color: var(--teal-dark); transform: scale(1.06); }
.mA-tab.is-done .mA-dot { border-color: var(--teal-dark); color: var(--teal-dark); }
.mA-tab[aria-selected="true"] { color: var(--navy); }
.mA-tab[aria-selected="true"] .mA-dot { border-color: var(--teal-dark); background: var(--teal-dark); color: var(--white); }
.mA-tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; left: 25%; right: 25%; height: 3px; border-radius: 3px; background: var(--navy); }
.mA-name { font-size: .85rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; text-align: center; }
.mA-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 var(--space-3); font-size: 1.25rem; }
.mA-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--grey-100); color: var(--navy); }
.mA-num { color: var(--teal-dark); }
.mA-actions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.mA-action { padding: var(--space-3); border-radius: var(--radius-lg); background: var(--bg-alt); }
.mA-panel + .mA-panel { margin-top: var(--space-5); }
.mA.is-live .mA-panel + .mA-panel { margin-top: 0; }
.mA-panel.is-entering .mA-action { animation: vx-in .45s cubic-bezier(.16, 1, .3, 1) both; }
.mA-panel.is-entering .mA-action:nth-child(2) { animation-delay: .06s; }
.mA-panel.is-entering .mA-action:nth-child(3) { animation-delay: .12s; }
@media (max-width: 860px) { .mA-actions { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } }
@media (max-width: 640px) {
  .mA-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mA-tab { padding-bottom: .75rem; }
}
/* P73 : la même frise à trois onglets sur Performance et Entreprise IA (« Votre besoin > Vos questions ») :
   un onglet par bloc, ses questions en cartes ; sans icône (le jeu d'icônes est dans la page d'accueil). */
.mA-rail--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mA-rail--3::before, .mA-rail--3 .mA-fill { left: calc(100% / 6); }
.mA-rail--3::before { right: calc(100% / 6); }
.mA-rail--3 .mA-fill { width: calc(200% / 3); }
.mA-rail--3 .mA-name { letter-spacing: 0; }
#besoin .mA-action { font-size: .95rem; line-height: 1.5; }
#besoin .mA-panel h4 { margin: 0 0 var(--space-2); font-size: 1rem; line-height: 1.4; color: var(--navy); }
#besoin .mA-actions + h4 { margin-top: var(--space-4); }
/* Revue P73 : « 1. » reste sur une ligne (.service-refinement coupe partout) ; cartes 4 et 5 décalées comme 2 et 3. */
#besoin .mA-num { white-space: nowrap; }
#besoin .mA-panel.is-entering .mA-action:nth-child(4) { animation-delay: .18s; }
#besoin .mA-panel.is-entering .mA-action:nth-child(5) { animation-delay: .24s; }

/* Services : opt-in local, les pages sœurs gardent leur présentation. */
.service-refinement { background: var(--white); overflow-wrap: anywhere; }
#besoin.service-refinement .section__head { max-width: none; }
#besoin.service-refinement .lead { padding: var(--space-3); margin-bottom: var(--space-3); border-radius: var(--radius-lg); background: var(--grey-50); font-size: 1rem; line-height: 1.7; font-weight: 400; }
/* P75 (owner 2026-10-29) : espacements, chacun limité à sa section (pages repérées par leur hero).
   Performance : Réflexion → « Discutons de votre besoin » réduit (compteur « 1 / 2 » → bouton : 116 → 60 px à 1200) ;
   le compteur pend de 2.75rem sous la visionneuse (.viewer__pos), la bande le garde avec 1rem de marge.
   Entreprise IA : la vidéo « Formation » sans marge basse, l’écart vers le bouton reste celui d’avant. */
.hero--strategie ~ #reflexion { padding-bottom: calc(2.75rem + var(--space-2)); }
.hero--strategie ~ #reflexion + .section { padding-top: calc(var(--space-6) / 2 - .5rem); }
#formation .band-figure { margin-bottom: 0; }
.service-careers { list-style: none; margin: 0; padding: 0; }
.service-career { min-width: 0; box-shadow: none; }
.service-career::before { content: ""; display: block; width: 28px; height: 4px; background: var(--teal-dark); border-radius: var(--radius); margin-bottom: var(--space-1); }
.service-career p { margin: 0; color: var(--text-muted); }
@media (max-width: 640px) {
  .service-career { padding: var(--space-2); }
}

.service-careers--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .service-careers--two { grid-template-columns: 1fr; }
}

/* ---------- P56 — Liste à aperçu : le détail d'une ligne s'affiche à côté de la liste (maquette V1.2, bloc cartes-A) ----------
   .is-hover, .is-active, .is-swap et --hl-min sont posés par site.js, avec une souris et à partir de 961 px seulement.
   Sans .is-hover (écran tactile, fenêtre étroite, sans script) rien ne change : les dépliants natifs restent tels quels.
   Depuis P68 un seul utilisateur : les onglets de l'accueil (.hl--tabs, plus bas). */
.hl__detail { display: none; }
.hl.is-hover { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2); align-items: stretch; }
.hl.is-hover > .hl__items { display: grid; gap: var(--space-1); align-content: start; min-height: var(--hl-min, 0px); }
.hl.is-hover summary::after { content: ""; align-self: center; width: .6rem; height: .6rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0; }
.hl.is-hover .is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hl.is-hover .is-active summary::after { opacity: 1; color: var(--accent-on-dark); }
.hl.is-hover > .hl__detail { display: block; align-self: start; padding: var(--space-3); border: 1px solid var(--teal-dark); border-radius: var(--radius-lg); background: var(--grey-50); }
@media (prefers-reduced-motion: no-preference) {
  .hl.is-hover .disclosure { transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
  .hl.is-hover > .hl__detail.is-swap > * { animation: hl-in .32s var(--ease) both; }
}
@keyframes hl-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
/* ---------- P61 — Accueil « +25 ans d'expérience » : onglets (maquette V1.2, bloc accueil-T) ----------
   Même mécanisme et même script que la liste à aperçu : seule la disposition change, les titres en ligne, le détail dessous.
   L'onglet ne montre que le mot en capitales du titre (.hl__lead masqué) ; le titre entier et le sous-titre sont repris en
   tête du détail (.hl__head, écrit par site.js). Sans .is-hover : les cartes empilées, .hl__items porte leur écart.
   #experience devant deux règles : elles doivent passer devant les règles #experience de la section. */
.hl--tabs > .hl__items { display: grid; gap: var(--space-3); }
#experience .hl--tabs.is-hover { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.hl--tabs.is-hover > .hl__items { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; }
.hl--tabs.is-hover .disclosure--card { flex: 1 1 auto; }
.hl--tabs.is-hover .disclosure--card, .hl--tabs.is-hover .disclosure--card summary { border-radius: 999px; }
#experience .hl--tabs.is-hover .disclosure--card summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 .7rem; }
.hl--tabs.is-hover summary::after { display: none; }
.hl--tabs.is-hover .hl__items h3 { font-size: .8rem; letter-spacing: 0; white-space: nowrap; }
.hl--tabs.is-hover .is-active h3 { color: var(--white); }
.hl--tabs.is-hover .hl__items .hl__lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hl--tabs.is-hover > .hl__detail { min-height: var(--hl-min, 0px); padding: var(--space-4); background: var(--white); box-shadow: var(--shadow-sm); }
.hl--tabs .hl__head h3 { margin: 0; font-size: 1.3rem; line-height: 1.3; }
.hl--tabs.is-hover > .hl__detail .bullets { margin: var(--space-2) 0 0; padding-top: var(--space-2); border-top: 1px solid var(--border); }
.hl--tabs.is-hover > .hl__detail .bullets li { font-size: 1rem; }
/* P37 : schéma = lien vers l'original (Stratégie) ; bloc pour que l'anneau de focus entoure l'image. */
.band-figure > a { display: block; border-radius: var(--radius-lg); }
/* P63 : Stratégie « Réflexion » en visionneuse (site.js, initViewer). Tout passe par .is-on, posée par le script :
   sans lui, les deux schémas restent l'un sous l'autre. */
.viewer.is-on { display: flex; gap: 0; max-width: 760px; margin-inline: auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.viewer.is-on::-webkit-scrollbar { display: none; }
/* La ligne prend la hauteur du plus haut schéma, le plus bas est centré : rien ne bouge sous la visionneuse.
   Le retrait de 6 px garde l'anneau de focus du lien à l'intérieur de la ligne, qui coupe ce qui dépasse. */
.viewer.is-on > .band-figure { flex: 0 0 100%; margin: 0; padding: 6px; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; }
/* L'ombre large du schéma serait coupée net par la ligne (un rectangle gris autour) : ombre courte ici. */
.viewer.is-on img { box-shadow: var(--shadow-sm); }
.viewer__nav { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); }
.viewer__btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--navy); border-radius: 50%; background: var(--navy); color: var(--white); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.viewer__btn:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.viewer__btn:disabled { background: var(--white); border-color: var(--border); color: var(--grey-500); cursor: default; }
.viewer__pos { min-width: 3.5em; text-align: center; color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
/* Relecture V1.2 (2026-10-15) : les deux schémas à la même hauteur, sans bande grise, aussi larges que le permet
   le schéma large ; « ‹ » / « › » posés sur les schémas (même case de grille), la position dessous. */
#reflexion .container:has(> .viewer.is-on) { --viewer-h: min(32rem, calc((100vw - 3rem) * .56)); display: grid; }
.viewer.is-on, .viewer.is-on + .viewer__nav { grid-area: 2 / 1; width: 100%; max-width: calc(var(--viewer-h) * 1.78 + 12px); justify-self: center; }
.viewer.is-on > .band-figure { max-width: none; }
.viewer.is-on img { height: var(--viewer-h); width: auto; object-fit: contain; }
.viewer.is-on + .viewer__nav { margin: 0; justify-content: space-between; padding-inline: var(--space-2); pointer-events: none; }
.viewer.is-on + .viewer__nav > * { pointer-events: auto; }
.viewer.is-on + .viewer__nav .viewer__pos { align-self: flex-end; margin-bottom: -2.75rem; }

/* ---------- Ancre d un article du blog ---------- */
  /* Arrivee par l ancre d un article du blog (#<slug>, ouvert par publications/blog.js) :
     le titre sous l en-tete collant (77 px), pas dessous. P75 : la section Portfolio est retiree de la
     publication (owner 2026-10-29 « A ») ; ses regles reviennent avec le revert de ce commit. */
  #blog-list > details { scroll-margin-top: 80px; }

/* ---------- Entreprise IA : chat (anciennement dans service-ia-business/index.html) ---------- */
  .ia-chat { max-width:760px; margin:auto; padding:var(--space-3); box-shadow:var(--shadow-sm); }
  .ia-chat typebot-standard { display:block; width:100%; height:600px; max-height:75vh; margin-top:var(--space-2); }
  .ia-chat typebot-standard[hidden] { display:none; }
  .ia-chat__notice { font-size:.875rem; color:var(--text-muted); }

/* ---------- gtm-blog : page d un article (publications/<slug>/) et lien de la carte vers elle ---------- */
.blog-article { max-width: 68ch; margin: var(--space-4) 0; line-height: 1.6; }
.blog-more { font-weight: 600; }
