/* BigoMail — page d'accueil et de téléchargement. Grammaire inspirée des grandes pages produit :
   barre fine, tuiles pleine largeur au titre centré, tuiles par deux, fonds clairs alternés.
   Identité BigoMail (vert, logo, captures réelles de l'application), aucune image animée. */
:root {
  --green: #22634d;
  --green-2: #1b5240;
  --green-dark: #123a2d;
  --ink: #161d1a;
  --ink-2: #3a4541;
  --muted: #5d6a65;
  --line: #dfe5e2;
  --paper: #f4f6f5;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
body { margin: 0; font: 17px/1.5 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* Ouverture : animation officielle (vidéo aux bords fondus dans la couleur du fond, js/splash.js).
   Le logo garde la même taille relative sur tous les écrans : les bords de la vidéo, unis, peuvent dépasser. */
.splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: #fbfdfe; cursor: pointer; }
.splash .splash-media { --w: clamp(486px, 97vmin, 973px); position: absolute; width: var(--w); height: calc(var(--w) * 9 / 16); left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * 9 / 32); }
.splash .splash-media video, .splash .splash-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.splash .splash-veil { position: absolute; inset: 0; background: #fbfdfe; opacity: 0; transition: opacity .26s ease; pointer-events: none; }
.splash .splash-veil.on { opacity: 1; }
.splash .splash-skip { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(23, 60, 48, .07); color: #33433d; font: 500 13px/1 system-ui, sans-serif; cursor: pointer; }
.splash.out { opacity: 0; transition: opacity .3s ease; pointer-events: none; }

/* Boutons : pastilles */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--green); background: var(--green); color: #fff; font: 600 16px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s;
}
.pill:hover { background: var(--green-2); border-color: var(--green-2); }
.pill.ghost { background: transparent; color: var(--green); }
.pill.ghost:hover { background: var(--green); color: #fff; }
.pill.sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.pill[hidden] { display: none; }
.more { color: var(--green); font-weight: 600; text-decoration: none; }
.more::after { content: " ›"; }
.more:hover { text-decoration: underline; }

/* Barre fine, collante */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.nav-in { display: flex; align-items: center; gap: 24px; width: min(1024px, 100% - 32px); height: 52px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 600 17px var(--display); color: var(--ink); text-decoration: none; }
.logo img { width: 24px; height: auto; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; }
.nav-links a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; white-space: nowrap; }
.nav-login:hover { text-decoration: underline; }

/* Tuiles */
main { display: grid; gap: 12px; padding: 12px 0 0; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px 64px; background: var(--paper); }
.tile-text { position: relative; z-index: 1; max-width: 760px; }
.tile h1, .tile h2 { margin: 0; font: 600 clamp(36px, 5.2vw, 56px)/1.07 var(--display); letter-spacing: -.02em; }
.tile .sub { margin: 14px 0 0; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.25; color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.tile .more { display: inline-block; margin-top: 14px; font-size: 18px; }
.note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.shot { margin-top: 40px; }
.shot.wide { width: min(1100px, 100%); height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 50px -28px rgba(20, 50, 40, .35); }
.hero { background: #fff; padding-top: 72px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 12px; }
.tile.half { padding: 48px 32px 56px; }
.tile.half h2 { font-size: clamp(32px, 3.6vw, 44px); }
.tile.half .sub { font-size: clamp(18px, 1.8vw, 21px); }
.tile.half .tile-text { margin-bottom: 36px; }
.tile.half .facts { margin-bottom: 0; }
.features { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; width: min(1100px, 100%); margin: 44px 0 0; padding: 0; text-align: left; }
.features li { display: grid; align-content: start; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.features b { font-size: 17px; color: var(--ink); }
.app-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; width: min(1024px, 100%); text-align: left; }
.app .ctas, .app #install { justify-self: start; }
.shot.phone { width: 270px; height: auto; margin: 0; border: 8px solid #fff; border-radius: 40px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(20, 50, 40, .4); }
.facts { list-style: none; display: grid; gap: 22px; width: min(420px, 100%); margin: 0 0 48px; padding: 0; text-align: left; }
.facts li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--green); font-size: 16px; color: var(--ink-2); }
.facts b { font-size: 17px; color: var(--ink); }
.tile.dark { background: var(--green-dark); color: #fff; }
.tile.dark .sub, .tile.dark .facts li { color: rgba(255, 255, 255, .8); }
.tile.dark .facts b { color: #fff; }
.tile.dark .facts li { border-left-color: #7fd1a8; }
#install { margin-top: 22px; }

.steps { list-style: none; display: grid; gap: 10px; margin: 28px 0 0; padding: 0; text-align: left; }
.steps li { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: 14px; background: #fff; font-size: 15.5px; color: var(--ink-2); }
.steps b { font: 600 17px var(--display); color: var(--ink); }
.final { padding-top: 72px; padding-bottom: 80px; background: #fff; }

/* Pied de page */
.foot { margin-top: 12px; background: var(--paper); font-size: 12.5px; color: var(--muted); }
.foot-in { width: min(1024px, 100% - 32px); margin: 0 auto; padding: 28px 0 calc(24px + env(safe-area-inset-bottom)); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.foot-cols nav { display: grid; gap: 8px; align-content: start; }
.foot h3 { margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-copy { margin: 16px 0 0; }

/* Tablette */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 820px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; }
}
/* Téléphone */
@media (max-width: 600px) {
  main { gap: 10px; padding-top: 0; }
  .duo { gap: 10px; padding: 0; }
  .tile, .tile.half { padding: 44px 16px 48px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .tile h2, .tile.half h2 { font-size: 34px; }
  .tile .sub { font-size: 19px; }
  .ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .shot { margin-top: 28px; }
  .shot.wide { border-radius: 10px; }
      .features { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 32px; }
  .shot.phone { width: 230px; }
  .final { padding-top: 52px; }
}
/* Petit téléphone : « Créer une adresse » reste en tête de page, la barre garde « Se connecter » */
@media (max-width: 420px) {
  .nav-right .pill { display: none; }
}
