/* =========================================================================
   HOME & FAMILY — Refonte page d'accueil generale (v3.2.0)
   Palette derivee de la charte historique gaia.css :
     - violet de fond historique : #cc99ff (filter-color-purple-gsf)
     - degrade violet historique : #6b39ac -> #c8fece (filter-gradient-purple-gsf)
     - jaune signature du nom HOME&FAMILY : #ffff00 (affine ici en #FFD400 pour la lisibilite)
   ========================================================================= */

:root {
  /* Violet -- couleur de marque */
  --hf-purple-950: #1b1030;
  --hf-purple-900: #241640;
  --hf-purple-800: #2d1b4e;
  --hf-purple-700: #3e2169;
  --hf-purple-600: #54309a;
  --hf-purple-500: #6c3aad;
  --hf-purple-400: #8c63c4;
  --hf-purple-300: #b9a0e0;
  --hf-purple-200: #d9c6f2;
  --hf-purple-light: #cc99ff; /* violet historique gaia.css (filter-color-purple-gsf) */
  --hf-purple-100: #efe7fb;

  /* Jaune -- signature HOME&FAMILY */
  --hf-yellow: #ffd400;
  --hf-yellow-soft: #ffe25c;
  --hf-yellow-pure: #ffff00;

  /* Neutres */
  --hf-ink: #221c30;
  --hf-slate: #574f6b;
  --hf-slate-light: #8b84a0;
  --hf-paper: #faf9fc;
  --hf-white: #ffffff;
  --hf-line: #e6e1f0;

  /* Etats */
  --hf-success: #2bb673;

  /* Couleurs par application -- cohérentes sur toute la page */
  --hf-app-stock: #6c3aad;        /* Home-Stock : violet */
  --hf-app-stock-soft: #efe7fb;
  --hf-app-qrcode: #4285f4;       /* Home-Qrcode : bleu */
  --hf-app-qrcode-soft: #e4edfd;
  --hf-app-patrimoine: #5c5f2c;   /* Home-Patrimoine : vert kaki sombre */
  --hf-app-patrimoine-soft: #eef0dd;
  --hf-app-intendance: #6f42c1;   /* Home-Intendance : violet (stock + cash) */
  --hf-app-intendance-soft: #efe7fb;

  /* Typo */
  --hf-font-display: 'Poppins', 'Segoe UI', sans-serif;
  --hf-font-body: 'Inter', 'Poppins', 'Segoe UI', sans-serif;

  /* Layout */
  --hf-radius-sm: 10px;
  --hf-radius-md: 16px;
  --hf-radius-lg: 28px;
  --hf-shadow-card: 0 18px 40px -18px rgba(45, 27, 78, 0.35);
  --hf-shadow-soft: 0 10px 24px -12px rgba(45, 27, 78, 0.22);
  --hf-container: 1160px;
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */

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

html { scroll-behavior: smooth; }

body.hf-body {
  margin: 0;
  font-family: var(--hf-font-body);
  color: var(--hf-ink);
  background: var(--hf-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hf-body img { max-width: 100%; display: block; }

.hf-body a { text-decoration: none; color: inherit; }

.hf-body ul { list-style: none; margin: 0; padding: 0; }

.hf-body h1, .hf-body h2, .hf-body h3, .hf-body h4, .hf-body h5 {
  font-family: var(--hf-font-display);
  margin: 0;
  color: var(--hf-ink);
  line-height: 1.15;
}

.hf-body p { margin: 0; }

.hf-container {
  width: 100%;
  max-width: var(--hf-container);
  margin: 0 auto;
  padding: 0 24px;
}

.hf-body :focus-visible {
  outline: 3px solid var(--hf-yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hf-body *, .hf-body *::before, .hf-body *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   EYEBROW / SECTION HEADERS
   ========================================================================= */

.hf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hf-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hf-purple-500);
}

.hf-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--hf-yellow);
  display: inline-block;
}

.hf-eyebrow.on-dark { color: var(--hf-yellow-soft); }

.hf-section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.hf-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.hf-section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.hf-section-head p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--hf-slate);
}

.hf-section-head.on-dark h2 { color: var(--hf-white); }
.hf-section-head.on-dark p { color: var(--hf-purple-300); }

/* =========================================================================
   BUTTONS
   ========================================================================= */

.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--hf-font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.hf-btn:hover { transform: translateY(-2px); }

.hf-btn-primary {
  background: var(--hf-yellow);
  color: var(--hf-purple-900);
  box-shadow: var(--hf-shadow-soft);
}
.hf-btn-primary:hover { background: var(--hf-yellow-soft); box-shadow: 0 14px 28px -10px rgba(255, 212, 0, 0.55); }

.hf-btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--hf-white);
}
.hf-btn-outline-light:hover { border-color: var(--hf-white); background: rgba(255, 255, 255, 0.08); }

.hf-btn-dark {
  background: var(--hf-purple-800);
  color: var(--hf-white);
}
.hf-btn-dark:hover { background: var(--hf-purple-700); }

.hf-btn-ghost {
  background: var(--hf-purple-100);
  color: var(--hf-purple-700);
}
.hf-btn-ghost:hover { background: var(--hf-purple-300); color: var(--hf-purple-900); }

/* Variantes par application -- meme code couleur que les pastilles
   (hero "Un quotidien facilite" + badges/icones "L'art et la maniere") */
.hf-btn-stock {
  background: var(--hf-app-stock);
  color: var(--hf-white);
}
.hf-btn-stock:hover { background: #5a2f93; }

.hf-btn-intendance {
  background: linear-gradient(135deg, #6f42c1, #e91e8c);
  color: var(--hf-white);
}
.hf-btn-intendance:hover { background: linear-gradient(135deg, #5a32a3, #c91574); }

.hf-btn-qrcode {
  background: var(--hf-app-qrcode);
  color: var(--hf-white);
}
.hf-btn-qrcode:hover { background: #2f68c9; }

.hf-btn-patrimoine {
  background: var(--hf-app-patrimoine);
  color: var(--hf-white);
}
.hf-btn-patrimoine:hover { background: #46481f; }

.hf-btn[disabled],
.hf-btn.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.hf-btn-sm { padding: 10px 20px; font-size: 14px; }

/* =========================================================================
   NAVBAR
   ========================================================================= */

.hf-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.hf-navbar.is-scrolled {
  background: rgba(27, 16, 48, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
}

.hf-navbar .hf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hf-body .hf-brand {
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--hf-yellow);
}

.hf-navbar-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hf-navbar-links a {
  font-family: var(--hf-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  transition: color 0.18s ease;
}
.hf-navbar-links a:hover { color: var(--hf-yellow); }

.hf-navbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hf-navbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--hf-white);
  font-size: 15px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.hf-navbar-social a:hover { background: var(--hf-yellow); color: var(--hf-purple-900); transform: translateY(-2px); }

.hf-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hf-burger span {
  width: 24px;
  height: 2px;
  background: var(--hf-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================================================================
   HERO
   ========================================================================= */

.hf-hero {
  position: relative;
  padding: 168px 0 120px;
  background:
    radial-gradient(1100px 640px at 78% 8%, rgba(255, 212, 0, 0.14), transparent 58%),
    radial-gradient(1000px 760px at 8% 0%, rgba(27, 16, 48, 0.92), transparent 62%),
    linear-gradient(135deg, var(--hf-purple-700) 0%, var(--hf-purple-500) 35%, var(--hf-purple-light) 78%, var(--hf-purple-200) 100%);
  overflow: hidden;
  color: var(--hf-white);
}

.hf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 20%, black, transparent 70%);
  pointer-events: none;
}

.hf-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hf-hero-content { max-width: 560px; }

.hf-hero-content .hf-eyebrow { margin-bottom: 18px; }

.hf-hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.hf-hero-title .hf-brand-name { color: var(--hf-yellow); }

.hf-hero-lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--hf-purple-100);
  max-width: 500px;
}

.hf-hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hf-hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
}

.hf-hero-stat .num {
  font-family: var(--hf-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--hf-yellow);
}
.hf-hero-stat .label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--hf-purple-300);
  line-height: 1.4;
}

/* Hero visual : carte "app switcher" stylisee, sans photo perso */
.hf-hero-visual {
  position: relative;
  height: 460px;
}

.hf-hero-card {
  position: absolute;
  width: 280px;
  background: var(--hf-white);
  border-radius: var(--hf-radius-md);
  padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(10, 4, 25, 0.55);
  color: var(--hf-ink);
}

.hf-hero-card-1 { top: 0; left: 10%; transform: rotate(-4deg); z-index: 2; }
.hf-hero-card-2 { top: 130px; left: 38%; transform: rotate(3deg); z-index: 3; }
.hf-hero-card-3 { top: 280px; left: 6%; transform: rotate(-2deg); z-index: 1; }

.hf-hero-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
  color: var(--hf-white);
}
.hf-hero-card.is-stock .icon { background: var(--hf-app-stock); }
.hf-hero-card.is-qrcode .icon { background: var(--hf-app-qrcode); }
.hf-hero-card.is-patrimoine .icon { background: var(--hf-app-patrimoine); }

.hf-hero-card h4 { font-size: 15px; font-weight: 700; }
.hf-hero-card p { margin-top: 6px; font-size: 13px; color: var(--hf-slate); line-height: 1.5; }
.hf-hero-card .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.hf-hero-card.is-stock .tag { background: var(--hf-app-stock-soft); color: var(--hf-app-stock); }
.hf-hero-card.is-qrcode .tag { background: var(--hf-app-qrcode-soft); color: var(--hf-app-qrcode); }
.hf-hero-card.is-patrimoine .tag { background: var(--hf-app-patrimoine-soft); color: var(--hf-app-patrimoine); }

/* =========================================================================
   TOOLS SECTION
   ========================================================================= */

.hf-section { padding: 100px 0; }
.hf-section.alt { background: var(--hf-white); border-top: 1px solid var(--hf-line); border-bottom: 1px solid var(--hf-line); }

.hf-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hf-tool-card {
  position: relative;
  background: var(--hf-white);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--hf-shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hf-tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hf-shadow-card);
  border-color: var(--hf-purple-300);
}

.hf-tool-card.is-soon { opacity: 0.92; }

.hf-tool-status {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
/* Couleur du badge alignee sur l'application (et non plus sur le type de statut),
   pour garder un code couleur unique par app sur toute la page. */
.hf-tool-status.live { background: var(--hf-app-qrcode-soft); color: var(--hf-app-qrcode); }
.hf-tool-status.soon { background: var(--hf-app-stock-soft); color: var(--hf-app-stock); }
.hf-tool-status.new { background: var(--hf-app-patrimoine-soft); color: var(--hf-app-patrimoine); }

.hf-tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--hf-white);
  background: linear-gradient(135deg, var(--hf-purple-500), var(--hf-purple-700));
  margin-bottom: 22px;
}
.hf-tool-icon.is-stock { background: linear-gradient(135deg, var(--hf-app-stock), #4a2680); }
.hf-tool-icon.is-qrcode { background: linear-gradient(135deg, var(--hf-app-qrcode), #2f68c9); }
.hf-tool-icon.is-patrimoine { background: linear-gradient(135deg, var(--hf-app-patrimoine), #3d3f1d); }

.hf-tool-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.hf-tool-tagline {
  margin-top: 6px;
  font-style: italic;
  font-size: 14px;
  color: var(--hf-purple-500);
  font-weight: 600;
}
.hf-tool-tagline.is-stock { color: var(--hf-app-stock); }
.hf-tool-tagline.is-qrcode { color: var(--hf-app-qrcode); }
.hf-tool-tagline.is-patrimoine { color: var(--hf-app-patrimoine); }

.hf-tool-card ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-grow: 1;
}

.hf-tool-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--hf-slate);
}
.hf-tool-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--hf-ink);
}

.hf-tool-card .hf-btn { margin-top: 26px; align-self: flex-start; }

/* =========================================================================
   LAB SECTION (fond fonce)
   ========================================================================= */

.hf-section-dark {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--hf-purple-900) 0%, var(--hf-purple-700) 100%);
  position: relative;
  overflow: hidden;
}
.hf-section-dark::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,0.18), transparent 70%);
  top: -160px; right: -120px;
}

.hf-lab-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hf-lab-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--hf-radius-md);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hf-lab-card.is-cta { display: flex; flex-direction: column; justify-content: center; }

.hf-lab-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--hf-yellow);
  color: var(--hf-purple-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.hf-lab-card h3 { color: var(--hf-white); font-size: 18px; font-weight: 700; }
.hf-lab-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--hf-purple-300); }
.hf-lab-card .hf-btn { margin-top: 20px; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */

.hf-testimonials-tabs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hf-testi-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--hf-white);
  border: 1px solid var(--hf-line);
  cursor: pointer;
  font-family: var(--hf-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--hf-slate);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.hf-testi-tab .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--hf-purple-100);
  color: var(--hf-purple-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.hf-testi-tab.active,
.hf-testi-tab:hover {
  border-color: var(--hf-purple-400);
  color: var(--hf-purple-700);
  box-shadow: var(--hf-shadow-soft);
}

.hf-testi-panels { position: relative; max-width: 720px; margin: 0 auto; min-height: 150px; }

.hf-testi-panel {
  display: none;
  text-align: center;
}
.hf-testi-panel.active { display: block; }

.hf-testi-panel blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--hf-ink);
  font-style: italic;
}
.hf-testi-panel cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-family: var(--hf-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--hf-purple-500);
}

/* =========================================================================
   TEAM
   ========================================================================= */

.hf-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.hf-team-card {
  background: var(--hf-white);
  border-radius: var(--hf-radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--hf-shadow-soft);
  border: 1px solid var(--hf-line);
}

.hf-team-card img {
  width: 92px; height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  object-fit: cover;
  border: 4px solid var(--hf-purple-100);
}

.hf-team-card h3 { font-size: 19px; font-weight: 700; }
.hf-team-role {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-purple-500);
}
.hf-team-card .bio {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hf-slate);
  text-align: left;
}
.hf-team-card .bio b { color: var(--hf-ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */

.hf-footer {
  background: var(--hf-purple-950);
  color: var(--hf-purple-300);
  padding: 76px 0 28px;
}

.hf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 40px;
}

.hf-footer-brand .hf-brand { display: inline-block; margin-bottom: 14px; }
.hf-footer-brand p { font-size: 14px; line-height: 1.7; color: var(--hf-purple-300); max-width: 280px; }

.hf-footer-col { min-width: 0; }

.hf-footer h5 {
  color: var(--hf-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hf-footer ul { display: flex; flex-direction: column; gap: 11px; }
.hf-footer ul li a {
  font-size: 14px;
  color: var(--hf-purple-300);
  transition: color 0.18s ease;
}
.hf-footer ul li a:hover { color: var(--hf-yellow); }

.hf-footer-news li a { display: block; line-height: 1.5; }
.hf-footer-news li a b { color: var(--hf-white); }

.hf-footer-social { display: flex; gap: 12px; margin-top: 4px; }
.hf-footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--hf-white);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.hf-footer-social a:hover { background: var(--hf-yellow); color: var(--hf-purple-900); }

.hf-footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.hf-footer-bottom a { color: var(--hf-purple-300); }
.hf-footer-bottom a:hover { color: var(--hf-yellow); }
.hf-heart { color: #e0556f; margin: 0 1px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 1024px) {
  .hf-hero-grid { grid-template-columns: 1fr; }
  .hf-hero-visual { height: 380px; margin-top: 20px; }
  .hf-hero-content { max-width: 100%; }
  .hf-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-lab-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 860px) {
  .hf-navbar-links { display: none; }
  .hf-burger { display: flex; }

  .hf-navbar.nav-open .hf-navbar-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--hf-purple-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 26px;
    gap: 18px;
    box-shadow: 0 16px 30px -10px rgba(0,0,0,0.4);
  }

  .hf-hero { padding: 140px 0 90px; }
  .hf-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hf-hero-visual { display: none; }

  .hf-section, .hf-section-dark { padding: 72px 0; }

  .hf-tools-grid { grid-template-columns: 1fr; }
  .hf-lab-grid { grid-template-columns: 1fr; }

  .hf-team-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 560px) {
  .hf-container { padding: 0 18px; }
  .hf-hero-title { font-size: 30px; }
  .hf-hero-lead { font-size: 16px; }
  .hf-hero-actions { flex-direction: column; align-items: stretch; }
  .hf-hero-actions .hf-btn { width: 100%; }
  .hf-hero-stats { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .hf-section-head h2 { font-size: 26px; }
  .hf-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hf-footer-bottom { flex-direction: column; align-items: flex-start; }
  .hf-team-card { padding: 26px 22px; }
}

/* Home-Intendance : pastilles, icônes et taglines (stock + cash fusionnés) */
.hf-hero-card.is-intendance .icon { background: linear-gradient(135deg, #6f42c1, #e91e8c); }
.hf-hero-card.is-intendance .tag { background: var(--hf-app-intendance-soft); color: var(--hf-app-intendance); }
.hf-tool-icon.is-intendance { background: linear-gradient(135deg, #6f42c1, #e91e8c); }
.hf-tool-tagline.is-intendance { color: var(--hf-app-intendance); }
