/* ==========================================================================
   AriiHub — Démonstration confidentielle
   © 2026 Hinova Digital Corporation — Tous droits réservés
   Feuille de style unique. Design, palette, animations et transitions
   conservés à l'identique du prototype original (POC ManaHub).
   ========================================================================== */

:root{
  --deep: #0B2A2E;
  --deep2: #0F3B3F;
  --lagoon: #1E8A8C;
  --lagoon-light: #6FC6C4;
  --sand: #F2EBDC;
  --sand2: #E9DFC8;
  --ink: #10201F;
  --coral: #E2683F;
  --coral-dark: #C24F2B;
  --line: rgba(16,32,31,0.12);
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

@font-face{
  font-family:'Fraunces';
  src: local('Georgia');
}

*{box-sizing:border-box; margin:0; padding:0;}
html,body{height:100%;}
body{
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#phone{
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--sand);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.15);
}

.screen{
  display:none;
  min-height: 100vh;
  animation: fadeIn .35s ease;
}
.screen.active{display:block;}
@keyframes fadeIn{ from{opacity:0; transform: translateY(6px);} to{opacity:1; transform:none;} }

/* --- Wave signature divider --- */
.wave-divider{
  height: 22px;
  width: 100%;
  background:
    repeating-linear-gradient(115deg,
      transparent 0 18px,
      rgba(255,255,255,0.10) 18px 20px);
}

/* --- ONBOARDING / LOGIN --- */
#screen-onboarding{
  background: radial-gradient(120% 90% at 50% -10%, var(--deep2) 0%, var(--deep) 55%, var(--ink) 100%);
  color: var(--sand);
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
  padding: 48px 28px 32px;
}
.brand-mark{
  display:flex; align-items:center; gap:10px;
  margin-bottom: 6px;
}
.brand-dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--lagoon-light);
  box-shadow: 0 0 12px var(--lagoon-light);
}
.brand-word{
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--lagoon-light);
}
.hero-line{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.08;
  margin: 20px 0 14px;
}
.hero-sub{
  font-size: 15px;
  line-height:1.5;
  color: rgba(242,235,220,0.72);
  max-width: 320px;
}
.lagoon-chevrons{
  display:flex; gap:6px; margin: 26px 0 34px;
}
.lagoon-chevrons span{
  width: 26px; height:3px; border-radius:2px;
  background: var(--lagoon);
  opacity:.9;
}
.lagoon-chevrons span:nth-child(2){background:var(--lagoon-light);}
.lagoon-chevrons span:nth-child(3){background:var(--coral);}

.form-card{
  background: rgba(242,235,220,0.06);
  border: 1px solid rgba(242,235,220,0.16);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(6px);
}
.field{ margin-bottom: 14px; }
.field label{
  display:block;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(242,235,220,0.6);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.field input, .field select{
  width:100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(242,235,220,0.22);
  background: rgba(11,42,46,0.35);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 15px;
  outline:none;
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder{ color: rgba(242,235,220,0.35); }
.field input:focus, .field select:focus{
  border-color: var(--lagoon-light);
  background: rgba(11,42,46,0.55);
}
.field select{ appearance:none; -webkit-appearance:none; cursor:pointer; }
.field select option{ background: var(--deep); color: var(--sand); }

.btn{
  width:100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:active{ transform: scale(0.98); }
.btn-primary{
  background: linear-gradient(120deg, var(--lagoon) 0%, var(--lagoon-light) 100%);
  color: var(--deep);
  box-shadow: 0 8px 24px rgba(30,138,140,0.28);
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-coral{
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: var(--sand);
  box-shadow: 0 8px 24px rgba(226,104,63,0.28);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.foot-note{
  font-size: 11px;
  line-height:1.5;
  color: rgba(242,235,220,0.42);
  margin-top: 14px;
  text-align:center;
}
.login-error{
  font-size: 12.5px;
  color: #FFB4A0;
  background: rgba(226,104,63,0.14);
  border: 1px solid rgba(226,104,63,0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display:none;
}
.login-error.active{ display:block; }

/* --- TOPBAR / FEED --- */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 20px 14px;
  background: var(--sand);
}
.welcome-pill{
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand2);
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.feed-wrap{ padding: 6px 20px 24px; }
.feed-title{
  font-family: var(--font-display);
  font-size: 22px;
  margin: 10px 0 16px;
}

.artisan-card{
  background:#fff;
  border-radius: var(--radius);
  overflow:hidden;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(16,32,31,0.08);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.artisan-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,32,31,0.12); }
.card-banner{
  height: 92px;
  position: relative;
  display:flex; align-items:flex-end;
}
.craft-icon{
  position:absolute; right:16px; top:16px;
  font-size: 26px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.card-body{ padding: 16px; }
.card-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 6px;
}
.artisan-name{
  font-family: var(--font-display);
  font-size: 18px;
  font-weight:600;
}
.verified{
  font-size: 10.5px;
  color: var(--lagoon);
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.craft-label{
  font-size: 12px;
  color: var(--coral-dark);
  font-weight:600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.teaser{
  font-size: 13.5px;
  line-height:1.5;
  color: #445150;
  margin-bottom: 12px;
}
.thumb-row{ display:flex; gap:8px; }
.thumb{
  width: 44px; height:44px;
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
}

.fav-toggle{
  position:absolute; top:12px; left:12px;
  width: 30px; height:30px;
  border-radius:50%;
  background: rgba(255,255,255,0.85);
  display:flex; align-items:center; justify-content:center;
  font-size: 15px;
  z-index: 2;
  transition: transform .15s ease;
}
.fav-toggle:active{ transform: scale(0.9); }
.fav-toggle.active{ color: var(--coral); }

.bottom-tab{
  position: sticky;
  bottom:0;
  display:flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}
.tab-item{
  flex:1;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  font-size: 11px;
  color: #8a9694;
  cursor:pointer;
  transition: color .15s ease;
}
.tab-item.active{ color: var(--lagoon); font-weight:600; }
.tab-icon{ font-size: 17px; }

/* --- DETAIL --- */
.detail-header{
  padding: 18px 20px 0;
}
.back-btn{
  width: 36px; height:36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16,32,31,0.12);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.detail-hero{
  margin-top: -36px;
  padding: 60px 24px 26px;
  color: var(--sand);
}
.detail-name{
  font-family: var(--font-display);
  font-size: 28px;
  margin: 10px 0 4px;
}
.detail-craft{
  font-size: 13px;
  color: rgba(242,235,220,0.78);
}
.detail-body{ padding: 22px 20px 24px; }
.bio{
  font-size: 14px;
  line-height:1.6;
  color: #445150;
  margin-bottom: 14px;
}
.external-link{
  display:inline-block;
  font-size: 13px;
  color: var(--lagoon);
  text-decoration:none;
  font-weight:600;
  margin-bottom: 24px;
}
.section-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a9694;
  margin-bottom: 12px;
}
.product-list{ display:flex; flex-direction:column; gap:12px; }
.product-row{
  display:flex; align-items:center; gap:12px;
  background:#fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(16,32,31,0.06);
}
.product-thumb{
  width: 48px; height:48px;
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  font-size: 20px;
  flex-shrink:0;
}
.product-info{ flex:1; min-width:0; }
.product-name{ font-size: 14px; font-weight:600; }
.product-price{ font-size: 12.5px; color: #6b7a79; margin-top:2px; }
.product-buy{
  padding: 8px 14px;
  border-radius: 8px;
  border:none;
  background: var(--ink);
  color: var(--sand);
  font-size: 12.5px;
  font-weight:600;
  cursor:pointer;
}

/* --- FAVORIS --- */
.empty-state{
  padding: 60px 30px;
  text-align:center;
  color: #8a9694;
}
.empty-state-icon{ font-size: 34px; margin-bottom: 12px; }
.empty-state p{ font-size: 13.5px; line-height:1.5; }

/* --- PROFIL --- */
#screen-profil .detail-hero{
  margin-top:0;
  padding: 40px 24px 30px;
}
.profil-logo{
  width: 64px; height:64px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-weight:700;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.profil-org{ font-family: var(--font-display); font-size: 24px; margin-bottom:6px; }
.profil-tagline{ font-size: 13px; color: rgba(242,235,220,0.78); }
.profil-welcome{
  font-size: 14px;
  line-height:1.6;
  color:#445150;
  background:#fff;
  border-radius: 12px;
  padding:16px;
  box-shadow: 0 4px 14px rgba(16,32,31,0.06);
  margin-bottom: 18px;
}
.profil-meta{
  display:flex; flex-direction:column; gap:10px;
  margin-bottom: 22px;
}
.profil-meta-row{
  display:flex; justify-content:space-between;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.profil-meta-row span:first-child{ color:#6b7a79; }
.profil-meta-row span:last-child{ font-weight:600; }

/* --- CHECKOUT MODAL --- */
.modal-overlay{
  position: fixed; inset:0;
  background: rgba(16,32,31,0.45);
  display:flex; align-items:flex-end; justify-content:center;
  opacity:0; pointer-events:none;
  transition: opacity .25s ease;
  z-index: 50;
}
.modal-overlay.active{ opacity:1; pointer-events:auto; }
.modal-sheet{
  width:100%; max-width: 430px;
  background: var(--sand);
  border-radius: 20px 20px 0 0;
  padding: 14px 20px 28px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.active .modal-sheet{ transform: translateY(0); }
.modal-handle{
  width: 40px; height:4px;
  border-radius: 4px;
  background: var(--line);
  margin: 0 auto 18px;
}
.checkout-summary{
  display:flex; align-items:center; gap:12px;
  margin-bottom: 18px;
}
.checkout-total{
  display:flex; justify-content:space-between; align-items:center;
  font-size: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.payzen-badge{
  font-size: 11.5px;
  color: #6b7a79;
  text-align:center;
  margin-bottom: 16px;
}
#confirm-body{ display:none; text-align:center; padding: 10px 6px; }
#confirm-body.active{ display:block; }
.confirm-icon{
  width: 56px; height:56px;
  border-radius:50%;
  background: var(--lagoon);
  color:#fff;
  font-size: 26px;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 14px;
}
.sovereignty-note{
  font-size: 12px;
  line-height:1.6;
  color: #445150;
  background: var(--sand2);
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
  text-align:left;
}

/* --- END SCREEN --- */
#screen-end{
  background: radial-gradient(120% 90% at 50% -10%, var(--deep2) 0%, var(--deep) 55%, var(--ink) 100%);
  color: var(--sand);
  min-height: 100vh;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding: 40px 30px;
  text-align:center;
}
#screen-end .hero-line{ font-size: 28px; margin: 22px 0 12px; }
#screen-end .hero-sub{ max-width: 320px; margin: 0 auto 30px; }

/* --- FOOTER / LEGAL --- */
.legal-footer{
  padding: 18px 20px 10px;
  text-align:center;
  font-size: 10.5px;
  line-height:1.7;
  color: #9aa6a4;
}
.legal-footer.on-dark{ color: rgba(242,235,220,0.4); }

/* --- WATERMARK --- */
.demo-watermark{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.055;
  display:flex; flex-wrap:wrap; align-content:space-around; justify-content:space-around;
  transform: rotate(-24deg) scale(1.4);
  overflow:hidden;
}
.demo-watermark span{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  margin: 18px 26px;
}

@media (max-width: 380px){
  .hero-line{ font-size: 34px; }
}

@media (min-width: 640px){
  #phone{ border-radius: 22px; margin-top: 24px; margin-bottom: 24px; min-height: calc(100vh - 48px); }
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration: 0.01ms !important;}
}
