/* ==========================================================================
   Fidwork — feuille de style du site
   Charte graphique sept. 2026 : DM Sans, bleu nuit #050a30, orange #ff751f
   (Fidwork Pro), violet #6b4ad4 (Fidwork Compliance).
   Toute couleur passe par une variable de :root ; le thème sombre redéfinit
   les mêmes variables.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Turc (ğ, ş, İ…), norvégien et autres caractères étendus. */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette de la charte */
  --navy: #050a30;
  --orange: #ff751f;
  --orange-dark: #e8600c;
  --orange-glow: rgba(255, 117, 31, 0.28);
  --android: #3ddc84;
  --violet: #6b4ad4;
  --peach: #f5cfaf;
  --lavender: #f2effa;
  --lavender-2: #e6e1f3;
  --cta-band: #e3daf2;

  /* Rôles */
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-lav: var(--lavender);
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --text: var(--navy);
  --text-muted: #5e5a68;
  --border: #e7e5ee;
  --border-strong: #cfcadf;
  --pro: var(--orange);
  --pro-text: #d85f10;
  --pro-soft: var(--peach);
  --pro-tint: #fdeee2;
  --comp: var(--violet);
  --comp-text: var(--violet);
  --comp-soft: var(--lavender-2);
  --band: var(--navy);
  --on-band: #ffffff;
  --on-band-muted: #b9bcd3;
  --btn-dark: var(--navy);
  --btn-dark-text: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.86);
  --shadow: 0 1px 2px rgba(5, 10, 48, 0.04), 0 8px 24px rgba(5, 10, 48, 0.06);
  --shadow-lg: 0 2px 4px rgba(5, 10, 48, 0.04), 0 18px 48px rgba(5, 10, 48, 0.12);
  --logo-filter: none;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a26;
    --bg-alt: #0a0f33;
    --bg-lav: #110f3c;
    --surface: #0f1540;
    --surface-2: #141b4b;
    --text: #eef0fa;
    --text-muted: #a8a9c2;
    --border: #212a5c;
    --border-strong: #323d78;
    --pro: #ff7f2e;
    --pro-text: #ff9a55;
    --pro-soft: rgba(255, 117, 31, 0.22);
    --pro-tint: rgba(255, 117, 31, 0.1);
    --comp: #8f72f0;
    --comp-text: #ab95ff;
    --comp-soft: rgba(143, 114, 240, 0.22);
    --cta-band: #0d1240;
    --band: #03061d;
    --on-band-muted: #a8a9c2;
    --btn-dark: #eef0fa;
    --btn-dark-text: #050a30;
    --header-bg: rgba(6, 10, 38, 0.84);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.45);
    /* Logos clients (texte noir ou marine) passés en blanc monochrome. */
    --logo-filter: brightness(0) invert(1);
    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 16px; text-wrap: pretty; }

h1 em, h2 em { font-style: normal; color: var(--pro); }
.theme-comp h1 em, .theme-comp h2 em { color: var(--comp-text); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--btn-dark);
  color: var(--btn-dark-text);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

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

/* Sur-titre : DM Sans Regular, espacement 400 (charte) */
.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pro-text);
}
.theme-comp .eyebrow, .eyebrow.is-comp { color: var(--comp-text); }

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  --btn-border: var(--orange);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
/* Reflet qui balaie le bouton au survol */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 117, 31, 0.28); background: var(--orange-dark); border-color: var(--orange-dark); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-dark { --btn-bg: var(--btn-dark); --btn-fg: var(--btn-dark-text); --btn-border: var(--btn-dark); }
.btn-dark:hover { background: var(--btn-dark); border-color: var(--btn-dark); box-shadow: 0 10px 24px rgba(5, 10, 48, 0.25); }

.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; box-shadow: none; }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pro-text);
  text-decoration: none;
}
.link-arrow.is-comp { color: var(--comp-text); }
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(5, 10, 48, 0.06); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .wrap { height: 62px; }

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--comp);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--comp-text); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.lang-toggle:hover { border-color: var(--border-strong); background: var(--surface-2); }
.lang-toggle .chev { transition: transform 0.3s var(--ease); }
.lang.is-open .lang-toggle .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.25s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { color: var(--comp-text); font-weight: 700; }
.lang-code {
  display: inline-block;
  min-width: 26px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Barre de progression de lecture */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--violet));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0.35s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { display: block; border: 0; padding-top: 18px; }
  .main-nav .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1241px) { .main-nav .nav-cta { display: none; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-lav { background: var(--bg-lav); }
.section + .section:not(.section-alt):not(.section-lav):not(.band) { border-top: 1px solid var(--border); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { max-width: 22ch; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 8px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.is-reversed > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.is-reversed > :first-child { order: 0; }
}

/* --------------------------------------------------------------------------
   Héros
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 560px; padding: clamp(64px, 10vw, 120px) 0; }
.hero-copy .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Héros sombre de l'accueil : la composition (photo + formes de la charte)
   est fondue dans le fond bleu nuit par un masque à gauche. */
.hero-dark { background: var(--navy); color: #fff; }
.hero-dark .lead { color: #d6d8ea; }
.hero-dark .eyebrow { color: #c9c6dc; }
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(72%, 1100px);
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-light { background: #f7f7f7; }
@media (prefers-color-scheme: dark) {
  .hero-light { background: var(--navy); color: #fff; }
  .hero-light .lead { color: #d6d8ea; }
}
@media (max-width: 860px) {
  .hero-art { position: relative; width: 100%; height: 300px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .hero-copy { padding-bottom: 32px; }
}

/* Héros des pages produit : texte à gauche, photo pleine hauteur à droite */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  min-height: min(620px, 82vh);
  border-bottom: 1px solid var(--border);
}
.hero-split .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  /* Aligne le texte sur la grille du reste de la page */
  padding: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 72px) clamp(48px, 7vw, 88px) max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero-split .hero-copy > * { max-width: 560px; }
.hero-split .product-logo { height: 34px; width: auto; margin-bottom: 18px; align-self: flex-start; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats strong { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--pro-text); }
.theme-comp .hero-stats strong { color: var(--comp-text); }
.hero-stats span { display: block; max-width: 20ch; font-size: 0.92rem; line-height: 1.4; color: var(--text); }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-split .hero-copy { margin: 0; max-width: none; padding: 48px var(--gutter); }
  .hero-photo { height: 340px; order: -1; }
}

/* Héros simple (cas clients) */
.hero-plain {
  background: linear-gradient(180deg, var(--bg-lav), var(--bg));
  padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 6vw, 72px);
}
.hero-plain h1 { max-width: 20ch; }

/* Animation d'entrée des héros (lignes du titre, puis texte, puis visuel) */
.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 100ms);
}
.js .hero.is-ready [data-hero] { opacity: 1; transform: none; }
.js .hero .hero-art, .js .hero .hero-photo img {
  opacity: 0;
  transform: scale(1.06) translateX(24px);
  transition: opacity 1.4s var(--ease), transform 1.8s var(--ease);
}
.js .hero.is-ready .hero-art, .js .hero.is-ready .hero-photo img { opacity: 1; transform: none; }
/* Très léger zoom continu sur le visuel, une fois entré */
.hero.is-ready .hero-art img, .hero.is-ready .hero-photo img { animation: slow-zoom 24s ease-in-out 2s infinite alternate; }
@keyframes slow-zoom { to { transform: scale(1.05); } }

/* --------------------------------------------------------------------------
   Bandeau logos clients
   -------------------------------------------------------------------------- */

.logos { border-bottom: 1px solid var(--border); background: var(--bg); }
.logos .wrap { padding-top: 26px; padding-bottom: 26px; }
.logos-label { display: block; margin-bottom: 18px; font-size: 0.92rem; font-weight: 700; color: var(--text-muted); }
/* Une seule ligne qui défile en continu (site.js) ; les flèches accélèrent
   le défilement dans leur sens. Sans JS : ligne défilable à la main. */
.logos-row { display: flex; align-items: center; gap: 12px; }
.logos-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logos-viewport::-webkit-scrollbar { display: none; }
.js .logos-viewport { overflow: hidden; }
.logos ul {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  margin: 0;
  padding: 8px 28px;
  list-style: none;
}
.logos li { flex-shrink: 0; }
.logos img {
  display: block;
  height: var(--h, 30px);
  width: auto;
  filter: var(--logo-filter) grayscale(1);
  opacity: 0.72;
  transition: filter 0.4s, opacity 0.4s, transform 0.4s var(--ease);
}
.logos img.is-mid { --h: 36px; }
.logos img.is-tall { --h: 42px; }
.logos li:hover img { filter: var(--logo-filter); opacity: 1; transform: scale(1.05); }
.logos-nav {
  display: none;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.js .logos-nav { display: grid; }
.logos-nav:hover, .logos-nav.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.logos-nav:active { transform: scale(0.92); }
@media (prefers-color-scheme: dark) {
  .logos-nav:hover, .logos-nav.is-active { background: var(--orange); border-color: var(--orange); color: var(--navy); }
}
@media (max-width: 860px) {
  .logos ul { gap: 36px; }
  .logos img { height: calc(var(--h, 30px) * 0.8); }
  .logos-nav { width: 32px; height: 32px; }
}

/* --------------------------------------------------------------------------
   Constat (accueil)
   -------------------------------------------------------------------------- */

.problem-list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.problem-list li {
  position: relative;
  padding-left: 22px;
}
.problem-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--orange), var(--violet));
  transform-origin: top;
  transition: transform 0.8s var(--ease) calc(var(--d, 0ms) + 200ms);
}
.js .problem-list li::before { transform: scaleY(0); }
.js .problem-list li.is-in::before { transform: none; }
.problem-list h3 { font-size: 1.08rem; margin-bottom: 6px; }
.problem-list p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.section-alt .card, .section-lav .card { border-color: transparent; box-shadow: var(--shadow); }

.icon {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--pro-soft);
  color: var(--navy);
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.theme-comp .icon { background: var(--comp-soft); color: var(--comp-text); }
@media (prefers-color-scheme: dark) { .icon { color: var(--pro-text); } }
.card:hover .icon { transform: rotate(-6deg) scale(1.08); background: var(--orange); color: #fff; }
.theme-comp .card:hover .icon { background: var(--violet); color: #fff; }
.icon svg { width: 20px; height: 20px; }

.feature-card h3 { font-size: 1.05rem; }
.feature-card .icon { width: 34px; height: 34px; margin-bottom: 14px; }
.feature-card .icon svg { width: 17px; height: 17px; }
.subhead { font-size: 1.1rem; margin: clamp(48px, 6vw, 72px) 0 18px; }

/* Listes à coches */
.checks { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 0.95rem; }
.checks li svg {
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  color: var(--pro);
}
.theme-comp .checks li svg, .checks.is-comp li svg { color: var(--comp-text); }
.checks strong { font-weight: 700; }

/* Animation des coches : le trait se dessine */
.js .checks li svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.6s var(--ease);
}
.js .checks.is-in li svg path { stroke-dashoffset: 0; }
.js .checks.is-in li:nth-child(2) svg path { transition-delay: 0.12s; }
.js .checks.is-in li:nth-child(3) svg path { transition-delay: 0.24s; }
.js .checks.is-in li:nth-child(4) svg path { transition-delay: 0.36s; }
.js .checks.is-in li:nth-child(5) svg path { transition-delay: 0.48s; }
.js .checks.is-in li:nth-child(n+6) svg path { transition-delay: 0.6s; }

/* Cartes « Je suis prestataire / donneur d'ordre » */
.audience-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.audience-card .media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.audience-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.audience-card:hover .media img { transform: scale(1.06); }
.audience-card .tag {
  position: absolute;
  left: 16px; top: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}
.audience-card .body { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; flex: 1; }
.audience-card .body .link-arrow { margin-top: auto; }
.audience-card .product-logo { height: 26px; width: auto; margin-bottom: 16px; align-self: flex-start; }

/* Logos produits : version blanche en thème sombre */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

/* --------------------------------------------------------------------------
   Statistiques
   -------------------------------------------------------------------------- */

.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pro);
  font-variant-numeric: tabular-nums;
}
.stat.is-comp strong { color: var(--comp-text); }
.stat .label { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.stat .source { display: block; font-size: 0.82rem; color: var(--text-muted); }

.stats-inline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.stats-inline strong { display: block; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; color: var(--pro-text); font-variant-numeric: tabular-nums; }
.stats-inline .is-comp strong { color: var(--comp-text); }
.stats-inline span { display: block; max-width: 24ch; margin-top: 8px; font-size: 0.95rem; line-height: 1.4; color: var(--text); }
@media (max-width: 760px) { .stats-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Bandeau témoignage
   -------------------------------------------------------------------------- */

.band { background: var(--band); color: var(--on-band); }
.quote-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); min-height: 340px; overflow: hidden; }
.quote-band .media { position: relative; overflow: hidden; }
.quote-band .media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
/* Étiquette QR : centre le recadrage sur le QR code plutôt que sur la photo */
.quote-band .media img.focus-qr { object-position: 53% 80%; }
.quote-band blockquote { margin: 0; padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 96px); align-self: center; }
.quote-mark { width: 30px; height: 24px; color: var(--orange); margin-bottom: 20px; }
.theme-comp .quote-mark { color: var(--comp-text); }
.quote-band p { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.32; max-width: 30ch; }
/* Logo de la société sous chaque témoignage (anonyme) : blanc sur fond sombre */
/* Hauteur et largeur plafonnées : logos compacts et logos très larges à poids visuel égal */
.quote-logo { display: block; width: auto; height: auto; max-height: 30px; max-width: 140px; margin-top: 24px; filter: brightness(0) invert(1); opacity: 0.9; }
.js .quote-band .quote-mark { transform: scale(0.4); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.5s; }
.js .quote-band .is-in .quote-mark { transform: none; opacity: 1; }
@media (max-width: 760px) {
  .quote-band { grid-template-columns: minmax(0, 1fr); }
  .quote-band .media { height: 240px; }
  .quote-band .media:has(.focus-qr) { height: 300px; }
}

.person { display: flex; align-items: center; gap: 14px; }
.person img, .person .initials { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.person .initials { display: inline-grid; place-items: center; background: var(--comp-soft); color: var(--comp-text); font-weight: 700; font-size: 0.85rem; }
.person strong { display: block; font-size: 0.92rem; }
.person span { display: block; font-size: 0.9rem; color: var(--on-band-muted); }
.card .person span, .case-quote .person span { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Étapes « De la demande à la preuve »
   -------------------------------------------------------------------------- */

.steps { position: relative; }
.step .media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--surface-2);
}
.step .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.step:hover .media img { transform: scale(1.06); }
.step-num { display: block; font-size: 0.8rem; font-weight: 700; color: var(--comp-text); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.steps-note { margin-top: 36px; font-weight: 700; color: var(--text-muted); }

/* Ligne de progression qui relie les étapes */
.progress-line {
  position: relative;
  height: 2px;
  margin: 0 0 22px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--orange), var(--violet));
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.2s;
}
.js .progress-line::after { transform: scaleX(0); }
.js .is-in .progress-line::after, .js .progress-line.is-in::after { transform: none; }

/* Balayage du QR code : un trait passe sur l'étiquette, comme un scan */
.scan { position: relative; overflow: hidden; }
.scan::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%;
  top: 25%;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px 3px rgba(255, 117, 31, 0.55);
  opacity: 0;
}
.scan.is-in::after { animation: scan 3.6s var(--ease) 0.8s infinite; }
@keyframes scan {
  0% { top: 28%; opacity: 0; }
  10% { opacity: 1; }
  45% { top: 82%; opacity: 1; }
  55%, 100% { top: 82%; opacity: 0; }
}

/* --------------------------------------------------------------------------
   Fonctionnalités clés (accueil)
   -------------------------------------------------------------------------- */

.showcase-card { padding: 18px; }
.showcase-card .media { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; aspect-ratio: 4 / 3; }
.showcase-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.showcase-card:hover .media img { transform: scale(1.04); }
.showcase-card .inner { padding: 0 10px 10px; }
.showcase-card .kicker { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Visuels d'application (téléphone, écrans)
   -------------------------------------------------------------------------- */

.device { display: grid; place-items: center; }
.device img { filter: drop-shadow(0 24px 40px rgba(5, 10, 48, 0.18)); }
.device-phone img { max-height: 520px; width: auto; }
.floating { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Illustration du bordereau de prix */
.bordereau { padding: 22px 22px 16px; }
.bordereau-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.bordereau-head strong { font-size: 0.92rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--comp-soft);
  color: var(--comp-text);
}
.bordereau table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.bordereau th { text-align: left; font-weight: 400; color: var(--text-muted); font-size: 0.75rem; padding: 8px 10px; }
.bordereau td { padding: 12px 10px; border-top: 1px solid var(--border); }
.bordereau td:nth-child(3), .bordereau th:nth-child(3) { text-align: right; }
.bordereau td:last-child, .bordereau th:last-child { text-align: center; width: 64px; }
.bordereau td:last-child svg { width: 16px; height: 16px; color: var(--pro); display: inline-block; }
.bordereau .note { margin: 12px 0 0; font-size: 0.75rem; color: var(--text-muted); }
.js .bordereau tbody tr { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.js .bordereau.is-in tbody tr { opacity: 1; transform: none; }
.js .bordereau td:last-child svg { transform: scale(0); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.js .bordereau.is-in td:last-child svg { transform: none; }
.js .bordereau.is-in tbody tr:nth-child(1), .js .bordereau.is-in tbody tr:nth-child(1) svg { transition-delay: 0.15s; }
.js .bordereau.is-in tbody tr:nth-child(2) { transition-delay: 0.3s; }
.js .bordereau.is-in tbody tr:nth-child(3) { transition-delay: 0.45s; }
.js .bordereau.is-in tbody tr:nth-child(4) { transition-delay: 0.6s; }
.js .bordereau.is-in tbody tr:nth-child(1) svg { transition-delay: 0.7s; }
.js .bordereau.is-in tbody tr:nth-child(2) svg { transition-delay: 0.85s; }
.js .bordereau.is-in tbody tr:nth-child(3) svg { transition-delay: 1s; }
.js .bordereau.is-in tbody tr:nth-child(4) svg { transition-delay: 1.15s; }

.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 96px); }
.feature-row h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.feature-row p { color: var(--text-muted); }

/* Métiers (échafaudage / calorifuge) */
.trade-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; }
.trade-card .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.trade-card .media img { width: 100%; height: 100%; object-fit: cover; }
.trade-card .checks { margin: 0; }
.trade-card .checks li { font-size: 0.88rem; }
@media (max-width: 480px) { .trade-card { grid-template-columns: minmax(0, 1fr); } .trade-card .media { aspect-ratio: 16 / 9; } }

.footnote { margin-top: 28px; font-size: 0.82rem; color: var(--text-muted); }

/* Références clients sur la page Compliance */
.ref-card img { height: 30px; width: auto; margin-bottom: 14px; filter: var(--logo-filter); }

/* --------------------------------------------------------------------------
   Offre : 4 blocs, 5 étapes, comparatif
   -------------------------------------------------------------------------- */

.offer-card { background: var(--bg-alt); border-color: transparent; }
.offer-card.is-highlight { background: var(--pro-soft); }
.offer-card .step-num { color: var(--comp-text); }
.offer-card.is-highlight .step-num { color: var(--text); }
.offer-card h3 { margin-bottom: 2px; }
.offer-card .sub { display: block; font-size: 0.88rem; margin-bottom: 22px; }
.offer-card .checks li { font-size: 0.86rem; color: var(--text-muted); }
.offer-card .checks li svg { color: var(--comp-text); }
.offer-card.is-highlight .checks li { color: var(--text); }
.offer-card.is-highlight .checks li svg { color: var(--text); }
/* Sous les cartes : plateformes (sous « Abonnement ») et intégrations (sous « Options ») */
.offer-logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 16px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.platforms svg { width: 26px; height: 26px; flex-shrink: 0; }
.platforms .is-android svg { color: var(--android); }
.platforms .is-ios svg { color: var(--text); }
.platforms .is-web svg { width: 24px; height: 24px; color: var(--comp-text); }
.integrations { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-left: auto; }
.integrations img { height: 40px; width: auto; border-radius: 4px; }
.integration-edf { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; color: var(--text); }
.integration-edf img { border-radius: 0; }
@media (prefers-color-scheme: dark) {
  /* Lettres bleu nuit du logo EDF : pastille blanche, comme le bloc SAP */
  .integration-edf img { box-sizing: content-box; height: 34px; padding: 3px 5px; border-radius: 4px; background: #fff; }
}

.timeline { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 20px; padding-top: 34px; }
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  border-radius: 2px;
}
.timeline::before { background: var(--border-strong); }
.timeline::after { background: linear-gradient(90deg, var(--violet), var(--orange)); transform-origin: left; transition: transform 1.8s var(--ease) 0.2s; }
.js .timeline::after { transform: scaleX(0); }
.js .timeline.is-in::after { transform: none; }
.timeline li { position: relative; list-style: none; }
.timeline li::before {
  content: "";
  position: absolute;
  top: -40px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--comp);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.timeline li:last-child::before { background: var(--orange); }
.js .timeline li::before { transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i, 0) * 280ms + 300ms); }
.js .timeline.is-in li::before { transform: none; }
.timeline { margin: 0; padding-left: 0; }
.timeline .when { display: block; font-size: 0.9rem; font-weight: 700; color: var(--comp-text); }
.timeline li:last-child .when { color: var(--pro-text); }
.timeline h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.timeline p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }
.timeline p strong { color: var(--comp-text); }
/* Histoire (À propos) : l'orange parcourt les étapes en 5 s, reste 10 s sur la
   dernière, puis recommence. Cycle de 15 s ; chaque étape est décalée de 1,25 s
   par un délai négatif (--i posé par site.js). */
.timeline-cycle.is-in li::before { animation: tl-dot 15s linear infinite; animation-delay: calc(var(--i, 0) * 1.25s - 15s); }
.timeline-cycle.is-in li .when { animation: tl-when 15s linear infinite; animation-delay: calc(var(--i, 0) * 1.25s - 15s); }
.timeline-cycle.is-in li:last-child::before { animation-name: tl-dot-last; animation-delay: 0s; }
.timeline-cycle.is-in li:last-child .when { animation-name: tl-when-last; animation-delay: 0s; }
@keyframes tl-dot {
  0%, 9.5%, 100% { background-color: var(--comp); box-shadow: 0 0 0 4px var(--bg-alt); }
  1.5%, 7.5% { background-color: var(--orange); box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 9px var(--orange-glow); }
}
@keyframes tl-when {
  0%, 9.5%, 100% { color: var(--comp-text); }
  1.5%, 7.5% { color: var(--pro-text); }
}
@keyframes tl-dot-last {
  0%, 32%, 100% { background-color: var(--comp); box-shadow: 0 0 0 4px var(--bg-alt); }
  34%, 98% { background-color: var(--orange); box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 9px var(--orange-glow); }
}
@keyframes tl-when-last {
  0%, 32%, 100% { color: var(--comp-text); }
  34%, 98% { color: var(--pro-text); }
}
.timeline-steps li::before { display: none; }
/* Déploiement (Offre) : même principe en 13 s (5 s de parcours, 8 s d'arrêt
   sur la dernière étape). La ligne se redessine à chaque nouveau tour. */
.timeline-cycle-short.is-in li::before { animation: tl13-dot 13s linear infinite; animation-delay: calc(var(--i, 0) * 1.25s - 13s); }
.timeline-cycle-short.is-in li .when { animation: tl13-when 13s linear infinite; animation-delay: calc(var(--i, 0) * 1.25s - 13s); }
.timeline-cycle-short.is-in li:last-child::before { animation-name: tl13-dot-last; animation-delay: 0s; }
.timeline-cycle-short.is-in li:last-child .when { animation-name: tl13-when-last; animation-delay: 0s; }
.timeline-cycle-short.is-in::after { animation: tl13-line-x 13s linear infinite; }
@keyframes tl13-dot {
  0%, 11%, 100% { background-color: var(--comp); box-shadow: 0 0 0 4px var(--bg-alt); }
  1.7%, 8.7% { background-color: var(--orange); box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 9px var(--orange-glow); }
}
@keyframes tl13-when {
  0%, 11%, 100% { color: var(--comp-text); }
  1.7%, 8.7% { color: var(--pro-text); }
}
@keyframes tl13-dot-last {
  0%, 36.9%, 100% { background-color: var(--comp); box-shadow: 0 0 0 4px var(--bg-alt); }
  39.2%, 98% { background-color: var(--orange); box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 9px var(--orange-glow); }
}
@keyframes tl13-when-last {
  0%, 36.9%, 100% { color: var(--comp-text); }
  39.2%, 98% { color: var(--pro-text); }
}
@keyframes tl13-line-x {
  0% { transform: scaleX(0); opacity: 1; }
  38.5%, 97% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes tl13-line-y {
  0% { transform: scaleY(0); opacity: 1; }
  38.5%, 97% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
.timeline-steps { padding-top: 22px; }
/* Déploiement (Offre) : titres à la taille des cartes « Ce que comprend l'offre » */
.timeline-steps .when { font-size: 0.95rem; }
.timeline-steps h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); margin: 4px 0 8px; }
.timeline-steps p { font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 0 0 30px; }
  .timeline::before, .timeline::after { left: 5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; background: linear-gradient(180deg, var(--violet), var(--orange)); }
  .js .timeline::after { transform: scaleY(0); }
  .js .timeline.is-in::after { transform: none; }
  .timeline li::before { top: 4px; left: -30px; }
  .timeline-steps li::before { display: block; }
  .timeline-cycle-short.is-in::after { animation-name: tl13-line-y; }
}

/* Comparatif */
.compare-wrap { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(12px, 2.5vw, 28px); overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9rem; }
.compare thead th { position: sticky; top: 0; background: var(--surface); padding: 12px 16px 18px; vertical-align: bottom; }
.compare thead th:first-child { text-align: left; font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.compare thead th:not(:first-child) { width: 25%; text-align: center; }
.compare thead strong { display: block; font-size: 0.98rem; }
.compare thead .pro { color: var(--pro-text); }
.compare thead .comp { color: var(--comp-text); }
.compare thead small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.74rem; margin-top: 2px; }
.compare .group th {
  padding: 26px 16px 10px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--comp-text);
  border-bottom: 1px solid var(--border-strong);
}
.compare tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare tbody td:not(:first-child) { text-align: center; }
.compare tbody tr:not(.group) { transition: background-color 0.2s; }
.compare tbody tr:not(.group):hover { background: var(--surface-2); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge-in.pro { background: var(--pro-soft); color: var(--pro-text); }
.badge-in.comp { background: var(--comp-soft); color: var(--comp-text); }
.badge-opt { border: 1.5px solid currentColor; color: var(--text); }
.badge-opt.pro { border-color: var(--pro); }
.badge-opt.comp { border-color: var(--comp); }
.badge-no { font-size: 0.74rem; color: var(--text-muted); }
.js .compare tbody tr { opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.js .compare.is-in tbody tr { opacity: 1; transform: none; }

/* FAQ */
.faq-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.faq-contact {
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: 0.9rem;
}
.faq-contact strong { display: block; margin-bottom: 6px; }
.faq-contact .row { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.faq-contact a { color: var(--comp-text); font-weight: 700; text-decoration: none; }
.faq-contact a:hover { text-decoration: underline; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 64px); margin-top: 48px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq-group h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--comp-text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-strong);
  margin: 0;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--comp-text); }
.faq-item .plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-item .plus::before, .faq-item .plus::after {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq-item .plus::after { transform: rotate(90deg); }
.faq-item[open] .plus::after { transform: rotate(0deg); }
.faq-item .answer { overflow: hidden; }
.faq-item .answer p { margin: 0 0 20px; color: var(--text-muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Cas clients
   -------------------------------------------------------------------------- */

.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.case.is-reversed { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.case.is-reversed .case-media { order: 2; }
.case-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.case:hover .case-media img { transform: scale(1.04); }
.case-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.case-brand img { height: 32px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; filter: var(--logo-filter); }
.case-brand .pill { background: var(--bg-lav); color: var(--text); }
.case h2 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); max-width: 30ch; }
.case-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin: 24px 0 28px; }
.case-cols h3 { font-size: 0.95rem; margin: 0 0 4px; }
.case-cols p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.case-cols .checks li { font-size: 0.88rem; }
.case-quote {
  margin: 0;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.theme-comp .case-quote, .case-quote.is-comp { border-left-color: var(--violet); }
.case-quote p { font-weight: 700; font-size: 1.02rem; margin: 0; }
@media (max-width: 860px) {
  .case, .case.is-reversed { grid-template-columns: minmax(0, 1fr); }
  .case.is-reversed .case-media { order: 0; }
  .case-media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .case-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */

.value-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; background: var(--bg-alt); border-color: transparent; }
.value-card .icon { margin: 0; background: var(--comp-soft); color: var(--comp-text); }
.value-card h3 { font-size: 1.08rem; }

.team-grid { --gap: clamp(16px, 2vw, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
/* Largeur d'une carte sur 4 colonnes, quel que soit le nombre de membres affichés */
.team-grid > * { flex: 0 1 calc((100% - 3 * var(--gap)) / 4); }
@media (max-width: 960px) { .team-grid > * { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 640px) { .team-grid > * { flex-basis: 100%; } }
.team-card .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1.05; margin-bottom: 18px; background: var(--surface-2); }
.team-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(0.25); transition: transform 1s var(--ease), filter 0.6s; }
.team-card:hover .media img { transform: scale(1.05); filter: none; }
.team-card h3 { font-size: 1.05rem; margin: 0; }
.team-card .role { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 12px; }
.team-card p { font-size: 0.82rem; color: var(--text-muted); }

.facts { margin: 0; display: grid; grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr); }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--border); margin: 0; font-size: 0.9rem; }
.facts dt { font-weight: 700; padding-right: 16px; }
.facts dd { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Bandeau d'appel à l'action
   -------------------------------------------------------------------------- */

.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--cta-band); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .copy { max-width: 520px; padding: clamp(64px, 9vw, 112px) 0; }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
.cta-band p { color: var(--text); }
.cta-band .reassure { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.cta-band .reassure li { display: flex; align-items: center; gap: 6px; }
.cta-band .reassure svg { width: 14px; height: 14px; color: var(--comp-text); }
.cta-band .art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(66%, 1000px);
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 25%);
  mask-image: linear-gradient(90deg, transparent 0, #000 25%);
}
.cta-band .art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform 1.6s var(--ease); }
.js .cta-band .art img { transform: translateX(40px); }
.js .cta-band.is-in .art img { transform: none; }
@media (max-width: 860px) {
  .cta-band .art { position: relative; width: 100%; height: 240px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 35%); mask-image: linear-gradient(180deg, transparent 0, #000 35%); }
  .cta-band .copy { padding-bottom: 24px; }
}

/* --------------------------------------------------------------------------
   Formulaire de démonstration
   -------------------------------------------------------------------------- */

.demo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); min-height: calc(100vh - var(--header-h)); }
.demo-media { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.demo-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 48, 0) 35%, rgba(5, 10, 48, 0.85)); }
.demo-media blockquote { position: relative; z-index: 1; margin: 0; padding: 40px clamp(24px, 4vw, 48px); }
.demo-media blockquote p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; line-height: 1.32; }
.demo-media .person span { color: #d6d8ea; }
.demo-form { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 80px) clamp(32px, 6vw, 88px); max-width: 760px; }
.demo-form h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-media { min-height: 300px; order: 2; }
  .demo-form { padding: 40px var(--gutter); }
}

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 28px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
.form label, .form legend { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; padding: 0; }
.form label small { font-weight: 400; color: var(--text-muted); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--comp-soft); }
.form input:user-invalid { border-color: #d64545; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 400;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice label:hover { border-color: var(--violet); }
.choice label:has(input:checked) { border-color: var(--violet); background: var(--comp-soft); }
.choice input { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; }
.form-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-submit small { max-width: 30ch; font-size: 0.76rem; color: var(--text-muted); }
.form-submit small a { color: inherit; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-direct { margin-top: 24px; font-size: 0.88rem; color: var(--text-muted); }
.form-direct a { color: var(--text); font-weight: 700; text-decoration: none; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; }
.form-status.is-ok { display: block; background: var(--comp-soft); color: var(--text); }
.form-status.is-error { display: block; background: var(--pro-tint); color: var(--text); border: 1px solid var(--pro); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 40px; }
.prose p, .prose li { color: var(--text-muted); }
.prose .hero-actions { margin: 24px 0; }
.todo { padding: 2px 6px; border-radius: 4px; background: var(--pro-tint); color: var(--text); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer { background: var(--band); color: var(--on-band); padding: 56px 0 28px; }
.site-footer a { color: var(--on-band); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--orange); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-top img { height: 26px; width: auto; margin-bottom: 18px; }
.footer-top p { font-size: 0.88rem; color: var(--on-band-muted); margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 32px; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
.footer-contact { display: grid; gap: 10px; font-size: 0.88rem; font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; font-size: 0.85rem; color: var(--on-band-muted); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Apparition au défilement
   Masqué seulement si le JS tourne (classe .js posée par boot.js) : sans JS,
   tout le contenu reste visible.
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="up"] { transform: translateY(28px); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Respect du réglage système « réduire les animations » */
@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;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js .hero [data-hero], .js .hero .hero-art, .js .hero .hero-photo img { opacity: 1; transform: none; }
  .scan::after { display: none; }
  .timeline-cycle li::before, .timeline-cycle li .when,
  .timeline-cycle-short li::before, .timeline-cycle-short li .when, .timeline-cycle-short::after { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Page racine (choix de la langue) et page 404
   -------------------------------------------------------------------------- */

.lang-picker {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px var(--gutter);
  text-align: center;
  background: radial-gradient(ellipse at top, var(--bg-lav), var(--bg) 60%);
}
.lang-picker > img { height: 36px; width: auto; margin-bottom: 32px; }
.lang-picker h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lang-picker h1 span { display: block; margin-top: 6px; font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.lang-picker .code-404 { margin: 0; font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--orange), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-picker ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(560px, 100%); margin: 24px 0 0; padding: 0; list-style: none; }
.lang-picker li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.2s, box-shadow 0.3s;
}
.lang-picker li a:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow); }
@media (max-width: 520px) { .lang-picker ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
