/* hbtools.app v3 : à la manière d'une page produit Apple (code original, police du système). Clair par défaut, foncé au choix. */
:root {
  --page: #ffffff; --gris: #f5f5f7; --tuile: #ffffff; --tuile-gris: #f5f5f7;
  --logo: #0c1c30;
  --encre: #1d1d1f; --second: #6e6e73; --discret: #6e6e73;
  --filet: #d2d2d7; --filet-doux: rgba(0, 0, 0, .08);
  --accent: #0a7d72; --sur-accent: #ffffff; --or: #8a5a00;
  --nav: rgba(255, 255, 255, .78); --ombre-tel: rgba(0, 0, 0, .18); --texte-page: #1d1d1f;
  --ressort: cubic-bezier(.32, .72, 0, 1);
  --sys: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --page: #000000; --gris: #0b0b0c; --tuile: #161617; --tuile-gris: #232325;
    --logo: #ffffff;
    --encre: #f5f5f7; --second: #a1a1a6; --discret: #86868b;
    --filet: #424245; --filet-doux: rgba(255, 255, 255, .1);
    --accent: #2ad4c2; --sur-accent: #001a17; --or: #ffcc4d;
    --nav: rgba(22, 22, 23, .78); --ombre-tel: rgba(0, 0, 0, .6); --texte-page: #e8e8ed;
    color-scheme: dark;
  }
}
:root[data-theme="sombre"] {
  --logo: #ffffff;
  --page: #000000; --gris: #0b0b0c; --tuile: #161617; --tuile-gris: #232325;
  --encre: #f5f5f7; --second: #a1a1a6; --discret: #86868b;
  --filet: #424245; --filet-doux: rgba(255, 255, 255, .1);
  --accent: #2ad4c2; --sur-accent: #001a17; --or: #ffcc4d;
  --nav: rgba(22, 22, 23, .78); --ombre-tel: rgba(0, 0, 0, .6); --texte-page: #e8e8ed;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--encre); font: 17px/1.47 var(--sys); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -.005em; }
h3 { font-size: 21px; line-height: 1.19; letter-spacing: .011em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barre de navigation ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--filet-doux); }
.nav-in { max-width: 1024px; margin: 0 auto; height: 52px; padding: 0 22px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--encre); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo { color: var(--logo); }
.logo-svg { display: block; height: 24px; width: auto; }
.menu { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.menu > a { color: var(--encre); opacity: .8; font-size: 12.5px; letter-spacing: -.01em; transition: opacity .3s; }
.menu > a:hover { opacity: 1; text-decoration: none; }
.langues { display: flex; gap: 2px; }
.langues a { font-size: 12px; color: var(--second); padding: 3px 6px; border-radius: 6px; letter-spacing: 0; }
.langues a:hover { color: var(--encre); text-decoration: none; }
.langues a[aria-current] { color: var(--encre); font-weight: 600; background: var(--filet-doux); }
.theme { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--encre); opacity: .8; cursor: pointer; transition: opacity .3s, background .3s; }
.theme:hover { opacity: 1; background: var(--filet-doux); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme .soleil-ic { display: none; }
:root[data-theme="sombre"] .theme .soleil-ic { display: block; }
:root[data-theme="sombre"] .theme .lune { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .theme .soleil-ic { display: block; }
  :root:not([data-theme="clair"]) .theme .lune { display: none; }
}
.burger { display: none; position: relative; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--encre); border-radius: 1px; transition: transform .45s var(--ressort); }
.burger span:nth-child(1) { top: 12px; } .burger span:nth-child(2) { top: 19px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- héros ---------- */
.heros { text-align: center; padding: 72px 22px 0; max-width: 1100px; margin: 0 auto; }
.produit { font-size: 21px; font-weight: 600; margin: 0 0 6px; color: var(--accent); letter-spacing: .011em; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.04; letter-spacing: -.02em; font-weight: 700; }
.accroche { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--second); max-width: 34em; margin: 22px auto 0; letter-spacing: .004em; }
.magasins { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.magasin { display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px 9px 16px; border-radius: 999px; background: var(--encre); color: var(--page); cursor: default; font-size: 17px; font-weight: 600; }
.magasin svg { width: 22px; height: 22px; }
.magasin span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.magasin small { font-size: 11px; font-weight: 400; opacity: .75; letter-spacing: 0; }
.liens-heros { margin: 22px 0 0; font-size: 19px; }
.liens-heros a { display: inline-flex; align-items: center; gap: 2px; }
.liens-heros svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trio { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px); margin-top: 64px; }
.iphone { position: relative; border-radius: 13% / 6%; padding: 2.2%; background: #1d1d1f; box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 40px 80px -30px var(--ombre-tel); }
.iphone img { width: 100%; height: auto; border-radius: 11.5% / 5.3%; }
.trio .centre { width: min(300px, 40vw); z-index: 1; }
.trio .cote { width: min(250px, 32vw); margin-bottom: 30px; }
.public { margin: 36px 0 0; color: var(--discret); font-size: 14px; }

/* ---------- section en direct : toujours noire, comme un écran ---------- */
.direct { margin-top: 110px; background: #000; color: #f5f5f7; padding: 110px 22px; text-align: center; }
.direct-in { max-width: 980px; margin: 0 auto; }
.direct .sous { color: #a1a1a6; }
.recepteur { margin: 56px 0 0; text-align: left; }
.recepteur-in { border-radius: 28px; background: #111113; box-shadow: inset 0 0 0 1px #2c2c2e; }
.recepteur-tete { display: flex; align-items: center; gap: 10px; padding: 22px 28px 0; font-size: 14px; color: #a1a1a6; }
.point-direct { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 4px rgba(255, 69, 58, .18); animation: pouls 2s steps(2) infinite; flex: none; }
@keyframes pouls { 50% { opacity: .3; } }
.spectre { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; height: 340px; padding: 26px 28px 0; }
.barre { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; }
.puits { position: relative; flex: 1; border-radius: 10px; background: #1c1c1e; overflow: hidden; }
.niveau { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 10px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 40%, #1c1c1e));
  transition: height 1.4s var(--ressort); }
.niveau::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .85); }
.barre.eteinte .niveau { background: color-mix(in srgb, var(--c) 20%, #1c1c1e); }
.barre.eteinte .niveau::after { display: none; }
.barre span { font: 500 12.5px var(--mono); text-align: center; color: #f5f5f7; letter-spacing: 0; }
.barre.eteinte span { color: #6e6e73; }
.recepteur-pied { display: flex; justify-content: space-between; gap: 16px; padding: 16px 28px 22px; font-size: 13px; color: #86868b; }
.spectre-info { font-family: var(--mono); color: #a1a1a6; letter-spacing: 0; min-height: 1.4em; }

/* ---------- sections ---------- */
.section { padding: 120px 22px 0; max-width: 1100px; margin: 0 auto; }
.section.gris { max-width: none; background: var(--gris); padding-bottom: 120px; margin-top: 120px; }
.section.gris > * { max-width: 1056px; margin-left: auto; margin-right: auto; }
.section.gris + .section { padding-top: 120px; }
.centre-tete { text-align: center; max-width: 760px; margin: 0 auto; }
.sous { font-size: clamp(19px, 2vw, 21px); line-height: 1.4; color: var(--second); margin: 16px auto 0; max-width: 36em; letter-spacing: .011em; }

.mesure h2 { text-align: center; }
.raisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.raison p { margin: 10px 0 0; color: var(--second); }

/* tuiles façon page produit */
.tuiles { display: grid; gap: 20px; margin-top: 56px; }
.tuile { background: var(--tuile); border-radius: 28px; padding: 48px; overflow: hidden; }
.vedette { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: center; padding-bottom: 0; }
.vedette-texte { padding-bottom: 48px; }
.tuile-sur { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--or); letter-spacing: .02em; }
.vedette h3 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.003em; }
.vedette-texte > p:last-child { font-size: 19px; color: var(--second); margin: 16px 0 0; max-width: 26em; }
.vedette-image { align-self: end; display: flex; justify-content: center; height: 420px; overflow: hidden; }
.vedette-image .iphone { width: min(280px, 70%); height: max-content; margin-top: 48px; }
.reglage h3 { font-size: clamp(26px, 2.8vw, 32px); }
.tuile-sous { color: var(--second); margin: 10px 0 0; font-size: 17px; max-width: 40em; }
.profils { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.profils button { border: 0; cursor: pointer; font: 400 15px var(--sys); letter-spacing: -.01em; color: var(--encre); padding: 9px 18px; border-radius: 999px;
  background: var(--tuile-gris); box-shadow: inset 0 0 0 1px var(--filet-doux); transition: background .4s var(--ressort), color .4s var(--ressort), transform .3s var(--ressort); }
.profils button:hover { box-shadow: inset 0 0 0 1px var(--filet); }
.profils button:active { transform: scale(.97); }
.profils button[aria-checked="true"] { background: var(--encre); color: var(--page); box-shadow: none; }
.accord-desc { margin: 18px 0 0; color: var(--second); min-height: 1.5em; }
.accord-desc .compte { color: var(--accent); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.plan { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.voie { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 16px; padding: 18px 0; box-shadow: 0 -1px 0 var(--filet-doux); transition: opacity .6s var(--ressort); }
.led { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); transition: background .6s, box-shadow .6s; }
.voie h3 { font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voie p { margin: 4px 0 0; color: var(--second); font-size: 15px; line-height: 1.45; }
.pro { font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--or); }
.voie.eteinte { opacity: .32; }
.voie.eteinte .led { background: var(--discret); box-shadow: none; }

/* galerie */
.galerie-bloc { max-width: none; padding-left: 0; padding-right: 0; }
.galerie-bloc .centre-tete { padding: 0 22px; }
.captures { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 56px max(22px, calc((100% - 1056px) / 2)) 24px; scrollbar-width: none; }
.captures::-webkit-scrollbar { display: none; }
.capture { flex: 0 0 260px; margin: 0; scroll-snap-align: center; }
.capture .telephone { border-radius: 13% / 6%; padding: 2.2%; background: #1d1d1f; box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 30px 60px -30px var(--ombre-tel); }
.capture .telephone img { width: 100%; height: auto; border-radius: 11.5% / 5.3%; }
.capture figcaption { font-size: 15px; color: var(--second); margin-top: 18px; text-align: center; }

/* appareils */
.appareils { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 64px; text-align: center; }
.appareil .ic { display: inline-grid; place-items: center; width: 56px; height: 56px; color: var(--encre); }
.appareil .ic svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.appareil h3 { font-size: 19px; margin-top: 12px; }
.appareil p { color: var(--second); margin: 8px 0 0; font-size: 15px; }

/* prix */
.tarifs-cadre { margin-top: 56px; max-width: 860px; background: var(--tuile); border-radius: 28px; padding: 24px 32px 16px; }
.tarifs { width: 100%; border-collapse: collapse; }
.tarifs th, .tarifs td { padding: 15px 12px; text-align: center; }
.tarifs thead th { vertical-align: bottom; padding-top: 24px; padding-bottom: 24px; }
.tarifs thead th:first-child { width: 50%; }
.tarifs tbody th { text-align: left; font-weight: 400; font-size: 16px; padding-left: 0; }
.tarifs tbody tr > * { border-top: 1px solid var(--filet-doux); }
.formule { display: block; font-size: 17px; font-weight: 600; color: var(--second); }
.col-pro .formule { color: var(--accent); }
.montant { display: block; font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin-top: 6px; white-space: nowrap; }
.detail { display: block; font-size: 14px; color: var(--discret); margin-top: 4px; }
.oui { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; vertical-align: middle; }
.oui::after { content: ''; position: absolute; left: 8px; top: 4.5px; width: 5px; height: 10px; border: solid var(--sur-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.non { display: inline-block; width: 12px; height: 1.5px; border-radius: 1px; background: var(--discret); vertical-align: middle; }
.essai { text-align: center; color: var(--second); margin: 24px auto 0; }

/* famille */
.parents { list-style: none; padding: 0; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1056px; }
.parents a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 32px; border-radius: 24px; background: var(--gris); color: var(--encre); transition: transform .5s var(--ressort); }
.parents a:hover { text-decoration: none; transform: scale(1.015); }
.parents strong { font-size: 24px; font-weight: 600; }
.parents span { color: var(--second); font-size: 15px; }
.parents em { font-style: normal; color: var(--accent); font-size: 15px; margin-top: auto; padding-top: 14px; }

/* questions */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; border-radius: 1px; background: var(--encre); transition: transform .45s var(--ressort); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq p { margin: 0 0 24px; color: var(--second); max-width: 40em; }

/* pied façon Apple */
.pied { margin-top: 120px; background: var(--gris); font-size: 12px; color: var(--second); letter-spacing: -.01em; }
.pied-in { max-width: 1024px; margin: 0 auto; padding: 20px 22px 24px; }
.pied-texte { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--filet); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; }
.pied-liens { display: flex; flex-wrap: wrap; }
.pied-liens a { color: var(--second); padding: 0 10px; border-left: 1px solid var(--filet); }
.pied-liens a:first-child { border-left: 0; padding-left: 0; }
.pied-liens a:hover { color: var(--encre); }
.remonter { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--nav); color: var(--encre); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--filet-doux), 0 10px 30px -10px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ressort), transform .6s var(--ressort); }
.remonter svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.remonter.visible { opacity: 1; transform: none; pointer-events: auto; }
.remonter:hover { text-decoration: none; }

/* page de confidentialité */
.page { max-width: 760px; margin: 0 auto; padding: 72px 22px 0; }
.page h1 { font-size: clamp(40px, 6vw, 56px); }
.page .intro { font-size: 21px; color: var(--second); margin-top: 16px; }
.page h2 { font-size: 24px; margin: 48px 0 12px; }
.page p, .page li { color: var(--texte-page); }
.page ul { padding-left: 20px; }
.page li { margin: 8px 0; }
.maj { font-size: 14px; color: var(--discret) !important; margin-top: 48px; }

/* ---------- tablette et téléphone ---------- */
@media (max-width: 1000px) {
  .raisons { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 620px; margin-left: auto; margin-right: auto; }
  .appareils { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .parents { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
}
@media (max-width: 760px) {
  .nav-in { gap: 8px; padding: 0 16px; height: 48px; }
  .burger { display: block; }
  .menu { position: fixed; inset: 48px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px; background: var(--page);
    transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .6s var(--ressort), opacity .4s, visibility 0s .6s; z-index: 29; box-shadow: 0 1px 0 var(--filet-doux); }
  .menu.ouvert { transform: none; opacity: 1; visibility: visible; transition: transform .6s var(--ressort), opacity .4s; }
  .menu > a { font-size: 24px; font-weight: 600; opacity: 1; padding: 10px 0; }
  .langues { margin-top: 18px; gap: 6px; }
  .langues a { font-size: 15px; padding: 6px 10px; }
  .theme { margin-left: auto; }
  .heros { padding-top: 48px; }
  .trio { margin-top: 48px; }
  .trio .cote { margin-bottom: 18px; }
  .direct { margin-top: 80px; padding: 80px 16px; }
  .recepteur-tete { padding: 18px 16px 0; font-size: 13px; }
  .spectre { height: 220px; gap: 4px; padding: 18px 14px 0; }
  .barre span { font-size: 10px; }
  .recepteur-pied { padding: 12px 16px 18px; flex-direction: column; gap: 2px; }
  .section { padding-top: 88px; }
  .section.gris { margin-top: 88px; padding-bottom: 88px; padding-left: 16px; padding-right: 16px; }
  .section.gris + .section { padding-top: 88px; }
  .tuile { padding: 32px 24px; border-radius: 24px; }
  .vedette { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vedette-texte { padding-bottom: 0; }
  .vedette-image { height: 340px; }
  .vedette-image .iphone { width: 62%; margin-top: 16px; }
  .plan { grid-template-columns: minmax(0, 1fr); }
  .profils button { padding: 8px 14px; font-size: 14.5px; }
  .capture { flex-basis: 66%; }
  .appareils { grid-template-columns: minmax(0, 1fr); }
  .tarifs-cadre { padding: 12px 16px 8px; border-radius: 22px; }
  .tarifs th, .tarifs td { padding: 13px 4px; }
  .tarifs tbody th { font-size: 14.5px; }
  .tarifs thead th:first-child { width: auto; }
  .tarifs thead th:not(:first-child) { width: 84px; }
  .montant { font-size: 21px; }
  .formule { font-size: 14px; }
  .detail { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.section > h2, .section > .sous { text-align: center; }
