*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #23264d;
  background: #f7f8fd;
  line-height: 1.65;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f1339;
  background-image: linear-gradient(180deg, #0f1339 0%, #1a1f4e 100%);
  padding: 12px 20px;
  box-shadow: 0 2px 14px rgba(15, 19, 57, 0.28);
}
.topbar .inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.topbar .brand { color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.topbar .nav {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
}
.topbar .nav:hover { color: #fff; text-decoration: underline; }
.topbar .cta {
  margin-left: auto;
  background: #fff;
  color: #0f1339;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.topbar .cta:hover { transform: translateY(-1px); }
article, .page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
h1 { font-size: 30px; line-height: 1.2; color: #1a1f4e; letter-spacing: -0.02em; margin-bottom: 10px; }
.meta { font-size: 13px; color: #8a8fb5; margin-bottom: 28px; }
h2 { font-size: 22px; line-height: 1.3; color: #1a1f4e; margin: 36px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 17px; color: #1a1f4e; margin: 24px 0 8px; }
p { margin-bottom: 14px; font-size: 16.5px; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; font-size: 16.5px; }
a { color: #3b5bdb; }
strong { color: #1a1f4e; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 15px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 31, 78, 0.07);
}
th { background: #1a1f4e; color: #fff; text-align: left; padding: 10px 12px; font-size: 13.5px; }
td { padding: 10px 12px; border-top: 1px solid #eef0fa; vertical-align: top; }
tr:nth-child(even) td { background: #fafbff; }
.tip {
  background: #eaf3ff;
  border-left: 4px solid #87c8ff;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15.5px;
}
.tip p:last-child { margin-bottom: 0; }
.cta-card {
  background: #0f1339;
  background-image:
    radial-gradient(ellipse at top, #2a306e 0%, transparent 60%),
    linear-gradient(180deg, #0f1339 0%, #1a1f4e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  margin: 36px 0;
  text-align: center;
}
.cta-card img { width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 10px; display: inline-block; }
.cta-card h2 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.cta-card p { color: rgba(255, 255, 255, 0.75); font-size: 15px; margin-bottom: 0; }
.cta-card .applebtn {
  display: inline-block;
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-top: 16px;
}
.cta-card .free { display: block; margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.card-list { list-style: none; margin: 24px 0 0; }
.card-list li {
  position: relative;
  background: #fff;
  border: 1px solid #e7eaf8;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(26, 31, 78, 0.05);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.card-list li:hover {
  transform: translateY(-2px);
  border-color: #c5d8f7;
  box-shadow: 0 6px 18px rgba(26, 31, 78, 0.10);
}
.card-list a { font-size: 18px; font-weight: 700; color: #1a1f4e; text-decoration: none; }
.card-list a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.card-list li:hover a { color: #3b5bdb; }
.card-list p { font-size: 14.5px; color: #5b5f86; margin: 6px 0 0; }
.related { background: #fff; border: 1px solid #e7eaf8; border-radius: 14px; padding: 18px 20px; margin-top: 32px; }
.related h2 { margin: 0 0 10px; font-size: 17px; }
.related ul { margin: 0 0 0 20px; }
.related li { font-size: 15.5px; }
.disclaimer { font-size: 13px; color: #8a8fb5; margin-top: 28px; line-height: 1.5; }
.sitefooter {
  text-align: center;
  font-size: 12.5px;
  color: #8a8fb5;
  padding: 24px 20px 40px;
}
.sitefooter a { color: #5b5f86; text-decoration: none; }
@media (max-width: 480px) {
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  th, td { padding: 8px 9px; font-size: 13.5px; }
}

/* Saut de ligne adaptatif : visible sur mobile, masqué sur grand écran */
.br-narrow { display: inline; }
@media (min-width: 900px) {
  .br-narrow { display: none; }
}

/* Accueil du blog : grille 2 colonnes sur grand écran */
@media (min-width: 900px) {
  .bloghome .topbar .inner { max-width: 1060px; }
  .bloghome .page { max-width: 1060px; }
  .bloghome .page > p { max-width: 680px; }
  .bloghome .card-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
  }
  .bloghome .card-list li { margin-bottom: 0; }
  .bloghome .cta-card { max-width: 680px; margin-left: auto; margin-right: auto; }
}

/* QR code dans la carte CTA : desktop uniquement */
.cta-qr { display: none; }
@media (min-width: 900px) {
  .cta-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .cta-qr img {
    width: 112px;
    height: 112px;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    flex-shrink: 0;
  }
  .cta-qr p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: left;
  }
  .cta-qr strong { color: #fff; }
}
