/* ==========================================================================
   VigiReact - Feuille de styles partagee
   Site statique public (vigireact.com) - Indigo Studio SRL
   Aucune dependance externe, aucune police CDN, aucun traceur.
   ========================================================================== */

:root {
  --orange: #cf4719;
  --orange-dark: #b43c13;
  --orange-tint: #fdf1ec;
  --orange-tint-strong: #f8dccf;
  --white: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #33302e;
  --muted: #6b6560;
  --muted-strong: #524d49;
  --cream: #f7f5f3;
  --cream-2: #f1ede9;
  --border: #e6e1dc;
  --border-strong: #d8d2cb;
  --focus: #cf4719;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --container: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(10, 10, 10, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(10, 10, 10, 0.28);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

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

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

.section--cream {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-strong);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-head p {
  color: var(--muted-strong);
  font-size: 1.075rem;
  margin-top: 0.9rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.9rem 1.4rem;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
}

/* ---------- En-tete ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand em {
  font-style: normal;
  color: var(--orange-dark);
}

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

.main-nav a {
  color: var(--muted-strong);
  font-weight: 550;
  font-size: 0.97rem;
}

.main-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ---------- Hero (photo nuit plein cadre) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(78vh, 660px);
  padding: 5.5rem 0;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.88) 0%,
      rgba(10, 10, 10, 0.72) 44%,
      rgba(10, 10, 10, 0.32) 100%
    ),
    linear-gradient(0deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 48%);
}

.hero__inner {
  position: relative;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero__lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 1.35rem;
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2.1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust svg {
  color: #ff8a5c;
  flex: 0 0 auto;
}

/* Variantes sur fond sombre (hero) */
.eyebrow--ondark {
  color: #fbe4d9;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--ghost-ondark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn--ghost-ondark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
}

/* ---------- Grille de fonctionnalites ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted-strong);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Showcase (photo + texte) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.showcase h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.showcase > .showcase__text p {
  color: var(--muted-strong);
  font-size: 1.05rem;
  margin-top: 0.9rem;
}

.showcase__media {
  position: relative;
  margin: 0;
}

.showcase__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.showcase__list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.showcase__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted-strong);
  font-size: 1rem;
}

.showcase__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--orange-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%23b43c13' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  border: 1px solid var(--orange-tint-strong);
}

.showcase__list li strong {
  color: var(--ink);
}

/* ---------- Flux d'intervention (etapes illustrees) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.flow__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}

.flow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow__num {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
}

.flow__num::before {
  counter-increment: step;
  content: counter(step);
}

.flow__body {
  padding: 1.15rem 1.3rem 1.4rem;
}

.flow__step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.flow__step p {
  color: var(--muted-strong);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Bandeau application agent ---------- */
.app-banner {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.app-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

.app-banner p {
  color: #cfc9c4;
  margin-top: 0.85rem;
  margin-bottom: 0;
  max-width: 46ch;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  color: var(--white);
  min-width: 178px;
}

.store-badge svg {
  flex: 0 0 auto;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge__text small {
  font-size: 0.68rem;
  color: #b9b3ae;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-badge__text strong {
  font-size: 1rem;
  font-weight: 700;
}

.store-badge__soon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--orange-tint-strong);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-left: auto;
}

/* ---------- Produit frere ---------- */
.sibling {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
}

.sibling h2 {
  font-size: 1.4rem;
}

.sibling p {
  color: var(--muted-strong);
  margin: 0.6rem 0 0;
  max-width: 60ch;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-final p {
  color: var(--muted-strong);
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
}

.cta-final__alt {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 1.35rem 0 0;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--muted-strong);
  font-size: 0.95rem;
  margin-top: 0.9rem;
  max-width: 38ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Pages legales
   ========================================================================== */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-back {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 550;
}

.legal-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-top: 1.5rem;
}

.legal-head .subtitle {
  color: var(--muted-strong);
  font-size: 1.075rem;
  margin-top: 0.85rem;
}

.legal-head .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.1rem;
  margin-bottom: 0;
}

.legal-body {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin: 2.6rem 0 0.85rem;
}

.legal-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 1.7rem 0 0.6rem;
}

.legal-body ul {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body strong {
  color: var(--ink);
}

.legal-callout {
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-strong);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0;
}

.legal-callout p {
  margin: 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding-top: 2rem;
}

.legal-nav a {
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--muted-strong);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 550;
}

.legal-nav a:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: var(--border-strong);
}

.legal-editor {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-top: 1.75rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-editor strong {
  color: var(--ink);
}

/* ---------- Page 404 ---------- */
.error-page {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page .code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
}

.error-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 1rem 0 0.75rem;
}

.error-page p {
  color: var(--muted-strong);
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: 4rem 0;
  }

  .hero__lead {
    max-width: none;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase__media {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-banner,
  .sibling {
    grid-template-columns: 1fr;
  }

  .store-badges {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .main-nav {
    display: none;
  }

  .feature-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .app-banner {
    padding: 2rem;
  }

  .sibling {
    padding: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Navigation multi-pages : menu deroulant Fonctionnalites (CSS pur)
   ========================================================================== */
.nav-item {
  display: inline-flex;
  align-items: center;
}

.nav-item--dropdown {
  position: relative;
}

.nav-item__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted-strong);
  font-weight: 550;
  font-size: 0.97rem;
}

.nav-item__toggle::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.nav-item__toggle:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 268px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}

/* Zone tampon pour ne pas perdre le survol entre le lien et le panneau. */
.nav-item--dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}

.nav-item--dropdown:hover .nav-item__toggle::after,
.nav-item--dropdown:focus-within .nav-item__toggle::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.35;
}

.nav-dropdown a:hover {
  background: var(--orange-tint);
  color: var(--orange-dark);
  text-decoration: none;
}

.nav-dropdown a small {
  display: block;
  color: var(--muted);
  font-weight: 450;
  font-size: 0.8rem;
}

/* ==========================================================================
   Fil d'Ariane
   ========================================================================== */
.breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  color: var(--border-strong);
}

.breadcrumb__list a {
  color: var(--muted-strong);
  font-weight: 550;
}

.breadcrumb__list a:hover {
  color: var(--orange-dark);
}

.breadcrumb__list [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Hero de sous-page (fond crème, pas de photo plein cadre)
   ========================================================================== */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 3.25rem 0 3.5rem;
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin-top: 0.4rem;
}

.page-hero__lead {
  color: var(--muted-strong);
  font-size: 1.15rem;
  margin-top: 1.05rem;
  margin-bottom: 0;
  max-width: 60ch;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

/* ==========================================================================
   Contenu editorial (pages fonctionnalites, flux, articles)
   ========================================================================== */
.content {
  max-width: 760px;
  margin: 0 auto;
}

.content--wide {
  max-width: 880px;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  margin-top: 2.8rem;
}

.prose h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-top: 1.9rem;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--orange-dark);
}

.prose strong {
  color: var(--ink);
}

.prose figure {
  margin: 2rem 0;
}

.prose figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.prose figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0.6rem;
  text-align: center;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--orange);
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
}

/* Tableaux editoriaux */
.table-wrap {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 460px;
}

.content-table th,
.content-table td {
  text-align: left;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.content-table thead th {
  background: var(--cream);
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

/* Encadre / disclaimer */
.callout {
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-strong);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0;
}

.callout p {
  margin: 0;
}

.callout--note {
  background: var(--cream);
  border-color: var(--border);
  color: var(--muted-strong);
}

/* Liste "ce que fait l'outil" (etapes flux) */
.step-list {
  list-style: none;
  counter-reset: flow-step;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.step-list > li {
  position: relative;
  counter-increment: flow-step;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.5rem 1.4rem 4.4rem;
}

.step-list > li::before {
  content: counter(flow-step);
  position: absolute;
  left: 1.3rem;
  top: 1.35rem;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

.step-list h3 {
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
}

.step-list p {
  color: var(--muted-strong);
  font-size: 0.98rem;
  margin: 0;
}

/* ==========================================================================
   FAQ (schema FAQPage cote balisage)
   ========================================================================== */
.faq {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0;
  overflow: hidden;
}

.faq__item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 650;
  color: var(--ink);
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary::after {
  content: "+";
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
}

.faq__item[open] > summary::after {
  content: "\2212";
}

.faq__item > div {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted-strong);
  font-size: 0.98rem;
}

.faq__item > div p {
  margin: 0;
}

/* ==========================================================================
   Cartes "en savoir plus" et hub fonctionnalites
   ========================================================================== */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  color: var(--orange-dark);
  margin-top: 1rem;
}

.more-link::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.more-link:hover {
  text-decoration: none;
}

.more-link:hover::after {
  transform: translateX(3px);
}

.feature-card--link {
  display: flex;
  flex-direction: column;
}

.feature-card--link .more-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.94rem;
}

.section-cta {
  margin-top: 2.25rem;
}

/* Bloc alterne texte / image (pages fonctionnalites) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.split__text h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.split__text p {
  color: var(--muted-strong);
  margin-top: 0.9rem;
}

/* ==========================================================================
   Page ressources (grille d'articles)
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.7rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.resource-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-strong);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  margin-bottom: 0.9rem;
}

.resource-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.resource-card h3 a {
  color: var(--ink);
}

.resource-card h3 a:hover {
  color: var(--orange-dark);
  text-decoration: none;
}

.resource-card p {
  color: var(--muted-strong);
  font-size: 0.97rem;
  margin: 0 0 0.4rem;
}

.resource-card--soon {
  opacity: 0.78;
}

/* ==========================================================================
   Tarifs
   ========================================================================== */
.pricing {
  max-width: 640px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.4rem;
  text-align: center;
}

.pricing-card .price {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.5rem 0 0.25rem;
}

.pricing-card .price small {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 0.4rem;
}

.pricing-list {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
}

.pricing-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted-strong);
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--orange-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%23b43c13' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  border: 1px solid var(--orange-tint-strong);
}

.price-factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.price-factor {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.price-factor h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.price-factor p {
  color: var(--muted-strong);
  font-size: 0.96rem;
  margin: 0;
}

/* ==========================================================================
   Formulaire de demande de demo
   ========================================================================== */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.demo-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field .optional {
  color: var(--muted);
  font-weight: 450;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(207, 71, 25, 0.16);
}

/* Honeypot : masque a l'humain, atteignable par les bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-form .btn {
  width: 100%;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.form-status {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.form-status[data-state="success"] {
  display: block;
  background: #edf7ee;
  border: 1px solid #bfe3c4;
  color: #1f6b2c;
}

.form-status[data-state="error"] {
  display: block;
  background: #fdecea;
  border: 1px solid #f3c2bc;
  color: #a02114;
}

.form-aside {
  color: var(--muted-strong);
}

.form-aside h2 {
  font-size: 1.3rem;
}

.form-aside ul {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-aside li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.98rem;
}

.form-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--orange-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='%23b43c13' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  border: 1px solid var(--orange-tint-strong);
}

/* ==========================================================================
   Responsive (composants multi-pages)
   ========================================================================== */
@media (max-width: 900px) {
  .split,
  .form-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .resource-grid,
  .price-factors {
    grid-template-columns: 1fr;
  }

  .form-aside {
    order: -1;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 2.5rem 0 2.75rem;
  }

  .step-list > li {
    padding: 1.2rem 1.2rem 1.2rem 3.9rem;
  }
}
