/* Boutons « bientôt disponible » + micro-animations (ajouté par tools/site/prepare.py après extra.css). */

/* Manrope hébergée sur le site (tools/site/fonts) : plus de Google Fonts */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/manrope-400.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/manrope-500.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/manrope-600.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/manrope-700.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/manrope-800.woff2) format("woff2"); }

/* ---------- « Créer ma liste » : remplace App Store / Google Play et « Découvrir Psst » (prepare.py) ----------
   Copie du bouton principal de l'app (PrimaryButton, mobile/src/components/ui.tsx + lib/theme.ts) : dégradé
   horizontal #A2E6D5 → #ABD4F8 → #C6B3F5, coins 18 px, 58 px de haut, Manrope 700 18 px #2A3340, flèche 18 px,
   ombre bleutée (#96AAE6, 35 %, flou 10, décalage 8). Rien de plus : ni bandes, ni reflet. */
.create-row { display: flex; margin: 0 0 4px; }
.create-btn {
  --app-gradient: linear-gradient(90deg, #A2E6D5 0%, #ABD4F8 52%, #C6B3F5 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: min(100%, 400px); height: 58px; padding: 0 16px; border-radius: 18px;
  background: var(--app-gradient); color: #2A3340;
  font-size: 18px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px rgba(150, 170, 230, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.create-btn svg { flex: none; }
.create-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(150, 170, 230, 0.45); }
.create-btn:active { opacity: 0.85; transform: none; }
.create-btn:focus-visible, .nav-cta.create:focus-visible { outline: 3px solid #2A3340; outline-offset: 3px; }
/* bandeau du bas de l'accueil */
.cta .create-row { flex: none; margin: 0; }
.cta .create-btn { width: 300px; }
/* Marges du bandeau (ordinateur) : il était à ~93 px des articles mais ~184 px du pied de page (82 de marge +
   102 de padding de section). On équilibre (~74 / 80) et on recale l'intérieur : le ruban a ~10 px de vide
   transparent à gauche, donc padding gauche réduit pour que le bord visuel soit le même des deux côtés. */
@media (min-width: 761px) {
  .journal { padding-bottom: 80px; }
  .cta { margin: 56px 0 0; padding: 28px 28px 28px 20px; gap: 32px; }
  .cta-left { gap: 18px; }
}

/* en-tête : le même bouton, en petit */
.nav-cta.create {
  background: linear-gradient(90deg, #A2E6D5 0%, #ABD4F8 52%, #C6B3F5 100%); color: #2A3340; font-weight: 700;
  border-radius: 14px; box-shadow: 0 6px 16px rgba(150, 170, 230, 0.35);
}
.nav-cta.create:hover { box-shadow: 0 8px 20px rgba(150, 170, 230, 0.45); }

@media (max-width: 760px) {
  .create-row { justify-content: center; }
  .create-btn { width: 100%; }
  .cta .create-row { width: 100%; }
  .cta .create-btn { width: 100%; }
}

/* ---------- micro-animations des autres boutons ---------- */
.nav-cta,
.journal-all,
.reading-cta a {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(58, 68, 82, 0.22);
}
.nav-cta:hover span { animation: psst-nudge 0.9s ease-in-out infinite; }
.nav-cta span { display: inline-block; }
.journal-all:hover { transform: translateX(2px); }
.scroll-link span { display: inline-block; animation: psst-nudge 2.2s ease-in-out infinite; }
.carousel-tools button { transition: transform 0.2s ease, background-color 0.2s ease; }
.carousel-tools button:hover { transform: translateY(-1px); }

@keyframes psst-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-link span,
  .nav-cta:hover span { animation: none; }
  .create-btn:hover, .nav-cta:hover { transform: none; }
}

/* ---------- articles écrits via l'API : listes et liens dans le texte (absents des articles d'origine) ---------- */
.reading section ul,
.reading section ol { padding-left: 22px; margin: 0 0 16px; }
.reading section li { font-size: 16px; line-height: 1.95; color: #606b78; }
.reading section li::marker { color: #7EBCA7; }
.reading section p a,
.reading section li a { color: #4c6f63; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- accessibilité : contrastes WCAG AA ----------
   Mêmes teintes que le design d'origine, un cran plus sombres : 4,5:1 sur le fond #FCFBF8 pour le texte courant,
   (« vos envies » : dégradé animé plus bas, voulu tel quel). */
html:root { --muted: #6D737E; }
body .eyebrow { color: #6D7474; }
body .scroll-link { color: #6C737B; }
body .section-kicker { color: #6E737B; }
body .article-tag { color: #6C737C; }
body .footer-links { color: #6C737D; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- adresse de contact (pied de page) : copiée au clic, bulle « Adresse copiée » ---------- */
.copy-mail { position: relative; }
.copy-mail.copied::after {
  content: "Adresse copiée";
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 14px rgba(58, 68, 82, 0.22);
}


/* ---------- page /android : les trois étapes pour devenir testeur ---------- */
.beta-steps { list-style: none; counter-reset: beta; padding: 0; margin: 34px 0 10px; display: grid; gap: 16px; }
.beta-steps li {
  counter-increment: beta; position: relative; padding: 24px 24px 26px 82px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(57, 67, 81, 0.06);
}
.beta-steps li::before {
  content: counter(beta); position: absolute; left: 24px; top: 24px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--ink); background: var(--sea-gradient);
}
.reading .beta-steps h2 { font-size: 21px; margin: 6px 0 8px; }
.reading .beta-steps p { margin: 0 0 16px; }
.beta-btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff !important;
  padding: 12px 20px; border-radius: 11px; font-size: 13px; font-weight: 700; text-decoration: none !important;
}
.beta-btn::after { content: "↗"; font-weight: 400; }
.beta-btn:hover { transform: translateY(-1px); }
@media (max-width: 760px) {
  .beta-steps li { padding: 70px 20px 22px; }
  .beta-steps li::before { left: 20px; top: 20px; }
}


/* page /android : les avantages du test */
.beta-perks { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; }
.beta-perks li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.7; color: #586675; }
.beta-perks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--sea-gradient);
}
.beta-perks strong { color: var(--ink); display: block; }

/* ---------- carrousel d'articles de l'accueil : place pour l'ombre des cartes au survol ----------
   Il défile horizontalement, donc coupe tout ce qui dépasse : l'ombre du survol était tranchée en rectangle.
   On l'agrandit tout autour (padding) et on compense (marges négatives) : les cartes ne bougent pas, et le
   débord reste dans les marges de la page (pas de défilement horizontal). */
body .home-carousel { padding: 26px 20px 58px; margin: -22px -20px -40px; scroll-padding-inline: 20px; }
@media (min-width: 1051px) {
  body .home-carousel { padding-inline: 32px; margin-inline: -32px; scroll-padding-inline: 32px; }
}

/* ---------- bandeau de consentement (analytics.js) : discret, en bas, « Refuser » et « Accepter » à égalité ---------- */
#psst-consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 400px;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(58, 68, 82, 0.16); font-family: Manrope, system-ui, sans-serif;
  animation: psst-consent-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
#psst-consent.out { opacity: 0; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; }
#psst-consent p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #586675; }
#psst-consent strong { color: var(--ink); }
#psst-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.psst-consent-actions { display: flex; gap: 10px; }
.psst-consent-actions button {
  flex: 1; font: inherit; font-size: 13px; font-weight: 700; padding: 11px 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); transition: transform 0.15s ease;
}
.psst-consent-actions button[data-choice="1"] { background: var(--ink); color: #fff; }
.psst-consent-actions button:hover { transform: translateY(-1px); }
@keyframes psst-consent-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { #psst-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { #psst-consent { animation: none; } }

/* ---------- « vos envies » (titre d'accueil) : dégradé Sea Glass → Sky Mist → Soft Iris qui évolue dans le temps ----------
   Fine ombre portée pour que les teintes pastel restent lisibles sur le fond crème ; figé si l'utilisateur réduit les animations. */
body .hero-copy .sea {
  color: #A9D5F8;
  background: linear-gradient(90deg, #BDEFE4, #A9D5F8, #C3B2F4, #A9D5F8, #BDEFE4) 0 50% / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(58, 68, 82, .14));
  animation: envies-shift 9s ease-in-out infinite alternate;
}
@keyframes envies-shift { to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { body .hero-copy .sea { animation: none; background-position: 50% 50%; } }
