/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; background: #F8F6F2; color: #1A1A2E; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── CSS VARIABLES ─── */
:root {
  --teal: #0F9E84;
  --teal-light: #E0F5F1;
  --coral: #E8503A;
  --coral-light: #FDECEA;
  --amber: #F0A500;
  --amber-light: #FEF6E4;
  --navy: #1A1A2E;
  --navy-mid: #2D2D4E;
  --cream: #F8F6F2;
  --white: #FFFFFF;
  --gray: #F2F0EC;
  --gray-mid: #C8C5BE;
  --text-muted: #6B6860;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26,26,46,0.10);
  --shadow-lg: 0 12px 48px rgba(26,26,46,0.16);
}

/* ─── LOGO ─── */
.logo { display: flex; align-items: baseline; gap: 1px; }
.logo-kari { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--teal); }
.logo-shop { font-family: 'Syne', sans-serif; font-weight: 400; font-size: 1.5rem; color: var(--navy); }
.logo-btob { font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 0.7rem; color: var(--text-muted); border: 1px solid var(--gray-mid); border-radius: 4px; padding: 1px 5px; margin-left: 6px; letter-spacing: 0.05em; align-self: center; }

/* ─── NAV ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(248,246,242,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(200,197,190,0.3); transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.btn-nav { background: var(--navy); color: var(--white) !important; padding: 0.5rem 1.25rem; border-radius: 50px; font-weight: 500 !important; transition: background 0.2s !important; }
.btn-nav:hover { background: var(--teal) !important; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s; }
.nav-mobile { display: none; flex-direction: column; padding: 1rem 2rem; gap: 1rem; border-top: 1px solid var(--gray); }
.nav-mobile a { font-size: 1rem; color: var(--navy); padding: 0.5rem 0; border-bottom: 1px solid var(--gray); }
.nav-mobile.open { display: flex; }

/* ─── HERO ─── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; max-width: 1200px; margin: 0 auto; padding: 5rem 2rem 3rem; position: relative; }
.hero-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.orb1 { width: 600px; height: 600px; background: #0F9E84; top: -200px; right: -100px; animation: float1 8s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; background: #F0A500; bottom: 0; left: -100px; animation: float2 10s ease-in-out infinite; }
.orb3 { width: 300px; height: 300px; background: #E8503A; top: 40%; left: 40%; animation: float3 7s ease-in-out infinite; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(26,26,46,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(26,26,46,0.04) 1px, transparent 1px); background-size: 60px 60px; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-15px,15px)} }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid rgba(15,158,132,0.3); border-radius: 50px; padding: 6px 14px; font-size: 0.8rem; color: var(--teal); font-weight: 500; margin-bottom: 1.5rem; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.1; color: var(--navy); margin-bottom: 1.5rem; }
.hero-title em { font-style: normal; color: var(--teal); }
.hero-title .highlight { position: relative; display: inline-block; }
.hero-title .highlight::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 8px; background: var(--amber-light); z-index: -1; border-radius: 4px; }

.hero-sub { font-size: 1rem; line-height: 1.7; color: var(--text-muted); max-width: 480px; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-primary { background: var(--teal); color: var(--white); padding: 0.85rem 1.75rem; border-radius: 50px; font-weight: 500; font-size: 0.95rem; transition: transform 0.2s, box-shadow 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,158,132,0.35); }
.btn-ghost { color: var(--navy); padding: 0.85rem 1.5rem; border-radius: 50px; font-weight: 500; font-size: 0.95rem; border: 1.5px solid rgba(26,26,46,0.15); transition: border-color 0.2s, background 0.2s; }
.btn-ghost:hover { border-color: var(--navy); background: rgba(26,26,46,0.04); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.05rem; }

.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.stat span { font-size: 0.78rem; color: var(--text-muted); }
.stat-div { width: 1px; height: 32px; background: var(--gray-mid); }

/* HERO VISUAL */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.hero-center-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; width: 220px; box-shadow: var(--shadow-lg); }
.hcc-logo { display: flex; align-items: baseline; justify-content: center; gap: 1px; margin-bottom: 1rem; }
.hcc-logo .logo-kari { color: var(--teal); }
.hcc-logo .logo-shop { color: var(--white); }
.hcc-tag { font-size: 0.7rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.hcc-brand { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--amber); letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.hcc-desc { font-size: 0.72rem; color: rgba(255,255,255,0.55); }

.card-float { position: absolute; background: var(--white); border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--shadow); border: 1px solid rgba(200,197,190,0.4); }
.cf-icon { font-size: 1.5rem; }
.cf-title { font-weight: 500; font-size: 0.85rem; color: var(--navy); }
.cf-sub { font-size: 0.72rem; color: var(--text-muted); }
.card-float-1 { top: 20px; left: -20px; animation: floatCard 5s ease-in-out infinite; }
.card-float-2 { bottom: 60px; left: -40px; animation: floatCard 6s ease-in-out infinite 1s; }
.card-float-3 { top: 100px; right: -20px; animation: floatCard 7s ease-in-out infinite 0.5s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ─── SECTIONS ─── */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.section-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--navy); line-height: 1.15; margin-bottom: 2.5rem; }

/* ─── COLLECTIONS ─── */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.col-card { border-radius: var(--radius); padding: 2.5rem 2rem; position: relative; overflow: hidden; }
.col-card::before { content: ''; position: absolute; inset: 0; opacity: 0.06; background: currentColor; }
.col-teal { background: var(--teal-light); color: var(--teal); }
.col-coral { background: var(--coral-light); color: var(--coral); }
.col-amber { background: var(--amber-light); color: var(--amber); }
.col-number { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 4rem; opacity: 0.12; position: absolute; top: 1rem; right: 1.5rem; line-height: 1; color: currentColor; }
.col-emoji { font-size: 2.5rem; margin-bottom: 1rem; }
.col-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--navy); margin-bottom: 0.75rem; }
.col-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.col-card ul { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.col-card ul li { font-size: 0.83rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.col-card ul li::before { content: '—'; position: absolute; left: 0; color: currentColor; }
.col-link { font-size: 0.85rem; font-weight: 500; color: var(--navy); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: opacity 0.2s; }
.col-link:hover { opacity: 0.7; }

/* ─── WHY ─── */
.why { background: var(--navy); border-radius: 24px; max-width: 1200px; margin: 0 auto 2rem; padding: 4rem 3rem; }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.why .section-label { color: var(--teal); }
.why .section-title { color: var(--white); margin-bottom: 2rem; }
.why-features { display: flex; flex-direction: column; gap: 1.5rem; }
.feat { display: flex; gap: 1rem; align-items: flex-start; }
.feat-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.feat-green { background: var(--teal); color: var(--white); }
.feat-blue { background: #378ADD; color: var(--white); }
.feat-orange { background: var(--coral); color: var(--white); }
.feat-teal { background: var(--amber); color: var(--white); }
.feat strong { display: block; color: var(--white); font-size: 0.95rem; font-weight: 500; margin-bottom: 0.3rem; }
.feat p { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

.process-steps { display: flex; flex-direction: column; gap: 0.25rem; }
.step { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,0.08); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.step-text strong { display: block; color: var(--white); font-size: 0.9rem; font-weight: 500; }
.step-text span { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.step-arrow { text-align: center; color: rgba(255,255,255,0.25); font-size: 1rem; padding: 0.25rem 0; }

/* ─── CTA ─── */
.cta-section { background: var(--white); border-radius: 24px; border: 1px solid rgba(200,197,190,0.4); max-width: 1200px; margin: 0 auto 2rem; padding: 4rem 2rem; }
.cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-inner h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 2rem; color: var(--navy); margin-bottom: 1rem; }
.cta-inner p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 2rem; }
.cta-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }

/* ─── FOOTER ─── */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 3rem 2rem 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .logo-kari { color: var(--teal); font-size: 1.3rem; }
.footer-brand .logo-shop { color: var(--white); font-size: 1.3rem; }
.footer-brand .logo-btob { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.15); font-size: 0.65rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; margin-top: 0.75rem; color: rgba(255,255,255,0.45); }
.footer-links h4 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--white); margin-bottom: 1rem; }
.footer-links a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 6rem; }
  .hero-visual { display: none; }
  .collections-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── PAGES INTERNES ─── */
.page-wrapper { min-height: 100vh; padding-top: 64px; }
.page-hero { background: var(--navy); color: var(--white); padding: 3rem 2rem 2.5rem; text-align: center; }
.page-hero h1 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 2rem; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.page-content { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }

/* ─── FORM STYLES ─── */
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(200,197,190,0.3); padding: 2.5rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.83rem; font-weight: 500; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid rgba(200,197,190,0.6); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--navy);
  background: var(--cream); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .hint { font-size: 0.75rem; color: var(--text-muted); }
.form-required { color: var(--coral); }
.form-submit { margin-top: 1.5rem; }
.form-section-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem; color: var(--navy); padding-bottom: 0.5rem; border-bottom: 2px solid var(--teal-light); margin-bottom: 1.25rem; margin-top: 1.5rem; grid-column: 1 / -1; }

/* ─── ALERTS ─── */
.alert { border-radius: var(--radius-sm); padding: 0.85rem 1rem; font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.alert.success { background: var(--teal-light); color: #0a6b59; border: 1px solid rgba(15,158,132,0.2); }
.alert.error { background: var(--coral-light); color: #9b2c1a; border: 1px solid rgba(232,80,58,0.2); }
.alert.show { display: block; }

/* ─── CONNEXION PAGE ─── */
.login-wrap { max-width: 420px; margin: 3rem auto; padding: 0 1.5rem; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-kari { font-size: 2rem; }
.login-logo .logo-shop { font-size: 2rem; }
.login-subtitle { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; margin-bottom: 2rem; }

/* ─── CATALOGUE ─── */
.catalogue-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.filters-sidebar { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(200,197,190,0.3); padding: 1.5rem; position: sticky; top: 80px; }
.filters-sidebar h3 { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.6rem; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--navy); padding: 4px 0; cursor: pointer; }
.filter-option input { accent-color: var(--teal); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.product-card { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(200,197,190,0.3); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img { height: 180px; background: var(--gray); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.product-body { padding: 1rem; }
.product-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); font-weight: 500; margin-bottom: 0.25rem; }
.product-name { font-weight: 500; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.5rem; }
.product-ref { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.product-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--teal); }
.product-price-note { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.product-moq { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.product-add { width: 100%; margin-top: 0.75rem; background: var(--teal); color: var(--white); border: none; border-radius: 8px; padding: 0.6rem; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.product-add:hover { background: #0a7a66; }

/* ─── PANIER BADGE ─── */
.cart-badge { position: relative; }
.cart-count { position: absolute; top: -6px; right: -8px; background: var(--coral); color: white; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ─── ESPACE CLIENT ─── */
.dashboard-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.sidebar-nav { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(200,197,190,0.3); padding: 1.25rem; position: sticky; top: 80px; }
.sidebar-nav a { display: flex; align-items: center; gap: 8px; padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text-muted); transition: all 0.15s; margin-bottom: 2px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--teal-light); color: var(--teal); font-weight: 500; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(200,197,190,0.3); padding: 1.25rem; }
.stat-card .sc-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-card .sc-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--navy); }
.orders-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(200,197,190,0.3); }
.orders-table th { background: var(--navy); color: var(--white); padding: 0.75rem 1rem; font-size: 0.78rem; font-weight: 500; text-align: left; letter-spacing: 0.05em; }
.orders-table td { padding: 0.85rem 1rem; font-size: 0.85rem; color: var(--navy); border-bottom: 1px solid rgba(200,197,190,0.2); }
.orders-table tr:last-child td { border-bottom: none; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 500; }
.status-recu { background: #EEF2FF; color: #4F46E5; }
.status-transmis { background: var(--amber-light); color: #854F0B; }
.status-expedie { background: var(--teal-light); color: #0F6E56; }
.status-livre { background: #F0FDF4; color: #166534; }
