/* =====================================================================
   Accueil FACILIQO (templates/pages/home.php) : seule feuille propre à la page, préfixe « hp- ».
   S'appuie sur les jetons de app.css (--c-*, --font, --radius, .btn, .container) ;
   Chat en bleu et turquoise, Appel en corail (palette de /tarifs), une couleur par famille d'outils
   (celles du menu Outils, ToolFamilies::CATEGORY_COLORS). Animations seulement si l'appareil les accepte.
   ===================================================================== */

.page-vitrine {
  --hp-chat: #0B5CFF;
  --hp-chat-2: #0891B2;
  --hp-coral: #EF705F;
  --hp-coral-ink: #B93D14;
  --hp-coral-btn: linear-gradient(135deg, #C9472F 0%, #B23A24 100%);
  --hp-ok: #067647;
  --hp-r: 24px;
  --hp-r-sm: 14px;
  --hp-card: var(--c-surface);
  /* Ombres en couches (contact, diffusion, profondeur) : douces, jamais grises et dures */
  --hp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px -6px rgba(16, 24, 40, .07), 0 22px 44px -26px rgba(16, 24, 40, .18);
  --hp-shadow-lg: 0 1px 3px rgba(16, 24, 40, .05), 0 14px 32px -12px rgba(16, 24, 40, .12), 0 44px 84px -42px rgba(16, 24, 40, .30);
  --hp-shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px -16px rgba(16, 24, 40, .16), 0 52px 96px -46px rgba(16, 24, 40, .32);
  --hp-inset: inset 0 1px 0 rgba(255, 255, 255, .85);
  /* Halos d'arrière-plan : bleu et turquoise à gauche (Chat), corail à droite (Appel), centre clair */
  --hp-halo-blue: #0B5CFF;
  --hp-halo-teal: #0891B2;
  --hp-halo-coral: #EF705F;
  --hp-halo-k: 1;
  --hp-halo-center: rgba(255, 255, 255, .92);
  --hp-mix: #000;
  --hp-mix-p: 65%;
}
:root[data-theme="dark"] .page-vitrine {
  --hp-chat: #6B98FF; --hp-chat-2: #3BC7DE; --hp-coral-ink: #FFA58F; --hp-ok: #5FE0A6;
  --hp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -16px rgba(0, 0, 0, .55);
  --hp-shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 70px -28px rgba(0, 0, 0, .7);
  --hp-shadow-hover: 0 2px 6px rgba(0, 0, 0, .35), 0 40px 80px -32px rgba(0, 0, 0, .75);
  --hp-inset: inset 0 1px 0 rgba(255, 255, 255, .06);
  --hp-halo-blue: #3B7BFF; --hp-halo-teal: #22B8D6; --hp-halo-coral: #F0806F; --hp-halo-k: 1.15; --hp-halo-center: rgba(255, 255, 255, .025);
  --hp-mix: #fff; --hp-mix-p: 60%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-vitrine {
    --hp-chat: #6B98FF; --hp-chat-2: #3BC7DE; --hp-coral-ink: #FFA58F; --hp-ok: #5FE0A6;
    --hp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -16px rgba(0, 0, 0, .55);
    --hp-shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 70px -28px rgba(0, 0, 0, .7);
    --hp-shadow-hover: 0 2px 6px rgba(0, 0, 0, .35), 0 40px 80px -32px rgba(0, 0, 0, .75);
    --hp-inset: inset 0 1px 0 rgba(255, 255, 255, .06);
    --hp-halo-blue: #3B7BFF; --hp-halo-teal: #22B8D6; --hp-halo-coral: #F0806F; --hp-halo-k: 1.15; --hp-halo-center: rgba(255, 255, 255, .025);
    --hp-mix: #fff; --hp-mix-p: 60%;
  }
}

/* Couleurs des familles d'outils et des catégories (icône, étiquette, détails) */
.hp-f-pdf, .hp-c-pdf { --f: #E5322D; }
.hp-f-calculs, .hp-c-finance { --f: #0E9F6E; }
.hp-f-documents, .hp-c-documents { --f: #2B579A; }
.hp-f-pro, .hp-c-pro { --f: #4A3AA7; }
.hp-f-ia, .hp-c-texte { --f: #0891B2; }
.hp-f-images, .hp-c-images { --f: #E8A20C; }
.hp-f-location, .hp-c-maison { --f: #EB6834; }
.hp-f-naissance { --f: #D9578A; }
.hp-c-calculateurs { --f: #0B5CFF; }
.hp-c-bureautique { --f: #217346; }
.hp-c-fichiers { --f: #0E8F84; }
.hp-c-video-audio { --f: #DB2777; }
.hp-c-automobile { --f: #475569; }
.hp-c-vacances { --f: #0284C7; }
.hp-c-temps-et-dates { --f: #0891B2; }
.hp-c-cuisine { --f: #C2410C; }
.hp-c-outils-du-quotidien { --f: #64748B; }

/* ---------- Typographie et éléments communs ------------------------- */
.page-vitrine .site-main { overflow-x: clip; }
.hp-sec { padding: clamp(56px, 7vw, 96px) 0; }
.hp-sec-soft { background: linear-gradient(180deg, var(--c-bg) 0%, color-mix(in srgb, var(--c-primary) 4%, var(--c-bg)) 22%, color-mix(in srgb, var(--c-primary) 3%, var(--c-bg)) 78%, var(--c-bg) 100%); }
.hp-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.hp-head h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.65rem); font-weight: 900; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.hp-head p { color: var(--c-muted); font-size: 1.08rem; margin: 0; text-wrap: pretty; }
.hp-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; text-align: left; flex-wrap: wrap; }
.hp-head-row h2 { margin: 0; }
.hp-kicker { display: inline-block; margin: 0 0 12px; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); }
.hp-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 800; color: var(--c-primary); text-decoration: none; }
.hp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp-link .icon, .hp-btn .icon, .hp-tool-more .icon { transition: transform .2s ease; }
.hp-link:hover .icon, .hp-btn:hover .icon, .hp-tool-more:hover .icon { transform: translateX(3px); }
.hp-note { margin: 20px 0 0; text-align: center; font-size: .86rem; color: var(--c-muted); }

.hp-btn { min-height: 52px; padding: 13px 24px; font-size: 1.02rem; }
.hp-btn-coral { background: var(--hp-coral-btn); color: #fff; box-shadow: 0 8px 20px -6px rgba(201, 71, 47, .55); }
.hp-btn-coral:hover { color: #fff; filter: brightness(1.07); }
.hp-btn-light { background: #fff; color: #0B2350; }
.hp-btn-light:hover { color: #0B2350; background: #EAF1FF; }
.hp-btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.hp-btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.hp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hp-checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.hp-checks .icon { color: var(--p, var(--hp-ok)); margin-top: .15em; width: 1.15em; height: 1.15em; }
.hp-checks strong { color: var(--c-ink); }

/* ---------- Haut de page --------------------------------------------- */
.hp-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.hp-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--hp-card); font-size: .88rem; font-weight: 800; color: var(--c-text); box-shadow: var(--shadow-sm); }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 4px color-mix(in srgb, #12B76A 22%, transparent); }
.hp-hero h1 { font-size: clamp(2.25rem, 1.15rem + 3.9vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; }
.hp-lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--c-muted); max-width: 34em; margin: 0 0 28px; text-wrap: pretty; }
.hp-proof { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .93rem; font-weight: 700; color: var(--c-text); }
.hp-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hp-proof .icon { color: var(--hp-ok); width: 1.1em; height: 1.1em; }

/* Démonstration : un site, son chat et la demande reçue */
.hp-chat { margin: 0; border: 1px solid var(--c-line); border-radius: 18px; background: var(--hp-card); box-shadow: var(--hp-shadow); overflow: hidden; }
.hp-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(120deg, #0B5CFF 0%, #0891B2 100%); }
.hp-chat-head strong { display: block; font-size: .95rem; line-height: 1.2; }
.hp-chat-head small { display: flex; align-items: center; gap: 6px; font-size: .76rem; opacity: .92; }
.hp-chat-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.hp-chat-body { display: grid; gap: 10px; padding: 14px; background: color-mix(in srgb, var(--c-bg) 55%, var(--hp-card)); }
.hp-msg { margin: 0; display: flex; flex-direction: column; max-width: 86%; font-size: .9rem; line-height: 1.45; }
.hp-msg span { padding: 9px 13px; border-radius: 16px; }
.hp-msg time { font-size: .7rem; color: var(--c-muted); margin-top: 3px; }
.hp-msg.is-in { justify-self: end; align-items: flex-end; }
.hp-msg.is-in span { background: linear-gradient(135deg, #0B5CFF, #2563EB); color: #fff; border-bottom-right-radius: 5px; }
.hp-msg.is-out span { background: var(--hp-card); color: var(--c-text); border: 1px solid var(--c-line); border-bottom-left-radius: 5px; }

/* Raccourcis vers les outils */
.hp-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: clamp(28px, 4vw, 44px); padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--c-line) 80%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--hp-card) 72%, transparent); -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px); box-shadow: var(--hp-inset), var(--hp-shadow); }
.hp-quick p { margin: 0; font-weight: 800; color: var(--c-ink); font-size: .95rem; }
.hp-quick ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hp-quick a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--hp-card); color: var(--c-ink); font-weight: 700; font-size: .9rem; text-decoration: none; transition: border-color .15s, background-color .15s, transform .15s; }
.hp-quick a .icon { color: var(--f, var(--c-primary)); }
.hp-quick a:hover { border-color: color-mix(in srgb, var(--f, var(--c-primary)) 55%, var(--c-line)); background: color-mix(in srgb, var(--f, var(--c-primary)) 7%, var(--hp-card)); transform: translateY(-1px); }
.hp-quick .hp-quick-all { border-style: dashed; color: var(--c-primary); }

/* ---------- FACILIQO Chat et FACILIQO Appel --------------------------- */
/* Mise en page : 7 rangées par carte (en-tête, titre, accroche, aperçu, avantages, tarif, boutons).
   Sur ordinateur, les deux cartes partagent les mêmes rangées (sous-grille) : chaque rangée est alignée d'une carte à
   l'autre, quel que soit le contenu. Sans sous-grille (anciens navigateurs) ou sur mobile : colonne flexible, tarif ancré en bas. */
.hp-duo { --hp-row: 20px; display: grid; gap: 24px; }
.hp-product { --p: var(--hp-chat); --p2: var(--hp-chat-2); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--hp-row); padding: clamp(24px, 3vw, 36px); border: 1px solid color-mix(in srgb, var(--p) 16%, var(--c-line)); border-radius: 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--p2) 4%, var(--hp-card)) 0%, var(--hp-card) 38%); box-shadow: var(--hp-inset), var(--hp-shadow), 0 44px 80px -56px color-mix(in srgb, var(--p) 55%, transparent); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.hp-product:hover { transform: translateY(-3px); box-shadow: var(--hp-inset), var(--hp-shadow-hover), 0 52px 90px -54px color-mix(in srgb, var(--p) 65%, transparent); }
.hp-product::before { content: ""; position: absolute; top: -140px; width: 75%; height: 300px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--p2) 16%, transparent) 0%, color-mix(in srgb, var(--p2) 7%, transparent) 45%, transparent 100%); pointer-events: none; }
.hp-product.is-chat::before { left: -18%; }
.hp-product.is-appel::before { right: -18%; }
.hp-product.is-appel { --p: #E2604C; --p2: var(--hp-coral); }
.hp-product > * { margin: 0; min-width: 0; }
.hp-product h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.hp-product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hp-product-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--p), var(--p2)); box-shadow: 0 10px 22px -10px var(--p), inset 0 1px 0 rgba(255, 255, 255, .3); }
.hp-product-ico .icon { width: 26px; height: 26px; }
.hp-product-hook { font-size: 1.06rem; line-height: 1.55; color: var(--c-text); }
/* Zone tarifaire commune : séparateur, prix et mention sur deux lignes, ancrée en bas */
.hp-product-price { margin-top: auto !important; padding-top: var(--hp-row); border-top: 1px solid color-mix(in srgb, var(--p) 14%, var(--c-line)); display: grid; gap: 2px; align-content: start; }
.hp-price-note { margin: 0; font-size: .86rem; font-weight: 700; color: var(--c-muted); }
.hp-product-ctas { display: grid; gap: 4px; align-content: start; }
.hp-product-ctas .hp-btn { width: 100%; }
.hp-product-ctas .hp-link { justify-self: center; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .hp-duo { grid-template-rows: repeat(7, auto); row-gap: 0; }
    .hp-product { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: var(--hp-row); }
    .hp-product-price { margin-top: 0 !important; }
  }
}
.hp-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.hp-status span { width: 8px; height: 8px; border-radius: 50%; }
.hp-status.is-on { color: var(--c-ok-ink); background: var(--c-ok-bg); }
.hp-status.is-on span { background: #12B76A; }
.hp-status.is-test { color: var(--hp-coral-ink); background: color-mix(in srgb, var(--hp-coral) 15%, transparent); }
.hp-status.is-test span { background: var(--hp-coral); }
.hp-price { margin: 0; display: flex; align-items: baseline; gap: 6px; color: var(--c-muted); font-size: .92rem; }
.hp-price strong { font-size: 2rem; font-weight: 900; line-height: 1.1; color: var(--c-ink); letter-spacing: -.025em; }

/* Aperçu des demandes (Chat) */
.hp-board { border: 1px solid var(--c-line); border-radius: 18px; background: color-mix(in srgb, var(--c-bg) 50%, var(--hp-card)); padding: 14px; }
.hp-board-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; font-size: .88rem; color: var(--c-ink); }
.hp-board-head span { font-size: .78rem; color: var(--c-muted); }
.hp-board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-board li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: var(--hp-card); border: 1px solid var(--c-line); }
.hp-board li > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }
.hp-board strong { display: block; font-size: .9rem; color: var(--c-ink); }
.hp-board small { display: block; font-size: .78rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-board em { font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* Appel en cours et résumé (Appel) */
.hp-call { border: 1px solid color-mix(in srgb, var(--hp-coral) 30%, var(--c-line)); border-radius: 18px; padding: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--hp-coral) 10%, var(--hp-card)) 0%, var(--hp-card) 70%); }
.hp-call-head { display: flex; align-items: center; gap: 10px; }
.hp-call-head strong { display: block; font-size: .92rem; color: var(--c-ink); line-height: 1.2; }
.hp-call-head small { font-size: .78rem; color: var(--c-muted); }
.hp-call-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #E2604C, #EF705F); }
.hp-call-time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 800; color: var(--hp-coral-ink); }
.hp-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 54px; margin: 10px 0; }
.hp-wave i { width: 4px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #EF705F, #E2604C); transform: scaleY(.25); transform-origin: center; opacity: .85; }
.hp-wave i:nth-child(3n) { transform: scaleY(.55); }
.hp-wave i:nth-child(4n+1) { transform: scaleY(.8); }
.hp-wave i:nth-child(5n+2) { transform: scaleY(.4); }

/* ---------- Comment ça marche ----------------------------------------- */
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
.hp-steps li { position: relative; padding: 28px; border: 1px solid var(--c-line); border-radius: var(--hp-r); background: var(--hp-card); box-shadow: var(--shadow-sm); }
.hp-steps h3 { margin: 16px 0 8px; font-size: 1.2rem; }
.hp-steps p { margin: 0; color: var(--c-muted); }
.hp-step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-weight: 900; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--hp-chat), var(--hp-chat-2)); }

/* ---------- Cas d'usage ------------------------------------------------ */
.hp-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hp-uses li { padding: 24px; border: 1px solid var(--c-line); border-radius: var(--hp-r); background: var(--hp-card); transition: border-color .2s, box-shadow .2s, transform .2s; }
.hp-uses li:hover { border-color: color-mix(in srgb, var(--hp-chat) 35%, var(--c-line)); box-shadow: var(--hp-shadow); }
.hp-uses h3 { margin: 14px 0 10px; font-size: 1.08rem; }
.hp-uses p { margin: 0; color: var(--c-muted); font-size: .95rem; }
.hp-uses .hp-use-q { margin-bottom: 8px; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--c-primary-soft); color: var(--c-ink); font-weight: 700; font-size: .93rem; }
.hp-use-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--hp-chat); background: color-mix(in srgb, var(--hp-chat) 12%, transparent); }

/* ---------- Outils gratuits ------------------------------------------- */
.hp-tools { display: grid; gap: 18px; }
.hp-tool { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--c-line); border-radius: var(--hp-r); background: var(--hp-card); transition: border-color .2s, box-shadow .2s, transform .2s; }
.hp-tool::after { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: var(--f); opacity: .9; }
.hp-tool:hover { border-color: color-mix(in srgb, var(--f) 40%, var(--c-line)); box-shadow: 0 18px 38px -22px color-mix(in srgb, var(--f) 60%, transparent); transform: translateY(-2px); }
.hp-tool-top { display: flex; align-items: center; gap: 10px; margin: 0; }
.hp-tool-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--f); background: color-mix(in srgb, var(--f) 13%, transparent); }
.hp-tool-label { font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--f) var(--hp-mix-p), var(--hp-mix)); }
.hp-tool h3 { margin: 4px 0 0; font-size: 1.15rem; }
.hp-tool-text { margin: 0; color: var(--c-muted); font-size: .95rem; }
.hp-tool-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hp-tool-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--c-line); font-size: .87rem; font-weight: 700; color: var(--c-text); text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.hp-tool-links a:hover { border-color: color-mix(in srgb, var(--f) 50%, var(--c-line)); background: color-mix(in srgb, var(--f) 8%, var(--hp-card)); color: var(--c-ink); }
.hp-tool-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; min-height: var(--tap); font-weight: 800; text-decoration: none; color: color-mix(in srgb, var(--f) var(--hp-mix-p), var(--hp-mix)); }
.hp-spaces { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.hp-spaces a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--hp-card); color: var(--c-text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.hp-spaces a:hover { border-color: color-mix(in srgb, var(--f) 45%, var(--c-line)); box-shadow: var(--hp-shadow); }
.hp-spaces a > span:nth-child(2) { flex: 1; }
.hp-spaces strong { display: block; color: var(--c-ink); }
.hp-spaces small { display: block; color: var(--c-muted); font-size: .88rem; line-height: 1.4; }
.hp-spaces a > .icon { color: color-mix(in srgb, var(--f) var(--hp-mix-p), var(--hp-mix)); }
.hp-cats { margin-top: 32px; text-align: center; }
.hp-cats p { margin: 0 0 12px; font-weight: 800; color: var(--c-ink); }
.hp-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hp-cats a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--hp-card); color: var(--c-ink); font-weight: 700; font-size: .9rem; text-decoration: none; transition: border-color .15s, background-color .15s; }
.hp-cats a .icon { color: var(--f, #64748B); }
.hp-cats a small { font-size: .76rem; color: var(--c-muted); font-weight: 800; }
.hp-cats a:hover { border-color: color-mix(in srgb, var(--f, #64748B) 50%, var(--c-line)); background: color-mix(in srgb, var(--f, #64748B) 7%, var(--hp-card)); }

/* ---------- Fonctions pro ---------------------------------------------- */
.hp-pro { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hp-pro-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 12px; height: 100%; padding: 20px; border: 1px solid var(--c-line); border-radius: 20px; background: var(--hp-card); color: var(--c-text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hp-pro-card:hover { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-line)); box-shadow: var(--hp-shadow); transform: translateY(-2px); }
.hp-pro-card strong { grid-column: 1 / -1; font-size: 1.06rem; color: var(--c-ink); }
.hp-pro-text { grid-column: 1 / -1; margin-top: -6px; font-size: .92rem; color: var(--c-muted); line-height: 1.5; }
.hp-pro-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c-primary); background: var(--c-primary-soft); }
.hp-badge { justify-self: end; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; text-align: right; line-height: 1.35; }
.hp-badge.is-free { color: var(--c-ok-ink); background: var(--c-ok-bg); }
.hp-badge.is-account { color: #0E6E68; background: #D5F3EF; }
.hp-badge.is-chat { color: var(--c-primary); background: var(--c-primary-soft); }
.hp-badge.is-soon { color: var(--c-muted); background: var(--c-subtle, #EEF1F6); }
:root[data-theme="dark"] .hp-badge.is-account { color: #6EE0D2; background: rgba(14, 143, 132, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-badge.is-account { color: #6EE0D2; background: rgba(14, 143, 132, .22); } }

/* ---------- Offres ------------------------------------------------------- */
.hp-offers { display: grid; gap: 18px; align-items: stretch; }
.hp-offer { --p: var(--hp-ok); display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--c-line); border-radius: var(--hp-r); background: var(--hp-card); }
.hp-offer h3 { margin: 0; font-size: 1.25rem; }
.hp-offer .hp-checks { flex: 1; font-size: .95rem; }
.hp-offer .btn { align-self: stretch; margin-top: auto; }
.hp-offer.is-chat { --p: var(--hp-chat); border: 2px solid color-mix(in srgb, var(--hp-chat) 55%, var(--c-line)); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--hp-chat) 60%, transparent); }
.hp-offer.is-appel { --p: #E2604C; }
.hp-offer-flag { margin: 0; align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 800; color: var(--c-primary); background: var(--c-primary-soft); }
.hp-offer.is-appel .hp-offer-flag { color: var(--hp-coral-ink); background: color-mix(in srgb, var(--hp-coral) 15%, transparent); }
.hp-offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; color: var(--c-muted); font-size: .9rem; }
.hp-offer-price strong { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; color: var(--c-ink); }

/* ---------- Questions et réassurance ---------------------------------- */
.hp-faq-grid { display: grid; gap: 32px; }
.hp-faq-side h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); font-weight: 900; letter-spacing: -.025em; margin: 0 0 22px; }
.hp-trust { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.hp-trust li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-muted); font-size: .95rem; line-height: 1.5; }
.hp-trust .icon { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 11px; color: var(--c-primary); background: var(--c-primary-soft); }
.hp-trust strong { color: var(--c-ink); }
.hp-faq { display: grid; gap: 10px; }
.hp-faq details { border: 1px solid var(--c-line); border-radius: 18px; background: var(--hp-card); transition: border-color .2s, box-shadow .2s; }
.hp-faq details[open] { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-line)); box-shadow: var(--shadow-sm); }
.hp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 800; color: var(--c-ink); }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.hp-faq-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); transition: transform .2s ease; }
.hp-faq details[open] .hp-faq-ico { transform: rotate(45deg); }
.hp-faq details p { margin: 0; padding: 0 20px 18px; color: var(--c-muted); }

/* ---------- Guides ------------------------------------------------------ */
.hp-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hp-post { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-line); border-radius: var(--hp-r); background: var(--hp-card); color: var(--c-text); text-decoration: none; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.hp-post:hover { box-shadow: var(--hp-shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--c-primary) 30%, var(--c-line)); }
.hp-post-media { display: grid; place-items: center; aspect-ratio: 40 / 21; background: linear-gradient(135deg, var(--c-primary-soft), color-mix(in srgb, var(--hp-chat-2) 12%, var(--hp-card))); color: var(--c-primary); }
.hp-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-post-media > .icon { width: 40px; height: 40px; }
.hp-post-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.hp-post-cat { font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.hp-post strong { font-size: 1.06rem; line-height: 1.35; color: var(--c-ink); }
.hp-post-text { font-size: .92rem; color: var(--c-muted); }

/* ---------- Appel final -------------------------------------------------- */
.hp-final { padding: 0 0 clamp(64px, 8vw, 104px); }
.hp-final-box { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: 32px; text-align: center; color: #fff; background: linear-gradient(130deg, #0A2A8C 0%, #0B5CFF 52%, #0891B2 100%); box-shadow: var(--hp-shadow-lg); }
.hp-final-box::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); }
.hp-final-box h2 { max-width: 22em; margin: 0 auto 14px; color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.5rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.hp-final-box p { max-width: 36em; margin: 0 auto 26px; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.hp-final-box .hp-ctas { justify-content: center; }

/* ---------- Mises en page selon la largeur ------------------------------ */
@media (min-width: 640px) {
  .hp-uses, .hp-tools, .hp-spaces, .hp-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 820px) {
  .hp-steps { grid-template-columns: repeat(3, 1fr); }
  .hp-offers { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hp-duo { grid-template-columns: repeat(2, 1fr); }
  .hp-faq-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .hp-faq-side { position: sticky; top: calc(var(--header-h) + 24px); }
  .hp-posts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .hp-uses { grid-template-columns: repeat(4, 1fr); }
  .hp-tools { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .hp-hero { padding-top: 28px; }
  .hp-ctas .hp-btn { flex: 1 1 100%; }
  .hp-product-ctas, .hp-product-ctas .btn { width: 100%; }
  .hp-offer .btn { align-self: stretch; }
  .hp-quick { padding: 14px; }
  .hp-quick ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .hp-quick ul::-webkit-scrollbar { display: none; }
  .hp-quick li { flex: none; scroll-snap-align: start; }
  .hp-cats ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .hp-cats ul::-webkit-scrollbar { display: none; }
  .hp-cats li { flex: none; }
  .hp-board li { display: grid; grid-template-columns: auto 1fr; row-gap: 6px; }
  .hp-board em { grid-column: 2; justify-self: start; }
  .hp-product { border-radius: 22px; }
  .hp-final-box .hp-btn { flex: 1 1 100%; }
}

/* ---------- Mouvement : seulement si l'appareil l'accepte ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .hp-msg, .hp-demo-result { animation: hp-pop .45s cubic-bezier(.2, .8, .2, 1) both; }
  .hp-msg:nth-child(1) { animation-delay: .35s; }
  .hp-msg:nth-child(2) { animation-delay: 1.25s; }
  .hp-msg:nth-child(3) { animation-delay: 2.15s; }
  .hp-status.is-on span { animation: hp-pulse 2.4s ease-in-out infinite; }
  .hp-call.is-live .hp-wave i { animation: hp-wave 1.1s ease-in-out infinite alternate; }
  .hp-call.is-live .hp-wave i:nth-child(2n) { animation-duration: .8s; }
  .hp-call.is-live .hp-wave i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -.3s; }
  .hp-call.is-live .hp-wave i:nth-child(5n) { animation-duration: .95s; animation-delay: -.6s; }
  /* Apparition au défilement (home.js pose hp-wait puis is-in, et retire les deux une fois l'élément affiché) */
  [data-reveal].hp-wait { opacity: 0; transform: translateY(16px); }
  [data-reveal].hp-wait.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .hp-wait.is-in:nth-child(3n+2) { transition-delay: .08s; }
  .hp-wait.is-in:nth-child(3n) { transition-delay: .16s; }
}
@keyframes hp-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .45); } 50% { box-shadow: 0 0 0 6px rgba(18, 183, 106, 0); } }
@keyframes hp-wave { from { transform: scaleY(.18); } to { transform: scaleY(.95); } }

/* Pictogrammes de la page Assistant (chat, marteau, bâtiment) : absents du sprite général */
.page-vitrine .hx-i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-product-ico .hx-i { width: 26px; height: 26px; }
.hp-status.is-soon { color: var(--c-primary); background: var(--c-primary-soft); }
.hp-status.is-soon span { background: var(--c-primary); }
@media (pointer: coarse) { .hp-tool-links a { min-height: 42px; } }

/* ---------- Haut de page : Chat et Appel à égalité --------------------- */
.hp-hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.hp-hero-copy .hp-lead { margin-left: auto; margin-right: auto; max-width: 40em; }
.hp-hero-copy .hp-lead strong { color: var(--c-ink); }
.hp-hero-copy .hp-ctas, .hp-hero-copy .hp-proof { justify-content: center; }
.hp-btn .hx-i { width: 1.2em; height: 1.2em; }
.hp-btn-chat { background: linear-gradient(135deg, #0B5CFF 0%, #0846C4 100%); color: #fff; box-shadow: 0 8px 20px -6px rgba(11, 92, 255, .5); }
.hp-btn-chat:hover { color: #fff; filter: brightness(1.07); }
.hp-hero-copy .hp-btn { min-width: 292px; }
.hp-link.is-coral { color: var(--hp-coral-ink); }
.hp-demos { display: grid; gap: 20px; max-width: 1040px; margin: clamp(32px, 4vw, 52px) auto 0; }
.hp-demos figcaption { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--c-muted); text-align: center; }
.hp-demo { --p: var(--hp-chat); display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb, var(--p) 28%, var(--c-line)); border-radius: 24px; background: linear-gradient(160deg, color-mix(in srgb, var(--p) 9%, var(--hp-card)) 0%, var(--hp-card) 60%); box-shadow: var(--hp-shadow-lg); }
.hp-demo.is-appel { --p: #E2604C; }
.hp-demo-tag { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; color: var(--c-ink); }
.hp-demo-tag > .icon, .hp-demo-tag > .hx-i { color: var(--p); width: 1.25em; height: 1.25em; }
.hp-demo-tag span { color: var(--c-muted); }
.hp-demo-tag span::before { content: "· "; }
.hp-demo .hp-chat, .hp-demo .hp-call { flex: 1; }
.hp-demo .hp-chat { box-shadow: none; }
.hp-demo .hp-call { background: var(--hp-card); }
.hp-demo-result { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.4; color: var(--c-ok-ink); background: var(--c-ok-bg); }
.hp-demo-result .icon { flex: none; width: 1.1em; height: 1.1em; margin-top: .1em; }
@media (min-width: 760px) { .hp-demos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .hp-hero-copy .hp-btn { min-width: 0; } }

/* Aperçu des appels résumés (Appel), en miroir des demandes reçues (Chat) */
.hp-board.is-appel { background: color-mix(in srgb, var(--hp-coral) 6%, var(--hp-card)); }

/* Offres : Chat et Appel mis en avant de la même façon */
.hp-offer.is-appel { border: 2px solid color-mix(in srgb, var(--hp-coral) 55%, var(--c-line)); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--hp-coral) 60%, transparent); }

/* Appel final : un bouton par assistant, les outils en lien */
.hp-final-box .hp-btn-light .hx-i, .hp-final-box .hp-btn-light .icon { color: #0B5CFF; }
.hp-final-box .hp-btn-light + .hp-btn-light .icon { color: #C9472F; }
.hp-final-more { margin: 18px 0 0 !important; }
.hp-final-more a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .hp-demo-result { animation-delay: 2.9s; }
  .hp-demo.is-appel .hp-demo-result { animation-delay: 1.2s; }
}

/* ---------- Finition : lisibilité, profondeur, micro-interactions -------- */
.hp-hero-copy .hp-lead { color: color-mix(in srgb, var(--c-text) 86%, var(--c-muted)); font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); line-height: 1.65; }
.hp-hero-copy .hp-lead strong { font-weight: 800; }
.hp-eyebrow { background: color-mix(in srgb, var(--hp-card) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--hp-inset), 0 1px 2px rgba(16, 24, 40, .05), 0 8px 20px -14px rgba(16, 24, 40, .25); }
.hp-btn { transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, filter .2s ease, background-color .2s ease; }
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn:active { transform: translateY(0) scale(.98); }
.hp-btn-chat:hover { box-shadow: 0 14px 28px -10px rgba(11, 92, 255, .6); }
.hp-btn-coral:hover { box-shadow: 0 14px 28px -10px rgba(201, 71, 47, .6); }
.hp-btn-chat:focus-visible { outline-color: color-mix(in srgb, #0B5CFF 55%, white); }
.hp-btn-coral:focus-visible { outline-color: color-mix(in srgb, #EF705F 60%, white); }
.hp-tool, .hp-uses li, .hp-pro-card, .hp-steps li, .hp-offer, .hp-post, .hp-faq details { box-shadow: var(--hp-inset), var(--hp-shadow); }
.hp-tool:hover, .hp-pro-card:hover, .hp-post:hover { box-shadow: var(--hp-inset), var(--hp-shadow-hover); }
.hp-uses li:hover { transform: translateY(-2px); box-shadow: var(--hp-inset), var(--hp-shadow-hover); }
.hp-offer.is-chat { box-shadow: var(--hp-inset), var(--hp-shadow), 0 30px 60px -36px color-mix(in srgb, var(--hp-chat) 55%, transparent); }
.hp-offer.is-appel { box-shadow: var(--hp-inset), var(--hp-shadow), 0 30px 60px -36px color-mix(in srgb, var(--hp-coral) 55%, transparent); }
.hp-faq summary { transition: color .15s ease; }
.hp-faq summary:hover { color: var(--c-primary); }
.hp-quick a:active, .hp-tool-links a:active, .hp-cats a:active { transform: scale(.97); }

/* Offres : rangées alignées d'une carte à l'autre (étiquette, titre, prix, avantages, bouton) */
.hp-offer > * { margin: 0; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 820px) {
    .hp-offers { grid-template-rows: repeat(5, auto); row-gap: 0; }
    .hp-offer { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; }
    .hp-offer .btn { margin-top: 6px; align-self: end; }
  }
}


/* =====================================================================
   Environnement lumineux du haut de page (accueil + cartes Chat / Appel)
   - Halos ancrés aux éléments : bleu électrique → turquoise derrière Chat, corail derrière Appel, aura douce derrière le titre,
     même paire derrière les deux grandes cartes plus bas. Ils suivent les cartes à toutes les tailles d'écran.
   - Chaque halo empile plusieurs dégradés radiaux « closest-side » qui s'éteignent avant le bord de leur calque :
     aucune démarcation possible. Tous les calques sont sous le contenu (z-index négatif dans .hp-top, isolé).
   - Respiration très lente (14 à 20 s) et parallaxe souris sur ordinateur (home.js) ; rien sur mobile ni si moins d'animations.
   - Micro-points très espacés, visibles surtout vers les bords, jamais derrière le titre.
   ===================================================================== */
.page-vitrine {
  --hp-glow-blue: 20, 92, 255;   /* #145CFF */
  --hp-glow-teal: 3, 183, 176;   /* #03B7B0 */
  --hp-glow-coral: 241, 107, 86; /* #F16B56 */
  --hp-glow-peach: 255, 170, 128;
  --hp-glow-k: 1;
  --hp-dots: rgba(15, 40, 90, .14);
}
:root[data-theme="dark"] .page-vitrine { --hp-glow-k: .85; --hp-dots: rgba(255, 255, 255, .07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-vitrine { --hp-glow-k: .85; --hp-dots: rgba(255, 255, 255, .07); } }

/* Fond clair et lumineux : blanc en haut, rejoint la couleur de page en bas (pas de ligne) */
.hp-top { position: relative; isolation: isolate; background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 46%, var(--c-bg) 100%); }
:root[data-theme="dark"] .hp-top { background: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-top { background: none; } }

/* Micro-points : vignette (transparents au centre, présents aux bords) et fondu vers le bas */
.hp-top::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle, var(--hp-dots) 1px, transparent 1.6px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 62% 40% at 50% 24%, transparent 0%, transparent 38%, #000 100%), linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 62% 40% at 50% 24%, transparent 0%, transparent 38%, #000 100%), linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
  mask-composite: intersect;
  opacity: .9;
}

/* Hôtes des halos (positionnés, sans créer de contexte d'empilement) */
.hp-hero-copy, .hp-demos, .hp-duo { position: relative; }
.hp-hero-copy::before, .hp-demos::before, .hp-demos::after, .hp-duo::before, .hp-duo::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  translate: calc(var(--hp-mx, 0) * var(--hp-px, 0px)) calc(var(--hp-my, 0) * var(--hp-py, 0px));
  transition: translate .8s cubic-bezier(.2, .8, .2, 1);
}

/* Aura du titre : très douce, cœur blanc pour la lisibilité, liaison bleu/turquoise avec les halos du dessous */
.hp-hero-copy::before {
  inset: -14% -22% -10%; --hp-px: 6px; --hp-py: 4px;
  background:
    radial-gradient(closest-side at 50% 44%, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .35) 40%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(closest-side at 46% 58%, rgba(var(--hp-glow-blue), calc(.16 * var(--hp-glow-k))) 0%, rgba(var(--hp-glow-teal), calc(.11 * var(--hp-glow-k))) 48%, rgba(var(--hp-glow-teal), 0) 100%);
}
:root[data-theme="dark"] .hp-hero-copy::before { background: radial-gradient(closest-side at 46% 56%, rgba(var(--hp-glow-blue), .14) 0%, rgba(var(--hp-glow-teal), .08) 50%, rgba(var(--hp-glow-teal), 0) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-hero-copy::before { background: radial-gradient(closest-side at 46% 56%, rgba(var(--hp-glow-blue), .14) 0%, rgba(var(--hp-glow-teal), .08) 50%, rgba(var(--hp-glow-teal), 0) 100%); } }

/* Halo bleu électrique → turquoise : FACILIQO Chat (démo du haut, puis grande carte) */
.hp-demos::before, .hp-duo::before {
  --hp-px: 18px; --hp-py: 12px;
  background:
    radial-gradient(closest-side at 52% 50%, rgba(var(--hp-glow-blue), calc(.34 * var(--hp-glow-k))) 0%, rgba(var(--hp-glow-blue), calc(.19 * var(--hp-glow-k))) 32%, rgba(var(--hp-glow-blue), calc(.07 * var(--hp-glow-k))) 60%, rgba(var(--hp-glow-blue), 0) 100%),
    radial-gradient(closest-side at 34% 72%, rgba(var(--hp-glow-teal), calc(.28 * var(--hp-glow-k))) 0%, rgba(var(--hp-glow-teal), calc(.12 * var(--hp-glow-k))) 45%, rgba(var(--hp-glow-teal), 0) 100%),
    radial-gradient(closest-side at 64% 28%, rgba(var(--hp-glow-blue), calc(.14 * var(--hp-glow-k))) 0%, rgba(var(--hp-glow-blue), 0) 100%);
}
/* Halo corail chaleureux : FACILIQO Appel (démo du haut, puis grande carte) */
.hp-demos::after, .hp-duo::after {
  --hp-px: -18px; --hp-py: -12px;
  background:
    radial-gradient(closest-side at 48% 50%, rgba(var(--hp-glow-coral), calc(.31 * var(--hp-glow-k))) 0%, rgba(var(--hp-glow-coral), calc(.17 * var(--hp-glow-k))) 32%, rgba(var(--hp-glow-coral), calc(.06 * var(--hp-glow-k))) 60%, rgba(var(--hp-glow-coral), 0) 100%),
    radial-gradient(closest-side at 66% 72%, rgba(var(--hp-glow-peach), calc(.26 * var(--hp-glow-k))) 0%, rgba(var(--hp-glow-peach), calc(.10 * var(--hp-glow-k))) 45%, rgba(var(--hp-glow-peach), 0) 100%),
    radial-gradient(closest-side at 36% 28%, rgba(var(--hp-glow-coral), calc(.12 * var(--hp-glow-k))) 0%, rgba(var(--hp-glow-coral), 0) 100%);
}
/* Placement : démos côte à côte (dès 760 px), grandes cartes côte à côte (dès 900 px) ; sinon un halo en haut, l'autre en bas */
.hp-demos::before, .hp-demos::after { left: -14%; right: -14%; height: 62%; }
.hp-demos::before { top: -10%; }
.hp-demos::after { bottom: -10%; }
.hp-duo::before, .hp-duo::after { left: -14%; right: -14%; height: 56%; }
.hp-duo::before { top: -6%; }
.hp-duo::after { bottom: -6%; }
@media (min-width: 760px) {
  .hp-demos::before, .hp-demos::after { top: -95%; bottom: -46%; height: auto; width: 84%; }
  .hp-demos::before { left: -28%; right: auto; }
  .hp-demos::after { right: -28%; left: auto; }
}
@media (min-width: 900px) {
  .hp-duo::before, .hp-duo::after { top: -10%; bottom: -12%; height: auto; width: 72%; opacity: .78; } /* plus doux que ceux du haut de page */
  .hp-duo::before { left: -20%; right: auto; }
  .hp-duo::after { right: -20%; left: auto; }
}

/* Respiration lente (léger déplacement, échelle et intensité), sur ordinateur et tablette seulement */
@media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
  .hp-demos::before { animation: hp-drift-a 18s ease-in-out infinite alternate; }
  .hp-demos::after { animation: hp-drift-b 16s ease-in-out infinite alternate; }
  .hp-duo::before { animation: hp-drift-a 20s ease-in-out -6s infinite alternate; }
  .hp-duo::after { animation: hp-drift-b 19s ease-in-out -9s infinite alternate; }
  .hp-hero-copy::before { animation: hp-breathe 14s ease-in-out infinite alternate; }
  .hp-demos::before, .hp-demos::after { will-change: transform, opacity; }
}
@keyframes hp-drift-a { 0% { transform: translate3d(0, 0, 0) scale(1); opacity: .9; } 55% { transform: translate3d(3%, -2.5%, 0) scale(1.06); opacity: 1; } 100% { transform: translate3d(-2%, 2%, 0) scale(.97); opacity: .88; } }
@keyframes hp-drift-b { 0% { transform: translate3d(0, 0, 0) scale(1.02); opacity: .9; } 50% { transform: translate3d(-3%, 2.5%, 0) scale(.97); opacity: .86; } 100% { transform: translate3d(2%, -2%, 0) scale(1.06); opacity: 1; } }
@keyframes hp-breathe { from { opacity: .8; transform: scale(.98); } to { opacity: 1; transform: scale(1.03); } }

/* Cartes de démonstration : reflet lumineux sur la bordure, bordure bleutée (Chat) ou corail (Appel), ombres douces, élévation au survol */
.hp-demo {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--p) 7%, var(--hp-card)) 0%, var(--hp-card) 58%) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, .95) 0%, color-mix(in srgb, var(--p) 45%, #fff) 36%, color-mix(in srgb, var(--p) 22%, var(--c-line)) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(16, 24, 40, .04), 0 10px 24px -12px rgba(16, 24, 40, .12), 0 36px 68px -36px color-mix(in srgb, var(--p) 48%, transparent);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}
.hp-demo:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 4px rgba(16, 24, 40, .05), 0 18px 36px -16px rgba(16, 24, 40, .16), 0 48px 84px -38px color-mix(in srgb, var(--p) 58%, transparent); }
:root[data-theme="dark"] .hp-demo { background: linear-gradient(160deg, color-mix(in srgb, var(--p) 10%, var(--hp-card)) 0%, var(--hp-card) 58%) padding-box, linear-gradient(145deg, rgba(255, 255, 255, .22) 0%, color-mix(in srgb, var(--p) 45%, transparent) 40%, rgba(255, 255, 255, .06) 100%) border-box; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -18px rgba(0, 0, 0, .6), 0 36px 68px -36px color-mix(in srgb, var(--p) 40%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-demo { background: linear-gradient(160deg, color-mix(in srgb, var(--p) 10%, var(--hp-card)) 0%, var(--hp-card) 58%) padding-box, linear-gradient(145deg, rgba(255, 255, 255, .22) 0%, color-mix(in srgb, var(--p) 45%, transparent) 40%, rgba(255, 255, 255, .06) 100%) border-box; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -18px rgba(0, 0, 0, .6), 0 36px 68px -36px color-mix(in srgb, var(--p) 40%, transparent); } }

/* =====================================================================
   Aperçus fidèles au vrai produit
   - Chat : le vrai widget (faciliqo-assistant.js) : en-tête au dégradé de l'entreprise, « En ligne · assistant virtuel »,
     bulles, champ « Écrivez votre message… » et mention « Propulsé par FACILIQO Assistant ». Toujours clair, comme sur un site client.
   - Espace client : la vraie liste « Demandes » (icône, « Nom · besoin », date et téléphone, pastille À traiter / Transmise / Traitée).
   - Appel : les vrais SMS reçus par l'artisan (format de Decroche::smsTexts), présentés comme dans une messagerie de téléphone.
   ===================================================================== */
.hp-widget { --w: #0767EE; --w2: color-mix(in srgb, #0767EE 72%, #071A3D); display: flex; flex-direction: column; background: #fff; border-color: #E3E8F2; color: #0B2350; }
.hp-widget .hp-chat-head { gap: 11px; padding: 12px 14px; background: linear-gradient(135deg, var(--w), var(--w2)); }
.hp-widget .hp-chat-av { position: relative; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hp-widget .hp-chat-av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: #22C55E; border: 2px solid var(--w); }
.hp-widget .hp-chat-body { flex: 1; align-content: start; background: linear-gradient(180deg, #F6F8FC, #FFFFFF); }
.hp-widget .hp-msg span { border-radius: 16px; font-size: .88rem; }
.hp-widget .hp-msg.is-out span { background: #fff; color: #0B2350; border: 1px solid #E3E8F2; border-bottom-left-radius: 6px; box-shadow: 0 2px 6px rgba(7, 26, 61, .04); }
.hp-widget .hp-msg.is-in span { background: linear-gradient(135deg, var(--w), var(--w2)); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 4px 12px color-mix(in srgb, var(--w) 25%, transparent); }
.hp-widget-input { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 8px 7px 14px; border-top: 1px solid #E3E8F2; background: #fff; color: #8A95A8; font-size: .85rem; }
.hp-widget-input span { flex: 1; }
.hp-widget-input i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--w), var(--w2)); }
.hp-widget-input .icon { width: 15px; height: 15px; }
.hp-widget-foot { margin: 0; padding: 2px 0 8px; background: #fff; text-align: center; font-size: .68rem; color: #7A8599; }
.hp-widget-foot strong { color: #0B2350; }

/* SMS reçus (messagerie du téléphone) */
.hp-sms { margin-top: 2px; }
.hp-sms-top { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 6px; font-size: .76rem; }
.hp-sms-from { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--hp-coral-ink); letter-spacing: .02em; }
.hp-sms-from .icon { width: 14px; height: 14px; }
.hp-sms-top time, .hp-inbox time { color: var(--c-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.hp-sms-text { margin: 0; padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: color-mix(in srgb, var(--c-ink) 6%, var(--hp-card)); color: var(--c-text); font-size: .83rem; line-height: 1.45; font-variant-numeric: tabular-nums; }

/* Liste « Demandes » de l'espace client */
.hp-tabs { display: inline-flex; gap: 10px; font-size: .74rem; color: var(--c-muted); }
.hp-tabs b { color: var(--c-ink); font-weight: 800; box-shadow: inset 0 -2px 0 #C27A10; }
.hp-lead-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; }
.hp-lead-ico .icon { width: 16px; height: 16px; }
.hp-space li.is-new .hp-lead-ico { color: #C27A10; background: color-mix(in srgb, #C27A10 14%, var(--hp-card)); }
.hp-space li.is-sent .hp-lead-ico { color: #0E8F84; background: color-mix(in srgb, #0E8F84 14%, var(--hp-card)); }
.hp-space li.is-done .hp-lead-ico { color: #0E8A5E; background: color-mix(in srgb, #0E9F6E 14%, var(--hp-card)); }
.hp-space li.is-new em { color: #fff; background: #C27A10; box-shadow: 0 0 0 3px color-mix(in srgb, #C27A10 22%, transparent); }
.hp-space li.is-sent em { color: var(--c-primary); background: color-mix(in srgb, #0B5CFF 13%, var(--hp-card)); }
.hp-space li.is-done em { color: #0E8A5E; background: color-mix(in srgb, #0E9F6E 14%, var(--hp-card)); }

/* Messages FACILIQO (Appel) : bulles de SMS empilées */
.hp-inbox .hp-board-head strong { display: inline-flex; align-items: center; gap: 6px; }
.hp-inbox .hp-board-head .icon { width: 15px; height: 15px; color: var(--hp-coral-ink); }
.hp-inbox ul { gap: 10px; }
.hp-inbox li { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 0; border: 0; background: none; }
.hp-inbox li time { justify-self: start; padding-left: 4px; }
