/* NeuroEcho, page de vente.
   Charte neurosound.bio (crème, or) et dégradé or, rose, violet de l'application.
   Un seul moment fort : la boucle à essayer, sur fond nuit. Le reste reste calme. */

:root {
  --creme: #F7F3EA;
  --creme-2: #FBF8F2;
  --papier: #FFFDF8;
  --encre: #17150F;
  --gris: #6E6656;
  --gris-clair: #9A917F;
  --filet: #E7DEC9;
  --or: #C2A04E;
  --or-profond: #836316;
  --or-sombre: #6C5212;
  --rose: #E08BAE;
  --violet: #8C6FD8;
  --violet-profond: #5B45A8;
  --nuit: #1C1629;
  --nuit-2: #282036;
  --grad: linear-gradient(115deg, #C2A04E 0%, #E08BAE 50%, #8C6FD8 100%);
  --grad-or: linear-gradient(135deg, #D9BA68 0%, #A8812A 55%, #836316 100%);
  --ombre: 0 24px 60px rgba(91, 69, 168, .12), 0 4px 14px rgba(23, 21, 15, .05);
  --titre: "Bebas Neue", "DM Sans", sans-serif;
  --texte: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: min(1180px, 100% - 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 17px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--or-profond); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid rgba(140, 111, 216, .55); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--encre); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Typographie ---------- */
.display {
  font: 400 clamp(64px, 11vw, 156px)/.86 var(--titre);
  letter-spacing: .005em;
  color: var(--or-profond);
  margin: 0 0 28px;
  text-wrap: balance;
}
.h2 {
  font: 400 clamp(40px, 5.6vw, 72px)/.95 var(--titre);
  letter-spacing: .01em;
  color: var(--or-profond);
  margin: 0 0 22px;
  max-width: 17ch;
  text-wrap: balance;
}
/* Titre d'ouverture : 64 pt sur grand écran (choix de la page), réduit sur téléphone pour tenir dans l'écran */
.display.display-titre { font-size: clamp(50px, 9vw, 64pt); }
.h2.clair { color: #F3E6C4; }
.h3 { font: 400 40px/1 var(--titre); color: var(--or-profond); }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #3A352B; max-width: 34em; }
.kicker { font-weight: 700; color: var(--violet-profond); margin: 0 0 14px; }
.petit { font-size: 15px; color: var(--gris); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 16px 28px;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn-gold { color: #fff; background: var(--grad-or); box-shadow: 0 14px 30px rgba(131, 99, 22, .30), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(131, 99, 22, .36), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost { color: var(--or-profond); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1.5px rgba(194, 160, 78, .7); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 12px max(16px, (100% - 1180px) / 2);
  background: rgba(247, 243, 234, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(194, 160, 78, .18);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 30px/1 var(--titre); color: var(--or-profond); text-decoration: none; letter-spacing: .02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 9px; background: var(--grad); box-shadow: 0 6px 16px rgba(140, 111, 216, .35); }
.top-nav { display: flex; gap: 22px; margin-left: 18px; }
.top-nav a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: 15px; }
.top-nav a:hover { color: var(--or-profond); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-login { font-weight: 600; font-size: 15px; text-decoration: none; }
.langue-lien { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--or-profond); padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(194, 160, 78, .55); }
.langue-lien:hover { background: #fff; }

/* ---------- Ouverture ---------- */
.hero {
  width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}
.hero-text { min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.assurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--gris); font-size: 15px; }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

.hero-visual { position: relative; min-width: 0; }
.arch {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 36px 36px;
  box-shadow: var(--ombre);
  background: var(--creme-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-orb {
  position: absolute; left: -16%; top: -8%;
  width: 58%; aspect-ratio: 1; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(140, 111, 216, .18));
}

/* ---------- Problème ---------- */
.probleme { width: var(--page); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--filet); }
.probleme-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.probleme-intro { font-size: 19px; color: #3A352B; }
.contraste { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.contraste > div { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 1px solid var(--filet); }
.contraste dt { font: 400 28px/1 var(--titre); color: var(--gris); margin-bottom: 12px; }
.contraste dd { margin: 0 0 10px; font-size: 15.5px; line-height: 1.5; color: var(--gris); }
.contraste .avec { background: var(--papier); border-color: rgba(140, 111, 216, .35); box-shadow: 0 16px 40px rgba(140, 111, 216, .12); }
.contraste .avec dt { color: var(--violet-profond); }
.contraste .avec dd { color: var(--encre); }

/* ---------- La boucle (le moment fort) ---------- */
.boucle {
  background:
    radial-gradient(60% 70% at 70% 40%, rgba(140, 111, 216, .28), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgba(224, 139, 174, .16), transparent 70%),
    var(--nuit);
  color: #E9E2F2;
  padding: clamp(64px, 9vw, 120px) 0;
}
.boucle-inner {
  width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "texte demo" "controles demo";
  gap: 18px clamp(28px, 5vw, 72px); align-items: center;
}
.boucle-text { grid-area: texte; align-self: end; }
.boucle-text p { color: #D6CDE4; max-width: 32em; }
.boucle .petit { color: #A99FBC; }
.demo { grid-area: demo; position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.demo-orb { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-ring { position: absolute; inset: 4%; width: 92%; height: 92%; transform: rotate(-90deg); }
.demo-ring circle { fill: none; stroke-width: 2.5; }
.demo-ring .track { stroke: rgba(255, 255, 255, .08); }
.demo-ring .prog { stroke: url(#g-demo); stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.demo-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.demo-phase { font: 400 clamp(34px, 5vw, 54px)/1 var(--titre); color: #fff; letter-spacing: .03em; text-shadow: 0 2px 24px rgba(28, 22, 41, .8); }
.demo-score { font-size: 15px; color: #CFC4E0; margin-top: 6px; min-height: 1.4em; }
.demo-controls { grid-area: controles; align-self: start; }
.btn-breath {
  position: relative; width: 100%; max-width: 360px; min-height: 64px;
  border: 0; border-radius: 999px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  font-weight: 700; font-size: 18px; color: var(--nuit);
  background: linear-gradient(115deg, #E2C574, #F2A6C6 55%, #A88BF0);
  box-shadow: 0 16px 40px rgba(168, 139, 240, .35);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-breath.appui { transform: scale(.97); box-shadow: 0 8px 20px rgba(168, 139, 240, .45), inset 0 0 0 3px rgba(255, 255, 255, .6); }
.demo-aide { font-size: 14px; color: #A99FBC; margin: 12px 0 16px; max-width: 30em; }
.demo-meter { height: 8px; max-width: 360px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.demo-meter i { display: block; height: 100%; width: 0%; border-radius: inherit; background: var(--grad); transition: width .4s var(--ease); }
.demo-resultat { margin: 18px 0 0; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); max-width: 30em; }
.demo-resultat .btn { margin-top: 12px; }

/* ---------- Profil ---------- */
.profil { width: var(--page); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.onglets { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--filet); margin-bottom: 28px; }
.onglets button {
  border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--gris);
  transition: background-color .2s, color .2s;
}
.onglets button[aria-selected="true"] { background: var(--encre); color: #fff; }
.profil-corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.profil-photo { margin: 0; border-radius: 32px 32px 999px 999px; overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 4 / 5; }
.profil-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.panneaux article { max-width: 760px; }
.panneaux h3 { font: 400 clamp(30px, 3.4vw, 42px)/1 var(--titre); color: var(--violet-profond); margin-bottom: 14px; letter-spacing: .01em; }
.panneaux p { font-size: 19px; color: #3A352B; max-width: 36em; }
.panneaux ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.panneaux li { position: relative; padding-left: 34px; }
.panneaux li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px);
}

/* ---------- Étapes ---------- */
.etapes { width: var(--page); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; }
.etapes-liste { list-style: none; counter-reset: etape; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.etapes-liste li { counter-increment: etape; }
.etapes-liste h3 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; margin-top: 18px; }
.etapes-liste h3::before { content: counter(etape); font: 400 44px/1 var(--titre); color: var(--or); }
.etapes-liste p { color: var(--gris); font-size: 16px; }
.ecran { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--ombre); background: var(--creme-2); }
.ecran img { width: 100%; }

/* ---------- Mesures ---------- */
.mesures { background: var(--papier); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); padding: clamp(64px, 9vw, 110px) max(16px, (100% - 1180px) / 2); }
.mesures-intro { max-width: 720px; margin-bottom: 36px; }
.mesures-intro p { font-size: 19px; color: #3A352B; }
.mesures-intro .lien-science { font-size: 16px; }
.lien-science a { font-weight: 600; }
.mesures-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.capteur h3 { font: 400 34px/1 var(--titre); color: var(--or-profond); letter-spacing: .01em; margin-bottom: 4px; }
.capteur-eeg h3 { color: var(--violet-profond); }
.capteur-sous { color: var(--gris); font-size: 15px; margin-bottom: 18px; }
.liste-mesures { list-style: none; padding: 0; margin: 0; }
.liste-mesures li { padding: 12px 0; border-top: 1px solid var(--filet); font-size: 16px; color: var(--gris); }
.liste-mesures b { color: var(--encre); font-weight: 700; }
.capteur-visuel { margin: 0; }
.capteur-visuel picture { display: block; border-radius: 30px; overflow: hidden; box-shadow: var(--ombre); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.capteur-visuel figcaption { font-size: 14px; color: var(--gris); text-align: center; margin-top: 14px; }

/* ---------- Objectifs : la barre est proportionnelle à la durée ---------- */
.objectifs { width: var(--page); margin: 0 auto; padding: clamp(64px, 9vw, 110px) 0; }
.obj-liste { list-style: none; padding: 0; margin: 10px 0 0; }
.obj-liste li {
  position: relative; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 5rem; gap: 6px 24px; align-items: baseline;
  padding: 20px 0 26px; border-top: 1px solid var(--filet);
}
.obj-liste li::after {
  content: ""; position: absolute; left: 0; bottom: 10px; height: 5px; border-radius: 99px;
  width: calc(var(--min) / 30 * 100%); background: var(--grad); opacity: .85;
}
.obj-nom { font: 400 30px/1 var(--titre); color: var(--encre); letter-spacing: .01em; }
.obj-desc { color: var(--gris); }
.obj-duree { font-weight: 700; text-align: right; color: var(--or-profond); font-variant-numeric: tabular-nums; }
.obj-eeg { margin-top: 24px; padding: 18px 22px; border-radius: 20px; background: rgba(140, 111, 216, .08); border: 1px solid rgba(140, 111, 216, .25); color: #3A352B; }

/* ---------- Bilan ---------- */
.bilan { width: var(--page); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.bilan-visuels { position: relative; min-height: 500px; }
.bilan-visuels .ecran { position: absolute; width: 62%; }
.incline-g { left: 0; top: 0; transform: rotate(-4deg); z-index: 2; }
.incline-d { right: 0; bottom: 0; transform: rotate(5deg); }
.bilan-text p { font-size: 18px; color: #3A352B; }

/* ---------- Usage ---------- */
.usage { position: relative; min-height: clamp(460px, 62vw, 720px); display: grid; align-items: end; overflow: hidden; }
.usage picture { position: absolute; inset: 0; }
.usage-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.usage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 21, 15, 0) 35%, rgba(23, 21, 15, .72)); }
.usage-text { position: relative; z-index: 1; width: var(--page); margin: 0 auto; padding: 0 0 clamp(36px, 5vw, 64px); color: #fff; }
.usage-text .h2 { color: #fff; }
.usage-text p { max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, .9); }

/* ---------- Tarif ---------- */
.tarif { width: var(--page); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0; }
.tarif-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ancrage { list-style: none; padding: 0; margin: 0; }
.ancrage li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--filet); }
.anc-nom { font-weight: 600; }
.anc-prix { color: var(--gris); text-align: right; }
.anc-ne .anc-nom { font: 400 32px/1 var(--titre); color: var(--or-profond); }
.anc-ne .anc-prix { font: 400 32px/1 var(--titre); color: var(--violet-profond); }
.offre {
  position: relative; padding: 32px; border-radius: 32px; background: var(--papier);
  box-shadow: 0 30px 80px rgba(91, 69, 168, .16), 0 4px 14px rgba(23, 21, 15, .05);
}
.offre::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.offre-prix { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.montant { font: 400 92px/.9 var(--titre); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offre-mention { color: var(--gris); font-size: 15px; }
.offre-inclus { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.offre-inclus li { position: relative; padding-left: 28px; font-size: 16px; }
.offre-inclus li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--or); border-bottom: 2.5px solid var(--or); transform: rotate(-45deg); }
.offre-note { font-size: 14px; color: var(--gris); margin: 14px 0 0; }

/* ---------- Transparence ---------- */
.honnete { width: var(--page); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--filet); }
.honnete-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.honnete-grid p { color: var(--gris); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { width: var(--page); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 110px); }
.faq-liste { max-width: 820px; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--or-profond); border-bottom: 2px solid var(--or-profond); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: #3A352B; margin: 0 0 22px; max-width: 42em; }

/* ---------- Final ---------- */
.final { position: relative; text-align: center; padding: clamp(72px, 10vw, 130px) 16px; overflow: hidden; background: linear-gradient(180deg, var(--creme), #F3ECF6); }
.final-orb { position: absolute; left: 50%; top: 50%; width: min(600px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .55; pointer-events: none; }
.final > *:not(canvas) { position: relative; }
.display-final { font-size: clamp(54px, 9vw, 128px); margin-bottom: 16px; }
.final p { font-size: 19px; color: #3A352B; margin-bottom: 26px; }

/* ---------- Pied ---------- */
.pied { background: var(--nuit); color: #A99FBC; text-align: center; padding: 48px 16px 110px; font-size: 14px; }
.pied a { color: #E2D7F2; }
.pied-marque { font: 400 26px/1 var(--titre); color: #F3E6C4; letter-spacing: .03em; margin-bottom: 14px; }
.pied-liens { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.pied-note { color: #7F7493; font-size: 13px; }

/* ---------- Barre d'achat mobile ---------- */
.barre-achat { display: none; }

/* ---------- Commande ---------- */
.commande {
  width: min(520px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 28px;
  background: var(--papier); color: var(--encre); box-shadow: 0 40px 120px rgba(28, 22, 41, .35);
}
.commande::backdrop { background: rgba(28, 22, 41, .55); backdrop-filter: blur(4px); }
.commande form { padding: 30px 28px 26px; display: grid; gap: 14px; position: relative; }
.commande-rappel { color: var(--gris); font-size: 15px; margin: -4px 0 4px; }
.commande label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.commande input, .commande select { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--filet); background: #fff; font-weight: 400; font-size: 16px; }
.commande input:user-invalid, .commande select:user-invalid { border-color: #C24A4A; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.commande .coche { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; line-height: 1.45; }
.commande .coche input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--or-profond); }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fermer { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--creme); font-size: 24px; line-height: 1; cursor: pointer; }
.erreur { background: rgba(194, 74, 74, .08); color: #A83A3A; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; margin: 0; }
.commande-note { font-size: 13px; color: var(--gris); text-align: center; margin: 0; }

/* ---------- Petits écrans ---------- */
@media (max-width: 980px) {
  .top-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; order: -1; }
  .hero-orb { left: -10%; top: -6%; width: 52%; }
  .probleme-grid, .bilan, .tarif-grid, .profil-corps { grid-template-columns: minmax(0, 1fr); }
  .profil-photo { max-width: 420px; }
  .boucle-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "texte" "demo" "controles"; }
  .demo { max-width: min(440px, 86vw); }
  .demo-controls { justify-self: center; text-align: center; width: 100%; max-width: 420px; }
  .btn-breath, .demo-meter { margin-left: auto; margin-right: auto; }
  .mesures-grid { grid-template-columns: minmax(0, 1fr); }
  .capteur-visuel { order: -1; max-width: 520px; }
  .honnete-grid { grid-template-columns: minmax(0, 1fr); }
  .bilan-visuels { min-height: 0; aspect-ratio: 1 / .9; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { gap: 10px; }
  .brand { font-size: 26px; }
  .link-login { font-size: 14px; }
  .top-actions .btn { display: none; }
  .hero { padding-top: 20px; }
  .arch { aspect-ratio: 5 / 4; border-radius: 999px 999px 28px 28px / 70% 70% 28px 28px; }
  .arch img { object-position: 50% 30%; }
  .etapes-liste { grid-template-columns: minmax(0, 1fr); }
  .contraste { grid-template-columns: minmax(0, 1fr); }
  .obj-liste li { grid-template-columns: minmax(0, 1fr) auto; }
  .obj-desc { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .champs-2 { grid-template-columns: 1fr; }
  .offre { padding: 26px 22px; }
  .montant { font-size: 76px; }
  .cta-row .btn { width: 100%; }
  .onglets { display: flex; border-radius: 22px; }
  .onglets button { flex: 1 1 auto; padding: 10px 14px; }
  .barre-achat {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 20px; border-radius: 999px;
    background: rgba(255, 253, 248, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(28, 22, 41, .22);
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .barre-achat.visible { transform: none; }
  .barre-achat b { font: 400 26px/1 var(--titre); color: var(--or-profond); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .capteur-visuel picture, .incline-g, .incline-d { transform: none; }
}

/* ---------- Oxymètre et tachogramme ---------- */
.tacho { width: var(--page); margin: 0 auto; padding: clamp(56px, 8vw, 100px) 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; border-top: 1px solid var(--filet); }
.tacho-intro p { font-size: 18px; color: #3A352B; max-width: 36em; }
.tacho-intro .petit { font-size: 14.5px; color: var(--gris); }
.tacho-liste { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 10px; }
.tacho-liste li { position: relative; padding-left: 26px; font-size: 16px; }
.tacho-liste li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #F0A9C6, #B3261E); }
.tacho-visuels { display: grid; gap: 22px; }
.tacho-fig { margin: 0; }
.tacho-fig picture { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); background: #fff; border: 1px solid var(--filet); }
.tacho-fig img { width: 100%; }
.tacho-fig figcaption { font-size: 14px; color: var(--gris); margin-top: 10px; }
.tacho-fig-ecran { width: 80%; justify-self: end; }
@media (max-width: 980px) {
  .tacho { grid-template-columns: minmax(0, 1fr); }
  .tacho-fig-ecran { width: 100%; margin-top: 0; }
}

/* ---------- Casque Muse 2 et ondes cérébrales ---------- */
.ondes { width: var(--page); margin: 0 auto; padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--filet); }
.ondes-haut { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ondes-intro p { font-size: 18px; color: #3A352B; max-width: 36em; }
.ondes-liste li::before { background: linear-gradient(135deg, #C9B6F2, #5B45A8); }
.ondes-fig { margin: 0; }
.ondes-fig picture { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre); }
.ondes-fig img { width: 100%; }
.ondes-fig figcaption { font-size: 14px; color: var(--gris); margin-top: 10px; }
.ondes-titre { font-size: 22px; margin: clamp(40px, 6vw, 64px) 0 18px; }
.ondes-bandes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.onde { background: rgba(255, 255, 255, .72); border: 1px solid var(--filet); border-radius: 18px; padding: 16px 16px 18px; box-shadow: 0 10px 30px -18px rgba(60, 40, 90, .35); }
.onde-trace { width: 100%; height: 40px; display: block; margin-bottom: 10px; }
.onde-trace polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.onde-delta polyline { stroke: #A8812A; }
.onde-theta polyline { stroke: #D5779F; }
.onde-alpha polyline { stroke: #8C6FD8; }
.onde-beta polyline { stroke: #5B45A8; }
.onde-gamma polyline { stroke: #C24A4A; }
.onde-nom { font-weight: 700; font-size: 18px; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.onde-nom span { font-weight: 500; font-size: 13px; color: var(--gris); white-space: nowrap; }
.onde-desc { font-size: 14.5px; color: #3A352B; margin: 0; }
.ondes-note { font-size: 14.5px; color: var(--gris); max-width: 60em; margin-top: 22px; }
@media (max-width: 980px) {
  .ondes-haut { grid-template-columns: minmax(0, 1fr); }
  .ondes-bandes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ondes-bandes { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Démo de la boucle : les étapes ---------- */
.boucle-etapes { counter-reset: etape; list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 10px; max-width: 32em; }
.boucle-etapes li { counter-increment: etape; position: relative; padding-left: 38px; color: #D6CDE4; font-size: 16px; line-height: 1.5; }
.boucle-etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #1B1530; background: linear-gradient(135deg, #E2C574, #F2A6C6 55%, #A88BF0); }
.boucle-etapes b { color: #FFFFFF; }

/* ---------- Bouton de souffle : le doigt qui appuie ---------- */
.btn-breath { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; }
.btn-doigt { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.btn-doigt svg { width: 34px; height: 34px; transform-origin: 50% 80%; animation: doigt-appui 1.6s var(--ease) infinite; }
.btn-doigt .onde-appui { animation: onde-appui 1.6s ease-out infinite; }
.btn-breath.appui .btn-doigt svg { animation: none; transform: translateY(2px) scale(.94); }
.btn-breath.appui .btn-doigt .onde-appui { animation: none; opacity: 1; }
@keyframes doigt-appui { 0%, 55%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(3px) scale(.94); } }
@keyframes onde-appui { 0%, 15% { opacity: 0; } 30% { opacity: 1; } 60%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn-doigt svg, .btn-doigt .onde-appui { animation: none; }
}
