/*
 * La Pochette — page d'accueil vitrine (racine la-pochette.fr/) + page /telecharger.
 * Remplace la carte « Prochainement » (accueil.css reste utilisé par 404.html).
 * CSP-safe : style-src 'self', aucun style inline, police système, zéro ressource
 * externe. Palette de marque (theme.ts app) : maroon #970000 + déclinaisons
 * catégories (or, vert, bleu, orange) + beige #FFD8B6.
 */
:root {
  --rouge: #970000;
  --rouge-fonce: #7a0000;
  --or: #e89a03;
  --vert: #188a4e;
  --bleu: #2753a0;
  --orange: #e95f35;
  --beige: #ffd8b6;
  --fond: #ffffff;
  --fond-doux: #f5f5f7;
  --carte: #ffffff;
  --texte: #0b0f1a;
  --texte-doux: #5a6072;
  --bord: #e6e8ee;
  --rayon: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  background: linear-gradient(180deg, #fff6ef 0%, var(--fond) 100%);
  border-bottom: 1px solid var(--bord);
}
.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}
.marque {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.marque img {
  width: 52px;
  height: 52px;
  border-radius: 22.5%;
  box-shadow: 0 6px 16px rgba(151, 0, 0, 0.18);
}
.marque span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rouge);
  letter-spacing: -0.01em;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  color: var(--rouge);
}
.hero .sous-titre {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--texte-doux);
  max-width: 46ch;
}
.hero .questions {
  list-style: none;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hero .questions li {
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 3px solid var(--rouge);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--texte);
}
.cta {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bouton {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  background: var(--rouge);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.bouton:hover { background: var(--rouge-fonce); }
.bouton:active { transform: scale(0.98); }
.bouton-clair {
  background: transparent;
  color: var(--rouge);
  border: 1.5px solid var(--rouge);
}
.bouton-clair:hover { background: rgba(151, 0, 0, 0.06); }
.pastille {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rouge);
  background: rgba(151, 0, 0, 0.08);
  border-radius: 999px;
}

/* ───── Téléphone : capture réelle dans un cadre CSS ───── */
.telephone {
  justify-self: center;
  width: 290px;
  border-radius: 38px;
  background: #10131a;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(16, 21, 31, 0.28);
}
.telephone .capture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* ─────────────────── Sections communes ─────────────────── */
section { padding: 3.2rem 1.5rem; }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section-titre {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-align: center;
}
.section-sous {
  margin: 0.6rem auto 0;
  text-align: center;
  color: var(--texte-doux);
  max-width: 56ch;
}

/* Étapes « comment ça marche » */
.etapes {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.etape {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--fond-doux);
  border-radius: var(--rayon);
}
/* Numéro en grand chiffre « contour » dans le coin haut-droit (filigrane,
   même famille visuelle que les icônes des atouts). Repli plein très pâle
   si -webkit-text-stroke n'est pas supporté. */
.etape .num {
  position: absolute;
  top: -0.9rem;
  right: 0.7rem;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(151, 0, 0, 0.09);
  pointer-events: none;
}
@supports (-webkit-text-stroke: 1px red) {
  .etape .num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(151, 0, 0, 0.26);
  }
}
/* Le texte repasse au-dessus du numéro (positionné) + trait d'accent. */
.etape h3,
.etape p { position: relative; }
.etape h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.etape h3::before {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--rouge);
  margin-bottom: 0.55rem;
}
.etape p { font-size: 0.9rem; color: var(--texte-doux); }

/* Grille d'atouts */
.atouts {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.atout {
  position: relative;
  overflow: hidden;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.3rem 1.4rem;
}
/* Icône en filigrane : grande, maroon très transparent, coin bas-droit,
   légèrement inclinée et débordante (rognée par overflow:hidden). */
.atout-icone {
  position: absolute;
  right: -14px;
  bottom: -16px;
  width: 104px;
  height: 104px;
  color: var(--rouge);
  opacity: 0.07;
  transform: rotate(-8deg);
  pointer-events: none;
}
/* Le texte repasse au-dessus du filigrane (positionné). */
.atout h3,
.atout p { position: relative; }
.atout h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.atout p { font-size: 0.88rem; color: var(--texte-doux); }

/* Bandeau confiance (sombre) */
.confiance { background: #14161c; color: #d6d9e0; }
.confiance .section-titre { color: #fff; }
.confiance .section-sous { color: #a9aebb; }
.badges {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid #3a4050;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #c9cdd6;
}
.badge-icone {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--beige);
}
.confiance .cta { justify-content: center; }
.confiance .bouton-clair {
  color: #fff;
  border-color: #fff;
}
.confiance .bouton-clair:hover { background: rgba(255, 255, 255, 0.08); }

/* Bloc « import PC » discret */
.envoyer-aide {
  border-top: 1px solid var(--bord);
  text-align: center;
}
.envoyer-aide p { color: var(--texte-doux); font-size: 0.95rem; }
.envoyer-aide a { color: var(--rouge); font-weight: 600; }

/* ─────────────────── Page /telecharger ─────────────────── */
.dl-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--fond-doux);
}
.dl-carte {
  width: 100%;
  max-width: 460px;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 2.4rem 1.8rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(16, 21, 31, 0.06);
}
.dl-carte .logo {
  width: 84px;
  height: 84px;
  border-radius: 22.5%;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 8px 22px rgba(151, 0, 0, 0.18);
}
.dl-carte h1 { font-size: 1.35rem; letter-spacing: -0.01em; }
.dl-carte .sous {
  margin-top: 0.5rem;
  color: var(--texte-doux);
  font-size: 0.95rem;
}
.stores {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.store-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.8rem 1rem 0.9rem;
  border-radius: 12px;
  background: #10131a;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.store-btn:hover { opacity: 0.88; }
.store-btn:active { transform: scale(0.98); }
.store-btn .petit {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.store-btn .grand {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.store-btn.secondaire { order: 1; opacity: 0.92; }
.store-note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--texte-doux);
}
.dl-qr {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--bord);
}
.dl-qr img {
  width: 150px;
  height: 150px;
  display: block;
  margin: 0.6rem auto 0;
  border: 1px solid var(--bord);
  border-radius: 10px;
}
.dl-qr p { font-size: 0.85rem; color: var(--texte-doux); }
/* Masqué par défaut ; telecharger.js révèle selon la plateforme. */
.cache { display: none; }

/* ───────────────────────── Pied ───────────────────────── */
footer {
  border-top: 1px solid var(--bord);
  padding: 1.6rem 1rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--texte-doux);
}
footer a { color: var(--texte-doux); }
footer .liens { margin-top: 0.4rem; }

/* ──────────────────────── Responsive ──────────────────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.4rem;
  }
  .telephone { width: 240px; margin-top: 0.5rem; }
  .etapes, .atouts { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .atouts { grid-template-columns: repeat(2, 1fr); }
}
