/* ====== WorkSanté — compléments au thème v2 (logo historique, partenaires, formulaires, légal, contact) ====== */

/* Logo : on garde le pictogramme historique (oscilloscope) */
.logo-img { border-radius: 10px; box-shadow: var(--shadow-sm); object-fit: cover; }
.nav .nav-login { color: var(--primary); font-weight: 600; }
.nav .nav-login i { margin-right: 4px; }

/* Partenaires : vrais logos */
.partners .logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; }
.partners .logos-row img { height: 44px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .2s ease, opacity .2s ease; }
.partners .logos-row img:hover { filter: none; opacity: 1; }

/* Tarifs : note sous le prix */
.plan .price-note { display: block; font-size: 13px; color: var(--ink-3); margin: -12px 0 18px; }
.plan .price-row .amount.small { font-size: 30px; }

/* Étapes / mission */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 28px; }
.flow div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 12px; text-align: center; font-size: 13px; color: var(--ink-2); position: relative; }
.flow div b { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; margin: 0 auto 8px; line-height: 30px; font-size: 13px; }
.flow div.alt b { background: var(--accent); }

/* Formulaires : centrage & icônes d'état (activation, reset) */
.form-card.center { text-align: center; }
.form-card .big-icon { font-size: 56px; margin-bottom: 14px; }
.form-card .big-icon.ok { color: var(--success); }
.form-card .big-icon.ko { color: var(--danger); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ctas.center { justify-content: center; }
.feedback { display: none; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; }
.feedback.show { display: block; }
.feedback.ok { background: #DCFCE7; color: #166534; }
.feedback.ko { background: #FEE2E2; color: #991B1B; }
/* compte créé mais e-mail de confirmation non envoyé (inscription) : avertissement + bouton de renvoi */
.feedback.warn { background: #FEF3C7; color: #92400E; }
.feedback a { color: inherit; text-decoration: underline; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.feedback-actions .btn { white-space: normal; }
.field .err { display: none; }
.field.has-err .err { display: block; }
.inline-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: rgba(0, 91, 150, .07); border: 1px solid rgba(0, 91, 150, .18); color: var(--primary-deep); font-size: 14px; margin: 0 0 18px; }

/* Pages légales : tableaux */
.legal-card table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.legal-card th, .legal-card td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.legal-card th { background: var(--line-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.legal-card ul { list-style: disc; padding-left: 22px; margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
.legal-card ul li { margin: 4px 0; }
.legal-card .callout { background: #eef6fc; border-left: 4px solid var(--primary); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 12px 0; font-size: 14px; color: var(--ink-2); }
.legal-card .callout.warn { background: #FEF3C7; border-left-color: #B45309; }
.legal-card h3 { font-size: 15px; color: var(--ink); margin: 16px 0 6px; }
.legal-card .path { background: var(--line-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px 6px; color: var(--ink); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal-card ol.steps { list-style: none; counter-reset: st; padding: 0; margin: 10px 0 12px; }
.legal-card ol.steps li { position: relative; padding: 3px 0 3px 40px; margin: 10px 0; counter-increment: st; color: var(--ink-2); font-size: 15px; }
.legal-card ol.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.legal-card .mail-box { text-align: center; background: var(--line-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 12px 0; }
.legal-card .mail-box .btn { color: #fff; text-decoration: none; white-space: normal; }
.legal-card .mail-box small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.legal-card .tag { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.legal-card .tag.del { background: #FEE2E2; color: #991B1B; }
.legal-card .tag.keep { background: #FEF3C7; color: #92400E; }
.legal-card .essentials li { margin: 6px 0; }
.legal-company { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 22px; line-height: 1.55; }
/* Tableaux des pages légales sur téléphone : une carte par ligne, intitulé de colonne repris devant chaque valeur */
@media (max-width: 600px) {
    .legal-card { padding: 22px 18px; }
    .legal-card table.stack, .legal-card table.stack tbody, .legal-card table.stack tr, .legal-card table.stack td { display: block; width: 100%; }
    .legal-card table.stack thead { display: none; }
    .legal-card table.stack tr { border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0 0 10px; overflow: hidden; }
    .legal-card table.stack td { border: 0; border-top: 1px solid var(--line-2); padding: 7px 10px; }
    .legal-card table.stack td:first-child { border-top: 0; background: var(--line-2); font-weight: 600; color: var(--ink); }
    .legal-card table.stack td[data-label]:not(:first-child)::before { content: attr(data-label) " : "; color: var(--ink-3); font-weight: 600; }
}
.legal-toc { columns: 2; gap: 24px; font-size: 14px; }
.legal-toc a { display: block; padding: 3px 0; }
.print-btn { float: right; }

/* Contact (bouton flottant → fenêtre) */
.contact-modal { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(2px); }
.contact-modal[hidden] { display: none; }
/* max-height en dvh : hauteur réellement visible sur mobile (barres du navigateur déduites), sinon le bas du formulaire passe sous la barre d'outils */
.contact-card { background: #fff; border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; box-shadow: var(--shadow-lg); }
/* Mobile : feuille ancrée en bas, coins arrondis en haut, le formulaire défile à l'intérieur */
@media (max-width: 640px) {
    .contact-modal { align-items: flex-end; padding: 0; }
    .contact-card { max-width: none; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
}
.contact-card h3 { font-size: 20px; margin-bottom: 6px; color: var(--primary-ink); }
.contact-card .muted { color: var(--ink-3); font-size: 14px; margin-bottom: 16px; }
.contact-card .close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; }

/* Téléchargement appli */
.store-row .store-btn.disabled { opacity: .55; pointer-events: none; }
.apk-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* Réactivité */
@media (max-width: 960px) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .flow { grid-template-columns: repeat(2, 1fr); } .legal-toc { columns: 1; } .partners .logos-row img { height: 34px; } .contact-card { padding: 20px; } }
@media print { .site-header, .site-footer, .fab, .partners, .contact-modal, .print-btn { display: none !important; } .legal-hero { background: none; color: #000; padding: 10px 0; } .legal-card { box-shadow: none; border: 0; padding: 8px 0; } }
/* bouton « Télécharger l'APK » (page app.php) — affiché seulement si app/_assets/hws.apk existe */
.store-row .store-btn.apk { background: #2C8E7E; }

/* ====== Accueil plus chaleureux et moins de blanc (05/10/2026, demande de Patrick : « trop de blanc, pique les yeux,
   pas assez d'images, ça fait machine ») ====== */
/* version du site, discrète sous le nom */
.logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo-ver { font-style: normal; font-size: 10px; font-weight: 500; color: var(--ink-3); opacity: .75; letter-spacing: 0; }
/* fonds de section teintés au lieu du blanc pur (cartes blanches mieux détachées), alternance bleu-gris / crème */
section.block { background: #F3F6FA; }
@media (min-width: 961px) { section.block { padding: 48px 0 60px; } }
section.block.alt { background: #FBF3EA; }
.section-head { margin-bottom: 40px; }
.profile, .plan, .listing, .faq-item { box-shadow: var(--shadow-sm); }
/* ---- Haut de page v2 : photo de fond à droite fondue sous le texte, points d'information, ligne de pouls ---- */
.hero.hero-v2 { --hb: #EEF3F8; padding: 34px 0 112px; min-height: 600px; background: var(--hb); }
.hero.hero-v2::after { display: none; }
.hero-v2 .hero-bg { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 50% 36%; }
/* fondu : uni sous le texte, puis la photo apparaît vers la droite (un voile chaud léger en bas pour la ligne de pouls) */
.hero-v2::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--hb) 0%, var(--hb) 38%, rgba(238, 243, 248, .9) 46%, rgba(238, 243, 248, .45) 56%, rgba(238, 243, 248, 0) 70%),
    linear-gradient(0deg, rgba(251, 243, 234, .9) 0%, rgba(251, 243, 234, 0) 26%); }
.hero-v2 .inner { grid-template-columns: minmax(0, 600px) 1fr; }
.hero-v2 .hero-text { position: relative; z-index: 2; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.hero-kicker i { color: var(--accent); font-size: 18px; }
.hero-kicker::after { content: ""; flex: 0 0 48px; height: 2px; border-radius: 2px; background: var(--accent); opacity: .6; }
/* « WorkSanté, » en dégradé bleu (Patrick l'aime bien), souligné par le tracé du pouls */
.hero-v2 h1 .h-brand { position: relative; display: inline-block; padding-bottom: 10px; background: linear-gradient(120deg, var(--primary) 0%, var(--primary-soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-pulse { position: absolute; left: 0; bottom: -4px; width: 100%; height: 18px; overflow: visible; }
.h-pulse path, .hero-pulse path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: pulseDraw 1.8s .3s ease-out forwards; }
.h-pulse path { stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hero-pulse { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 1; width: 100%; height: 70px; overflow: visible; pointer-events: none; }
.hero-pulse path { stroke: var(--primary); stroke-width: 2.5; opacity: .55; vector-effect: non-scaling-stroke; stroke-dasharray: 4000; stroke-dashoffset: 0; animation: none; }
/* dessin au défilement (classe .in posée par main.js) ; sans js-draw tout reste affiché */
html.js-draw .hero-pulse path, html.js-draw .ps-line path { stroke-dasharray: 4000; stroke-dashoffset: 4000; }
html.js-draw .ps-line.in path { animation: pulseDraw 2.4s ease-out forwards; }
/* soulignement de « WorkSanté » : dessiné à chaque arrivée à l'écran (sans js-draw : une fois au chargement) */
html.js-draw .h-pulse path { animation: none; stroke-dashoffset: 1200; }
html.js-draw .h-pulse.in path { animation: pulseDraw 1.8s .3s ease-out forwards; }
html.js-draw .hero-pulse.in path { animation: pulseDraw 3.3s ease-in-out .2s forwards; }
html.js-draw .section-head h2::after { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s ease-out .2s; }
html.js-draw .section-head.in h2::after { clip-path: inset(0 0 0 0); }
@keyframes pulseDraw { to { stroke-dashoffset: 0; } }
/* points d'information sur la photo : point vert qui pulse + étiquette */
.hero-spots { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 2; pointer-events: none; }
.spot { position: absolute; display: inline-flex; align-items: center; gap: 10px; max-width: 290px; padding: 9px 15px 9px 11px; border-radius: 16px; background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 12px 32px rgba(0, 31, 54, .2); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.spot b { color: var(--primary-ink); }
.spot > i { flex: 0 0 12px; height: 12px; border-radius: 50%; background: var(--success); animation: spotPing 2.4s ease-out infinite; }
.spot.s2 > i { background: var(--primary); animation-delay: .8s; }
.spot.s3 > i { background: var(--accent); animation-delay: 1.6s; }
.spot.s1 { top: 14%; right: 6%; }
.spot.s2 { top: 47%; left: 25%; }
.spot.s3 { bottom: 20%; right: 9%; }
@keyframes spotPing { 0% { box-shadow: 0 0 0 0 rgba(44, 142, 126, .55); } 70% { box-shadow: 0 0 0 12px rgba(44, 142, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(44, 142, 126, 0); } }
@media (prefers-reduced-motion: reduce) { .h-pulse path, .hero-pulse path, html.js-draw .h-pulse path, html.js-draw .hero-pulse path, html.js-draw .ps-line path, html.js-draw .h-pulse.in path, html.js-draw .hero-pulse.in path, html.js-draw .ps-line.in path { animation: none; stroke-dashoffset: 0; } html.js-draw .section-head h2::after { clip-path: none; transition: none; } .spot > i { animation: none; } }
/* 1001–1280 px : photo un peu plus étroite */
@media (max-width: 1280px) { .hero-v2 .inner { grid-template-columns: minmax(0, 560px) 1fr; } }
/* 700–1000 px : même principe, texte plus serré, uni plus large sous le texte */
@media (max-width: 1000px) {
    .hero.hero-v2 { min-height: 0; padding: 28px 0 100px; }
    .hero-v2 .inner { grid-template-columns: minmax(0, 1fr) 34%; }
    .hero-v2 .hero-bg, .hero-v2 .hero-spots { width: 58%; }
    .hero-v2::before { background: linear-gradient(90deg, var(--hb) 0%, var(--hb) 48%, rgba(238, 243, 248, .85) 56%, rgba(238, 243, 248, 0) 76%), linear-gradient(0deg, rgba(251, 243, 234, .9) 0%, rgba(251, 243, 234, 0) 26%); }
    .hero-v2 p.lead { font-size: 16px; }
    .spot { max-width: 230px; font-size: 12px; }
    .spot.s2 { left: auto; right: 12%; }
}
/* moins de 700 px : photo en bandeau en haut, fondue vers le bas sous le texte, 2 points d'information */
@media (max-width: 699px) {
    .hero.hero-v2 { padding: 272px 0 92px; }
    .hero-kicker::after { display: none; }
    .hero-v2 .inner { grid-template-columns: 1fr; }
    .hero-v2 .hero-bg, .hero-v2 .hero-spots { width: 100%; height: 300px; bottom: auto; }
    .hero-v2::before { background: linear-gradient(180deg, rgba(238, 243, 248, 0) 0, rgba(238, 243, 248, 0) 140px, var(--hb) 270px), linear-gradient(0deg, rgba(251, 243, 234, .9) 0%, rgba(251, 243, 234, 0) 12%); }
    .hero-v2 p.lead, .hero-v2 .hero-stats { max-width: none; }
    .spot { max-width: 62%; padding: 7px 12px 7px 9px; font-size: 12px; }
    .spot.s1 { top: 16px; right: 14px; }
    .spot.s2 { display: none; }
    .spot.s3 { top: 104px; bottom: auto; left: 14px; right: auto; }
    .hero-v2 .ctas { flex-direction: column; }
    .hero-v2 .ctas .btn { width: 100%; justify-content: center; }
}
/* « Pour qui ? » : photo en tête de chaque profil (bord à bord, sous la barre de couleur) */
.profile-media { position: relative; margin: -36px -36px 26px; }
.profile-photo { display: block; width: 100%; max-width: none; height: 210px; object-fit: cover; }
.photo-chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--primary-ink); font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 31, 54, .18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.photo-chip i { color: var(--primary); }
.photo-chip.amber i { color: var(--accent-deep); }
.profile::before { z-index: 1; }
@media (max-width: 540px) { .profile-photo { height: 170px; } }

/* ---- Signature « pouls » sur toutes les pages (05/10/2026) : intitulés de section en filets au lieu de pastilles,
   tracé du pouls sous chaque titre de section ---- */
.section-head .eyebrow { background: none; padding: 0; gap: 10px; color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--accent); opacity: .75; }
.section-head h2::after { content: ""; display: block; width: 132px; height: 20px; margin: 14px auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 20'%3E%3Cpath d='M1 11H50l5-6 5 11 6-15 7 18 5-10 4 4h48' fill='none' stroke='%23D78753' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* « WorkSanté » en dégradé souligné du pouls : commun à l'accueil et aux pages intérieures */
.page-hero h1 .h-brand { position: relative; display: inline-block; padding-bottom: 10px; background: linear-gradient(120deg, var(--primary) 0%, var(--primary-soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* haut des pages intérieures : photo fondue à droite, points d'information, ligne de pouls */
.page-hero { --hb: #EEF3F8; position: relative; overflow: hidden; padding: 34px 0 104px; background: var(--hb); }
.page-hero .ph-bg { position: absolute; top: 0; right: 0; width: 56%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--hb) 0%, var(--hb) 44%, rgba(238, 243, 248, .88) 52%, rgba(238, 243, 248, .4) 62%, rgba(238, 243, 248, 0) 76%),
    linear-gradient(0deg, rgba(251, 243, 234, .9) 0%, rgba(251, 243, 234, 0) 30%); }
.page-hero .hero-spots { width: 56%; }
.page-hero .spot.s1 { top: 16%; right: 7%; }
.page-hero .spot.s3 { bottom: 26%; right: 18%; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .ph-text { max-width: 560px; }
.page-hero h1 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: var(--primary-ink); margin-bottom: 18px; }
.page-hero .ph-lead { font-size: 18px; color: var(--ink-2); max-width: 520px; }
@media (max-width: 1000px) {
    .page-hero .ph-bg, .page-hero .hero-spots { width: 50%; }
    .page-hero::before { background: linear-gradient(90deg, var(--hb) 0%, var(--hb) 52%, rgba(238, 243, 248, .8) 60%, rgba(238, 243, 248, 0) 80%), linear-gradient(0deg, rgba(251, 243, 234, .9) 0%, rgba(251, 243, 234, 0) 30%); }
    .page-hero .ph-text { max-width: 54%; }
    .page-hero .spot { max-width: 220px; font-size: 12px; }
}
@media (max-width: 699px) {
    .page-hero { padding: 236px 0 84px; }
    .page-hero .ph-bg, .page-hero .hero-spots { width: 100%; height: 280px; bottom: auto; }
    .page-hero::before { background: linear-gradient(180deg, rgba(238, 243, 248, 0) 0, rgba(238, 243, 248, 0) 130px, var(--hb) 250px), linear-gradient(0deg, rgba(251, 243, 234, .9) 0%, rgba(251, 243, 234, 0) 12%); }
    .page-hero .ph-text { max-width: none; }
    .page-hero .ph-lead { font-size: 16px; }
    .page-hero .spot { max-width: 62%; padding: 7px 12px 7px 9px; }
    .page-hero .spot.s1 { top: 14px; right: 14px; }
    .page-hero .spot.s3 { top: 100px; bottom: auto; left: 14px; right: auto; }
}
/* étapes reliées par la ligne de pouls (Comment ça marche) */
.pulse-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pulse-steps .ps-line { position: absolute; top: 0; left: 0; width: 100%; height: 80px; overflow: visible; pointer-events: none; }
.pulse-steps .ps-line path { fill: none; stroke: var(--primary-soft); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .8; }
.ps-item { position: relative; text-align: center; padding: 0 6px; }
.ps-node { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid rgba(0, 91, 150, .18); box-shadow: 0 10px 26px rgba(0, 31, 54, .12); color: var(--primary); font-size: 26px; }
.ps-node em { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 3px #FBF3EA; }
.ps-item h5 { font-size: 17px; font-weight: 800; color: var(--primary-ink); margin-bottom: 6px; }
.ps-item p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
    .pulse-steps { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
    .pulse-steps .ps-line { display: none; }
    .ps-item { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; text-align: left; padding: 0 0 22px; }
    .ps-item::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: rgba(83, 163, 215, .45); }
    .ps-item:last-child::before { display: none; }
    .ps-node { grid-row: span 2; width: 64px; height: 64px; margin: 0; font-size: 22px; }
    .ps-item h5 { align-self: end; margin: 8px 0 4px; }
}
/* Cartes en colonnes tant qu'il y a la place (avant : une seule colonne pleine largeur dès 960 px, cartes trop larges
   sur PC) ; une colonne seulement sur mobile */
@media (min-width: 641px) and (max-width: 960px) {
    .profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .profile { margin-bottom: 0; }
    .listings { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .faq-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 820px) and (max-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 641px) and (max-width: 819px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
/* icône du menu : 3 barres de même épaisseur, même largeur et même écart à tous les zooms d'écran — tailles et position
   arrondies aux pixels physiques par main.js (variables --bt épaisseur, --bgap écart, --bw largeur ; « --bg » est la couleur de fond du thème) ; croix à l'ouverture.
   Avant : barres CSS puis SVG, l'une plus épaisse ou plus courte selon le zoom (125 %, 150 %) */
.bgr { position: relative; display: block; width: var(--bw, 20px); height: calc(var(--bt, 2px) * 3 + var(--bgap, 4px) * 2); }
.bgr i { position: absolute; left: 0; width: 100%; height: var(--bt, 2px); background: var(--primary); transition: transform .15s ease, opacity .15s ease; }
.bgr i:nth-child(2) { top: calc(var(--bt, 2px) + var(--bgap, 4px)); }
.bgr i:nth-child(3) { top: calc((var(--bt, 2px) + var(--bgap, 4px)) * 2); }
.burger.is-active .bgr i:nth-child(1) { transform: translateY(calc(var(--bt, 2px) + var(--bgap, 4px))) rotate(45deg); }
.burger.is-active .bgr i:nth-child(2) { opacity: 0; }
.burger.is-active .bgr i:nth-child(3) { transform: translateY(calc((var(--bt, 2px) + var(--bgap, 4px)) * -1)) rotate(-45deg); }
/* ligne de pouls : sur mobile, petite pointe un peu plus à droite (tracé .m) */
.hero-pulse path.m { display: none; }
@media (max-width: 699px) { .hero-pulse path.d { display: none; } .hero-pulse path.m { display: inline; } }
/* ombre légère sous l'en-tête quand la page a défilé (classe posée par main.js) */
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(15, 23, 42, .10); }

/* ---- Page Application : vrais écrans de l'appli sous un tutoriel (flou + voile, zone expliquée nette, bulle) ---- */
.app-hero { --hb: #EEF3F8; position: relative; overflow: hidden; padding: 34px 0 56px; background: linear-gradient(180deg, #EEF3F8 0%, #F3EEE8 100%); }
.ah-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.app-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--primary-ink); margin-bottom: 16px; }
.app-hero h1 .h-grad { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah-lead { font-size: 17px; color: var(--ink-2); margin-bottom: 22px; max-width: 560px; }
.ah-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 28px; font-size: 15px; color: var(--ink-2); }
.ah-feats i { color: var(--primary); margin-right: 8px; width: 18px; text-align: center; }
/* 3 téléphones en éventail : celui du milieu devant */
.ah-phones { position: relative; height: 600px; }
.tphone { position: absolute; top: 50%; left: 50%; width: 252px; margin: 0; padding: 9px; border-radius: 40px; background: #0F1B2B; box-shadow: 0 30px 60px rgba(0, 31, 54, .28), inset 0 0 0 2px #24344A; }
.tphone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 70px; height: 7px; margin-left: -35px; border-radius: 6px; background: #0F1B2B; z-index: 3; }
.tphone { transition: transform .55s ease; cursor: pointer; }
.tphone.pos-l { transform: translate(-112%, -46%) scale(.86); z-index: 1; }
.tphone.pos-c { transform: translate(-50%, -50%); z-index: 2; cursor: default; }
.tphone.pos-r { transform: translate(12%, -46%) scale(.86); z-index: 1; }
/* seule la bulle du téléphone de devant est affichée (les autres seraient cachées par lui) */
.tp-tip { transition: opacity .35s ease; }
.tphone:not(.pos-c) .tp-tip { opacity: 0; }
.tp-screen { position: relative; overflow: hidden; border-radius: 32px; aspect-ratio: 600 / 1298; background: #F8FAFC; }
.tp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-dim { filter: blur(1.6px) brightness(.5) saturate(.8); transform: scale(1.02); }
.tp-ring { position: absolute; border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(215, 135, 83, .55); animation: tpRing 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes tpRing { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 10px rgba(215, 135, 83, .15); } }
.tp-tip { position: absolute; left: 7%; right: 7%; z-index: 2; padding: 11px 13px 10px; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.tp-tip b { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; }
.tp-tip em { display: block; margin-top: 7px; text-align: right; font-style: normal; font-weight: 700; color: var(--primary); font-size: 12px; }
.tp-tip::after { content: ""; position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); }
.tp-tip.below::after { top: -6px; }
.tp-tip.above::after { bottom: -6px; }
@media (prefers-reduced-motion: reduce) { .tp-ring { animation: none; } }
@media (max-width: 1100px) { .tphone { width: 220px; } .ah-phones { height: 520px; } }
/* tablette : texte au-dessus, téléphones dessous */
@media (max-width: 900px) {
    .ah-grid { grid-template-columns: 1fr; }
    .ah-phones { height: 560px; }
}
/* mobile : téléphones côte à côte qui défilent au doigt (un par écran) */
@media (max-width: 600px) {
    .app-hero { padding: 24px 0 36px; }
    .ah-feats { grid-template-columns: 1fr; }
    .ah-phones { height: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; -webkit-overflow-scrolling: touch; }
    .ah-phones .tphone { position: relative; top: auto; left: auto; flex: 0 0 72%; width: auto; transform: none; scroll-snap-align: center; cursor: default; }
    .ah-phones .tphone .tp-tip { opacity: 1; }
}
/* tracés orange sous les titres : moitié moins épais (1,6 sous « WorkSanté », 1,2 sous les titres de section ; avant 3,2 et 2,4) */
/* icône du menu dessinée en canvas par main.js (.bgr.cv) : barres CSS masquées ; menu ouvert : croix (Font Awesome) */
.bgr { color: var(--primary); }
.bgr.cv { width: auto; height: auto; }
.bgr.cv i { display: none; }
.bgr canvas { display: block; }
.bgr-x { display: none; font-size: 22px; color: var(--primary); }
.burger.is-active .bgr.cv { display: none; }
.burger.is-active .bgr-x { display: block; }
.burger.is-active .bgr:not(.cv) + .bgr-x { display: none; }
/* nom du site jamais coupé ; « .fr » retiré quand la place manque à côté du menu complet (901-1100 px) */
.logo-txt > span { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) { .site-header .logo small { display: none; } }
