 :root {
    --ink: #1b1d29; --ink-soft: #5c6075; --ink-faint: #989cb0;
    --accent: #5552d9; --accent-soft: #ecebfc; --teal: #2cc7b4;
    --border: #e4e6ef; --bg: #f5f6fa; --dark: #151722;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); font-size: 15px; line-height: 1.6; background: #fff; }
  a { text-decoration: none; color: inherit; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

  /* ----- Mini barre ----- */
  .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
  .topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; }
  .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
  .brand .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6c63ff, #3dd6c4); display: grid; place-items: center; }
  .topbar a.nav { color: #c9cdde; font-size: 14px; font-weight: 600; }
  .topbar a.nav:hover { color: #fff; }
  .topbar .nav-right { display: flex; align-items: center; gap: 18px; }

  /* ----- Sélecteur de langue (drapeaux) ----- */
  .lang-switch { display: inline-flex; align-items: center; gap: 4px; }
  .lang-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: #c9cdde; opacity: .6; border: 1px solid transparent; }
  .lang-switch a:hover { opacity: 1; color: #fff; }
  .lang-switch a.active { opacity: 1; color: #fff; background: rgba(255,255,255,.10); border-color: #3a3e55; }
  .lang-switch svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }

  /* ----- Hero teaser ----- */
  .hero { background: radial-gradient(1100px 620px at 50% -10%, #2c2f52 0%, #151722 62%); color: #fff; text-align: center; padding: 150px 0 120px; overflow: hidden; }
  .logo-big { width: 88px; height: 88px; border-radius: 24px; background: linear-gradient(135deg, #6c63ff, #3dd6c4); display: grid; place-items: center; margin: 0 auto 26px; box-shadow: 0 22px 60px rgba(108, 99, 255, .4); }
  /* Le nom et la promesse forment un seul <h1> : c'est le titre de la page pour
     les moteurs, alors qu'a l'ecran ce sont deux lignes distinctes. Le h1 ne
     porte aucun style propre, tout vient de .wordmark et .baseline. */
  .hero-title { font-size: inherit; font-weight: inherit; }
  .hero-title .baseline { display: block; }
  .wordmark { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
  .baseline { margin-top: 16px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(90deg, #8f88ff, #3dd6c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .teaser { color: #aab0c5; font-size: 17px; max-width: 500px; margin: 22px auto 0; }
  .badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; background: rgba(108,99,255,.16); border: 1px solid rgba(143,136,255,.4); color: #c7c3ff; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; }
  .badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #3dd6c4; box-shadow: 0 0 0 0 rgba(61,214,196,.6); animation: pulse 2s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,214,196,.5); } 70% { box-shadow: 0 0 0 9px rgba(61,214,196,0); } 100% { box-shadow: 0 0 0 0 rgba(61,214,196,0); } }

  /* ----- Articles ----- */
  .articles { padding: 78px 0 30px; }
  .sec-head { text-align: center; margin-bottom: 40px; }
  .kicker { color: var(--accent); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
  .sec-head h2 { font-size: 28px; letter-spacing: -.02em; margin: 8px 0 8px; }
  .sec-head p { color: var(--ink-soft); font-size: 15.5px; max-width: 520px; margin: 0 auto; }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20, 22, 35, .10); }
  .thumb { height: 140px; display: grid; place-items: center; font-size: 44px; }
  .g1 { background: linear-gradient(135deg, #1d2030, #2c3052); }
  .g2 { background: linear-gradient(135deg, #3dd6c4, #2cc7b4); }
  .g3 { background: linear-gradient(135deg, #6c63ff, #8f88ff); }
  .c-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
  .cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 9px; }
  .card h3 { font-size: 16.5px; letter-spacing: -.015em; line-height: 1.28; margin-bottom: 8px; }
  .card h3 a:hover { color: var(--accent); }
  .card .excerpt { color: var(--ink-soft); font-size: 13.5px; flex: 1; }
  .card .meta { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 12px; color: var(--ink-faint); }
  .avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; }
  .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); display: inline-block; }
  .all-link { text-align: center; margin-top: 34px; }
  .all-link a { font-size: 14px; font-weight: 700; color: var(--accent); }
  .all-link a:hover { text-decoration: underline; }

  /* ----- Newsletter ----- */
  .newsletter { padding: 70px 0 90px; }
  .sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; align-items: stretch; }
  .launch-card { background: linear-gradient(135deg, #6c63ff, #3dd6c4); color: #fff; border-radius: 22px; padding: 44px 36px; text-align: center; box-shadow: 0 24px 60px rgba(108, 99, 255, .35); display: flex; flex-direction: column; justify-content: center; }
  .launch-card .kicker { color: #eef0ff; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
  .launch-card h2 { font-size: 24px; letter-spacing: -.02em; margin: 8px 0 10px; }
  .launch-card p { color: #f0f6ff; font-size: 14.5px; max-width: 360px; margin: 0 auto 22px; }
  #launch-form .launch-status, #nl-form .form-status { flex: 1 0 100%; margin: 0; font-size: 12.5px; }
  .launch-card .rgpd { color: #e4f0ff; font-size: 11.5px; margin-top: 14px; }
  .nl-card { background: radial-gradient(700px 320px at 50% -40%, #2c2f52 0%, #151722 70%); color: #fff; border-radius: 22px; padding: 44px 36px; text-align: center; box-shadow: 0 24px 60px rgba(20, 22, 35, .18); display: flex; flex-direction: column; justify-content: center; }
  .nl-card .kicker { color: #8f88ff; }
  .nl-card h2 { font-size: 26px; letter-spacing: -.02em; margin: 8px 0 10px; }
  .nl-card p { color: #aab0c5; font-size: 15px; max-width: 420px; margin: 0 auto 26px; }
  #nl-form, #launch-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
  #nl-form input, #launch-form input { flex: 1; min-width: 220px; border: 1px solid #2c3040; background: #1d2030; border-radius: 11px; padding: 13px 15px; font: inherit; font-size: 14.5px; color: #fff; }
  #nl-form input::placeholder, #launch-form input::placeholder { color: #7d8299; }
  #nl-form input:focus, #launch-form input:focus { outline: none; border-color: #6c63ff; }
  #nl-form button, #launch-form button { border: none; border-radius: 11px; padding: 13px 22px; font-weight: 800; font-size: 14.5px; cursor: pointer; background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(85, 82, 217, .4); }
  #nl-form button:hover, #launch-form button:hover { background: #4a47c8; }
  .launch-card #launch-form input { border: none; background: rgba(255,255,255,.94); color: var(--ink); }
  .launch-card #launch-form input::placeholder { color: var(--ink-faint); }
  .launch-card #launch-form input:focus { outline: 2px solid #fff; }
  .launch-card #launch-form button { background: var(--dark); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
  .launch-card #launch-form button:hover { background: #23263a; }
  .nl-card .rgpd { color: #7d8299; font-size: 11.5px; margin-top: 14px; }

  /* ----- Footer ----- */
  footer { background: var(--dark); color: #8a90a8; padding: 32px 0; font-size: 13px; }
  footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
  footer .brand { font-size: 15px; }
  footer .brand .mark { width: 26px; height: 26px; }
  footer nav { display: flex; gap: 20px; }
  footer a:hover { color: #fff; }
  footer .social { display: flex; align-items: center; gap: 10px; }
  footer .social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); color: #b6bcd0; transition: background .12s ease, color .12s ease, transform .12s ease; }
  footer .social a:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-1px); }
  footer .social svg { width: 16px; height: 16px; display: block; fill: currentColor; }
  /* « Fabriqué avec Survol et Claude » : chaque nom reste solidaire de sa
     marque. L'inline-flex evite que le glyphe et le nom se separent en fin de
     ligne, et gere l'espace entre les deux a la place d'une espace insecable. */
  footer .with { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: -2px; color: #b6bcd0; font-weight: 600; }
  footer .with svg { width: 13px; height: 13px; display: block; flex: none; }

  @media (max-width: 820px) {
    .grid, .sub-grid { grid-template-columns: 1fr; }
    .wordmark { font-size: 32px; }
    .baseline { font-size: 20px; }
    .hero { padding: 120px 0 90px; }
  }
  /* ----- Carte « en bref » (3e emplacement de la grille d'articles) -----
     Les brèves prennent la place du troisième article. Elles ne se déguisent pas
     en article : accent ambre, pas de vignette, quatre titres et leur date. Le
     lecteur voit en un coup d'œil que ce n'est pas le même format. */
  .brief-card { border-color: #f2dcc0; background: #fffdf9; }
  .brief-card .bc-head { background: linear-gradient(135deg, #f0913d, #f0c23d); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .brief-card .bc-pill { font-size: 12.5px; font-weight: 800; color: #2a1804; letter-spacing: -.01em; }
  .brief-card .bc-sub { font-size: 11px; font-weight: 800; color: rgba(42,24,4,.62); text-transform: uppercase; letter-spacing: .05em; }
  .brief-card .bc-list { list-style: none; padding: 6px 20px 0; flex: 1; margin: 0; }
  .brief-card .bc-list li { border-top: 1px solid #f2dcc0; }
  .brief-card .bc-list li:first-child { border-top: none; }
  .brief-card .bc-list a { display: block; padding: 11px 0; }
  .brief-card .bc-list .d { font-family: "SF Mono", Consolas, monospace; font-size: 10.5px; font-weight: 700; color: #b96a10; text-transform: uppercase; letter-spacing: .05em; }
  .brief-card .bc-list .t { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.34; margin-top: 3px; }
  .brief-card .bc-list a:hover .t { color: #b96a10; }
  .brief-card .bc-all { display: block; padding: 14px 20px 18px; font-size: 12.5px; font-weight: 800; color: #b96a10; }
  .brief-card .bc-all:hover { text-decoration: underline; }
