/* =====================================================================
   site.css · refonte de novembre 2026, direction « Apple pro »
   Chargée après styles.css. Les jetons de :root gardent les noms de
   l'ancienne charte (pipedream les recopie par nom) avec les nouvelles
   valeurs ; les nouveaux composants sont préfixés x-.
   Police : celle du système. SF Pro sur Mac, iPhone et iPad, Segoe UI
   sous Windows, Roboto sous Android. Aucun fichier de police à charger.
   ===================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f5f7;
  --bg-card:   #ffffff;
  --ink:       #1d1d1f;
  --ink-soft:  #424245;
  --ink-faint: #6e6e73;
  --line:      rgba(0,0,0,0.08);
  --line-2:    rgba(0,0,0,0.16);
  --ember:     #c2410c;
  --ember-2:   #9a3412;
  --gold:      #b45309;
  --amber:     #ea580c;
  --maxw:      1120px;
  --serif:   -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --x-dark:   #000000;
  --x-dark-2: #161617;
  --x-dark-3: #1d1d1f;
  --x-ink-3:  #86868b;
  --x-inv:    #f5f5f7;
  --x-inv-2:  #a1a1a6;
  --x-ember-on-dark: #ff8a4c;
  --x-radius: 28px;
  --x-ease: cubic-bezier(.2,.7,.2,1);
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
}
::selection { background: rgba(194,65,12,.2); color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
img, video { max-width: 100%; }

/* ---------- Mise en page ---------- */
.x-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.x-wrap--wide { max-width: 1280px; }
.x-wrap--narrow { max-width: 880px; }
.x-sec { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.x-sec--tight { padding: clamp(48px, 6vw, 80px) 0; }
.x-sec--alt { background: var(--bg-soft); }
.x-sec--dark { background: var(--x-dark); color: var(--x-inv); }
.x-center { text-align: center; }
.x-head { margin: 0 auto clamp(36px, 4.5vw, 64px); max-width: 900px; }
.x-head--left { margin-left: 0; text-align: left; }

/* ---------- Typographie ---------- */
.x-eyebrow { margin: 0 0 10px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--ember); }
.x-sec--dark .x-eyebrow, .x-dark .x-eyebrow { color: var(--x-ember-on-dark); }
.x-kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink-faint); }
.x-display { margin: 0; font-family: var(--display); font-size: clamp(46px, 7.4vw, 104px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.x-h2 { margin: 0; font-family: var(--display); font-size: clamp(36px, 5.2vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.x-h3 { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.x-dim { color: var(--x-ink-3); }
.x-lead { margin: 20px auto 0; max-width: 700px; font-size: clamp(19px, 1.75vw, 24px); line-height: 1.38; letter-spacing: -0.016em; color: var(--ink-faint); text-wrap: pretty; }
.x-head--left .x-lead { margin-left: 0; }
.x-sec--dark .x-lead, .x-dark .x-lead { color: var(--x-inv-2); }
.x-pro { background: linear-gradient(180deg, #ffffff 0%, #c9c9cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-pro--warm { background: linear-gradient(100deg, #ffb27a 0%, #ff7a3d 45%, #e8590c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons et liens ---------- */
.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 980px; border: 0; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--x-ease), box-shadow .2s ease;
}
.x-btn:hover { transform: scale(1.02); }
.x-btn--primary { background: var(--ember); color: #ffffff; }
.x-btn--primary:hover { background: var(--ember-2); color: #ffffff; }
.x-btn--dark { background: var(--x-dark-3); color: #ffffff; }
.x-btn--dark:hover { background: #000000; color: #ffffff; }
.x-btn--light { background: var(--x-inv); color: var(--x-dark-3); }
.x-btn--light:hover { background: #ffffff; }
.x-btn--ghost { background: transparent; color: var(--ember); box-shadow: inset 0 0 0 1.5px currentColor; }
.x-btn--sm { min-height: 34px; padding: 0 15px; font-size: 14px; }
.x-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--ember); font-weight: 500; text-decoration: none; }
.x-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.x-more::after { content: "\203A"; margin-left: 4px; font-size: 1.15em; line-height: 1; }
.x-sec--dark .x-more, .x-dark .x-more { color: var(--x-ember-on-dark); }
.x-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 30px; }
.x-head--left .x-actions { justify-content: flex-start; }

/* ---------- Menu ---------- */
.x-skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 18px; border-radius: 10px; background: var(--x-dark-3); color: #ffffff; font-size: 14px; font-weight: 600; transition: top .18s ease; }
.x-skip:focus { top: 12px; }
.x-nav { position: sticky; top: 0; z-index: 200; color: var(--ink); background: rgba(251,251,253,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.x-nav--dark { color: var(--x-inv); background: rgba(22,22,23,.82); border-bottom-color: rgba(255,255,255,.08); }
.x-nav-in { max-width: 1120px; height: 52px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 18px; }
.x-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.x-brand img { width: 22px; height: 22px; display: block; }
.x-links { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.x-links > a, .x-links > button { padding: 14px 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; letter-spacing: -0.005em; color: inherit; opacity: .82; text-decoration: none; transition: opacity .15s ease; }
.x-links > a:hover, .x-links > button:hover, .x-links > .on, .x-links > button[aria-expanded="true"] { opacity: 1; }
.x-links > .on { box-shadow: inset 0 -2px 0 currentColor; }
.x-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.x-links + .x-right { margin-left: 0; }
.x-lang { display: inline-flex; padding: 2px; border-radius: 980px; background: rgba(0,0,0,.06); }
.x-nav--dark .x-lang { background: rgba(255,255,255,.1); }
.x-lang button { min-width: 34px; min-height: 28px; padding: 0 8px; border: 0; border-radius: 980px; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; opacity: .7; }
.x-lang button.on { background: #ffffff; color: var(--x-dark-3); opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.x-langpick { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 980px; background: rgba(0,0,0,.06); font-size: 12px; font-weight: 600; }
.x-nav--dark .x-langpick { background: rgba(255,255,255,.1); }
.x-langpick svg { width: 14px; height: 14px; }
.x-langpick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.x-burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.x-burger span, .x-burger span::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s var(--x-ease); }
.x-burger span::before { content: ""; position: absolute; top: 7px; }
.x-burger[aria-expanded="true"] span { transform: translateY(3.5px) rotate(45deg); }
.x-burger[aria-expanded="true"] span::before { transform: translateY(-7px) rotate(-90deg); }

.x-fly { position: absolute; left: 0; right: 0; top: 52px; z-index: 5; color: var(--ink); background: #fbfbfd; border-bottom: 1px solid rgba(0,0,0,.08); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); animation: x-fly-in .28s var(--x-ease); }
.x-nav--dark .x-fly { color: var(--x-inv); background: #161617; border-bottom-color: rgba(255,255,255,.08); }
@keyframes x-fly-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.x-fly-in { max-width: 1120px; margin: 0 auto; padding: 34px 22px 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; }
.x-fly h2 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.x-nav--dark .x-fly h2 { color: var(--x-inv-2); }
.x-fly ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.x-fly a { display: block; padding: 4px 0; color: inherit; text-decoration: none; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.x-fly .x-fly-small a { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.x-fly a:hover { color: var(--ember); }
.x-nav--dark .x-fly a:hover { color: var(--x-ember-on-dark); }
.x-fly-hint { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }

@media (max-width: 980px) {
  .x-links { display: none; }
  .x-links + .x-right { margin-left: auto; }
  .x-burger { display: inline-flex; }
  /* La barre a un backdrop-filter : un enfant en position fixe se caserait
     dans ses 52 px. Le panneau reste donc absolu, haut d'un écran. */
  .x-fly { position: absolute; top: 52px; height: calc(100vh - 52px); height: calc(100dvh - 52px); overflow-y: auto; }
  .x-fly-in { grid-template-columns: minmax(0, 1fr); padding: 26px 26px 60px; gap: 26px; }
  .x-fly a { font-size: 26px; }
  /* Le bouton du panneau : pleine largeur, texte blanc. Sans ces règles, il
     prenait le style des liens du menu (texte sombre, sans marge). */
  .x-fly .x-fly-small a.x-fly-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 20px; padding: 0 22px; border-radius: 980px; background: var(--ember); color: #ffffff; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
  .x-nav .x-fly .x-fly-small a.x-fly-cta:hover { background: var(--ember-2); color: #ffffff; }
}
@media (min-width: 981px) { .x-fly .x-fly-cta { display: none; } }
/* Sur téléphone, « Faire mon site » reste dans la barre, toujours visible ;
   la langue passe dans le panneau pour lui laisser la place. */
.x-bar-lang { display: contents; }
.x-fly-lang { display: none; }
@media (max-width: 559px) {
  .x-nav-in { gap: 10px; padding: 0 16px; }
  .x-right { gap: 8px; }
  .x-bar-lang { display: none; }
  .x-fly-lang { display: flex; margin-top: 22px; }
  .x-right .x-btn--sm { padding: 0 14px; font-size: 13.5px; }
}
@media (max-width: 359px) {
  .x-brand { gap: 0; font-size: 0; }
}

/* ---------- Pied de page ---------- */
.x-foot { background: var(--bg-soft); color: var(--ink-faint); font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.x-foot-in { max-width: 1120px; margin: 0 auto; padding: 30px 22px 22px; }
.x-foot-note { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid #d2d2d7; }
.x-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; padding-bottom: 22px; border-bottom: 1px solid #d2d2d7; }
.x-foot h2 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.x-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.x-foot a { color: var(--ink-soft); text-decoration: none; }
.x-foot a:hover { text-decoration: underline; }
.x-foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; padding-top: 16px; }
.x-foot-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 760px) { .x-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sélecteur segmenté ---------- */
.x-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 980px; background: rgba(0,0,0,.06); }
.x-dark .x-seg, .x-sec--dark .x-seg { background: rgba(255,255,255,.1); }
.x-seg button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 980px; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; opacity: .78; transition: background-color .3s ease, color .3s ease, opacity .3s ease; }
.x-seg button[aria-pressed="true"] { opacity: 1; background: #ffffff; color: var(--x-dark-3); box-shadow: 0 1px 4px rgba(0,0,0,.18); }

/* ---------- Héros de l'accueil ---------- */
.x-hero { position: relative; overflow: hidden; background: var(--x-dark); color: var(--x-inv); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 6vw, 96px); text-align: center; }
.x-hero h1 { margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--x-inv-2); letter-spacing: .01em; }
.x-hero-copy { display: grid; margin-top: 30px; }
.x-hero-copy > div { grid-area: 1 / 1; transition: opacity .55s ease, visibility .55s ease, transform .55s var(--x-ease); }
.x-hero-copy > div[aria-hidden="true"] { opacity: 0; visibility: hidden; transform: translateY(8px); }
.x-hero .x-lead { color: var(--x-inv-2); }
.x-glow { position: absolute; left: 50%; bottom: -24%; width: min(1200px, 120%); height: 62%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(232,89,12,.28), rgba(232,89,12,0)); pointer-events: none; }

/* Accueil : héros clair, le titre à gauche et le jeu d'écrans à droite, le
   tout dans le premier écran. Sous 900 px, une colonne : les écrans passent
   sous le titre. Nos apps garde le héros sombre. */
.x-hero--home { display: flex; align-items: center; min-height: min(calc(100vh - 52px), 720px); min-height: min(calc(100svh - 52px), 720px); padding: clamp(28px, 3.4vw, 48px) 0 clamp(32px, 4vw, 56px); background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, var(--bg-soft) 100%); color: var(--ink); text-align: left; }
.x-hero--home > .x-wrap { width: 100%; }
.x-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: ". deck" "h1 deck" "title deck" "copy deck" ". deck"; column-gap: clamp(28px, 4vw, 64px); }
.x-hero--home h1 { grid-area: h1; margin: 0; font-size: 15px; color: var(--ember); letter-spacing: -0.01em; text-wrap: balance; }
.x-hero-title { grid-area: title; margin-top: 20px; font-size: clamp(38px, 3.9vw, 58px); text-wrap: wrap; }
.x-hero--home .x-hero-copy { grid-area: copy; display: block; margin-top: 22px; }
.x-hero--home .x-lead { margin-left: 0; max-width: 500px; font-size: clamp(18px, 1.45vw, 21px); color: var(--ink-faint); }
.x-hero--home .x-actions { justify-content: flex-start; margin-top: 26px; }
.x-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Le mot qui change, sur sa propre ligne : la hauteur du titre ne bouge pas. */
.x-word { position: relative; display: block; height: 1.12em; }
.x-word > span { position: absolute; left: 0; right: 0; top: 0; line-height: 1.12; text-align: inherit; opacity: 0; transform: translateY(.38em); filter: blur(10px); transition: opacity .55s ease, transform .75s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.x-word > span.x-on { opacity: 1; transform: none; filter: none; }
.x-word > span.x-was { transform: translateY(-.38em); }
.x-grad { background: linear-gradient(100deg, var(--ember) 0%, #f26b1d 45%, #e0457b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em; }

/* Le jeu d'écrans : trois cartes en relief sur un fond d'aurore. La carte
   de devant suit le mot du titre ; les deux autres attendent de chaque côté.
   Les décalages sont en cqw, donc proportionnels à la largeur du jeu. */
.x-deck-wrap { grid-area: deck; align-self: center; width: 100%; }
.x-deck { position: relative; width: 100%; aspect-ratio: 1.42; container-type: inline-size; perspective: 1800px; }
/* La légende de l'écran de devant : son type, son nom, une ligne. */
.x-deck-cap { position: relative; z-index: 2; min-height: 2.9em; margin: 6px 0 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--ink-faint); text-wrap: balance; animation: x-cap-in .6s var(--x-ease); }
.x-deck-cap span { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 980px; background: rgba(194,65,12,.09); color: var(--ember); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.x-deck-cap b { color: var(--ink); font-weight: 600; }
@keyframes x-cap-in { from { opacity: 0; transform: translateY(4px); } }
.x-aurora { position: absolute; inset: -6% -10% -4%; z-index: 0; filter: blur(56px); opacity: .5; pointer-events: none; }
.x-aurora i { position: absolute; border-radius: 50%; }
.x-aurora i:nth-child(1) { left: 6%; top: 16%; width: 50%; height: 56%; background: #ff8a4c; animation: x-aurora-a 17s ease-in-out infinite alternate; }
.x-aurora i:nth-child(2) { right: 2%; top: 4%; width: 46%; height: 50%; background: #f472b6; animation: x-aurora-b 21s ease-in-out infinite alternate; }
.x-aurora i:nth-child(3) { left: 28%; bottom: 2%; width: 52%; height: 46%; background: #a78bfa; animation: x-aurora-c 24s ease-in-out infinite alternate; }
@keyframes x-aurora-a { to { transform: translate(16%, 12%) scale(1.14); } }
@keyframes x-aurora-b { to { transform: translate(-14%, 18%) scale(.9); } }
@keyframes x-aurora-c { to { transform: translate(12%, -16%) scale(1.1); } }
.x-deck .x-stage-in { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; transition: transform .35s ease-out; }
.x-deck-card { position: absolute; left: 50%; top: 50%; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .9s ease, filter .9s ease; }
.x-deck-site { width: 72%; --nx: 22cqw; --ny: 12cqw; --nr: 4deg; --ns: .68; --px: -24cqw; --py: -14cqw; --pr: -5deg; --ps: .64; }
.x-deck-tool { width: 68%; --nx: 22cqw; --ny: 13cqw; --nr: 5deg; --ns: .7; --px: -23cqw; --py: -15cqw; --pr: -6deg; --ps: .66; }
.x-deck-app { width: 28%; --nx: 38cqw; --ny: 6cqw; --nr: 6deg; --ns: .74; --px: -38cqw; --py: -4cqw; --pr: -6deg; --ps: .7; }
.x-deck-front { z-index: 3; transform: translate(-50%, -50%); }
.x-deck-next { z-index: 2; opacity: .96; transform: translate(calc(-50% + var(--nx)), calc(-50% + var(--ny))) rotate(var(--nr)) scale(var(--ns)); }
.x-deck-prev { z-index: 1; opacity: .9; filter: saturate(.9); transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) rotate(var(--pr)) scale(var(--ps)); }
.x-deck-float { animation: x-float 7s ease-in-out infinite; }
.x-deck-app .x-deck-float { animation-delay: -2.4s; }
.x-deck-tool .x-deck-float { animation-delay: -4.8s; }
@keyframes x-float { 50% { transform: translateY(-1.4cqw); } }
.x-deck-window { overflow: hidden; border-radius: 14px; background: #ffffff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 44px 90px -36px rgba(60,24,8,.5); }
.x-deck-window .x-screen { aspect-ratio: 16 / 10; }
.x-deck .x-phone-frame { border-radius: 5.2cqw; padding: 1.1cqw; background: #1d1d1f; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 44px 90px -30px rgba(40,16,8,.6); }
.x-deck .x-phone-frame .x-screen { aspect-ratio: 9 / 19.5; border-radius: 4.3cqw; }
@media (prefers-reduced-motion: reduce) {
  .x-aurora i, .x-deck-float { animation: none; }
  .x-deck-card, .x-word > span { transition: none; }
  .x-deck-cap { animation: none; }
}
@media (max-width: 899px) {
  .x-hero--home { display: block; min-height: 0; text-align: center; }
  .x-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "h1" "title" "deck" "copy"; }
  .x-hero-title { margin-top: 16px; }
  .x-deck-wrap { max-width: 560px; justify-self: center; margin-top: 18px; }
  .x-deck-cap { font-size: 13px; }
  .x-hero--home .x-hero-copy { margin-top: 18px; }
  .x-hero--home .x-lead { margin-left: auto; margin-right: auto; }
  .x-hero--home .x-actions { justify-content: center; }
}

/* ---------- Appareils ---------- */
.x-stage { position: relative; max-width: 1160px; height: clamp(250px, 37vw, 520px); margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 22px; perspective: 1800px; }
.x-stage-in { position: absolute; inset: 0 22px; transform-style: preserve-3d; transition: transform .35s ease-out; will-change: transform; }
.x-laptop { position: absolute; left: 19%; width: 62%; bottom: 16px; }
.x-laptop-lid { background: #2a2a2c; border-radius: 18px 18px 6px 6px; padding: 1.8% 1.8% 2.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 60px 110px -50px rgba(0,0,0,.95); }
.x-laptop-base { height: 15px; margin: 0 -7%; background: linear-gradient(180deg, #4a4a4d 0%, #2c2c2e 100%); border-radius: 2px 2px 16px 16px; }
.x-sec:not(.x-sec--dark) .x-laptop-base, .x-light .x-laptop-base { background: linear-gradient(180deg, #e3e3e8 0%, #c7c7cc 100%); }
.x-sec:not(.x-sec--dark) .x-laptop-lid, .x-light .x-laptop-lid { background: #1d1d1f; box-shadow: 0 50px 90px -50px rgba(0,0,0,.55); }
.x-screen { position: relative; overflow: hidden; background: #0b0b0c; }
.x-laptop .x-screen { aspect-ratio: 16 / 10; border-radius: 5px; }
.x-screen img, .x-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .7s ease; }
.x-screen .x-off { opacity: 0; }
.x-tablet { position: absolute; left: 2%; width: 30%; bottom: 0; }
.x-tablet-frame { background: #1d1d1f; border-radius: 22px; padding: 3.2%; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 70px -36px rgba(0,0,0,.85); }
.x-tablet .x-screen { aspect-ratio: 4 / 3; border-radius: 12px; }
.x-phone { position: absolute; right: 8%; width: 13%; min-width: 84px; bottom: 0; }
.x-phone-frame { background: #1d1d1f; border-radius: 30px; padding: 5%; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 70px -30px rgba(0,0,0,.85); }
.x-phone .x-screen { aspect-ratio: 9 / 19.5; border-radius: 24px; }
.x-device-static { position: relative; left: auto; right: auto; bottom: auto; width: 100%; }

@supports (animation-timeline: view()) {
  .x-rise { animation: x-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  @keyframes x-rise { from { opacity: .4; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }
}

/* ---------- Bandeau de légitimité ---------- */
.x-legit { max-width: 980px; margin: 0 auto; text-align: center; }
.x-legit-text { margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; text-wrap: balance; }
.x-legit-text span { color: var(--ink); opacity: calc(0.16 + var(--p, 1) * 1.4 - var(--w, 0) * 1.1); transition: opacity .2s linear; }
.x-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; margin-top: 40px; }
.x-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 15px; font-weight: 600; text-decoration: none; }
.x-logo img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

/* ---------- Badges des stores (XStores) et carte d'app (XAppCard) ---------- */
.x-app { position: relative; }
.x-app-link { color: inherit; text-decoration: none; }
.x-app-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.x-app-link:focus-visible { outline: none; }
.x-app-link:focus-visible::after { outline: 2px solid var(--x-ember-on-dark); outline-offset: 3px; }
.x-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.x-stores--start { justify-content: flex-start; }
.x-app .x-stores { position: relative; z-index: 1; margin-top: auto; padding-top: 10px; }
.x-stores .x-store { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: #000000; color: #ffffff; font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: 0; text-decoration: none; box-shadow: 0 0 0 1px rgba(255,255,255,.2); transition: background-color .2s ease; }
.x-stores .x-store:hover { background: #2c2c2e; }
.x-stores .x-store span { font-size: inherit; color: inherit; line-height: 1; }
.x-stores .x-store svg { width: 14px; height: 14px; flex: none; }

/* ---------- Le parcours, en anecdote (XAnecdote) ---------- */
.x-anecdote { text-align: center; }
.x-anecdote-logos { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.x-anecdote-logos img { width: 28px; height: 28px; border-radius: 7px; background: #ffffff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.x-anecdote-logos .x-anecdote-dark { background: #1d1d1f; }
.x-anecdote p { max-width: 600px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--ink-faint); text-wrap: pretty; }
/* Lien dans la phrase : en ligne, sans la hauteur de 44 px de .x-more qui creusait la dernière ligne. */
.x-anecdote .x-more { display: inline; min-height: 0; }

/* ---------- Tuiles de services ---------- */
.x-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 0; padding: 52px 30px 0; border-radius: var(--x-radius); background: var(--bg-soft); color: var(--ink); text-align: center; text-decoration: none; transition: transform .45s var(--x-ease); }
.x-tile:hover { transform: scale(1.008); }
.x-tile--dark { background: var(--x-dark); color: var(--x-inv); }
.x-tile--wide { grid-column: span 2; min-height: 0; padding: 48px 40px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; text-align: left; }
.x-tile h3 { margin: 0; font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.x-tile p { margin: 8px auto 0; max-width: 460px; font-size: clamp(19px, 1.6vw, 21px); line-height: 1.33; letter-spacing: -0.018em; }
.x-tile--dark p { color: var(--x-inv-2); }
.x-tile--wide p { margin-left: 0; }
.x-tile .x-links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin-top: 10px; }
.x-tile-visual { margin-top: auto; padding-top: 28px; }
.x-tile-visual--pad { padding-left: 8%; padding-right: 8%; }
.x-browser { overflow: hidden; border-radius: 14px 14px 0 0; background: #ffffff; box-shadow: 0 24px 60px -28px rgba(0,0,0,.4); }
.x-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid #e8e8ed; font-size: 12px; color: var(--ink-faint); }
.x-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d2d2d7; }
.x-browser-bar span { margin-left: 8px; }
.x-browser img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.x-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.x-chips li { padding: 7px 13px; border-radius: 980px; background: rgba(29,29,31,.88); color: #ffffff; font-size: 13px; font-weight: 500; }
.x-flow { display: grid; gap: 8px; width: min(400px, 100%); margin: auto auto 0; padding: 28px 0 44px; list-style: none; text-align: left; }
.x-flow li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #ffffff; box-shadow: 0 10px 24px -18px rgba(0,0,0,.35); font-size: 15px; font-weight: 500; }
.x-flow b { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e8e8ed; font-size: 13px; }
.x-flow li:first-child b { background: var(--x-dark-3); color: #ffffff; }
.x-flow li:last-child b { background: var(--ember); color: #ffffff; }
.x-flow small { margin-left: auto; color: var(--ink-faint); font-size: 12px; }
.x-tools { width: min(480px, 100%); margin-left: auto; margin-right: auto; padding-bottom: 40px; }
.x-tile .x-tools-label { margin: 0 0 10px; max-width: none; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-faint); letter-spacing: -0.005em; text-align: left; }
.x-flow--tools { width: 100%; margin: 0; padding: 0; }
.x-flow--tools li { align-items: flex-start; padding: 14px 16px; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--ink-faint); }
.x-flow--tools strong { display: block; margin-bottom: 2px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.x-flow--tools strong a { color: inherit; text-decoration: none; }
.x-flow--tools strong a:hover { color: var(--ember); }
.x-flow--tools small { flex: none; margin-left: auto; padding: 3px 9px; border-radius: 980px; background: #f5f5f7; color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.x-phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; height: 360px; overflow: hidden; }
.x-phones div { width: 170px; padding: 7px 7px 0; border-radius: 30px 30px 0 0; background: #1d1d1f; }
.x-phones div:first-child { transform: translateY(34px); }
.x-phones img { display: block; width: 100%; height: auto; border-radius: 24px 24px 0 0; }
@media (max-width: 860px) {
  .x-tiles { grid-template-columns: minmax(0, 1fr); }
  .x-tile--wide { grid-column: auto; }
}

/* ---------- Réalisations, défilement raconté ---------- */
.x-scrolly { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; }
.x-scrolly-media { position: sticky; top: calc(50vh - 220px); }
.x-scrolly-media .x-laptop { position: relative; left: auto; width: 100%; bottom: auto; }
.x-steps { display: grid; gap: 0; }
.x-step { min-height: 64vh; display: flex; align-items: center; }
.x-step-card { padding: 4px 0; opacity: .28; transition: opacity .45s ease; }
.x-step.is-on .x-step-card { opacity: 1; }
.x-step-tag { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ember); }
.x-step h3 { margin: 0; font-size: clamp(28px, 2.8vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.x-step p { margin: 10px 0 0; font-size: 19px; line-height: 1.42; color: var(--ink-faint); }
.x-step-meta { margin-top: 6px; font-size: 15px; color: var(--ink-faint); }
.x-step-shot { display: none; }
@media (max-width: 900px) {
  .x-scrolly { grid-template-columns: minmax(0, 1fr); }
  .x-scrolly-media { display: none; }
  .x-step { min-height: 0; padding: 18px 0 34px; }
  .x-step-card { opacity: 1; }
  .x-step-shot { display: block; margin: 0 0 18px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(0,0,0,.4); }
  .x-step-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
}

/* ---------- Nos apps ---------- */
.x-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x-feat { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 600px; padding: 44px 34px 0; border-radius: var(--x-radius); background: var(--x-dark-2); color: var(--x-inv); text-align: center; text-decoration: none; }
.x-feat-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.x-feat-top img { width: 72px; height: 72px; border-radius: 17px; }
.x-feat .x-badge { color: var(--x-ember-on-dark); font-size: 14px; font-weight: 600; }
.x-feat h3 { margin: 0; font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.x-feat p { margin: 0 auto; max-width: 420px; font-size: 19px; line-height: 1.38; color: var(--x-inv-2); }
.x-feat-media { margin-top: auto; padding-top: 28px; }
.x-feat-media--phone { display: flex; justify-content: center; }
.x-feat-media--phone .x-phone-frame { width: 230px; border-radius: 40px 40px 0 0; padding: 9px 9px 0; }
.x-feat-media--phone .x-screen { aspect-ratio: 9 / 15; border-radius: 32px 32px 0 0; }
.x-feat-media--mac .x-screen { aspect-ratio: 16 / 9.4; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.x-applist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.x-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px 24px; border-radius: 24px; background: var(--x-dark-2); color: var(--x-inv); text-align: center; text-decoration: none; transition: transform .3s var(--x-ease), background-color .3s ease; }
.x-app:hover { transform: translateY(-4px); background: #1f1f21; }
.x-app img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 10px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.9); }
.x-app strong { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.x-app span { font-size: 14px; color: var(--x-inv-2); line-height: 1.35; }
.x-app em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--x-ember-on-dark); }
.x-games { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 12px; padding: 20px 26px; border-radius: 24px; background: var(--x-dark-2); }
.x-games > span { font-size: 15px; font-weight: 600; color: var(--x-inv-2); }
.x-games a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--x-inv); text-decoration: none; font-size: 15px; font-weight: 600; }
.x-games img { width: 36px; height: 36px; border-radius: 9px; }
@media (max-width: 980px) { .x-applist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Toplings a sa carte en pleine largeur : le texte à gauche, la vidéo du
   bureau à droite, collée au bord. */
.x-feat--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: end; gap: 0 44px; min-height: 0; padding: 0 0 0 48px; text-align: left; }
.x-feat--wide .x-feat-top { align-items: flex-start; align-self: center; padding: 48px 0; }
.x-feat--wide p { margin: 0; }
.x-feat--wide .x-feat-media { margin-top: 0; padding-top: 48px; }
.x-feat--wide .x-feat-media--mac .x-screen { aspect-ratio: 16 / 9; border-radius: 12px 0 0 0; }
@media (max-width: 760px) {
  .x-feature { grid-template-columns: minmax(0, 1fr); }
  .x-feat { min-height: 520px; }
  .x-feat--wide { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 44px 34px 0; text-align: center; }
  .x-feat--wide .x-feat-top { align-items: center; padding: 0; }
  .x-feat--wide p { margin: 0 auto; }
  .x-feat--wide .x-feat-media { padding-top: 28px; }
  .x-feat--wide .x-feat-media--mac .x-screen { border-radius: 12px 12px 0 0; }
}

/* ---------- Cartes génériques (accompagnements, parcours) ---------- */
.x-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.x-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--x-radius); background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.x-sec--alt .x-card { background: #ffffff; }
.x-card--dark { background: var(--x-dark-3); color: var(--x-inv); }
.x-sec--alt .x-card--dark { background: var(--x-dark-3); }
.x-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.x-card-logo { width: 60px; height: 60px; border-radius: 15px; object-fit: contain; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.x-card-mono { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 15px; background: var(--x-dark-3); color: #ffffff; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.x-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.x-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.x-status--live { color: #1f7a3d; }
.x-status--build { color: #a15c07; }
.x-card--dark .x-status--live { color: #6fdc8c; }
.x-card h3 { margin: 6px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.x-card p { margin: 0; font-size: 17px; color: var(--ink-faint); }
.x-card--dark p { color: #d2d2d7; }
.x-card-role { margin-top: auto !important; padding-top: 12px; font-size: 14px !important; font-weight: 600; color: var(--ink) !important; }
.x-card--dark .x-card-role { color: var(--x-inv) !important; }

/* ---------- Appel final ---------- */
.x-final { text-align: center; }
.x-final .x-h2 { font-size: clamp(40px, 6vw, 80px); }

/* ---------- Vidéo ---------- */
.x-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000000; }
.x-video-frame { position: relative; overflow: hidden; border-radius: var(--x-radius); background: #000000; box-shadow: 0 40px 90px -50px rgba(0,0,0,.7); }

/* ---------- Apparitions ---------- */
.x-sec .reveal, .x-hero .reveal { transition-duration: .9s; }
@media (prefers-reduced-motion: reduce) {
  .x-stage-in, .x-tile, .x-app, .x-btn, .x-hero-copy > div, .x-screen img, .x-step-card { transition: none !important; }
  .x-rise { animation: none !important; }
}

/* ---------- Ajustements de l'accueil ---------- */
.x-tile--white { background: #ffffff; }
.x-tile-visual--rel { position: relative; }
.x-chips--over { position: absolute; left: 6%; right: 6%; bottom: 24px; }
/* Sur téléphone, les étapes passent au-dessus de la capture au lieu de la couvrir. */
@media (max-width: 640px) {
  .x-tile-visual--rel { display: flex; flex-direction: column-reverse; }
  .x-chips--over { position: static; margin: 0 0 16px; }
  .x-phones { height: 300px; }
  .x-phones div { width: 150px; }
}
.x-links-row--left { justify-content: flex-start !important; }
.x-note { margin-top: 28px; color: var(--ink-faint); }
.x-logo .x-logo-dark { background: #1d1d1f; }
.x-card-logo { background: #ffffff; }
.x-card-logo--dark { background: #2c2c2e; box-shadow: none; }
.x-card--dark .x-kicker { color: var(--x-inv-2); }
.x-legit-text span { opacity: clamp(0.18, calc((var(--p, 1) - var(--w, 0)) * 6 + 1), 1); }
.x-phero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); background: var(--bg); }
.x-phero .x-display { font-size: clamp(42px, 6.4vw, 88px); }
.x-phero h1.x-eyebrow { font-size: clamp(17px, 1.4vw, 21px); }

.x-nav--dark .x-fly-hint { color: var(--x-inv-2); }

/* ---------- Page Nos apps ---------- */
.x-hub-feature { margin-top: clamp(40px, 5vw, 64px); }
.x-sec--flush { padding-top: 0; }
