/* DropVin — charte commune, theme noir et vert menthe.
   Le noir domine ; le vert menthe guide l'attention (action principale,
   mots cles, elements actifs). Pas de neon, de halo ni de degrade.
   Les anciens noms de variables (--ink, --teal, --ali...) restent definis
   pour les pages qui les utilisent encore. Mobile d'abord. */
:root {
  /* Palette */
  --bg: #111114;
  --surface: #1C1C21;
  --surface-2: #24242A;
  --line: #303036;
  --text: #F5F5F7;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --accent: #65D6A0;
  --accent-hover: #7BDEAF;
  --accent-ink: #111114;
  --accent-soft: rgba(101, 214, 160, .12);
  --danger: #F2A6A0;
  --danger-soft: rgba(242, 166, 160, .10);

  /* Anciens noms -> palette */
  --bg-soft: var(--bg);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --teal: var(--accent);
  --teal-dark: var(--accent);
  --teal-soft: var(--accent-soft);
  --ali: var(--accent);
  --ali-dark: var(--accent);
  --ali-soft: var(--accent-soft);
  --ok: var(--accent);

  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --display: 'Inter', -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.55; font-size: 16px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.logo-txt b { color: var(--accent); font-weight: 700; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; }

/* Barre du haut */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  padding: 15px 22px; text-decoration: none; min-height: 52px;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-dark:hover { border-color: var(--muted); }
.btn-ghost, .btn-line { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover, .btn-line:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 10px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ok { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* Champ lien */
.linkbox { display: flex; flex-direction: column; gap: 10px; }
.linkbox-field { display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; min-height: 56px;
  transition: border-color .2s, box-shadow .2s; }
.linkbox-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.linkbox-field i { font-size: 20px; color: var(--muted); }
.linkbox-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; color: var(--text); padding: 14px 0; }
.linkbox-field input::placeholder { color: var(--muted); }
@media (min-width: 720px) {
  .linkbox { flex-direction: row; }
  .linkbox-field { flex: 1; }
}

/* Pastilles */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.chip i { font-size: 15px; }
.chip-ali, .chip-teal, .chip-accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.price { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.price-ali { color: var(--text); }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-soft { background: var(--surface); border-radius: var(--radius); padding: 18px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Titres */
.h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; font-size: clamp(40px, 10.5vw, 76px); }
.h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(28px, 6.5vw, 46px); }
.h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 20px; line-height: 1.25; }
.lead { font-size: 17px; color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.hl, .hl-ali { color: var(--accent); }

/* Messages */
.flash { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); color: var(--text-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 500; margin: 10px 0; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.input { width: 100%; font: inherit; font-size: 16px; padding: 14px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); outline: 0; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #71717A; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* Apparitions au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Apercu d'annonce (maquette telephone) */
.phone { width: 100%; max-width: 330px; margin: 0 auto; background: #000; border: 1px solid var(--line); border-radius: 40px; padding: 9px; position: relative; }
.phone-screen { background: var(--surface); border-radius: 31px; overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #000; border-radius: 0 0 14px 14px; z-index: 3; }
.listing-photo { aspect-ratio: 3 / 4; background: var(--surface-2); position: relative; overflow: hidden; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-body { padding: 14px 16px 18px; }
.listing-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.listing-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.listing-price { font-size: 22px; font-weight: 700; margin-top: 8px; font-family: var(--display); }
.listing-btn { margin-top: 12px; background: var(--surface-2); color: var(--text-2); border-radius: 10px; text-align: center; padding: 11px; font-weight: 600; font-size: 14px; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 720px) { .footer { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Chargement */
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Theme clair ivoire (parcours apres la landing) ── */
body.lt {
  --bg: #EFECE3; --surface: #FCFBF8; --surface-2: #F4F2EB; --line: #B7BDAE;
  --text: #232722; --text-2: #3A3F38; --muted: #5F655C;
  --accent: #23A562; --accent-hover: #1E9356; --accent-ink: #FCFBF8; --accent-soft: #DDE7D7;
  --danger: #B7332C; --danger-soft: #FBE9E7;
  /* anciens noms : a redefinir ici, sinon ils gardent les couleurs sombres */
  --bg-soft: #EFECE3; --ink: #232722; --ink-2: #3A3F38;
  --teal: #23A562; --teal-dark: #286047; --teal-soft: #DDE7D7;
  --ali: #23A562; --ali-dark: #286047; --ali-soft: #DDE7D7; --ok: #23A562;
  color-scheme: light; background: var(--bg); color: var(--text);
}
body.lt ::selection { background: #DDE7D7; color: var(--text); }
body.lt .logo-txt b { color: #286047; }
body.lt .phone { background: #232722; border-color: #232722; }
body.lt .phone-notch { background: #232722; }
body.lt .listing-btn { background: #EDEAE2; color: #3A3F38; }
body.lt .logo-mark { content: url(/static/brand/logo-green.svg); }
body.lt .btn { border-radius: 999px; }
body.lt .btn-primary { border: 1px solid #3CD98A; box-shadow: 0 0 0 1px rgba(60,217,138,.2), 0 0 10px rgba(57,217,138,.16), 0 4px 12px rgba(35,39,34,.10); }
body.lt .btn-ghost, body.lt .btn-line { background: var(--surface); border: 1.5px solid #9FA697; }
body.lt .btn-dark { background: #232722; color: #FCFBF8; border-color: #232722; }
body.lt .card, body.lt .input, body.lt .linkbox-field { border-width: 1.5px; }
body.lt .card { box-shadow: 0 1px 2px rgba(35,39,34,.06), 0 8px 22px rgba(35,39,34,.07); }
body.lt .input { background: #fff; }
body.lt .chip { background: var(--surface); border: 1.5px solid #B7BDAE; color: var(--text-2); }
body.lt .chip-accent, body.lt .chip-teal, body.lt .chip-ali { background: #DDE7D7; color: #286047; border-color: #BFD3BA; }
body.lt .flash { background: var(--surface); border: 1.5px solid #B7BDAE; border-left: 3px solid #23A562; }
body.lt .spin { border-color: #D6D3C9; border-top-color: #23A562; }
body.lt .hl, body.lt .hl-ali { color: #1E8A53; }
body.lt .num { color: #286047; background: #DDE7D7; }

/* ── Icones animees (templates/_anim.html) ── */
.ai { width: var(--s, 26px); height: var(--s, 26px); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; flex-shrink: 0; }
.ai .o5 { opacity: .5; } .ai .o3 { opacity: .3; }
.ai .pt { fill: currentColor; stroke: none; }
.ai .fan { fill: currentColor; stroke: none; opacity: .18; }
.ai .fillbg { fill: var(--ai-bg, #FCFBF8); }
.ai-sparkles path { fill: currentColor; stroke: none; }
.ai-flame .core { fill: currentColor; stroke: none; opacity: .55; }
.ai-bolt .zap { fill: currentColor; fill-opacity: .14; }
@media (prefers-reduced-motion: no-preference) {
  .ai * { transform-box: fill-box; }
  .ai-radar .sw { transform-box: view-box; transform-origin: 12px 12px; animation: ai-spin 2.6s linear infinite; }
  .ai-radar .pt { animation: ai-blink 2.6s ease-in-out infinite; }
  .ai-sparkles .s1 { transform-origin: center; animation: ai-twinkle 2.4s ease-in-out infinite; }
  .ai-sparkles .s2 { transform-origin: center; animation: ai-twinkle 2.4s .8s ease-in-out infinite; }
  .ai-sparkles .s3 { transform-origin: center; animation: ai-twinkle 2.4s 1.5s ease-in-out infinite; }
  .ai-flame .fl { transform-origin: 50% 100%; animation: ai-flicker 1.6s ease-in-out infinite; }
  .ai-stack .up { animation: ai-rise 2.8s ease-in-out infinite; }
  .ai-gift .lid { transform-origin: 50% 100%; animation: ai-lid 2.6s ease-in-out infinite; }
  .ai-coin .flip { transform-origin: center; animation: ai-flip 3.2s ease-in-out infinite; }
  .ai-calendar .pt, .ai-photo .pt { transform-origin: center; animation: ai-pulse 2s ease-in-out infinite; }
  .ai-link .l1 { animation: ai-l1 2.4s ease-in-out infinite; } .ai-link .l2 { animation: ai-l2 2.4s ease-in-out infinite; }
  .ai-user .bob { animation: ai-bob 2.8s ease-in-out infinite; }
  .ai-home .door { animation: ai-blink 3s ease-in-out infinite; }
  .ai-crown .shine { animation: ai-blink 2.2s ease-in-out infinite; }
  .ai-clock .hand { transform-box: view-box; transform-origin: 12px 12px; animation: ai-spin 6s linear infinite; }
  .ai-clock .hand2 { transform-box: view-box; transform-origin: 12px 12px; animation: ai-spin 60s linear infinite; }
  .ai-bolt .zap { animation: ai-zap 2.4s ease-in-out infinite; }
  .ai-check .tick { stroke-dasharray: 14; stroke-dashoffset: 14; animation: ai-draw 2.8s ease-in-out infinite; }
  /* Dans les menus : seule l'icone active (ou survolee) bouge */
  .ai-calm .ai *, .ai-calm.ai * { animation-play-state: paused; }
  .ai-calm:hover .ai *, .ai-calm.on .ai * { animation-play-state: running; }
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ai-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .45; } }
@keyframes ai-flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.96, 1.06) skewX(-2deg); } 60% { transform: scale(1.03, .97) skewX(2deg); } }
@keyframes ai-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.4px); } }
@keyframes ai-lid { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-2.6px) rotate(-6deg); } 90% { transform: translateY(-1px) rotate(3deg); } }
@keyframes ai-flip { 0%, 70%, 100% { transform: scaleX(1); } 80% { transform: scaleX(.35); } 90% { transform: scaleX(1); } }
@keyframes ai-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }
@keyframes ai-l1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1px, -1px); } }
@keyframes ai-l2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-1px, 1px); } }
@keyframes ai-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
@keyframes ai-zap { 0%, 80%, 100% { opacity: 1; } 86% { opacity: .3; } 92% { opacity: 1; } }
@keyframes ai-draw { 0% { stroke-dashoffset: 14; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
