/* Hero « split-screen + video 3D + bascule plein ecran » du Studio Devis Suisse (pages CFC et cantons). Tout est prefixe .hs-
   Le lanceur (.sdl) et l'application (.sds-app) gardent leur feuille studio-devis.css ; ici : le cadre, la video, le voile, les pastilles, le plein ecran. */

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.hs-verrou, html.hs-verrou body { overflow: hidden !important; }

.hs-page { --hs-bg: #fff; --hs-fond: #F1F5F9; --hs-fond2: #F8FAFC; --hs-txt: #0F172A; --hs-sec: #475569; --hs-mut: #64748B; --hs-bord: #E2E8F0; --hs-bord2: #CBD5E1; --hs-bleu: #1D4ED8; --hs-rouge: #D52B1E; --hs-vert: #047857;
  margin: 0; background: var(--hs-bg); color: var(--hs-txt); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
html[data-theme="dark"] .hs-page { --hs-bg: #0B1220; --hs-fond: #020617; --hs-fond2: #111C30; --hs-txt: #F1F5F9; --hs-sec: #CBD5E1; --hs-mut: #94A3B8; --hs-bord: #1E293B; --hs-bord2: #334155; --hs-bleu: #60A5FA; --hs-vert: #34D399; }

/* ------------------------------------------------------------------ HERO */
.hs { position: relative; isolation: isolate; min-height: 82vh; min-height: 82svh; display: grid; align-items: center; overflow: hidden; background: #0B1220; color: #fff; }
.hs-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0B1220; }
.hs-affiche, .hs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-video { opacity: 0; transition: opacity 1.1s ease; }
.hs.hs-video-actif .hs-video { opacity: 1; }
/* voile : opacite MINIMALE qui tient le contraste du texte a 5:1 (AA = 4,5:1) sur les images les plus claires de CHAQUE video (mesuree par build/mesurer-fonds.mjs, posee en --hs-voile par page).
   Elle ne couvre pleinement que la colonne du texte (52 %) et s'allege vers la droite, la carte du devis etant opaque : le dessin du fond se voit autour. */
.hs-voile { position: absolute; inset: 0; --v: var(--hs-voile, .66);
  background: linear-gradient(100deg, rgba(7,12,24,var(--v)) 0%, rgba(7,12,24,var(--v)) 50%, rgba(7,12,24,calc(var(--v) * .55)) 100%); }
@media (max-width: 899px) { .hs-voile { background: rgba(7,12,24,var(--v)); } }
.hs-sur, .hs-h1, .hs-sous, .hs-intro { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }      /* règle du 2026-11-23 : ombre portée du texte blanc, avec le voile 0,85 (intérieur) ou 0,75 (extérieur) */

.hs-grille { width: 100%; max-width: 1360px; margin: 0 auto; box-sizing: border-box; padding: clamp(24px, 3.4vw, 44px) clamp(16px, 3vw, 44px) clamp(52px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
/* telephone : titre, sous-titre, PUIS la carte de devis (l'action) ; le long texte et les pastilles passent apres */
@media (max-width: 899px) {
  .hs-grille { display: flex; flex-direction: column; gap: 0; }
  .hs-gauche { display: contents; }
  .hs-sur { order: 1; align-self: flex-start; } .hs-h1 { order: 2; } .hs-sous { order: 3; margin-bottom: 22px; }
  .hs-droite { order: 4; margin-bottom: 26px; } .hs-intro { order: 5; } .hs-nav { order: 6; }
}

.hs-sur { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(147,197,253,.16); border: 1px solid rgba(147,197,253,.45); color: #BFDBFE; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hs-h1 { margin: 0 0 14px; font-size: clamp(1.85rem, 1.1rem + 2.7vw, 3.2rem); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.hs-sous { margin: 0 0 14px; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.45; font-weight: 600; color: #F1F5F9; max-width: 60ch; }
.hs-intro { margin: 0 0 24px; font-size: 1rem; line-height: 1.7; color: #E2E8F0; max-width: 64ch; }

.hs-pastilles { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hs-pastille { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; transition: background .18s, color .18s, transform .18s, border-color .18s; }
.hs-pastille i { font-style: normal; opacity: .75; }
.hs-pastille:hover, .hs-pastille:focus-visible { background: #fff; color: #0F172A; border-color: #fff; transform: translateY(-2px); }
.hs-pastille:focus-visible, .hs-cta:focus-visible, .hs-pause:focus-visible, .hs-reduire:focus-visible { outline: 3px solid #93C5FD; outline-offset: 3px; }

/* === Carte Hero epuree : Studio Devis Suisse (maquette de l'utilisateur, 2026-11-23). Integree telle quelle, SAUF l'ombre portee autour de la carte,
   retiree sur sa demande (« enlever ces ombres autour du devis »). Pour la remettre : box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.38); === */
.hs-carte.hs-carte--epuree {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  color: #0f172a;
}

/* En-tete blanc sobre */
.hs-entete-pro { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #ffffff; border-bottom: 1px solid #e2e8f0; }
.hs-marque { display: flex; align-items: center; gap: 11px; min-width: 0; }
.hs-croix-pro { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 7px; background: #d52b1e; }
.hs-croix-pro::before, .hs-croix-pro::after { content: ""; position: absolute; background: #ffffff; border-radius: 1px; }
.hs-croix-pro::before { top: 6px; bottom: 6px; left: 11px; width: 6px; }
.hs-croix-pro::after { left: 6px; right: 6px; top: 11px; height: 6px; }
.hs-marque-txt { display: flex; flex-direction: column; min-width: 0; }
.hs-marque-txt b { font-size: 0.98rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.hs-marque-txt span { font-size: 0.76rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-badge-gratuit { flex-shrink: 0; padding: 5px 10px; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }

/* Plateau ardoise clair et feuille A4 posee ; un clic sur la feuille ouvre le Studio plein ecran */
.hs-plateau { padding: 16px 18px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; cursor: pointer; transition: background .15s; }
.hs-plateau:hover { background: #e8eef5; }
.hs-feuille-a4 { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 14px 16px 12px; box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08); font-size: 0.78rem; }
.hs-plateau:hover .hs-feuille-a4 { border-color: #94a3b8; }
.hs-a4-tete { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 9px; margin-bottom: 8px; border-bottom: 2px solid #0f172a; }
.hs-a4-titre { display: block; font-size: 0.92rem; font-weight: 800; letter-spacing: 0.14em; color: #0f172a; }
.hs-a4-objet { display: block; margin-top: 2px; font-weight: 600; color: #334155; font-size: 0.78rem; }
.hs-a4-meta { text-align: right; font-size: 0.7rem; color: #64748b; display: flex; flex-direction: column; gap: 2px; }

/* Tableau du devis A4 */
.hs-a4-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hs-a4-table th { text-align: left; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; padding: 4px 4px 6px; border-bottom: 1px solid #e2e8f0; }
.hs-a4-table td { padding: 7px 4px; border-bottom: 1px dashed #e2e8f0; color: #1e293b; vertical-align: middle; }
.hs-a4-table .n { text-align: right; white-space: nowrap; }
.hs-a4-table .code { color: #64748b; font-weight: 600; width: 34px; }
.hs-a4-table .muet { color: #94a3b8; }
.hs-a4-table .fort { font-weight: 700; color: #0f172a; }
.hs-a4-table tr.regie td { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.hs-pu-champ { display: inline-block; padding: 2px 7px; border-radius: 4px; background: #f8fafc; border: 1px solid #cbd5e1; color: #475569; font-size: 0.69rem; font-weight: 600; }
.hs-a4-clauses { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 0.69rem; color: #475569; font-weight: 500; }

/* Bande detachable QR-facture en bas de feuille */
.hs-a4-qr { display: flex; align-items: center; gap: 10px; margin-top: 2px; padding-top: 9px; border-top: 1.5px dashed #94a3b8; }
.hs-qr-icone { flex: 0 0 30px; width: 30px; height: 30px; border: 1.5px solid #0f172a; border-radius: 3px; background: repeating-linear-gradient(90deg, #0f172a 0 2px, transparent 2px 4px), repeating-linear-gradient(0deg, #0f172a 0 2px, transparent 2px 4px); display: flex; align-items: center; justify-content: center; }
.hs-qr-croix { width: 12px; height: 12px; background: #0f172a; color: #ffffff; font-size: 10px; font-weight: 900; line-height: 12px; text-align: center; border: 1px solid #ffffff; }
.hs-qr-infos { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hs-qr-infos b { font-size: 0.72rem; color: #0f172a; }
.hs-qr-infos span { font-size: 0.67rem; color: #64748b; }
.hs-qr-devise { font-size: 0.68rem; font-weight: 800; color: #0f172a; padding: 2px 6px; background: #f1f5f9; border-radius: 4px; }

/* 3 garanties en ligne */
.hs-garanties { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 12px 18px 4px; font-size: 0.78rem; font-weight: 600; color: #334155; }
.hs-garanties li::before { content: "✓ "; color: #059669; font-weight: 800; }

/* Pied de carte et bouton unique */
.hs-carte--epuree .hs-carte-pied { padding: 12px 18px 16px; }
.hs-cta { display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; font: inherit; }
.hs-carte--epuree .hs-cta { width: 100%; padding: 14px 18px; border: 0; border-radius: 10px; background: #d52b1e; color: #ffffff; font-size: 0.96rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px -4px rgba(213, 43, 30, 0.45); transition: transform 0.15s ease, background 0.15s ease; }
.hs-carte--epuree .hs-cta:hover { background: #b91c1c; transform: translateY(-1px); }
.hs-pont-pro { margin: 10px 0 0; text-align: center; font-size: 0.74rem; color: #64748b; }
.hs-pont-pro a { color: #0f172a; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hs-pont-pro a:hover { color: #d52b1e; }
@media (max-width: 560px) { .hs-a4-table tbody tr:nth-child(2) { display: none; } .hs-a4-clauses { flex-direction: column; gap: 2px; } .hs-marque-txt span { display: none; } }


.hs-pause { position: absolute; left: clamp(12px, 2vw, 24px); bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(15,23,42,.6); color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.hs-pause[hidden] { display: none; }
.hs-pause:hover { background: rgba(15,23,42,.9); }

/* ------------------------------------------------------------------ PLEIN ECRAN (meme adresse) */
.hs-plein { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: #F1F5F9; }
html[data-theme="dark"] .hs-plein { background: #020617; }
.hs-plein[hidden] { display: none; }
.hs-barre { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 7px clamp(10px, 2vw, 24px); background: #0F172A; color: #CBD5E1; font-size: .85rem; border-bottom: 1px solid #1E293B; }
.hs-reduire { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 700; font-size: .88rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; text-align: left; }
.hs-reduire:hover { background: #fff; color: #0F172A; }
.hs-barre-info { margin-left: auto; text-align: right; }
@media (max-width: 640px) { .hs-barre-info { display: none; } .hs-reduire { flex: 1; } }
.hs-hote { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; background: inherit; }
.hs-hote .sds-app { min-height: 100%; }

@media (prefers-reduced-motion: reduce) { .hs-video { transition: none; } .hs-pastille, .hs-cta { transition: none; } }

/* ------------------------------------------------------------------ CORPS DE PAGE (sous le hero) */
.hs-corps { max-width: 1120px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 28px) 72px; }
.hs-corps section { padding: 40px 0 8px; scroll-margin-top: 16px; border-top: 1px solid var(--hs-bord); }
.hs-corps section:first-child { border-top: 0; }
.hs-corps h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; }
.hs-corps h3 { margin: 26px 0 8px; font-size: 1.1rem; }
.hs-corps p { margin: 0 0 14px; max-width: 78ch; color: var(--hs-sec); }
.hs-corps p strong, .hs-corps li strong { color: var(--hs-txt); }
.hs-fil { margin: 20px 0 0; font-size: .88rem; color: var(--hs-mut); }
.hs-fil a { color: var(--hs-bleu); }
.hs-tablewrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--hs-bord); border-radius: 12px; background: var(--hs-bg); }
.hs-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.hs-table caption { text-align: left; padding: 12px 14px 4px; font-weight: 800; color: var(--hs-txt); }
.hs-table th, .hs-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hs-bord); vertical-align: top; }
.hs-table thead th { background: var(--hs-fond); color: var(--hs-sec); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.hs-table tbody tr:last-child td, .hs-table tbody tr:last-child th { border-bottom: 0; }
.hs-table tbody th { font-weight: 600; color: var(--hs-txt); }
.hs-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-table tr.tot td, .hs-table tr.tot th { background: var(--hs-fond); font-weight: 800; }
.hs-table td.neg { color: #B91C1C; }
html[data-theme="dark"] .hs-table td.neg { color: #FCA5A5; }
.hs-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0 18px; }
.hs-c { border: 1px solid var(--hs-bord); border-radius: 14px; padding: 16px 18px; background: var(--hs-fond2); }
.hs-c h3 { margin: 0 0 6px; font-size: 1.02rem; }
.hs-c p { margin: 0; font-size: .95rem; }
.hs-c blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--hs-bleu); background: var(--hs-bg); border-radius: 0 8px 8px 0; font-size: .92rem; color: var(--hs-txt); }
.hs-nb { font-size: .86rem; color: var(--hs-mut); }
.hs-lire { padding: 10px 14px; border-left: 3px solid var(--hs-bord2); background: var(--hs-fond2); border-radius: 0 10px 10px 0; font-size: .95rem; }
.hs-lire b { color: var(--hs-txt); }
.hs-piege { margin: 18px 0 20px; padding: 14px 18px 4px; border: 1px solid #F3C98B; border-left: 5px solid #D97706; border-radius: 12px; background: #FFF8EB; }
.hs-piege b { display: block; margin-bottom: 4px; color: #92400E; font-size: .95rem; }
.hs-corps .hs-piege p { color: #3B2A12; }
html[data-theme="dark"] .hs-piege { background: #2A1D08; border-color: #6B4A13; border-left-color: #F59E0B; }
html[data-theme="dark"] .hs-piege b { color: #FCD34D; }
html[data-theme="dark"] .hs-corps .hs-piege p { color: #FDE9C0; }
.hs-essai-fond { position: fixed; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 12px; background: #0F172A; color: #fff; font: 600 .8rem/1 system-ui, sans-serif; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); }
.hs-essai-fond select { font: inherit; color: #0F172A; border-radius: 7px; padding: 4px 6px; }
.hs-pont { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; }
.hs-pont a { display: block; border: 1px solid var(--hs-bord2); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--hs-txt); background: var(--hs-bg); transition: border-color .15s, box-shadow .15s; }
.hs-pont a:hover, .hs-pont a:focus-visible { border-color: var(--hs-bleu); box-shadow: 0 10px 30px -18px rgba(29,78,216,.6); }
.hs-pont b { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.hs-pont span { color: var(--hs-sec); font-size: .93rem; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; padding: 0; list-style: none; }
.hs-chips a { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hs-bord2); background: var(--hs-bg); color: var(--hs-txt); font-size: .9rem; font-weight: 600; text-decoration: none; }
.hs-chips a:hover { border-color: var(--hs-bleu); color: var(--hs-bleu); }
.hs-chips a[aria-current] { background: var(--hs-bleu); border-color: var(--hs-bleu); color: #fff; }
.hs-liste { margin: 0 0 16px; padding-left: 1.2em; max-width: 78ch; color: var(--hs-sec); }
.hs-liste li { margin: 0 0 6px; }
.hs-communes span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hs-bord2); background: var(--hs-fond2); color: var(--hs-txt); font-size: .9rem; font-weight: 600; }
.hs-faq details { border: 1px solid var(--hs-bord); border-radius: 12px; margin: 0 0 10px; background: var(--hs-bg); }
.hs-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--hs-txt); }
.hs-faq details[open] summary { border-bottom: 1px solid var(--hs-bord); }
.hs-faq details p { padding: 12px 18px 4px; margin: 0 0 8px; }
.hs-sources { margin-top: 28px; padding: 14px 18px; border-radius: 12px; background: var(--hs-fond); color: var(--hs-sec); font-size: .88rem; }
.hs-corps a { color: var(--hs-bleu); }
/* lot final : fil d'Ariane visible (lien vers la page mere) et bloc de retour en fin de page */
.hs-fil + section { border-top: 0; padding-top: 24px; }
.hs-fil a { color: var(--hs-mut); text-decoration: underline; text-underline-offset: 2px; }
.hs-fil a:hover, .hs-fil a:focus-visible { color: var(--hs-bleu); }
.hs-fil [aria-current] { color: var(--hs-sec); font-weight: 600; }
.hs-retour { margin: 40px 0 0; padding: 16px 20px; border: 1px solid var(--hs-bord2); border-radius: 14px; background: var(--hs-fond); }
.hs-retour p { margin: 0; max-width: none; }
