/* ==========================================================================
   Mophitech — feuille de styles
   Valeurs reprises de la maquette Claude Design « Site vitrine — Accueil »
   (couleurs, tailles, espacements, rayons, ombres).
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --navy: #0F2540;
  --navy-light: #17324F;
  --navy-hover: #2A4A75;
  --yellow: #FFD23F;
  --yellow-hover: #FFC91A;
  --yellow-soft: #FFF4C2;
  --yellow-pale: #FFF6CF;
  --sky: #C9E0F5;
  --sky-soft: #D6E8F8;
  --sky-pale: #E3EEF7;
  --green: #1F8A5B;
  --focus: #2F6FEB;

  /* Fonds et bordures */
  --page: #FBFBF8;
  --white: #fff;
  --surface-soft: #F5F7FA;
  --line: #EEF2F6;
  --line-strong: #E4E9EF;
  --input-border: #CBD5E1;

  /* Textes */
  --text-strong: #22384F;
  --text: #33475F;
  --text-muted: #4A5B70;
  --text-soft: #5A6B80;
  --text-faint: #8796A8;
  --on-navy: #C9D6E6;
  --on-navy-muted: #B9C7D8;
  --on-navy-soft: #9FB2C8;
  --on-navy-list: #DCE5F0;
  --error: #B42318;

  /* Typographie */
  --font-display: 'Schibsted Grotesk', sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;

  /* Mouvement : une seule courbe, celle de l'animation d'entrée de la maquette */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ---------- Base ---------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  font-family: var(--font-body);
  color: var(--navy);
}

a { color: var(--navy); }
a:hover { color: var(--navy-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page {
  width: 100%;
  overflow: hidden;
  background: var(--page);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #fff; }

/* ---------- Titres ---------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0;
}

/* ---------- Boutons ---------- */

.btn {
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition:
    background-color .2s ease,
    box-shadow .3s var(--ease-out),
    transform .3s var(--ease-out),
    translate .35s var(--ease-out);
}
.btn--yellow,
.btn--yellow:hover { color: var(--navy); }
.btn--yellow { background: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-hover); }

.btn--white,
.btn--white:hover { color: var(--navy); }
.btn--white { background: var(--white); }
.btn--white:hover { background: var(--surface-soft); }

.btn--navy,
.btn--navy:hover { color: #fff; }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: var(--navy-hover); }

.btn--lg {
  font-size: 17px;
  padding: 16px 28px;
}

.btn--glow { box-shadow: 0 10px 30px -10px rgba(214, 160, 0, .7); }

/* ---------- Animations d'entrée ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise2 { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
  }
}

/* ==========================================================================
   En-tête / Hero
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, #C9E0F5 0%, #E3EEF7 42%, #FFF6CF 100%);
  padding: 20px 24px 0;
  position: relative;
  overflow: hidden;
}

/* Navigation */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
}

.nav__logo {
  display: block;
  flex: none;
}
.nav__logo img {
  display: block;
  width: 119px;
  height: 34px;
  mix-blend-mode: multiply;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a { text-decoration: none; }

.nav__cta {
  font-size: 15px;
  padding: 12px 20px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Accroche */
.hero__intro {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 84px 0 40px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-size: 14px;
  font-weight: 500;
}
.hero__badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
}

.hero__lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero__proof {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14px;
  color: var(--text);
}
.hero__proof li {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Scène : le soleil + les automatisations en action */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.sun { display: none; }

.float {
  box-sizing: border-box;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 50px -25px rgba(15, 37, 64, .35);
}
.float--dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 24px 50px -25px rgba(15, 37, 64, .5);
}

.float__label {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}
.float--dark .float__label { color: var(--on-navy-muted); }

.float__title {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}
.float--invoice .float__title { margin-bottom: 12px; }
.float--dark .float__title {
  margin-bottom: 0;
  line-height: 1.25;
}

/* Carte « Assistant interne » */
.float--chat {
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 60px -25px rgba(15, 37, 64, .35);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.chat__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat__name {
  font-size: 14px;
  font-weight: 600;
}
.chat__name span {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 12px;
}

.chat__msg {
  padding: 10px 14px;
  font-size: 14px;
}
.chat__msg--user {
  margin: 14px 0 0 auto;
  background: var(--line);
  border-radius: 14px 14px 4px 14px;
  width: fit-content;
  max-width: 80%;
}
.chat__reply {
  position: relative;
  margin-top: 10px;
}
.chat__msg--bot {
  margin: 0;
  background: var(--yellow-soft);
  border-radius: 14px 14px 14px 4px;
  line-height: 1.45;
  max-width: 88%;
}

/* Indicateur « en train d'écrire » : invisible hors animation */
.chat__typing {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--yellow-soft);
  opacity: 0;
  pointer-events: none;
}
.chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  opacity: .45;
}

.chat__tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
}
.chat__tags span {
  background: var(--surface-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Barre d'étapes (facture) */
.progress {
  display: flex;
  gap: 6px;
}
.progress span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--navy);
}
.progress span:last-child { background: var(--yellow); }

/* Pastilles de profils (matching) */
.avatars { display: flex; }
.avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.avatars span + span { margin-left: -8px; }
.avatars span:nth-child(1) { background: var(--sky); }
.avatars span:nth-child(2) { background: var(--yellow); }
.avatars span:nth-child(3) { background: var(--navy); }

/* Mini graphique (reporting) */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
}
.bars span {
  flex: 1;
  background: var(--sky-soft);
  border-radius: 4px;
}
.bars span:nth-child(1) { height: 40%; }
.bars span:nth-child(2) { height: 60%; }
.bars span:nth-child(3) { height: 52%; }
.bars span:nth-child(4) { height: 78%; }
.bars span:nth-child(5) { height: 100%; background: var(--yellow); }

@media (min-width: 960px) {
  .stage {
    display: block;
    height: 470px;
    padding-bottom: 0;
  }

  .sun {
    display: block;
    position: absolute;
    left: 50%;
    top: 40px;
    width: 520px;
    height: 520px;
    margin-left: -260px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #FFE37A 0%, #FFD23F 55%, #FFC91A 100%);
    box-shadow: 0 0 0 40px rgba(255, 210, 63, .18), 0 0 0 90px rgba(255, 210, 63, .08);
  }

  .float {
    position: absolute;
    max-width: none;
  }
  .float--chat     { left: 50%; top: 70px; width: 400px; margin-left: -200px; }
  /* `rotate` (et non `transform`) pour pouvoir combiner parallaxe et apparition */
  .float--invoice  { left: 20px; top: 40px; width: 250px; rotate: -5deg; }
  .float--followup { left: 90px; top: 250px; width: 270px; rotate: 3deg; }
  .float--matching { right: 20px; top: 30px; width: 260px; rotate: 4deg; }
  .float--report   { right: 80px; top: 250px; width: 260px; rotate: -3deg; }
}

/* Entre 960 et 1200 px, la scène est réduite pour que les cartes
   ne recouvrent pas la carte centrale. */
@media (min-width: 960px) and (max-width: 1079px) {
  .stage { zoom: .78; }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  .stage { zoom: .89; }
}

@media (max-width: 959px) {
  .nav__links { display: none; }
}

/* Petits écrans : le logo et le bouton tiennent sur une ligne */
@media (max-width: 479px) {
  .nav { padding: 8px 8px 8px 16px; }
  .nav__logo img { width: 105px; height: 30px; }
  .nav__cta { font-size: 14px; padding: 10px 16px; }
}
@media (max-width: 359px) {
  .nav { gap: 12px; }
  .nav__logo img { width: 91px; height: 26px; }
  .nav__cta { font-size: 13px; padding: 10px 12px; }
}

/* ==========================================================================
   Outils compatibles
   ========================================================================== */

.tools {
  background: var(--white);
  padding: 44px 24px;
  border-bottom: 1px solid var(--line);
}
.tools__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
}
.tools__intro {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 240px;
}
.tools__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-faint);
}

/* ==========================================================================
   Gains
   ========================================================================== */

.gains { padding: 120px 24px 100px; }
.gains__title { max-width: 820px; }
.gains__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  max-width: 600px;
  margin: 22px 0 0;
}

.gains__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 56px;
}

.gain {
  border-radius: 28px;
  padding: 36px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.gain--sky { background: var(--sky-soft); }
.gain--yellow { background: var(--yellow); }
.gain--navy { background: var(--navy); color: #fff; }

.gain h3 {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -.02em;
  margin: 0;
}
.gain p {
  font-size: 17px;
  line-height: 1.55;
  margin: 12px 0 0;
  color: var(--text-strong);
}
.gain--navy p { color: var(--on-navy); }

/* ==========================================================================
   Services
   ========================================================================== */

.services { padding: 0 24px 110px; }

.services__panel {
  background: var(--navy);
  color: #fff;
  border-radius: 36px;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.services__intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.services__title { font-size: clamp(34px, 4vw, 52px); }
.services__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-navy);
  margin: 20px 0 0;
  max-width: 420px;
}
.services__cta {
  align-self: flex-start;
  font-size: 16px;
  padding: 15px 26px;
}

.services__list {
  flex: 1.3 1 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service {
  background: var(--navy-light);
  border-radius: 22px;
  padding: 28px;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service h3 svg { flex: none; }
.service__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-navy);
  margin: 12px 0 16px;
}
.service__examples {
  margin: 0;
  font-size: 14px;
  color: var(--on-navy-soft);
}

/* ==========================================================================
   Réalisation
   ========================================================================== */

.case { padding: 0 24px 120px; }

.case__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
}
.case__title { max-width: 640px; }
.case__intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  max-width: 400px;
}

.case__body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.case__story {
  flex: 2 1 560px;
  min-width: 0;
  background: linear-gradient(160deg, #C9E0F5 0%, #FFF4C2 100%);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 380px;
}
.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case__tags span {
  background: var(--white);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
}
.case__story h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 620px;
}
.case__story p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-strong);
  margin: 16px 0 0;
  max-width: 620px;
}

.case__result {
  flex: 1 1 320px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.case__stat {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -.03em;
  line-height: 1;
}
/* Le chiffre est aligné à droite dans sa largeur finale : le « % » ne bouge pas pendant le comptage */
.case__stat-num {
  display: inline-block;
  text-align: right;
}
.case__stat-label {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--text);
}
.case__quote {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}
.case__quote blockquote,
.case__quote blockquote p { margin: 0; }
.case__quote figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ==========================================================================
   Méthode
   ========================================================================== */

.method {
  background: var(--white);
  padding: 110px 24px;
}
.method__title { max-width: 760px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.step {
  border-top: 3px solid var(--navy);
  padding-top: 24px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 20px 0 10px;
}
.step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

/* ==========================================================================
   Comparaison
   ========================================================================== */

.compare { padding: 120px 24px; }
.compare__title { max-width: 760px; }

.compare__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  margin-top: 48px;
}

.compare__card {
  border-radius: 28px;
  padding: 40px;
}
.compare__card--before { background: var(--line); }
.compare__card--after { background: var(--yellow); }

.compare__card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 24px;
}
.compare__card--before h3 { color: var(--text-soft); }
.compare__card--after h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare__card--after h3 img {
  display: block;
  width: 34px;
  height: 34px;
  mix-blend-mode: multiply;
}

.compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
}
.compare__card--before .compare__list { color: var(--text-muted); }
.compare__card--after .compare__list { font-weight: 500; }
.compare__list li {
  display: flex;
  gap: 12px;
}
.compare__list svg {
  flex: none;
  margin-top: 2px;
}

/* ==========================================================================
   Équipe
   ========================================================================== */

.team {
  background: var(--white);
  padding: 110px 24px;
}
.team__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.team__intro { flex: 1 1 360px; }
.team__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  margin: 22px 0 0;
  max-width: 480px;
}

.team__grid {
  flex: 1 1 480px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.member {
  margin: 0;
  border-radius: 26px;
  padding: 12px;
  position: relative;
}
.member--sky { background: var(--sky-soft); }
.member--yellow { background: var(--yellow-soft); }

.member__linkedin,
.member__linkedin:hover { color: var(--navy); }
.member__linkedin {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 16px -6px rgba(15, 37, 64, .35);
  transition: background-color .2s ease, transform .3s var(--ease-out);
}
.member__linkedin:hover { background: var(--yellow); }

/* Emplacement photo : remplacer le <div> par un <img class="member__photo"> */
.member__photo {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--navy);
}
img.member__photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.member--sky .member__photo { background: linear-gradient(180deg, #B7D3EE, #E3EEF7); }
.member--yellow .member__photo { background: linear-gradient(180deg, #FFE58A, #FFF6CF); }

.member figcaption { padding: 16px 8px 8px; }
.member__name {
  font-family: var(--font-display);
  font-size: 21px;
}
.member__role {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-top: 4px;
  line-height: 1.45;
}

/* ==========================================================================
   Offre
   ========================================================================== */

.pricing { padding: 120px 24px 100px; }
.pricing__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.pricing__intro { flex: 1 1 340px; }
.pricing__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  margin: 22px 0 0;
  max-width: 420px;
}

.pricing__grid {
  flex: 1.4 1 520px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}

.plan {
  border-radius: 26px;
  padding: 32px;
}
.plan--light {
  background: var(--white);
  border: 1px solid var(--line-strong);
}
.plan--dark {
  background: var(--navy);
  color: #fff;
}
.plan h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}
.plan__price {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -.02em;
}
.plan--dark .plan__price { color: var(--yellow); }
.plan__note {
  margin: 4px 0 22px;
  font-size: 15px;
  color: var(--text-soft);
}
.plan--dark .plan__note { color: var(--on-navy-muted); }
.plan__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--text-strong);
}
.plan--dark .plan__features { color: var(--on-navy-list); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: 0 24px 120px; }
.faq__inner {
  max-width: 860px;
  margin: 0 auto;
}
.faq__title {
  font-size: clamp(34px, 4.4vw, 52px);
  margin: 0 0 36px;
  text-align: center;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0 24px;
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__plus {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease-out), background-color .2s ease, scale .3s var(--ease-spring);
  font-size: 20px;
}
.faq__item[open] .faq__plus { transform: rotate(45deg); }

.faq__item p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { padding: 0 24px 40px; }

.contact__panel {
  background: var(--navy);
  color: #fff;
  border-radius: 36px;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.contact__sun {
  position: absolute;
  right: -160px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .95;
}

.contact__intro {
  flex: 1 1 360px;
  position: relative;
}
.contact__title {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  max-width: 480px;
}
.contact__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-navy);
  margin: 22px 0 32px;
  max-width: 420px;
}
.contact__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
}
.contact__perks li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.contact__mail {
  margin: 32px 0 0;
  font-size: 16px;
  color: var(--on-navy);
}
.contact__mail a,
.contact__mail a:hover { color: var(--yellow); }

/* Formulaire */
.form {
  flex: 1 1 400px;
  min-width: 0;
  position: relative;
  background: var(--white);
  color: var(--navy);
  border-radius: 26px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field textarea {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}

/* Champ anti-spam, invisible pour les visiteurs */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  background: var(--yellow);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  cursor: pointer;
  min-height: 52px;
  transition:
    background-color .2s ease,
    box-shadow .3s var(--ease-out),
    transform .3s var(--ease-out);
}
.form__submit:hover { background: var(--yellow-hover); }
.form__submit:disabled {
  cursor: progress;
  opacity: .7;
}

.form__status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--yellow-soft);
  font-size: 15px;
  line-height: 1.5;
}
.form__status[data-tone="error"] {
  background: #FDECEA;
  color: var(--error);
}

.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.footer { padding: 56px 24px 40px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer__logo {
  display: block;
  width: 182px;
  height: 52px;
  mix-blend-mode: multiply;
}
.footer__tagline {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 320px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 15px;
}
.footer__legal {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--text-soft);
}

/* Très petits écrans (320 px) : rien ne doit déborder */
@media (max-width: 359px) {
  .services__panel,
  .contact__panel { padding: 20px; }
  .service,
  .form { padding: 20px; }
  .service h3 { font-size: 20px; }
}

/* ==========================================================================
   Page Mentions légales
   ========================================================================== */

.hero--compact .hero__intro { padding: 72px 0 64px; }
.hero--compact .hero__title { font-size: clamp(40px, 6vw, 72px); }

.legal { padding: 80px 24px 100px; }
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.02em;
  margin: 48px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}
.legal p { margin: 0 0 12px; }
.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.legal p.legal__updated {
  margin-top: 56px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ==========================================================================
   Animations
   - Discrètes et utiles : elles guident la lecture ou montrent un résultat.
   - Uniquement transform et opacity : la mise en page ne bouge jamais.
   - Rien ne bouge si le visiteur a demandé à réduire les animations.
   - Sans JavaScript, tout le contenu reste visible.
   ========================================================================== */

/* ---------- Survols : uniquement sur ce qui est cliquable ---------- */

.nav__links a { position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.faq__item { transition: border-color .2s ease; }

.field input,
.field textarea { transition: border-color .2s ease; }
.field :is(input, textarea):not([aria-invalid="true"]):focus { border-color: var(--navy); }

@media (hover: hover) {
  .btn--navy:hover,
  .btn--white:hover { box-shadow: 0 12px 24px -14px rgba(15, 37, 64, .45); }
  .btn--yellow:hover,
  .form__submit:hover { box-shadow: 0 14px 28px -14px rgba(214, 160, 0, .8); }
  .btn--glow:hover { box-shadow: 0 18px 36px -12px rgba(214, 160, 0, .8); }

  .faq__item:hover { border-color: var(--input-border); }
  .faq__item summary:hover .faq__plus {
    background: var(--yellow-hover);
    scale: 1.08;
  }

  .field :is(input, textarea):not([aria-invalid="true"]):hover { border-color: #94A3B8; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover,
  .form__submit:hover,
  .member__linkedin:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active,
  .form__submit:active {
    transform: translateY(0) scale(.97);
    transition-duration: .1s;
  }

  .field__error:not([hidden]),
  .form__status:not([hidden]) { animation: fade-down .3s var(--ease-out); }
}

/* FAQ : ouverture et fermeture en douceur (navigateurs compatibles) */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq__item { interpolate-size: allow-keywords; }
    .faq__item::details-content {
      height: 0;
      overflow: hidden;
      opacity: 0;
      transition: height .4s var(--ease-out), opacity .3s ease, content-visibility .4s allow-discrete;
    }
    .faq__item[open]::details-content {
      height: auto;
      opacity: 1;
    }
  }
}

/* ---------- Curseur ---------- */

/* Halo jaune qui suit le curseur sur les cartes sombres des services */
[data-spotlight] {
  position: relative;
  isolation: isolate;
}
[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(255, 210, 63, .13), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.has-cursor-fx [data-spotlight]:hover::before { opacity: 1; }

/* Calques animés au défilement et au curseur (grand écran) */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .stage :is([data-depth], [data-parallax]),
  [data-drift] { will-change: transform; }
}

/* ---------- Apparitions au défilement ---------- */

@media screen and (prefers-reduced-motion: no-preference) {
  .js :is([data-reveal], [data-reveal-children] > *):not(.is-visible) { opacity: 0; }
  .js :is([data-reveal], [data-reveal-children] > *).is-visible {
    animation: reveal .9s var(--ease-out) var(--reveal-delay, 0ms) both;
  }
  /* Sécurité : si le script ne s'exécute pas, tout s'affiche après 2,5 s */
  .js:not(.motion-ready) :is([data-reveal], [data-reveal-children] > *):not(.is-visible) {
    animation: reveal-failsafe 0s 2.5s forwards;
  }
  /* Script arrivé après la sécurité : on n'anime plus ce qui est déjà affiché */
  .js.reveal-instant :is([data-reveal], [data-reveal-children] > *) {
    animation: none;
    opacity: 1;
  }

  /* Hero : le soleil se lève derrière les cartes */
  .js .sun[data-reveal].is-visible { animation: sunrise 1.6s var(--ease-out) .2s both; }

  /* Hero : chaque automatisation « travaille » une fois, quand sa carte apparaît */
  .js .float.is-visible :is(.bars, .avatars, .chat__typing, .chat__tags) > span:nth-child(2) { --i: 1; }
  .js .float.is-visible :is(.bars, .avatars, .chat__typing, .chat__tags) > span:nth-child(3) { --i: 2; }
  .js .float.is-visible .bars > span:nth-child(4) { --i: 3; }
  .js .float.is-visible .bars > span:nth-child(5) { --i: 4; }

  .js .float.is-visible .progress span {
    transform-origin: left center;
    animation: grow-x .7s var(--ease-out) both;
  }
  .js .float.is-visible .progress span:nth-child(1) { animation-delay: calc(var(--reveal-delay, 0ms) + 450ms); }
  .js .float.is-visible .progress span:nth-child(2) { animation-delay: calc(var(--reveal-delay, 0ms) + 750ms); }
  .js .float.is-visible .progress span:nth-child(3) { animation-delay: calc(var(--reveal-delay, 0ms) + 1050ms); }

  .js .float.is-visible .bars span {
    transform-origin: center bottom;
    animation: grow-y .8s var(--ease-out) both;
    animation-delay: calc(var(--reveal-delay, 0ms) + 400ms + var(--i, 0) * 80ms);
  }

  .js .float.is-visible .avatars span {
    animation: pop .5s var(--ease-spring) both;
    animation-delay: calc(var(--reveal-delay, 0ms) + 450ms + var(--i, 0) * 100ms);
  }

  .js .float--chat.is-visible .chat__msg--user {
    animation: msg-in-right .5s var(--ease-out) calc(var(--reveal-delay, 0ms) + 450ms) both;
  }
  .js .float--chat.is-visible .chat__typing {
    animation: typing 1.1s ease calc(var(--reveal-delay, 0ms) + 950ms) both;
  }
  .js .float--chat.is-visible .chat__typing span {
    animation: typing-dot .55s ease-in-out calc(var(--reveal-delay, 0ms) + 1000ms + var(--i, 0) * 140ms) 2;
  }
  .js .float--chat.is-visible .chat__msg--bot {
    animation: msg-in-left .5s var(--ease-out) calc(var(--reveal-delay, 0ms) + 2000ms) both;
  }
  .js .float--chat.is-visible .chat__tags span {
    animation: fade-in .4s ease calc(var(--reveal-delay, 0ms) + 2400ms + var(--i, 0) * 100ms) both;
  }

  /* Méthode : la ligne du temps se trace d'une étape à l'autre */
  .js .steps[data-reveal-children] > .step {
    position: relative;
    border-top-color: transparent;
  }
  .js .steps[data-reveal-children] > .step:not(.is-visible) { opacity: 1; }
  .js .steps[data-reveal-children] > .step.is-visible { animation: none; }
  .js .steps[data-reveal-children] > .step::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -3px;
    height: 3px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left center;
  }
  .js .steps[data-reveal-children] > .step.is-visible::before {
    animation: draw-x .8s var(--ease-out) var(--reveal-delay, 0ms) both;
  }
  .js .steps[data-reveal-children] > .step:not(.is-visible) > * { opacity: 0; }
  .js .steps[data-reveal-children] > .step.is-visible > * {
    animation: reveal .7s var(--ease-out) calc(var(--reveal-delay, 0ms) + 260ms) both;
  }
  .js .steps[data-reveal-children] > .step.is-visible > p { animation-delay: calc(var(--reveal-delay, 0ms) + 340ms); }
  .js .steps[data-reveal-children] > .step.is-visible > .step__num {
    animation: pop .6s var(--ease-spring) calc(var(--reveal-delay, 0ms) + 120ms) both;
  }
  .js:not(.motion-ready) .steps[data-reveal-children] > .step:not(.is-visible) > *,
  .js:not(.motion-ready) .steps[data-reveal-children] > .step:not(.is-visible)::before {
    animation: reveal-failsafe 0s 2.5s forwards;
  }
  .js.reveal-instant .steps[data-reveal-children] > .step > *,
  .js.reveal-instant .steps[data-reveal-children] > .step::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-failsafe {
  to { opacity: 1; transform: none; }
}
@keyframes sunrise {
  from { opacity: 0; transform: translateY(80px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }
@keyframes msg-in-right { from { opacity: 0; transform: translateX(12px); } }
@keyframes msg-in-left { from { opacity: 0; transform: translateX(-12px); } }
@keyframes typing {
  0% { opacity: 0; transform: translateY(4px); }
  15%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes typing-dot {
  0%, 100% { transform: none; opacity: .45; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Animations réduites : tout s'affiche immédiatement, sans mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
