/* Accueil : l'ouverture sur le ciel. */
.ouverture {
  display: flex; flex-direction: column;
  min-height: 86vh; min-height: 86svh;
  padding-top: 72px; /* la barre du haut, fixe, chevauche le haut du ciel */
}
.ouverture__centre {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-block: 40px 32px;
  text-align: center;
  position: relative; isolation: isolate;
}
/* Voile sombre très doux derrière le titre et la phrase : là où le ciel s'éclaircit, le blanc garde son contraste (audit du 11/11). */
.ouverture__centre::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 52%; width: min(1100px, 100%); height: min(420px, 70%);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(8, 14, 40, .34), rgba(8, 14, 40, .16) 60%, transparent);
}
.ouverture__tuile {
  flex: none;
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 19px;
  /* Verre dépoli : le ciel passe à travers, le signe est blanc (choix du 11/11). */
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 40px rgba(10, 20, 60, .25);
  margin-bottom: 28px;
}
.ouverture__tuile img { display: block; width: 46px; height: auto; }
.ouverture h1 {
  max-width: 1120px;
  font-size: 60px; line-height: 1.05; letter-spacing: -.03em;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(10, 20, 50, .22);
}
.ouverture__phrase {
  max-width: 640px;
  margin: 16px 0 30px;
  font-size: 21px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(10, 20, 50, .22);
}
/* Bande « ce sur quoi Numeo repose » : large comme la rangée de logos de Codex, bords fondus. Sa place est réservée. */
.bande {
  flex: none; min-height: 72px; margin-bottom: 44px;
  width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.bande__titre { margin: 0; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .7); text-shadow: 0 1px 16px rgba(10, 20, 50, .3); }
.bande__piste {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* Deux listes identiques (la seconde est cachée aux lecteurs d'écran) : la bande visible fait au plus 1224 px, une liste en couvre plus.
   La piste se décale de la moitié, soit une liste entière, puis recommence sans coupure. Une liste mesure ~1450 px : 30 s donnent ~48 px/s. */
.bande__defile { display: flex; width: max-content; animation: bande-defile 30s linear infinite; }
.bande:hover .bande__defile, .bande.est-hors-ecran .bande__defile { animation-play-state: paused; }
.bande__liste { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.bande__liste li { padding-right: 88px; font-size: 22px; line-height: 34px; font-weight: 500; letter-spacing: -.01em; color: #fff; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.bande__liste img { width: 24px; height: 24px; flex: none; display: block; }
@keyframes bande-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bande__defile { animation-name: none; } }

/* Téléphone : tailles réduites en proportion. */
@media (max-width: 759.98px) {
  .ouverture__tuile { width: 60px; height: 60px; border-radius: 15px; margin-bottom: 22px; }
  .ouverture__tuile img { width: 36px; }
  .ouverture h1 { font-size: 38px; line-height: 1.08; }
  .ouverture__phrase { font-size: 17px; margin: 14px 0 26px; }
  .bande { margin-bottom: 32px; }
  .bande__liste li { font-size: 16px; padding-right: 48px; gap: 7px; }
  .bande__liste img { width: 18px; height: 18px; }
}

/* Premier chapitre : de l'air autour d'un titre, puis le bloc. */
.chapitre-section { padding-top: 140px; }
.chapitre { max-width: 760px; font-size: 48px; line-height: 1.1; letter-spacing: -.025em; text-align: left; text-wrap: balance; }

/* Bloc : le texte au tiers, le cadre aux deux tiers. Le modificateur croise les côtés. */
.bloc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center; gap: 56px;
  margin-top: 72px;
}
.bloc--inverse { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.bloc--inverse .bloc__texte { order: 2; }
.bloc h3 { font-size: 30px; line-height: 1.2; letter-spacing: -.015em; }
.bloc p { margin: 16px 0 24px; font-size: 17px; line-height: 1.6; color: var(--texte-p); }
/* Le lien fantôme s'aligne sur le texte : sa pastille de survol déborde à gauche. */
.bloc .btn-fantome { margin-left: -20px; }

/* Le cadre : une image fixe du ciel, un seul fragment d'interface serré au centre. */
.cadre {
  display: grid; place-items: center;
  aspect-ratio: 1200 / 760; padding: 24px;
  border-radius: 18px; overflow: hidden;
  background: #3A6FE0 var(--repli) center / cover no-repeat;
}

/* Fragment : la fenêtre sombre, à taille de fragment (sans le débordement ni le fondu de la fenêtre de l'accueil). */
.cadre .fenetre--fragment {
  width: min(100%, 420px); height: auto;
  -webkit-mask-image: none; mask-image: none;
  box-shadow: 0 24px 60px rgba(8, 16, 60, .28);
}
/* Cadre avec capture : la fenêtre de l'appli posée sur le ciel, comme les images de Codex. Elle part d'un coin,
   touche le bord droit et sort par le bas ; la capture est à environ 3/4 de sa taille réelle. */
/* overflow: clip, et non hidden : un défilement vers l’image (recherche, focus) ne doit pas faire glisser la fenêtre dans son cadre. */
.cadre--ecran { display: block; position: relative; padding: 0; overflow: clip; }
.cadre--ecran .fenetre--ecran {
  position: absolute; left: 8%; top: 10%; right: 0; bottom: auto;
  width: auto; height: auto;
  border-radius: 12px 0 0 0; border-right: 0; border-bottom: 0;
  -webkit-mask-image: none; mask-image: none;
  box-shadow: 0 24px 60px rgba(8, 16, 60, .28);
}
.cadre--ecran .fenetre__barre { height: 36px; padding: 0 12px; }
.fenetre__capture { display: block; width: max(100%, 540px); height: auto; }
@media (max-width: 759.98px) {
  .cadre--ecran .fenetre--ecran { left: 6%; top: 8%; }
}



/* Fragment 3 : l'export, un tableur générique (sombre). Aucune marque de tiers. */
.tableur { font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1.4; }
.tableur__outil { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--filet); }
.tableur__fichier { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-2); }
.tableur__bouton { flex: none; padding: 4px 12px; border-radius: 999px; background: #F9F9F9; color: #0D0D0D; font-size: 13px; font-weight: 500; }
.tableur__grille { display: grid; grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
.tableur__grille > span { padding: 8px 10px; border-bottom: 1px solid var(--filet); border-right: 1px solid var(--filet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tableur__grille > span:last-child { border-right: 0; }
.tableur__grille > span:first-child { padding-inline: 0; text-align: center; color: var(--texte-2); background: #1B1B1B; }
.tableur__grille > span:nth-child(n+3) { text-align: right; }
.tableur__colonnes > span { padding-block: 5px; text-align: center !important; font-size: 12px; color: var(--texte-2); background: #1B1B1B; }
.tableur__entete > span { font-weight: 500; color: var(--texte-2); }
.tableur__total > span:not(:first-child) { font-weight: 500; background: rgba(255, 255, 255, .06); }

/* Fragment 4 : où vont les dossiers (fenêtre claire). */
.garantie { margin: 0; padding: 8px 12px 14px; list-style: none; }
.garantie li { display: flex; gap: 12px; padding: 13px 8px; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: 15px; line-height: 1.35; font-weight: 500; }
.garantie li:last-child { border-bottom: 0; }
.garantie__point { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #3A6FE0; }
.garantie__note { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: #595959; }

@media (max-width: 759.98px) {
  .chapitre-section { padding-top: 88px; }
  .chapitre { font-size: 32px; line-height: 1.12; }
  .bloc, .bloc--inverse { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .bloc--inverse .bloc__texte { order: 0; }
  .bloc h3 { font-size: 24px; }
  .cadre { padding: 16px; aspect-ratio: auto; min-height: 280px; }
  .tableur { font-size: 12px; }
  .tableur__grille > span { padding: 7px 6px; }
  .garantie li { font-size: 14px; padding: 11px 6px; }
}

/* Prix, intégrations et appel final. */
.fin-section { padding-top: 140px; }
.chapitre--centre { margin-inline: auto; text-align: center; }
.prix {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.carte-prix {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px; border-radius: 20px;
  background: var(--carte, #141414); border: 1px solid var(--filet, rgba(255, 255, 255, .07));
}
.carte-prix h3 { font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -.015em; }
.carte-prix p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.carte-prix .carte-prix__prix { margin: auto 0 24px; padding-top: 32px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.integrations { display: flex; flex-direction: column; align-items: center; text-align: center; }
.integrations__texte { max-width: 620px; margin: 24px 0 20px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.formats {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.formats li {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 168px; padding: 28px 12px 22px; border-radius: 18px;
  background: var(--carte, #141414); border: 1px solid var(--filet, rgba(255, 255, 255, .07));
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
}
.formats svg { width: 48px; height: 48px; color: rgba(255, 255, 255, .7); }

/* Appel final : le ciel fond vers le noir en haut comme en bas, entre les sections noires et le pied. */
.appel-final { margin-top: 140px; }
.appel-final__centre {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: 190px;
}
.appel-final h2 {
  max-width: 820px; font-size: 48px; font-weight: 500; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance;
  text-shadow: 0 1px 24px rgba(10, 20, 50, .22);
}
.appel-final p {
  max-width: 560px; margin: 16px 0 30px; font-size: 21px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; text-wrap: balance;
  text-shadow: 0 1px 24px rgba(10, 20, 50, .22);
}
.ciel-fondu--haut { inset: 0 0 auto 0; height: 30%; background: linear-gradient(#000, rgba(0, 0, 0, .45) 45%, transparent); }
.appel-final .ciel-fondu:not(.ciel-fondu--haut) { height: 30%; }
@media (max-width: 759.98px) {
  .fin-section { padding-top: 88px; }
  .prix { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .carte-prix { padding: 24px; }
  .carte-prix h3 { font-size: 24px; }
  .formats { margin-top: 40px; gap: 12px; }
  .formats li { width: calc(50% - 6px); }
  .appel-final { margin-top: 88px; }
  .appel-final__centre { padding-block: 120px; }
  .appel-final h2 { font-size: 32px; line-height: 1.12; }
  .appel-final p { font-size: 18px; }
}
/* Le ciel final touche le pied : pas de bande noire entre les deux. */
main:has(> .appel-final:last-child) + .pied { margin-top: 0; }

/* Téléphone : le nom de la fenêtre tient sur une ligne, et le journal de lecture montre sa colonne de droite. */
@media (max-width: 759.98px) {
  .cadre--ecran .fenetre__nom { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
  .cadre--ecran .fenetre__capture[src*="lecture"] { margin-left: min(0px, calc(100% - 540px)); }
}
