/* OrbeProject · couche « nextgen v3 » : chargée après site.css. Sur téléphone : pas de piles de cartes (carrousels, blocs repliables). */
html, body { overflow-x: clip; }
main { overflow-x: clip; }
.nav a.l.cur { color: var(--accent); background: var(--soft); }
.chips, .sticky-dl { display: none; }
.anchor { height: 0; scroll-margin-top: 90px; }

/* ----- blocs repliables « Fonctions » / « Compte » (details.group) ----- */
details.group > summary { list-style: none; display: inline-block; font: 600 .8rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--soft); padding: 5px 13px; border-radius: 999px; margin-bottom: 6px; cursor: default; pointer-events: none; }
details.group > summary::-webkit-details-marker { display: none; }
.can-compte { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ----- galerie de l'écran ----- */
.gal-bar { display: none; align-items: center; justify-content: center; gap: 12px; margin: 0 0 22px; }
html.ng .gal-bar { display: flex; }
.gal-lab { font-weight: 600; color: var(--ink); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line2); gap: 4px; }
.seg button { border: 0; background: none; color: var(--mute); font: 600 .95rem var(--body); padding: 9px 20px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(124,58,237,.3); }
.gal-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.gal-item { margin: 0; }
.gal-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; background: #07050f; border: 1px solid rgba(124,58,237,.3); box-shadow: 0 22px 50px rgba(76,29,149,.2); }
.gal-item figcaption { margin-top: 12px; color: var(--mute); font-size: .95rem; line-height: 1.5; }
.gal-item figcaption b { color: var(--ink); display: block; font: 600 1.05rem var(--serif); margin-bottom: 2px; }

/* ----- blocs « en savoir plus » (coûts, matériel) ----- */
details.more { margin-top: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(111,53,242,.07); padding: 0 24px 18px; }
details.more > summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 14px 0; font: 600 1.1rem var(--serif); min-height: 44px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; position: absolute; right: 0; top: 50%; margin-top: -15px; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font: 500 1.4rem var(--body); transition: transform .2s; }
details.more[open] > summary::after { transform: rotate(45deg); }
details.more .intro { color: var(--mute); margin: 0 0 8px; max-width: 70ch; }

/* ----- divers ----- */
.keep { margin-top: 16px; color: var(--mute); font-size: .95rem; text-align: center; }
.adm { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.guide-line { text-align: center; margin-top: 28px; }
.guide-line .scene-cta { justify-content: center; }
.after .pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.after .pills li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px dashed var(--line2); color: var(--ink); font-weight: 600; font-size: .95rem; }
footer .fcol > summary { list-style: none; margin: 0 0 14px; font: 600 .76rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: #b79cff; cursor: default; pointer-events: none; }
footer .fcol > summary::-webkit-details-marker { display: none; }

/* ============ téléphone et petite tablette : menu + barre de sections ============ */
@media (max-width: 860px) {
  :root { --gut: 16px; --wrap: min(1180px, 100% - 2 * var(--gut)); }
  html { scroll-padding-top: 116px; }
  .top .wrap { height: 58px; }
  .nav { top: 58px; }
  .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 59px; z-index: 25;
    padding: 8px var(--gut); background: rgba(248,246,252,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; text-decoration: none; font: 500 .88rem var(--body); color: var(--mute); padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
  .chips a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
}

/* ============ téléphone ============ */
@media (max-width: 760px) {
  section { padding: 44px 0; }
  .head { margin-bottom: 18px; gap: 8px; }
  h2 { font-size: 1.6rem; }
  .lede { font-size: 1rem; }
  .btn { min-height: 44px; }
  .eyebrow { font-size: .72rem; padding: 5px 12px; margin-bottom: 8px; }

  /* carrousels : la carte suivante dépasse (~15 %), pas de barre de défilement */
  .wrap .car { display: flex !important; grid-template-columns: none !important; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 12px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .wrap .car::-webkit-scrollbar { display: none; }
  .wrap .car > * { flex: 0 0 84%; scroll-snap-align: start; margin: 0; min-width: 0; }
  .acc-cards article, .extras div, .step, .steps3 li { padding: 16px 18px; border-radius: 18px; }
  .acc-cards article:hover { transform: none; }
  .gal-track > .gal-item { flex-basis: 86%; }
  .gal-item img { border-radius: 16px; }
  .gal-bar { flex-wrap: wrap; margin-bottom: 14px; }

  /* piliers : lignes compactes */
  .pillars { padding-bottom: 16px; }
  .pillar-grid { gap: 8px; }
  .pillar { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; box-shadow: none; }
  .pillar .ico { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-radius: 12px; }
  .pillar h2 { font-size: 1.02rem; margin: 0; }
  .pillar p { font-size: .88rem; line-height: 1.4; }

  /* blocs repliables */
  .can, .can-compte { grid-template-columns: 1fr; gap: 10px; }
  details.group { padding: 4px 16px; border-radius: 18px; box-shadow: 0 8px 22px rgba(111,53,242,.07); }
  details.group > summary { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 12px 0; min-height: 44px; border-radius: 0; background: none !important; font-size: .86rem; cursor: pointer; pointer-events: auto; position: relative; }
  details.group > summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
  details.group[open] > summary::after { transform: rotate(-135deg); }
  .row { padding: 12px 0; }
  .row dt { font-size: 1rem; }
  .row dd { font-size: .92rem; }
  .acc-cta { margin-top: 18px; }
  .acc-cta .btn { flex: 1 1 100%; }
  .keep { font-size: .9rem; text-align: left; }
  .adm { grid-template-columns: 1fr; gap: 8px; }
  .points li { padding: 12px 16px; }
  section.compte-band > .wrap { padding: 22px 16px; border-radius: 24px; }
  #compte .vs article { padding: 16px; }
  details.more { padding: 0 16px 14px; border-radius: 18px; }
  details.more > summary { font-size: 1.02rem; }

  /* tableaux -> listes */
  details.more table, details.more tbody, details.more tr, details.more td { display: block; width: 100%; }
  details.more thead { display: none; }
  details.more tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  details.more tbody tr:last-child { border-bottom: 0; }
  details.more td { border: 0; padding: 2px 0; }
  details.more td:first-child { color: var(--ink); }
  #materiel td:nth-child(3)::before { content: "Plus à l'aise : "; color: var(--accent); font-weight: 600; font-size: .8rem; }
  #cout td.price { color: var(--accent); font-weight: 600; }
  .faq summary { padding: 16px 54px 16px 18px; font-size: 1.02rem; min-height: 44px; }
  .faq .ans { padding: 0 18px 18px; }
  .after .pills li { padding: 10px 14px; font-size: .9rem; }

  /* pied de page : colonnes repliables, sans le grand décor */
  footer { padding: 32px 0 24px; }
  footer .cols { grid-template-columns: 1fr; gap: 0; }
  footer .cols > :first-child { margin-bottom: 14px; }
  footer .fcol { border-top: 1px solid var(--line); }
  footer .fcol > summary { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 14px 0; min-height: 44px; cursor: pointer; pointer-events: auto; }
  footer .fcol > summary::after { content: "+"; font: 500 1.3rem var(--body); }
  footer .fcol[open] > summary::after { content: "–"; }
  footer .fcol ul { padding-bottom: 14px; }
  footer .mega { display: none; }
  footer .excl { margin-top: 16px; padding: 12px 14px; }
  footer .legal { flex-direction: column; gap: 6px; }

  /* barre fixe */
  html.has-sticky body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sticky-dl { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; gap: 10px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,246,252,.95);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s; }
  .sticky-dl.show { transform: none; }
  .sticky-dl .btn { flex: 1 1 auto; padding: 13px 14px; font-size: .92rem; }
  .sticky-dl .btn.ghost { flex: 0 0 auto; padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-dl, details.group > summary::after, details.more > summary::after { transition: none; } }

@media (max-width: 760px) {
  .wrap .car { align-items: flex-start; }
  .steps3 li, .step { font-size: .92rem; }
  .step { padding: 14px 16px; }
  .step p { font-size: .88rem; line-height: 1.45; }
  .step::before, .steps3 li::before { width: 30px; height: 30px; font-size: .95rem; margin-bottom: 8px; }
  .adm li { padding: 9px 14px; font-size: .88rem; }
  .adm li b { display: inline; font: 600 .95rem var(--body); }
  .split { gap: 10px; margin: 14px 0 10px; }
  .split-col { padding: 14px 16px; border-radius: 16px; }
  .split-col h3 { font-size: 1rem; margin-bottom: 6px; }
  .split-col ul { font-size: .88rem; gap: 2px; }
  .honest { padding: 12px 14px; font-size: .9rem; }
  .sub, .sub0 { font-size: 1.15rem; margin: 22px 0 10px; }
  #compte .vs { margin-top: 0; }
  #compte .vs article { font-size: .9rem; }
  #compte .vs ul { font-size: .88rem; }
  .compte-band .acc-cta { margin-top: 12px; }
  .compte-band > .wrap > .acc-cta:last-of-type { display: none; }
  .compte-band .acc-cta .btn { flex: 1 1 45%; padding-inline: 10px; font-size: .9rem; }
  .orb-stage { padding: 14px; border-radius: 20px; gap: 6px; }
  .orbx.big { width: 110px; height: 110px; }
  .perso-grid { gap: 14px; }
  .perso-grid .lede { display: none; }
  .swatches { margin: 10px 0 6px; }
  .scene { padding: 16px; gap: 14px; }
  .scene-note { display: none; }
  .scene-ui { padding: 12px; }
  .scene h3 { font-size: 1.25rem; }
  .fn-cta { padding: 14px 16px; margin-top: 16px; font-size: .95rem; }
  .guide-line { margin-top: 18px; }
  .guide-line .scene-cta .btn { flex: 1 1 45%; padding-inline: 10px; font-size: .9rem; }
  .hero2 { padding-bottom: 20px; }
}
@media (max-width: 760px) {
  .pillar { padding: 10px 12px; }
  .pillar p { font-size: .84rem; }
  section.after { padding: 28px 0; }
  .after .head { margin-bottom: 12px; }
  #faq .head .lede, #ecran .head .lede, #fonctions .head .lede { display: none; }
  .perso-grid h3.sub0 { display: none; }
  .fine { margin: 4px 0 0; }
}
@media (max-width: 760px) {
  .compte-band .acc-cta, .guide-line .scene-cta { flex-wrap: nowrap; gap: 8px; justify-content: center; }
  .compte-band .acc-cta .btn, .guide-line .scene-cta .btn { flex: 0 1 auto; white-space: nowrap; padding-inline: 14px; font-size: .88rem; }
}
@media (max-width: 860px) { .chips a { min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; } }
