/* MCSD · feuille de style unique. Épuré : blanc, gris clair, noir, un seul bleu. Police Myriada. */

@font-face { font-family: "Myriada"; src: url("/assets/fonts/Myriada-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Myriada"; src: url("/assets/fonts/Myriada-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Myriada"; src: url("/assets/fonts/Myriada-Bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Myriada Condensed"; src: url("/assets/fonts/MyriadaCondensed-Medium.woff2") format("woff2"); font-weight: 100 500; font-display: swap; }
@font-face { font-family: "Myriada Condensed"; src: url("/assets/fonts/MyriadaCondensed-Bold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
  color-scheme: light;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --bg: #fff;
  --bg-2: #f5f5f7;
  --card: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --accent: #0071e3; /* boutons et modules cochés */
  --on-accent: #fff;
  --link: #0066cc;
  --font-title: "Myriada", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font: "Myriada Condensed", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --lux: cubic-bezier(.16, 1, .3, 1); /* longue décélération, pour les entrées */
}
.gray { --bg: #f5f5f7; --card: #fff; }
/* Le noir est l'univers du studio (logiciels, jeux) : pages entières (.studio) ou bloc de l'accueil (.dark). */
.dark, .studio { --text: #f5f5f7; --text-2: #a1a1a6; --bg: #000; --bg-2: #161617; --card: #1d1d1f; --line: #424245; --link: #2997ff; }
.studio .gray { --bg: #101012; --card: #1d1d1f; }
/* Le bleu nuit est l'univers des entreprises : page entière (body.entreprises) ou tuile de l'accueil. */
.entreprises { --text: #f5f7fa; --text-2: #a3b1c6; --bg: #0a1930; --bg-2: #11233f; --card: #162b4b; --line: #2e4466; --link: #6cb4ff; --accent: #fff; --on-accent: #0a1930; color: var(--text); }
.entreprises .gray { --bg: #0e2038; --card: #172d4e; }
.entreprises .dot { fill: #fff; } /* sur le bleu nuit, le point du logo et les boutons passent au blanc */
.gray, .dark, .section.entreprises { background: var(--bg); color: var(--text); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 1.0625rem/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--font-title); font-weight: 400; text-wrap: balance; }
/* Tailles en rem : le texte suit le réglage du visiteur. Sur téléphone, les grands titres sont plafonnés en vw,
   car un mot animé ne se coupe pas et sortirait de l'écran. */
h3 { font-weight: 500; }
strong, b { font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 101; padding: 8px 16px; border-radius: 980px; background: var(--blue); color: #fff; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 44px, 980px); margin-inline: auto; }
.wrap--wide { width: min(100% - 44px, 1240px); }
.i { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.todo { background: none; color: inherit; border-bottom: 1px dashed var(--text-2); }
html:not(.js) .js-only, .js .no-js { display: none; } /* /bilan/ sans script : pas de bouton mort, un lien vers le contact */

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid var(--accent); border-radius: 980px; background: var(--accent); color: var(--on-accent); font: 500 1.0625rem/1.2 var(--font); cursor: pointer; transition: opacity .2s, background-color .2s, border-color .2s, color .2s, scale .3s var(--lux); }
.btn:hover { opacity: .86; text-decoration: none; }
/* Réponse immédiate : chaque commande réagit dès l'appui, sans attendre le relâchement. */
:is(.btn, .choice, .mode a, .clip-toggle, .nav-toggle, a.card) { -webkit-tap-highlight-color: transparent; }
:is(.btn, .mode a, .clip-toggle, .nav-toggle):active { scale: .96; }
.js .cards a.card { transition: opacity 1.1s var(--lux), translate 1.1s var(--lux), scale .3s var(--lux), background-color .3s var(--ease); }
.js .cards a.card:active, .choice:active { scale: .985; }
.btn--outline { background: transparent; color: var(--link); border-color: var(--link); }
.btn--outline:hover { opacity: 1; background: var(--link); border-color: var(--link); color: var(--bg); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); background: linear-gradient(currentColor, currentColor) 0 calc(50% + .75em) / 0 1px no-repeat; transition: background-size .6s var(--lux); }
.link:hover { text-decoration: none; background-size: 100% 1px; }
.link::after { content: ""; width: .42em; height: .42em; margin-left: .35em; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: translate .6s var(--lux); }
.link:hover::after { translate: 4px 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; margin-top: 28px; }
.cta-row:has(.btn) { gap: 12px 16px; }

/* ---------- Menu ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.nav-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; width: min(100% - 44px, 1080px); min-height: 48px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); }
.logo { width: auto; height: 17px; aspect-ratio: 128 / 34; overflow: visible; }
.mode-nav { display: flex; align-items: center; margin-left: auto; }
.nav-links { display: flex; align-items: center; }
.nav-links ul { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav-label { margin: 0 clamp(10px, 1.4vw, 16px) 0 0; font-size: 0.75rem; line-height: 1; color: var(--text-2); white-space: nowrap; }
/* Deux univers, un filet entre eux. Le libellé « Studio » (.nav-links > a) mène à la page du studio. */
.nav-links > a, .nav-links .nav-end { position: relative; margin-left: clamp(12px, 1.8vw, 24px); padding-left: clamp(12px, 1.8vw, 24px); }
.nav-links > a { margin: 0 clamp(10px, 1.4vw, 16px) 0 0; } /* à gauche, l'espace vient déjà de .nav-in */
.nav-links > a::before, .nav-end::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; translate: 0 -50%; border-left: 1px solid var(--line); }
.studio .nav { background: rgba(0, 0, 0, .72); border-bottom-color: rgba(255, 255, 255, .14); }
.entreprises .nav { background: rgba(10, 25, 48, .78); border-bottom-color: rgba(255, 255, 255, .12); }
.nav-links a { display: inline-flex; align-items: center; min-height: 48px; font-size: 0.8125rem; color: var(--text); opacity: .8; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links > a { font-size: 0.75rem; color: var(--text-2); opacity: 1; white-space: nowrap; transition: color .2s; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--text); }
.nav-links a.btn { min-height: 30px; padding: 0 14px; color: var(--on-accent); opacity: 1; }
.nav-links a.btn:hover { opacity: .86; }
.nav-links .mode a { opacity: 1; } /* Logiciels et Jeux vidéo : même pastille que Clientèle privée et Entreprises */
/* Sélecteur de parcours, clientèle privée ou entreprises : chaque position est une page, rien n'est mémorisé. */
.mode { display: inline-flex; padding: 3px; border-radius: 980px; background: var(--bg-2); }
.mode a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 14px; border-radius: 980px; font-size: 0.8125rem; line-height: 1; color: var(--text); white-space: nowrap; transition: background-color .5s var(--lux), color .5s var(--lux), scale .3s var(--lux); }
.mode a:hover { text-decoration: none; background: var(--bg); }
.mode a[aria-current] { background: var(--text); color: var(--bg); }
.mode a { position: relative; }
.mode-nav .mode a::after { content: ""; position: absolute; inset: -8px 0; } /* en-tête : zone d'appui de 44 px pour une pastille de 28 px */
.mode:not(:has([aria-current])) a + a::before { content: ""; position: absolute; left: -.5px; top: 28%; bottom: 28%; border-left: 1px solid var(--line); } /* aucun parcours choisi : un filet sépare les deux */
.mode--hero a { min-height: 44px; padding: 0 24px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
@media (prefers-reduced-motion: no-preference) { .mode a[aria-current] { animation: mode-in .9s var(--lux) backwards; } }
@keyframes mode-in { from { background-color: transparent; color: var(--text); } }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 17px; height: 1.2px; margin: 3.5px auto; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(2.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-2.4px) rotate(-45deg); }
@media (max-width: 1079px) { .mode-nav .nav-label { display: none; } .nav-in { column-gap: 10px; } .nav-links ul { gap: 12px; } .nav-links > a, .nav-links .nav-end { margin-left: 0; padding-left: 12px; } .nav-links > a { margin-right: 10px; } .nav .mode a { padding: 0 10px; } .nav-links a.btn { padding: 0 12px; } } /* tablette : le menu reste sur une ligne */
@media (min-width: 834px) and (max-width: 1079px) { .nav-links > a { display: none; } } /* comme « Consulting », le libellé « Studio » s'efface : la pastille reste */
@media (max-width: 833px) {
  .nav-in { column-gap: 12px; }
  .brand { margin-right: auto; }
  .mode-nav { margin-left: 0; }
  .mode-nav .nav-label { display: none; }
  .nav .mode a { padding: 0 10px; font-size: 0.75rem; }
  .nav-links { order: 9; flex-basis: 100%; margin: 0; padding: 8px 0 28px; }
  .nav-links { display: block; }
  .nav-links ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links a { display: flex; min-height: 52px; font: 500 1.5rem var(--font-title); opacity: 1; }
  .nav-links > a { margin: 0; padding: 0; font-size: 1.5rem; color: var(--text); }
  .nav-links a.btn { display: inline-flex; min-height: 48px; margin-top: 12px; padding: 0 26px; font: 500 1.0625rem/1.2 var(--font); }
  .nav-links .nav-end { margin: 22px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .nav-links > a::before, .nav-end::before { content: none; }
  .nav .nav-links .mode { display: flex; flex-direction: column; align-items: flex-start; padding: 0; background: none; } /* menu ouvert : la pastille redevient une liste */
  .nav .nav-links .mode a { padding: 0; border-radius: 0; background: none; color: var(--text); font-size: 1.5rem; animation: none; }
  .nav .nav-links .mode a::before { content: none; }
  .js .nav-toggle { display: block; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open { display: block; transition: opacity .25s var(--ease), translate .3s var(--lux); }
  @starting-style { .js .nav-links.is-open { opacity: 0; translate: 0 -8px; } }
  .js .nav:has(.is-open) { background: var(--bg); height: 100dvh; overflow-y: auto; overscroll-behavior: contain; } /* menu ouvert : il couvre l'écran et défile seul */
  :root:has(.nav-links.is-open) { overflow: hidden; }
}
@media (max-width: 389px) { .nav .mode a { padding: 0 8px; } .mode--hero a { padding: 0 14px; font-size: min(1rem, 4.3vw); } }
@media (max-width: 359px) { .mode-nav { order: 8; flex-basis: 100%; justify-content: center; padding-bottom: 8px; } } /* très petit écran : le sélecteur passe sous le logo */

/* ---------- Héros ---------- */
.hero { position: relative; padding: clamp(96px, 16vh, 190px) 0 clamp(80px, 13vh, 160px); text-align: center; }
.hero h1 { max-width: 18em; margin-inline: auto; font-size: clamp(min(2.25rem, 9.6vw), 4.8vw, 4.25rem); line-height: 1.06; letter-spacing: -.02em; }
.hero--full { display: grid; align-items: center; min-height: calc(100svh - 49px); }
.hero--full h1 { max-width: none; font-size: clamp(min(2.125rem, 9vw), 5.6vw, 4.875rem); }
.hero--full .sub { max-width: 34em; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.3; }
.cue { position: absolute; left: 50%; bottom: 0; width: 1px; height: clamp(44px, 8vh, 80px); background: var(--line); overflow: hidden; }
.cue::after { content: ""; position: absolute; inset: 0; background: var(--text); animation: cue 2.4s var(--ease) 2 both; }
.hero--small h1 { font-size: clamp(min(2rem, 8.5vw), 4.4vw, 3.25rem); line-height: 1.1; }
.eyebrow { margin: 0 0 12px; font-size: clamp(1rem, 1.5vw, 1.1875rem); font-weight: 700; line-height: 1.2; color: var(--text-2); }
.eyebrow a { color: inherit; }
.sub { max-width: 27em; margin: .8em auto 0; font-size: clamp(1.1875rem, 2vw, 1.625rem); line-height: 1.25; }
.hero .cta-row + .note { margin-top: 16px; } /* bilan gratuit, durée : juste sous les boutons */
.media { position: relative; margin: clamp(48px, 7vw, 84px) 0 0; border-radius: 28px; overflow: hidden; background: #000; }
.media :is(img, video) { display: block; width: 100%; }
.media video { height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.media--film video { aspect-ratio: 16 / 9; }
/* Téléphone : démonstration filmée d'une app (Eckko) */
.phone { position: relative; width: min(300px, 76vw); margin: clamp(40px, 5vw, 64px) auto 52px; }
.phone video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1558; border: 1px solid var(--line); border-radius: 44px; background: #000; }
.phone .clip-toggle { right: auto; bottom: -52px; left: 50%; translate: -50% 0; } /* sous le téléphone, pour ne pas se confondre avec les boutons de l'app */

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 180px) 0; text-align: center; }
.section--head { padding-bottom: clamp(40px, 5vw, 64px); } /* en-tête d'un univers, suivi de tuiles */
.section--suite { padding-top: 0; } /* suite d'une section de même couleur */
.title { max-width: 15em; margin-inline: auto; font-size: clamp(min(1.75rem, 7.5vw), 3.8vw, 3rem); line-height: 1.1; letter-spacing: -.015em; }
.intro { max-width: 33em; margin: 1em auto 0; font-size: clamp(1.0625rem, 1.75vw, 1.3125rem); line-height: 1.4; color: var(--text-2); }
.intro strong { color: var(--text); }
.intro--plein { color: var(--text); }
.note { max-width: 46em; margin: 28px auto 0; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.note strong { color: var(--text); }

/* ---------- Tuiles (MCSD Studio) ---------- */
.tiles { display: grid; gap: 12px; padding: 0 12px 12px; }
@media (min-width: 834px) { .tiles--2 { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: clamp(420px, 44vw, 600px); padding-top: clamp(44px, 5vw, 64px); background: var(--bg-2); text-align: center; overflow: hidden; }
.tile > * { max-width: calc(100% - 44px); }
.tile :is(h2, h3) { font-weight: 400; font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; }
.tile .sub { margin-top: .45em; font-size: clamp(1.0625rem, 1.7vw, 1.375rem); }
.tile .cta-row { margin: 10px 0 28px; }
.tile-icon { margin: auto 0; padding: 0 0 44px; }
.tile-icon .i { width: clamp(84px, 9vw, 128px); height: auto; aspect-ratio: 1; stroke-width: .7; }
.tile-icon img { width: clamp(84px, 9vw, 128px); height: auto; }
.tile-media { position: relative; width: 100%; max-width: none; margin-top: auto; overflow: hidden; }
.tile-media :is(img, video) { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.tile--wide .tile-media { width: min(100% - 44px, 980px); margin-bottom: clamp(44px, 5vw, 64px); border-radius: 18px; }
.tile--wide .tile-media :is(img, video) { aspect-ratio: 16 / 9; }
/* Capture d'une application : une fenêtre posée dans la tuile */
.tile-media--app { width: min(100% - 44px, 640px); margin-bottom: clamp(36px, 4vw, 56px); border-radius: 18px; background: #000; }
.tile-media--app video { aspect-ratio: 9 / 5; }
.stretched::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Accueil : portes d'accès aux trois domaines ---------- */
/* Trois panneaux pleine largeur, empilés, chacun dans la couleur de son univers : clair, bleu nuit (.entreprises), noir (.dark).
   Le lien du titre couvre tout le panneau ; « Entrer » et la flèche ne sont qu'un repère visuel (aria-hidden). */
.doors { display: grid; gap: 12px; padding: 0 12px 12px; }
.door { --door: var(--bg-2); position: relative; display: grid; align-content: end; gap: 14px 48px; min-height: clamp(300px, 42vh, 460px); padding: clamp(32px, 5.5vw, 80px) clamp(24px, 5.5vw, 80px); background: var(--door); color: var(--text); text-align: left; transition: scale .3s var(--lux), background-color .5s var(--ease); }
.door:is(.entreprises, .dark) { --door: var(--bg); }
.js .doors > .door.reveal { transition: opacity 1.1s var(--lux), translate 1.1s var(--lux), scale .3s var(--lux), background-color .5s var(--ease); } /* plus spécifique que la règle d'apparition, qui ralentirait l'appui */
.door > :not(.door-go) { grid-column: 1; }
.door-title { font-size: clamp(2.25rem, 7.4vw, 6.5rem); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.door-title a { color: inherit; }
.door-title a:hover { text-decoration: none; }
.door-title a::after { content: ""; position: absolute; inset: 0; } /* tout le panneau est cliquable */
.door p { max-width: 32em; margin: 0; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.3; color: var(--text-2); transition: color .5s var(--ease); }
.door-go { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.door-arrow { display: grid; place-items: center; width: clamp(48px, 5vw, 64px); aspect-ratio: 1; border-radius: 50%; background: var(--text); color: var(--door); transition: scale .5s var(--lux); }
.door-arrow .i { width: 45%; height: auto; aspect-ratio: 1; stroke-width: 1.8; transition: translate .5s var(--lux); }
@media (min-width: 834px) {
  .door { grid-template-columns: minmax(0, 1fr) auto; }
  .door-go { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .door:hover { background: color-mix(in srgb, var(--door) 94%, var(--text)); }
  .door:hover p { color: var(--text); } /* sur le fond plus foncé, le gris resterait sous 4,5:1 */
  .door:hover .door-arrow { scale: 1.08; }
  .door:hover .door-arrow .i { translate: 3px 0; }
}
.door:active { scale: .99; } /* appui : réponse immédiate, au doigt comme à la souris */
.door:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: -6px; }
@supports selector(:has(a)) { .door a:focus-visible { outline: none; } } /* le contour passe du titre au panneau entier */

/* ---------- Accueil : aperçu des conseils ---------- */
/* Titre à gauche, trois fiches en liste à droite ; empilés sur téléphone. */
.tips-grid { display: grid; gap: 36px 72px; text-align: left; }
.tips-grid :is(.title, .intro) { margin-inline: 0; }
.tips-grid .cta-row { justify-content: flex-start; }
@media (min-width: 834px) { .tips-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.tips { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tips li { border-bottom: 1px solid var(--line); }
.tips a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; padding: 24px 0; color: var(--text); }
.tips a:hover { text-decoration: none; }
.tips a > span { grid-column: 1; }
.tips-for { font-size: 0.9375rem; color: var(--text-2); }
.tips-title { font: 400 clamp(1.25rem, 2.2vw, 1.625rem)/1.2 var(--font-title); letter-spacing: -.01em; }
.tips a .i { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--text-2); transition: translate .6s var(--lux), color .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tips a:hover .i { translate: 4px 0; color: var(--text); } }

/* ---------- Studio : affiches animées ---------- */
/* La mini vidéo (muette, en boucle, lue seulement à l'écran : voir site.js) remplit la tuile, le titre se pose en bas. */
.tile--poster { justify-content: flex-end; min-height: clamp(460px, 50vw, 720px); padding: 0 0 clamp(18px, 2.2vw, 30px); background: #000; }
.tile--poster > * { z-index: 1; }
.tile--poster > .clip { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tile--poster::after { content: ""; position: absolute; inset: 35% 0 0; z-index: 0; background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, 0)); pointer-events: none; } /* voile : le titre reste lisible */
.tile--poster .eyebrow { color: rgba(255, 255, 255, .78); }
.tile--poster .cta-row { margin-bottom: 0; }
/* Bouton pause / lecture d'une mini vidéo, ajouté par site.js */
.clip-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: background-color .2s; }
.clip-toggle:hover { background: rgba(0, 0, 0, .8); }
.clip-toggle::before { content: ""; width: 9px; height: 11px; border: solid currentColor; border-width: 0 3px; }
.clip-toggle.is-paused::before { width: 0; height: 0; margin-left: 3px; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.clip-toggle::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; } /* zone d'appui de 44 px, dessin inchangé */

/* ---------- Cycle de Myriad PC Doctor : un anneau et sa légende ; chaque étape s'allume quand le trait bleu l'atteint ---------- */
.cycle { display: grid; justify-items: center; gap: clamp(36px, 5vw, 56px); margin-top: clamp(40px, 5vw, 64px); text-align: left; }
@media (min-width: 834px) { .cycle { grid-template-columns: auto minmax(0, 20rem); justify-content: center; align-items: center; column-gap: clamp(56px, 7vw, 104px); } }
.cycle-ring { width: min(100%, 18rem); height: auto; overflow: visible; }
@media (min-width: 834px) { .cycle-ring { width: clamp(20rem, 32vw, 26rem); } }
.cycle-track { fill: none; stroke: var(--line); stroke-width: .5; stroke-dasharray: 1; transition: stroke-dashoffset 1.8s var(--lux) .15s; }
.cycle-comet { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 3; visibility: hidden; }
.cycle-sts circle { fill: var(--bg); stroke: var(--line); stroke-width: .5; }
.cycle-sts text { fill: var(--text-2); font: 500 4px var(--font); }
.cycle-steps { display: grid; gap: 24px; width: 100%; max-width: 20rem; margin: 0; padding: 0; list-style: none; counter-reset: cycle; }
@media (min-width: 560px) and (max-width: 833px) { .cycle-steps { max-width: 34rem; grid-template-columns: 1fr 1fr; gap: 28px 32px; } }
.cycle-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; counter-increment: cycle; }
.cycle-steps li::before { content: counter(cycle); grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; font: 500 .875rem/1 var(--font); color: var(--text-2); }
.cycle-steps h3 { font-size: 1.1875rem; line-height: 1.25; }
.cycle-steps p { margin: 2px 0 0; color: var(--text-2); }
/* Le trait parcourt l'anneau en 12 s : il glisse 1,2 s, puis marque une pause de 1,8 s à chaque étape.
   Les délais négatifs décalent chaque étape d'un quart de tour. Tout attend l'apparition du schéma (.is-in).
   Moins d'animations : le trait est masqué, l'anneau reste fixe. */
@media (prefers-reduced-motion: no-preference) {
  .js .cycle:not(.is-in) .cycle-track { stroke-dashoffset: 1; }
  .js .cycle-comet { visibility: visible; animation: cycle-comet 12s cubic-bezier(.65, 0, .35, 1) infinite; } /* sans script, pas de bouton d'arrêt : l'anneau reste fixe */
  .js .cycle-sts circle { animation: cycle-dot 12s var(--ease) var(--cd, 0s) infinite; }
  .js .cycle-sts text { animation: cycle-num 12s var(--ease) var(--cd, 0s) infinite; }
  .js .cycle-steps li::before { animation: cycle-li 12s var(--ease) var(--cd, 0s) infinite; }
  :is(.cycle-sts > g, .cycle-steps > li):nth-child(2) { --cd: -9s; }
  :is(.cycle-sts > g, .cycle-steps > li):nth-child(3) { --cd: -6s; }
  :is(.cycle-sts > g, .cycle-steps > li):nth-child(4) { --cd: -3s; }
  .js .cycle:not(.is-in) :is(.cycle-comet, .cycle-sts *), .js .cycle:not(.is-in) li::before { animation-play-state: paused; }
}
/* Hors de l'écran, ou arrêté par son bouton (site.js), le cycle se fige. Le bouton se place sous le schéma, centré. */
.cycle:is(.is-away, .is-still) :is(.cycle-comet, .cycle-sts *), .cycle:is(.is-away, .is-still) li::before { animation-play-state: paused; }
.cycle > .clip-toggle { position: relative; inset: auto; grid-column: 1 / -1; }
@keyframes cycle-comet { 0%, 15% { stroke-dashoffset: 3; } 25%, 40% { stroke-dashoffset: -22; } 50%, 65% { stroke-dashoffset: -47; } 75%, 90% { stroke-dashoffset: -72; } 100% { stroke-dashoffset: -97; } }
@keyframes cycle-dot { 0%, 15%, 100% { fill: var(--blue); stroke: var(--blue); } 22%, 97% { fill: var(--bg); stroke: var(--line); } }
@keyframes cycle-num { 0%, 15%, 100% { fill: #fff; } 22%, 97% { fill: var(--text-2); } }
@keyframes cycle-li { 0%, 15%, 100% { border-color: var(--blue); background-color: var(--blue); color: #fff; } 22%, 97% { border-color: var(--line); background-color: transparent; color: var(--text-2); } }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
@media (min-width: 640px) { .cards--2, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 834px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--3 > :last-child:nth-child(3n+1) { grid-column: 2; } } /* une carte seule en dernière ligne se centre */
@media (min-width: 1068px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 30px 28px; border-radius: 18px; background: var(--card); }
.card > .i { width: 34px; height: 34px; margin-bottom: 10px; stroke-width: 1.15; }
.card > .app-icon { width: 56px; height: 56px; margin-bottom: 10px; }
.hero .app-icon, .wrap > .app-icon { display: block; width: 96px; height: 96px; margin: 0 auto 24px; } /* page d'un produit du studio, ou en tête de section */
.card-media { position: relative; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: #000; }
.card-media video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; }
.card h3 { font-size: 1.1875rem; line-height: 1.25; }
.card p { margin: 0; color: var(--text-2); }
/* Colonnes de texte sans fond, pour l'information secondaire (Notre approche) : la page alterne cartes et texte nu. */
.cards--plain { gap: 32px 56px; }
.cards--plain .card { padding: 0; border-radius: 0; background: none; }

a.card { color: var(--text); transition: background-color .3s var(--ease); }
a.card:hover { text-decoration: none; background: color-mix(in srgb, var(--card) 86%, var(--text)); }
/* Cartes de prestations (build.py, modules:groupe) : en pied de carte, la page du module si elle existe,
   puis un devis pour ce seul module. Aucune case à cocher. */
.card .service-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: auto; padding-top: 8px; }
.service-cta .link { font-size: 1rem; }
@media (min-width: 1068px) { .cards--4 .service-cta { flex-direction: column; align-items: flex-start; } } /* en grille de quatre (cartes de 295 px), les deux liens s'empilent */

/* ---------- Étapes ---------- */
.steps { display: grid; gap: 40px 28px; list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; counter-reset: step; text-align: left; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1068px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 20px; border-top: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step); display: block; margin-bottom: 12px; font: 500 2.25rem/1 var(--font-title); color: var(--text-2); }
.step h3 { margin-bottom: 6px; font-size: 1.1875rem; line-height: 1.25; }
.step p { margin: 0; color: var(--text-2); }
/* Plusieurs colonnes : le numéro, le titre et le texte de chaque étape partagent les rangées de la grille, si bien qu'un titre
   sur deux lignes ne décale pas les textes voisins. L'écart entre deux rangées d'étapes passe par une marge, pas par row-gap. */
@media (min-width: 640px) {
  .steps { row-gap: 0; }
  .step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .step:nth-child(n+3) { margin-top: 40px; }
}
@media (min-width: 1068px) {
  .step:nth-child(n+3) { margin-top: 0; }
  .step:nth-child(n+5) { margin-top: 40px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: clamp(40px, 5vw, 64px) auto 0; border-top: 1px solid var(--line); text-align: left; interpolate-size: allow-keywords; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border: solid var(--text-2); border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { max-width: 42em; margin: 0; padding: 0 40px 22px 0; color: var(--text-2); }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.media + .cards { margin-top: 20px; }

/* ---------- Listes numérotées (urgence, suite du contact) ---------- */
.list { max-width: 620px; margin: clamp(32px, 4vw, 48px) auto 0; padding: 0; list-style: none; counter-reset: n; border-top: 1px solid var(--line); text-align: left; }
.list li { position: relative; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line); counter-increment: n; } /* un lien dans un point reste dans le flux du texte */
.list li::before { content: counter(n); position: absolute; left: 0; top: 18px; font-weight: 700; color: var(--text-2); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 22px; max-width: 620px; margin: clamp(40px, 5vw, 56px) auto 0; text-align: left; }
.field label, .fieldset legend { display: block; margin-bottom: 8px; font-size: 0.9375rem; font-weight: 700; }
.hint { font-weight: 500; color: var(--text-2); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid #86868b; border-radius: 12px; background: #fff; color: #1d1d1f; font: inherit; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 160px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .2); }
.fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fieldset legend { padding: 0; }
.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 54px; padding: 15px 16px; border: 1px solid #86868b; border-radius: 12px; background: #fff; color: #1d1d1f; font-size: 0.9375rem; line-height: 1.35; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.choice:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0, 113, 227, .2); }
input[type="radio"], input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
/* Contact : les cases besoins[] (build.py, besoins) restent cachées ; la prestation passée dans l'adresse s'affiche sur une ligne (site.js). */
.form .contact-prestation { margin: 0; max-width: none; color: var(--text); }
.btn:disabled { opacity: .5; cursor: default; } /* envoi en cours (site.js) */
.studio :is(input[type="text"], input[type="email"], input[type="tel"], textarea, .choice) { border-color: #424245; background: #1d1d1f; color: #f5f5f7; }

/* ---------- Bilan numérique : fenêtre en entonnoir (src/blocs/bilan.html, site.js) ---------- */
/* Téléphone : une feuille monte du bas et occupe l'écran. Ordinateur : un panneau centré sur un fond assombri.
   Elle repart par le chemin d'arrivée. Une étape à la fois ; seule la zone centrale défile, la page derrière reste immobile.
   Dans le parcours Entreprises (body.entreprises), elle prend les couleurs bleu nuit de la page. */
:root:has(.bilan[open]) { overflow: hidden; }
.bilan { inset: auto 0 0; width: 100%; max-width: none; height: calc(100% - max(12px, env(safe-area-inset-top))); max-height: none; margin: 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: var(--bg); color: var(--text); overflow: hidden; flex-direction: column; opacity: 0; transition: opacity .3s var(--ease), translate .55s var(--lux), display .55s allow-discrete, overlay .55s allow-discrete; } /* la colonne tient aussi pendant la sortie */
.bilan[open] { display: flex; opacity: 1; }
.bilan::backdrop { background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s var(--ease), display .55s allow-discrete, overlay .55s allow-discrete; }
.bilan[open]::backdrop { opacity: 1; }
@starting-style { .bilan[open], .bilan[open]::backdrop { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .bilan:not([open]) { translate: 0 100%; }
  @starting-style { .bilan[open] { translate: 0 100%; } }
}
@media (min-width: 834px) {
  .bilan { inset: 0; width: min(720px, 100% - 64px); height: min(860px, 100% - 64px); margin: auto; border-radius: 22px; box-shadow: 0 24px 80px rgba(0, 0, 0, .22); }
  @media (prefers-reduced-motion: no-preference) {
    .bilan:not([open]) { translate: 0 28px; }
    @starting-style { .bilan[open] { translate: 0 28px; } }
  }
}
/* Barre du haut : retour, nom de la fenêtre, fermer. Pendant les questions, un filet de progression la souligne. */
.bilan-top { position: relative; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 54px; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.bilan-titre { grid-column: 2; margin: 0; font-size: 0.9375rem; font-weight: 700; }
.bilan-back, .bilan-close, .bilan-next, .bilan-refaire { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--link); font: 500 1.0625rem/1.2 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bilan-back { grid-column: 1; justify-self: start; }
.bilan-back::before { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 0 0 1.5px 1.5px; rotate: 45deg; }
.bilan-close { grid-column: 3; justify-self: end; }
.bilan-next:disabled { color: var(--text-2); opacity: .5; cursor: default; }
.bilan-bar { position: absolute; inset: auto 0 -1px; height: 2px; }
.bilan-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; scale: var(--p, 0) 1; transition: scale .6s var(--lux); }
.bilan-body { flex: 1; overflow: hidden auto; overscroll-behavior: contain; padding: clamp(28px, 6vh, 56px) 22px calc(40px + env(safe-area-inset-bottom)); }
.bilan-step, .bilan-nav { max-width: 560px; margin-inline: auto; }
.bilan :is(h2, legend)[tabindex="-1"]:focus { outline: none; }
.bilan h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; }
.bilan h3 { margin: 36px 0 14px; font-size: 1.1875rem; line-height: 1.25; }
.bilan-lead { margin: 14px 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.4; color: var(--text-2); }
.bilan-petit { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.bilan-faits { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-weight: 700; }
.bilan-faits li { display: inline-flex; align-items: center; gap: 8px; }
.bilan-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bilan-actions .btn { flex: 1 1 200px; }
/* Accueil : le choix du profil, deux grandes commandes */
.bilan-profils { display: grid; gap: 12px; }
@media (min-width: 600px) { .bilan-profils { grid-template-columns: 1fr 1fr; } } /* quatre publics, deux par ligne */
.bilan-profil { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 76px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s var(--ease), scale .3s var(--lux); -webkit-tap-highlight-color: transparent; }
.bilan-profil:hover { border-color: var(--text-2); }
.bilan-profil:active { scale: .985; }
.bilan-profil strong { display: block; font: 500 1.1875rem/1.25 var(--font-title); }
.bilan-profil small { font-size: 0.9375rem; color: var(--text-2); }
.bilan-profil .i { color: var(--text-2); }
/* Questions : le thème et le rang (data-meta, écrit par site.js) au-dessus de la question, une réponse par ligne.
   La réponse retenue se marque par le contour et par la pastille pleine à droite, pas par la seule couleur. */
.bilan-q { min-width: 0; padding: 0; border: 0; }
.bilan-q legend { display: block; width: 100%; margin: 0 0 clamp(22px, 3vw, 32px); padding: 0; font: 400 clamp(1.5rem, 3.4vw, 2.125rem)/1.15 var(--font-title); letter-spacing: -.01em; text-wrap: balance; }
.bilan-q legend::before { content: attr(data-meta); display: block; margin-bottom: 14px; font: 700 0.9375rem/1.2 var(--font); letter-spacing: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bilan-q .choices { grid-template-columns: 1fr; }
.bilan-q .choice { position: relative; align-items: center; gap: 16px; min-height: 64px; padding: 16px 20px; border-color: var(--line); border-radius: 16px; background: var(--card); color: var(--text); font-size: 1.0625rem; transition: border-color .2s, box-shadow .2s, scale .3s var(--lux); }
.bilan-q .choice:hover { border-color: var(--text-2); }
.bilan-q .choice input { position: absolute; opacity: 0; pointer-events: none; }
.bilan-q .choice::after { content: ""; flex: none; width: 22px; height: 22px; margin-left: auto; border: 1.5px solid var(--line); border-radius: 50%; transition: border-color .2s, box-shadow .2s; }
.bilan-q .choice:has(:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bilan-q .choice:has(:checked)::after { border-color: var(--accent); box-shadow: inset 0 0 0 6px var(--accent); }
.bilan-q .choice:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.bilan-nav { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .bilan-step:not([hidden]) { animation: bilan-in .5s var(--lux) both; }
  .bilan.is-back .bilan-step:not([hidden]) { animation-name: bilan-back; } /* on revient par où l'on est venu */
}
@keyframes bilan-in { from { opacity: 0; translate: 28px 0; } }
@keyframes bilan-back { from { opacity: 0; translate: -28px 0; } }
/* Résultat : l'indice compté, la jauge, les priorités, puis la demande, mise en avant, et des conseils à lire */
.bilan-indice { margin: 16px 0 0; font: 400 clamp(4.5rem, 16vw, 7rem)/1 var(--font-title); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bilan-indice small { font-size: .28em; letter-spacing: 0; color: var(--text-2); }
.bilan-gauge { height: 6px; margin-top: 20px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bilan-gauge span { display: block; height: 100%; background: var(--accent); transform-origin: left; scale: var(--s, 0) 1; transition: scale 1.4s var(--lux) .15s; }
@starting-style { .bilan-gauge span { scale: 0 1; } }
.bilan-verdict { margin: 20px 0 0; font-size: 1.1875rem; line-height: 1.35; }
.bilan-priorites { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.bilan-priorites li { position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 56px; border-radius: 14px; background: var(--card); counter-increment: n; } /* titre, apport de la prestation, réponse citée */
.bilan-priorites li::before { content: counter(n); position: absolute; left: 18px; top: 16px; font: 500 1.25rem/1.25 var(--font-title); color: var(--text-2); }
.bilan-priorites strong { font: 500 1.0625rem/1.3 var(--font-title); }
.bilan-priorites span { font-size: 0.9375rem; line-height: 1.4; color: var(--text-2); }
.bilan-priorites .bilan-reponse { margin-top: 4px; font-size: 0.875rem; }
.bilan-suite { margin-top: 32px; padding: 4px 24px 24px; border-radius: 18px; background: var(--card); }
.bilan-suite h3 { margin-top: 24px; }
.bilan-lire ul { margin: 0; padding: 0; list-style: none; }
.bilan-lire .link { font-size: 1.0625rem; text-align: left; }
.bilan-refaire { margin: 28px 0 0 -12px; }
/* Résultat : « Recevoir un devis » et « Être rappelé » restent en bas de l'écran pendant la lecture des priorités.
   Le décalage négatif compense le padding bas de .bilan-body : la barre touche le bas de la feuille. */
.bilan-result > .bilan-actions { position: sticky; bottom: calc(-40px - env(safe-area-inset-bottom)); z-index: 1; margin-top: 16px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.bilan-result > .bilan-actions .btn { flex: 1 1 0; padding-inline: 12px; white-space: nowrap; }
.bilan-result > .bilan-actions + .bilan-petit { margin-top: 6px; }
/* Troisième suite, plus légère : un lien sous les deux boutons */
.bilan-mail { flex: 1 1 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font: 500 1rem var(--font); cursor: pointer; }
.bilan-mail:hover { text-decoration: underline; text-underline-offset: .2em; }
/* Demande : formulaire de contact du site (.form), deux choix côte à côte ; le moment de l'appel ne sert qu'au rappel. */
.bilan .bilan-form { max-width: 560px; margin: 0 auto; }
.bilan-form .bilan-petit { margin: 0; }
.bilan-form .choices { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bilan-form .choice .hint { display: block; margin-top: 2px; font-size: 0.875rem; color: #6e6e73; } /* la case reste blanche dans tous les univers */
.bilan-form:not(:has([name="suite"][value="rappel"]:checked)) .bilan-creneau { display: none; }
.bilan select { appearance: none; width: 100%; min-height: 54px; padding: 14px 44px 14px 16px; border: 1px solid #86868b; border-radius: 12px; background: #fff no-repeat; background-image: linear-gradient(45deg, transparent 50%, #6e6e73 50%), linear-gradient(135deg, #6e6e73 50%, transparent 50%); background-position: calc(100% - 23px) 50%, calc(100% - 18px) 50%; background-size: 5px 5px; color: #1d1d1f; font: inherit; transition: border-color .2s, box-shadow .2s; }
.bilan select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .2); }
/* Parcours Entreprises : la fenêtre se détache du fond bleu nuit par un filet ; barre de défilement sombre. */
.entreprises .bilan { color-scheme: dark; box-shadow: 0 0 0 1px var(--line), 0 24px 80px rgba(0, 0, 0, .4); }

/* ---------- Notre approche : le fondateur, son parcours, ses attaches, ses certifications ---------- */
.fondateur { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; text-align: left; }
@media (min-width: 834px) { .fondateur { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.fondateur > img { width: 100%; max-width: 520px; height: auto; margin-inline: auto; border-radius: 28px; }
.fondateur :is(.title, .intro) { max-width: none; margin-inline: 0; }
.fondateur p:not(.eyebrow, .intro) { max-width: 36em; margin: 1em 0 0; color: var(--text-2); }
.parcours { max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0; list-style: none; text-align: left; }
.parcours li { position: relative; margin-left: 6px; padding: 0 0 32px 36px; border-left: 1px solid var(--line); }
.parcours li:last-child { padding-bottom: 0; border-left-color: transparent; }
.parcours li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--text); }
.parcours li:last-child::before { background: var(--blue); box-shadow: none; }
.parcours h3 { margin-bottom: 6px; font-size: 1.1875rem; line-height: 1.3; }
.parcours p { margin: 0; color: var(--text-2); }
.citation { max-width: 760px; margin: clamp(48px, 6vw, 80px) auto 0; }
.citation blockquote { margin: 0; }
.citation blockquote p { margin: 0; font: 400 clamp(1.375rem, 2.6vw, 2rem)/1.25 var(--font-title); letter-spacing: -.01em; text-wrap: balance; }
.citation figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--text-2); }
.attaches { display: grid; gap: 24px; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
@media (min-width: 834px) { .attaches { grid-template-columns: 1fr 1fr; } }
.attaches figure { margin: 0; }
.attaches img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.attaches figcaption { margin-top: 12px; font-size: 1rem; }
.attaches figcaption small { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--text-2); }
.attaches figcaption a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 20px; max-width: 960px; margin: clamp(40px, 5vw, 64px) auto 0; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 22px; border-radius: 18px; background: var(--card); text-align: center; }
.badge img { width: 136px; height: 136px; margin-bottom: 8px; object-fit: contain; }
.badge h3 { font-size: 1.0625rem; line-height: 1.3; }
.badge p { margin: 0; font-size: 0.9375rem; color: var(--text-2); }
.badge .link { min-height: 36px; font-size: 0.9375rem; }

/* ---------- Texte long (juridique) ---------- */
.prose { max-width: 720px; text-align: left; }
.prose h2 { font-weight: 500; margin: 2em 0 .5em; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose dl, .pratique { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 0; margin: 0 0 1.5em; border-top: 1px solid var(--line); }
:is(.prose, .pratique) :is(dt, dd) { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
:is(.prose, .pratique) dt { font-weight: 700; padding-right: 24px; }
:is(.prose, .pratique) dd { color: var(--text-2); }
@media (max-width: 560px) { .prose dl, .pratique { grid-template-columns: 1fr; } :is(.prose, .pratique) dt { padding-bottom: 0; border-bottom: 0; } :is(.prose, .pratique) dd { padding-top: 2px; } }
/* Pages de prestation : « En pratique », sous la liste de ce que couvre la prestation */
/* Accueil : la zone d'activité, précédée des drapeaux suisse et français */
.zone .drapeaux { display: inline-flex; gap: 6px; margin-right: 10px; vertical-align: -.1em; }
.drapeau { width: auto; height: .95em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.pratique-titre { margin: clamp(40px, 5vw, 56px) 0 0; font-size: 1.1875rem; }
.pratique { max-width: 620px; margin: 16px auto 0; text-align: left; }
.prose h3 { margin: 1.4em 0 .4em; font-size: 1.1875rem; line-height: 1.3; }
.prose blockquote { margin: 1em 0 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }

/* ---------- Conseils et astuces : page d'accueil (/conseils/) ---------- */
/* Deux groupes de cartes, Particuliers puis Entreprises ; le groupe Entreprises prend le bleu nuit de son univers (.section.entreprises, en tête). */
.tip h3 { font-size: 1.25rem; }
.card .tip-meta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 0.875rem; }
.tip-meta .i { width: 1em; height: 1em; }

/* ---------- Conseils et astuces : article ---------- */
/* Colonne de lecture d'environ 68 signes, étapes reliées par un filet, encadré « À retenir ». */
.article-meta { margin: 20px 0 0; font-size: 0.9375rem; color: var(--text-2); }
.article-body { padding-top: 0; }
.article-text { max-width: 33em; font-size: clamp(1.0625rem, .9rem + .6vw, 1.1875rem); line-height: 1.6; text-align: left; }
.article-text > h2 { margin: 2.2em 0 .6em; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.015em; }
.article-text > h2:first-child { margin-top: 0; }
.article-text > ul:not([class]) { margin: 0 0 1em; padding-left: 1.2em; }
.article-text > ul:not([class]) li { margin-bottom: .35em; padding-left: .2em; }
.article-text > ul:not([class]) li::marker { color: var(--text-2); }
.article-text :is(p, li, td) a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
/* Étapes numérotées */
.howto { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: howto; }
.howto > li { position: relative; padding: 0 0 30px 58px; counter-increment: howto; }
.howto > li:last-child { padding-bottom: 0; }
.howto > li::before { content: counter(howto); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--text); color: var(--bg); font: 500 1.0625rem/1 var(--font-title); font-variant-numeric: tabular-nums; }
.howto > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 8px; border-left: 1px solid var(--line); }
.howto h3 { margin: 6px 0; font-size: 1.25rem; line-height: 1.3; }
.howto p { margin: 0; color: var(--text-2); }
.howto + p { margin-top: 28px; }
/* Encadré « À retenir » */
.retenir { margin: 48px 0 0; padding: clamp(26px, 4vw, 38px); border-radius: 24px; background: var(--bg-2); }
.retenir h2 { margin: 0 0 16px; font-size: 1.375rem; line-height: 1.2; }
.retenir ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.retenir li { position: relative; padding-left: 30px; }
.retenir li::before { content: ""; position: absolute; left: 5px; top: .3em; width: 6px; height: 11px; border: solid var(--link); border-width: 0 2px 2px 0; rotate: 45deg; }
/* Exemple de faux message, en bulle de SMS */
.exemple { margin: 28px 0 0; }
.exemple blockquote { max-width: 24em; margin: 0; padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: var(--bg-2); font-size: 1.0625rem; line-height: 1.45; }
.exemple blockquote p { margin: 0; overflow-wrap: anywhere; }
.exemple figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
/* Règle 3-2-1 : trois chiffres. Sur téléphone, le chiffre se place à gauche de son texte. */
.regle { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.regle li { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; background: var(--bg-2); font-size: 1rem; line-height: 1.4; color: var(--text-2); }
.regle strong { flex: none; min-width: .6em; font: 400 clamp(2.75rem, 6vw, 3.5rem)/1 var(--font-title); letter-spacing: -.03em; color: var(--text); }
@media (min-width: 560px) { .regle { grid-template-columns: repeat(3, 1fr); } .regle li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 22px; } }
/* Cartes, tableaux et questions fréquentes dans la colonne de lecture */
.article-text .cards { margin: 24px 0 0; gap: 12px; }
.article-text .card { padding: 22px 22px 24px; }
.article-text .card h3 { font-size: 1.0625rem; }
.article-text .card p { font-size: 1rem; line-height: 1.5; }
.article-text table { width: 100%; margin: 24px 0 0; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.article-text :is(th, td) { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-text thead :is(th, td) { padding-top: 0; border-bottom-color: var(--text); font: 700 0.875rem/1.2 var(--font); color: var(--text-2); }
.article-text tbody th { width: 38%; font-weight: 600; }
.article-text table:not(.matrice) :is(th, td):last-child { padding-right: 0; }
.article-text td { color: var(--text-2); }
.article-text .faq { margin-top: 20px; }
.article-text .faq summary { font-size: 1.0625rem; }
.article-text .faq details p { font-size: 1rem; }
/* Matrice de priorité (automatisation) : quatre cases, la case « En premier » en noir */
.article-text .matrice { width: calc(100% + 16px); margin-inline: -8px; border-collapse: separate; border-spacing: 8px; table-layout: fixed; }
.matrice :is(th, td) { padding: 18px 12px; border: 0; border-radius: 14px; text-align: center; vertical-align: middle; }
.matrice thead :is(th, td) { padding: 0 12px; }
.matrice tbody th { width: 26%; padding-left: 0; text-align: left; }
.matrice tbody td { background: var(--bg-2); color: var(--text); }
.matrice tbody td:has(strong) { background: var(--text); color: var(--bg); }

/* ---------- Impression (conditions générales, pages légales) : le texte seul ---------- */
@page { size: A4; margin: 18mm 16mm; }
@media print {
  .nav, .skip, footer { display: none !important; }
  .section, .hero { padding: 0 !important; background: none !important; }
  .hero { margin-bottom: 8mm; }
  .prose { max-width: none; }
  .prose h2 { break-after: avoid; }
  .prose p, .prose li { color: #1d1d1f; }
  * { animation: none !important; transition: none !important; }
  .js :is(.hero .wrap > *, .title, .intro, .tile, .card, .step, .media, .reveal), .w > span { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; }
}

/* ---------- Pied de page ---------- */
.footer { padding: 20px 0 28px; background: var(--bg-2); color: var(--text-2); font-size: 0.8125rem; line-height: 1.4; }
.footer .wrap > p { margin: 0; padding: 14px 0; border-block: 1px solid var(--line); } /* filet du haut : le pied se détache de l'appel final, souvent du même gris */
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer h2 { margin-bottom: 8px; font: 700 0.8125rem var(--font); color: var(--text); }
.footer ul { display: grid; list-style: none; margin: 0; padding: 0; }
.footer ul a { display: inline-flex; align-items: center; min-height: 28px; color: var(--text); opacity: .8; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; }

/* ---------- Mouvement ---------- */
/* Entre deux pages : fondu natif du navigateur (View Transitions), sans rien retarder au clic. L'ancienne page
   s'efface, la nouvelle apparaît avec ses blocs, et le menu reste en place : seule sa couleur change d'un univers à l'autre. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: nav; }
  ::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--lux) both; }
  ::view-transition-group(nav) { animation-duration: .5s; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes cue { 0% { translate: 0 -100%; } 55%, 100% { translate: 0 100%; } }

/* Survol du logo du menu, à la souris : le logo se dessine lettre après lettre, chaque lettre glisse vers sa place, le point se pose. */
.dot { transform-box: fill-box; transform-origin: center; }
.l:nth-child(1) { --g: 8px; }
.l:nth-child(2) { --g: 16px; animation-delay: .1s; }
.l:nth-child(3) { --g: 24px; animation-delay: .2s; }
.l:nth-child(4) { --g: 32px; animation-delay: .3s; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .l { animation-name: draw, glide; animation-duration: 1.3s, 1.6s; animation-timing-function: var(--ease), var(--lux); animation-fill-mode: backwards; }
  .brand:hover .dot { animation: dot .8s var(--lux) 1.25s backwards; }
}
@keyframes draw { from { stroke-dasharray: 1 2; stroke-dashoffset: 1.1; } to { stroke-dasharray: 1 2; stroke-dashoffset: 0; } }
@keyframes glide { from { translate: var(--g) 0; } }
@keyframes dot { from { scale: 0; } }

/* Accueil et studio : le logo s'écrit au-dessus du titre, lettre après lettre, comme à la plume. Le point se pose en dernier.
   Puis le point part, l'encre se retire dans le sens de l'écriture, et tout recommence (cycle de 9 s).
   Hors de l'écran, ou arrêté par son bouton, il se fige. Sans animation demandée, le logo est simplement affiché. */
.hero-logo { display: flex; justify-content: center; margin: 0 0 clamp(36px, 6vh, 64px); color: var(--text); }
.hero-logo .logo { width: clamp(170px, 24vw, 320px); height: auto; }
.hero-logo g { stroke-width: 2.4; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-logo .l { stroke-dasharray: 1 2; animation: write 9s cubic-bezier(.55, .1, .35, 1) infinite backwards; } /* sans script, pas de bouton d'arrêt : le logo reste dessiné */
  .hero-logo .l:nth-child(2) { animation-delay: .9s; }
  .hero-logo .l:nth-child(3) { animation-delay: 1.45s; }
  .hero-logo .l:nth-child(4) { animation-delay: 2s; }
  .js .hero-logo .dot { animation: ink-dot 9s var(--lux) 3.25s infinite backwards; }
}
:is(.is-away, .is-still) .hero-logo *, :is(.is-away, .is-still) .cue::after { animation-play-state: paused; }
.hero-pause { background: none; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.hero-pause:hover { background: none; color: var(--text); }
@keyframes write {
  0% { stroke-dashoffset: 1.05; }
  15%, 60% { stroke-dashoffset: 0; }
  70%, 100% { stroke-dashoffset: -1.05; }
}
@keyframes ink-dot {
  0% { scale: 0; }
  5% { scale: 1.3; }
  9%, 20% { scale: 1; }
  25%, 100% { scale: 0; } /* le point part juste avant que l'encre se retire */
}

/* Blocs : apparition douce, en cascade dans les grilles */
.js :is(.hero .wrap > *, .title, .intro, .tile, .card, .step, .media, .reveal) { transition: opacity 1.1s var(--lux), translate 1.1s var(--lux), clip-path 1.4s var(--lux), scale 1.4s var(--lux); }
.js :is(.hero .wrap > *, .intro, .tile, .card, .step, .reveal):not(.is-in) { opacity: 0; translate: 0 26px; }
.js .hero .wrap > * { transition-duration: .8s; } /* héros : entrée plus courte, les boutons arrivent plus tôt */
.js .hero .wrap > :nth-child(2) { transition-delay: .1s; }
.js .hero .wrap > :nth-child(3) { transition-delay: .18s; }
.js .hero .wrap > :nth-child(n+4) { transition-delay: .26s; }
.js :is(.cards, .steps, .tiles) > :nth-child(2) { transition-delay: .09s; }
.js :is(.cards, .steps, .tiles) > :nth-child(3) { transition-delay: .18s; }
.js :is(.cards, .steps, .tiles) > :nth-child(4) { transition-delay: .27s; }
.js :is(.cards, .steps) > :nth-child(n+5) { transition-delay: .12s; }

/* Titres : chaque mot monte derrière un masque */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .04em .22em; margin: -.16em -.04em -.22em; }
.w > span { display: inline-block; translate: 0 115%; transition: translate .9s var(--lux) calc(var(--i) * 50ms); }
.is-in .w > span { translate: none; }
.js :is(h1, .title):has(.w):not(.is-in) { opacity: 1; translate: none; }

/* Images produit : le cadre s'ouvre et l'image se pose. Les captures de jeux dérivent lentement au défilement. */
.js .media:not(.is-in) { opacity: 0; scale: .96; clip-path: inset(7% 7% 7% 7% round 28px); }
.js .media.is-in { clip-path: inset(0 round 28px); }
.media :is(img, video) { transition: scale 2s var(--lux); }
.js .media:not(.is-in) :is(img, video) { scale: 1.08; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tiles--2 .tile-media img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { scale: 1.12; translate: 0 -3%; } to { scale: 1.02; translate: 0 3%; } }
  }
}

/* Moins d'animations : plus de glissement ni d'agrandissement, mais un fondu court qui garde le retour visuel. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .js :is(.hero .wrap > *, .title, .intro, .tile, .card, .step, .media, .reveal):not(.is-in) { opacity: 1; translate: none; scale: none; clip-path: none; }
  .js .media:not(.is-in) :is(img, video) { scale: none; }
  :is(.btn, .choice, .mode a, .clip-toggle, .nav-toggle, a.card, .bilan-profil, .door):active, .door-arrow { scale: none !important; }
  :is(.door-arrow, .tips a) .i { translate: none !important; } /* accueil : la flèche ne glisse plus */
}
/* Moins de transparence : le menu et le bouton des vidéos deviennent opaques. */
@media (prefers-reduced-transparency: reduce) {
  .nav, .studio .nav, .entreprises .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .clip-toggle { background: #000; }
}
/* Contraste renforcé : textes secondaires plus foncés, filets et contours marqués, menu opaque. */
@media (prefers-contrast: more) {
  :root { --text-2: #48484d; --line: #86868b; }
  .dark, .studio { --text-2: #d2d2d7; --line: #86868b; }
  .entreprises { --text-2: #d5deea; --line: #8fa3bf; }
  .nav, .studio .nav, .entreprises .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--text); }
}
