/* swipepage.app : la page d'accueil de la maison commune (maquettes 02 et 03
   de maquettes/swipepage/). Polices hébergées ici : aucun appel externe. */
@font-face { font-family: Roboto; src: url(assets/fonts/roboto.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(assets/fonts/cormorant-garamond.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Material Icons Round'; src: url(assets/fonts/material-icons-round.woff2) format('woff2'); font-display: block; }

:root {
  --bg: #101014; --surface: #1C1C28; --surface2: #242433; --hair: rgba(255,255,255,.12);
  --muted: rgba(255,255,255,.64); --dim: rgba(255,255,255,.45);
  --watch: #2A66FF; --read: #9B6BFF; --play: #FF8A3D; --listen: #22D3C5; --like: #3DDC97;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: #fff; font-family: Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
.mi { font-family: 'Material Icons Round'; font-weight: normal; font-style: normal; font-size: 1.2em; line-height: 1; display: inline-block; white-space: nowrap; letter-spacing: normal; text-transform: none; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; vertical-align: -0.2em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--listen); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* Boutons, pastilles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-w { background: #fff; color: #000; }
.btn-o { border: 1px solid rgba(255,255,255,.3); }
.btn-o:hover { background: rgba(255,255,255,.06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; font-size: 13.5px; font-weight: 700; }
.pill-read { background: #9B6BFF26; color: #C9B2FF; border: 1px solid #9B6BFF66; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--c, #fff) 16%, transparent); color: var(--c, #fff); }
.tag-ok { --c: var(--like); }
.tag-white { background: #fff; color: #000; }

/* Barre du haut */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(16,16,20,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.word { font-weight: 900; font-size: 23px; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--read), var(--watch) 45%, var(--listen)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: none; gap: 28px; margin-left: 40px; flex: 1; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:hover { color: #fff; }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .links { display: flex; } .nav .btn { margin-left: 0; } }

/* Accueil */
.hero { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 24px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 520px; padding-top: 64px; padding-bottom: 40px; gap: 40px; } }
h1 { font-weight: 900; font-size: clamp(40px, 8vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin: 20px 0 18px; }
.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) { .ctas .btn { width: 100%; } }
.small { margin-top: 16px; color: var(--dim); font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* Le paquet de cartes de l'accueil (décor) */
.deck { position: relative; height: 330px; max-width: 520px; width: 100%; margin: 0 auto; order: -1; }
@media (min-width: 960px) { .deck { height: 500px; order: 0; } }
.card { position: absolute; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); overflow: hidden; }
.card-film { width: 46%; aspect-ratio: 2/3; left: 4%; top: 8%; transform: rotate(-11deg); background: radial-gradient(circle at 50% 38%, rgba(255,240,220,.55) 0 22%, transparent 34%), linear-gradient(180deg, #C98A4B, #2B160B); animation: float 7s ease-in-out infinite; }
.film-tag { position: absolute; left: 10%; bottom: 8%; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #000; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 14px; }
.card-book { width: 48%; aspect-ratio: 2/3; left: 27%; top: 14%; transform: rotate(3deg); background: linear-gradient(180deg, #1B2A41 0 58%, #C9A227 58% 100%); display: flex; flex-direction: column; justify-content: space-between; padding: 9% 9% 7%; animation: float 7s ease-in-out -2s infinite; overflow: visible; }
.card-book::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4%; background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.08)); border-radius: 18px 0 0 18px; }
.book-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(20px, 3.4vw, 34px); line-height: 1.05; color: #F3E6C4; }
.book-author { font-size: clamp(9px, 1.3vw, 12px); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #1B2A41; }
.stamp { position: absolute; left: -10%; top: 46%; transform: rotate(-14deg); border: 4px solid var(--like); color: var(--like); font-weight: 900; font-size: clamp(18px, 3vw, 28px); letter-spacing: .06em; padding: 0 12px; border-radius: 8px; background: rgba(0,0,0,.3); }
.card-soon { width: 40%; aspect-ratio: 2/3; right: 2%; top: 4%; transform: rotate(12deg); background: repeating-linear-gradient(135deg, #FF8A3D22 0 14px, #22D3C522 14px 28px), var(--surface); border: 1px dashed rgba(255,255,255,.3); display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; padding-right: 9%; text-align: right; color: var(--muted); font-weight: 700; font-size: 14px; box-shadow: none; }
.card-soon .mi { font-size: 34px; }
.card-soon em { font-style: normal; font-weight: 400; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .card-film, .card-book { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* Sections */
.section { padding-top: 48px; padding-bottom: 16px; }
h2 { font-weight: 900; font-size: clamp(28px, 4.4vw, 38px); line-height: 1.1; }
.sub { color: var(--muted); font-size: 17px; margin: 8px 0 22px; }
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.tile { background: var(--surface); border: 1px solid var(--hair); border-top: 3px solid var(--c); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tile-later { opacity: .72; }
.tile .tag { --c: inherit; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.tile h3 { font-size: 20px; font-weight: 900; line-height: 1.2; }
.tile p { color: var(--muted); font-size: 14.5px; flex: 1; }
.tile .note { flex: 0; font-size: 13.5px; color: var(--dim); }
.tile .btn { align-self: flex-start; }
.appicon { position: relative; width: 64px; height: 64px; border-radius: 15px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), #0E1430; box-shadow: 0 10px 30px rgba(0,0,0,.5); overflow: hidden; }
.appicon .back { position: absolute; left: 21px; top: 14px; width: 27px; height: 36px; border-radius: 4px; background: var(--c); transform: rotate(10deg); }
.appicon .front { position: absolute; left: 14px; top: 13px; width: 27px; height: 36px; border-radius: 4px; background: linear-gradient(180deg, #fff, #E3E9FF); transform: rotate(-8deg); display: flex; align-items: center; justify-content: center; color: var(--c); }
.appicon .front .mi { font-size: 17px; vertical-align: 0; }

/* Ta page */
#ta-page { padding-top: 48px; scroll-margin-top: 70px; }
#univers, #comment { scroll-margin-top: 70px; }
.page-band { display: grid; gap: 32px; align-items: center; padding: 32px 20px; border-radius: 24px; background: linear-gradient(120deg, #2A66FF22, #9B6BFF1c 50%, #22D3C514); }
@media (min-width: 960px) { .page-band { grid-template-columns: 1fr 440px; padding: 50px 56px; gap: 56px; } }
.page-text h2 { margin: 14px 0 12px; }
.url { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: clamp(16px, 2.4vw, 20px); color: #C9D6FF; margin-bottom: 18px; word-break: break-all; }
.checks { list-style: none; color: var(--muted); font-size: 16.5px; display: grid; gap: 6px; }
.checks .mi { color: var(--like); margin-right: 6px; }
.profile { background: linear-gradient(160deg, #2A66FF33, #9B6BFF22 50%, transparent), var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 22px; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #40C4FF; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 28px; flex: none; }
.profile-head strong { display: block; font-size: 22px; font-weight: 900; }
.handle { color: var(--muted); font-size: 14px; }
.bio { font-size: 14px; color: rgba(255,255,255,.85); margin: 12px 0; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.counts > span { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 700; }
.profile figcaption { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m { position: relative; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.m i { position: absolute; left: 8%; right: 8%; top: 10%; font-family: 'Cormorant Garamond', serif; font-style: normal; font-weight: 700; font-size: 13px; line-height: 1.05; }
.m .star { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 11px; background: rgba(0,0,0,.7); color: #40C4FF; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.m1 { background: radial-gradient(circle at 50% 38%, rgba(255,240,220,.55) 0 22%, transparent 34%), linear-gradient(180deg, #7C8A93, #1B2228); }
.m2 { background: repeating-radial-gradient(circle at 50% 66%, transparent 0 5px, #E7B75F55 5px 6px), #0F3B3A; color: #F6E7C1; }
.m3 { background: radial-gradient(circle at 50% 38%, rgba(255,240,220,.55) 0 22%, transparent 34%), linear-gradient(180deg, #2E7D74, #0D1F1D); }
.m4 { background: linear-gradient(180deg, #0B3A5A, #041622); color: #BEE7FF; }
.example { margin-top: 12px; font-size: 12px; color: var(--dim); }

/* Étapes */
.steps { display: grid; gap: 24px; padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { display: flex; gap: 14px; }
.round { width: 48px; height: 48px; border-radius: 24px; background: var(--surface2); display: flex; align-items: center; justify-content: center; flex: none; font-size: 24px; vertical-align: 0; }
.step h3 { font-size: 18px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* Pied de page */
.foot { border-top: 1px solid var(--hair); margin-top: 20px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 24px; padding-bottom: 30px; color: var(--dim); font-size: 14px; }
.foot a { color: var(--muted); }
.tmdb { flex-basis: 100%; font-size: 12.5px; }
@media (max-width: 520px) { .card-soon { right: 5%; width: 34%; padding-right: 12%; font-size: 12px; } .card-soon .mi { font-size: 26px; } }
