/* ===========================================================
   LiberTag — site vitrine · feuille de style
   Palette « Velours » · Spectral / Comfortaa / Quicksand
   =========================================================== */

:root {
  /* Velours palette */
  --velours: #15100F;
  --velours-2: #19120F;
  --surface: #1C1512;
  --raise: #241B18;
  --or: #D4A24A;
  --or-chaud: #E0A93C;
  --or-deep: #A9772E;
  --or-dark: #7C5620;
  --creme: #F0E1C8;
  --ink: #EFE3D2;
  --muted: #A28D78;
  --faint: rgba(239, 227, 210, .5);
  --line: rgba(239, 227, 210, .09);
  --line-strong: rgba(239, 227, 210, .16);
  --or-soft: rgba(212, 162, 74, .12);
  --or-line: rgba(212, 162, 74, .42);

  /* category colors */
  --personne: #E0AAAA;
  --lieu: #AEC0D2;
  --even: #BFAEDA;
  --theme: #C9A78C;
  --divers: #A89E94;

  /* accent (tweakable) */
  --accent: var(--or);
  --accent-chaud: var(--or-chaud);
  --accent-deep: var(--or-deep);
  --accent-soft: var(--or-soft);
  --accent-line: var(--or-line);
  --accent-ink: #1C1409;

  /* type */
  --serif: 'Spectral', Georgia, serif;
  --wm: 'Comfortaa', system-ui, sans-serif;
  --ui: 'Quicksand', system-ui, sans-serif;

  /* layout */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 20px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--velours);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* deep velvet vignette / grain feel on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(212, 162, 74, .10), transparent 55%),
    radial-gradient(90% 60% at 0% 0%, rgba(162, 62, 85, .06), transparent 50%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; z-index: 1; }

/* ----------------------------------------------------------- type */
h1, h2, h3 { margin: 0; font-weight: 500; }
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: .55;
}
.eyebrow.center::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--creme);
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--creme);
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-head .lead { margin: 18px auto 0; }

/* ----------------------------------------------------------- wordmark / logo */
.wordmark {
  font-family: var(--wm);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--creme);
}
.wordmark .tag { color: var(--accent); }

.logo-lockup { display: inline-flex; align-items: center; gap: 11px; }
.logo-lockup .mark { width: 38px; height: 38px; flex: none; border-radius: 9px; }
.logo-lockup .wordmark { font-size: 25px; }
.logo-lockup .wordmark-img { height: 25px; width: auto; flex: none; }

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-gold {
  background: linear-gradient(180deg, var(--accent-chaud), var(--accent) 55%, var(--accent-deep));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -8px rgba(212, 162, 74, .5), inset 0 1px 0 rgba(255, 240, 200, .5);
}
.btn-gold:hover { box-shadow: 0 14px 38px -8px rgba(212, 162, 74, .65), inset 0 1px 0 rgba(255, 240, 200, .6); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--creme); background: rgba(239, 227, 210, .03); }

/* Google Play badge */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 58px;
  padding: 0 24px 0 20px;
  border-radius: 15px;
  background: linear-gradient(180deg, #221a16, #15100f);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: border-color .2s, transform .16s, box-shadow .2s;
}
.play-badge:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.play-badge .glyph { width: 26px; height: 28px; flex: none; }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.play-badge .pb-small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.play-badge .pb-big { font-family: var(--wm); font-size: 19px; font-weight: 600; color: var(--creme); white-space: nowrap; }

/* ----------------------------------------------------------- NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(18, 13, 11, .82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.nav .logo-lockup .mark { width: 32px; height: 32px; }
.nav .logo-lockup .wordmark { font-size: 21px; }
.nav .logo-lockup .wordmark-img { height: 21px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--creme); background: rgba(239, 227, 210, .04); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .06em;
  padding: 8px 12px;
  transition: color .18s, background .18s;
}
.lang-toggle button.on { background: var(--accent); color: var(--accent-ink); }

.nav-cta { height: 44px; padding: 0 20px; font-size: 14.5px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 11px; background: transparent; color: var(--ink); }
.burger svg { margin: auto; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 55;
  background: rgba(15, 11, 10, .97);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter) 40px;
  gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--serif); font-size: 26px; color: var(--creme); padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-cta { margin-top: 24px; }

/* ----------------------------------------------------------- HERO */
.hero { padding: clamp(48px, 9vw, 110px) 0 120px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero .display { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* hero · compatible-with logo strip */
.compat { margin-bottom: 17px; }
.compat-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0 0 18px; text-align: left; }
.compat-rows { display: flex; flex-direction: column; gap: 13px; align-items: flex-start; }
.compat-row { display: flex; gap: 8px; justify-content: flex-start; align-items: flex-start; }
.compat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 56px; }
.compat-logo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(244, 236, 223, .9); border: 2.5px solid var(--accent); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .55); }
.compat-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compat-logo.mk img { width: 88%; height: 88%; object-fit: contain; }
.compat-cap { font-size: 10.5px; line-height: 1.2; color: var(--muted); text-align: center; font-weight: 600; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 9px; }
.hero-note .stars { color: var(--accent); letter-spacing: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-glow {
  position: absolute;
  width: 120%; height: 120%;
  background: radial-gradient(50% 50% at 50% 45%, rgba(212, 162, 74, .22), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero-visual .phone { position: relative; z-index: 2; }
.hero-stage { position: relative; width: max-content; margin-inline: auto; }
.hero-stage .phone { width: 320px; }

/* floating per-photo tag hierarchies around hero phone */
.float-cluster {
  position: absolute;
  z-index: 3;
  display: flex;
  pointer-events: none;
  transform: translateY(-50%);
  will-change: translate;
  animation: floaty 7s ease-in-out infinite;
}
/* a single tag box */
.tnode {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 3.5px 8px;
  border-radius: 7px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .005em;
  color: var(--ink);
  background: rgba(22, 17, 16, .9);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .85);
}
.tnode .dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--dotc, var(--accent));
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--dotc, var(--accent)) 22%, transparent);
}

/* independent tags (point médian) — capsules enclosed in one stadium */
.tag-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(22, 17, 16, .52);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tag-group { background: rgba(22, 17, 16, .82); }
.tag-group .tnode { border-radius: 999px; box-shadow: none; background: rgba(239, 227, 210, .06); }
/* vertical stack of independent tags — chips keep the standard tnode look */
.tag-group.stack { flex-direction: column; align-items: stretch; gap: 5px; padding: 0; background: none; border: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tag-group.stack .tnode { justify-content: flex-start; border-radius: 7px; background: rgba(22, 17, 16, .9); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .85); }
/* star-rating chip */
.tnode.rating { gap: 3px; padding: 4px 9px; }
.tnode .st { width: 11px; height: 11px; flex: none; color: rgba(239, 227, 210, .22); }
.tnode .st.on { color: var(--accent); }

/* parenté (trait d'union) — staircase tree with golden elbow links */
.ftree { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ftree .tnode.lvl1 { margin-left: 18px; }
.ftree .tnode.lvl2 { margin-left: 36px; }
.ftree .tnode.lvl1::before,
.ftree .tnode.lvl2::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -13px;
  bottom: 50%;
  width: 13px;
  border-left: 1.7px solid var(--accent);
  border-bottom: 1.7px solid var(--accent);
  border-bottom-left-radius: 7px;
}

/* fine dotted leader linking each set to the edge of its photo */
.float-cluster::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 43px;
  border-top: 1.5px dotted color-mix(in srgb, var(--accent) 58%, transparent);
}
.fc1::after, .fc3::after, .fc5::after { left: 100%; }
.fc2::after, .fc4::after, .fc6::after { right: 100%; }

/* each set sits centred on its photo row */
.fc1, .fc3, .fc5 { align-items: flex-start; }
.fc1 { top: 33.6%; right: calc(100% + 20px); }
.fc3 { top: 54%;   right: calc(100% + 20px); }
.fc5 { top: 74.5%; right: calc(100% + 20px); }
.fc2 { top: 33.6%; left: calc(100% + 20px); }
.fc4 { top: 54%;   left: calc(100% + 20px); }
.fc6 { top: 74.5%; left: calc(100% + 20px); }
.fc2, .fc4 { animation-duration: 6.4s; }
.fc1 { animation-delay: 0s; }
.fc2 { animation-delay: 1.3s; }
.fc3 { animation-delay: 2.4s; }
.fc4 { animation-delay: .7s; }
.fc5 { animation-delay: 1.9s; }
.fc6 { animation-delay: 3.1s; }

@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .float-cluster { animation: none; } }
/* split layout: chains need room, so chips appear once the viewport allows */
@media (max-width: 1280px) { .hero:not(.hero-centered) .float-cluster { display: none; } }

/* hero layout variants (tweakable) */
/* split layout: stretch copy column to phone height and pin the compat+badge block to the bottom */
.hero:not(.hero-centered) .wrap { align-items: stretch; }
.hero:not(.hero-centered) .hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero:not(.hero-centered) .compat { margin-top: auto; }
.hero.hero-centered .wrap { grid-template-columns: 1fr; text-align: center; }
.hero.hero-centered .hero-copy { max-width: 680px; margin: 0 auto; }
.hero.hero-centered .hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero.hero-centered .hero-actions,
.hero.hero-centered .compat-logos,
.hero.hero-centered .hero-note { justify-content: center; }
.hero.hero-centered .eyebrow { justify-content: center; }
.hero.hero-centered .eyebrow::before { display: none; }
.hero.hero-centered .hero-visual { margin-top: 40px; }
.hero.no-chips .float-cluster { display: none; }
.pgrid.cols4 { grid-template-columns: repeat(4, 1fr); gap: 4px; }

/* ----------------------------------------------------------- PHONE MOCKUP */
.phone {
  width: clamp(260px, 80%, 320px);
  aspect-ratio: 320 / 660;
  border-radius: 40px;
  background: #2b2320;
  padding: 9px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), 0 8px 22px rgba(0,0,0,.4);
  flex: none;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--velours);
  display: flex;
  flex-direction: column;
  position: relative;
}
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  flex: none;
}
.status-bar .dots { display: inline-flex; gap: 5px; align-items: center; opacity: .85; }
.status-bar .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block; }

/* app header inside phone */
.app-head { padding: 8px 18px 12px; flex: none; }
.app-head .ah-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 12px; }
.app-head .ah-icons { display: flex; gap: 14px; align-items: center; }
.app-head .micro { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.app-head h4 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--creme); margin: 0; line-height: 1; }

.seg { display: flex; gap: 4px; padding: 4px; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 13px; margin: 12px 18px 0; }
.seg span { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 8px 0; border-radius: 9px; }
.seg span.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 10px rgba(212,162,74,.35); }

/* photo grid inside phone */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 12px 14px 0; overflow: hidden; }
.pgrid.cols2 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pgrid .tile { aspect-ratio: 1; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); position: relative; }
.pgrid .tile.star::after { content: "★"; position: absolute; top: 4px; right: 5px; font-size: 10px; color: var(--or-chaud); }
.pgrid .tile.framed { border: 4px solid #ece4d3; border-bottom-width: 11px; border-radius: 3px; }

/* hero · LiberTag Photothèque screen */
.lt-screen { display: flex; flex-direction: column; }
.lt-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; color: var(--muted); flex: none; }
.lt-tb-grp { display: flex; align-items: center; gap: 9px; background: rgba(239, 227, 210, .05); border: 1px solid var(--line); border-radius: 13px; padding: 7px 11px; }
.lt-tb-sep { width: 1px; height: 15px; background: var(--line-strong); flex: none; }
.lt-tb-tog { width: 25px; height: 25px; border-radius: 8px; background: rgba(239, 227, 210, .12); display: flex; align-items: center; justify-content: center; color: var(--creme); }
.lt-tb-count { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--creme); }
.lt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 12px; flex: none; }
.lt-title { font-family: var(--serif); font-weight: 500; font-size: 27px; color: var(--creme); margin: 0; line-height: 1; }
.lt-galeries { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px; padding: 7px 13px; white-space: nowrap; }
.lt-count { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--creme); white-space: nowrap; }
.lt-count svg { opacity: .85; }
.lt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 14px; overflow: hidden; align-content: start; }
.lt-photo { position: relative; aspect-ratio: 1 / 0.95; border-radius: 8px; background: #EBE2D0; padding: 7px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7); }
.lt-photo .ph { width: 100%; height: 100%; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); background-size: cover; background-position: center; }
.lt-photo .corner { position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: #9a5cf6; clip-path: polygon(100% 0, 0 0, 100% 100%); border-top-right-radius: 8px; }
.lt-tabbar { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 12px 12px; padding: 9px 8px; background: rgba(239, 227, 210, .04); border: 1px solid var(--line); border-radius: 18px; flex: none; }
.lt-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; font-size: 10px; font-weight: 600; color: var(--muted); }
.lt-tab svg { width: 20px; height: 20px; }
.lt-tab.search { justify-content: center; }
.lt-tab.search .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }

/* ----------------------------------------------------------- generic section spacing */
.band { padding: clamp(64px, 10vw, 130px) 0 120px; }

/* section rhythm — strictly within the velvet / gold charter.
   A subtly lifted velvet panel alternates with the base velvet; every seam
   between two dark sections is marked by a crisp gold-fading hairline.
   Clean separation, no festival of hues. */
.band-panel {
  background: linear-gradient(180deg, #20180F 0%, #1A130E 100%);
}
.band-seam::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 162, 74, .9) 24%, rgba(246, 213, 138, 1) 50%, rgba(212, 162, 74, .9) 76%, transparent);
  box-shadow: 0 0 14px -2px rgba(244, 206, 120, .5);
  z-index: 3;
}
/* on the cream panel a bright gold line washes out — use a deeper engraved gold */
.band-cream.band-seam::after {
  background: linear-gradient(90deg, transparent, rgba(169, 119, 46, .92) 26%, rgba(201, 148, 62, 1) 50%, rgba(169, 119, 46, .92) 74%, transparent);
  box-shadow: 0 0 12px -3px rgba(169, 119, 46, .45);
}

.band-cream {
  background: var(--creme);
  color: #2A2017;
}
.band-cream .section-title { color: #241A12; }
.band-cream .section-title em { font-style: italic; color: var(--or-deep); }
.band-cream .lead { color: #6a5742; }
.band-cream .lead em { font-style: italic; color: var(--or-deep); }
.band-cream .eyebrow { color: var(--or-deep); }
.band-cream .eyebrow::before { background: var(--or-deep); }

/* ----------------------------------------------------------- DEMO / showcase */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 60px; align-items: end; }
.showcase .demo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.showcase .demo:nth-child(2) { transform: translateY(-28px); }
.showcase .demo .phone { width: 100%; max-width: 300px; }
.showcase .caption { text-align: center; max-width: 30ch; }
.showcase .caption h3 { font-family: var(--serif); font-size: 22px; color: var(--creme); margin-bottom: 6px; }
.showcase .caption p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ----------------------------------------------------------- FEATURES */
/* Scène d'attribution de tags · carousel-manège (coverflow) */
.tagscene { margin-top: clamp(40px, 6vw, 72px); display: flex; justify-content: center; }
.ts-stage { position: relative; width: 100%; height: clamp(360px, 46vw, 520px); perspective: 1600px; }
.ts-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%);
  width: 58%; height: 82%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(212, 162, 74, .20), transparent 70%);
  filter: blur(28px); z-index: 0; pointer-events: none;
}
.ts-shot {
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  opacity: 0;
  transition: transform .85s cubic-bezier(.2, .7, .3, 1), filter .85s ease, opacity .7s ease;
  will-change: transform, filter, opacity;
}
.ts-print {
  background: linear-gradient(160deg, #F4E9D6, #E6D8BF);
  padding: 12px 12px 26px;
  border-radius: 4px;
  box-shadow: 0 44px 72px -34px rgba(0, 0, 0, .85), 0 6px 18px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.ts-print img {
  display: block;
  height: clamp(248px, 32vw, 376px);
  width: auto;
  max-width: 44vw;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
}
.ts-dots { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; gap: 7px; justify-content: center; z-index: 30; }
.ts-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(239, 227, 210, .22); transition: background .35s, width .35s, border-radius .35s; }
.ts-dots i.on { background: var(--accent); width: 18px; border-radius: 3px; }

/* tags posés au-dessus de la photo — révélés une fois au centre, conservés jusqu'à la sortie à gauche */
.ts-tags {
  position: absolute; left: 50%; bottom: calc(100% + 14px);
  transform: translateX(-50%);
  display: flex; flex-direction: row; align-items: flex-end; gap: 10px;
  pointer-events: none; white-space: nowrap;
}
.ts-tags .tnode { font-size: 12.5px; padding: 5px 10px; }
.ts-tags .tnode .dot { width: 7px; height: 7px; }
.ts-tags .ftree { gap: 8px; }

/* chaque tag apparaît l'un après l'autre en fade-blur */
.ts-tags .t-step {
  opacity: 0; filter: blur(6px); transform: translateY(7px);
  transition: opacity .5s ease, filter .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
}
.ts-tags .ftree .tnode.lvl1::before { opacity: 0; transition: opacity .5s ease; }
.ts-shot.tagged .ts-tags .t-step { opacity: 1; filter: blur(0); transform: translateY(0); }
.ts-shot.tagged .ts-tags .ftree .tnode.lvl1::before { opacity: 1; }
/* chaque tag (isolé ou parenté) surgit l'un après l'autre, dans l'ordre du DOM (--si = rang) */
.ts-shot.tagged .ts-tags .t-step,
.ts-shot.tagged .ts-tags .ftree .tnode.lvl1::before { transition-delay: calc(var(--si, 0) * .42s); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.feature {
  background: linear-gradient(180deg, var(--surface), var(--velours-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); }
.feature .ficon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--creme); margin-bottom: 9px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }
.feature.span2 { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.feature.span2 .ficon { margin-bottom: 0; }

/* ----------------------------------------------------------- TAG SYSTEM (cream) */
.tagsys-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; margin-top: 56px; }
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(40,30,20,.10);
  border-radius: 16px;
  box-shadow: 0 6px 18px -12px rgba(80,50,20,.4);
}
.cat-row .cic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.cat-row .ctext { flex: 1; min-width: 0; }
.cat-row .cname { font-family: var(--serif); font-size: 19px; color: #241A12; font-weight: 500; }
.cat-row .cdesc { font-size: 13.5px; color: #7a6750; }

/* nested tag tree visual */
.tag-tree {
  background: var(--velours);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: 0 30px 60px -30px rgba(60,40,15,.6);
  border: 1px solid rgba(0,0,0,.1);
}
.tag-tree .tt-head { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 18px; }
.tag-node { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; font-weight: 600; font-size: 15px; }
.tag-node .nd { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tag-children { margin-left: 22px; border-left: 1px solid var(--line-strong); padding-left: 14px; margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
}

/* ----------------------------------------------------------- PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 56px auto 0; }
.plan {
  background: linear-gradient(180deg, var(--surface), var(--velours-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 36px;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent-line); box-shadow: 0 30px 70px -34px rgba(212,162,74,.4); position: relative; }
.plan .plan-flag { position: absolute; top: -13px; left: 32px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--serif); font-size: 25px; color: var(--creme); margin-bottom: 6px; }
.plan .ptag { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 26px; }
.plan .price .amt { font-family: var(--serif); font-size: 46px; color: var(--creme); line-height: 1; }
.plan .price .per { font-size: 15px; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.plan li { display: flex; gap: 11px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent); }
.plan li.off { color: var(--faint); }
.plan li.off svg { color: var(--faint); }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-cta { display: flex; justify-content: center; margin-top: 40px; }
.pricing-cta .btn { min-width: 240px; }

/* ----------------------------------------------------------- FAQ */
.faq-list { max-width: 760px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--accent-line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: transparent; border: none; text-align: left; color: var(--creme); font-family: var(--serif); font-size: clamp(17px, 2.2vw, 20px); font-weight: 500; }
.faq-q .pm { flex: none; width: 26px; height: 26px; position: relative; color: var(--accent); transition: transform .25s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ----------------------------------------------------------- CTA band */
.cta-band { text-align: center; padding: clamp(70px, 10vw, 130px) 0 120px; }
.cta-band .mark-big { width: 84px; height: 84px; margin: 0 auto 28px; }
.cta-band .display { margin-bottom: 20px; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ----------------------------------------------------------- FOOTER */
/* ----------------------------------------------------------- LEGAL PAGES */
.legal { padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); }
.legal .wrap { max-width: 800px; }
.legal .eyebrow { margin-bottom: 20px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.01em; color: var(--creme); }
.legal .updated { margin: 22px 0 0; font-size: 14px; color: var(--faint); }
.legal .legal-body { margin-top: clamp(44px, 6vw, 64px); border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 52px); }
.legal .legal-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 30px); color: var(--creme); margin: 48px 0 14px; }
.legal .legal-body h2:first-child { margin-top: 0; }
.legal .legal-body h3 { font-family: var(--ui); font-weight: 600; font-size: 17px; color: var(--ink); margin: 30px 0 10px; }
.legal .legal-body p { color: var(--muted); margin: 0 0 18px; max-width: 64ch; }
.legal .legal-body ul { color: var(--muted); margin: 0 0 18px; padding-left: 22px; }
.legal .legal-body li { margin: 0 0 9px; }
.legal .legal-body a { color: var(--accent); }
.legal .legal-body a:hover { color: var(--creme); }
.legal .placeholder { border: 1px dashed var(--or-line); border-radius: var(--radius); background: var(--or-soft); padding: 26px 28px; color: var(--muted); font-size: 15px; }
.legal .placeholder strong { color: var(--creme); font-weight: 600; }

.footer { border-top: 1px solid var(--line); padding: 64px 0 44px; }
.footer .f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; column-gap: 60px; align-items: start; }
.footer .f-brand { grid-column: 1; }
.footer .f-col-plan { grid-column: 2 / 4; }
.footer .f-col-about { grid-column: 4; }
.footer .f-col-plan h5 { text-align: left; }
.footer .f-plan-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 60px; row-gap: 13px; }
.footer .f-brand .wordmark { font-size: 23px; }
.footer .f-brand .wordmark-img { height: 23px; width: auto; }
.footer .f-brand p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--muted); margin: 22px 0 0; max-width: 26ch; }
.footer h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0 0 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer ul a { font-size: 15px; color: var(--muted); transition: color .16s; }
.footer ul a:hover { color: var(--creme); }
.footer .f-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .f-bottom span { font-size: 13px; color: var(--faint); }
.footer .f-bottom span a { color: var(--muted); transition: color .16s; }
.footer .f-bottom span a:hover { color: var(--creme); }

/* ----------------------------------------------------------- reveal animation */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.js-reveal .reveal { opacity: 0; transform: translateY(26px); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ----------------------------------------------------------- RESPONSIVE */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 640px; margin: 0 auto; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .eyebrow { justify-content: center; }
  .eyebrow::before { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.span2 { grid-column: span 2; }
  .tagsys-grid { grid-template-columns: 1fr; }
  .footer .f-top { grid-template-columns: 1fr 1fr 1fr; column-gap: 44px; row-gap: 44px; }
  .footer .f-brand { grid-column: 1 / -1; }
  .footer .f-col-plan { grid-column: 1 / 3; }
  .footer .f-col-about { grid-column: 3; }
  .footer .f-brand p { max-width: 40ch; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .showcase { grid-template-columns: 1fr; gap: 50px; }
  .showcase .demo:nth-child(2) { transform: none; }
  .showcase .demo .phone { max-width: 280px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .float-cluster { display: none; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature.span2 { grid-column: auto; grid-template-columns: 1fr; }
  .feature.span2 .ficon { margin-bottom: 20px; }
  .footer .f-top { grid-template-columns: 1fr; row-gap: 34px; }
  .footer .f-brand, .footer .f-col-plan, .footer .f-col-about { grid-column: 1; }
  .hero-actions .btn, .hero-actions .play-badge { width: 100%; }
}
