/* =====================================================================
   Easy APK Installer — feuille de style
   Un seul thème (clair), couleurs tirées de l'icône de l'application.
   ===================================================================== */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* Bleus du logo (du plus profond au plus clair) */
  --blue-950: #041F3A;
  --blue-900: #063D6E;
  --blue-800: #0B5090;
  --blue-700: #0F62AE;
  --blue-600: #1478BE;
  --blue-500: #2284C5;
  --blue-400: #4395CC;
  --blue-300: #8CC4EA;
  --blue-200: #BFDCF5;
  --blue-100: #D1E4FF;
  --blue-50:  #EAF3FC;

  /* Neutres */
  --ink:       #12202E;
  --ink-2:     #3B4754;
  --muted:     #5F6B78;
  --line:      #DFE4EC;
  --bg:        #F6F9FD;
  --surface:   #FFFFFF;
  --surface-2: #EEF3F9;

  /* Statuts, comme dans l'application */
  --st-installed-bg: #C2F0CF;
  --st-installed-fg: #1B6B3A;
  --st-update-bg:    #F2DAFF;
  --st-update-fg:    #3D2A4A;
  --st-older-bg:     #D1E4FF;
  --st-older-fg:     #0B3A66;

  --radius:    22px;
  --radius-sm: 14px;
  --shadow:    0 12px 32px -8px rgba(6, 61, 110, .16);
  --shadow-lg: 0 32px 64px -24px rgba(4, 31, 58, .45);

  --font-head: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap:   1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--blue-800); }

img, svg { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex: none;
  vertical-align: -.3em;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .cta :focus-visible, .doc-hero :focus-visible, .nf :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: .6em 1em;
  background: var(--blue-700);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------- boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}
.btn--sm { padding: .65em 1.1em; font-size: .95rem; }
.btn--primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(15, 98, 174, .6);
}
.btn--primary:hover { background: var(--blue-800); color: #fff; }
.btn--ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }

.badge-link {
  display: inline-block;
  border-radius: 12px;
  transition: transform .18s ease;
}
@media (hover: hover) { .badge-link:hover { transform: translateY(-1px); } }
.badge-link img { display: block; height: 62px; width: auto; }
.badge-link--lg img { height: 76px; }

/* ------------------------------------------------------------- petits composants */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin: 0 0 .9em;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 .3em rgba(20, 120, 190, .18);
}
.eyebrow--light { color: #BFE0FF; }
.eyebrow--light::before { box-shadow: 0 0 0 .3em rgba(255, 255, 255, .18); }

.pill {
  display: inline-block;
  padding: .32em .85em;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: .01em;
}
.pill--installed { background: var(--st-installed-bg); color: var(--st-installed-fg); }
.pill--update    { background: var(--st-update-bg);    color: var(--st-update-fg); }
.pill--older     { background: var(--st-older-bg);     color: var(--st-older-fg); }
.pill--outline   { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px #A9B0BA; }

.chip {
  display: inline-block;
  padding: .38em .85em;
  border-radius: 9px;
  border: 1.5px solid #B7BEC8;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .85rem;
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--on {
  background: var(--blue-100);
  border-color: transparent;
  color: var(--blue-900);
  font-weight: 600;
}
.chip--on::before { content: "✓ "; }

/* ------------------------------------------------------------- en-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(18, 32, 46, .08);
}
.site-header.is-ready { transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgba(6, 61, 110, .25); }
.brand__name { white-space: nowrap; }
.brand__name span { color: var(--blue-600); }
.site-nav {
  display: flex;
  gap: .25rem;
  margin-left: auto;
}
.site-nav a {
  padding: .55em .9em;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--blue-50); color: var(--blue-800); }
.site-header__cta { margin-left: auto; }
.site-nav + .site-header__cta { margin-left: 0; }

/* Transparent au-dessus du hero, blanc dès qu'on défile (JS requis) */
html.js .site-header.at-top {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.js .site-header.at-top .brand { color: #fff; }
html.js .site-header.at-top .brand__name span { color: #BFE0FF; }
html.js .site-header.at-top .site-nav a { color: rgba(255, 255, 255, .88); }
html.js .site-header.at-top .site-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
html.js .site-header.at-top .btn--primary { background: #fff; color: var(--blue-800); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
html.js .site-header.at-top :focus-visible { outline-color: #fff; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(6, 61, 110, .18); }

@media (max-width: 900px) {
  .site-nav { display: none; }
}
@media (max-width: 400px) {
  .site-header .brand__name { display: none; }
}

/* ------------------------------------------------------------- hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #052F58 0%, #0B4F8F 38%, #1478BE 72%, #2F8FD0 100%);
  overflow: hidden;
  isolation: isolate;
  /* remonte sous l'en-tête transparent */
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .75;
}
.hero__flare--a { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -18vw; top: -34vw; background: radial-gradient(circle, rgba(170, 220, 255, .55), rgba(170, 220, 255, 0) 65%); }
.hero__flare--b { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; left: -14vw; bottom: -20vw; background: radial-gradient(circle, rgba(120, 190, 250, .5), rgba(120, 190, 250, 0) 65%); }
.hero__flare--c { width: 18vw; height: 18vw; max-width: 220px; max-height: 220px; left: 46%; top: 12%; background: radial-gradient(circle, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 65%); }
/* fine trame d'étoiles, clin d'œil au thème Espace */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 15%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 82%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 77% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 60%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 48%, rgba(255,255,255,.3) 50%, transparent 51%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 6vw, 5rem);
}
.hero__title {
  font-size: clamp(2.25rem, 1.4rem + 4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: .45em;
  text-shadow: 0 2px 24px rgba(4, 31, 58, .25);
}
.hero__lead {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  max-width: 34em;
  margin-bottom: 1.6em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.25rem;
}
.hero__facts {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
}
.hero__facts li { display: inline-flex; align-items: center; gap: .45em; }
.hero__facts .icon { color: #BFE0FF; }

/* --- visuel : téléphone, anneaux de balayage, fichiers trouvés */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem) 0 2.5rem;
  --pw: min(340px, 62vw);
}
.scan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.scan__ring {
  position: absolute;
  width: calc(var(--pw) * 1.75);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .45);
  box-shadow: 0 0 40px rgba(140, 196, 234, .25) inset;
  opacity: 0;
  animation: ring 6s linear 3;
}
.scan__ring--2 { animation-delay: 2s; }
.scan__ring--3 { animation-delay: 4s; }
@keyframes ring {
  0%   { transform: scale(.45); opacity: 0; }
  12%  { opacity: .55; }
  100% { transform: scale(1.15); opacity: 0; }
}

.phone {
  position: relative;
  width: var(--pw, 300px);
  padding: 10px;
  border-radius: 46px;
  background: #0B1220;
  box-shadow:
    inset 0 0 0 2px #2A3646,
    0 40px 80px -30px rgba(2, 20, 40, .7),
    0 0 0 1px rgba(255, 255, 255, .06);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  background: #F6F9FD;
}
.phone__cam {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #05080E;
  box-shadow: inset 0 0 0 2px #1B2432, 0 0 0 1px rgba(255,255,255,.05);
}
.phone--hero { z-index: 1; }
.phone--sm { border-radius: 40px; padding: 8px; }
.phone--sm img { border-radius: 32px; }
.phone--sm .phone__cam { top: 16px; width: 9px; height: 9px; }

.found {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .8rem .6rem .65rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  animation: found-in .7s cubic-bezier(.2, .8, .2, 1) forwards;
  max-width: 78%;
}
.found__icon { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.found__icon--orange { background: linear-gradient(135deg, #F0742A, #D9481C); }
.found__icon--blue   { background: linear-gradient(135deg, #2AA3E6, #0B78C4); }
.found__icon--slate  { background: linear-gradient(135deg, #5B6B7B, #3B4855); }
.found__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.found__text b { font-family: var(--font-head); font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.found__text small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.found .pill { font-size: .75rem; padding: .28em .7em; }
.found--1 { left: 0;  top: 12%;   animation-delay: .9s; }
.found--2 { right: 0; top: 40%;   animation-delay: 1.8s; }
.found--3 { left: 2%; bottom: 20%; animation-delay: 2.7s; }
.found--status {
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 14px);
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  animation-name: found-in-center;
  animation-delay: .4s;
  max-width: none;
  white-space: nowrap;
}
.found--status .icon { animation: spin 2.4s linear 4; }
@keyframes found-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes found-in-center {
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__visual { margin-top: .5rem; width: min(100%, 560px); margin-inline: auto; }
}
@media (max-width: 480px) {
  .found { gap: .5rem; padding: .5rem .6rem .5rem .5rem; max-width: 84%; }
  .found__icon { width: 28px; height: 28px; }
  .found__text b { font-size: .8rem; }
  .found--2 .pill { display: none; }
  .found--3 { display: none; }
}

/* ------------------------------------------------------------- bandeau */
.strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  padding-block: 1.6rem;
}
.strip__item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.45;
}
.strip__item .icon { width: 1.6em; height: 1.6em; color: var(--blue-600); margin-top: .05em; }
.strip__item strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: .1em; }
@media (max-width: 900px) { .strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .strip__inner { grid-template-columns: 1fr; gap: 1rem; } }

/* ------------------------------------------------------------- sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.section__head h2 { margin-bottom: .4em; }
.section__intro { color: var(--muted); font-size: 1.1rem; }
.section__head--light { color: #fff; }
.section__head--light .section__intro { color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------- comment ça marche */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.step__num {
  position: absolute;
  top: -16px;
  left: 1.6rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: 0 6px 14px -4px rgba(15, 98, 174, .6);
}
.step__icon { width: 40px; height: 40px; color: var(--blue-600); margin-bottom: .8rem; fill: currentColor; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-2); flex: 1; }
.step__demo {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}
.step__demo--sheet > span {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .5em .9em;
  border-radius: 12px;
  background: var(--surface-2);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
}
.step__demo--sheet .icon { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 2rem; } }

/* ------------------------------------------------------------- fonctionnalités */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) { .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-200); } }
.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.minis {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1.6rem;
}
.minis li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.minis .icon { width: 1.5em; height: 1.5em; color: var(--blue-600); margin-top: .1em; }
.minis strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-bottom: .15em; }
@media (max-width: 960px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .minis { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- captures */
.gallery { position: relative; }
.gallery__track {
  list-style: none;
  margin: 0;
  padding: 1rem max(var(--gutter), calc((100% - var(--wrap)) / 2)) 1.5rem;
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--blue-200) transparent;
  -webkit-overflow-scrolling: touch;
}
.shot {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
}
.shot__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  border-radius: 28px;
  background: #0B1220;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(4, 31, 58, .5);
  transition: transform .22s ease, box-shadow .22s ease;
}
.shot__btn img { display: block; width: 100%; height: auto; border-radius: 28px; border: 6px solid #0B1220; background: #f6f9fd; }
@media (hover: hover) { .shot__btn:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -18px rgba(4, 31, 58, .55); } }
.shot__caption {
  margin: .8rem 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-2);
}
.gallery__nav {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: .5rem;
}
.gallery__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue-700);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color .15s ease, transform .15s ease;
}
@media (hover: hover) { .gallery__arrow:hover { background: var(--blue-50); transform: translateY(-1px); } }
.gallery__arrow .icon { width: 1.5em; height: 1.5em; }
@media (max-width: 600px) {
  .shot { width: 66vw; max-width: 260px; }
  .gallery__nav { display: none; }
}
@media (hover: none) { .gallery__nav { display: none; } }
html:not(.js) .gallery__nav { display: none; }

/* ------------------------------------------------------------- thèmes (fond Espace) */
.section--space {
  position: relative;
  background: #04070F;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.section--space::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, rgba(20, 120, 190, .35), transparent 70%);
  pointer-events: none;
}
.themes {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 1rem 0 0;
}
.theme {
  margin: 0;
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: center;
}
.theme .phone { --pw: min(260px, 26vw); }
.theme figcaption {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .9);
}
.themes__note {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
}
.themes__note .icon { color: #9ECAFF; width: 1.4em; height: 1.4em; margin-top: .1em; }
@media (max-width: 700px) {
  .themes {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
    padding-bottom: .5rem;
  }
  .theme .phone { --pw: min(260px, 62vw); }
}

/* ------------------------------------------------------------- tablettes */
.tablet {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.tablet__copy p { color: var(--ink-2); }
.ticks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 500;
}
.ticks li { display: flex; align-items: center; gap: .55em; }
.ticks .icon { color: var(--blue-600); width: 1.35em; height: 1.35em; }
.tabframe {
  padding: 14px;
  border-radius: 26px;
  background: #0B1220;
  box-shadow: inset 0 0 0 2px #2A3646, var(--shadow-lg);
}
.tabframe img { display: block; width: 100%; height: auto; border-radius: 14px; background: #f6f9fd; }
@media (max-width: 900px) {
  .tablet { grid-template-columns: 1fr; }
  .tablet__visual { order: -1; }
}

/* ------------------------------------------------------------- FAQ */
.faq {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .25rem 1.5rem;
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--blue-600); transition: transform .2s ease; }
.faq__item[open] summary .icon { transform: rotate(90deg); }
.faq__item summary:hover { color: var(--blue-800); }
.faq__a { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 64ch; }

/* ------------------------------------------------------------- appel final */
.cta {
  position: relative;
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #063D6E 0%, #0F62AE 55%, #1478BE 100%);
}
.cta__bg::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  right: -20vw;
  top: -30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 220, 255, .45), transparent 65%);
  filter: blur(40px);
}
.cta__inner { max-width: 640px; }
.cta__icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow-lg); margin-bottom: 1.2rem; }
.cta p { color: #fff; font-size: 1.1rem; margin-bottom: 1.8rem; }

/* ------------------------------------------------------------- pied de page */
.site-footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, .78);
  padding-block: 3.5rem 2rem;
  font-size: .95rem;
}
.site-footer a { color: #BFE0FF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer .brand__name span { color: #8CC4EA; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer__col h3 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__col a { display: block; margin-bottom: .55rem; }
.footer__col p { margin-bottom: .6rem; }
.footer__bottom {
  display: grid;
  gap: .45rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- visionneuse */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  background: rgba(3, 10, 20, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: .75rem;
  max-height: 100%;
}
.lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  border-radius: 22px;
  background: #0B1220;
  box-shadow: var(--shadow-lg);
}
.lightbox__caption { color: rgba(255, 255, 255, .85); font-family: var(--font-head); font-weight: 500; text-align: center; }
.lightbox__close, .lightbox__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__arrow .icon, .lightbox__close .icon { width: 1.6em; height: 1.6em; }
.lightbox :focus-visible { outline-color: #fff; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; padding: 3.5rem .75rem 1rem; }
  .lightbox__arrow { position: absolute; bottom: 1rem; }
  .lightbox__arrow--prev { left: 1rem; }
  .lightbox__arrow--next { right: 1rem; }
  .lightbox__img { max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); }
}
body.lightbox-open { overflow: hidden; }

/* ------------------------------------------------------------- page « mentions légales » */
.doc-hero {
  position: relative;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #052F58 0%, #0B4F8F 45%, #1478BE 100%);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.doc-hero__inner { display: grid; gap: .8rem; justify-items: center; }
.doc-hero img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.doc-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.8rem); margin: .3em 0 .1em; }
.doc-hero .lead { color: #fff; max-width: 40em; margin: 0; }
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.legal__body h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--ink-2); }
.legal__body h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.legal__body ul { color: var(--ink-2); padding-left: 1.3em; }
.legal__body li { margin-bottom: .4em; }
.legal__meta { font-size: .95rem; color: var(--muted); }
.legal__body a { overflow-wrap: anywhere; }
.legal__body code { font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; overflow-wrap: anywhere; }
.doc-back { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.btn--grey { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn--grey:hover { background: var(--blue-50); color: var(--blue-800); }

/* Blocs de langue : seul celui de la langue courante est affiché */
[data-lang="en"] [data-lang-block="fr"],
[data-lang="fr"] [data-lang-block="en"] { display: none; }

/* ------------------------------------------------------------- apparitions au défilement */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .found { opacity: 1; transform: none; }
  .found--status { transform: translate(-50%, 0); }
  .scan__ring { display: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- impression */
@media print {
  .site-header, .hero__visual, .gallery__nav, .lightbox, .cta, .stars, .hero__bg, .skip-link { display: none !important; }
  .hero, .section--space, .site-footer, .doc-hero { background: #fff !important; color: #000 !important; margin-top: 0 !important; padding-top: 1rem !important; }
  .hero *, .section--space *, .site-footer *, .doc-hero * { color: #000 !important; text-shadow: none !important; }
  .section--space::before { display: none !important; }
  .btn--ghost { border-color: #000 !important; }
  .themes__note { background: none !important; border-color: #999 !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
