@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
/* Pages photo — charte 91FM (même style que qrcode.webradio91fm.fr) */
:root { --brand: #D91319; --card: #ffffff; --text: #0B0B0D; --muted: #6b7280; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #fff; text-align: center; -webkit-font-smoothing: antialiased; background: #0a0809; }
.page-bg { position: fixed; inset: 0; z-index: -2; background: url('https://media.webradio91fm.fr/assets/content/backgrounds/1000013080.jpeg') center / cover no-repeat; }
.page-blur { position: fixed; inset: 0; z-index: -1; backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  background: linear-gradient(180deg, rgba(10, 8, 9, .55) 0%, rgba(10, 8, 9, .8) 100%); }
main { max-width: 460px; margin: 0 auto; padding: 28px 20px 36px; }

.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 26px; color: rgba(255, 255, 255, .75); font-size: 14px; }
.brand img { height: 58px; }
.brand .radio-logo { height: 36px; width: auto; }

.hero h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; margin: 0 0 8px; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.hero p { color: rgba(255, 255, 255, .85); margin: 0 0 22px; line-height: 1.5; font-size: 15px; }
.photo { margin: 0 0 16px; }
.photo img { width: 100%; border-radius: 8px; background: #fff; padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: block; }
.ref { color: rgba(255, 255, 255, .45); font-size: 11px; margin: 12px 0 0; letter-spacing: .08em; }

.btn-site { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15px; padding: 15px 20px; border-radius: 14px; transition: transform .15s ease, box-shadow .15s ease; }
.btn-site:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(217, 19, 25, .35); }

.connect { margin-top: 40px; display: flex; flex-direction: column; align-items: center; }
.connect h2 { font-size: clamp(1.5rem, 5.5vw, 1.9rem); font-weight: 800; margin: 0 0 22px; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.card { width: 100%; background: var(--card); color: var(--text); border-radius: 20px; padding: 26px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; align-items: center; gap: 22px; }
.block { width: 100%; }
.section-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.app-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.app-badges a { display: inline-flex; }
.app-badges img { height: 40px; width: auto; display: block; }
.socials { display: flex; flex-direction: column; gap: 8px; }
.socials a { display: flex; align-items: center; gap: 12px; background: #f8f9fa; color: var(--text); text-decoration: none; padding: 11px 14px; border-radius: 12px;
  font-weight: 700; font-size: 14px; transition: background .15s ease, transform .15s ease; }
.socials a:hover { background: #f1f2f4; transform: translateX(2px); }
.socials img { width: 26px; height: 26px; flex: 0 0 26px; }
.socials .arrow { margin-left: auto; color: var(--muted); font-weight: 400; }
footer { margin-top: 26px; font-size: 11.5px; color: rgba(255, 255, 255, .65); text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }

.code-form { display: flex; flex-direction: column; gap: 10px; text-align: left; margin: 0 0 8px; }
.code-form label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.code-form input { width: 100%; font: inherit; font-size: 26px; font-weight: 800; letter-spacing: .18em; text-align: center; text-transform: uppercase;
  color: var(--text); background: #fff; border: 2px solid transparent; border-radius: 14px; padding: 13px 16px; outline: none; }
.code-form input::placeholder { color: #c4c7cc; }
.code-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(217, 19, 25, .25); }
.code-form input[aria-invalid="true"] { border-color: var(--brand); }
.code-form .btn-site { border: 0; cursor: pointer; font-family: inherit; margin-top: 4px; }
.code-error { margin: 0; font-size: 14px; line-height: 1.45; color: #ffd6d7; background: rgba(217, 19, 25, .22); border: 1px solid rgba(217, 19, 25, .55);
  border-radius: 12px; padding: 10px 12px; }

/* Page photo : actions, partage, date de disponibilité */
.actions { display: flex; flex-direction: column; gap: 10px; }
.btn-share { display: flex; align-items: center; justify-content: center; width: 100%; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; padding: 14px 20px; transition: background .15s ease; }
.btn-share:hover { background: rgba(255, 255, 255, .2); }
.btn-share[hidden] { display: none; }
.share-note { min-height: 0; margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.share-note:empty { display: none; }
.until { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .75); }

/* Accueil : photos mémorisées sur ce téléphone */
.recent { margin-top: 30px; text-align: left; }
.recent[hidden] { display: none; }
.recent h2 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); margin: 0 0 10px; }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.recent-list li { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: 6px; }
.recent-list a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.recent-list img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, .15); flex: 0 0 72px; }
.recent-list span { min-width: 0; display: flex; flex-direction: column; }
.recent-list strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-list small { font-size: 12px; color: rgba(255, 255, 255, .65); letter-spacing: .02em; }
.recent-remove { flex: 0 0 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .6); font-size: 22px; cursor: pointer; }
.recent-remove:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.recent-note { margin: 8px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .5); }

/* Pages légales */
.legal { text-align: left; background: var(--card); color: var(--text); border-radius: 20px; padding: 22px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.55; }
.legal h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 20px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin: 0 0 8px; }
.legal ul { padding-left: 18px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); font-weight: 700; }
.legal-more { margin-top: 18px !important; color: var(--muted); }
.legal-links { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.legal-links a { color: rgba(255, 255, 255, .75); text-decoration: underline; text-underline-offset: 2px; }
/* Loader de la page « Merci de patienter » */
.loader { position: relative; width: 54px; height: 54px; margin: 40px auto 24px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .25); border-top-color: var(--brand); animation: loader-spin 1s linear infinite; }
.loader[hidden], .btn-site[hidden] { display: none; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader { animation-duration: 3s; } }
.dots span { opacity: .15; animation: dot-blink 1.4s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dot-blink { 0%, 60%, 100% { opacity: .15; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; opacity: 1; } }
.hero .pending-lead { margin: 18px 0 6px; }
.hero .pending-note { font-size: 14px; }
.hero .pending-note em { font-style: italic; color: rgba(255, 255, 255, .7); }
.stopped .dots, .stopped .pending-note { display: none; }
/* Photo arrivée : le loader devient une coche (puis la page de la photo s'affiche) */
.ready .loader { animation: loader-pop .45s ease-out; background: var(--brand); border-color: var(--brand); }
.ready .loader::after { content: ''; position: absolute; left: 16px; top: 6px; width: 12px; height: 22px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.ready .dots, .ready .pending-lead, .ready .pending-note { display: none; }
@keyframes loader-pop { 0% { transform: scale(.6); opacity: .4; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.hero .context { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; }
.hero .context strong { color: #fff; font-size: 17px; }
.hero .context span { font-size: 14px; color: rgba(255, 255, 255, .75); }

/* Page de la photo : elle se « développe » façon Polaroid (floue et pâle, puis nette), puis les boutons arrivent */
.photo img { opacity: 0; animation: develop 1.4s ease-out .15s forwards; }
@keyframes develop {
  0% { opacity: 0; filter: blur(16px) saturate(0) brightness(1.5); transform: translateY(18px) scale(.96) rotate(-1.5deg); }
  55% { opacity: 1; filter: blur(6px) saturate(.4) brightness(1.2); }
  100% { opacity: 1; filter: none; transform: none; }
}
.actions > *, .share-note, .until, .ref { opacity: 0; animation: rise-in .5s ease-out forwards; animation-delay: 1.6s; }
.actions > :nth-child(1) { animation-delay: 1.1s; }
.actions > :nth-child(2) { animation-delay: 1.25s; }
.actions > :nth-child(3) { animation-delay: 1.4s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .photo img, .actions > *, .share-note, .until, .ref { animation: none; opacity: 1; } }
