/*
 * Le site public de WBS Revolution.
 *
 * Une seule feuille pour les quatre pages : l'accueil et les trois pages
 * légales se ressemblent, et c'est voulu : celui qui arrive sur la politique
 * de confidentialité depuis Google Play doit reconnaître l'entreprise dont il
 * vient d'installer l'application.
 *
 * Les couleurs sont celles du logo : le bleu porte l'identité, l'orange ne
 * sert qu'aux appels à l'action, rarement, pour rester visible.
 *
 * Aucune police n'est téléchargée. Une police distante ajouterait une
 * dépendance extérieure sur des connexions parfois lentes, et ferait entrer un
 * tiers dans la liste des destinataires de notre politique de confidentialité
 * pour un gain d'allure. La pile ci-dessous prend la meilleure police déjà
 * présente sur l'appareil.
 */

:root {
  --blue: #094986;
  --blue-light: #10639f;
  --blue-dark: #06345f;
  --blue-soft: #eef4fa;
  --orange: #ef7b0e;
  --orange-ink: #b45a08;
  --ink: #1e2227;
  --ink-soft: #2c3540;
  --muted: #5f6b7a;
  --line: #e3e7ec;
  --line-strong: #cfdcea;
  --ground: #f6f7f9;

  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(16, 31, 46, 0.06);
  --shadow-md: 0 10px 26px rgba(9, 73, 134, 0.1);
  --shadow-lg: 0 22px 50px rgba(8, 26, 43, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Rien ne doit dépasser en largeur sur un téléphone : une longue adresse
 * e-mail ou un numéro de suivi casse la ligne plutôt que la page. */
img {
  max-width: 100%;
}

a {
  overflow-wrap: anywhere;
}

/* Le clavier doit voir où il se trouve, la souris n'a pas besoin du cadre. */
:focus-visible {
  outline: 3px solid rgba(239, 123, 14, 0.6);
  outline-offset: 2px;
  border-radius: 8px;
}

::selection {
  background: rgba(9, 73, 134, 0.16);
}

h1,
h2,
h3 {
  letter-spacing: -0.015em;
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--narrow {
  max-width: 760px;
}

/* ---------- Apparition au défilement ----------
 *
 * L'effet ne s'applique que si le JavaScript a pu marquer la page (`.js`) :
 * sans lui, rien n'est masqué et la page reste entièrement lisible. Il est
 * également neutralisé pour qui demande moins d'animations.
 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- En-tête ---------- */

/* Fond plein et aucun filtre : `backdrop-filter` ferait de l'en-tête le bloc
 * conteneur de ses descendants en `position: fixed`, et le tiroir du menu
 * resterait prisonnier de la hauteur de la barre. */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* L'ombre n'apparaît qu'une fois la page défilée : en haut, la barre doit se
 * fondre dans le fond, pas flotter au-dessus. */
.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(9, 73, 134, 0.12);
  border-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: 940px;
  margin: 0 auto;
}

.site-header img {
  display: block;
  width: 146px;
  height: auto;
  transition: transform 0.25s var(--ease);
}

.site-header a:hover img {
  transform: scale(1.02);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14.5px;
}

/* Chaque lien est une pastille : la zone cliquable est visible, et au doigt
 * elle reste assez grande pour ne pas se tromper de lien. */
.site-nav a {
  color: #4a5765;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.site-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

/* La page ouverte est pleine, les autres non : on sait toujours où l'on est. */
.site-nav a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

/* Le bouton du menu et le voile n'existent que sur téléphone : ici, ils sont
 * hors du chemin. La règle est levée dans la requête média plus bas. */
.nav-toggle,
.nav-close,
.nav-overlay {
  display: none;
}

.nav-toggle,
.nav-close {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.nav-toggle:hover,
.nav-close:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* Les trois barres du bouton, dessinées plutôt qu'écrites en caractères :
 * une police manquante ne peut pas les faire disparaître. */
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  transition: top 0.2s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-close::before {
  content: "\00d7";
  font-size: 26px;
  line-height: 1;
}

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 480px at 88% -12%, var(--blue-light) 0%, transparent 62%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
}

/* Une lueur orange très basse, du côté du texte : elle réchauffe le bleu sans
 * jamais passer devant. */
.hero::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 123, 14, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

/* Le texte à gauche, un vrai écran de l'application à droite : ce que l'on
 * promet et à quoi cela ressemble tiennent dans le même coup d'œil. */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #e6eef7;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 123, 14, 0.25);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.14;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero p {
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0 0 28px;
  color: #d8e4f0;
  max-width: 54ch;
}

.hero .note {
  font-size: 14px;
  margin: 18px 0 0;
  color: #a9c2da;
}

/* ---------- Bande de réassurance ---------- */

.strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}

.strip ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.strip svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--blue);
}

/* ---------- Captures de l'application ---------- */

.phone {
  background: #0b1016;
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  margin: 36px 0 0;
}

.shots figure {
  margin: 0;
}

.shots figure:hover .phone {
  transform: translateY(-6px);
}

.shots figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

/* ---------- Badges des stores ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store {
  display: block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.2s var(--ease);
}

.store img {
  display: block;
  height: 54px;
  width: auto;
}

a.store:hover {
  transform: translateY(-2px);
}

a.store:hover img {
  opacity: 0.9;
}

.stores__title {
  font-size: 17px;
  margin: 40px 0 6px;
}

.stores__note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.hero .note a,
.stores__note a {
  color: inherit;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 123, 14, 0.3);
}

.btn--primary:hover {
  background: var(--orange-ink);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
}

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

section {
  padding: 64px 0;
}

section.alt {
  background: var(--ground);
}

h2 {
  font-size: clamp(22px, 3.4vw, 28px);
  margin: 0 0 8px;
  color: var(--ink);
}

.lead {
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 62ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

/* La pastille d'icône : c'est elle qui donne le ton au premier regard, avant
 * même que le titre soit lu. */
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}

.card__icon svg {
  width: 23px;
  height: 23px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Agences ---------- */

.agencies .card p {
  margin: 0;
}

/* Le sélecteur porte `.agencies` pour passer devant `.card p`, qui grise
 * sinon l'étiquette du pays. */
.agencies .agency__country {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

/* Un contour discret : sans lui, le blanc du drapeau français ou suisse se
 * perdrait dans le fond de la carte. */
.flag {
  width: 21px;
  height: auto;
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: -3px;
  box-shadow: 0 0 0 1px rgba(30, 34, 39, 0.12);
}

.agencies .card h3 {
  margin: 2px 0 8px;
  font-size: 18px;
}

.agency__phone {
  margin-top: 12px !important;
  font-weight: 600;
}

.agency__phone a {
  color: var(--blue);
  text-decoration: none;
}

.agency__phone a:hover {
  text-decoration: underline;
}

/* ---------- Étapes numérotées ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(9, 73, 134, 0.25);
}

/* Le fil qui relie les numéros : on voit que c'est une suite, pas une liste. */
.steps li::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}

.steps li:last-child::after {
  display: none;
}

/* ---------- Pages légales ---------- */

/* Un bandeau clair avant le texte : la page a un début net, et la date de
 * mise à jour se trouve sans la chercher. */
.legal-head {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}

.legal-head h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 6px;
}

.legal-head .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.legal {
  padding: 40px 0 64px;
}

.legal h2 {
  font-size: 20px;
  margin: 36px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal h3 {
  font-size: 16px;
  margin: 22px 0 6px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 11px 13px;
  border: 1px solid var(--line);
}

.legal th {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
}

.legal tbody tr:hover td,
.legal tr:hover td {
  background: #fbfcfd;
}

.callout {
  background: var(--blue-soft);
  border: 1px solid #d3e2f3;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
}

.callout p {
  margin: 0;
}

.callout strong {
  color: var(--blue);
}

/* ---------- Pied ---------- */

.site-footer {
  background: var(--ink);
  color: #b9c0c9;
  padding: 44px 0 32px;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 7px;
}

.site-footer__brand p {
  margin: 0;
  max-width: 34ch;
  color: #98a1ab;
}

.site-footer__legal {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #333a42;
  color: #8b929b;
}

/* ---------- Écrans intermédiaires ---------- */

/* Sous 860 px, le téléphone passe sous le texte et se centre. */
@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero .phone {
    max-width: 260px;
    margin: 0 auto;
  }

  .site-footer__cols {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ---------- Le menu en tiroir, sous 780 px ----------
 *
 * Les quatre liens ne tiennent plus sur une ligne à côté du logo. Plutôt que
 * de les laisser retomber en vrac, ils passent dans un panneau qui glisse
 * depuis la droite. Fermé, il est `visibility: hidden` : il sort du même coup
 * du parcours au clavier, sans avoir à le synchroniser en JavaScript.
 */
@media (max-width: 780px) {
  .nav-toggle,
  .nav-close {
    display: inline-flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 26, 43, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
    z-index: 1;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 320px);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    padding: 76px 16px 24px;
    background: #fff;
    box-shadow: -18px 0 44px rgba(8, 26, 43, 0.22);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.28s var(--ease),
      visibility 0.28s ease;
    z-index: 2;
  }

  .site-nav a {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15.5px;
    white-space: normal;
  }

  .nav-close {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 3;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  body.nav-open .site-nav,
  body.nav-open .nav-overlay,
  body.nav-open .nav-close {
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  /* La page sous le tiroir ne défile pas pendant qu'on choisit un lien. */
  body.nav-open {
    overflow: hidden;
  }
}

/* Un réglage fin pour les écrans étroits, une fois le tiroir en place. */
@media (max-width: 600px) {
  .site-header__inner {
    padding: 10px 16px;
  }

  .site-header img {
    width: 128px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  section {
    padding: 44px 0;
  }

  /* Une capture par ligne : plus petit, on ne lirait plus rien dessus. */
  .shots {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .legal-head {
    padding: 28px 0 24px;
  }

  .legal {
    padding: 30px 0 48px;
  }

  .legal h2 {
    font-size: 18px;
  }

  /* Un tableau de trois colonnes est illisible sur un téléphone : chaque
   * ligne devient une fiche, et chaque valeur garde le nom de sa colonne,
   * repris dans `data-label` par la page. */
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
    width: 100%;
  }

  .legal table {
    box-shadow: none;
    overflow: visible;
  }

  .legal tr:first-child {
    display: none;
  }

  .legal tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .legal td {
    border: 0;
    padding: 10px 14px;
  }

  .legal td + td {
    border-top: 1px solid var(--line);
  }

  .legal td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* Très petits écrans : on rogne encore les marges plutôt que le texte. */
@media (max-width: 380px) {
  .store img {
    height: 46px;
  }
}

/* ---------- Impression ----------
 *
 * Les conditions et la politique de confidentialité sont des documents qu'on
 * imprime ou qu'on enregistre en PDF. Ils doivent tenir sur le papier sans la
 * navigation, et les adresses des liens doivent rester lisibles.
 */
@media print {
  .site-header,
  .site-footer,
  .nav-overlay,
  .nav-close,
  .nav-toggle,
  .hero,
  .strip,
  .shots {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .legal-head {
    background: none;
    border: 0;
    padding: 0 0 12px;
  }

  .legal h2 {
    page-break-after: avoid;
  }

  .legal table,
  .callout,
  .legal tr {
    page-break-inside: avoid;
  }

  .legal a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
  }
}
