/* ── Reset + tokens ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f4e8d0;
  --surface:   #ffffff;
  --surface2:  #e9d9b8;
  --fg:        #1d1a14;
  --muted:     rgba(29,26,20,.58);
  --line:      rgba(29,26,20,.12);
  --accent:    #e10600;
  --radius:    14px;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Fraunces', serif;
}

html, body {
  background: linear-gradient(160deg, #dab896 0%, #d4a884 100%);
  color: var(--fg);
  font-family: var(--font-sans);
  min-height: 100%;
  padding: 28px 12px 48px;
}

/* ── Page wrapper ───────────────────────────────────── */
.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: calc(100dvh - 76px);
  background: var(--bg);
  border-radius: 28px;
  box-shadow: 0 4px 40px rgba(0,0,0,.13), 0 0 0 1px var(--line);
  overflow: hidden;
}

/* ── Bannière ───────────────────────────────────────── */
.banner {
  height: 180px;
  background: url('../assets/banniere2.png') center / cover no-repeat;
  background-color: var(--surface2);
  position: relative;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 100%);
  pointer-events: none;
}

.location-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  font-family: var(--font-sans);
}

/* ── Avatar ─────────────────────────────────────────── */
.avatar {
  margin-top: -54px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.avatar-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

/* ── Wordmark ────────────────────────────────────────── */
.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0 22px;
}

.wordmark img {
  height: 42px;
  object-fit: contain;
}

.verify-badge {
  flex-shrink: 0;
  color: var(--fg);
}

/* ── Handle + bio ───────────────────────────────────── */
.handle {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}

.bio {
  margin: 12px auto 0;
  padding: 0 22px;
  text-align: center;
  max-width: 360px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg);
  line-height: 1.35;
}

.bio span {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}

/* ── Page body ──────────────────────────────────────── */
.page-body {
  padding: 0 18px 32px;
}

/* ── Social row ─────────────────────────────────────── */
.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  list-style: none;
}

.social-row a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.social-row a:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.social-row a.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}

.social-row a.social-facebook {
  background: #1877f2;
  color: #fff;
}

.social-row a.social-pinterest {
  background: #e60023;
  color: #fff;
}

/* ── Link buttons ────────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
  position: relative;
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 14px 30px rgba(0,0,0,.1);
}

.link-btn.feature {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.link-btn.feature:hover {
  box-shadow: 0 14px 30px rgba(225,6,0,.35);
}

.link-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.link-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -.005em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-badge {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.2);
  color: #fff;
}

.link-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-sans);
}

.link-arrow {
  opacity: .55;
  transition: opacity .22s, transform .22s;
  flex-shrink: 0;
}

.link-btn:hover .link-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── Tutos section ───────────────────────────────────── */
.tutos-section {
  margin-top: 22px;
}

.section-header {
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -.01em;
}

/* ── Carousel ────────────────────────────────────────── */
.carousel {
  user-select: none;
  cursor: grab;
}

.carousel:active {
  cursor: grabbing;
}

.carousel-clip {
  overflow: visible;
  clip-path: inset(0 -4px 0 0);
}

.carousel-track {
  display: flex;
  transition: transform .35s ease;
}

.carousel-page {
  min-width: calc(100% - 52px);
  margin-right: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Swipe hint ──────────────────────────────────────── */
.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-sans);
  letter-spacing: .03em;
  animation: hint-pulse 1.6s ease-in-out 0.8s 3;
  transition: opacity .4s;
}

.swipe-hint svg {
  animation: hint-slide 1.6s ease-in-out 0.8s 3;
}

.swipe-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes hint-pulse {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1; }
}

@keyframes hint-slide {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

/* ── Tuto card ────────────────────────────────────────── */
.tuto-card {
  display: flex;
  flex-direction: column;
  background: var(--surface2);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--line);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
}

.tuto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

.tuto-poster {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #3a1f1a 0%, #0e0d0b 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tuto-poster[style*="background-image"] {
  background-color: #0e0d0b;
}

.tuto-poster--tt {
  background: linear-gradient(160deg, var(--bg) 0%, #e8c9b0 100%);
}

.tuto-poster--tt .tuto-play {
  background: #010101;
  color: #fff;
  width: 52px;
  height: 52px;
}

.tuto-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #0e0d0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  transition: transform .25s;
}

.tuto-card:hover .tuto-play {
  transform: scale(1.08);
}

.tuto-platform {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  font-family: var(--font-sans);
  color: #fff;
  background: rgba(0,0,0,.78);
}

.tuto-platform--yt {
  background: var(--accent);
}

.tuto-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
}

.tuto-footer {
  padding: 12px 12px 13px;
  min-height: 56px;
}

.tuto-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tuto-views {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

/* ── Carousel dots ───────────────────────────────────── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.carousel-dot.active {
  background: var(--fg);
  transform: scale(1.2);
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  text-align: center;
  margin-top: 18px;
  padding-bottom: 32px;
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--font-sans);
  letter-spacing: .02em;
}
