/* nostress — 2026 brand system ("L'IA qui challenge vos décisions" pitch)
   Shared stylesheet: brand tokens, header, footer, components. */

:root {
  --navy: #252f76;
  --navy-2: #2e3f8f;
  --navy-3: #1c2460;
  --blue: #5b8fd6;
  --sky: #badff6;
  --sky-50: #eef5fc;
  --teal: #83c4d7;
  --brand-teal: #047a83;
  --ink: #252f76;
  --text: #4a5170;
  --text-soft: #5c6384;
  --white: #ffffff;
  --peach: #fbe5da;

  --font: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-tag: "Plus Jakarta Sans", var(--font);

  --container: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --header-h: 76px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4, p { margin: 0; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Typography ---------- */

.display {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); }
.display--lg { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); }
.display--md { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
.on-dark .display, .display.on-dark { color: var(--white); }

.lead-strong {
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.3;
  color: var(--white);
}

.accent { color: var(--teal); }
.on-light .accent { color: var(--blue); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-tag);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  background: transparent;
  font-family: inherit;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--sky); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--sky-50); }
.btn--sm { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(37, 47, 118, 0.1);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.site-header__logo img { height: 52px; width: auto; }
.site-header__claim { display: none; }
@media (max-width: 1079px) {
  /* Compact signature on phones and tablets, between the logo and the menu button. */
  .site-header__claim {
    display: block;
    flex: 1;
    margin: 0;
    padding: 0 0.5rem;
    text-align: center;
    font-family: var(--font-tag);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #3f6fc0;
    text-shadow: 0 0 10px rgba(91, 143, 214, 0.3);
    white-space: nowrap;
  }
  .site-header__claim::first-line { color: var(--text-soft); text-shadow: none; }
}
@media (max-width: 339px) { .site-header__claim { display: none; } }
@media (min-width: 1280px) {
  /* Brand signature in the free space between the logo and the menu (from 1280px: the German menu needs the room below). */
  .site-header__claim {
    display: block;
    margin: 0 auto 0 0.25rem;
    padding-inline-start: 1.1rem;
    border-inline-start: 1px solid rgba(37, 47, 118, 0.18);
    font-family: var(--font-tag);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3f6fc0;
    text-shadow: 0 0 12px rgba(91, 143, 214, 0.3);
    white-space: nowrap;
  }
  .site-header__claim::first-line { color: var(--text-soft); text-shadow: none; }
  [dir="rtl"] .site-header__claim { margin: 0 0.25rem 0 auto; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(37, 47, 118, 0.3);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid rgba(37, 47, 118, 0.12);
  box-shadow: 0 20px 40px -24px rgba(37, 47, 118, 0.35);
  padding: 0.75rem var(--gutter) 1.25rem;
}
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(37, 47, 118, 0.12);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: var(--sky-50); }
.nav-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.nav-link[data-active="true"] { background: var(--navy); color: var(--white); }

.nav-submenu { position: relative; }
.nav-submenu-icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.nav-submenu[data-open="true"] .nav-submenu-icon { transform: rotate(180deg); }
.nav-submenu-panel {
  display: flex;
  flex-direction: column;
  margin: 0.25rem 0 0.5rem;
  padding: 0.4rem;
  border-radius: var(--radius);
  background: var(--sky-50);
}
.nav-submenu-panel a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.92rem;
  text-decoration: none;
}
.nav-submenu-panel a:hover { background: var(--sky); }
.nav-submenu-panel .nav-submenu-label {
  padding: 0.6rem 0.85rem 0.2rem;
  font-family: var(--font-tag);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.lang-switcher { position: relative; }
.lang-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 47, 118, 0.3);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-switcher__button img { width: 20px; height: 20px; border-radius: 999px; }
.lang-menu {
  position: absolute;
  left: 0;
  z-index: 60;
  margin: 0.5rem 0 0;
  padding: 0.3rem;
  min-width: 180px;
  list-style: none;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 47, 118, 0.15);
  background: var(--white);
  box-shadow: 0 16px 32px -16px rgba(37, 47, 118, 0.35);
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button[data-active="true"] { background: var(--sky-50); }
.lang-menu img { width: 20px; height: 20px; border-radius: 999px; }
.lang-menu [data-active-indicator] { margin-left: auto; color: var(--blue); opacity: 0; }
.lang-menu [data-active-indicator][data-active="true"] { opacity: 1; }

@media (min-width: 1080px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex !important;
    align-items: center;
    gap: 1rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: 0.15rem; }
  .site-nav__actions { flex-direction: row; align-items: center; margin: 0; padding: 0; border: 0; }
  .nav-link { width: auto; justify-content: center; }
  .nav-submenu-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 60;
    min-width: 240px;
    margin: 0;
    background: var(--white);
    border: 1px solid rgba(37, 47, 118, 0.12);
    box-shadow: 0 20px 40px -20px rgba(37, 47, 118, 0.4);
  }
  .nav-submenu-panel a:hover { background: var(--sky-50); }
  .lang-menu { left: auto; right: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); scroll-margin-top: var(--header-h); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.section--sky { background: var(--sky-50); }
.section__head { display: grid; gap: 1.25rem; justify-items: center; text-align: center; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__intro { max-width: 62ch; font-size: 1.15rem; color: var(--text-soft); }

.band {
  padding: 1.75rem var(--gutter);
  background: var(--sky);
  color: var(--navy);
  text-align: center;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
}
.band strong { font-weight: 700; }

/* Illustrated scenes: full-bleed image, text over the navy gradient */
.scene {
  position: relative;
  display: grid;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  scroll-margin-top: var(--header-h);
  overflow: hidden;
}
.scene__media { position: relative; aspect-ratio: 16 / 10; }
.scene__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 30%) center; }
.scene__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37, 47, 118, 0) 55%, var(--navy) 100%);
}
.scene__body {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem var(--gutter) 3.5rem;
}
.scene__text { display: grid; gap: 0.9rem; font-size: 1.1rem; color: var(--sky); }
.scene__text strong { color: var(--white); }
.scene__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

@media (min-width: 900px) {
  .scene { min-height: min(56.25vw, 860px); align-items: center; }
  .scene__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .scene__media img { object-position: center; }
  .scene__media::after {
    background: linear-gradient(90deg, rgba(37, 47, 118, 0) 38%, rgba(37, 47, 118, 0.75) 58%, var(--navy) 72%);
  }
  .scene--tight .scene__media::after {
    background: linear-gradient(90deg, rgba(37, 47, 118, 0) 52%, rgba(37, 47, 118, 0.6) 64%, var(--navy) 76%);
  }
  .scene__body {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding: 6rem 0;
    justify-items: end;
    text-align: right;
  }
  .scene__body > * { max-width: 34rem; }
  .scene__actions { justify-content: flex-end; }
}

/* ---------- Cards ---------- */

.icon-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
}
.icon-dot svg { width: 28px; height: 28px; }
.icon-dot--blue { background: var(--blue); }
.icon-dot--lg { width: 88px; height: 88px; }
.icon-dot--lg svg { width: 38px; height: 38px; }

.card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--sky-50);
  color: var(--text);
}
.card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--navy); margin-bottom: 0.35rem; }
.card--sky { background: var(--sky); }
.card--navy { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.card--navy-2 { background: var(--navy-2); color: rgba(255, 255, 255, 0.85); }
.card--navy h3, .card--navy-2 h3 { color: var(--white); }

/* ---------- Stats ---------- */

.stats { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat__value {
  display: block;
  font-weight: 300;
  font-size: clamp(2.75rem, 1.8rem + 3vw, 4.25rem);
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
}
.stat__label { display: block; margin-top: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.stat__label--navy { color: var(--navy); }
.stat__note { display: block; font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
  grid-template-columns: 1fr;
}
.site-footer__logo img { height: 72px; width: auto; }
.site-footer h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-tag);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.store-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.store-badges a { display: inline-flex; height: 44px; padding: 0 0.4rem; align-items: center; border-radius: 8px; background: var(--white); }
.store-badges img { height: 34px; width: auto; }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Page heads ---------- */

.head-left { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.head-left .display { text-align: left; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--teal); }
.eyebrow--ink { color: #2f7489; }
.lede { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--text-soft); max-width: 40rem; }
.on-dark .lede { color: var(--sky); }


/* Demo request form */
.demo-modal { width: min(640px, 100% - 2 * var(--gutter)); max-width: none; max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--text); overflow: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.demo-modal::backdrop { background: rgba(28, 36, 96, 0.8); backdrop-filter: blur(4px); }
.demo-modal__close { position: absolute; top: 1rem; right: 1rem; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--sky-50); color: var(--navy); cursor: pointer; }
.demo-form, .demo-done { display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.demo-done { justify-items: center; text-align: center; padding-block: 3rem; }
.demo-form__title { font-weight: 300; text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.1; color: var(--navy); padding-right: 2.5rem; }
.demo-done .demo-form__title { padding: 0; }
.demo-form__lede { color: var(--text-soft); }
.demo-form__grid { display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 1.5px solid rgba(37, 47, 118, 0.2); border-radius: 12px; background: var(--white); color: var(--text); font: inherit; font-weight: 400; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91, 143, 214, 0.18); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.demo-form__error { color: #b03a2e; font-weight: 600; font-size: 0.92rem; }
.demo-form__submit { justify-self: start; }
.demo-form__legal { font-size: 0.82rem; color: var(--text-soft); }
.demo-form__legal a, .demo-done a { color: var(--navy); }
@media (min-width: 600px) { .demo-form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.demo-modal [hidden] { display: none !important; }

/* Right-to-left (Arabic): keep text on the navy side of illustrated scenes */
@media (min-width: 900px) {
  [dir="rtl"] .scene__body { justify-items: start; text-align: right; }
  [dir="rtl"] .scene__actions { justify-content: flex-start; }
}


/* Store badges: touch targets of at least 44px */
.store-badges a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-social { display: inline-flex; align-items: center; gap: 0.45rem; }
