/* ==========================================================================
   Site expertises Inwin : feuille de style principale
   Conforme au design system « Inwin – Digital Expert » (charte 2021) :
   pétales pour les accents, tout le texte en gris, DM Sans en 3 graisses,
   cartes blanches rayon 16 sans bordure dure, ombres charbon douces,
   trame de points et anneaux entrelacés comme motifs signature.
   Mode sombre : surcharge des alias sémantiques via html[data-theme="dark"].
   ========================================================================== */

:root {
  /* ---------- Pétales (la couronne) ---------- */
  --inwin-bleu: #2399D6;
  --inwin-vert: #10AAAE;
  --inwin-orange: #EE781E;
  --inwin-rouge: #E21E57;
  --inwin-rose: #E01481;

  /* Teintes douces 50 / 700 (fonds de tags, callouts) */
  --inwin-bleu-50: #E9F5FC;   --inwin-bleu-700: #1A75A6;
  --inwin-vert-50: #E6F7F7;   --inwin-vert-700: #0B7F82;
  --inwin-orange-50: #FDF1E7; --inwin-orange-700: #B65A12;
  --inwin-rouge-50: #FCE8EE;  --inwin-rouge-700: #A9163F;
  --inwin-rose-50: #FCE7F3;   --inwin-rose-700: #A80F61;

  /* ---------- Gris ---------- */
  --inwin-gris: #3D3E3E;
  --inwin-gris-base: #535E62;
  --inwin-gris-web: #706C6C;
  --inwin-gris-50: #F6F7F8;
  --inwin-gris-100: #EFF1F2;
  --inwin-gris-200: #E2E5E6;
  --inwin-gris-300: #C9CDCE;
  --inwin-noir: #1F2122;

  /* ---------- Alias sémantiques (thème clair) ---------- */
  --color-primary: var(--inwin-bleu);
  --color-primary-strong: var(--inwin-bleu-700);
  --color-accent: var(--inwin-rose);
  --text-strong: var(--inwin-gris);
  --text-body: var(--inwin-gris-web);
  --text-muted: var(--inwin-gris-base);
  --surface-page: var(--inwin-gris-50);
  --surface-card: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-alt: #FFFFFF;          /* sections alternées sur fond de page gris 50 */
  --surface-dark: var(--inwin-noir);
  --border-subtle: var(--inwin-gris-200);
  --blob-color: var(--inwin-gris-100);
  --dot-color: var(--inwin-gris-300);

  /* Séquence de pétales pour cycler les accents */
  --seq-1: var(--inwin-bleu);
  --seq-2: var(--inwin-rose);
  --seq-3: var(--inwin-orange);
  --seq-4: var(--inwin-vert);
  --seq-5: var(--inwin-rouge);

  /* Le framework 5C, un pétale par système */
  --c-conquete: var(--inwin-orange);
  --c-conversion: var(--inwin-rose);
  --c-consolider: var(--inwin-rouge);
  --c-connecter: var(--inwin-bleu);
  --c-capitaliser: var(--inwin-vert);

  /* ---------- Typographie ---------- */
  --font-sans: "DM Sans", Arial, sans-serif;

  /* ---------- Rayons ---------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ---------- Ombres (charbon, jamais noir pur) ---------- */
  --shadow-xs: 0 2px 8px rgba(31, 33, 34, 0.06);
  --shadow-sm: 0 4px 14px rgba(31, 33, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 33, 34, 0.10);
  --shadow-lg: 0 18px 48px rgba(31, 33, 34, 0.16);
  --shadow-chip: 0 6px 18px rgba(31, 33, 34, 0.14);

  /* ---------- Mouvement ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Thème sombre ---------- */
html[data-theme="dark"] {
  --inwin-gris-100: #2A2E2E;
  --inwin-gris-200: #33383A;
  --text-strong: #ECEFF0;
  --text-body: #AEB6B8;
  --text-muted: #96A0A3;
  --surface-page: #161818;
  --surface-card: #212424;
  --surface-raised: #262a2a;
  --surface-alt: #1C1F1F;
  --surface-dark: #101213;
  --border-subtle: #313636;
  --blob-color: #1E2222;
  --dot-color: #363C3C;
  --inwin-bleu-50: rgba(35, 153, 214, 0.16);   --inwin-bleu-700: #6FC2EA;
  --inwin-vert-50: rgba(16, 170, 174, 0.16);   --inwin-vert-700: #5ECDD0;
  --inwin-orange-50: rgba(238, 120, 30, 0.16); --inwin-orange-700: #F5A263;
  --inwin-rouge-50: rgba(226, 30, 87, 0.16);   --inwin-rouge-700: #EF7398;
  --inwin-rose-50: rgba(224, 20, 129, 0.16);   --inwin-rose-700: #EE6BB4;
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-chip: 0 6px 18px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); }     /* ~45px */
h2 { font-size: clamp(1.55rem, 3vw, 2.125rem); }  /* ~34px */
h3 { font-size: 1.35rem; line-height: 1.22; }     /* ~25px */
h4 { font-size: 1.18rem; }                        /* ~21px */
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section.on-mist { background: var(--surface-alt); }
.section.on-dark { background: var(--surface-dark); }
.section.on-dark h2, .section.on-dark h3 { color: #ffffff; }
.section.on-dark { color: #C9CDCE; }

/* Sur-titre : capitales larges + filet couleur pétale */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: var(--radius-pill);
  background: var(--eyebrow-color, var(--color-primary));
}
.section.on-dark .eyebrow { color: #96A0A3; }

.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.11rem; line-height: 1.5; color: var(--text-body); }
.section.on-dark .lead { color: #AEB6B8; }

/* ==========================================================================
   Motifs signature : trame de points, blobs, anneaux
   ========================================================================== */
.inwin-dots {
  background-image: radial-gradient(var(--dot-color) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
}
.blob {
  position: absolute; border-radius: 52% 48% 56% 44% / 46% 54% 46% 54%;
  background: var(--blob-color); pointer-events: none; z-index: 0;
}
.ring-decor { position: absolute; pointer-events: none; z-index: 0; }
.dot-veil {
  position: absolute; inset: auto 0 0 auto; width: 42%; height: 70%;
  background-image: radial-gradient(var(--dot-color) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(215deg, rgba(0,0,0,0.8), transparent 70%);
  mask-image: linear-gradient(215deg, rgba(0,0,0,0.8), transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ==========================================================================
   Boutons : pilules, sombre ou bleue
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.98rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
              background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--inwin-bleu); color: #ffffff; }
.btn-primary:hover { background: var(--inwin-bleu-700); }
html[data-theme="dark"] .btn-primary:hover { background: #4DB3E4; }
.btn-dark { background: var(--inwin-noir); color: #ffffff; }
.btn-dark:hover { background: #000000; }
html[data-theme="dark"] .btn-dark { background: #ffffff; color: var(--inwin-noir); }
html[data-theme="dark"] .btn-dark:hover { background: var(--inwin-gris-200); }
.btn-ghost { border-color: var(--inwin-gris-300); color: var(--text-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text-strong); }
.section.on-dark .btn-ghost, .cta-panel .btn-ghost { border-color: #6B7376; color: #ffffff; }
.section.on-dark .btn-ghost:hover, .cta-panel .btn-ghost:hover { border-color: #ffffff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
/* Modificateur : rangee d'actions centree, pour accompagner un .section-head.center */
.btn-row.center { justify-content: center; }

.link-arrow {
  font-weight: 500; text-decoration: none;
  color: var(--color-primary-strong); display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Header et navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--surface-card) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-light { display: none; }
html[data-theme="dark"] .brand .logo-dark { display: block; }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-family: var(--font-sans); font-weight: 500; font-size: 0.97rem;
  color: var(--text-strong); text-decoration: none;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--inwin-gris-100); }
html[data-theme="dark"] .nav-link:hover, html[data-theme="dark"] .nav-item.open > .nav-link { background: #2A2E2E; }
.nav-link .caret { font-size: 0.65em; transition: transform 0.2s var(--ease-out); }
.nav-item.open > .nav-link .caret { transform: rotate(180deg); }
.nav-link.active { box-shadow: inset 0 -3px 0 var(--color-primary); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
/* Bouton d'action Contact dans la barre de navigation */
.nav-link.nav-cta { background: var(--inwin-bleu); color: #ffffff; border-radius: var(--radius-pill); padding: 10px 22px; margin-left: 8px; font-weight: 700; }
.nav-link.nav-cta:hover, .nav-item.open > .nav-link.nav-cta { background: var(--inwin-bleu-700); color: #ffffff; }
.nav-link.nav-cta.active { box-shadow: none; border-radius: var(--radius-pill); }

/* Bascule clair / sombre */
.theme-toggle {
  background: none; border: 1.5px solid var(--border-subtle); color: var(--text-strong);
  width: 42px; height: 42px; border-radius: var(--radius-pill); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--text-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Panneaux déroulants */
.nav-item { position: relative; }
.panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--surface-raised); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 950;
}
.nav-item.open > .panel { opacity: 1; visibility: visible; transform: translateY(0); }

.panel.dropdown { width: 400px; }
.panel-link { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; }
.panel-link:hover { background: var(--inwin-gris-100); }
html[data-theme="dark"] .panel-link:hover { background: #2A2E2E; }
.panel-link .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; flex: none; }
.panel-link strong { font-weight: 700; display: block; font-size: 0.97rem; color: var(--text-strong); }
.panel-link span { font-size: 0.85rem; color: var(--text-muted); }

/* Méga menu agences */
.panel.mega {
  position: fixed; left: 0; right: 0; top: 78px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 40px 0 34px;
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; gap: 30px; }
.mega-col h4 {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle);
}
.mega-col a {
  display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; margin: 0 -8px;
  border-radius: var(--radius-xs); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  color: var(--text-strong);
}
.mega-col a:hover { background: var(--inwin-gris-100); color: var(--color-primary-strong); }
html[data-theme="dark"] .mega-col a:hover { background: #2A2E2E; }
.mega-col a .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--agency-dot, var(--c-conquete)); }
.mega-col a small { display: block; color: var(--text-muted); font-size: 0.77rem; font-weight: 400; }
.mega-aside {
  background: var(--inwin-noir); color: #EFF1F2;
  border-radius: var(--radius-md); padding: 26px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  position: relative; overflow: hidden;
}
.mega-aside::after {
  content: ""; position: absolute; right: -20px; bottom: -20px; width: 140px; height: 100px;
  background-image: radial-gradient(#3A4042 1.4px, transparent 1.4px); background-size: 12px 12px;
}
.mega-aside img { height: 26px; width: auto; align-self: flex-start; }
.mega-aside h4 { font-size: 1.05rem; margin: 0; color: #fff; }
.mega-aside p { font-size: 0.87rem; color: #AEB6B8; margin: 0; }
.mega-aside .btn { align-self: flex-start; padding: 10px 20px; font-size: 0.9rem; position: relative; z-index: 1; }

.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--border-subtle); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem;
  padding: 9px 16px; cursor: pointer; color: var(--text-strong);
}

/* ==========================================================================
   Héros
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 100px 0 88px; }
.hero .blob.b1 { width: 480px; height: 420px; top: -140px; right: -120px; }
.hero .blob.b2 { width: 320px; height: 280px; bottom: -120px; left: -100px; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; }
.hero h1 .hl { color: var(--color-primary); }
.hero .lead { font-size: 1.16rem; max-width: 580px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--text-muted); font-size: 0.9rem; }

/* Cartes empilées du héros : les 3 axes */
.hero-stack { display: grid; gap: 16px; position: relative; }
.axis-chip {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px; display: flex; gap: 16px; align-items: center;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  position: relative; z-index: 1;
}
.axis-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.axis-chip .n {
  font-weight: 700; font-size: 1rem;
  width: 46px; height: 46px; border-radius: var(--radius-sm); flex: none;
  display: grid; place-items: center; color: #fff;
}
.axis-chip strong { font-weight: 700; display: block; color: var(--text-strong); }
.axis-chip span { font-size: 0.87rem; color: var(--text-muted); }
.axis-chip:nth-child(2) .n { background: var(--c-conquete); }
.axis-chip:nth-child(3) .n { background: var(--c-connecter); }
.axis-chip:nth-child(4) .n { background: var(--c-capitaliser); }

/* Héros de page interne : lavis pétale très léger + motifs */
.page-hero { padding: 84px 0 68px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { max-width: 700px; }
.page-hero .blob { width: 420px; height: 360px; top: -120px; right: -100px; }
.page-hero.theme-orange { background: linear-gradient(150deg, var(--inwin-orange-50), transparent 52%) var(--surface-page); --eyebrow-color: var(--inwin-orange); }
.page-hero.theme-blue { background: linear-gradient(150deg, var(--inwin-bleu-50), transparent 52%) var(--surface-page); --eyebrow-color: var(--inwin-bleu); }
.page-hero.theme-teal { background: linear-gradient(150deg, var(--inwin-vert-50), transparent 52%) var(--surface-page); --eyebrow-color: var(--inwin-vert); }
.page-hero.theme-magenta { background: linear-gradient(150deg, var(--inwin-rose-50), transparent 52%) var(--surface-page); --eyebrow-color: var(--inwin-rose); }
.breadcrumb { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Bandeau chiffres (StatPill) ---------- */
.stats-band { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--surface-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 20px; text-align: center; border-left: 1px solid var(--border-subtle); }
.stat:first-child { border-left: none; }
.stat b { font-size: 2.1rem; font-weight: 700; display: block; letter-spacing: -0.02em; color: var(--text-strong); }
.stat:nth-child(1) b { color: var(--seq-1); }
.stat:nth-child(2) b { color: var(--seq-2); }
.stat:nth-child(3) b { color: var(--seq-3); }
.stat:nth-child(4) b { color: var(--seq-4); }
.stat span { color: var(--text-muted); font-size: 0.9rem; }

/* Pilules de preuve dans les cartes cas client */
.stat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.stat-pill {
  border-radius: var(--radius-pill); padding: 7px 14px;
  font-size: 0.85rem; font-weight: 500;
  background: var(--pill-bg, var(--inwin-bleu-50)); color: var(--pill-color, var(--inwin-bleu-700));
}
.stat-pill b { font-weight: 700; }

/* ==========================================================================
   Cartes et grilles
   ========================================================================== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.hidden { display: none !important; }

.card {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, transparent);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card p { color: var(--text-body); font-size: 0.95rem; flex: 1; }
.card .link-arrow { margin-top: auto; }
.card ul.ticks { margin: 4px 0 10px; }

/* Chip d'icône : carré blanc arrondi flottant, picto ligne teinté */
.card-icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--surface-raised);
  box-shadow: var(--shadow-chip);
  margin-bottom: 8px; flex: none;
  color: var(--card-accent, var(--color-primary));
}
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

.accent-orange { --card-accent: var(--inwin-orange); }
.accent-magenta { --card-accent: var(--inwin-rose); }
.accent-raspberry { --card-accent: var(--inwin-rouge); }
.accent-blue { --card-accent: var(--inwin-bleu); }
.accent-teal { --card-accent: var(--inwin-vert); }
.accent-slate { --card-accent: var(--inwin-gris-base); }

/* Étiquette de catégorie (Tag) */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius-pill); padding: 5px 13px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  background: var(--tag-bg, var(--inwin-bleu-50)); color: var(--tag-color, var(--inwin-bleu-700));
  align-self: flex-start;
}

ul.ticks li { padding-left: 28px; position: relative; margin-bottom: 9px; color: var(--text-body); font-size: 0.95rem; }
ul.ticks li b { color: var(--text-strong); }
ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--tick-color, var(--inwin-vert));
}

/* Bloc méthode (audit 5C, Spark, STEP) : media + texte */
.method-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.method-block + .method-block { border-top: 1px solid var(--border-subtle); }
.method-block.flip .method-visual { order: 2; }
.method-visual {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 34px;
  position: relative;
}
.method-tag {
  display: inline-block; font-weight: 500;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
  background: var(--tag-bg, var(--inwin-bleu-50));
  color: var(--tag-color, var(--inwin-bleu-700));
}

/* ---------- Frise 5C ---------- */
.fivec { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fivec-step {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 22px 18px 20px; position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.fivec-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fivec-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--step-color); }
.fivec-step .num { font-weight: 700; font-size: 0.76rem; color: var(--step-color); letter-spacing: 0.12em; text-transform: uppercase; }
.fivec-step h3 { font-size: 1.06rem; margin: 6px 0; }
.fivec-step p { font-size: 0.85rem; color: var(--text-body); margin: 0; }
.s1 { --step-color: var(--c-conquete); }
.s2 { --step-color: var(--c-conversion); }
.s3 { --step-color: var(--c-consolider); }
.s4 { --step-color: var(--c-connecter); }
.s5 { --step-color: var(--c-capitaliser); }

/* ---------- Frise STEP ---------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 26px; }
.step-card .letter {
  font-weight: 700; font-size: 1.7rem;
  width: 56px; height: 56px; border-radius: var(--radius-sm); display: grid; place-items: center;
  color: #fff; margin-bottom: 14px; background: var(--letter-color, var(--inwin-bleu));
}
.step-card h3 { font-size: 1.1rem; }
.step-card p { color: var(--text-body); font-size: 0.92rem; margin: 0; }
.step-card:nth-child(1) .letter { background: var(--seq-1); }
.step-card:nth-child(2) .letter { background: var(--seq-2); }
.step-card:nth-child(3) .letter { background: var(--seq-3); }
.step-card:nth-child(4) .letter { background: var(--seq-4); }

.source-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--inwin-bleu-50);
  border-radius: var(--radius-sm); padding: 18px 20px;
  font-size: 0.9rem; color: var(--text-body); margin-top: 28px;
}
.source-note b { color: var(--text-strong); }
.source-note svg { width: 20px; height: 20px; stroke-width: 1.8; color: var(--inwin-bleu-700); flex: none; margin-top: 2px; }

/* ---------- Cas clients ---------- */
.case-card .tag { margin-bottom: 4px; }
.case-card h3 { margin-bottom: 2px; }
.case-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* ---------- Nuage de villes (section réseau) ---------- */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; position: relative; z-index: 1; }
.pill-cloud span {
  border: 1px solid #3A4042; border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 0.88rem; font-weight: 500;
  color: #C9CDCE; background: rgba(255, 255, 255, 0.03);
}
.pill-cloud span:nth-child(5n+1) { border-color: color-mix(in srgb, var(--seq-1) 55%, transparent); }
.pill-cloud span:nth-child(5n+2) { border-color: color-mix(in srgb, var(--seq-2) 55%, transparent); }
.pill-cloud span:nth-child(5n+3) { border-color: color-mix(in srgb, var(--seq-3) 55%, transparent); }
.pill-cloud span:nth-child(5n+4) { border-color: color-mix(in srgb, var(--seq-4) 55%, transparent); }
.pill-cloud span:nth-child(5n+5) { border-color: color-mix(in srgb, var(--seq-5) 55%, transparent); }

/* ---------- Rubans / listes régions ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.region-card { background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 26px; }
.region-card h3 {
  font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px;
}
.region-card a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 4px; text-decoration: none; border-radius: var(--radius-xs);
  font-weight: 500; font-size: 0.97rem; color: var(--text-strong);
}
.region-card a .ag-lead { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.region-card a .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--agency-dot, var(--c-conquete)); }
.region-card a small { color: var(--text-muted); font-weight: 400; text-align: right; }
.region-card a:hover { color: var(--color-primary-strong); }
.region-card.dark { background: var(--inwin-noir); box-shadow: var(--shadow-md); }
.region-card.dark h3 { color: #96A0A3; border-color: #3A4042; }
.region-card.dark p { color: #AEB6B8; font-size: 0.93rem; }

/* ---------- FAQ / accordéons ---------- */
details.faq {
  background: var(--surface-card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  padding: 4px 22px; margin-bottom: 12px;
}
details.faq summary {
  font-weight: 700; color: var(--text-strong); cursor: pointer;
  padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--color-primary); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--text-body); padding-bottom: 18px; margin: 0; }

/* ---------- Section CTA sombre ---------- */
.cta-panel {
  background: var(--inwin-noir);
  color: #EFF1F2; border-radius: var(--radius-xl); padding: 30px 48px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-panel > div { position: relative; z-index: 1; }
.cta-panel h2 { color: #ffffff; }
.cta-panel .lead { color: #AEB6B8; margin-bottom: 0; }
.cta-panel .btn-row { justify-content: flex-end; }
.cta-panel .ring-decor { right: -60px; top: -70px; width: 340px; opacity: 0.85; }
.cta-panel .dot-veil { width: 30%; height: 60%; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--surface-dark); color: #AEB6B8; padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: #ffffff; font-size: 0.92rem; margin-bottom: 16px; }
.site-footer a { color: #AEB6B8; text-decoration: none; display: block; padding: 5px 0; font-size: 0.92rem; }
.site-footer a:hover { color: #ffffff; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #2A2F31; color: #AEB6B8;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.footer-social a:hover { background: var(--inwin-orange); color: #ffffff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
/* Distinctions et labels du réseau (EcoVadis, Activateur France Num, Qualiopi).
   Les trois marques ont leurs propres chartes et vivent sur fond clair : on les pose
   dans des cartouches blancs au rayon des cartes, alignés en grille pour que les
   légendes restent au fer, et on compense l'écart optique entre un médaillon rond et
   un logotype large par --badge-h. */
.footer-badges { border-top: 1px solid #33383A; padding-top: 26px; margin-bottom: 28px; }
.footer-badge-row { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-badge { display: flex; flex-direction: column; max-width: 210px; }
.footer-badge-mark {
  background: #ffffff; border-radius: var(--radius-md);
  height: 82px; padding: 10px 15px;
  display: flex; align-items: center; justify-content: center;
}
.footer-badge-mark img { height: var(--badge-h, 46px); width: auto; max-width: 100%; }
.footer-badge.is-ecovadis { --badge-h: 62px; }
.footer-badge.is-qualiopi { --badge-h: 46px; }
.footer-badge.is-france-num { --badge-h: 60px; }
.footer-badge b { display: block; color: #ffffff; font-weight: 500; font-size: 0.85rem; margin-top: 12px; }
.footer-badge span { display: block; color: #7C878A; font-size: 0.78rem; }
.footer-badge-note { font-size: 0.78rem; color: #7C878A; margin-top: 18px; max-width: 660px; }

.footer-legal {
  border-top: 1px solid #33383A; padding-top: 20px; margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
}
.footer-legal a { padding: 3px 0; font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid #33383A; padding-top: 22px; margin-top: 14px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.8rem; color: #7C878A;
}

/* Lien LinkedIn du dirigeant dans l'encart interlocuteur des pages agences.
   Reprend la couleur d'accent --dir posée sur la carte (orange par défaut). */
.director-linkedin {
  margin-top: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--dir, var(--inwin-orange));
  background: color-mix(in srgb, var(--dir, var(--inwin-orange)) 13%, var(--surface-card));
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.director-linkedin:hover { background: var(--dir, var(--inwin-orange)); color: #ffffff; transform: translateY(-2px); }
.director-linkedin svg { width: 18px; height: 18px; }

/* ==========================================================================
   Agent conversationnel
   ========================================================================== */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: none; color: #fff; border: none;
  cursor: pointer; padding: 0; border-radius: 50%;
  transition: transform 0.2s var(--ease-out);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab:active { transform: scale(0.95); }
.chat-fab .fab-crown {
  width: 95px; height: 95px; border-radius: 50%; background: #ffffff;
  display: grid; place-items: center; flex: none;
  position: relative;
  box-shadow:
    0 0 3px rgba(35, 153, 214, 0.4),
    0 0 8px rgba(35, 153, 214, 0.3),
    0 0 16px rgba(35, 153, 214, 0.2);
  animation: blueLuminousShine 3.2s ease-in-out infinite;
}
.chat-fab .fab-crown img { width: 60px; height: auto; }
@media (prefers-color-scheme: dark), [data-theme="dark"] {
  .chat-fab .fab-crown {
    background: #ffffff;
    box-shadow:
      0 0 5px rgba(238, 120, 30, 0.8),
      0 0 12px rgba(238, 120, 30, 0.6),
      0 0 24px rgba(238, 120, 30, 0.5),
      0 0 32px rgba(238, 120, 30, 0.3);
    animation: orangeLuminousShine 3.2s ease-in-out infinite;
  }
}
@keyframes blueLuminousHalo {
  0% { opacity: 0.5; transform: scale(1); }
  25% { opacity: 0.8; transform: scale(1.15); }
  50% { opacity: 0.35; transform: scale(0.9); }
  75% { opacity: 0.7; transform: scale(1.2); }
  100% { opacity: 0.5; transform: scale(1); }
}
@keyframes blueLuminousAura {
  0% { opacity: 0.3; transform: scale(1); }
  25% { opacity: 0.5; transform: scale(1.2); }
  50% { opacity: 0.15; transform: scale(0.85); }
  75% { opacity: 0.45; transform: scale(1.25); }
  100% { opacity: 0.3; transform: scale(1); }
}
@keyframes orangeLuminousHalo {
  0% { opacity: 0.4; transform: scale(1); }
  25% { opacity: 0.7; transform: scale(1.15); }
  50% { opacity: 0.25; transform: scale(0.9); }
  75% { opacity: 0.6; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(1); }
}
@keyframes orangeLuminousAura {
  0% { opacity: 0.2; transform: scale(1); }
  25% { opacity: 0.4; transform: scale(1.2); }
  50% { opacity: 0.1; transform: scale(0.8); }
  75% { opacity: 0.35; transform: scale(1.25); }
  100% { opacity: 0.2; transform: scale(1); }
}

.chat-panel {
  position: fixed; right: 26px; bottom: 96px; z-index: 1200;
  width: min(400px, calc(100vw - 40px));
  height: min(610px, calc(100vh - 140px));
  background: var(--surface-raised); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.98);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-head {
  background: var(--inwin-noir); color: #fff; padding: 16px 20px;
  display: flex; align-items: center; gap: 13px;
  position: relative; overflow: hidden;
}
.chat-head::after {
  content: ""; position: absolute; right: 46px; top: -10px; width: 110px; height: 80px;
  background-image: radial-gradient(#3A4042 1.3px, transparent 1.3px); background-size: 11px 11px;
}
.chat-head .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: #ffffff; display: grid; place-items: center;
  position: relative; z-index: 1;
}
.chat-head .avatar img { width: 26px; height: auto; }
.chat-head b { display: block; font-size: 1rem; font-weight: 700; }
.chat-head small { color: #96A0A3; font-size: 0.77rem; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--inwin-vert); }
.chat-close {
  margin-left: auto; background: none; border: none; color: #96A0A3;
  font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: var(--radius-xs);
  position: relative; z-index: 1;
}
.chat-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.chat-body {
  flex: 1; overflow-y: auto; padding: 20px 16px;
  background: var(--surface-page);
  display: flex; flex-direction: column; gap: 12px;
}
.msg { max-width: 86%; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.92rem; line-height: 1.5; }
.msg.bot { background: var(--surface-card); box-shadow: var(--shadow-xs); border-bottom-left-radius: var(--radius-xs); align-self: flex-start; color: var(--text-body); }
.msg.user { background: var(--inwin-bleu); color: #fff; border-bottom-right-radius: var(--radius-xs); align-self: flex-end; }
.msg.bot b { color: var(--text-strong); }
.msg.bot a { color: var(--color-primary-strong); font-weight: 500; }
.msg.bot ul { padding-left: 18px; list-style: disc; margin: 6px 0; }
.msg.bot li { margin-bottom: 4px; }
.msg.bot p { margin: 0 0 8px; }
.msg.bot p:last-child { margin-bottom: 0; }

.msg-links { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.msg-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface-page); border-radius: var(--radius-sm);
  padding: 10px 13px; text-decoration: none; font-weight: 500; font-size: 0.87rem;
  color: var(--text-strong) !important;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s var(--ease-out);
}
.msg-links a::after { content: "→"; color: var(--color-primary); }
.msg-links a:hover { border-color: var(--color-primary); }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px; }
.chip {
  background: var(--surface-card); border: 1.5px solid var(--border-subtle); border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 500; padding: 8px 14px; cursor: pointer;
  font-family: var(--font-sans); color: var(--text-strong);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary-strong); }
.chip:active { transform: scale(0.97); }

.typing { display: inline-flex; gap: 5px; padding: 14px 16px; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.chat-form { display: flex; gap: 10px; padding: 14px; background: var(--surface-raised); border-top: 1px solid var(--border-subtle); }
.chat-form input {
  flex: 1; border: 1.5px solid var(--border-subtle); border-radius: var(--radius-pill);
  padding: 12px 18px; font-size: 0.94rem; font-family: var(--font-sans);
  background: var(--surface-card); color: var(--text-strong);
}
.chat-form input::placeholder { color: var(--text-muted); }
.chat-form input:focus { outline: none; border-color: var(--color-primary); }
.chat-form button {
  background: var(--inwin-bleu); color: #fff; border: none; border-radius: 50%;
  width: 46px; height: 46px; cursor: pointer; flex: none;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.chat-form button:hover { background: var(--inwin-bleu-700); }
.chat-form button:active { transform: scale(0.97); }
.chat-form button svg { width: 18px; height: 18px; }

/* ==========================================================================
   Effet bougie : halo de lumière tamisée qui suit le curseur (assets/candle.js)
   ========================================================================== */
.candle-light {
  position: fixed; left: 0; top: 0;
  width: 0; height: 0;
  z-index: 1500;
  pointer-events: none;
  will-change: transform, opacity;
  --candle-strength: 0.5;   /* discret sur fond clair */
}
html[data-theme="dark"] .candle-light { --candle-strength: 1; }
.candle-light .halo,
.candle-light .core {
  position: absolute; left: 0; top: 0;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: var(--candle-strength);
}
.candle-light .halo {
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  background: radial-gradient(circle,
    rgba(255, 186, 112, 0.30) 0%,
    rgba(255, 158, 76, 0.13) 34%,
    rgba(244, 140, 66, 0.05) 58%,
    rgba(244, 140, 66, 0) 74%);
}
.candle-light .core {
  width: 110px; height: 110px;
  margin: -55px 0 0 -55px;
  background: radial-gradient(circle,
    rgba(255, 214, 150, 0.42) 0%,
    rgba(255, 186, 112, 0.16) 45%,
    rgba(255, 186, 112, 0) 72%);
}

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat-fab .pulse { animation: none; }
  body { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .fivec { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav { position: static; }
  .nav-list {
    display: none;
    position: absolute; left: 0; right: 0; top: 78px;
    background: var(--surface-raised); border-bottom: 1px solid var(--border-subtle);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 1.05rem; }
  .panel, .panel.mega {
    position: static; opacity: 1; visibility: hidden; transform: none;
    display: none; box-shadow: none; border-left: 3px solid var(--border-subtle);
    border-radius: 0; padding: 4px 0 12px 16px; width: 100%;
  }
  .nav-item.open > .panel { display: block; visibility: visible; }
  .mega-grid { grid-template-columns: 1fr; gap: 18px; }
  .mega-grid.container { padding: 0; }
  .mega-aside { flex-direction: column; align-items: flex-start; }
  .hero-grid, .method-block, .cta-panel { grid-template-columns: 1fr; }
  .method-block.flip .method-visual { order: 0; }
  .cta-panel .btn-row { justify-content: flex-start; }
  .cards-3, .cards-2, .region-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--border-subtle); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .step-grid, .fivec, .cards-4, .footer-grid { grid-template-columns: 1fr; }
  .footer-badge-row { gap: 14px; }
  .chat-panel { right: 12px; bottom: 88px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .cta-panel { padding: 24px 24px; }
  .brand img { height: 38px; }
}

/* ============================================================
   Blog : cartes de la liste et corps d'article
   ============================================================ */
.post-card { display: flex; flex-direction: column; }
.post-card h3 { margin-top: 4px; }
.post-card .link-arrow { margin-top: auto; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-size: 0.82rem; color: var(--text-muted); margin: 4px 0 14px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg, .post-meta i { width: 15px; height: 15px; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body > .lead { font-size: 1.16rem; color: var(--text-strong); margin-bottom: 28px; }
.article-body h2 { font-size: 1.5rem; color: var(--text-strong); margin: 40px 0 14px; }
.article-body h3 { font-size: 1.14rem; color: var(--text-strong); margin: 26px 0 10px; }
.article-body p { color: var(--text-body); line-height: 1.8; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { color: var(--text-body); line-height: 1.75; margin-bottom: 9px; }
.article-body a { color: var(--color-primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--color-accent); }
.article-body strong, .article-body b { color: var(--text-strong); }
.article-body blockquote {
  margin: 24px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--color-accent);
  color: var(--text-strong); font-size: 1.08rem; font-style: italic;
}
.article-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-top: 14px; font-size: 0.9rem; color: var(--text-muted);
}
.article-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Newsletter dans le footer
   ============================================================ */
.footer-news {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 48px; align-items: start;
  padding-bottom: 34px; margin-bottom: 6px; border-bottom: 1px solid #33383A;
}
.footer-news h3 { color: #ffffff; font-size: 1.15rem; margin-bottom: 8px; }
.footer-news p { font-size: 0.9rem; color: #AEB6B8; max-width: 420px; }
.news-form { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 12px 16px; border-radius: var(--radius-pill);
  border: 1px solid #3D4548; background: #1A1E1F; color: #ffffff; font: inherit; font-size: 0.92rem;
}
.news-form input[type="email"]::placeholder { color: #7C878A; }
.news-form input[type="email"]:focus { outline: none; border-color: var(--inwin-bleu); }
.news-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem; color: #8B9497; line-height: 1.5; }
.news-consent input { margin-top: 2px; flex-shrink: 0; }
.news-consent a { display: inline; padding: 0; color: #AEB6B8; text-decoration: underline; }
.news-consent a:hover { color: #ffffff; }
.news-feedback { font-size: 0.82rem; color: var(--inwin-vert); min-height: 1em; }

@media (max-width: 760px) {
  .footer-news { grid-template-columns: 1fr; }
}

/* ============================================================
   Pages légales (mentions, confidentialité, CGU, cookies)
   Colonne de texte lisible dans le design system Inwin.
   ============================================================ */
.legal-doc { max-width: 840px; margin: 0 auto; }
.legal-doc h2 {
  font-size: 1.45rem; color: var(--text-strong);
  margin: 48px 0 16px; padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.legal-doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-doc h3 { font-size: 1.1rem; color: var(--text-strong); margin: 28px 0 10px; }
.legal-doc p { color: var(--text-body); line-height: 1.75; margin-bottom: 16px; }
.legal-doc ul { margin: 0 0 18px; padding-left: 22px; }
.legal-doc ul li { color: var(--text-body); line-height: 1.7; margin-bottom: 9px; }
.legal-doc a { color: var(--color-primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: var(--color-accent); }
.legal-doc strong, .legal-doc b { color: var(--text-strong); }

/* Encart d'identification / coordonnées */
.legal-card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 26px 28px; margin: 8px 0 24px;
}
.legal-card dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0; }
.legal-card dt { color: var(--text-muted); font-size: 0.92rem; }
.legal-card dd { color: var(--text-strong); font-size: 0.95rem; margin: 0; font-weight: 500; }

/* Tableau (durées de conservation, cookies) */
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 0.92rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-subtle);
  vertical-align: top; line-height: 1.55;
}
.legal-table th { color: var(--text-strong); font-weight: 700; background: var(--surface-page); }
.legal-table td { color: var(--text-body); }
.legal-table-wrap { overflow-x: auto; }

.legal-updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted); margin-top: 32px;
}

@media (max-width: 560px) {
  .legal-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-card dt { margin-top: 12px; }
  .legal-card dt:first-child { margin-top: 0; }
}

/* ============================================================
   Formulaire Plezi (embed marketing automation)
   Le script Plezi injecte son propre markup dans <form id="plz-form-...">.
   On habille ce markup dans le design system Inwin en ciblant les
   éléments de formulaire (light DOM), plus les classes .plezi-* connues,
   sans dépendre d'une structure exacte qui peut évoluer côté Plezi.
   ============================================================ */
.plezi-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px;
}
.plezi-form-wrap * { box-sizing: border-box; font-family: var(--font-sans); }

/* Groupes / lignes de champs */
.plezi-form-wrap form { display: flex; flex-direction: column; gap: 18px; }

/* Libellés */
.plezi-form-wrap label {
  display: block;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 6px;
}

/* Champs texte, email, tel, select, textarea */
.plezi-form-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.plezi-form-wrap select,
.plezi-form-wrap textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit; font-size: 0.95rem;
  color: var(--text-strong);
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.plezi-form-wrap textarea { min-height: 120px; resize: vertical; }
/* Menu déroulant "Trouver mon agence" : la valeur affichée et les options
   suivent le thème (agences noires en mode jour, blanches en mode nuit).
   !important pour l'emporter sur les styles injectés par le script Plezi. */
.plezi-form-wrap select { color: var(--inwin-noir) !important; }
html[data-theme="dark"] .plezi-form-wrap select { color: #ffffff !important; }
.plezi-form-wrap select option {
  color: var(--inwin-noir) !important;
  background: #ffffff !important;
}
html[data-theme="dark"] .plezi-form-wrap select option {
  color: #ffffff !important;
  background: #363C3C !important;
}
.plezi-form-wrap input::placeholder,
.plezi-form-wrap textarea::placeholder { color: var(--text-muted); }
.plezi-form-wrap input:focus,
.plezi-form-wrap select:focus,
.plezi-form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--inwin-bleu-50);
}

/* Cases à cocher / consentement */
.plezi-form-wrap input[type="checkbox"],
.plezi-form-wrap input[type="radio"] {
  width: 16px; height: 16px; margin-top: 3px;
  accent-color: var(--color-primary); flex-shrink: 0;
}
.plezi-form-wrap label:has(> input[type="checkbox"]),
.plezi-form-wrap label:has(> input[type="radio"]) {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; font-size: 0.85rem; color: var(--text-body); line-height: 1.5;
  margin-bottom: 0;
}
.plezi-form-wrap a { color: var(--color-primary); text-decoration: underline; }

/* Bouton d'envoi -> style .btn-primary */
.plezi-form-wrap button,
.plezi-form-wrap input[type="submit"],
.plezi-form-wrap input[type="button"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.98rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  background: var(--inwin-bleu); color: #ffffff;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
}
.plezi-form-wrap button:hover,
.plezi-form-wrap input[type="submit"]:hover,
.plezi-form-wrap input[type="button"]:hover {
  background: var(--inwin-bleu-700);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.plezi-form-wrap button:active,
.plezi-form-wrap input[type="submit"]:active { transform: scale(0.97); }

/* Messages de validation / erreur Plezi */
.plezi-form-wrap .error,
.plezi-form-wrap [class*="error"] { color: var(--inwin-rouge); font-size: 0.82rem; }

/* Mode sombre : plus de contraste. Cadre en gris Inwin, champs en gris clair
   (plus clairs que la carte) pour bien détacher les zones de saisie. */
html[data-theme="dark"] .plezi-form-wrap {
  border-color: var(--inwin-gris);   /* #3D3E3E, le gris d'Inwin */
  border-width: 1.5px;
}
html[data-theme="dark"] .plezi-form-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-theme="dark"] .plezi-form-wrap select,
html[data-theme="dark"] .plezi-form-wrap textarea {
  background: #363C3C;               /* gris clair sur fond sombre */
  border-color: #4C5354;
  color: var(--text-strong);
}
html[data-theme="dark"] .plezi-form-wrap input:focus,
html[data-theme="dark"] .plezi-form-wrap select:focus,
html[data-theme="dark"] .plezi-form-wrap textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--inwin-bleu-50);
}

/* ========== Carousel de logos clients ========== */
.logos-carousel-section {
  background: var(--surface-alt);
  padding: 48px 0;
  overflow: hidden;
}

.logos-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  background: var(--surface-alt);
}

.logos-carousel {
  position: relative;
  width: 100%;
}

.logos-track {
  display: flex;
  animation: scroll-logos 60s linear infinite;
  width: fit-content;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 500px;
  height: 250px;
  padding: 0 24px;
}

.logo-item img {
  max-width: 90%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.3) brightness(1.1);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.logo-item:hover img {
  filter: grayscale(0%) contrast(1.2);
  opacity: 1;
}

/* Mode sombre : inverser les contrastes pour lisibilité */
html[data-theme="dark"] .logo-item img {
  filter: grayscale(100%) invert(1) brightness(0.9) contrast(1.1);
  opacity: 0.85;
}

html[data-theme="dark"] .logo-item:hover img {
  filter: grayscale(0%) invert(1) brightness(0.9) contrast(1.1);
  opacity: 1;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .logos-carousel-section {
    padding: 32px 0;
  }

  .logo-item {
    width: 425px;
    height: 212px;
    padding: 0 18px;
  }

  .logo-item img {
    max-height: 162px;
  }
}

@media (max-width: 560px) {
  .plezi-form-wrap { padding: 28px 20px; }

  .logos-carousel-section {
    padding: 24px 0;
  }

  .logo-item {
    width: 350px;
    height: 175px;
    padding: 0 12px;
  }

  .logo-item img {
    max-height: 137px;
  }
}
