/*
 * Pages publiques d'atterrissage. Feuille autonome : l'application a la sienne, et ces
 * pages doivent s'afficher entièrement avant que le moindre script ne se charge.
 */

:root {
  --ink: #141735;
  --ink-2: #4a5070;
  --ink-3: #767c99;
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --surface: #ffffff;
  --head: rgba(255, 255, 255, .82);
  --line: #e6e8f2;
  --radius: 16px;
  --a1: #f5a524;
  --a2: #ff7a59;
  --shadow: 0 1px 2px rgba(20, 23, 53, .06), 0 12px 32px -12px rgba(20, 23, 53, .18);
  --shadow-lg: 0 2px 4px rgba(20, 23, 53, .06), 0 28px 60px -24px rgba(20, 23, 53, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { margin: 0; letter-spacing: -.022em; line-height: 1.14; font-weight: 700; }
h1 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -.032em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 18px; letter-spacing: -.012em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.ico { width: 18px; height: 18px; flex: none; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { left: 16px; }

/* ---------------------------------------------------------------- en-tête */

.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--head);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo-tile { width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; gap: 22px; margin-inline-start: 8px; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--a1); }
.site-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.lang { text-decoration: none; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.lang:hover { color: var(--ink); }

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-quiet { color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-ghost { padding: 9px 17px; font-size: 15px; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- héros */

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-3); padding-top: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs b { color: var(--ink-2); font-weight: 600; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px; align-items: center; padding: 46px 0 76px;
}
.chip {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--a1) 16%, transparent);
  color: color-mix(in srgb, var(--a1) 72%, var(--ink));
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.lede { margin-top: 22px; font-size: 19.5px; line-height: 1.62; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; }
.proof li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.proof .ico { color: color-mix(in srgb, var(--a1) 78%, var(--ink)); width: 16px; height: 16px; }

.hero-vis { position: relative; }
.hero-vis::before {
  content: ''; position: absolute; inset: -8% -6%;
  background: radial-gradient(60% 60% at 60% 42%, color-mix(in srgb, var(--a1) 34%, transparent), transparent 72%);
  filter: blur(6px);
}
/* Les maquettes sont dessinées sur du papier blanc : leur encre reste sombre même
   quand le reste de la page passe en thème sombre. */
.hero-art { position: relative; width: 100%; height: auto; --ink: #141735; }
.hero-art .sheet { filter: drop-shadow(0 18px 40px rgba(20, 23, 53, .16)); }
.hero-art .caret, .hero-art .float { filter: drop-shadow(0 10px 22px rgba(20, 23, 53, .18)); }

.hero-hub { padding-bottom: 24px; }
.hero-hub .hub-vis { display: grid; place-items: center; }
.hub-vis::after {
  content: ''; position: absolute; z-index: 0; width: min(360px, 78%); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(150deg, var(--a1), var(--a2));
}
.hub-vis .ninja { position: relative; z-index: 1; width: min(420px, 92%); height: auto; }
.ninja { --ink: #141735; }

/* ---------------------------------------------------------------- sections */

.section { padding: 78px 0; }
.section > h2 + .sub { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 46em; }
.narrow { max-width: 820px; }

.band { background: var(--bg-2); border-block: 1px solid var(--line); padding: 78px 0; }
.band-soft { background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 7%, var(--bg)), var(--bg)); border: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px 30px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: s; }
.step { display: flex; gap: 16px; }
.step-n {
  flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--a1), var(--a2)); color: #fff; font-weight: 700; font-size: 16px;
}
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

.cards, .uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 44px 0 0; padding: 0; list-style: none; }
.card {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--a1) 46%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.card p, .use p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.use { padding-inline-start: 18px; border-inline-start: 3px solid color-mix(in srgb, var(--a1) 42%, var(--line)); }

/* ---------------------------------------------------------------- renvois entre outils */

.tool-cards, .hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 20px; margin-top: 40px; }
/* Les cinq outils tiennent sur une seule rangée : une carte esseulée en deuxième ligne
   laisserait croire qu'elle est d'une autre nature. */
.hub-cards { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); margin-top: 0; }
.tool-card, .hub-card {
  display: block; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.tool-card:hover, .hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--a1) 50%, var(--line)); }
.tool-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--a1), var(--a2)); color: #fff;
}
.tool-ico .ico { width: 22px; height: 22px; }
.tool-card p, .hub-card p { margin-top: 9px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hub-card h2 { font-size: 22px; }
.hub-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 15px; font-weight: 600; color: color-mix(in srgb, var(--a1) 66%, var(--ink)); }
.hub-card:hover .hub-go .ico { transform: translateX(3px); }
.hub-go .ico { transition: transform .14s ease; }

/* ---------------------------------------------------------------- questions */

.faq { margin-top: 34px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: color-mix(in srgb, var(--a1) 60%, var(--ink)); }
.chev { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform .16s ease; }
.qa[open] .chev { transform: rotate(180deg); }
.qa p { padding: 0 40px 24px 2px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* ---------------------------------------------------------------- clôture */

.closing { margin-top: 20px; background: linear-gradient(122deg, #171a3d, #221a48 52%, #2c1a46); color: #fff; }
.closing-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: 74px 0; }
.closing p { margin-top: 16px; font-size: 18px; color: #c3c6ea; max-width: 32em; }
.closing .btn-primary { margin-top: 32px; background: linear-gradient(140deg, var(--a1), var(--a2)); color: #141735; }
.closing-art { position: relative; display: grid; place-items: center; }
.closing-art::after {
  content: ''; position: absolute; z-index: 0; width: min(300px, 74%); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(150deg, var(--a1), var(--a2));
}
.closing-art .ninja { position: relative; z-index: 1; width: min(360px, 88%); height: auto; }

/* ---------------------------------------------------------------- pied */

.site-foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.foot-brand p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; max-width: 26em; }
.site-foot h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.site-foot ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.site-foot a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.site-foot a:hover { color: var(--ink); }
.foot-legal { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--ink-3); font-size: 13.5px; }

/* ---------------------------------------------------------------- adaptations */

@media (max-width: 900px) {
  .hero, .closing-in, .foot-in { grid-template-columns: 1fr; }
  .hero { padding-bottom: 52px; gap: 36px; }
  .site-nav { display: none; }
  .section, .band { padding: 56px 0; }
  .wrap { width: min(1160px, 100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0fa;
    --ink-2: #a5aac6;
    --ink-3: #7d8299;
    --bg: #0f1128;
    --bg-2: #151831;
    --surface: #191c39;
    --line: #272b4e;
    --head: rgba(15, 17, 40, .84);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 28px 60px -24px rgba(0, 0, 0, .7);
  }
  /* Les maquettes gardent leur papier clair : une feuille de calcul sombre ne
     ressemblerait plus à ce que le visiteur va ouvrir. */
  .hero-art .sheet { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
}
