:root {
  --fond: #000;
  --texte: #fafafa;
  --doux: rgba(250, 250, 250, 0.7);
  --discret: rgba(250, 250, 250, 0.48);
  --ligne: rgba(255, 255, 255, 0.1);
  --action: #0071e3;
  --steel: #2997ff;
  --chaud: #f3c9a6;
  --police: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --gouttiere: clamp(20px, 5vw, 72px);
  --col: clamp(340px, 31vw, 440px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--fond); }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 17px/1.6 var(--police); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.sans-webgl #scene { display: none; }
#etiquettes { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.etiquette { position: absolute; left: 0; top: 0; margin-top: -8px; padding: 5px 11px; border-radius: 999px; font: 500 12.5px/1 var(--police); color: #fff; background: rgba(6, 8, 14, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; opacity: 0; transition: opacity 0.35s; will-change: transform, opacity; }
.etiquette.petite { padding: 4px 9px; font-size: 11px; }

.conteneur { width: min(1240px, calc(100% - 2 * var(--gouttiere))); margin-inline: auto; }

.bouton { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--action); color: #fff !important; font: 500 15px var(--police); letter-spacing: -0.005em; text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s; }
.bouton:hover { transform: scale(1.02); background: #0a7cf0; }
.bouton:active { transform: scale(0.99); }
.bouton.second { background: rgba(255, 255, 255, 0.1); }
.bouton.second:hover { background: rgba(255, 255, 255, 0.16); }
.bouton.clair { height: 38px; padding: 0 18px; background: #fafafa; color: #000 !important; font-size: 14.5px; }
.bouton.clair:hover { background: #fff; }

main { position: relative; z-index: 2; }
.section { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 120px; }
.texte { width: var(--col); }
.section[data-mode="droite"] .texte { margin-left: auto; }
.repere { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 15px var(--police); color: var(--discret); }
.pastille { padding: 3px 10px; border-radius: 999px; font: 500 12.5px var(--police); color: var(--chaud); box-shadow: inset 0 0 0 1px rgba(243, 201, 166, 0.4); }
h2 { margin: 0; font: 500 clamp(34px, 3.1vw, 46px)/1.1 var(--police); letter-spacing: -0.03em; text-wrap: balance; }
.chapo { margin: 20px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--doux); text-wrap: pretty; }
.liste { list-style: none; margin: 32px 0 0; padding: 0; }
.liste li { padding: 12px 0; border-top: 1px solid var(--ligne); font-size: 15.5px; line-height: 1.45; color: rgba(250, 250, 250, 0.86); }
.liste li:last-child { border-bottom: 1px solid var(--ligne); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.puces span { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: rgba(250, 250, 250, 0.82); background: rgba(255, 255, 255, 0.06); }
.gestes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* L'accueil : « BS » à gauche, « Brain » à droite, le cerveau entre les deux. */
.heros { display: block; padding: 0; }
.scene-heros { position: relative; height: 100vh; height: 100svh; }
.heros h1 { margin: 0; font: 500 clamp(64px, 8.6vw, 140px)/1 var(--police); letter-spacing: -0.045em; }
.heros h1 span { position: absolute; top: 46%; translate: 0 -50%; opacity: 0; filter: blur(16px); letter-spacing: 0.02em; transition: opacity 1.6s var(--ease) 1.5s, filter 1.6s var(--ease) 1.5s, letter-spacing 2.4s var(--ease) 1.5s; }
.heros h1 .mot-g { left: 0; }
.heros h1 .mot-d { right: 0; transition-delay: 1.7s; }
.vu.heros h1 span { opacity: 1; filter: none; letter-spacing: -0.045em; }
.heros .f { transition-delay: calc(var(--i, 0) * 140ms + 2100ms); }
.pied-heros { position: absolute; left: 50%; bottom: 8vh; translate: -50% 0; width: min(560px, 100%); text-align: center; }
.accroche { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--doux); }
.pied-heros .gestes { justify-content: center; margin-top: 24px; }

/* Apparition : flou et décalé, puis net. Uniquement transformations, flou et opacité : la mise en page ne bouge jamais. */
.f { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
.vu .f { opacity: 1; transform: none; filter: none; }
.mot { display: inline-block; opacity: 0; transform: translateY(0.3em); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.vu .mot { opacity: 1; transform: none; filter: none; }

/* Formules : une bascule normal / Expert, des cartes dont la lumière suit la souris, un faisceau autour de « Tout BS Brain ». */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes faisceau { to { --angle: 360deg; } }
#tarifs { flex-direction: column; justify-content: center; }
#tarifs .tete { max-width: 720px; margin-inline: auto; text-align: center; }
#tarifs h2 { font-size: clamp(36px, 3.4vw, 52px); }
#tarifs .chapo { margin-inline: auto; }
/* L'ouverture des abonnements : la date, et dessous le temps qui reste. */
.ouverture { margin-top: 26px; }
.ouverture p { margin: 0; font: 500 16px var(--police); color: var(--texte); }
.decompte { display: inline-flex; gap: 10px; margin-top: 14px; }
.decompte span { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 12px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.decompte b { font: 500 34px/1 var(--police); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--texte); }
.decompte small { margin-top: 7px; font-size: 12.5px; color: var(--discret); }
@media (max-width: 520px) { .decompte { gap: 6px; } .decompte span { min-width: 64px; padding: 10px 6px 8px; } .decompte b { font-size: 26px; } }
.bascule { position: relative; display: inline-flex; margin-top: 30px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.bascule button { position: relative; z-index: 1; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--doux); font: 500 14.5px var(--police); cursor: pointer; transition: color 0.35s; }
.bascule button[aria-pressed="true"] { color: #000; }
.bascule button:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.bascule em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 600 12px var(--police); font-style: normal; color: var(--chaud); background: rgba(243, 201, 166, 0.12); transition: color 0.35s, background 0.35s; }
.bascule button[aria-pressed="true"] em { color: #6b3410; background: rgba(243, 201, 166, 0.7); }
.bascule .curseur { position: absolute; top: 4px; bottom: 4px; left: 4px; width: var(--l, 0px); translate: var(--x, 0px) 0; border-radius: 999px; background: #fafafa; box-shadow: 0 6px 24px -8px rgba(160, 205, 255, 0.6); transition: translate 0.5s var(--ease), width 0.5s var(--ease); }
.cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.cartes > div { display: flex; min-width: 0; }
.carte { --mx: 50%; --my: -30%; position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 28px 24px 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), rgba(7, 9, 14, 0.8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.carte::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(130, 185, 255, 0.14), transparent 55%); opacity: 0; transition: opacity 0.4s; }
.carte h3::before { content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); }
.carte::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(175, 215, 255, 0.75), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.carte:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.carte:hover::before, .carte:hover::after { opacity: 1; }
.carte h3 { margin: 0; font: 500 19px var(--police); letter-spacing: -0.02em; }
.carte .quoi { margin: 8px 0 0; min-height: 2.9em; font-size: 14.5px; line-height: 1.45; color: var(--discret); }
.carte .prix { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 0; font: 500 50px/1 var(--police); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte .prix .signe { margin-right: 2px; font-size: 32px; color: var(--doux); }
.carte .prix .devise { font-size: 28px; }
.carte .prix small { margin-left: 4px; font: 400 14px var(--police); letter-spacing: 0; color: var(--discret); }
.carte .economie { margin: 10px 0 0; font-size: 13.5px; color: var(--chaud); font-variant-numeric: tabular-nums; }
.inclus { list-style: none; display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ligne); }
.inclus li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.4; color: rgba(250, 250, 250, 0.86); }
.inclus li::before { content: ''; position: absolute; left: 0; top: 0.18em; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%239fd0ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.carte .regle { margin: 14px 0 0; font-size: 12.5px; color: var(--discret); }
.carte > :nth-last-child(2) { margin-bottom: 26px; }
.carte .bouton { margin-top: auto; width: 100%; height: 44px; }
.carte.mise { background: radial-gradient(120% 70% at 50% 0%, rgba(41, 151, 255, 0.24), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(8, 11, 20, 0.84); box-shadow: inset 0 0 0 1px rgba(140, 195, 255, 0.28), 0 40px 90px -40px rgba(41, 151, 255, 0.65); }
.carte.mise:hover { box-shadow: inset 0 0 0 1px rgba(160, 210, 255, 0.4), 0 40px 100px -36px rgba(41, 151, 255, 0.8); }
.carte .faisceau { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--angle), transparent 0deg, transparent 230deg, rgba(120, 190, 255, 0.55) 300deg, #fff 335deg, rgba(120, 190, 255, 0.55) 348deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: faisceau 4.5s linear infinite; pointer-events: none; }
.carte .badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--action); font-size: 12px; font-weight: 600; box-shadow: 0 6px 20px -6px rgba(0, 113, 227, 0.9); }
.note { margin: 30px 0 0; text-align: center; font-size: 15px; color: var(--doux); }

#fin { align-items: flex-end; padding-bottom: 14vh; }
#fin .conteneur { text-align: center; }
#fin .texte { width: auto; max-width: 760px; margin-inline: auto; }
#fin h2 { font-size: clamp(38px, 3.8vw, 58px); }
#fin .chapo { margin-inline: auto; max-width: 44ch; }
#fin .gestes { justify-content: center; }
footer { position: relative; z-index: 2; padding: 36px 0 48px; font-size: 13px; color: var(--discret); text-align: center; }

@media (max-width: 979px) {
  :root { --col: 100%; }
  .section { align-items: flex-end; padding-block: 50vh 56px; }
  .section[data-mode="droite"] .texte { margin-left: 0; }
  .section.heros { padding: 0; }
  .heros h1 { position: absolute; top: 46%; left: 0; right: 0; text-align: center; font-size: clamp(54px, 16vw, 84px); }
  .heros h1 span { position: static; translate: none; }
  .pied-heros { bottom: 6vh; }
  #tarifs, #fin { padding-top: 120px; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #fin { padding-top: 56vh; }
}
@media (max-width: 560px) { .cartes { grid-template-columns: 1fr; } }

/* La vidéo de présentation et le Mac qu'on essaie. */
.media { display: block; text-align: center; padding-block: clamp(96px, 13vh, 150px); }
.media h2 { font-size: clamp(36px, 4.4vw, 64px); }
.media .chapo { max-width: 34em; margin-inline: auto; }
.cadre-video { position: relative; width: min(1040px, 100%, calc((100svh - 150px) * 1.78)); aspect-ratio: 16 / 9; margin: clamp(28px, 5vh, 48px) auto 0; border-radius: clamp(14px, 1.8vw, 24px); overflow: hidden; background: #05070f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 120px -40px rgba(90, 110, 255, 0.5); }
.cadre-video video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.video-attente { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 42%, rgba(120, 130, 255, 0.2), transparent 62%); }
.video-attente p { margin: 0; font-size: 15px; color: var(--discret); }
.video-lecture { display: grid; place-items: center; width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.video-lecture svg { width: 42%; fill: #fff; }
.mac { position: relative; width: min(1180px, 100%, calc((100svh - 104px) * 1.58)); margin: clamp(30px, 5vh, 52px) auto 0; }
.mac-capot { position: relative; padding: 1.25% 1.25% 1.6%; border-radius: clamp(12px, 1.5vw, 20px) clamp(12px, 1.5vw, 20px) 0 0; background: #0c0c0e; box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 60px 140px -50px rgba(90, 110, 255, 0.55); }
.mac-encoche { position: absolute; z-index: 3; left: 50%; top: 1.25%; width: 13%; height: 2.6%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #0c0c0e; pointer-events: none; }
.mac-dalle { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #000; }
.mac-dalle iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; display: block; }
.mac-dalle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mac-allumer { position: absolute; z-index: 2; inset: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 5%; border: 0; background: linear-gradient(transparent 62%, rgba(0, 0, 0, 0.55)); color: #fff; font: 500 15px var(--police); cursor: pointer; }
.mac-allumer span { padding: 11px 20px; border-radius: 999px; background: rgba(10, 12, 20, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.2s var(--ease), background 0.2s; }
.mac-allumer:hover span { transform: scale(1.04); background: var(--action); }
.mac-base { position: relative; width: 112%; left: -6%; height: clamp(10px, 1.5vw, 20px); border-radius: 0 0 22px 22px / 0 0 100% 100%; background: linear-gradient(#d0d0d6, #8d8d94 55%, #55555b); }
.mac-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 13%; height: 42%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #7a7a80; }
@media (max-width: 979px) { .media .chapo { font-size: 16px; } .mac-allumer { display: none; } }

/* Les questions : la même mise en page que sur les pages des modules. */
.faq-grille { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-gauche { position: sticky; top: 92px; }
.faq-gauche h2 { font-size: clamp(36px, 3.4vw, 52px); }
.faq-liste details { border-bottom: 1px solid var(--ligne); }
.faq-liste details:first-child { border-top: 1px solid var(--ligne); }
.faq-liste summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font: 500 clamp(17px, 1.4vw, 20px)/1.35 var(--police); letter-spacing: -0.015em; }
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after { content: ''; flex: none; width: 13px; height: 13px; color: var(--discret); background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq-liste details[open] summary::after { transform: rotate(45deg); }
.faq-liste summary:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; border-radius: 4px; }
.faq-liste details p { margin: 0; max-width: 62ch; padding: 0 0 24px; color: var(--doux); font-size: 16px; line-height: 1.6; }
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq-liste details::details-content { height: 0; overflow: clip; transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
  .faq-liste details[open]::details-content { height: auto; }
}
@media (max-width: 979px) { #questions { padding-top: 120px; } .faq-grille { grid-template-columns: minmax(0, 1fr); } .faq-gauche { position: static; } }

/* Le téléchargement : un bloc par système, celui de l'ordinateur qui visite passe au bleu (tarifs.js). */
#telecharger { flex-direction: column; justify-content: center; }
#telecharger .tete { max-width: 640px; margin-inline: auto; text-align: center; }
#telecharger .chapo { margin-inline: auto; }
.systemes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(940px, 100%); margin: 44px auto 0; }
.systeme { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), rgba(7, 9, 14, 0.8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.systeme h3 { margin: 0; font: 500 19px var(--police); letter-spacing: -0.02em; }
.systeme p { margin: 0 0 10px; font-size: 14.5px; color: var(--discret); }
.systeme .bouton { width: 100%; height: 44px; }
@media (max-width: 979px) { #telecharger { padding-top: 120px; } }
@media (max-width: 760px) { .systemes { grid-template-columns: 1fr; } }
